:root {
  --bg: #ffffff;
  --text: #303056;
  --link-hover: #fa43b0;
  --dark: #191938;
  --line: rgba(48, 48, 86, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Open Sans", sans-serif;
  font-size: 20px;
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 160ms ease, transform 160ms ease, color 160ms ease;
}

body.motion-ready .motion-hero-item,
body.motion-ready .motion-reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
}

body.motion-ready .motion-hero-item {
  transition:
    opacity 620ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--motion-delay, 0ms);
}

body.motion-ready .motion-reveal {
  transition:
    opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--motion-delay, 0ms);
}

body.motion-ready .motion-hero-item.is-visible,
body.motion-ready .motion-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (hover: hover) and (pointer: fine) {
  a,
  button {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 38 38'%3E%3Cpath d='M5 3v27l7-7 6 12 5-3-6-11h11z' fill='none' stroke='%23fa43b0' stroke-width='6' stroke-linejoin='round' opacity='.28'/%3E%3Cpath d='M5 3v27l7-7 6 12 5-3-6-11h11z' fill='%23fa43b0' stroke='%23303056' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") 2 1, default;
  }
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text);
  font-family: "Roboto", sans-serif;
  font-weight: 600;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
  padding: 0;
  background: transparent;
}

.header-scroll-progress {
  position: relative;
  width: 100%;
  height: 2px;
  background: rgba(48, 48, 86, 0.12);
  overflow: hidden;
}

.site-header-dark .header-scroll-progress {
  background: rgba(255, 255, 255, 0.12);
}

.header-scroll-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--link-hover);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 120ms linear;
}

.site-header-dark {
  background: transparent;
}

.site-header-dark .header-shell {
  background: rgba(25, 25, 56, 0.96);
}

.site-header-dark .brand,
.site-header-dark .main-nav a {
  color: #ffffff;
}

.site-header-dark .social-link svg {
  fill: #ffffff;
}

.header-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: 100%;
  min-height: 70px;
  padding: 0 32px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.96);
}

.brand {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 2.8vw, 42px);
  flex-wrap: wrap;
}

.main-nav a {
  font-size: 16px;
  font-weight: 600;
}

.main-nav a[aria-current="page"] {
  color: var(--link-hover);
  opacity: 1;
}

