/* ==========================================================================
   AI STUDIO BY M&M — main stylesheet
   Tokens → base → components → sections → motion → responsive
   ========================================================================== */

/* Self-hosted fonts (SIL Open Font License) — no requests to Google */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/instrument-serif-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/instrument-serif-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/instrument-serif-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/instrument-serif-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url("../fonts/inter-tight-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url("../fonts/inter-tight-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --black: #08090A;
  --charcoal: #151719;
  --charcoal-2: #1C1F22;
  --ivory: #F0EDE6;
  --gray: #A5A29C;
  --gray-dim: #6E6C68;
  --line: rgba(240, 237, 230, .14);
  --line-strong: rgba(240, 237, 230, .32);
  --accent: #C6AE87;
  --error: #E39A86;

  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: clamp(20px, 4.2vw, 64px);
  --max: 1680px;
  --section-y: clamp(96px, 14vw, 220px);

  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --nav-h: 76px;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--black);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
em { font-style: italic; }
::selection { background: var(--accent); color: var(--black); }

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

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

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 16px; background: var(--ivory); color: var(--black);
  font-size: 14px; transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

.eyebrow, .section-head__index {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gray);
}
.section-head__index span { color: var(--gray-dim); margin: 0 .35em; }

/* ------------------------------------------------------------ buttons */
.btn {
  --h: 54px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  height: var(--h);
  padding: 0 28px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: 0;
  overflow: hidden;
  isolation: isolate;
  transition: color .5s var(--ease), border-color .5s var(--ease), background-color .5s var(--ease);
}
.btn--small { --h: 42px; padding: 0 20px; font-size: 11.5px; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .55s var(--ease);
}
.btn:hover::before { transform: scaleY(1); }
.btn__arrow { display: inline-block; transition: transform .5s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--light { background: var(--ivory); color: var(--black); }
.btn--light::before { background: var(--accent); }

.btn--ghost { color: var(--ivory); border-color: var(--line-strong); }
.btn--ghost::before { background: var(--ivory); }
.btn--ghost:hover { color: var(--black); border-color: var(--ivory); }

.btn--outline { color: var(--ivory); border-color: var(--accent); }
.btn--outline::before { background: var(--accent); }
.btn--outline:hover { color: var(--black); }

.icon-btn {
  height: 34px; padding: 0 14px;
  font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ivory);
  border: 1px solid var(--line-strong);
  background: rgba(8, 9, 10, .35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: border-color .3s, background-color .3s;
}
.icon-btn:hover { border-color: var(--ivory); }

/* ---------------------------------------------------------------- nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--nav-h);
  transition: background-color .6s var(--ease), border-color .6s var(--ease), transform .6s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(8, 9, 10, .78);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner {
  height: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 40px;
}
.nav__brand { display: flex; align-items: center; gap: 14px; margin-right: auto; }
.nav__mark {
  font-family: var(--serif); font-size: 22px; line-height: 1; letter-spacing: -.01em;
  padding: 6px 8px 5px; border: 1px solid var(--line-strong);
}
.nav__mark i { color: var(--accent); }
.nav__name { font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
.nav__name em { font-style: normal; color: var(--gray); }
.nav__links { display: flex; gap: 36px; }
.nav__links a {
  position: relative; font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(240, 237, 230, .78); transition: color .3s;
  padding: 6px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ivory); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav__toggle { display: none; width: 44px; height: 44px; margin-right: -10px; position: relative; }
.nav__toggle-lines, .nav__toggle-lines::before {
  position: absolute; left: 11px; right: 11px; height: 1px; background: var(--ivory);
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.nav__toggle-lines { top: 18px; }
.nav__toggle-lines::before { content: ""; left: 0; right: 0; top: 7px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-lines { top: 22px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-lines::before { top: 0; transform: rotate(-90deg); }

.menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--black);
  padding: calc(var(--nav-h) + 40px) var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; transition: opacity .5s var(--ease);
}
.menu[hidden] { display: none; }
.menu:not(.is-open) { pointer-events: none; }
.menu.is-open { opacity: 1; }
.menu__links { display: flex; flex-direction: column; }
.menu__links a {
  display: flex; align-items: baseline; gap: 18px;
  font-family: var(--serif); font-size: clamp(44px, 13vw, 72px); line-height: 1.12;
  border-bottom: 1px solid var(--line); padding: 10px 0;
  transform: translateY(16px); opacity: 0;
  transition: transform .7s var(--ease), opacity .7s var(--ease);
}
.menu__links a span { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; color: var(--gray); }
.menu.is-open .menu__links a { transform: none; opacity: 1; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: .05s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: .1s; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: .15s; }
.menu__cta { width: 100%; }

/* --------------------------------------------------- placeholder frames */
.frame-placeholder {
  position: absolute; inset: 0; overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 120%, rgba(0,0,0,.9), transparent 60%),
    var(--charcoal);
}
.frame-placeholder__light {
  position: absolute; inset: -20%;
  background:
    radial-gradient(38% 46% at 30% 42%, var(--tone-a, rgba(198, 174, 135, .32)), transparent 70%),
    radial-gradient(30% 40% at 72% 62%, var(--tone-b, rgba(120, 92, 64, .28)), transparent 70%);
  filter: blur(30px);
  animation: drift 26s var(--ease-in-out) infinite alternate;
}
.frame-placeholder--hero { background: #0b0c0d; }
.frame-placeholder--hero .frame-placeholder__light {
  background:
    radial-gradient(34% 48% at 68% 38%, rgba(198, 160, 110, .30), transparent 70%),
    radial-gradient(40% 40% at 22% 70%, rgba(70, 82, 92, .30), transparent 70%),
    radial-gradient(20% 26% at 80% 80%, rgba(150, 90, 60, .18), transparent 70%);
}
@keyframes drift {
  0%   { transform: translate3d(-3%, -2%, 0) scale(1); }
  100% { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

[data-tone="amber"] { --tone-a: rgba(206, 160, 98, .42);  --tone-b: rgba(110, 60, 40, .40); }
[data-tone="teal"]  { --tone-a: rgba(80, 130, 136, .40);  --tone-b: rgba(30, 50, 62, .55); }
[data-tone="rose"]  { --tone-a: rgba(176, 108, 104, .38); --tone-b: rgba(70, 40, 52, .50); }
[data-tone="steel"] { --tone-a: rgba(150, 160, 172, .30); --tone-b: rgba(50, 58, 70, .50); }
[data-tone="moss"]  { --tone-a: rgba(124, 136, 92, .34);  --tone-b: rgba(44, 52, 38, .55); }

.grain {
  position: absolute; inset: -50%; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -2%); }
  60% { transform: translate(-2%, -4%); } 80% { transform: translate(4%, 2%); } 100% { transform: translate(0, 0); }
}

.placeholder-tag {
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; line-height: 1.5;
  color: rgba(240, 237, 230, .6);
  border: 1px dashed rgba(240, 237, 230, .3);
  padding: 6px 10px;
  background: rgba(8, 9, 10, .4);
}
.placeholder-tag code { font-family: ui-monospace, Menlo, Consolas, monospace; text-transform: none; letter-spacing: 0; color: var(--accent); }

/* --------------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__poster, .hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero__video { opacity: 0; transition: opacity 1.6s var(--ease); }
.hero__video.is-ready { opacity: 1; }
.hero__poster { animation: slowzoom 30s linear forwards; }
@keyframes slowzoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,9,10,.55) 0%, rgba(8,9,10,0) 22%),
    linear-gradient(0deg, rgba(8,9,10,.92) 0%, rgba(8,9,10,.45) 38%, rgba(8,9,10,0) 70%),
    linear-gradient(90deg, rgba(8,9,10,.35) 0%, rgba(8,9,10,0) 60%);
}
.hero__media .grain { opacity: .07; }
.hero__tag { position: absolute; top: calc(var(--nav-h) + 16px); left: var(--gutter); z-index: 2; max-width: calc(100% - 2 * var(--gutter)); }

.hero__content { padding-bottom: clamp(88px, 11vh, 130px); padding-top: calc(var(--nav-h) + 80px); }
.hero__eyebrow { margin-bottom: clamp(18px, 2.4vw, 30px); color: rgba(240, 237, 230, .72); }
.hero__title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(56px, 11.2vw, 210px);
  line-height: .9;
  letter-spacing: -.045em;
  text-transform: uppercase;
  margin-left: -.04em;
}
.hero__title em {
  font-family: var(--serif); font-weight: 400; text-transform: none;
  letter-spacing: -.02em; font-size: 1.08em; color: var(--ivory);
  padding-right: .04em;
}
.line { display: block; overflow: hidden; padding-bottom: .04em; }
.line__inner { display: inline-block; }

.hero__foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
  margin-top: clamp(28px, 3.4vw, 52px);
  padding-top: clamp(22px, 2.4vw, 32px);
  border-top: 1px solid var(--line);
}
.hero__lede { font-size: clamp(16px, 1.25vw, 20px); line-height: 1.5; color: rgba(240, 237, 230, .82); max-width: 32em; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__controls {
  position: absolute; right: var(--gutter); top: calc(var(--nav-h) + 16px); z-index: 3;
  display: flex; gap: 8px;
}
.hero__controls[hidden] { display: none; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: rgba(240, 237, 230, .55);
}
.scroll-cue__line { width: 1px; height: 40px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue__line::after {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 40%;
  background: var(--ivory); animation: cue 2.4s var(--ease-in-out) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

/* --------------------------------------------------------- manifesto */
.manifesto {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 24px;
  padding-top: var(--section-y); padding-bottom: calc(var(--section-y) * .6);
}
.manifesto__text {
  grid-column: 1 / span 10;
  font-family: var(--serif); font-size: clamp(40px, 6.4vw, 112px); line-height: 1; letter-spacing: -.02em;
}
.manifesto__text span { display: block; }
.manifesto__text span:nth-child(2) { padding-left: 1.2em; color: var(--accent); }
.manifesto__text span:nth-child(3) { padding-left: 2.4em; }
.manifesto__aside {
  grid-column: 8 / span 4; margin-top: clamp(40px, 5vw, 72px);
  color: var(--gray); font-size: 16px; max-width: 26em;
  padding-left: 22px; border-left: 1px solid var(--accent);
}

/* --------------------------------------------------- section headers */
.section { padding: var(--section-y) 0; position: relative; }
.section-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px;
  align-items: end; margin-bottom: clamp(56px, 7vw, 112px);
}
.section-head__index { grid-column: 1 / -1; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: clamp(28px, 3.4vw, 52px); }
.section-head__title {
  grid-column: 1 / span 8;
  font-family: var(--sans); font-weight: 500; text-transform: uppercase;
  font-size: clamp(44px, 7.4vw, 136px); line-height: .92; letter-spacing: -.04em;
}
.section-head__title em, .contact__title em, .form-success__title em {
  font-family: var(--serif); font-weight: 400; text-transform: none; letter-spacing: -.02em; font-size: 1.06em;
}
.section-head__intro { grid-column: 9 / span 4; color: var(--gray); max-width: 24em; padding-bottom: .6em; }

