/* ==========================================================================
   Owjar Tech: graphite + ember
   One accent (ember), pill controls, 28px panels, 18px media radius.
   ========================================================================== */

@font-face { font-family: "Cabinet"; src: url("assets/fonts/CabinetGrotesk-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cabinet"; src: url("assets/fonts/CabinetGrotesk-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Cabinet"; src: url("assets/fonts/CabinetGrotesk-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("assets/fonts/Satoshi-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("assets/fonts/Satoshi-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("assets/fonts/Satoshi-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #0b0b0c;
  --bg-2: #111113;
  --bg-3: #19191c;
  --line: rgba(236, 232, 225, 0.1);
  --line-2: rgba(236, 232, 225, 0.2);
  --text: #ece8e1;
  --muted: #a8a39b;
  --dim: #8c867e;
  --ember: #ff5b22;
  --ember-hi: #ff7a48;
  --ember-ink: #160700;

  --display: "Cabinet", ui-sans-serif, system-ui, sans-serif;
  --sans: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --r-panel: 28px;
  --r-media: 18px;
  --nav-h: 72px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
p, h1, h2, h3, h4, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

::selection { background: var(--ember); color: var(--ember-ink); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: #3a3a3f var(--bg); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #34343a; border-radius: 10px; border: 2px solid var(--bg); }

/* Film grain on a fixed, non-scrolling layer */
body::after {
  content: "";
  position: fixed; inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

section[id] { scroll-margin-top: var(--nav-h); }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 12px; left: 12px; z-index: 200; background: var(--ember); color: var(--ember-ink); padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.dot { color: var(--ember); }
.ember { color: var(--ember); }
.muted { color: var(--dim); }

.h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.4vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

/* ------------------------------------------------------------------ buttons */
.btn {
  --h: 56px;
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  height: var(--h);
  padding: 0 8px 0 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 240ms ease, color 240ms ease, border-color 240ms ease;
  will-change: transform;
  isolation: isolate;
  overflow: hidden;
}
.btn:active { transform: scale(0.97); }
.btn__icon {
  width: calc(var(--h) - 16px); height: calc(var(--h) - 16px);
  border-radius: 999px;
  display: grid; place-items: center;
  background: var(--ember-ink);
  transition: transform 420ms var(--ease-expo);
}
.btn__icon svg { width: 18px; height: 18px; fill: var(--ember); transition: transform 420ms var(--ease-expo); }
.btn--ember { background: var(--ember); color: var(--ember-ink); box-shadow: 0 12px 28px -14px rgba(0, 0, 0, 0.7); }
.btn--ember::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--text);
  clip-path: circle(0% at var(--mx, 50%) var(--my, 50%));
  transition: clip-path 520ms var(--ease-expo);
}
.btn--ghost { padding: 0 26px; border: 1px solid var(--line-2); color: var(--text); background: rgba(11, 11, 12, 0.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--sm { --h: 44px; padding-left: 18px; font-size: 0.92rem; }
.btn--sm .btn__icon svg { width: 14px; height: 14px; }
.btn--wide { width: 100%; justify-content: space-between; }
@media (hover: hover) and (pointer: fine) {
  .btn--ember:hover::before { clip-path: circle(150% at var(--mx, 50%) var(--my, 50%)); }
  .btn:hover .btn__icon svg { transform: rotate(45deg); }
  .btn--ghost:hover { border-color: var(--text); background: rgba(236, 232, 225, 0.06); }
}

.link { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 420ms var(--ease-expo); padding-bottom: 2px; }
@media (hover: hover) { .link:hover { background-size: 100% 1px; } }

/* ------------------------------------------------------------------ loader */
.loader { display: none; }
.motion .loader {
  display: block;
  position: fixed; inset: 0; z-index: 150;
  pointer-events: none;
}
.loader__panel { position: absolute; inset: 0; background: var(--bg-2); }
.loader__inner {
  position: absolute; inset: auto var(--gutter) var(--gutter) var(--gutter);
  display: flex; justify-content: space-between; align-items: flex-end;
}
.loader__mark { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 6vw, 4.5rem); letter-spacing: -0.04em; line-height: 1; }
.loader__count { font-family: var(--display); font-weight: 500; font-size: clamp(3rem, 12vw, 9rem); line-height: 0.8; letter-spacing: -0.04em; color: var(--dim); font-variant-numeric: tabular-nums; }
.loader.is-done { visibility: hidden; }

/* ------------------------------------------------------------------ progress */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--ember); transform-origin: 0 50%; transform: scaleX(0); }

/* ------------------------------------------------------------------ nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  transition: transform 520ms var(--ease-expo), background-color 300ms ease, border-color 300ms ease;
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(11, 11, 12, 0.72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); }
.nav.is-hidden:not(:focus-within) { transform: translateY(-100%); }
.nav { padding-top: env(safe-area-inset-top); height: calc(var(--nav-h) + env(safe-area-inset-top)); }
.nav__inner { height: var(--nav-h); max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; gap: 32px; }
.brand { font-family: var(--display); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.04em; line-height: 1; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { position: relative; padding: 8px 14px; border-radius: 999px; font-size: 0.95rem; font-weight: 500; color: var(--muted); transition: color 200ms ease, background-color 200ms ease; }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a.is-active { background: rgba(236, 232, 225, 0.07); }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-2); position: relative; margin-left: auto; }
.nav__burger i { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform 360ms var(--ease-expo); }
.nav__burger i:first-of-type { top: 17px; }
.nav__burger i:last-of-type { top: 25px; }
.nav__burger[aria-expanded="true"] i:first-of-type { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] i:last-of-type { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--bg-2);
  padding: calc(var(--nav-h) + 24px) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 620ms var(--ease-io);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.lenis.lenis-stopped, body.menu-open { overflow: hidden; }
.menu[hidden] { display: flex; visibility: hidden; }
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__links { display: flex; flex-direction: column; }
.menu__links a { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 11vw, 4rem); letter-spacing: -0.04em; line-height: 1.1; padding-block: 4px; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(20px); transition: opacity 400ms ease, transform 600ms var(--ease-expo); }
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: 50ms; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: 100ms; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: 150ms; }
.menu.is-open .menu__links a:nth-child(5) { transition-delay: 200ms; }
.menu.is-open .menu__links a:nth-child(6) { transition-delay: 250ms; }
.menu__cta { color: var(--ember); }
.menu__foot { color: var(--muted); margin-top: 32px; }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex; align-items: flex-end;
  padding: calc(var(--nav-h) + 40px) 0 clamp(40px, 7vh, 88px);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(90% 70% at 85% 10%, rgba(255, 91, 34, 0.35), transparent 60%),
    radial-gradient(60% 60% at 20% 90%, rgba(120, 30, 6, 0.4), transparent 70%),
    var(--bg);
}
.hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: 0; transition: opacity 1200ms ease; }
.hero__gl.is-ready { opacity: 1; }
.hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11, 11, 12, 0.2) 0%, transparent 35%, rgba(11, 11, 12, 0.55) 78%, var(--bg) 100%); }
.hero__content { position: relative; }
.hero__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.9rem, 7.6vw, 7.25rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
}
.hero__title .ln { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero__title .ln > span { display: inline-block; }
.hl { position: relative; display: inline-block; color: var(--ember); }
.hl__stroke { position: absolute; left: -2%; right: -2%; bottom: -0.08em; width: 104%; height: 0.2em; overflow: visible; }
.hl__stroke path { fill: none; stroke: var(--ember); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 0; }
.hero__row { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 34rem) auto; justify-content: space-between; align-items: end; gap: 28px 48px; }
.hero__lede { font-size: clamp(1.08rem, 1.3vw, 1.25rem); color: #cfcac2; max-width: 40ch; line-height: 1.55; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ reveal (signature) */
.reveal { position: relative; }
.reveal__pin { position: relative; height: 100dvh; overflow: hidden; display: grid; place-items: center; }
.reveal__media { position: absolute; inset: 0; }
.motion .reveal__media { clip-path: inset(18% 22% 18% 22% round 28px); will-change: clip-path; }
.reveal__media video { width: 100%; height: 100%; object-fit: cover; }
.motion .reveal__media video { transform: scale(1.25); will-change: transform; }
.reveal__tint { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 11, 12, 0.88) 0%, rgba(11, 11, 12, 0.55) 55%, rgba(11, 11, 12, 0.25) 100%); }
.motion .reveal__tint { opacity: 0; }
.reveal__copy { position: relative; z-index: 2; }
.reveal__line { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 4vw, 3.6rem); line-height: 1.04; letter-spacing: -0.035em; color: var(--text); }
.motion .reveal__line { opacity: 0; transform: translateY(40px); filter: blur(8px); }
.reveal__line + .reveal__line { margin-top: 0.25em; }
.reveal__line--big { font-weight: 800; font-size: clamp(2.4rem, 6.4vw, 6rem); line-height: 0.96; max-width: 24ch; margin-top: 0.45em !important; }

/* ------------------------------------------------------------------ logos */
.logos { padding-block: clamp(56px, 8vw, 104px) clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.logos__label { color: var(--muted); font-size: 0.95rem; margin-bottom: 28px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; }
.marquee__group li { width: clamp(150px, 15vw, 210px); height: 72px; display: grid; place-items: center; padding-inline: 24px; }
.lg { max-height: 34px; width: auto; max-width: 100%; object-fit: contain; opacity: 0.55; transition: opacity 300ms ease; }
.lg--sq { max-height: 56px; }
.lg--mtn { max-height: 46px; }
.lg--mono { filter: grayscale(1) brightness(0) invert(1); }
.lg--white { filter: grayscale(1); }
.lg--flat { filter: grayscale(1) invert(1) contrast(2.4) brightness(1.1); mix-blend-mode: screen; }
.marquee__group li:hover .lg { opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ manifesto */
.manifesto { padding-block: clamp(96px, 14vw, 200px); }
.manifesto__text {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.2vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 22ch;
  text-wrap: pretty;
}
.manifesto__text .w { opacity: 0.16; transition: none; }
.manifesto__sign { display: flex; align-items: center; gap: 14px; margin-top: clamp(32px, 4vw, 56px); }
.manifesto__sign img { width: 56px; height: 56px; border-radius: 999px; object-fit: cover; filter: grayscale(1) contrast(1.05); border: 1px solid var(--line-2); }
.manifesto__name { font-weight: 700; }
.manifesto__role { color: var(--muted); font-size: 0.95rem; }

/* ------------------------------------------------------------------ services */
.services { padding-bottom: clamp(80px, 10vw, 140px); }
.services__title { max-width: 14ch; margin-bottom: clamp(40px, 6vw, 80px); }
.stack { display: grid; gap: 24px; }
.card {
  position: sticky;
  top: calc(var(--nav-h) + 16px + var(--i, 0) * 14px);
  min-height: min(620px, calc(100dvh - var(--nav-h) - 60px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(20px, 2.4vw, 32px);
  border-radius: var(--r-panel);
  background: linear-gradient(180deg, #17171a, #111113);
  border: 1px solid var(--line);
  box-shadow: 0 -24px 60px -30px rgba(0, 0, 0, 0.8), 0 30px 60px -40px rgba(0, 0, 0, 0.6);
  transform-origin: 50% 0%;
  will-change: transform;
}
.card:nth-child(1) { --i: 0; }
.card:nth-child(2) { --i: 1; }
.card:nth-child(3) { --i: 2; }
.card:nth-child(4) { --i: 3; }
.card--ember { background: linear-gradient(180deg, #ff6630, var(--ember)); color: var(--ember-ink); border-color: transparent; }
.card__body { display: flex; flex-direction: column; padding: clamp(4px, 1vw, 16px); }
.card__title { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 4.4vw, 4.2rem); letter-spacing: -0.04em; line-height: 0.95; }
.card__text { margin-top: 20px; max-width: 38ch; color: var(--muted); font-size: clamp(1rem, 1.15vw, 1.15rem); }
.card--ember .card__text { color: rgba(22, 7, 0, 0.78); }
.tags { margin-top: auto; padding-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.88rem; font-weight: 500; color: var(--text); }
.card--ember .tags li { border-color: rgba(22, 7, 0, 0.28); color: var(--ember-ink); }
.card__media { position: relative; border-radius: var(--r-media); overflow: hidden; background: #000; min-height: 260px; }
.card__media video, .card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------------ work */
.work { position: relative; padding-block: clamp(80px, 10vw, 140px); border-top: 1px solid var(--line); }
.work .h2 { margin-bottom: clamp(32px, 5vw, 64px); }
.work__list { border-top: 1px solid var(--line); }
.work__row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: clamp(22px, 3vw, 40px) 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.work__row::before { content: ""; position: absolute; inset: 0; background: var(--bg-3); transform: scaleY(0); transform-origin: 50% 100%; transition: transform 500ms var(--ease-expo); z-index: -1; }
.work__name { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4.6vw, 4.4rem); letter-spacing: -0.045em; line-height: 0.95; transition: transform 500ms var(--ease-expo), color 300ms ease; }
.work__kind { color: var(--muted); font-size: clamp(0.98rem, 1.1vw, 1.1rem); max-width: 34ch; transition: color 300ms ease; }
.work__go { width: 56px; height: 56px; border-radius: 999px; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background-color 300ms ease, border-color 300ms ease, transform 500ms var(--ease-expo); }
.work__go svg { width: 20px; height: 20px; fill: var(--text); transition: fill 300ms ease; }
@media (hover: hover) and (pointer: fine) {
  .work__row:hover::before { transform: scaleY(1); }
  .work__row:hover .work__name { transform: translateX(24px); color: var(--ember); }
  .work__row:hover .work__kind { color: var(--text); }
  .work__row:hover .work__go { background: var(--ember); border-color: var(--ember); transform: rotate(45deg); }
  .work__row:hover .work__go svg { fill: var(--ember-ink); }
  .work__list:hover .work__row:not(:hover) .work__name { color: var(--dim); }
}
.work__thumb { display: none; }
.form__hint { font-size: 0.88rem; color: var(--muted); margin-top: -8px; }
.work__note { margin-top: 24px; color: var(--dim); font-size: 0.92rem; }
.work__preview {
  position: fixed; top: 0; left: 0; z-index: 50;
  width: clamp(240px, 24vw, 380px); aspect-ratio: 4 / 3;
  pointer-events: none;
  translate: -50% -50%;
}
.work__frame { width: 100%; height: 100%; border-radius: var(--r-media); overflow: hidden; transform: scale(0.6); opacity: 0; transition: transform 500ms var(--ease-expo), opacity 300ms ease; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7); }
.work__preview.is-on .work__frame { transform: scale(1); opacity: 1; }
.work__frame img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------------ process */
.process { position: relative; background: var(--bg-2); border-block: 1px solid var(--line); }
.process__pin { overflow: hidden; }
.process__track { display: flex; gap: clamp(16px, 2vw, 28px); padding: clamp(80px, 10vw, 140px) var(--gutter); width: max-content; align-items: stretch; }
.process__intro { width: min(560px, 80vw); display: flex; flex-direction: column; justify-content: space-between; padding-right: clamp(24px, 4vw, 80px); }
.process__sub { color: var(--muted); max-width: 34ch; margin-top: 24px; font-size: 1.1rem; }
.step {
  position: relative;
  width: clamp(300px, 30vw, 440px);
  min-height: clamp(420px, 56vh, 560px);
  padding: 32px;
  border-radius: var(--r-panel);
  border: 1px solid var(--line);
  background: var(--bg);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.step--ember { background: var(--ember); color: var(--ember-ink); border-color: transparent; }
.step__n { font-family: var(--display); font-weight: 800; font-size: clamp(6rem, 11vw, 10rem); line-height: 0.8; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1.5px var(--line-2); }
.step--ember .step__n { -webkit-text-stroke-color: rgba(22, 7, 0, 0.4); }
.step__when { margin-top: auto; color: var(--ember); font-weight: 700; font-size: 0.95rem; }
.step--ember .step__when { color: var(--ember-ink); }
.step__title { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 2.4vw, 2.4rem); letter-spacing: -0.03em; line-height: 1; margin-top: 10px; }
.step__text { margin-top: 14px; color: var(--muted); }
.step--ember .step__text { color: rgba(22, 7, 0, 0.78); }

/* ------------------------------------------------------------------ fields */
.fields { padding-block: clamp(96px, 12vw, 180px); }
.fields .h2 { margin-bottom: clamp(32px, 5vw, 64px); max-width: 12ch; }
.mosaic { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); height: clamp(560px, 64vw, 820px); }
.tile { position: relative; overflow: hidden; border-radius: var(--r-panel); background: var(--bg-3); }
.tile--a { grid-row: span 2; }
.tile img { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; transition: transform 1200ms var(--ease-expo), filter 600ms ease; filter: saturate(0.85); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(11, 11, 12, 0.85)); }
.tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(20px, 2.4vw, 32px); display: grid; gap: 8px; }
.tile__name { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 3.6vw, 3.4rem); letter-spacing: -0.04em; line-height: 0.95; }
.tile__text { color: #d7d2ca; max-width: 34ch; }
@media (hover: hover) and (pointer: fine) {
  .tile:hover img { filter: saturate(1.05); }
}
.fields__more { margin-top: 28px; color: var(--muted); max-width: 60ch; font-size: 1.1rem; }

/* ------------------------------------------------------------------ studio */
.studio__banner { position: relative; height: clamp(520px, 86vh, 860px); overflow: hidden; margin-inline: clamp(8px, 1.4vw, 20px); border-radius: var(--r-panel); }
.studio__banner img { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; }
.studio__banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 11, 12, 0.1), rgba(11, 11, 12, 0.75) 85%); }
.studio__banner-copy { position: absolute; left: 0; right: 0; bottom: clamp(28px, 5vw, 64px); z-index: 1; }
.studio__title { font-size: clamp(2.8rem, 7.4vw, 6rem); max-width: 11ch; }
.studio__lede { margin-top: 18px; max-width: 38ch; color: #d7d2ca; font-size: 1.15rem; }
.commit { padding-block: clamp(80px, 10vw, 140px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.commit__title { text-wrap: balance; font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 1; letter-spacing: -0.035em; position: sticky; top: calc(var(--nav-h) + 32px); max-width: 13ch; }
.commit__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 48px); counter-reset: c; }
.commit__list li { padding-top: 22px; border-top: 1px solid var(--line-2); position: relative; }
.commit__list li::before { content: ""; position: absolute; top: -1px; left: 0; width: 44px; height: 2px; background: var(--ember); }
.commit__list h4 { font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.15; }
.commit__list p { margin-top: 10px; color: var(--muted); }

/* ------------------------------------------------------------------ faq */
.faq { padding-block: clamp(80px, 10vw, 140px); border-top: 1px solid var(--line); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__title { max-width: 10ch; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font-family: var(--display); font-weight: 700; font-size: clamp(1.25rem, 1.8vw, 1.6rem); letter-spacing: -0.02em; transition: color 200ms ease; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary:hover { color: var(--ember-hi); }
.faq__list summary i { position: relative; flex: none; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line-2); transition: transform 420ms var(--ease-expo), background-color 300ms ease, border-color 300ms ease; }
.faq__list summary i::before, .faq__list summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; translate: -50% -50%; }
.faq__list summary i::after { rotate: 90deg; transition: rotate 420ms var(--ease-expo); }
.faq__list details[open] summary i { background: var(--ember); border-color: var(--ember); color: var(--ember-ink); transform: rotate(180deg); }
.faq__list details[open] summary i::after { rotate: 0deg; }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 480ms var(--ease-expo); }
.faq__a > div { overflow: hidden; }
.faq__a p { padding-bottom: 26px; max-width: 60ch; color: var(--muted); }
details.is-open .faq__a { grid-template-rows: 1fr; }
.no-js details[open] .faq__a, html:not(.js) details[open] .faq__a { grid-template-rows: 1fr; }

