/* Kavosh — kavoshagency.com
   Dark, editorial, cinematic. Estedad (SIL OFL). Motion: transform/opacity only, custom ease-out,
   UI under 300 ms, marketing reveals longer, hover gated to fine pointers, reduced motion honoured. */

@font-face { font-family: "Estedad"; src: url("../fonts/estedad-medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Estedad"; src: url("../fonts/estedad-semibold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Estedad"; src: url("../fonts/estedad-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Estedad"; src: url("../fonts/estedad-extrabold.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Estedad"; src: url("../fonts/estedad-black.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  --bg: #0B0A09;
  --bg-2: #11100E;
  --bg-3: #181714;
  --card: #141311;
  --ink: #F1ECE3;
  --ink-2: #C9C2B6;
  --ink-3: #908A7F;
  --ink-4: #5F5A51;
  --line: rgba(241, 236, 227, 0.09);
  --line-2: rgba(241, 236, 227, 0.16);
  --sand: #D0B192;
  --sand-2: #E4CDB3;
  --sand-ink: #1B150E;
  --blue: #336BF2;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --gutter: clamp(16px, 4.2vw, 56px);
  --max: 1360px;
  --r: 20px;
  --r-sm: 12px;
  --header-h: 76px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: "Estedad", Tahoma, system-ui, sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.95;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure, address { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
::selection { background: var(--sand); color: var(--sand-ink); }
:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; border-radius: 6px; }
bdi { unicode-bidi: isolate; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip {
  position: fixed; inset-inline-start: 16px; top: 12px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: var(--sand); color: var(--sand-ink); font-weight: 700;
  transform: translateY(-160%); transition: transform 200ms var(--ease-out);
}
.skip:focus { transform: translateY(0); }

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

h1, h2, h3 { color: var(--ink); font-weight: 800; line-height: 1.25; }
h2 { font-size: clamp(34px, 5.4vw, 74px); font-weight: 900; line-height: 1.22; }
h3 { font-size: clamp(20px, 1.9vw, 26px); }
.accent { color: var(--sand); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--sand); font-weight: 700; font-size: 14px; line-height: 1.6;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sand); box-shadow: 0 0 0 4px rgba(208, 177, 146, 0.16); }

.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 880px; }
.section-lead { color: var(--ink-3); font-size: clamp(16px, 1.35vw, 19px); max-width: 640px; }

/* buttons ------------------------------------------------------------------------------------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 28px; border-radius: 999px;
  font-weight: 700; font-size: 16px; line-height: 1; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn-sm { height: 42px; padding: 0 20px; font-size: 14px; }
.btn-primary { background: var(--sand); color: var(--sand-ink); }
.btn-ghost { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-arrow { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms var(--ease-out); }
.btn-label { display: inline-block; transition: filter 200ms ease, opacity 200ms ease; }
.btn-label.is-swapping { filter: blur(3px); opacity: 0.4; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--sand-2); }
  .btn-ghost:hover { background: rgba(241, 236, 227, 0.06); }
  .btn:hover .btn-arrow { transform: translateX(-4px); }
}

/* header -------------------------------------------------------------------------------------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; }
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(11, 10, 9, 0.72); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 -1px 0 var(--line);
  opacity: 0; transition: opacity 240ms ease;
}
.site-header.is-scrolled::before, .site-header.is-open::before { opacity: 1; }
.header-inner {
  height: var(--header-h); max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 12px; margin-inline-end: auto; }
.brand-mark { width: 46px; height: auto; }
.brand-text { display: grid; line-height: 1.3; }
.brand-name { color: var(--ink); font-weight: 900; font-size: 19px; }
.brand-tag { color: var(--ink-3); font-size: 12px; font-weight: 600; }
.nav { display: flex; gap: 6px; }
.nav a { position: relative; padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-size: 15px; font-weight: 600; transition: color 200ms ease, background-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--ink); background: rgba(241, 236, 227, 0.06); } }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-2); place-items: center; transition: transform 160ms var(--ease-out); }
.menu-btn:active { transform: scale(0.95); }
.menu-btn-lines, .menu-btn-lines::before, .menu-btn-lines::after { display: block; width: 18px; height: 1.6px; border-radius: 2px; background: var(--ink); transition: transform 240ms var(--ease-out), opacity 160ms ease; }
.menu-btn-lines { position: relative; }
.menu-btn-lines::before, .menu-btn-lines::after { content: ""; position: absolute; inset-inline: 0; }
.menu-btn-lines::before { transform: translateY(-6px); }
.menu-btn-lines::after { transform: translateY(6px); }
.site-header.is-open .menu-btn-lines { background: transparent; }
.site-header.is-open .menu-btn-lines::before { transform: rotate(45deg); }
.site-header.is-open .menu-btn-lines::after { transform: rotate(-45deg); }

.menu {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
  height: calc(100dvh - var(--header-h)); padding: 24px var(--gutter) 40px;
  background: rgba(11, 10, 9, 0.96); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; transform: translateY(-8px);
  transition: opacity 240ms var(--ease-out), transform 320ms var(--ease-drawer);
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; transform: none; }
.menu nav { display: grid; }
.menu nav a, .menu-phone {
  opacity: 0; transform: translateY(10px);
  transition: opacity 280ms var(--ease-out), transform 360ms var(--ease-out);
  transition-delay: calc(var(--i) * 40ms + 60ms);
}
.menu.is-open nav a, .menu.is-open .menu-phone { opacity: 1; transform: none; }
.menu nav a { padding: 12px 0; color: var(--ink); font-size: 34px; font-weight: 900; line-height: 1.35; border-bottom: 1px solid var(--line); }
.menu-phone { display: grid; gap: 4px; color: var(--ink-3); font-size: 14px; }
.menu-phone bdi { color: var(--sand); font-size: 26px; font-weight: 800; }

/* hero ---------------------------------------------------------------------------------------- */
.hero { position: relative; min-height: max(640px, 100svh); display: grid; grid-template-rows: 1fr auto; isolation: isolate; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -1; background: #0b0a09 url("../img/hero-poster.webp") center / cover no-repeat; }
.hero-video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 700ms ease; }
.hero-video.is-playing { opacity: 1; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(11, 10, 9, 0.86) 22%, rgba(11, 10, 9, 0.35) 52%, rgba(11, 10, 9, 0.45) 78%, rgba(11, 10, 9, 0.8) 100%),
    radial-gradient(120% 90% at 85% 70%, rgba(11, 10, 9, 0.55), transparent 60%);
}
.hero-inner { align-self: end; padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(28px, 5vh, 56px); }
.hero-title { margin: 22px 0 22px; font-weight: 900; font-size: clamp(50px, 9.6vw, 148px); line-height: 1.14; color: var(--ink); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .line > span { display: inline-block; }
.hero-lead { max-width: 560px; color: var(--ink-2); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding-top: 26px; padding-bottom: 34px; border-top: 1px solid var(--line);
}
.hero-stats { display: flex; gap: clamp(20px, 4vw, 56px); }
.hero-stats div { display: grid; gap: 2px; }
.hero-stats dt { color: var(--ink); font-weight: 900; font-size: clamp(20px, 2vw, 28px); line-height: 1.3; }
.hero-stats dd { color: var(--ink-3); font-size: 13px; line-height: 1.6; }
.reel-now { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 13px; white-space: nowrap; }
.reel-label { display: inline-flex; align-items: center; gap: 8px; }
.reel-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #E5484D; box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.2); }
.reel-title { color: var(--ink); font-weight: 700; transition: filter 240ms ease, opacity 240ms ease; }
.reel-title.is-swapping { filter: blur(4px); opacity: 0; }

/* hero entrance (marketing: allowed to be slow) */
.js [data-hero-in] { opacity: 0; transform: translateY(18px); }
.js .hero-title [data-hero-in] { transform: translateY(105%); opacity: 1; }
.js.is-ready [data-hero-in] {
  opacity: 1; transform: none;
  transition: transform 1000ms var(--ease-out), opacity 800ms ease;
  transition-delay: calc(var(--i) * 90ms + 120ms);
}

/* clients marquee ------------------------------------------------------------------------------ */
.clients { padding: clamp(28px, 4vw, 48px) 0 clamp(64px, 9vw, 120px); border-bottom: 1px solid var(--line); }
.clients-title { color: var(--ink-4); font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to left, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(to left, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.marquee ul { display: flex; align-items: center; }
.marquee li { display: flex; align-items: center; color: var(--ink-2); font-weight: 800; font-size: clamp(24px, 3.2vw, 44px); line-height: 1.6; white-space: nowrap; }
.marquee li::after { content: ""; width: 9px; height: 9px; margin-inline: clamp(22px, 3vw, 44px); background: var(--sand); transform: rotate(45deg); opacity: 0.8; }
@keyframes marquee { to { transform: translateX(50%); } }
@media (hover: hover) and (pointer: fine) { .marquee:hover .marquee-track { animation-play-state: paused; } }

/* scroll reveal -------------------------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); }
.js [data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity 700ms ease, transform 900ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}

/* work ---------------------------------------------------------------------------------------- */
.work { padding: clamp(80px, 11vw, 150px) 0 clamp(70px, 9vw, 120px); }
.work-head { max-width: none; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 28px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.chip {
  height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 700;
  color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .chip[aria-pressed="false"]:hover { color: var(--ink); background: rgba(241, 236, 227, 0.06); } }

.work-grid {
  --row: clamp(300px, 31vw, 460px);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: var(--row);
  gap: clamp(12px, 1.4vw, 20px); grid-auto-flow: row dense;
}
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }
.work-grid.is-filtered .work-card { grid-column: span 6; }

.work-card {
  position: relative; overflow: hidden; border-radius: var(--r); background: var(--card);
  isolation: isolate; transform: translateZ(0);
  transition: opacity 220ms ease, transform 220ms var(--ease-out);
}
.work-card.is-hidden { display: none; }
.work-card.is-fading { opacity: 0; transform: scale(0.98); }
/* scroll reveal for the grid: the picture opens from the bottom and settles, then the caption arrives.
   The clip sits on the media, not the card, so the card itself stays observable. */
.js .work-card:not(.is-in) .work-media { clip-path: inset(100% 0 0 0); }
.js .work-card:not(.is-in) .work-media img { transform: scale(1.12); }
.js .work-card:not(.is-in) .work-info, .js .work-card:not(.is-in) .work-play { opacity: 0; transform: translateY(14px); }
/* the slow timing applies only while revealing; afterwards hover feedback is immediate again (.is-done) */
.js .work-card.is-in:not(.is-done) .work-media { transition: clip-path 1000ms var(--ease-in-out); transition-delay: calc(var(--i, 0) * 90ms); }
.js .work-card.is-in:not(.is-done) .work-info, .js .work-card.is-in:not(.is-done) .work-play {
  transition: opacity 500ms ease, transform 700ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms + 380ms);
}
.work-media { position: absolute; inset: 0; z-index: -1; }
.work-media img, .work-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work-media img { transition: transform 900ms var(--ease-out); }
.work-media video { opacity: 0; transition: opacity 260ms ease; }
.work-card.is-previewing .work-media video { opacity: 1; }
.work-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8, 7, 6, 0.92) 0%, rgba(8, 7, 6, 0.45) 34%, rgba(8, 7, 6, 0) 62%);
}
.is-vertical .work-bg { filter: blur(26px) saturate(120%); transform: scale(1.25); opacity: 0.55; }
.is-vertical .work-phone {
  position: absolute; inset: 22px auto 22px 50%; width: auto; height: calc(100% - 44px); aspect-ratio: 9 / 16;
  transform: translateX(-50%); border-radius: 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
  object-fit: cover;
}
.is-vertical .work-media video {
  inset: 22px auto 22px 50%; width: auto; height: calc(100% - 44px); aspect-ratio: 9 / 16; transform: translateX(-50%); border-radius: 18px;
}
.work-info { position: absolute; inset: auto 0 0 0; padding: clamp(18px, 2vw, 28px); display: grid; gap: 4px; pointer-events: none; }
.work-client { color: var(--sand); font-size: 13px; font-weight: 700; }
.work-title { font-size: clamp(22px, 2.2vw, 32px); font-weight: 900; line-height: 1.3; }
.work-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.work-tags li, .tags li {
  padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.8;
  color: var(--ink-2); background: rgba(241, 236, 227, 0.08); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.work-play {
  position: absolute; top: clamp(16px, 1.6vw, 22px); inset-inline-start: clamp(16px, 1.6vw, 22px);
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(241, 236, 227, 0.12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--ink); pointer-events: none;
  transition: transform 260ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}
.work-play svg { width: 18px; height: 18px; fill: currentColor; }
.work-play.is-gallery svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.work-hit { position: absolute; inset: 0; z-index: 2; border-radius: var(--r); -webkit-tap-highlight-color: transparent; }
.work-hit:focus-visible { outline-offset: -4px; }
.work-card:active { transform: scale(0.99); }
@media (hover: hover) and (pointer: fine) {
  .work-card:hover .work-media img { transform: scale(1.035); }
  .work-card:hover .work-play { background: var(--sand); color: var(--sand-ink); transform: scale(1.06); }
  .is-vertical:hover .work-bg { transform: scale(1.3); }
}

/* services ------------------------------------------------------------------------------------- */
.services { position: relative; padding: clamp(80px, 10vw, 140px) 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.service-list { border-top: 1px solid var(--line-2); }
.service {
  position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; gap: 28px;
  padding: clamp(26px, 3vw, 40px) 0; border-bottom: 1px solid var(--line-2);
  transition: opacity 220ms ease;
}
.service-num { color: var(--sand); font-weight: 800; font-size: 15px; }
.service-body { display: grid; gap: 10px; }
.service h3 { font-size: clamp(28px, 3.8vw, 54px); font-weight: 900; line-height: 1.25; }
.service p { max-width: 620px; color: var(--ink-3); }
.service .tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 280px; }
.service-thumb { display: none; }
.service-list.is-hovering .service:not(.is-active) { opacity: 0.32; }
.hover-media {
  position: fixed; top: 0; left: 0; z-index: 40; width: 340px; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden;
  pointer-events: none; background: var(--bg-3); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  opacity: 0; transform: translate3d(-9999px, 0, 0); will-change: transform, opacity;
}
.hover-media img, .hover-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hover-media video { opacity: 0; transition: opacity 200ms ease; }
.hover-media.has-video video { opacity: 1; }
.hover-media.is-visible { opacity: 1; transition: opacity 200ms ease; }
.hover-media:not(.is-visible) { transition: opacity 150ms ease; }

/* ai ------------------------------------------------------------------------------------------ */
.ai { position: relative; padding: clamp(90px, 11vw, 160px) 0; overflow: hidden; }
.ai::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 980px; max-height: 980px;
  background: radial-gradient(circle, rgba(208, 177, 146, 0.10), transparent 62%); pointer-events: none;
}
.pipeline { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-2); margin-bottom: clamp(64px, 8vw, 110px); }
.pipeline li { position: relative; padding: 26px 0 0; padding-inline-end: 22px; }
.pipeline li::before { content: ""; position: absolute; top: -5px; inset-inline-start: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--sand); box-shadow: 0 0 0 5px var(--bg); }
.pipe-num { display: block; color: var(--ink-4); font-weight: 800; font-size: 14px; margin-bottom: 10px; }
.pipeline h3 { font-size: clamp(18px, 1.5vw, 22px); margin-bottom: 8px; }
.pipeline p { color: var(--ink-3); font-size: 15px; line-height: 1.85; }