/* -------------------------------------------------------------- work */
.work { padding-top: calc(var(--section-y) * .5); }
.work__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(64px, 8vw, 140px) 24px;
}
.project { position: relative; grid-column: span 12; }
.project--featured { grid-column: 1 / -1; }
.project:nth-child(4n+2) { grid-column: 1 / span 7; }
.project:nth-child(4n+3) { grid-column: 8 / span 5; margin-top: clamp(120px, 16vw, 280px); }
.project:nth-child(4n+4) { grid-column: 2 / span 6; }
.project:nth-child(4n+5) { grid-column: 7 / span 6; margin-top: clamp(80px, 10vw, 180px); }

.project__link { display: block; cursor: pointer; text-align: left; width: 100%; }
.project__frame {
  position: relative; overflow: hidden; background: var(--charcoal);
  aspect-ratio: 16 / 10;
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.1s var(--ease);
}
.project--featured .project__frame { aspect-ratio: 2.39 / 1; }
.project__frame { aspect-ratio: 16 / 9; }
.project__frame img, .project__frame video, .project__frame .frame-placeholder {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.4s var(--ease), opacity .8s var(--ease), filter 1s var(--ease);
}
.project__frame video { opacity: 0; }
.project__link:hover .project__frame img,
.project__link:hover .project__frame .frame-placeholder,
.project__link:focus-visible .project__frame img { transform: scale(1); }
.project__link:hover .project__frame video.is-ready { opacity: 1; transform: scale(1); }
.project__link:hover .project__frame { clip-path: inset(1.2% 1.2% 1.2% 1.2%); }
.project__frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(8,9,10,.55), transparent 45%);
  opacity: .8; transition: opacity .8s var(--ease);
}
.project__link:hover .project__frame::after { opacity: .3; }
.project__frame .grain { opacity: .06; }

