/* ==========================================================================
   Karolis — Portfolio
   Studio Dark theme. Edit the design tokens below to restyle the whole site.
   ========================================================================== */

:root {
  /* Colors */
  --bg: #0b0b0c;
  --surface: #151517;
  --surface-2: #1c1c1f;
  --line: rgba(242, 240, 235, 0.12);
  --text: #f2f0eb;
  --muted: #8a8a8f;
  --accent: #ff4d2e;
  --accent-ink: #0b0b0c;

  /* Type */
  --font-display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --fs-hero: clamp(3.5rem, 11vw, 10.5rem);
  --fs-h2: clamp(2.5rem, 6vw, 5rem);
  --fs-h3: clamp(1.35rem, 2vw, 1.6rem);
  --fs-lead: clamp(1.05rem, 1.4vw, 1.25rem);

  /* Layout */
  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(5rem, 12vw, 9rem);
  --radius: 14px;
  --header-h: 76px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 0.8s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; padding: 0; }
em { font-style: normal; color: var(--accent); }
::selection { background: var(--accent); color: var(--accent-ink); }

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

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

.skip-link {
  position: fixed; top: 1rem; left: 1rem; z-index: 200;
  padding: .6rem 1rem; background: var(--accent); color: var(--accent-ink);
  border-radius: 8px; font-weight: 600; transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* Film grain overlay across the whole page */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 150; pointer-events: none;
  opacity: .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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }

.eyebrow, .section-label {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-label { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.section-label span { color: var(--accent); }
.section-label span::after { content: " /"; color: var(--muted); }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: .98;
  letter-spacing: .005em;
  text-transform: uppercase;
}

.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 2rem; margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-intro { max-width: 38ch; color: var(--muted); font-size: var(--fs-lead); }

.rec-dot {
  display: inline-block; width: .55em; height: .55em; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
  animation: blink 1.6s steps(1, end) infinite;
}
@keyframes blink { 50% { opacity: .25; } }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .8rem 1.5rem;
  border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: transform .3s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--text); }
.btn--ghost { border: 1px solid rgba(242, 240, 235, .35); }
.btn--ghost:hover { border-color: var(--text); background: rgba(242, 240, 235, .06); }

.link-arrow {
  display: inline-flex; gap: .5rem; align-items: center;
  font-weight: 600; border-bottom: 1px solid var(--accent); padding-bottom: .2rem;
}
.link-arrow span { transition: transform .3s var(--ease); }
.link-arrow:hover span { transform: translateX(5px); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  transition: height .35s var(--ease), background-color .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
/* Blur lives on a pseudo-element: backdrop-filter on .header itself would trap the fixed mobile nav inside it */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(11, 11, 12, .72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; transition: opacity .35s;
}
.header.is-scrolled { --header-h: 62px; border-bottom-color: var(--line); }
.header.is-scrolled::before { opacity: 1; }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.logo {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-size: 1.5rem; letter-spacing: .06em;
}
.logo .rec-dot { font-size: 1rem; }

.nav { display: flex; align-items: center; gap: 2.5rem; }
.nav__list { display: flex; gap: 2rem; }
.nav__link {
  position: relative; font-size: .95rem; color: rgba(242, 240, 235, .78);
  transition: color .25s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { min-height: 42px; padding: .55rem 1.2rem; }

.menu-toggle {
  display: none; position: relative; z-index: 120;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
}
.menu-toggle__bar {
  position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text);
  transition: transform .35s var(--ease);
}
.menu-toggle__bar:nth-of-type(2) { transform: translateY(-4px); }
.menu-toggle__bar:nth-of-type(3) { transform: translateY(4px); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-of-type(2) { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-of-type(3) { transform: rotate(-45deg); }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 110;
    flex-direction: column; justify-content: center; gap: 2.5rem;
    background: var(--bg);
    opacity: 0; visibility: hidden;
    transition: opacity .4s var(--ease), visibility .4s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: center; gap: 1.25rem; }
  .nav__link { font-family: var(--font-display); font-size: clamp(2.5rem, 11vw, 3.5rem); text-transform: uppercase; color: var(--text); }
  .nav__link::after { display: none; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-block: calc(var(--header-h) + 3rem) clamp(5rem, 10vh, 7rem);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08);
  animation: hero-zoom 2.4s var(--ease) forwards;
}
@keyframes hero-zoom { to { transform: scale(1); } }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 11, 12, .55) 0%, rgba(11, 11, 12, .1) 35%, rgba(11, 11, 12, .85) 100%),
    linear-gradient(90deg, rgba(11, 11, 12, .6) 0%, transparent 70%);
}

