:root {
  color-scheme: light;
  --ink: #18212e;
  --night: #131b26;
  --paper: #ffffff;
  --muted: #485565;
  --line: #d8dde4;
  --blue: #2853ce;
  --blue-hover: #1d3ea3;
  --blue-light: #b7ccfb;
  --light-copy: #e3e8ef;
  --surface: #f6f7f9;
  --curve: 0.75rem;
  --nav-clearance: 5.8rem;
  --hero-overlap: clamp(1.5rem, 4vw, 3.5rem);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-clearance); }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.55; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img, video { display: block; width: 100%; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
.container { width: min(89%, 80rem); margin-inline: auto; }
.skip { position: fixed; z-index: 12; top: 1rem; left: 1rem; padding: 0.75rem; background: var(--blue); color: white; transform: translateY(-200%); }
.skip:focus { transform: none; }

.site-header { position: fixed; z-index: 10; inset: 0.9rem 0 auto; color: var(--ink); pointer-events: none; }
.header-inner { min-height: 4.1rem; display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; padding-inline: clamp(0.75rem, 2vw, 1.6rem); border: 1px solid var(--line); border-radius: 1rem; background: var(--paper); box-shadow: 0 0.35rem 1.65rem #131b2620; pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 0.62rem; font-size: 1.12rem; font-weight: 760; letter-spacing: -0.035em; text-decoration: none; white-space: nowrap; }
.brand-mark { flex: 0 0 auto; width: 2.9rem; height: auto; }
.nav { display: flex; gap: clamp(1.1rem, 3vw, 2.5rem); }
.nav a, .header-cta { text-decoration: none; font-size: 0.94rem; font-weight: 650; }
.nav a:hover { color: var(--blue); }
.hero-credit:hover { color: var(--blue-light); }
.header-cta { padding: 0.55rem 0.95rem; background: var(--blue); color: white; border-radius: 0.55rem; white-space: nowrap; }
.header-cta:hover { background: var(--blue-hover); }

.hero { position: relative; isolation: isolate; overflow: clip; background: var(--night); color: white; }
.hero-image, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: 66% 47%; }
.hero-motion { opacity: 0; pointer-events: none; transition: opacity 380ms ease; }
.hero-motion.is-playing { opacity: 1; }
.hero::after { content: ""; z-index: 0; background: linear-gradient(90deg, var(--night) 2%, #131b26f7 24%, #131b26dd 46%, #131b2640 72%, #131b2608 100%), linear-gradient(0deg, #131b26c2, #131b2600 43%); }
.hero-inner { position: relative; z-index: 1; min-height: clamp(36rem, 86svh, 51rem); display: grid; align-items: center; padding-block: calc(var(--nav-clearance) + 2rem) calc(var(--hero-overlap) + 4rem); }
.hero-copy { max-width: 45rem; }
.eyebrow { font-family: "IBM Plex Mono", Consolas, monospace; font-size: 0.875rem; letter-spacing: 0.04em; font-weight: 650; text-transform: uppercase; }
h1 { font-size: clamp(2.75rem, 5.9vw, 5.7rem); line-height: 0.99; letter-spacing: -0.06em; font-weight: 780; }
h1 em { display: block; font-style: normal; }
.hero-description { max-width: 34rem; margin-top: 1.65rem; color: var(--light-copy); font-size: clamp(1.06rem, 1.55vw, 1.27rem); }
.hero :focus-visible { outline-color: var(--blue-light); }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.65rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.15rem; border: 1px solid transparent; border-radius: 99px; padding: 0.6rem 1.22rem; text-decoration: none; font-weight: 740; text-align: center; }
.button-primary { background: var(--blue); color: white; }
.button-primary:hover { background: var(--blue-hover); }
.button-outline { background: transparent; border-color: currentColor; color: inherit; }
.button-outline:hover { background: var(--surface); color: var(--night); border-color: var(--blue); }
.hero .button { border-radius: 0.65rem; }
.hero-media-footer { position: absolute; right: 0; bottom: calc(var(--hero-overlap) + 1.25rem); display: flex; align-items: center; gap: 0.8rem; }
.hero-credit { color: white; font-size: 0.88rem; text-underline-offset: 0.22em; }
.hero-motion-toggle { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border-radius: 50%; border: 1px solid #ffffff75; color: white; background: #131b26a6; }
.hero-motion-toggle:hover { background: var(--night); }
.hero-motion-toggle span { width: 0.67rem; height: 0.76rem; border-inline: 0.17rem solid currentColor; }
.hero-motion-toggle[data-paused] span { width: 0; height: 0; border: 0.38rem solid transparent; border-right: 0; border-left: 0.58rem solid currentColor; margin-inline-start: 0.1rem; }

.services-section, .work-section, .process-section, .portfolio-section, .brief-section { padding-block: clamp(3.6rem, 7.5vw, 7.5rem); }
.section-heading { margin-bottom: clamp(1.7rem, 4vw, 3.4rem); }
.section-heading .eyebrow { margin-bottom: 0.8rem; color: var(--blue); }
h2 { font-size: clamp(2.65rem, 5.15vw, 5.25rem); line-height: 0.98; letter-spacing: -0.069em; font-weight: 760; }
h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); line-height: 1.14; letter-spacing: -0.045em; }
.services-section h2 { max-width: 15ch; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.3rem, 3.8vw, 4rem); }
.service-grid article { display: flex; flex-direction: column; align-items: flex-start; gap: 0.8rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.service-grid p { color: var(--muted); }
.text-link { color: var(--blue); text-underline-offset: 0.22em; font-weight: 680; }
.service-grid .text-link { margin-top: auto; }
.text-link:hover { text-decoration-thickness: 2px; }

.work-section { position: relative; z-index: 2; margin-top: calc(-1 * var(--hero-overlap)); padding-top: clamp(2.65rem, 5.3vw, 5rem); border-radius: clamp(1.35rem, 4vw, 3rem) clamp(1.35rem, 4vw, 3rem) 0 0; background: var(--paper); }
.trial-feature { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; gap: clamp(1.5rem, 4vw, 4rem); }
.project { min-width: 0; background: var(--paper); border-radius: var(--curve); overflow: hidden; }
.project-study .player { border-radius: var(--curve); overflow: hidden; }
.project-study .project-copy { padding-inline: 0.1rem; padding-bottom: 0; }
.project-copy { padding: 1.25rem clamp(1rem, 1.8vw, 1.65rem) 1.65rem; }
.project-copy p { margin-top: 0.65rem; color: var(--muted); }
.project-meta { display: flex; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.65rem; color: var(--muted); font-size: 0.875rem; }
.player { display: grid; position: relative; isolation: isolate; place-items: center; aspect-ratio: 16 / 9; background: var(--night); }
.player video { position: absolute; inset: 0; height: 100%; object-fit: contain; }
.play { z-index: 1; display: grid; place-items: center; width: 4.25rem; height: 4.25rem; border-radius: 50%; background: var(--blue); color: white; border: 2px solid white; box-shadow: 0 2px 16px #0004; }
.play:hover { background: var(--blue-hover); }
.play span { width: 0; height: 0; border-block: 0.6rem solid transparent; border-left: 0.95rem solid currentColor; margin-left: 0.22rem; }
.study-guide h3 { font-size: clamp(1.45rem, 2.6vw, 2.15rem); }
.guide-chapters { display: grid; margin-top: 1rem; }
.guide-chapters a { display: block; padding: 0.76rem 0.9rem; border-bottom: 1px solid var(--line); border-radius: 0.25rem; text-decoration: none; font-weight: 650; }
.guide-chapters a:hover { color: var(--blue); background: var(--surface); }
.guide-chapters a[aria-current="true"] { background: var(--blue); color: white; }
.study-progress { display: block; appearance: none; width: 100%; height: 0.36rem; margin-top: 1.15rem; overflow: hidden; border: 0; border-radius: 99px; background: var(--line); accent-color: var(--blue); }
.study-progress::-webkit-progress-bar { background: var(--line); }
.study-progress::-webkit-progress-value { background: var(--blue); border-radius: 99px; }
.study-progress::-moz-progress-bar { background: var(--blue); border-radius: 99px; }
.player-vertical { background: linear-gradient(115deg, var(--night), #303747 51%, var(--night)); }
.portfolio-section { background: var(--paper); }
.portfolio-section .film-slides .project { background: var(--surface); }
.film-slides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.film-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.25rem 0.75rem; padding-bottom: 0.8rem; }
.film-position { color: var(--muted); font-size: 0.875rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.film-announcement { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.film-arrow { display: grid; place-items: center; width: clamp(2.75rem, 3.5vw, 3.5rem); aspect-ratio: 1; padding: 0; border: 1px solid var(--blue); border-radius: 50%; background: var(--paper); color: var(--blue); font-size: 1.45rem; line-height: 1; }
.film-arrow:hover { background: var(--blue); color: white; }
.film-arrow:focus-visible { outline-offset: 2px; }
#film-gallery.film-gallery-ready { width: min(96vw, 104rem); margin-inline: calc((100% - min(96vw, 104rem)) / 2); }
.film-gallery-ready .film-stage { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(0.35rem, 1vw, 1rem); }
.film-gallery-ready .film-slides { position: relative; display: block; overflow: clip; border-radius: var(--curve); }
.film-gallery-ready .project { display: grid; grid-template-columns: minmax(0, 2.55fr) minmax(0, 1fr); }
.film-gallery-ready .project-copy { align-self: center; padding: clamp(1rem, 3.5vw, 3rem); }
.film-gallery-ready [data-slide-out] { position: absolute; inset: 0 0 auto; pointer-events: none; }

.process-section { background: var(--surface); }
.process-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); gap: clamp(1.4rem, 5vw, 5rem); margin-top: clamp(1.6rem, 4vw, 3.4rem); }
.process-list { list-style: none; margin: 0; padding-inline-start: 0.5rem; }
.process-list li { position: relative; display: grid; align-content: center; min-height: 9.5rem; padding: 1.3rem 1rem 1.3rem 1.75rem; border-inline-start: 2px solid var(--line); border-radius: 0 0.65rem 0.65rem 0; }
.process-list li::before { content: ""; position: absolute; inset: 50% auto auto -0.55rem; width: 1rem; aspect-ratio: 1; border: 2px solid #7a8593; border-radius: 50%; background: var(--surface); transform: translateY(-50%); }
.process-list li[data-current] { background: #edf2ff; }
.process-list li[data-current] h3 { color: var(--blue); }
.process-list li[data-current]::before { border-color: var(--blue); background: var(--blue); }
.process-list button { padding: 0; border: 0; background: transparent; color: inherit; text-align: start; font: inherit; letter-spacing: inherit; }
.process-list button:disabled { cursor: default; }
.process-list button:enabled::after { content: ""; position: absolute; inset: 0; border-radius: 0 0.65rem 0.65rem 0; }
.process-list button:hover { color: var(--blue); }
.process-list button:focus-visible { outline: none; }
.process-list button:focus-visible::after { outline: 3px solid var(--blue); outline-offset: -3px; }
.process-list p { margin-top: 0.42rem; color: var(--muted); }
.process-visuals { position: sticky; top: calc(var(--nav-clearance) + 1rem); align-self: start; display: grid; align-items: center; min-width: 0; min-height: 22rem; padding: clamp(0.85rem, 2vw, 1.45rem); border: 1px solid var(--line); border-radius: var(--curve); background: var(--paper); }
.process-visual { grid-area: 1 / 1; min-width: 0; margin: 0; visibility: hidden; opacity: 0; }
.process-visual[data-current] { visibility: visible; opacity: 1; }
.process-visual figcaption { margin-top: 0.7rem; color: var(--muted); font-size: 0.875rem; }
.scope-sheet { padding: clamp(0.9rem, 2.2vw, 1.65rem); border-radius: 0.65rem; background: var(--surface); }
.process-visual .scope-title { margin: 0 0 0.75rem; color: var(--ink); font-size: 1.15rem; font-weight: 720; }
.scope-sheet dl { margin: 0; }
.scope-sheet dl div { display: grid; grid-template-columns: minmax(5.25rem, 1fr) 2fr; gap: 0.4rem; padding-block: 0.55rem; border-top: 1px solid var(--line); }
.scope-sheet dt { font-weight: 650; }
.scope-sheet dd { margin: 0; color: var(--muted); }
.process-frames { display: grid; grid-template-columns: repeat(3, minmax(0, 8.25rem)); justify-content: center; gap: clamp(0.35rem, 1.3vw, 0.8rem); }
.process-frames img { height: auto; aspect-ratio: 9 / 16; border-radius: 0.45rem; }
.process-film-caption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.25rem 1rem; }
.process-delivery { max-height: 18rem; object-fit: contain; background: var(--surface); border-radius: 0.45rem; }

.brief-section { background: var(--paper); }
.site-footer { background: var(--night); color: var(--paper); }
.brief-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(2rem, 6vw, 6rem); }
.brief-copy p { margin-top: 1rem; color: var(--muted); max-width: 26rem; }
.brief-confidentiality { margin-bottom: 1.25rem; padding: 0.9rem 1rem; border-inline-start: 3px solid var(--blue); border-radius: 0.35rem; background: var(--surface); scroll-margin-top: 1rem; }
.brief-confidentiality h3 { font-size: 1rem; letter-spacing: normal; }
.brief-confidentiality p { margin-top: 0.35rem; color: var(--muted); font-size: 0.875rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.brief-form label { display: grid; gap: 0.25rem; align-content: start; font-weight: 650; }
.brief-form fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.brief-form fieldset > label { margin-top: 0.9rem; }
.brief-form input, .brief-form select, .brief-form textarea { width: 100%; min-width: 0; min-height: 2.85rem; padding: 0.54rem 0.7rem; color: var(--ink); background: var(--paper); border: 1px solid #7a8593; border-radius: 0.42rem; }
.brief-form textarea { resize: vertical; }
.field-note, .form-status { color: var(--muted); font-size: 0.875rem; font-weight: 400; }
.form-status:empty { display: none; }
.form-status { margin-top: 0.65rem; }
.inquiry-privacy { margin-top: 0.7rem; }
.brief-form button:disabled { cursor: default; opacity: 0.65; }
.footer-main { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr) minmax(0, 0.85fr) minmax(0, 1.2fr); align-items: start; gap: clamp(1.4rem, 3.8vw, 4rem); padding-block: clamp(2.6rem, 5vw, 4.75rem); }
.footer-identity .brand-mark { width: 2.6rem; padding: 0.16rem; border-radius: 0.45rem; background: var(--paper); }
.footer-main h2 { font-size: 1rem; line-height: 1.3; letter-spacing: 0; }
.footer-main p { max-width: 25ch; margin-top: 0.65rem; color: var(--light-copy); }
.footer-nav ul { display: grid; gap: 0.5rem; padding: 0; margin: 0.8rem 0 0; list-style: none; }
.footer-nav a, .footer-bottom a { color: var(--light-copy); text-decoration: none; }
.footer-nav a:hover, .footer-bottom a:hover { color: white; text-decoration: underline; text-underline-offset: 0.2em; }
.footer-pilot .button { margin-top: 1rem; border-radius: 0.55rem; }
.footer-privacy, .footer-bottom { border-top: 1px solid #ffffff35; }
.footer-privacy { padding-block: 0.9rem; color: var(--light-copy); }
.footer-privacy summary { display: list-item; width: fit-content; color: white; cursor: pointer; font-weight: 650; }
.footer-privacy p { max-width: 68ch; margin-top: 0.65rem; font-size: 0.9rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.65rem 1.4rem; padding-block: 1.1rem; color: var(--light-copy); font-size: 0.875rem; }
.site-footer :focus-visible { outline-color: var(--blue-light); }

@media (min-width: 1921px) {
  .hero-image {
    left: auto;
    width: 1920px;
    mask-image: linear-gradient(to right, transparent, #000 30%);
  }
}

@media (max-width: 62rem) {
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .film-slides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-vertical { display: grid; grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .project-vertical .project-copy { align-self: center; }
}

@media (max-width: 45rem) {
  :root { --nav-clearance: 7.5rem; }
  .container { width: min(90%, 80rem); }
  .site-header { top: 0.55rem; }
  .header-inner { min-height: auto; gap: 0.45rem 0.55rem; flex-wrap: wrap; padding-block: 0.5rem; }
  .nav { order: 3; width: 100%; justify-content: space-between; }
  .hero-inner { min-height: 36rem; align-items: end; }
  .hero-image { object-position: 61% 12%; }
  .hero::after { background: linear-gradient(0deg, var(--night) 7%, #131b26f0 43%, #131b261a 100%); }
  .service-grid, .film-slides, .trial-feature, .process-inner, .brief-panel, .film-gallery-ready .project { grid-template-columns: minmax(0, 1fr); }
  .project-vertical { display: block; }
  .player-vertical { aspect-ratio: 4 / 3; }
  .film-gallery-ready .player { aspect-ratio: 4 / 3; }
  .film-gallery-ready .film-stage { position: relative; display: block; }
  .film-gallery-ready .film-arrow { position: absolute; z-index: 1; top: min(36vw, 16rem); transform: translateY(-50%); }
  .film-gallery-ready [data-film-step="-1"] { left: 0.45rem; }
  .film-gallery-ready [data-film-step="1"] { right: 0.45rem; }
  .process-visuals { grid-row: 1; min-height: 12rem; top: var(--nav-clearance); z-index: 1; }
  .process-frames { grid-template-columns: repeat(3, minmax(0, 5rem)); }
  .process-delivery { max-height: 10rem; }
  .process-list li { min-height: 8.5rem; }
}

@media (max-width: 28rem) {
  .footer-identity, .footer-pilot { grid-column: 1 / -1; }
  .site-header .brand-mark { width: 2.45rem; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-motion, .hero-motion-toggle { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: lift-in 620ms cubic-bezier(0.2, 0.7, 0.25, 1) backwards; }
  .hero-copy h1 { animation-delay: 70ms; }
  .hero-description { animation-delay: 140ms; }
  .hero-copy .actions { animation-delay: 210ms; }
  .reveal-active { animation: lift-in 580ms cubic-bezier(0.2, 0.7, 0.25, 1) backwards; }
  .service-grid .reveal-active:nth-child(2) { animation-delay: 70ms; }
  .service-grid .reveal-active:nth-child(3) { animation-delay: 140ms; }
  .guide-chapters a { transition: color 140ms ease, background-color 240ms ease, box-shadow 240ms ease; }
  .process-list h3 { transition: color 220ms ease; }
  .process-visual { transform: translateY(0.4rem); transition: opacity 240ms ease, transform 240ms ease, visibility 240ms; }
  .process-visual[data-current] { transform: translateY(0); }
  .film-arrow, .play { transition: background-color 160ms ease, color 160ms ease, scale 160ms ease; }
  .film-arrow:hover, .play:hover { scale: 1.055; }
  .film-arrow:active, .play:active { scale: 0.96; }
  .film-slides[data-slide-direction="next"] { --slide-offset: 100%; --exit-offset: -100%; }
  .film-slides[data-slide-direction="previous"] { --slide-offset: -100%; --exit-offset: 100%; }
  .film-gallery-ready [data-slide-in] { animation: film-slide-in 360ms cubic-bezier(0.35, 0, 0.2, 1) both; }
  .film-gallery-ready [data-slide-out] { animation: film-slide-out 360ms cubic-bezier(0.35, 0, 0.2, 1) both; }

  @keyframes film-slide-in {
    from { transform: translateX(var(--slide-offset)); }
    to { transform: translateX(0); }
  }

  @keyframes film-slide-out {
    from { transform: translateX(0); }
    to { transform: translateX(var(--exit-offset)); }
  }

  @keyframes lift-in {
    from { opacity: 0.55; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