.project__badges { position: absolute; top: 16px; left: 16px; z-index: 2; display: flex; gap: 8px; flex-wrap: wrap; }
.badge {
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500;
  padding: 6px 10px; border: 1px solid var(--line-strong); color: var(--ivory);
  background: rgba(8,9,10,.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.badge--accent { border-color: rgba(198,174,135,.7); color: var(--accent); }
.project__ph-tag { position: absolute; right: 16px; bottom: 16px; z-index: 2; }

.project__play {
  position: absolute; z-index: 2; left: 20px; bottom: 20px;
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
}
.project__play-dot {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; transition: background-color .5s var(--ease), border-color .5s;
}
.project__play-dot::before {
  content: ""; width: 0; height: 0; margin-left: 3px;
  border-left: 9px solid var(--ivory); border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.project__link:hover .project__play-dot { background: var(--ivory); border-color: var(--ivory); }
.project__link:hover .project__play-dot::before { border-left-color: var(--black); }

.project__info {
  display: grid; grid-template-columns: auto 1fr auto; gap: 6px 22px; align-items: baseline;
  padding-top: 22px;
}
.project__num { font-size: 11px; letter-spacing: .2em; color: var(--gray-dim); }
.project__title {
  font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3vw, 52px); line-height: 1.02; letter-spacing: -.015em;
}
.project--featured .project__title { font-size: clamp(40px, 5.2vw, 92px); }
.project__cat { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gray); text-align: right; }
.project__desc { grid-column: 2 / -1; color: var(--gray); max-width: 36em; font-size: 15.5px; }
.project__title-line { position: relative; display: inline; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat; transition: background-size .7s var(--ease); }
.project__link:hover .project__title-line { background-size: 100% 1px; }

/* --------------------------------------------------------- expertise */
.expertise { background: var(--charcoal); }
.services { border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: 1fr 5fr 4fr; gap: 24px; align-items: baseline;
  padding: clamp(26px, 3vw, 44px) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.service::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease);
}
.service:hover::before { transform: scaleX(1); }
.service__num { font-size: 12px; letter-spacing: .2em; color: var(--accent); }
.service__title {
  font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.6vw, 64px); line-height: 1.02; letter-spacing: -.015em;
  transition: transform .8s var(--ease);
}
.service:hover .service__title { transform: translateX(12px); }
.service__text { color: var(--gray); max-width: 28em; }

