/* ==========================================================
   Ahsan Sardar — AI Video Ads portfolio
   ========================================================== */
:root {
  --bg: #08080c;
  --bg-2: #0e0e14;
  --surface: #13131b;
  --surface-2: #1a1a24;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f4f1ea;
  --muted: #a3a1ae;
  --dim: #6f6d7b;
  --iris: #9c8cff;
  --rose: #e9a6c8;
  --peach: #ffc59e;
  --grad: linear-gradient(115deg, var(--iris) 0%, var(--rose) 52%, var(--peach) 100%);
  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1240px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
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: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
::selection { background: var(--iris); color: #0b0b10; }

:focus-visible { outline: 2px solid var(--iris); outline-offset: 3px; border-radius: 8px; }

.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }

/* ---------- ambience ---------- */
.grain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.aurora { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aurora span {
  position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.28;
  animation: drift 26s var(--ease) infinite alternate;
}
.aurora span:nth-child(1) { width: 46vw; height: 46vw; background: var(--iris); top: -18vw; left: -10vw; }
.aurora span:nth-child(2) { width: 36vw; height: 36vw; background: var(--rose); top: 10vw; right: -14vw; opacity: 0.16; animation-delay: -8s; }
.aurora span:nth-child(3) { width: 30vw; height: 30vw; background: var(--peach); top: 60vh; left: 30vw; opacity: 0.08; animation-delay: -14s; }
@keyframes drift {
  to { transform: translate3d(6vw, 4vw, 0) scale(1.12); }
}

/* ---------- typography helpers ---------- */
.eyebrow {
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 18px;
}
.section__title {
  font-size: clamp(36px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 500;
}
.section__title--sm { font-size: clamp(32px, 4vw, 52px); }
.section__title em, .hero__title em, .contact__title em, .footer__big em {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -0.01em; padding-right: 0.06em;
}
.section__lead { color: var(--muted); font-size: 17px; max-width: 46ch; }
.link { color: var(--text); border-bottom: 1px solid var(--line-2); transition: border-color 0.3s; }
.link:hover { border-color: var(--rose); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 500; font-size: 15px;
  transition: transform 0.5s var(--ease), background 0.3s, border-color 0.3s, box-shadow 0.5s var(--ease);
  white-space: nowrap;
}
.btn span { transition: transform 0.5s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn--sm { height: 42px; padding: 0 20px; font-size: 14px; }
.btn--grad { background: var(--grad); color: #121018; box-shadow: 0 10px 40px -12px rgba(233, 166, 200, 0.55); }
.btn--grad:hover { transform: translateY(-2px); box-shadow: 0 18px 50px -12px rgba(233, 166, 200, 0.7); }
.btn--light { background: var(--text); color: #121018; }
.btn--light:hover { background: #fff; transform: translateY(-1px); }
.btn--ghost { border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.02); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.05); }
.btn--block { width: 100%; }

.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px;
  border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; color: var(--muted);
  background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(8px);
}
.pill__dot {
  width: 8px; height: 8px; border-radius: 50%; background: #7ee2a8; flex: none;
  box-shadow: 0 0 0 0 rgba(126, 226, 168, 0.6); animation: pulse 2.4s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(126, 226, 168, 0); } 100% { box-shadow: 0 0 0 0 rgba(126, 226, 168, 0); } }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 16px 0; transition: padding 0.4s var(--ease); }
.nav__inner {
  width: min(var(--max), 100% - 32px); margin-inline: auto; height: 64px; padding: 0 10px 0 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border: 1px solid transparent; border-radius: 999px;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}
.nav.is-scrolled { padding: 10px 0; }
.nav.is-scrolled .nav__inner {
  background: rgba(14, 14, 20, 0.7); border-color: var(--line); backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 500; letter-spacing: -0.01em; }
.brand__mark {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  font-family: var(--serif); font-style: italic; font-size: 19px; color: #121018; background: var(--grad);
}
.nav__links { display: flex; gap: 6px; }
.nav__links a { padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: color 0.3s, background 0.3s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; }
.nav__toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.nav__toggle span:nth-child(1) { top: 17px; }
.nav__toggle span:nth-child(2) { top: 25px; }
.nav.is-open .nav__toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
.nav__sheet { display: none; }

/* ---------- hero ---------- */
.hero { padding-top: 150px; position: relative; overflow-x: clip; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; min-height: calc(100vh - 230px); }
.hero__title {
  font-size: clamp(40px, 5.2vw, 76px); line-height: 1; letter-spacing: -0.045em; font-weight: 500;
  margin: 26px 0 26px; text-wrap: balance;
}
.hero__title em { font-size: 1.08em; }
.hero__lead { color: var(--muted); font-size: 18px; max-width: 50ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__stats { display: flex; gap: 44px; margin: 48px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.hero__stats dt { font-family: var(--serif); font-size: 44px; line-height: 1; }
.hero__stats dd { margin: 6px 0 0; font-size: 13px; color: var(--muted); }

.hero__stage { position: relative; height: 640px; perspective: 1400px; }
.phone {
  position: absolute; margin: 0; aspect-ratio: 9 / 16; border-radius: 30px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 6px rgba(255, 255, 255, 0.03);
}
.phone video { width: 100%; height: 100%; object-fit: cover; }
.phone--front { width: 300px; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; animation: float 7s ease-in-out infinite; }
.phone--back-l { width: 230px; left: 2%; top: 14%; z-index: 1; transform: rotate(-8deg); opacity: 0.75; animation: float-l 8s ease-in-out infinite; }
.phone--back-r { width: 230px; right: 2%; top: 22%; z-index: 2; transform: rotate(7deg); opacity: 0.85; animation: float-r 9s ease-in-out infinite; }
@keyframes float { 50% { transform: translate(-50%, calc(-50% - 12px)); } }
@keyframes float-l { 50% { transform: rotate(-6deg) translateY(10px); } }
@keyframes float-r { 50% { transform: rotate(5deg) translateY(-10px); } }
.phone__ui {
  position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 10px 10px 10px 14px; border-radius: 16px; font-size: 12px;
  background: rgba(10, 10, 14, 0.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, 0.12);
}
.phone__handle { color: rgba(255, 255, 255, 0.85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone__cta { background: var(--text); color: #121018; padding: 6px 12px; border-radius: 999px; font-weight: 600; flex: none; }
.chip {
  position: absolute; z-index: 4; padding: 9px 15px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: rgba(20, 20, 28, 0.72); border: 1px solid var(--line-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  animation: float-chip 6s ease-in-out infinite;
}
.chip--a { top: 9%; right: 22%; color: var(--peach); }
.chip--b { bottom: 16%; left: 6%; animation-delay: -2s; }
.chip--c { bottom: 6%; right: 10%; color: var(--iris); animation-delay: -4s; }
@keyframes float-chip { 50% { transform: translateY(-8px); } }

/* marquee */
.marquee {
  margin-top: 70px; border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0;
  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; align-items: center; gap: 34px; width: max-content; animation: marquee 40s linear infinite; }
.marquee__track span { font-family: var(--serif); font-size: clamp(26px, 3vw, 40px); white-space: nowrap; color: var(--text); }
.marquee__track i { font-style: normal; color: var(--rose); font-size: 18px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 130px 0 0; }
.section--tight { padding-top: 100px; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 52px; }
.section__head .section__lead { margin-bottom: 8px; }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filter {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--muted);
  transition: color 0.3s, background 0.3s, border-color 0.3s;
}
.filter:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.3); }
.filter.is-active { background: var(--text); color: #121018; border-color: var(--text); }

/* ---------- work grid ---------- */
.work { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; grid-auto-flow: dense; }
.tile {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; aspect-ratio: 9 / 16;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform 0.7s var(--ease), border-color 0.4s, opacity 0.5s var(--ease);
  isolation: isolate;
}
.tile--wide { grid-column: span 2; aspect-ratio: auto; }
.tile img, .tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity 0.5s; }
.tile video { opacity: 0; }
.tile.is-playing video { opacity: 1; }
.tile:hover { border-color: var(--line-2); }
.tile:hover img, .tile:hover video { transform: scale(1.04); }
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(8, 8, 12, 0) 45%, rgba(8, 8, 12, 0.85) 100%);
}
.tile__badge, .tile__dur {
  position: absolute; top: 14px; z-index: 2; font-size: 12px; padding: 5px 11px; border-radius: 999px;
  background: rgba(10, 10, 14, 0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.12);
}
.tile__badge { left: 14px; }
.tile__badge--ai { color: var(--peach); }
.tile__dur { right: 14px; color: rgba(255, 255, 255, 0.85); font-variant-numeric: tabular-nums; }
.tile__meta { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; transition: transform 0.6s var(--ease); }
.tile__meta p { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.65); }
.tile__meta h3 { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; margin-top: 4px; }
.tile__play {
  position: absolute; z-index: 2; left: 50%; top: 50%; width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center; transform: translate(-50%, -50%) scale(0.8); opacity: 0;
  background: rgba(255, 255, 255, 0.92); color: #121018; transition: transform 0.5s var(--ease), opacity 0.4s;
}
.tile__play svg { width: 20px; height: 20px; margin-left: 3px; fill: currentColor; }
.tile:hover .tile__play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.tile:hover .tile__meta { transform: translateY(-4px); }
.tile.is-hidden { display: none; }

/* ---------- services bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  position: relative; padding: 28px; border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); overflow: hidden; transition: border-color 0.4s, transform 0.6s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(156, 140, 255, 0.14), transparent 60%);
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card:hover::before { opacity: 1; }
.card--xl { grid-column: span 2; padding: 36px; }
.card__icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 26px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); color: var(--rose);
}
.card__icon svg, .socials svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.015em; margin-bottom: 10px; }
.card--xl h3 { font-size: 28px; }
.card p { color: var(--muted); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tags li { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.tags--lg li { font-size: 14px; padding: 8px 14px; color: var(--text); background: rgba(255, 255, 255, 0.03); }

/* ---------- formats ---------- */
.formats {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: center; padding: 56px;
  border-radius: 30px; border: 1px solid var(--line); background:
    radial-gradient(600px circle at 100% 0%, rgba(156, 140, 255, 0.12), transparent 60%),
    radial-gradient(500px circle at 0% 100%, rgba(255, 197, 158, 0.08), transparent 60%), var(--bg-2);
}
.formats__copy .section__lead { margin-top: 18px; }
.formats__frames { display: flex; align-items: flex-end; justify-content: center; gap: 18px; }
.ratio {
  --unit: 13px; position: relative; flex: none;
  border-radius: 14px; border: 1px dashed rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.02);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 12px; transition: border-color 0.4s, background 0.4s;
}
.ratio--916 { width: calc(9 * var(--unit)); height: calc(16 * var(--unit)); }
.ratio--45 { width: calc(10 * var(--unit)); height: calc(12.5 * var(--unit)); }
.ratio--11 { width: calc(9 * var(--unit)); height: calc(9 * var(--unit)); }
.ratio--169 { width: calc(16 * var(--unit)); height: calc(9 * var(--unit)); }
.ratio:hover { border-color: var(--rose); background: rgba(233, 166, 200, 0.06); }
.ratio b { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1; }
.ratio span { font-size: 11px; color: var(--muted); margin-top: 6px; line-height: 1.35; }

/* ---------- compare ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare__col { padding: 40px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); }
.compare__col h3 { font-size: 22px; font-weight: 500; margin-bottom: 26px; letter-spacing: -0.015em; }
.compare__col li { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); color: var(--muted); }
.compare__col li::before { content: "—"; color: var(--dim); }
.compare__col--hi {
  position: relative; border-color: transparent; color: var(--text);
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; border: 1px solid transparent;
}
.compare__col--hi li { color: var(--text); }
.compare__col--hi li::before { content: "✦"; color: var(--rose); }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { padding: 30px 26px 34px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); position: relative; }
.step__n { font-family: var(--serif); font-size: 54px; line-height: 1; display: block; margin-bottom: 40px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 19px; font-weight: 500; margin-bottom: 10px; letter-spacing: -0.01em; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 70px; align-items: center; }
.about__portrait { position: relative; }
.portrait {
  position: relative; aspect-ratio: 4 / 5; border-radius: 30px; overflow: hidden; display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(156, 140, 255, 0.35), transparent 55%),
    radial-gradient(circle at 80% 90%, rgba(255, 197, 158, 0.28), transparent 55%), var(--surface);
  border: 1px solid var(--line-2);
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait__mono { font-family: var(--serif); font-style: italic; font-size: clamp(120px, 14vw, 200px); line-height: 1; color: var(--text); opacity: 0.9; }
.portrait__ring { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.14); animation: spin 30s linear infinite; }
.portrait__ring::after { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--peach); box-shadow: 0 0 20px var(--peach); }
@keyframes spin { to { transform: rotate(360deg); } }
.about__badge {
  position: absolute; left: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 10px; font-size: 13px;
  padding: 10px 16px; border-radius: 999px; background: rgba(10, 10, 14, 0.6); backdrop-filter: blur(12px); border: 1px solid var(--line-2);
}
.about__copy > p:not(.eyebrow) { color: var(--muted); font-size: 17px; margin-top: 22px; max-width: 58ch; }
.about__copy .section__title { font-size: clamp(34px, 4.4vw, 58px); }
.tools { margin-top: 36px; }
.tools__label { font-size: 13px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.14em; }
.tools .tags { margin-top: 14px; }

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 70px; align-items: start; }
.faq__head { position: sticky; top: 120px; }
.faq__head .section__lead { margin-top: 20px; }
.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: 20px;
  padding: 24px 0; font-size: 19px; font-weight: 500; letter-spacing: -0.01em;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2);
  display: grid; place-items: center; font-weight: 300; font-size: 20px; transition: transform 0.4s var(--ease), background 0.3s;
}
.faq__list details[open] summary::after { transform: rotate(45deg); background: rgba(255, 255, 255, 0.06); }
.faq__list details p { color: var(--muted); padding: 0 50px 26px 0; max-width: 62ch; }

/* ---------- contact ---------- */
.contact {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 60px; border-radius: 34px; position: relative; overflow: hidden;
  background:
    radial-gradient(700px circle at 0% 0%, rgba(156, 140, 255, 0.18), transparent 60%),
    radial-gradient(600px circle at 100% 100%, rgba(255, 197, 158, 0.12), transparent 60%), var(--bg-2);
  border: 1px solid var(--line-2);
}
.contact__title { font-size: clamp(40px, 5vw, 70px); line-height: 1; letter-spacing: -0.04em; font-weight: 500; margin-bottom: 22px; }
.contact__links { margin-top: 36px; }
.contact__links a { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); transition: color 0.3s; }
.contact__links a span { font-size: 13px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.12em; }
.contact__links a b { font-weight: 500; font-size: 18px; overflow-wrap: anywhere; text-align: right; }
.contact__links a:hover b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.socials { display: flex; gap: 10px; margin-top: 26px; }
.socials a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); transition: background 0.3s, color 0.3s, transform 0.4s var(--ease); }
.socials a:hover { background: var(--text); color: #121018; transform: translateY(-2px); }
.socials svg { width: 19px; height: 19px; }
.form { display: grid; gap: 16px; align-content: start; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--text); padding: 14px 16px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line-2); transition: border-color 0.3s, background 0.3s; resize: vertical;
}
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 17px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.form select option { background: var(--surface); }
.form input::placeholder, .form textarea::placeholder { color: var(--dim); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--iris); background: rgba(156, 140, 255, 0.06); }
.form .is-invalid { border-color: #ff8a8a; }
.form__note { font-size: 13px; color: var(--muted); min-height: 1em; }

/* ---------- footer ---------- */
.footer { padding: 140px 0 40px; overflow: hidden; }
.footer__big {
  font-size: clamp(64px, 15vw, 230px); line-height: 0.85; letter-spacing: -0.06em; font-weight: 500; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.16);
}
.footer__big em { -webkit-text-stroke: 0; }
.footer__row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; visibility: hidden; opacity: 0; transition: opacity 0.4s var(--ease), visibility 0.4s; }
.lightbox.is-open { visibility: visible; opacity: 1; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(5, 5, 8, 0.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.lightbox__body { position: relative; display: grid; gap: 14px; transform: translateY(16px) scale(0.98); transition: transform 0.5s var(--ease); max-width: 100%; }
.lightbox.is-open .lightbox__body { transform: none; }
.lightbox video { max-height: calc(100vh - 150px); max-width: min(1100px, 100%); border-radius: 18px; background: #000; margin-inline: auto; }
.lightbox__meta { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.lightbox__cat { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.lightbox__meta h3 { font-weight: 500; font-size: 18px; }
.lightbox__nav { display: flex; gap: 8px; flex: none; }
.lightbox__nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); transition: background 0.3s; }
.lightbox__nav button:hover { background: rgba(255, 255, 255, 0.08); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .work { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .formats { grid-template-columns: 1fr; }
  .ratio { --unit: 11px; }
}
@media (max-width: 920px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav__sheet {
    display: grid; gap: 4px; width: min(var(--max), 100% - 32px); margin: 8px auto 0; padding: 14px; border-radius: 24px;
    background: rgba(14, 14, 20, 0.92); border: 1px solid var(--line); backdrop-filter: blur(18px);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  }
  .nav__sheet a:not(.btn) { padding: 12px 14px; border-radius: 12px; font-size: 17px; }
  .nav__sheet .btn { margin-top: 8px; }
  .nav.is-open .nav__sheet { opacity: 1; transform: none; pointer-events: auto; }
  .nav.is-open .nav__inner { background: rgba(14, 14, 20, 0.85); border-color: var(--line); backdrop-filter: blur(18px); }

  .hero { padding-top: 120px; }
  .hero__grid { grid-template-columns: 1fr; min-height: 0; gap: 20px; }
  .hero__stage { height: 520px; }
  .phone--front { width: 250px; }
  .phone--back-l, .phone--back-r { width: 190px; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .about, .faq, .contact { grid-template-columns: 1fr; gap: 44px; }
  .about__portrait { max-width: 420px; }
  .faq__head { position: static; }
  .contact { padding: 40px 28px; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .section { padding-top: 96px; }
  .hero__lead { font-size: 16px; }
  .hero__stats { gap: 24px; justify-content: space-between; }
  .hero__stats dt { font-size: 34px; }
  .hero__stage { height: 440px; }
  .phone--front { width: 210px; border-radius: 24px; }
  .phone--back-l, .phone--back-r { width: 150px; border-radius: 22px; }
  .phone--back-l { left: -4%; }
  .phone--back-r { right: -4%; }
  .chip { font-size: 12px; padding: 7px 12px; }
  .chip--a { right: 4%; top: 4%; }
  .work { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { border-radius: 16px; }
  .tile--wide { aspect-ratio: 16 / 10; }
  .tile__meta { left: 12px; right: 12px; bottom: 12px; }
  .tile__meta h3 { font-size: 14px; }
  .tile__badge, .tile__dur { top: 10px; font-size: 11px; padding: 4px 9px; }
  .tile__badge { left: 10px; } .tile__dur { right: 10px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }
  .bento, .steps, .compare { grid-template-columns: 1fr; }
  .card--xl { grid-column: auto; padding: 28px; }
  .card--xl h3 { font-size: 22px; }
  .formats { padding: 32px 22px; }
  .formats__frames { gap: 10px; }
  .ratio { --unit: 6.4px; padding: 8px; border-radius: 10px; }
  .ratio b { font-size: 18px; }
  .ratio span { display: none; }
  .compare__col { padding: 28px 24px; }
  .form__row { grid-template-columns: 1fr; }
  .faq__list summary { font-size: 17px; }
  .faq__list details p { padding-right: 0; }
  .lightbox { padding: 12px; }
  .lightbox video { max-height: calc(100vh - 130px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