.hero__content { position: relative; }
.hero__eyebrow { color: var(--text); opacity: .85; margin-bottom: 1.5rem; }
.hero__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: var(--fs-hero); line-height: .9; text-transform: uppercase;
  letter-spacing: -.005em;
  margin-bottom: 2rem;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: block; }
.hero__lead { max-width: 46ch; font-size: var(--fs-lead); color: rgba(242, 240, 235, .82); margin-bottom: 2.25rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Hero intro animation (only when JS is on) */
.js .hero__eyebrow, .js .hero__lead, .js .hero__actions { opacity: 0; transform: translateY(20px); }
.js .hero__title .line > span { transform: translateY(105%); }
.is-loaded .hero__eyebrow, .is-loaded .hero__lead, .is-loaded .hero__actions,
.is-loaded .hero__title .line > span {
  opacity: 1; transform: none;
  transition: transform 1.1s var(--ease), opacity 1.1s var(--ease);
}
.is-loaded .hero__eyebrow { transition-delay: .1s; }
.is-loaded .hero__title .line:nth-child(1) > span { transition-delay: .2s; }
.is-loaded .hero__title .line:nth-child(2) > span { transition-delay: .32s; }
.is-loaded .hero__lead { transition-delay: .55s; }
.is-loaded .hero__actions { transition-delay: .7s; }

/* Viewfinder frame */
.viewfinder {
  position: absolute; inset: calc(var(--header-h) + 1rem) var(--gutter) 1.5rem;
  pointer-events: none; z-index: 0;
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; color: rgba(242, 240, 235, .75);
}
.viewfinder__corner { position: absolute; width: 28px; height: 28px; border: 0 solid rgba(242, 240, 235, .55); }
.viewfinder__corner--tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.viewfinder__corner--tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.viewfinder__corner--bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.viewfinder__corner--br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.viewfinder__rec { position: absolute; top: 14px; left: 44px; display: flex; align-items: center; gap: .5rem; }
.viewfinder__tc { position: absolute; top: 14px; right: 44px; font-variant-numeric: tabular-nums; }
.viewfinder__meta { position: absolute; bottom: 10px; left: 44px; color: rgba(242, 240, 235, .45); }

/* Slow drifting light beam */
.hero__beam {
  position: absolute; z-index: -2; top: -20%; left: 35%;
  width: 45vw; height: 140%;
  background: linear-gradient(180deg, rgba(255, 77, 46, .16), transparent 70%);
  filter: blur(40px);
  transform-origin: top center;
  animation: beam-drift 14s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes beam-drift { from { transform: rotate(14deg) translateX(-5%); } to { transform: rotate(-10deg) translateX(10%); } }

/* Pointer-following spotlight (desktop) */
.hero__spotlight {
  --sx: 70%; --sy: 40%;
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(600px circle at var(--sx) var(--sy), rgba(242, 240, 235, .07), transparent 60%);
  transition: opacity .6s;
}

/* Scroll progress */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 160; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

.scroll-cue {
  position: absolute; right: calc(var(--gutter) + 2.5rem); bottom: 2.5rem;
  display: flex; flex-direction: column; align-items: center; gap: .75rem;
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
}
.scroll-cue__line { position: relative; width: 1px; height: 56px; background: var(--line); overflow: hidden; }
.scroll-cue__line::after {
  content: ""; position: absolute; inset: 0; background: var(--text);
  animation: scroll-line 2.2s var(--ease) infinite;
}
@keyframes scroll-line { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

@media (max-width: 640px) {
  .scroll-cue, .viewfinder__tc, .viewfinder__meta { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  padding-block: 1.25rem;
  overflow: hidden;
  background: var(--surface);
}
.marquee__track {
  display: flex; align-items: center; gap: 2.5rem; width: max-content;
  animation: marquee 40s linear infinite;
  font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.25rem);
  text-transform: uppercase; white-space: nowrap;
}
.marquee__track > span:nth-child(4n + 3) { color: transparent; -webkit-text-stroke: 1px rgba(242, 240, 235, .6); }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
@keyframes marquee { to { transform: translateX(calc(-50% - 1.25rem)); } }

/* ---------- About ---------- */
.about__grid {
  display: grid; gap: clamp(2.5rem, 6vw, 6rem);
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
}
.about__visual { position: relative; }
.about__visual::before {
  content: ""; position: absolute; inset: 1.25rem -1.25rem -1.25rem 1.25rem; z-index: -1;
  border: 1px solid rgba(255, 77, 46, .6); border-radius: 18px;
}
.lens { width: 100%; height: auto; border-radius: 18px; }
.lens__grid path { fill: none; stroke: rgba(242, 240, 235, .05); }
.lens__rings circle, .lens__focus circle { fill: none; stroke: rgba(242, 240, 235, .25); stroke-width: 1.5; }
.lens__focus path { stroke: var(--accent); stroke-width: 2; }
.lens__focus { transform-origin: 200px 220px; animation: spin 40s linear infinite; }
.lens__glass { fill: rgba(11, 11, 12, .85); stroke: rgba(242, 240, 235, .4); stroke-width: 2; }
.lens__aperture { transform-origin: 200px 220px; animation: spin 60s linear infinite reverse; }
.lens__aperture path { fill: none; stroke: rgba(255, 77, 46, .45); stroke-width: 1.5; }
.lens__flare { fill: rgba(242, 240, 235, .07); }
.lens__k { font-family: var(--font-display); font-size: 96px; fill: var(--text); }
.lens__corners { fill: none; stroke: rgba(242, 240, 235, .6); stroke-width: 2; }
.lens__label { font-family: var(--font-mono); font-size: 13px; letter-spacing: .14em; fill: rgba(242, 240, 235, .75); }
.lens__rec { fill: var(--accent); animation: blink 1.6s steps(1, end) infinite; }
.lens__wave rect { fill: rgba(242, 240, 235, .55); transform-box: fill-box; transform-origin: center; animation: eq 1.4s ease-in-out infinite alternate; }
.lens__wave rect:nth-child(3n) { fill: var(--accent); animation-delay: -.4s; }
.lens__wave rect:nth-child(3n + 1) { animation-delay: -.8s; }
.lens__wave rect:nth-child(4n) { animation-duration: 1.1s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes eq { from { transform: scaleY(.35); } to { transform: scaleY(1); } }

.about__body .section-title { margin-bottom: 2rem; }
.about__text { display: grid; gap: 1.1rem; color: rgba(242, 240, 235, .78); font-size: var(--fs-lead); max-width: 60ch; }

.principles { display: grid; gap: 0; margin-top: 2.5rem; border-top: 1px solid var(--line); }
.principle {
  display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start;
  padding-block: 1.25rem; border-bottom: 1px solid var(--line);
}
.principle__num {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255, 77, 46, .5); color: var(--accent);
  font-family: var(--font-mono); font-size: .8rem;
  transition: background-color .3s, color .3s;
}
.principle:hover .principle__num { background: var(--accent); color: var(--accent-ink); }
.principle h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: .2rem; }
.principle p { color: var(--muted); font-size: .95rem; }

@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__visual { max-width: 420px; width: calc(100% - 1.25rem); }
}

/* ---------- Formats ---------- */
.formats { background: linear-gradient(180deg, var(--bg), var(--surface) 25%, var(--surface) 75%, var(--bg)); }

.formats__grid {
  display: grid; gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1024px) { .formats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .formats__grid { grid-template-columns: 1fr; } }

.format {
  --mx: 50%; --my: 0%;
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden; isolation: isolate;
  transition: border-color .4s, transform .5s var(--ease);
}
/* pointer-following glow (position set in JS) */
.format::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 77, 46, .14), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.format:hover { border-color: rgba(255, 77, 46, .45); transform: translateY(-4px); }
.format:hover::before { opacity: 1; }