/* ---------------------------------------------------------- approach */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.step {
  padding: clamp(28px, 3vw, 44px) clamp(18px, 2vw, 32px) 0 0;
  position: relative;
  min-height: 300px;
}
.step + .step { padding-left: clamp(18px, 2vw, 32px); border-left: 1px solid var(--line); }
.step__num {
  display: block; font-family: var(--serif); font-size: clamp(64px, 7vw, 120px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(240,237,230,.32);
  margin-bottom: clamp(40px, 5vw, 80px);
}
.step__title { font-size: 13px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 14px; }
.step__text { color: var(--gray); font-size: 15.5px; max-width: 22em; }
.step::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 100%; height: 1px; background: var(--ivory);
  transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) var(--d, 0s);
}
.step.is-visible::before { transform: scaleX(1); }

/* ------------------------------------------------------------ studio */
.studio { background: var(--black); }
.studio__title { grid-column: 1 / span 10; }
.studio__layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.studio__portraits { grid-column: 1 / span 6; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.portrait { margin: 0; }
.portrait:nth-child(2) { margin-top: clamp(60px, 8vw, 140px); }
.portrait__frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--charcoal); }
.portrait__frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15) contrast(1.02); }
.portrait__ph { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 18px; }
.portrait__ph .placeholder-tag { position: relative; z-index: 2; }
.portrait__cap { padding-top: 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.portrait__name { font-family: var(--serif); font-size: clamp(22px, 2vw, 32px); line-height: 1.1; }
.portrait__role { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gray); white-space: nowrap; }