.ai-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.reels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); }
.reel { position: relative; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: var(--bg-3); box-shadow: 0 0 0 1px var(--line); }
.reel:nth-child(2) { translate: 0 -34px; }
.reel video { width: 100%; height: 100%; object-fit: cover; }
.reel figcaption {
  position: absolute; inset: auto 0 0 0; padding: 40px 14px 14px; display: grid; gap: 0;
  background: linear-gradient(to top, rgba(8, 7, 6, 0.9), transparent); font-size: 12px; line-height: 1.6;
}
.reel figcaption span:first-child { color: var(--ink); font-weight: 800; font-size: 15px; }
.reel figcaption span:last-child { color: var(--ink-3); }
.personal { display: grid; gap: 20px; }
.personal-line { color: var(--ink); font-weight: 900; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.35; }
.personal-name { display: inline-block; color: var(--sand); transition: filter 260ms ease, opacity 260ms ease, transform 260ms var(--ease-out); }
.personal-name.is-swapping { filter: blur(6px); opacity: 0; transform: translateY(6px); }
.personal-text { color: var(--ink-3); max-width: 520px; }
.personal-stats { display: flex; gap: 40px; padding-top: 10px; border-top: 1px solid var(--line); }
.personal-stats div { display: grid; }
.personal-stats dt { color: var(--ink); font-weight: 900; font-size: 30px; line-height: 1.4; }
.personal-stats dd { color: var(--ink-3); font-size: 13px; }