.header-actions,
.footer-socials {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-actions .social-link {
  position: relative;
}

.social-link,
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.social-link {
  width: 42px;
  height: 42px;
  background: transparent;
}

.social-link svg {
  width: 24px;
  height: 24px;
  fill: var(--text);
}

@media (hover: hover) and (pointer: fine) {
  .header-actions .social-link::after {
    position: absolute;
    left: 50%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .header-actions .social-link::after {
    content: attr(aria-label);
    top: calc(100% + 8px);
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(25, 25, 56, 0.94);
    color: #ffffff;
    font-family: "Open Sans", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
    transform: translateX(-50%) translateY(-4px);
  }

  .header-actions .social-link:hover::after,
  .header-actions .social-link:focus-visible::after {
    opacity: 1;
  }

  .header-actions .social-link:hover::after,
  .header-actions .social-link:focus-visible::after {
    transform: translateX(-50%) translateY(0);
  }
}

.main-page {
  padding: 0 32px 0;
}

.hero {
  min-height: 620px;
}

.hero-copy {
  max-width: 1040px;
  padding: 120px 0 0 62px;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(4rem, 7vw, 5.8rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: 0;
}

.hero-lead,
.hero-text,
.case-study-summary,
.case-study-meta,
.case-study-points,
.case-study-role {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.55;
}

.hero-lead {
  max-width: 1120px;
  margin: 38px 0 0;
}

.hero-text {
  max-width: 1460px;
  margin: 54px 0 0;
}

.hero-expertise {
  max-width: 1340px;
  margin: 32px 0 0;
  padding-left: 18px;
  border-left: 3px solid var(--link-hover);
  color: var(--text);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 600;
  line-height: 1.7;
}

.projects-showcase {
  padding-top: 12px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.project-visual {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  isolation: isolate;
  --spot-x: 50%;
  --spot-y: 50%;
  transition: transform 260ms ease, box-shadow 260ms ease, opacity 180ms ease;
}

.project-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(250, 67, 176, 0.2), transparent 34%);
  opacity: 0;
  transition: opacity 260ms ease;
  pointer-events: none;
  z-index: 1;
}

.project-visual-upcoming {
  display: block;
  cursor: default;
  background:
    radial-gradient(circle at top left, rgba(243, 193, 100, 0.2), transparent 36%),
    linear-gradient(160deg, #303056 0%, #17172b 100%);
}

.project-visual-upcoming:hover {
  opacity: 1;
}

.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px;
  background: linear-gradient(180deg, rgba(4, 4, 17, 0.08), rgba(4, 4, 17, 0.7));
  color: #ffffff;
  z-index: 2;
}

.project-overlay strong {
  font-size: 2rem;
  font-weight: 800;
}

.project-overlay small {
  margin-top: 8px;
  font-size: 1.05rem;
  font-weight: 500;
}

.project-overlay-upcoming {
  background: linear-gradient(180deg, rgba(4, 4, 17, 0.12), rgba(4, 4, 17, 0.82));
}

.project-overlay-upcoming::before {
  content: attr(data-status-label);
  position: absolute;
  top: 24px;
  right: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 10px 16px;
  font-family: "Open Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  z-index: 3;
}

.case-study {
  padding: 120px 0 0;
}

.case-study-shell {
  max-width: 1340px;
  padding-left: 62px;
}

.case-study h2 {
  margin: 0;
  font-size: clamp(3.2rem, 6vw, 5.6rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: 0;
}

.case-study-period {
  margin: 24px 0 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 800;
}

.case-study-rule {
  width: 100px;
  height: 5px;
  margin-top: 32px;
  background: var(--text);
}

.case-study-summary {
  max-width: 1120px;
  margin: 36px 0 0;
  line-height: 1.4;
}

.case-study-meta {
  max-width: 1000px;
  margin: 28px 0 0;
  line-height: 1.4;
}

.case-study-points {
  max-width: 1180px;
  margin: 28px 0 0;
  padding-left: 40px;
  line-height: 1.4;
}

.case-study-points li + li {
  margin-top: 6px;
}

.case-study-link {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 40px;
  padding: 16px 24px;
  border: 2px solid var(--text);
  border-radius: 999px;
  background: var(--text);
  color: #ffffff;
  font-family: "Roboto", sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 12px 28px rgba(48, 48, 86, 0.16);
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.wide-image {
  padding-top: 24px;
}

.wide-image img {
  width: 100%;
  height: auto;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.case-study-alfa {
  padding-top: 120px;
}

.case-study-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 60px;
  align-items: start;
}

.case-study-role {
  max-width: 780px;
  margin: 26px 0 0;
  font-weight: 700;
  line-height: 1.4;
}

.alfa-summary {
  max-width: 740px;
}

.alfa-points {
  max-width: 860px;
}

.alfa-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 24px;
}

.alfa-logo {
  width: min(100%, 280px);
  object-fit: contain;
}

.alfa-showcase {
  position: relative;
  width: min(100%, 420px);
  min-height: 720px;
  padding: 0;
  isolation: isolate;
  background: #eeeeee;
  overflow: visible;
}

.alfa-showcase::before {
  content: none;
}

.alfa-showcase::after {
  content: none;
}

.alfa-showcase-band {
  width: 100vw;
  margin-top: 48px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: visible;
}

.alfa-showcase-wide {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(16px, 2vw, 28px);
  width: 100%;
  min-height: clamp(460px, 48vw, 720px);
  padding: 28px clamp(24px, 4vw, 48px) 72px;
}

.alfa-showcase-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.alfa-bg-layer {
  position: absolute;
  display: block;
  height: auto;
  max-width: none;
}

.alfa-bg-red {
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-52%);
}

.alfa-bg-dark {
  top: 50%;
  left: 0;
  width: min(68%, 760px);
  transform: translate(-8%, -58%);
}

.alfa-bg-light {
  top: 50%;
  left: 50%;
  width: min(58%, 680px);
  transform: translate(-6%, -16%) rotate(-174deg);
}

.alfa-device-card {
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  height: clamp(260px, 34vw, 420px);
  aspect-ratio: 1293 / 2592;
  border-radius: 34px;
  background: #ffffff;
  box-shadow: 0 26px 56px rgba(17, 22, 39, 0.16);
  will-change: transform;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 320ms ease, filter 320ms ease;
  transform-origin: center bottom;
  z-index: 2;
}

.alfa-device-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

@media (hover: hover) and (pointer: fine) {
  .alfa-showcase-wide:hover .alfa-device-card {
    filter: saturate(0.92);
  }

  .alfa-showcase-wide .alfa-device-card:hover {
    transform: scale(1.32) translateY(-16px);
    box-shadow: 0 34px 72px rgba(17, 22, 39, 0.24);
    filter: none;
    z-index: 4;
  }
}

.site-footer {
  margin-top: 42px;
  padding: 48px 32px 32px;
  background: var(--dark);
  color: #ffffff;
}

.homepage .site-footer {
  margin-top: 0;
}

.footer-shell {
  max-width: 1220px;
  margin: 0 auto;
  text-align: center;
}

.footer-primary-contact {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-email-tools {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-email-tools > a.footer-icon-button {
  order: 1;
}

.footer-email-tools > button.footer-icon-button {
  order: 2;
}

.footer-email {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.15;
}

.footer-icon-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ffffff;
  box-shadow: none;
  transition: color 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.footer-icon-button svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.footer-icon-button.is-copied {
  color: var(--link-hover);
}

@media (hover: hover) and (pointer: fine) {
  .footer-icon-button::after {
    content: attr(aria-label);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-family: "Open Sans", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(4px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .footer-icon-button:hover::after,
  .footer-icon-button:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.footer-name {
  margin: 16px 0 0;
  font-size: 0.95rem;
}

.footer-mail-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.footer-contact-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.footer-socials {
  justify-content: center;
  margin-top: 38px;
}

.footer-social-link {
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
}

.footer-social-link svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
}

.footer-divider {
  width: min(100%, 640px);
  margin: 34px auto 0;
  border-top: 1px solid rgba(235, 235, 235, 0.2);
}

.language-switcher {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
  font-size: 14px;
}

.language-switcher a {
  color: rgba(255, 255, 255, 0.72);
}

.language-switcher a[aria-current="page"] {
  color: #ffffff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.main-nav a:hover,
.social-link:hover,
.footer-social-link:hover,
.case-study-link:hover,
.project-visual:hover,
.footer-email:hover,
.footer-mail-button:hover {
  opacity: 0.78;
}

.project-visual:hover {
  opacity: 1;
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(48, 48, 86, 0.16);
}

.project-visual:hover::after {
  opacity: 1;
}

.project-visual:hover img {
  transform: scale(1.035);
}

.wide-image:hover img {
  transform: scale(1.012);
}

.detail-main {
  padding: 0;
}

.case-page {
  background: #ffffff;
}

.case-page-dark {
  background: #12101b;
  color: #ffffff;
}

.page-shell {
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto;
}

.page-hero {
  padding: 70px 0 56px;
}

.page-hero-light {
  background: linear-gradient(180deg, #fffdf7 0%, #ffffff 100%);
}

.page-hero-dark {
  background: linear-gradient(180deg, #171321 0%, #12101b 100%);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: 48px;
  align-items: center;
}

.page-kicker {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.64;
}

.page-hero-copy h1 {
  margin: 16px 0 0;
  font-size: clamp(3rem, 6vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.ivi-hero-grid {
  grid-template-columns: minmax(0, 760px);
}

.ivi-hero-title img {
  display: block;
  width: min(220px, 55vw);
  height: auto;
}

.page-subtitle,
.page-body,
.story-section p,
.metric-card span,
.metric-card strong,
.story-card p {
  margin: 0;
}

.page-subtitle {
  margin-top: 26px;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.5;
  opacity: 0.94;
}

.page-body {
  margin-top: 28px;
  font-size: 1.08rem;
  line-height: 1.8;
  opacity: 0.82;
}

.page-hero-media img,
.gallery-grid img,
.content-stack img {
  width: 100%;
  border-radius: 24px;
}

.metrics-section {
  padding: 0 0 24px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.metric-card {
  padding: 24px;
  border-radius: 20px;
  background: #f7f7fb;
  border: 1px solid rgba(48, 48, 86, 0.08);
}

.metric-card span {
  display: block;
  font-size: 0.9rem;
  opacity: 0.64;
}

.metric-card strong {
  display: block;
  margin-top: 12px;
  font-size: 1.35rem;
  line-height: 1.35;
}

.dark-surface {
  background: #12101b;
  color: #ffffff;
}

.dark-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.story-section {
  padding: 68px 0;
}

.alt-surface {
  background: #f7f7fb;
}

.alt-surface-dark {
  background: #171321;
}

.split-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.story-section h2,
.story-section h3 {
  margin: 0 0 18px;
  line-height: 1.1;
}

.story-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.story-section h3 {
  font-size: 1.2rem;
}

.story-section p,
.story-card p {
  font-size: 1.02rem;
  line-height: 1.8;
  opacity: 0.88;
}

.story-card-list {
  display: grid;
  gap: 18px;
}

.challenge-card-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 28px 0 40px;
}

.story-list {
  margin: 0;
  padding-left: 22px;
}

.story-list li {
  line-height: 1.8;
  opacity: 0.88;
}

.role-stage {
  margin-top: 48px;
}

.case-steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 28px;
}

.case-steps li {
  padding-left: 8px;
  font-size: 20px;
  line-height: 1.7;
}

.case-cta {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  padding: 14px 22px;
  border: 2px solid var(--text);
  border-radius: 999px;
  background: var(--text);
  color: #ffffff;
  font-family: "Roboto", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 10px 24px rgba(48, 48, 86, 0.14);
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.case-cta-light {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--dark);
}

.outcome-card,
.story-heading-spaced {
  margin-top: 32px;
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.story-card {
  padding: 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(48, 48, 86, 0.08);
}

.content-stack {
  display: grid;
  gap: 24px;
}

.gallery-grid {
  display: grid;
  gap: 20px;
}

.project-links-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.project-link-button {
  display: inline-flex;
  min-width: 104px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border: 1px solid #303056;
  border-radius: 14px;
  background: #303056;
  color: #ffffff;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(48, 48, 86, 0.14);
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.project-link-button svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.project-link-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  object-fit: contain;
}

.project-link-icon-figma {
  filter: brightness(0) invert(1);
}

.project-link-button:hover,
.project-link-button:focus-visible {
  border-color: #f3c164;
  background: #f3c164;
  color: #303056;
  text-shadow: none;
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(243, 193, 100, 0.28);
}

.project-link-button:hover .project-link-icon-figma,
.project-link-button:focus-visible .project-link-icon-figma {
  filter: none;
}

.project-link-button:active {
  transform: translateY(0);
  box-shadow: none;
}

.detail-back-link {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 22px;
  border: 2px solid var(--text);
  border-radius: 999px;
  background: transparent;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.case-study-link span,
.case-cta span {
  transition: transform 180ms ease;
}

.case-study-link:hover,
.case-cta:hover,
.detail-back-link:hover {
  border-color: var(--link-hover);
  background: var(--link-hover);
  color: #ffffff;
  opacity: 1;
  text-shadow: none;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(250, 67, 176, 0.24);
}

.case-study-link:hover span,
.case-cta:hover span {
  transform: translateX(4px);
}

.case-study:not(.case-study-alfa) .case-study-link:hover {
  border-color: #ffc600;
  background: #ffc600;
  color: var(--text);
  box-shadow: 0 14px 30px rgba(255, 198, 0, 0.28);
}

.case-study-alfa .case-study-link:hover {
  border-color: #ef3124;
  background: #ef3124;
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(239, 49, 36, 0.26);
}

.case-study-link:active,
.case-cta:active,
.detail-back-link:active {
  transform: translateY(0);
  box-shadow: none;
}

.case-study-link:focus-visible,
.case-cta:focus-visible,
.detail-back-link:focus-visible {
  outline: 3px solid rgba(250, 67, 176, 0.38);
  outline-offset: 4px;
}

.accent-gold {
  color: #f3c164;
}

.gallery-grid.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.video-showcase {
  display: grid;
  gap: 18px;
}

.presentation-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.presentation-column {
  min-width: 0;
}

.video-showcase-secondary {
  max-width: 860px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(48, 48, 86, 0.12);
  background: #0f0d17;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.case-page-dark .video-frame {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.34);
}

.video-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.video-caption {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  opacity: 0.78;
}

.speaking-block {
  display: grid;
  gap: 28px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
}

.case-page:not(.case-page-dark) .speaking-block {
  background: #f7f7fb;
  border-color: rgba(48, 48, 86, 0.08);
}

.credential-card {
  display: grid;
  gap: 14px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.credential-logo {
  width: min(180px, 52vw);
  height: auto;
  margin-bottom: 8px;
}

.case-page:not(.case-page-dark) .credential-card {
  border-bottom-color: rgba(48, 48, 86, 0.1);
}

.credential-label {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.66;
}

.credential-title {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.3;
}

.credential-meta {
  margin: 0;
  line-height: 1.7;
  opacity: 0.84;
}

.carousel-shell {
  display: grid;
  gap: 18px;
}

.carousel-progress {
  position: relative;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.case-page:not(.case-page-dark) .carousel-progress {
  background: rgba(48, 48, 86, 0.08);
}

.carousel-progress-bar {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fa43b0 0%, #f3c164 100%);
  transform-origin: left center;
  transition: transform 320ms ease;
}

.carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.carousel-header h3 {
  margin: 0;
}

.carousel-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.carousel-counter {
  min-width: 54px;
  text-align: center;
  font-family: "Roboto", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  opacity: 0.78;
}

.carousel-button {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-family: "Roboto", sans-serif;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.carousel-button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
}

.carousel-button:disabled {
  opacity: 0.42;
  cursor: default;
}

.case-page:not(.case-page-dark) .carousel-button {
  border-color: rgba(48, 48, 86, 0.14);
  background: rgba(48, 48, 86, 0.04);
  color: var(--text);
}

.case-page:not(.case-page-dark) .carousel-button:hover:not(:disabled) {
  background: rgba(48, 48, 86, 0.1);
  border-color: rgba(48, 48, 86, 0.2);
}

.carousel-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.case-page:not(.case-page-dark) .carousel-viewport {
  scrollbar-color: rgba(48, 48, 86, 0.3) transparent;
}

.carousel-track {
  display: flex;
  gap: 20px;
}

.carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: grid;
  gap: 12px;
  opacity: 0.52;
  transform: scale(0.985);
  transition: opacity 240ms ease, transform 240ms ease;
}

.carousel-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.carousel-slide img {
  width: 100%;
  border-radius: 24px;
}

.carousel-caption {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  opacity: 0.78;
}

@media (max-width: 1100px) {
  .header-shell {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 70px;
    padding: 12px 20px;
  }

  .main-page {
    padding: 28px 24px 0;
  }

  .hero-copy,
  .case-study-shell {
    padding-left: 0;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    padding-top: 62px;
  }

  .projects-grid,
  .case-study-grid {
    grid-template-columns: 1fr;
  }

  .page-shell {
    width: min(1200px, calc(100% - 48px));
  }

  .page-hero-grid,
  .metrics-grid,
  .split-section,
  .gallery-grid.two-up,
  .feature-grid,
  .challenge-card-list {
    grid-template-columns: 1fr;
  }

  .project-links-row {
    justify-content: flex-start;
  }

  .project-visual {
    min-height: 420px;
  }

  .alfa-logo-wrap {
    justify-content: flex-start;
    padding-top: 0;
  }

  .alfa-showcase {
    width: min(100%, 520px);
    min-height: 660px;
    margin-inline: auto;
  }

  .alfa-showcase-band {
    margin-top: 40px;
  }

  .alfa-showcase-wide {
    min-height: 560px;
    gap: 18px;
    padding: 24px 24px 52px;
  }

  .alfa-showcase-bg {
    height: clamp(280px, 33vw, 420px);
  }

  .alfa-bg-red {
    width: 100%;
  }

  .alfa-bg-dark {
    width: min(76%, 620px);
  }

  .alfa-bg-light {
    width: min(62%, 520px);
  }

  .alfa-device-card {
    height: clamp(220px, 30vw, 340px);
  }

  .carousel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .carousel-track {
    gap: 16px;
  }
}

@media (max-width: 980px) {
  .main-page,
  .detail-main {
    padding-top: 132px;
  }
}

@media (max-width: 640px) {
  .main-page {
    padding: 148px 16px 0;
  }

  .detail-main {
    padding-top: 148px;
  }

  .page-shell {
    width: calc(100% - 32px);
  }

  .page-hero {
    padding: 36px 0 28px;
  }

  .metrics-grid,
  .story-card-list,
  .content-stack,
  .gallery-grid {
    gap: 16px;
  }

  .video-showcase {
    gap: 14px;
  }

  .presentation-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .speaking-block {
    gap: 22px;
    padding: 18px;
  }

  .credential-card {
    padding-bottom: 22px;
  }

  .metric-card,
  .story-card {
    padding: 18px;
  }

  .story-section {
    padding: 44px 0;
  }

  .hero-copy {
    padding-top: 28px;
  }

  .hero h1 {
    font-size: clamp(3rem, 14vw, 4.2rem);
  }

  .hero-lead,
  .hero-text,
  .case-study-summary,
  .case-study-meta,
  .case-study-points,
  .case-study-role {
    font-size: clamp(1.2rem, 6vw, 1.55rem);
    line-height: 1.45;
  }

  .hero-text {
    margin-top: 34px;
  }

  .hero-expertise {
    margin-top: 24px;
    font-size: 1rem;
    line-height: 1.6;
  }

  .case-study-summary,
  .case-study-meta,
  .case-study-points {
    margin-top: 24px;
  }

  .case-study {
    padding-top: 72px;
  }

  .case-study-rule {
    width: 72px;
    margin-top: 30px;
  }

  .case-study-link {
    margin-top: 32px;
    font-size: 18px;
  }

  .project-overlay {
    padding: 20px;
  }

  .project-overlay strong {
    font-size: 1.5rem;
  }

  .site-footer {
    padding: 40px 20px 28px;
  }

  .project-link-button {
    min-width: 0;
    width: calc(50% - 8px);
  }

  .alfa-showcase-wide {
    min-height: 0;
    gap: 14px;
    padding: 20px 16px 40px;
  }

  .alfa-bg-red {
    width: 100%;
  }

  .alfa-bg-dark {
    width: min(90%, 360px);
  }

  .alfa-bg-light {
    width: min(74%, 300px);
  }

  .alfa-device-card {
    height: min(34vw, 170px);
  }
}

@media (max-width: 480px) {
  .main-page {
    padding-top: 182px;
  }

  .detail-main {
    padding-top: 182px;
  }

  .project-link-button {
    width: 100%;
  }

  .alfa-showcase {
    min-height: 0;
  }

  .alfa-showcase-wide {
    padding: 16px 12px 28px;
  }

  .alfa-device-card {
    height: min(38vw, 142px);
  }

  .alfa-showcase-wide {
    gap: 8px;
  }

  .alfa-bg-red {
    width: 100%;
  }

  .alfa-bg-dark {
    width: 98%;
  }

  .alfa-bg-light {
    width: 84%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  body.motion-ready .motion-hero-item,
  body.motion-ready .motion-reveal {
    opacity: 1;
    transform: none;
  }
}

.brand,
.main-nav a,
.project-overlay strong,
.case-study h2,
.case-study-period,
.footer-email,
.page-hero-copy h1,
.metric-card strong,
.story-section h2,
.story-section h3,
.detail-back-link {
  color: inherit;
  font-family: "Roboto", sans-serif;
  font-weight: 600;
}

.case-page:not(.case-page-dark) .page-hero-copy h1,
.case-page:not(.case-page-dark) .story-section h2,
.case-page:not(.case-page-dark) .story-section h3,
.case-page:not(.case-page-dark) .metric-card strong {
  color: var(--text);
}

.hero-lead,
.hero-text,
.case-study-summary,
.case-study-meta,
.case-study-points,
.case-study-role,
.project-overlay small,
.footer-name,
.page-subtitle,
.page-body,
.story-section p,
.story-card p,
.story-list li,
.metric-card span {
  font-family: "Open Sans", sans-serif;
  font-size: 20px;
  font-weight: 400;
}

.main-nav a {
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  font-weight: 600;
}

.main-nav a:hover,
.social-link:hover,
.footer-social-link:hover,
.project-visual:hover,
.footer-email:hover,
.footer-icon-button:hover {
  color: var(--link-hover);
  opacity: 1;
}

.footer-mail-button:hover {
  border-color: var(--link-hover);
  background: var(--link-hover);
  color: #ffffff;
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(250, 67, 176, 0.24);
}

.footer-icon-button:hover {
  color: var(--link-hover);
  transform: translateY(-1px);
}

a:hover {
  color: var(--link-hover);
  text-shadow: 0 0 12px rgba(250, 67, 176, 0.24);
}

.social-link:hover svg,
.footer-social-link:hover svg {
  fill: var(--link-hover);
}