.studio__copy { grid-column: 8 / span 5; padding-top: clamp(0px, 2vw, 40px); }
.studio__lead { font-family: var(--serif); font-size: clamp(28px, 2.7vw, 46px); line-height: 1.12; letter-spacing: -.01em; margin-bottom: 40px; }
.studio__lead strong { font-weight: 400; color: var(--accent); }
.studio__body p { color: rgba(240,237,230,.74); margin-bottom: 1.3em; max-width: 34em; }
.studio__body em { color: var(--ivory); font-family: var(--serif); font-size: 1.15em; }
.studio__sign { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); font-family: var(--serif); font-style: italic; font-size: clamp(22px, 1.8vw, 28px); line-height: 1.3; color: var(--ivory); }

/* ------------------------------------------------------- recognition */
.recognition { padding: clamp(48px, 6vw, 96px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.recognition .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
.recognition__label { grid-column: 1 / span 3; font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gray); }
.recognition__list { grid-column: 4 / -1; }
.recognition__row { display: grid; grid-template-columns: 4fr 2fr 4fr 1fr; gap: 24px; align-items: baseline; }
.recognition__row + .recognition__row { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.recognition__work { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 56px); line-height: 1; }
.film-link { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .18em; transition: color .3s; }
.film-link:hover, .film-link:focus-visible { color: var(--accent); }
.recognition__honor { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.recognition__event { font-size: clamp(16px, 1.3vw, 20px); }
.recognition__year { font-size: 12px; letter-spacing: .2em; color: var(--gray); text-align: right; }

/* --------------------------------------------------------- investment */
.investment__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.investment__inner > .section-head__index { grid-column: 1 / -1; margin-bottom: clamp(48px, 6vw, 96px); }
.investment__price { grid-column: 1 / span 7; display: flex; flex-direction: column; }
.investment__from { font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gray); margin-bottom: 18px; }
.investment__amount { font-family: var(--serif); font-size: clamp(88px, 13vw, 230px); line-height: .85; letter-spacing: -.03em; }
.investment__currency { margin-top: 18px; font-size: 12px; letter-spacing: .3em; color: var(--accent); }
.investment__copy { grid-column: 9 / span 4; align-self: end; }
.investment__copy p { color: var(--gray); margin-bottom: 1.2em; }
.investment__copy p:nth-child(2) { color: var(--ivory); }
.investment__copy .btn { margin-top: 18px; }

/* ----------------------------------------------------------- contact */
.contact { background: var(--charcoal); }
.contact__layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.contact__intro { grid-column: 1 / span 5; position: sticky; top: calc(var(--nav-h) + 40px); }
.contact__intro .section-head__index { margin-bottom: clamp(32px, 4vw, 56px); }
.contact__title {
  font-family: var(--sans); font-weight: 500; text-transform: uppercase;
  font-size: clamp(42px, 5.4vw, 96px); line-height: .94; letter-spacing: -.04em; margin-bottom: 32px;
}
.contact__text { color: rgba(240,237,230,.76); max-width: 26em; margin-bottom: 36px; }
.contact__notes li { padding: 14px 0; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--gray); }
.contact__notes li:last-child { border-bottom: 1px solid var(--line); }
.contact__notes a { color: var(--ivory); border-bottom: 1px solid var(--accent); }
.contact__notes li[hidden] { display: none; }