/* tv ------------------------------------------------------------------------------------------ */
.tv { padding: clamp(90px, 11vw, 150px) 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.tv-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.tv-stage {
  position: sticky; top: calc(var(--header-h) + 32px); order: 2; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden;
  background: var(--bg-3); box-shadow: 0 0 0 1px var(--line);
}
.tv-stage img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06); filter: blur(8px);
  transition: opacity 600ms ease, transform 900ms var(--ease-out), filter 600ms ease;
}
.tv-stage img.is-active { opacity: 1; transform: none; filter: none; }
.tv-list { order: 1; }
.tv-item { padding: clamp(28px, 4vw, 48px) 0; border-bottom: 1px solid var(--line-2); display: grid; gap: 10px; opacity: 0.38; transition: opacity 300ms ease; }
.tv-item:first-child { border-top: 1px solid var(--line-2); }
.tv-item.is-active { opacity: 1; }
.tv-thumb { display: none; }
.tv-num { color: var(--sand); font-weight: 800; font-size: 14px; }
.tv-item h3 { font-size: clamp(30px, 3.6vw, 50px); font-weight: 900; }
.tv-item p { color: var(--ink-3); max-width: 520px; }
.tv-item .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

/* numbers ------------------------------------------------------------------------------------- */
.numbers { padding: clamp(70px, 9vw, 120px) 0; }
.numbers-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(20px, 3vw, 48px); }
.number { display: grid; gap: 8px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.number-value { color: var(--ink); font-weight: 900; font-size: clamp(34px, 4.6vw, 66px); line-height: 1.2; white-space: nowrap; }
.number:first-child .number-value { color: var(--sand); }
.number-label { color: var(--ink-3); font-size: 15px; line-height: 1.8; }

/* process ------------------------------------------------------------------------------------- */
.process { padding: clamp(80px, 10vw, 140px) 0; border-top: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin-bottom: clamp(44px, 6vw, 80px); }
.steps li { display: grid; gap: 8px; align-content: start; padding: 26px; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.step-num { color: var(--sand); font-weight: 800; font-size: 14px; }
.steps p { color: var(--ink-3); font-size: 15px; }
.models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.model { padding: clamp(24px, 2.6vw, 36px); border-radius: var(--r); background: linear-gradient(180deg, rgba(208, 177, 146, 0.07), rgba(208, 177, 146, 0) 70%), var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.model-kind { color: var(--sand); font-weight: 800; font-size: 14px; margin-bottom: 6px; }
.model h3 { font-size: clamp(22px, 2.2vw, 30px); margin-bottom: 16px; }
.model ul { display: grid; gap: 10px; }
.model li { position: relative; padding-inline-start: 18px; color: var(--ink-2); font-size: 15px; line-height: 1.8; }
.model li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.8em; width: 6px; height: 6px; border-radius: 50%; background: var(--sand); }

/* group --------------------------------------------------------------------------------------- */
.group { padding: clamp(80px, 10vw, 130px) 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.group-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.group-card {
  position: relative; display: grid; gap: 12px; align-content: start; min-height: 280px;
  padding: clamp(24px, 2.6vw, 36px); border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 200ms var(--ease-out), box-shadow 200ms ease;
}
.group-card img { width: 58px; height: auto; margin-bottom: 8px; }
.group-mono { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 8px; background: rgba(241, 236, 227, 0.07); color: var(--ink); font-weight: 900; font-size: 24px; }
.group-card h3 { font-size: 26px; }
.group-card p { color: var(--ink-3); font-size: 15px; }
.group-here, .group-link { margin-top: auto; padding-top: 18px; color: var(--sand); font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.group-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms var(--ease-out); }
a.group-card:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  a.group-card:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
  a.group-card:hover .group-link svg { transform: translate(-2px, -2px); }
}

/* contact ------------------------------------------------------------------------------------- */
.contact { position: relative; padding: clamp(100px, 12vw, 180px) 0 clamp(80px, 10vw, 140px); overflow: hidden; }
.contact::before {
  content: ""; position: absolute; inset: auto auto -30% -10%; width: 80vw; height: 80vw; max-width: 1100px; max-height: 1100px;
  background: radial-gradient(circle, rgba(208, 177, 146, 0.12), transparent 60%); pointer-events: none;
}
.contact-inner { position: relative; display: grid; gap: 20px; }
.contact-title { font-size: clamp(44px, 8vw, 120px); line-height: 1.16; }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(20px, 3vw, 48px); margin-top: clamp(36px, 5vw, 64px); padding-top: 32px; border-top: 1px solid var(--line-2); }
.contact-block { display: grid; gap: 10px; align-content: start; }
.contact-label { color: var(--ink-4); font-size: 13px; font-weight: 700; }
.contact-phone { color: var(--ink); font-weight: 900; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.25; transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .contact-phone:hover { color: var(--sand); } }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.contact-block address, .contact-legal { color: var(--ink); font-weight: 700; font-size: 18px; line-height: 1.9; }
.contact-meta { color: var(--ink-3); font-size: 14px; }

/* footer -------------------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 50px; height: auto; }
.footer-name { color: var(--ink); font-weight: 900; font-size: 18px; line-height: 1.4; }
.footer-legal { color: var(--ink-3); font-size: 13px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-nav a { color: var(--ink-3); font-size: 14px; font-weight: 600; transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .footer-nav a:hover { color: var(--ink); } }
.footer-copy { width: 100%; color: var(--ink-4); font-size: 13px; padding-top: 18px; border-top: 1px solid var(--line); }

/* lightbox ------------------------------------------------------------------------------------ */
.lightbox {
  width: min(1240px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 0;
  border-radius: 24px; background: var(--bg-2); color: var(--ink-2); box-shadow: 0 0 0 1px var(--line-2), 0 40px 120px rgba(0, 0, 0, 0.6);
  overflow: hidden; opacity: 0; transform: scale(0.96);
  transition: opacity 160ms ease, transform 160ms var(--ease-out);
}
.lightbox::backdrop { background: rgba(5, 4, 4, 0.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity 160ms ease; }
.lightbox.is-open { opacity: 1; transform: none; transition: opacity 260ms ease, transform 300ms var(--ease-out); }
.lightbox.is-open::backdrop { opacity: 1; transition: opacity 240ms ease; }
.lb-panel { display: grid; grid-template-columns: minmax(0, 1fr) 360px; max-height: calc(100dvh - 32px); }
.lb-stage { position: relative; background: #000; display: grid; place-items: center; min-height: 320px; transition: opacity 120ms ease; }
.lb-stage.is-swapping { opacity: 0; }
.lb-stage video { width: 100%; max-height: calc(100dvh - 32px); background: #000; }
.lb-stage.is-vertical video { width: auto; height: min(calc(100dvh - 32px), 820px); }
.lb-gallery { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lb-gallery::-webkit-scrollbar { display: none; }
.lb-gallery figure { flex: 0 0 100%; scroll-snap-align: center; display: grid; place-items: center; background: #000; }
.lb-gallery img { width: 100%; height: 100%; max-height: calc(100dvh - 32px); object-fit: contain; }
.lb-dots { position: absolute; bottom: 14px; inset-inline: 0; display: flex; justify-content: center; gap: 6px; }
.lb-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); transition: background-color 200ms ease, transform 200ms var(--ease-out); }
.lb-dots span.is-on { background: #fff; transform: scale(1.3); }
.lb-gal-btn { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, 0.45); color: #fff; transition: transform 160ms var(--ease-out), background-color 200ms ease; }
.lb-gal-btn:active { transform: scale(0.94); }
.lb-gal-btn svg, .lb-arrow svg, .lb-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lb-gal-prev { right: 14px; }
.lb-gal-next { left: 14px; }
.lb-meta { display: flex; flex-direction: column; gap: 12px; padding: 30px 28px 24px; overflow-y: auto; border-inline-start: 1px solid var(--line); }
.lb-client { color: var(--sand); font-weight: 700; font-size: 14px; }
.lb-title { font-size: 30px; font-weight: 900; line-height: 1.3; }
.lb-body { display: grid; gap: 16px; font-size: 15px; line-height: 1.95; color: var(--ink-2); }
.lb-body ul { display: flex; flex-wrap: wrap; gap: 6px; }
.lb-body ul li { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(241, 236, 227, 0.08); }
.lb-body dl { display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.lb-body dl div { display: grid; }
.lb-body dt { color: var(--ink); font-weight: 900; font-size: 24px; line-height: 1.4; }
.lb-body dd { color: var(--ink-3); font-size: 13px; }
.lb-link { color: var(--sand); font-weight: 700; font-size: 14px; }
.lb-link::after { content: " ↗"; }
.lb-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.lb-arrow { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); transition: transform 160ms var(--ease-out), background-color 200ms ease; }
.lb-arrow:active { transform: scale(0.94); }
.lb-count { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.lb-close {
  position: absolute; top: 14px; left: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(11, 10, 9, 0.7); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.lb-close:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) {
  .lb-arrow:hover, .lb-close:hover { background: rgba(241, 236, 227, 0.08); }
  .lb-gal-btn:hover { background: rgba(0, 0, 0, 0.7); }
}
html.is-locked { overflow: hidden; }

/* toast (enters and leaves from the same edge) */
.toast {
  position: fixed; bottom: calc(24px + env(safe-area-inset-bottom)); left: 50%; z-index: 80;
  padding: 12px 18px; border-radius: 14px; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4); pointer-events: none;
  opacity: 0; transform: translate(-50%, 140%);
  transition: transform 400ms var(--ease-out), opacity 300ms ease;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* responsive ---------------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .header-cta { display: none; }
  .pipeline { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 34px; }
  .lb-panel { grid-template-columns: minmax(0, 1fr); overflow-y: auto; }
  .lb-meta { border-inline-start: 0; border-top: 1px solid var(--line); overflow: visible; }
  .lb-stage video { max-height: 62dvh; }
  .lb-stage.is-vertical video { height: min(62dvh, 620px); }
  .lb-gallery img { max-height: 62dvh; }
  .numbers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid .contact-block:first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .work-head { grid-template-columns: 1fr; }
  .filters { justify-content: flex-start; }
  .work-grid { --row: auto; grid-template-columns: 1fr; grid-auto-rows: auto; }
  .work-grid .work-card, .work-grid.is-filtered .work-card { grid-column: auto; aspect-ratio: 4 / 3.4; }
  .service { grid-template-columns: 1fr; gap: 14px; }
  .service .tags { justify-content: flex-start; max-width: none; }
  .service-thumb { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; order: 3; }
  .service-num { order: -1; }
  .ai-split { grid-template-columns: 1fr; }
  .tv-layout { grid-template-columns: 1fr; }
  .tv-stage { display: none; }
  .tv-item { opacity: 1; }
  .tv-thumb { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; margin-bottom: 8px; }
  .steps, .models, .group-grid { grid-template-columns: 1fr; }
  .group-card { min-height: 0; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  :root { --header-h: 66px; }
  body { font-size: 16px; }
  .brand-tag { display: none; }
  .hero-stats { width: 100%; justify-content: space-between; gap: 12px; }
  .hero-stats dd { font-size: 12px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .reel-now { display: none; }
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reels { gap: 8px; }
  .reel { border-radius: 14px; }
  .reel:nth-child(2) { translate: none; }
  .numbers-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .lightbox { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .lb-panel { max-height: 100dvh; }
  .work-grid .work-card { aspect-ratio: 4 / 3.8; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  [data-reveal], [data-hero-in], .hero-title [data-hero-in] { transform: none !important; }
  [data-reveal].is-in, .is-ready [data-hero-in] { transition: opacity 400ms ease; }
  .tv-stage img { transform: none; filter: none; transition: opacity 300ms ease; }
  .work-media img, .work-card { transition: opacity 200ms ease; }
  .js .work-card:not(.is-in) .work-media { clip-path: none; }
  .js .work-card:not(.is-in) .work-media img, .js .work-card:not(.is-in) .work-info, .js .work-card:not(.is-in) .work-play { transform: none; }
  .work-card:hover .work-media img { transform: none; }
  .lightbox, .lightbox.is-open { transform: none; }
  .menu, .menu nav a, .menu-phone { transform: none; }
  .toast { transition: opacity 200ms ease; }
}