.format__art {
  position: relative; aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 120%, rgba(255, 77, 46, .12), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(242, 240, 235, .03) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(242, 240, 235, .03) 23px 24px);
}
.format__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.format__ratio {
  display: inline-block; margin-bottom: .9rem;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .25rem .55rem; border-radius: 4px;
  border: 1px solid rgba(255, 77, 46, .45); color: var(--accent);
}
.format__body { padding: 1.5rem 1.5rem 1.75rem; }
.format__title { font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; margin-bottom: .6rem; }
.format__text { color: var(--muted); }

/* Shared illustration styles */
.format svg * { transition: transform .7s var(--ease), opacity .5s, stroke-dashoffset 1s var(--ease); }
.format svg .s, .format svg .s-dim, .format svg .s-accent { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.format svg .s { stroke: rgba(242, 240, 235, .7); }
.format svg .s-dim { stroke: rgba(242, 240, 235, .22); }
.format svg .s-accent { stroke: var(--accent); }
.format svg .f-bg { fill: var(--surface-2); }
.format svg .f-dim { fill: rgba(242, 240, 235, .18); }
.format svg .f-soft { fill: rgba(242, 240, 235, .08); }
.format svg .f-text { fill: var(--text); }
.format svg .f-ink { fill: var(--accent-ink); }
.format svg .f-accent { fill: var(--accent); }
.format svg .f-accent-soft { fill: rgba(255, 77, 46, .2); }
.format svg .f-letterbox { fill: #050505; }
.format svg .t { font-family: var(--font-mono); font-size: 16px; text-anchor: middle; fill: var(--text); }
.format svg .t-ink { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-anchor: middle; fill: var(--accent-ink); }
.format svg [class*="f-"], .format svg .s, .format svg .s-dim, .format svg .s-accent { transform-box: fill-box; transform-origin: center; }

/* 1 — long-form: progress bar */
.progress-fill { stroke-dasharray: 204; stroke-dashoffset: 142; }
.format:hover .progress-fill { stroke-dashoffset: 20; }
.progress-head { transform: translateX(0); }
.format:hover .progress-head { transform: translateX(122px); }

/* 2 — short-form: phones fan out */
.phone-ghost { opacity: .5; }
.format:hover .phone-ghost--l { transform: translateX(-16px) rotate(-6deg); }
.format:hover .phone-ghost--r { transform: translateX(16px) rotate(6deg); }
.heart { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } }

/* 3 — brand: spotlight sweep */
.spot { transform-origin: 160px 22px; animation: sway 6s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }
.format:hover .product { transform: translateY(-6px); }
.sparkle { animation: twinkle 2.4s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .2; } }