.form, .form-success { grid-column: 7 / span 6; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 28px; }
.field { border: 0; margin: 0; padding: 0; min-width: 0; position: relative; }
.field--full { grid-column: 1 / -1; }
.field__label {
  display: flex; justify-content: space-between; gap: 12px; width: 100%;
  font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ivory);
  margin-bottom: 10px; padding: 0;
}
.field__req { color: var(--accent); margin-left: 2px; }
.field__opt { color: var(--gray-dim); letter-spacing: .14em; font-weight: 400; }
.field__input {
  width: 100%; display: block;
  font: inherit; font-size: 18px; color: var(--ivory);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  padding: 10px 0 12px;
  transition: border-color .4s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field__input::placeholder { color: var(--gray-dim); }
.field__input:hover { border-bottom-color: rgba(240,237,230,.5); }
.field__input:focus { outline: none; border-bottom-color: var(--accent); }
.field__input:focus-visible { outline: none; }
.field__textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field__hint { margin-top: 8px; font-size: 13px; color: var(--gray-dim); }
.field__error { margin-top: 8px; font-size: 13px; color: var(--error); min-height: 0; }
.field__error:empty { display: none; }
.field.has-error .field__input { border-bottom-color: var(--error); }
.field.has-error .field__label { color: var(--error); }

.choice__options { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px;
  font-size: 14px; color: rgba(240,237,230,.8);
  border: 1px solid var(--line-strong);
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.chip:hover span { border-color: var(--ivory); color: var(--ivory); }
.chip input:checked + span { background: var(--ivory); color: var(--black); border-color: var(--ivory); }
.chip input:focus-visible + span { outline: 1px solid var(--accent); outline-offset: 3px; }

.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form__foot { margin-top: 44px; display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.form__privacy { flex: 1 1 280px; font-size: 12.5px; line-height: 1.6; color: var(--gray-dim); max-width: 34em; }
.form__privacy a { color: var(--gray); border-bottom: 1px solid var(--line-strong); }
.form__submit { min-width: 240px; }
.form__spinner {
  display: none; width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid rgba(8,9,10,.3); border-top-color: var(--black);
  animation: spin .8s linear infinite;
}
.form.is-sending .form__spinner { display: inline-block; }
.form.is-sending .form__submit { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }

.form__status { font-size: 14px; outline: none; }
.form__status:not(:empty) { margin-bottom: 32px; padding: 16px 18px; border: 1px solid var(--error); color: var(--ivory); background: rgba(227,154,134,.07); }

.form-success { padding: clamp(32px, 4vw, 56px) 0; border-top: 1px solid var(--accent); outline: none; animation: rise 1s var(--ease) both; }
.form-success[hidden] { display: none; }
.form-success .eyebrow { color: var(--accent); margin-bottom: 24px; }
.form-success__title { font-family: var(--sans); font-weight: 500; text-transform: uppercase; font-size: clamp(36px, 4vw, 64px); line-height: .98; letter-spacing: -.035em; margin-bottom: 24px; }
.form-success__text { color: rgba(240,237,230,.76); max-width: 30em; margin-bottom: 36px; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------ footer */
.footer { padding: clamp(72px, 9vw, 140px) 0 32px; border-top: 1px solid var(--line); }
.footer__top { display: grid; grid-template-columns: 6fr 3fr 3fr; gap: 40px; padding-bottom: clamp(56px, 7vw, 110px); }
.footer__name { font-family: var(--serif); font-size: clamp(40px, 5vw, 84px); line-height: .95; letter-spacing: -.02em; margin-bottom: 22px; }
.footer__name em { color: var(--accent); }
.footer__desc { color: var(--gray); max-width: 30em; font-size: 15px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer__col a, .footer__social a { color: rgba(240,237,230,.8); font-size: 15px; transition: color .3s; }
.footer__col a:hover, .footer__social a:hover { color: var(--accent); }
.footer__col a[hidden] { display: none; }
.footer__social { display: flex; flex-direction: column; gap: 10px; }
.footer__social:empty { display: none; }
.footer__head { font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gray-dim); margin-bottom: 8px; }
.footer__bottom {
  display: flex; gap: 28px; align-items: center; flex-wrap: wrap;
  padding-top: 26px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--gray-dim);
}
.footer__bottom p { margin-right: auto; }
.footer__bottom a:hover { color: var(--ivory); }

/* ------------------------------------------------------------ player */
.player {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgba(8,9,10,.97); color: var(--ivory);
  display: none; flex-direction: column;
}
.player[open] { display: flex; animation: fadein .45s var(--ease) both; }
.player::backdrop { background: rgba(8,9,10,.92); }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.player__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 20px var(--gutter); border-bottom: 1px solid var(--line);
}
.player__cat { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--gray); margin-bottom: 4px; }
.player__title { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.4vw, 36px); line-height: 1.1; }
.player__nav { display: flex; gap: 8px; }
.player__btn {
  height: 44px; min-width: 44px; padding: 0 14px; border: 1px solid var(--line-strong);
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  transition: border-color .3s, background-color .3s, color .3s;
}
.player__btn:hover { border-color: var(--ivory); background: var(--ivory); color: var(--black); }
.player__stage {
  flex: 1; min-height: 0; display: grid; place-items: center; padding: clamp(16px, 3vw, 48px) var(--gutter);
}
.player__stage video, .player__stage iframe, .player__stage .player__empty {
  width: 100%; max-width: 1600px; max-height: 100%; aspect-ratio: 16 / 9; background: #000; border: 0;
}
.player__empty { position: relative; display: grid; place-items: center; text-align: center; overflow: hidden; }
.player__empty .placeholder-tag { position: relative; z-index: 2; max-width: 80%; }
.player__desc { padding: 0 var(--gutter) 28px; color: var(--gray); max-width: 60em; margin: 0 auto; text-align: center; font-size: 15px; }

