.hero { padding-top: clamp(32px, 5.2vw, 78px); }

.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(24px, 5vw, 72px);
}

.hero-label { gap: 8px; }
.hero-label > span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  margin-top: 15px;
  font: 650 clamp(2.5rem, 5.55vw, 5.1rem)/1.06 var(--display);
  letter-spacing: -.038em;
}
.hero-line { display: block; padding-block: .05em; }
.hero-line > span { display: block; }
.hero-period { color: var(--accent); }

.hero-summary { max-width: 34ch; padding-bottom: 4px; }
.hero-description { color: #39384d; font-size: clamp(1.06rem, 1.5vw, 1.24rem); line-height: 1.52; }
.hero .actions { margin-top: 22px; }
.hero .button { min-height: 51px; padding-inline: 18px; }
.hero .button--secondary { border-color: #d6d3e2; background: rgb(255 255 255 / 28%); }
.hero .button--secondary:hover { border-color: var(--muted); background: #fff; }
.play-glyph { width: 9px; height: 11px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.hero-meta { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--muted); font-size: .85rem; }
.portrait-icon { width: 9px; height: 13px; border: 1px solid var(--accent); border-radius: 2px; }

.hero-case {
  display: grid;
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0, 1.36fr) minmax(0, .77fr) minmax(0, .84fr);
  grid-template-areas: "camera reel carplay";
  align-items: start;
  gap: clamp(12px, 2.8vw, 40px);
  margin: clamp(42px, 5vw, 76px) auto 0;
  padding: 4px clamp(4px, 3vw, 44px) 25px;
}
.hero-case::before {
  position: absolute;
  z-index: -1;
  inset: -10% -3% -7%;
  background: radial-gradient(ellipse at 42% 60%, rgb(111 97 202 / 15%), transparent 63%);
  content: "";
  pointer-events: none;
}

.hero-reel { position: relative; z-index: 1; grid-area: reel; width: min(100%, 248px); justify-self: center; }
.hero-player, .work-feature { display: block; position: relative; overflow: hidden; width: 100%; padding: 0; border: 0; background: #1b1927; color: #fff; text-align: left; cursor: pointer; }
.hero-player { aspect-ratio: 9 / 16; border: 1px solid #6f6b83; border-radius: 16px; box-shadow: 0 19px 48px rgb(34 24 74 / 22%); }
.hero-player > img, .hero-teaser, .hero-reel-shade, .hero-still > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.hero-teaser { opacity: 0; transition: opacity 240ms ease-out; }
.hero-teaser.is-ready { opacity: 1; }
.hero-reel-shade { background: linear-gradient(0deg, rgb(9 9 18 / 84%), transparent 34%, transparent 85%, rgb(9 9 18 / 62%)); }
.hero-format { position: absolute; top: 13px; left: 13px; padding: 3px 7px; border: 1px solid rgb(246 245 251 / 42%); border-radius: 6px; background: rgb(17 17 26 / 60%); color: #fff; font-size: .74rem; font-variant-numeric: tabular-nums; }
.hero-reel-caption { display: flex; position: absolute; right: 12px; bottom: 13px; left: 12px; align-items: center; gap: 9px; font-size: .84rem; font-weight: 600; }
.hero-reel-caption .play-icon { position: static; flex: 0 0 34px; width: 34px; height: 34px; }
.hero-reel-caption .play-icon::after { width: 8px; height: 10px; }
.hero-player:hover .play-icon, .work-feature:hover .play-icon { border-color: var(--accent); background: var(--accent); color: #fff; }
.hero-preview-toggle { display: grid; position: absolute; top: 7px; right: 7px; width: 44px; height: 44px; place-content: center; padding: 0; border: 0; border-radius: 9px; background: rgb(17 17 26 / 72%); color: #fff; cursor: pointer; }
.hero-preview-toggle:hover { background: #393062; }
.hero-preview-toggle span { display: block; width: 9px; height: 11px; margin-left: 1px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.hero-preview-toggle[data-playing="true"] span { width: 9px; margin: 0; border-inline: 3px solid currentColor; background: none; clip-path: none; }

.hero-still {
  display: block;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgb(21 17 40 / 20%);
  border-radius: 15px;
  background: #222032;
  color: #fff;
  text-align: left;
  box-shadow: 0 16px 42px rgb(40 27 82 / 19%);
  cursor: pointer;
  transition: transform 280ms cubic-bezier(.2, .75, .25, 1);
}
.hero-still::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg, rgb(14 12 23 / 84%), transparent 53%); content: ""; }
.hero-still > img { z-index: -2; }
.hero-still--left { grid-area: camera; aspect-ratio: 1.52; margin-top: 13%; transform: rotate(-3.2deg); }
.hero-still--left img { object-position: 50% 57%; }
.hero-still--right { grid-area: carplay; aspect-ratio: .91; margin-top: 30%; transform: rotate(4deg); }
.hero-still--right img { object-position: 50% 33%; }
.hero-still:hover { transform: translateY(-5px) rotate(0); }
.hero-plate { position: absolute; right: 14px; bottom: 14px; left: 14px; line-height: 1.25; }
.hero-plate > span { display: block; color: #fff; font: 550 clamp(.78rem, 1.55vw, 1.15rem)/1.25 var(--display); letter-spacing: -.042em; }
.hero-plate small { display: block; margin-top: 4px; color: #e2dfea; font-size: .79rem; }

.studio-note { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: clamp(20px, 6vw, 90px); padding-block: clamp(54px, 7.8vw, 112px) clamp(44px, 5.8vw, 84px); }
.studio-note h2 {
  max-width: 16ch;
  margin-top: 14px;
  font: 500 clamp(1.55rem, 3.65vw, 3.35rem)/1.15 var(--display);
  letter-spacing: -.036em;
  text-wrap: pretty;
}
.studio-note h2 > span:not(.studio-note-word) { color: #5141b7; }
.studio-note-copy { max-width: 53ch; color: var(--muted); font-size: clamp(1rem, 1.55vw, 1.19rem); line-height: 1.65; }
.studio-note-copy p + p { margin-top: 14px; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-head .text-link { flex: none; margin-bottom: 5px; }
.work-section { padding-bottom: clamp(64px, 8vw, 108px); }
.work-section .section-description { max-width: 55ch; margin-top: 14px; }
.work-showcase { display: grid; grid-template-columns: minmax(0, 1.68fr) minmax(0, 1fr); grid-template-areas: "feature choices" "feature story"; gap: 12px 16px; }
.work-showcase:has(.work-selector[hidden]) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "feature" "story"; }
.work-feature { grid-area: feature; min-height: clamp(344px, 32vw, 460px); border-radius: 19px; }
.work-feature > img, .work-feature-shade { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--work-crop, 50% 34%); }
.work-feature[data-selected="new-la"] { --work-crop: 50% 51%; }
.work-feature[data-selected="surge-gestion"] { --work-crop: 50% 39%; }
.work-feature-shade { background: linear-gradient(0deg, rgb(13 12 23 / 88%), transparent 51%); }
.work-feature-caption { position: absolute; right: 24px; bottom: 24px; left: 24px; display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.work-feature-caption strong, .work-feature-caption small { display: block; }
.work-feature-caption strong { font: 550 clamp(1.35rem, 2.65vw, 2.55rem)/1.12 var(--display); letter-spacing: -.05em; }
.work-feature-caption small { margin-top: 5px; color: #deddea; font-size: .875rem; }
.work-feature-caption .play-icon { position: static; flex: 0 0 52px; width: 52px; height: 52px; }
.work-selector { display: grid; grid-area: choices; gap: 8px; }
.work-choice { display: grid; grid-template-columns: 64px minmax(0, 1fr) 8px; align-items: center; gap: clamp(10px, 1.4vw, 18px); min-height: 64px; padding: 10px 12px; border: 1px solid transparent; border-radius: 14px; background: rgb(255 255 255 / 55%); text-align: left; cursor: pointer; transition: border-color var(--ease), background var(--ease); }
.work-choice:is(:hover, [aria-pressed="true"]) { border-color: #c9c4e7; background: #ebe8fa; }
.work-choice img { width: 64px; height: 50px; border-radius: 6px; object-fit: cover; object-position: 50% 37%; }
.work-choice-copy strong, .work-choice-copy small { display: block; line-height: 1.23; }
.work-choice-copy strong { font-weight: 650; }
.work-choice-copy small { margin-top: 6px; color: var(--muted); font-size: .835rem; }
.work-choice-state { width: 7px; height: 7px; border-radius: 50%; }
.work-choice[aria-pressed="true"] .work-choice-state { background: var(--accent); }
.work-story { grid-area: story; min-height: 10rem; padding: 18px 20px; border: 1px solid #e3e0ee; border-radius: 14px; background: rgb(255 255 255 / 64%); }
.work-story h3 { font: 550 clamp(.97rem, 1.5vw, 1.2rem)/1.3 var(--display); letter-spacing: -.05em; }
.work-story p { margin-top: 8px; color: var(--muted); }

.craft-section { padding-bottom: clamp(60px, 8vw, 108px); }
.craft-inner { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: center; gap: clamp(26px, 5vw, 70px); }
.craft-copy p:not(.eyebrow) { max-width: 48ch; margin-top: 14px; color: var(--muted); }
.craft-copy .button { margin-top: 20px; }
.craft-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.craft-comparison figure { margin: 0; overflow: hidden; border: 1px solid #e1deec; border-radius: 14px; background: #f9f8fc; }
.craft-comparison img { width: 100%; aspect-ratio: 1.24; object-fit: cover; object-position: 46% 55%; }
.craft-comparison figcaption { padding: 9px 12px; color: var(--muted); font-size: .88rem; font-weight: 600; }

.studio-inner { padding: clamp(24px, 5vw, 64px); border-radius: 24px; background: #eae8f3; }
.studio-brief { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: 24px; }
.studio-brief > div:last-child { max-width: 46ch; color: var(--muted); }
.studio-brief .text-link { margin-top: 12px; }
.studio-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: clamp(24px, 5vw, 52px) 0 0; padding: 0; list-style: none; }
.studio-steps li { padding: clamp(14px, 1.7vw, 22px); border-radius: 12px; background: rgb(255 255 255 / 65%); }
.studio-steps li > span { color: var(--accent); font-size: .81rem; font-variant-numeric: tabular-nums; }
.studio-steps h3 { margin-top: 9px; font: 550 clamp(.86rem, 1.4vw, 1.06rem)/1.28 var(--display); letter-spacing: -.05em; }
.studio-steps p { margin-top: 6px; color: var(--muted); font-size: .92rem; }

.faq-section { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: clamp(24px, 6vw, 72px); padding-block: clamp(60px, 8vw, 104px); }
.faq-section .section-title { max-width: 13ch; text-wrap: initial; }
.faq-list { display: grid; gap: 8px; }
.faq-list details { border-radius: 11px; background: rgb(255 255 255 / 66%); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 18px; font-weight: 550; list-style: none; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { flex: 0 0 18px; width: 18px; height: 18px; color: var(--accent); background: linear-gradient(currentColor, currentColor) center / 12px 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 12px no-repeat; content: ""; }
.faq-list details[open] summary::after { background-size: 12px 1px, 0 0; }
.faq-list summary:hover { color: var(--accent); }
.faq-list p { max-width: 59ch; padding: 0 18px 17px; color: var(--muted); }

.contact-section { padding-bottom: clamp(48px, 7vw, 88px); }
.contact-inner { display: flex; position: relative; isolation: isolate; overflow: hidden; align-items: end; justify-content: space-between; gap: 24px; padding: clamp(24px, 5vw, 64px); border-radius: 24px; background: #1b1830; color: #f7f6ff; }
.contact-plasma { position: absolute; z-index: -1; inset: 0; background: radial-gradient(ellipse at 90% 80%, #423977, transparent 62%); pointer-events: none; }
.contact-plasma canvas { display: block; width: 100%; height: 100%; opacity: .8; }
.contact-inner .section-title { margin-top: 0; }
.contact-inner p { max-width: 49ch; margin-top: 12px; color: #d8d5ef; }
.contact-inner .actions { flex-shrink: 0; }
.contact-inner :focus-visible { outline-color: #c5bfff; }
.contact-primary { background: #f6f4ff; color: #191727; }
.contact-primary:hover { background: #dcd7ff; }
.contact-secondary { border-color: #9087ba; color: #fff; }
.contact-secondary:hover { background: #42396c; }

@media (prefers-reduced-motion: no-preference) {
  html[data-studio-intro] .hero, .hero[data-intro-delay] { --hero-entry-offset: 350ms; }

  @keyframes hero-line-in {
    from { transform: translateY(114%) rotate(1.7deg); }
    to { transform: none; }
  }

  @keyframes hero-copy-in {
    from { opacity: 0; translate: 0 14px; }
    to { opacity: 1; translate: none; }
  }

  @keyframes hero-frame-in {
    from {
      opacity: 0;
      translate: var(--drift-x, 0px) calc(var(--drift-y, 0px) + 32px);
    }
    to {
      opacity: 1;
      translate: var(--drift-x, 0px) var(--drift-y, 0px);
    }
  }

  .hero-line { overflow: clip; }
  .hero-line > span {
    transform-origin: left bottom;
    animation: hero-line-in 720ms cubic-bezier(.2, .68, .2, 1) backwards;
    animation-delay: calc(var(--hero-entry-offset, 0ms) + var(--hero-entry-step, 36ms));
  }
  .hero-line:nth-child(2) > span { --hero-entry-step: 105ms; }

  .hero-label, .hero-summary > * {
    animation: hero-copy-in 530ms cubic-bezier(.2, .7, .2, 1) backwards;
    animation-delay: calc(var(--hero-entry-offset, 0ms) + var(--hero-entry-step, 0ms));
  }
  .hero-description { --hero-entry-step: 112ms; }
  .hero-summary .actions { --hero-entry-step: 168ms; }
  .hero-summary .hero-meta { --hero-entry-step: 222ms; }

  .hero-case > * {
    translate: var(--drift-x, 0px) var(--drift-y, 0px);
    animation: hero-frame-in 740ms cubic-bezier(.18, .66, .22, 1) backwards;
    animation-delay: calc(var(--hero-entry-offset, 0ms) + var(--hero-entry-step, 188ms));
  }
  .hero-still--left {
    --hero-entry-step: 245ms;
    --drift-x: calc(var(--collage-progress, 0) * -12px);
    --drift-y: calc(var(--collage-progress, 0) * -25px);
  }
  .hero-reel { --drift-y: calc(var(--collage-progress, 0) * -11px); }
  .hero-still--right {
    --hero-entry-step: 300ms;
    --drift-x: calc(var(--collage-progress, 0) * 12px);
    --drift-y: calc(var(--collage-progress, 0) * -36px);
  }

  .studio-note [data-ink-motion] .studio-note-word {
    display: inline-block;
    filter: blur(2.5px);
    opacity: .57;
    transition: filter 340ms ease-out, opacity 340ms ease-out;
  }
  .studio-note [data-ink-motion] .is-inked { filter: none; opacity: 1; }
}

@media (max-width: 980px) {
  .hero-copy { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; }
  .hero h1 { font-size: clamp(2.08rem, 4.95vw, 3.55rem); }
  .contact-inner { align-items: start; flex-direction: column; }
}

@media (max-width: 760px) {
  .hero { padding-top: 26px; }
  .hero-copy, .studio-note, .work-showcase, .craft-inner, .studio-brief, .faq-section { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: clamp(1.75rem, 8.7vw, 3.65rem); }
  .hero-copy { gap: 12px; }
  .hero-description { font-size: 1rem; }
  .hero .actions { display: grid; grid-template-columns: 1.13fr 1fr; gap: 8px; margin-top: 16px; }
  .hero .button { min-height: 46px; gap: 6px; padding-inline: 10px; }
  .hero-meta { margin-top: 10px; }
  .hero-case {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    grid-template-areas: "reel camera" "reel carplay";
    grid-template-rows: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px;
    width: min(100%, 520px);
    margin: 22px 0 0;
    padding: 0;
  }
  .hero-reel { width: 100%; }
  .hero-player { border-radius: 14px; }
  .hero-still { min-height: 0; margin: 0; border-radius: 11px; aspect-ratio: auto; }
  .hero-still, .hero-still:hover { transform: none; }
  .hero-plate { right: 8px; bottom: 9px; left: 8px; }
  .hero-plate > span { font: 700 .88rem/1.1 var(--body); letter-spacing: 0; }
  .hero-plate small { margin-top: 3px; font-size: .73rem; }
  .hero-preview-toggle { top: 5px; right: 5px; background: rgb(17 17 26 / 72%); }
  .studio-note { gap: 16px; }
  .studio-note h2 { max-width: 23ch; }
  .section-head { align-items: start; flex-direction: column; gap: 10px; margin-bottom: 20px; }
  .section-head .text-link { display: inline-flex; min-height: 44px; align-items: center; margin: 0; }
  .work-showcase { grid-template-areas: "choices" "feature" "story"; }
  .work-feature { min-height: 0; aspect-ratio: 1.14; border-radius: 14px; }
  .work-selector { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .work-choice { grid-template-columns: minmax(0, 1fr); align-content: start; align-items: start; gap: 7px; min-height: 96px; padding: 6px; border-radius: 10px; }
  .work-choice img { width: 100%; height: auto; aspect-ratio: 1.55; }
  .work-choice-copy strong { font-size: .86rem; }
  .work-choice-copy small { margin-top: 3px; font-size: .75rem; }
  .work-choice-state { display: none; }
  .work-story { min-height: 0; padding: 16px; }
  .craft-inner { gap: 20px; }
  .studio-steps { grid-template-columns: minmax(0, 1fr); }
  .studio-steps li { display: grid; grid-template-columns: 25px minmax(0, 1fr); gap: 5px 10px; align-items: baseline; padding: 15px; }
  .studio-steps li > span { grid-row: span 2; }
  .studio-steps h3 { margin: 0; font-size: .98rem; }
  .studio-steps p { margin: 0; font-size: .98rem; }
  .faq-section .section-title { max-width: none; }
  .faq-section .section-description { margin-top: 12px; }
  .contact-inner .actions { width: 100%; }
}

@media (max-width: 410px) {
  .hero-reel-caption { right: 8px; bottom: 8px; left: 8px; font-size: .75rem; }
  .hero-reel-caption .play-icon { flex-basis: 30px; width: 30px; height: 30px; }
  .hero-format { top: 8px; left: 8px; }
  .work-feature-caption { right: 16px; bottom: 16px; left: 16px; }
}

@media (max-width: 350px) {
  .hero .button { padding-inline: 7px; font-size: .8rem; }
  .contact-inner .actions { display: grid; grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-teaser { opacity: 0 !important; }
}