/* ------------------------------------------------------------------ cta */
.cta { position: relative; padding-block: clamp(96px, 12vw, 180px); overflow: hidden; isolation: isolate; }
.cta__bg { position: absolute; inset: 0; z-index: -1; }
.cta__bg video { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; filter: saturate(0.6); }
.cta__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(11, 11, 12, 0.6) 40%, rgba(11, 11, 12, 0.92) 100%); }
.cta__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.cta__title { font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 7vw, 6rem); line-height: 0.92; letter-spacing: -0.045em; max-width: 9ch; }
.cta__title .ch { display: inline-block; }
.cta__title .wd { display: inline-block; white-space: nowrap; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.cta__text { margin-top: 28px; color: #d7d2ca; max-width: 38ch; font-size: 1.15rem; }
.cta__direct { margin-top: 32px; display: grid; gap: 10px; font-size: 1.15rem; font-weight: 500; }

.form {
  padding: clamp(22px, 3vw, 36px);
  border-radius: var(--r-panel);
  background: rgba(17, 17, 19, 0.82);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: grid; gap: 20px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: 0.92rem; font-weight: 500; color: #d7d2ca; padding: 0; }
.opt { color: var(--dim); font-weight: 400; }
.field input, .field textarea {
  width: 100%;
  font: inherit; font-size: 1rem; color: var(--text);
  background: rgba(236, 232, 225, 0.04);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 14px 16px;
  transition: border-color 200ms ease, background-color 200ms ease, box-shadow 200ms ease;
  resize: vertical;
}
.field input:hover, .field textarea:hover { border-color: rgba(236, 232, 225, 0.32); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ember); background: rgba(255, 91, 34, 0.05); box-shadow: 0 0 0 4px rgba(255, 91, 34, 0.18); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #ff8a6a; }
.field__err { font-size: 0.88rem; color: #ffa58a; min-height: 0; }
.field__err:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; margin-bottom: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.92rem; color: var(--text); transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out); }
.chips label:active span { transform: scale(0.96); }
.chips input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.chips input:focus-visible + span { outline: 2px solid var(--ember); outline-offset: 2px; }
.form__status { font-size: 0.95rem; color: var(--muted); min-height: 1.5em; }
.form__status.is-ok { color: #ffd3c2; }
.form.is-sending .btn { opacity: 0.7; pointer-events: none; }

/* ------------------------------------------------------------------ footer */
.foot { position: relative; padding-top: clamp(64px, 8vw, 112px); border-top: 1px solid var(--line); overflow: hidden; }
.foot__top { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 32px; align-items: start; }
.foot__col { display: grid; gap: 10px; align-content: start; min-width: 0; }
.foot__col a { overflow-wrap: anywhere; }
.foot__col a { color: var(--muted); transition: color 200ms ease; width: fit-content; }
.foot__col a:hover { color: var(--text); }
.foot__h { font-weight: 700; margin-bottom: 6px; }
.foot__top-btn { padding: 10px 18px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 0.92rem; transition: border-color 200ms ease, transform 160ms var(--ease-out); }
.foot__top-btn:hover { border-color: var(--text); }
.foot__top-btn:active { transform: scale(0.97); }
.foot__word {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(6rem, 29vw, 30rem);
  line-height: 0.78; letter-spacing: -0.06em;
  text-align: center;
  margin-top: clamp(48px, 8vw, 120px);
  color: var(--text);
  display: flex; justify-content: center;
  user-select: none;
}
.foot__word span { display: inline-block; }
.foot__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px; color: var(--dim); font-size: 0.9rem; border-top: 1px solid var(--line); }

/* ------------------------------------------------------------------ initial states (only when JS runs motion) */
.motion [data-rise], .motion [data-fade] { opacity: 0; }
.motion [data-clip] { clip-path: inset(12% 6% 12% 6% round 28px); }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: block; }
  .card { grid-template-columns: 1fr; min-height: 0; }
  .card__media { min-height: 0; aspect-ratio: 16 / 10; }
  .commit, .faq__grid, .cta__grid { grid-template-columns: 1fr; }
  .commit__title { position: static; }
  .foot__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__top-btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 760px) {
  :root { --nav-h: 64px; }
  .hero__row { grid-template-columns: 1fr; }
  .hero__ctas .btn { flex: 1 1 auto; justify-content: space-between; }
  .hero__ctas .btn--ghost { justify-content: center; }
  .reveal__media { clip-path: inset(22% 8% 22% 8% round 22px); }
  .work__row { grid-template-columns: 76px minmax(0, 1fr) auto; gap: 4px 16px; }
  .work__thumb { display: block; grid-column: 1; grid-row: 1 / span 2; width: 76px; height: 76px; border-radius: 14px; object-fit: cover; }
  .work__name { grid-column: 2; grid-row: 1; font-size: clamp(1.8rem, 9vw, 2.6rem); }
  .work__kind { grid-column: 2; grid-row: 2; font-size: 0.95rem; }
  .work__go { grid-column: 3; grid-row: 1 / span 2; width: 44px; height: 44px; }
  .work__preview { display: none; }
  .process__track { flex-direction: column; width: auto; }
  .process__intro, .step { width: 100%; }
  .step { min-height: 0; }
  .step__n { font-size: 5rem; margin-bottom: 40px; }
  .mosaic { grid-template-columns: 1fr; grid-template-rows: none; height: auto; }
  .tile { aspect-ratio: 4 / 5; }
  .tile--a { grid-row: auto; }
  .tile--b, .tile--c { aspect-ratio: 4 / 3; }
  .commit__list { grid-template-columns: 1fr; }
  .foot__top { grid-template-columns: 1fr 1fr; }
  .studio__banner { height: 78vh; }
  .card { position: relative; top: 0; }
}

/* ------------------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
  .marquee__group[aria-hidden] { display: none; }
  .reveal__media { clip-path: inset(0 0 0 0); }
  .reveal__tint { opacity: 1; }
  .reveal__line { opacity: 1; transform: none; filter: none; }
  .manifesto__text .w { opacity: 1; }
  .card { position: relative; top: 0; }
}

.reveal__line .ember { white-space: nowrap; }