/* 4 — explainer: steps light up */
.dash { stroke-dasharray: 4 6; }
.node { transform-box: fill-box; transform-origin: center; }
.format:hover .node--1 { transform: scale(1.08); }
.format:hover .node--2 { transform: scale(1.08); transition-delay: .12s; }
.format:hover .node--3 { transform: scale(1.14); transition-delay: .24s; }

/* 5 — interview: equaliser */
.eq rect { fill: var(--accent); transform-box: fill-box; transform-origin: center; animation: eq 1s ease-in-out infinite alternate; }
.eq rect:nth-child(2) { animation-delay: -.3s; }
.eq rect:nth-child(3) { animation-delay: -.6s; }
.eq rect:nth-child(4) { animation-delay: -.15s; }
.eq rect:nth-child(5) { animation-delay: -.45s; }

/* 6 — live: beams + crowd */
.beam--l { transform-origin: 75px 14px; animation: sway 5s ease-in-out infinite alternate; }
.beam--r { transform-origin: 245px 14px; animation: sway 5s ease-in-out infinite alternate-reverse; }
.crowd circle { fill: rgba(242, 240, 235, .14); transform-box: fill-box; transform-origin: bottom; }
.format:hover .crowd circle { animation: bob .6s ease-in-out infinite alternate; }
.format:hover .crowd circle:nth-child(even) { animation-delay: -.3s; }
@keyframes bob { to { transform: translateY(-5px); } }
.live-dot { animation: blink 1.2s steps(1, end) infinite; }