/* ------------------------------------------------------------ cursor */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none;
  width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ivory); color: var(--black);
  font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  transform: translate3d(var(--x, -200px), var(--y, -200px), 0) scale(0);
  transition: transform .5s var(--ease);
  will-change: transform;
}
.cursor.is-active { transform: translate3d(var(--x), var(--y), 0) scale(1); }

/* ------------------------------------------------------------ motion */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.2s var(--ease) var(--d, 0s), transform 1.2s var(--ease) var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

.js .line__inner { transform: translateY(105%); transition: transform 1.3s var(--ease) var(--d, 0s); }
.js .reveal-hero { opacity: 0; transform: translateY(16px); transition: opacity 1.2s var(--ease) var(--d, 0s), transform 1.2s var(--ease) var(--d, 0s); }
.is-loaded .line__inner, .is-loaded .reveal-hero { transform: none; opacity: 1; }

.js .project { opacity: 0; transform: translateY(48px); transition: opacity 1.3s var(--ease), transform 1.3s var(--ease); }
.js .project.is-visible { opacity: 1; transform: none; }
.js .project .project__frame { clip-path: inset(8% 0 8% 0); }
.js .project.is-visible .project__frame { clip-path: inset(0 0 0 0); }
.js .project.is-visible .project__link:hover .project__frame { clip-path: inset(1.2% 1.2% 1.2% 1.2%); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .reveal-hero, .js .project, .js .line__inner { opacity: 1; transform: none; }
  .js .project .project__frame { clip-path: none; }
  .grain, .frame-placeholder__light { animation: none; }
  .cursor { display: none; }
}

/* -------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .nav__links { gap: 26px; }
  .section-head__title { grid-column: 1 / -1; }
  .section-head__intro { grid-column: 1 / span 8; }
  .service { grid-template-columns: 1fr 6fr; }
  .service__text { grid-column: 2; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { border-left: 0; padding-left: 0; }
  .step { min-height: 0; padding-bottom: 48px; }
  .studio__portraits { grid-column: 1 / -1; max-width: 760px; }
  .studio__copy { grid-column: 1 / -1; max-width: 760px; padding-top: 40px; }
  .contact__intro { grid-column: 1 / -1; position: static; margin-bottom: 40px; }
  .form, .form-success { grid-column: 1 / -1; }
  .investment__price { grid-column: 1 / -1; margin-bottom: 48px; }
  .investment__copy { grid-column: 1 / span 9; }
  .recognition__label { grid-column: 1 / -1; }
  .recognition__list { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav__name { font-size: 11px; letter-spacing: .18em; }

  .hero__foot { flex-direction: column; align-items: stretch; gap: 28px; }
  .hero__ctas { display: grid; grid-template-columns: 1fr 1fr; }
  .hero__ctas .btn { padding: 0 12px; }
  .hero__controls { top: auto; bottom: 20px; right: var(--gutter); }
  .scroll-cue { display: none; }

  .manifesto__text { grid-column: 1 / -1; }
  .manifesto__text span:nth-child(2) { padding-left: .6em; }
  .manifesto__text span:nth-child(3) { padding-left: 1.2em; }
  .manifesto__aside { grid-column: 1 / -1; }

  .work__grid { grid-template-columns: minmax(0, 1fr); gap: 72px 0; }
  .project, .project:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
  .project:nth-child(n) .project__frame { aspect-ratio: 16 / 9; }
  .project__info { grid-template-columns: auto 1fr; }
  .project__cat { grid-column: 2; grid-row: 1; text-align: left; }
  .project__title { grid-column: 1 / -1; }
  .project__desc { grid-column: 1 / -1; }
  .section-head__intro { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav__name { display: none; }
  .hero__title { font-size: clamp(50px, 16.4vw, 92px); letter-spacing: -.05em; }
  .project__ph-tag { display: none; }
  .hero__ctas { grid-template-columns: 1fr; }
  .hero__tag { font-size: 9.5px; }
  .service { grid-template-columns: 1fr; gap: 10px; }
  .service__text { grid-column: 1; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { border-left: 0; padding-left: 0; }
  .step__num { margin-bottom: 20px; }
  .studio__portraits { gap: 10px; }
  .portrait__cap { flex-direction: column; gap: 4px; }
  .recognition__row { grid-template-columns: 1fr auto; gap: 10px 16px; }
  .recognition__work { grid-column: 1 / -1; }
  .recognition__year { grid-row: 3; grid-column: 2; }
  .recognition__event { grid-column: 1; }
  .investment__copy { grid-column: 1 / -1; }
  .form__grid { grid-template-columns: 1fr; gap: 32px; }
  .form__submit { width: 100%; }
  .chip span { font-size: 13.5px; padding: 0 14px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { gap: 16px 24px; }
  .footer__bottom p { width: 100%; }
  .player__bar { flex-wrap: wrap; padding: 14px var(--gutter); }
  .player__close { order: -1; }
}

@media (min-width: 1800px) {
  body { font-size: 18px; }
}