/* ---------- Services ---------- */
.services__grid {
  display: grid; gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
@media (max-width: 1100px) { .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .services__grid { grid-template-columns: 1fr; } }

.service {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--bg);
  transition: background-color .4s;
}
.service::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.service:hover { background: var(--surface); }
.service:hover::before { transform: scaleX(1); }
.service__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3rem; }
.service__num { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); }
.service__icon {
  width: 34px; height: 34px; fill: none; stroke: var(--accent); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .5s var(--ease);
}
.service:hover .service__icon { transform: rotate(-8deg) scale(1.1); }
.service__title { font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; margin-bottom: .75rem; }
.service__text { color: var(--muted); margin-bottom: 1.75rem; }
.service__list { margin-top: auto; display: grid; gap: .5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .92rem; }
.service__list li { display: flex; gap: .6rem; align-items: baseline; }
.service__list li::before { content: "→"; color: var(--accent); }

/* ---------- Process ---------- */
.process { margin-top: clamp(4rem, 8vw, 6rem); }
.process__title {
  font-family: var(--font-mono); font-weight: 400; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 2rem;
}
.process__steps {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem;
  counter-reset: step;
}
.step { position: relative; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.step::before {
  content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 0;
  background: var(--accent); transition: width 1.2s var(--ease) .2s;
}
.step.is-visible::before, .no-js .step::before { width: 100%; }
.step__num { display: block; font-family: var(--font-display); font-size: 2.5rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(242, 240, 235, .5); margin-bottom: 1rem; }
.step h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .process__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .process__steps { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; isolation: isolate; }
.contact::before {
  content: ""; position: absolute; z-index: -1;
  width: 70vmax; height: 70vmax; right: -30vmax; bottom: -40vmax;
  background: radial-gradient(circle, rgba(255, 77, 46, .22), transparent 60%);
}
.contact__grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2.5rem, 6vw, 6rem); align-items: end;
}
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }

.contact__title {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(3.25rem, 8.5vw, 8.5rem); line-height: .9;
  margin-bottom: 2rem;
}
.contact__lead { max-width: 44ch; color: rgba(242, 240, 235, .78); font-size: var(--fs-lead); margin-bottom: 2.5rem; }

.contact__email { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-bottom: 2rem; }
.contact__mail {
  font-size: clamp(1.4rem, 4vw, 2.75rem); font-weight: 600; letter-spacing: -.02em;
  background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 2px no-repeat;
  padding-bottom: .15rem;
  transition: background-size .5s var(--ease), color .3s;
  overflow-wrap: anywhere;
}
.contact__mail:hover { background-size: 100% 2px; color: var(--accent); }
.copy-btn {
  min-height: 40px; padding: .45rem 1rem; border-radius: 999px; border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  transition: color .25s, border-color .25s;
}
.copy-btn:hover { color: var(--text); border-color: rgba(242, 240, 235, .4); }
.copy-btn.is-copied { color: var(--accent); border-color: var(--accent); }

.contact__cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.contact__cta:hover svg { transform: translateX(4px); }

.brief {
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(21, 21, 23, .7);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.brief__label {
  display: flex; align-items: center; gap: .6rem; margin-bottom: 1.25rem;
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.brief__list { display: grid; }
.brief__list li {
  display: flex; gap: 1rem; padding-block: .85rem;
  border-top: 1px solid var(--line); font-size: .98rem;
}
.brief__list span { font-family: var(--font-mono); font-size: .75rem; color: var(--accent); padding-top: .2rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 2rem; font-size: .88rem; color: var(--muted); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.footer__top { transition: color .25s; }
.footer__top:hover { color: var(--text); }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; transition-delay: 0s !important;
  }
  .marquee__track { animation: none; }
}
