/* =========================================================
   Parthiban Venkatesan — Portfolio
   Theme: dark cinematic · red/blue neon (sampled from portrait)
   Order: tokens > reset > type > layout > components >
          sections > responsive > reduced-motion
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg: #08080b;
  --bg-soft: #0c0c11;
  --surface: #121218;
  --surface-2: #191922;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f1f1f5;
  --muted: #9a9aa8;
  --muted-dim: #6a6a78;

  --red: #03FE74;
  --blue: #2f6bff;
  --grad: linear-gradient(120deg, #03FE74, #2f6bff);
  --grad-text: linear-gradient(120deg, #4dffa0, #6ea0ff);

  --maxw: 1240px;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --radius: 20px;
  --radius-sm: 12px;

  --step--1: clamp(0.82rem, 0.78rem + 0.18vw, 0.94rem);
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.14rem);
  --step-1: clamp(1.25rem, 1.05rem + 0.9vw, 1.9rem);
  --step-2: clamp(1.9rem, 1.4rem + 2.3vw, 3.1rem);
  --step-3: clamp(2.6rem, 1.5rem + 5vw, 5.5rem);
  --step-hero: clamp(2.1rem, 0.9rem + 5.2vw, 4.7rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.7s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.no-js { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }

/* Lenis smooth scroll (recommended base styles) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
strong { color: var(--text); font-weight: 600; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4.5rem, 11vw, 9.5rem); position: relative; }
section[id], .hero { scroll-margin-top: 90px; }
.section__title {
  font-size: var(--step-2);
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section__index {
  font-size: var(--step--1);
  font-family: "Space Grotesk", monospace;
  color: var(--red);
  letter-spacing: 0.14em;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px;
  background: var(--blue); color: #fff; padding: 0.6rem 1rem;
  border-radius: var(--radius-sm); z-index: 2000; transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1500;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.4rem;
  background: var(--bg);
}
.preloader.is-done { pointer-events: none; }
.preloader__inner { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.preloader__name {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.3rem, 5vw, 2.4rem);
  font-weight: 700; letter-spacing: -0.02em;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.preloader__count {
  font-family: "Space Grotesk", monospace;
  font-size: var(--step--1); color: var(--muted); letter-spacing: 0.1em;
}
.preloader__bar {
  width: min(220px, 60vw); height: 2px; background: var(--border-strong);
  position: relative; overflow: hidden; border-radius: 2px;
}
.preloader__bar::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: var(--p, 0%); background: var(--grad); transition: width 0.2s linear;
}
html.no-js .preloader { display: none; }

/* ---------- Custom cursor ---------- */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 1200; display: none; }
body.has-custom-cursor .cursor { display: block; }
.cursor__dot, .cursor__ring {
  position: absolute; top: 0; left: 0; transform: translate(-50%, -50%); border-radius: 50%;
}
.cursor__dot { width: 6px; height: 6px; background: var(--red); }
.cursor__ring {
  width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, 0.45);
  transition: width 0.25s, height 0.25s, background 0.25s, border-color 0.25s;
}
.cursor.is-hover .cursor__ring {
  width: 56px; height: 56px;
  background: rgba(47, 107, 255, 0.15);
  border-color: transparent;
}
@media (hover: hover) and (pointer: fine) {
  body.has-custom-cursor { cursor: none; }
  body.has-custom-cursor a, body.has-custom-cursor button { cursor: none; }
}

/* ---------- Header / Nav ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding-block: 1.3rem;
  transition: transform 0.4s var(--ease), padding 0.3s var(--ease),
              background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  padding-block: 0.7rem;
  background: rgba(8, 8, 11, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.header.is-hidden { transform: translateY(-100%); }
.header__inner { display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 0.65rem; }
.logo__mark {
  font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.1rem;
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--border); border-radius: 11px; background: var(--surface);
}
.logo__text { font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; }
.logo__dot { color: var(--red); }

.nav__list { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.2rem); }
.nav__link { font-size: var(--step--1); color: var(--muted); position: relative; transition: color 0.25s; }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 1px;
  background: var(--red); transform: scaleX(0); transform-origin: right;
  transition: transform 0.3s 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__link--cta {
  color: var(--text); border: 1px solid var(--border); padding: 0.5rem 1.05rem;
  border-radius: 999px; background: var(--surface); will-change: transform;
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover { border-color: var(--red); }

.nav-toggle { display: none; width: 44px; height: 44px; position: relative; z-index: 1100; }
.nav-toggle span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.95rem 1.7rem; border-radius: 999px; font-weight: 600;
  font-size: var(--step--1); letter-spacing: 0.01em;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s, border-color 0.3s;
  will-change: transform;
}
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 12px 44px -14px rgba(47, 107, 255, 0.7); }
.btn--primary:hover { box-shadow: 0 18px 54px -12px rgba(3, 254, 116, 0.55); }
.btn--ghost { border: 1px solid var(--border-strong); background: var(--surface); }
.btn--ghost:hover { border-color: var(--red); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  position: relative; padding-block: 7rem 5rem; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5;
  animation: float 20s var(--ease) infinite alternate;
}
.blob--blue { width: 42vw; height: 42vw; background: #2f6bff; bottom: -18%; right: -8%; animation-delay: -7s; }
@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(5%, 7%) scale(1.18); }
}
.grain {
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.045; mix-blend-mode: overlay;
}

.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}
.hero__copy { min-width: 0; position: relative; z-index: 2; }
.hero__eyebrow {
  font-family: "Space Grotesk", monospace; font-size: var(--step--1);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 1.6rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
}
.hero__eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px var(--red); }
.hero__title { font-size: var(--step-hero); font-weight: 700; margin-bottom: 1.9rem; letter-spacing: -0.03em; }
.hero__title .line { display: block; overflow: hidden; padding-block: 0.04em; white-space: nowrap; }
.hero__title .line__inner { display: block; will-change: transform; }
.hero__title .line--accent {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { max-width: 44ch; color: var(--muted); font-size: var(--step-0); line-height: 1.55; margin-bottom: 2.1rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.6rem; }
.hero__available { display: inline-flex; align-items: center; gap: 0.6rem; font-size: var(--step--1); color: var(--muted); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #34d399; position: relative; }
.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #34d399;
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(3.5); opacity: 0; } }

/* Portrait */
.hero__portrait { position: relative; justify-self: center; width: min(380px, 78vw); }
.portrait {
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border-strong);
  background: radial-gradient(120% 120% at 20% 0%, #241016, #0b1020 70%);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.portrait__fallback-mark {
  position: absolute; inset: 0; display: none; place-items: center;
  font-family: "Space Grotesk", sans-serif; font-size: clamp(3rem, 14vw, 6rem);
  font-weight: 700; color: rgba(255, 255, 255, 0.16);
}
.portrait--fallback .portrait__fallback-mark { display: grid; }
.portrait__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(47,107,255,0.18), transparent 40%, rgba(3,254,116,0.16));
  mix-blend-mode: screen;
}
.hero__portrait::before, .hero__portrait::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(46px); z-index: -1;
}
.hero__portrait::before { width: 60%; height: 60%; background: rgba(3,254,116,0.5); top: -8%; right: -12%; }
.hero__portrait::after { width: 60%; height: 60%; background: rgba(47,107,255,0.5); bottom: -8%; left: -12%; }
.portrait__tag {
  position: absolute; font-family: "Space Grotesk", monospace; font-size: 0.72rem;
  letter-spacing: 0.04em; padding: 0.35rem 0.7rem; border-radius: 999px;
  background: rgba(8, 8, 11, 0.8); border: 1px solid var(--border-strong);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); white-space: nowrap;
}
.portrait__tag--a { top: 12%; left: -14%; }
.portrait__tag--b { top: 46%; right: -18%; }
.portrait__tag--c { bottom: 10%; left: -10%; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-family: "Space Grotesk", monospace; font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted-dim);
}
.hero__scroll-line { width: 1px; height: 40px; background: linear-gradient(var(--red), transparent); }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; border-block: 1px solid var(--border);
  padding-block: 1.3rem; background: var(--bg-soft);
}
.marquee__track {
  display: flex; align-items: center; gap: 2.4rem; width: max-content;
  font-family: "Space Grotesk", sans-serif; font-weight: 600;
  font-size: clamp(1.1rem, 3.4vw, 2rem); text-transform: uppercase; letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.22); will-change: transform;
}
.marquee__sep { color: var(--red); }
html.no-js .marquee__track { animation: marquee 26s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr; gap: clamp(1rem, 4vw, 3rem); }
.about__lead { font-size: var(--step-1); line-height: 1.35; margin-bottom: 1.6rem; max-width: 30ch; color: var(--text); text-wrap: balance; }
.about__text { color: var(--muted); margin-bottom: 1.1rem; max-width: 58ch; }
.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 1rem; margin-top: 2.6rem; max-width: 480px;
}
.stat { display: block; }
.stat__num, .stat__plus {
  font-family: "Space Grotesk", sans-serif; font-size: var(--step-2); font-weight: 700;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__label { display: block; font-size: var(--step--1); color: var(--muted); margin-top: 0.35rem; }

/* ---------- Cards / Work ---------- */
.work__grid { display: grid; grid-template-columns: 1fr; gap: clamp(1.2rem, 3vw, 1.9rem); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; position: relative; transform-style: preserve-3d;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(47, 107, 255, 0.18), transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.card:hover { border-color: var(--border-strong); box-shadow: 0 34px 70px -34px rgba(47, 107, 255, 0.5); }
.card:hover::after { opacity: 1; }
.card__thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.card__thumb svg { width: 100%; height: 100%; }
.card__body { padding: clamp(1.3rem, 3vw, 1.9rem); position: relative; z-index: 1; }
.card__kicker {
  font-family: "Space Grotesk", monospace; font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--red); display: block; margin-bottom: 0.7rem;
}
.card__title { font-size: var(--step-1); margin-bottom: 0.5rem; }
.card__desc { color: var(--muted); font-size: var(--step--1); margin-bottom: 1.1rem; max-width: 52ch; }
.card__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; }
.card__tags li {
  font-size: 0.72rem; letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 0.25rem 0.7rem;
}
.card__link { font-weight: 600; font-size: var(--step--1); color: var(--text); display: inline-flex; gap: 0.4rem; align-items: center; }
.card__link span { transition: transform 0.25s var(--ease); color: var(--red); }
.card__link:hover span { transform: translateX(5px); }

/* ---------- Explorations ---------- */
.explorations__lead { color: var(--muted); font-size: var(--step-1); line-height: 1.4; max-width: 40ch; margin-bottom: clamp(2rem, 5vw, 3rem); }
.explore__grid { display: grid; grid-template-columns: 1fr; gap: clamp(1rem, 3vw, 1.6rem); }
.explore {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem); transition: border-color 0.3s, transform 0.3s var(--ease);
}
.explore:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.explore__num {
  font-family: "Space Grotesk", sans-serif; font-size: 1.4rem; color: var(--red);
  display: inline-block; margin-bottom: 1rem;
}
.explore__title { font-size: var(--step-1); margin-bottom: 0.5rem; }
.explore__text { color: var(--muted); font-size: var(--step--1); }

.brands {
  margin-top: clamp(2.5rem, 6vw, 4rem); padding-top: clamp(1.6rem, 4vw, 2.4rem);
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: baseline;
}
.brands__label {
  font-family: "Space Grotesk", monospace; font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted-dim);
}
.brands__list { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; }
.brands__list li { font-family: "Space Grotesk", sans-serif; font-size: var(--step-0); color: var(--muted); }

/* ---------- Toolkit ---------- */
.toolkit__grid { display: grid; grid-template-columns: 1fr; gap: clamp(1rem, 4vw, 3rem); }
.toolkit__body { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 3.5rem); }
.toolkit__sub {
  font-family: "Space Grotesk", monospace; font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted-dim); margin-bottom: 1.2rem;
}
.caps { display: grid; gap: 0; }
.caps li {
  font-family: "Space Grotesk", sans-serif; font-size: var(--step-0); color: var(--text);
  padding: 0.95rem 0 0.95rem 2rem; border-bottom: 1px solid var(--border);
  position: relative; line-height: 1.25;
}
.caps li:first-child { padding-top: 0; }
.caps li::before { content: "→"; position: absolute; left: 0; top: 0.95rem; color: var(--red); }
.caps li:first-child::before { top: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.pills li {
  border: 1px solid var(--border); border-radius: 999px; padding: 0.5rem 1rem;
  font-size: var(--step--1); color: var(--text); background: var(--surface-2);
  transition: border-color 0.25s, transform 0.25s var(--ease), color 0.25s;
}
.pills li:hover { border-color: var(--red); transform: translateY(-3px); }

/* ---------- Contact ---------- */
.contact__inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact .section__title { justify-content: center; }
.contact__lead { color: var(--muted); font-size: var(--step-1); max-width: 42ch; margin-bottom: 2.2rem; line-height: 1.4; }
.contact__email {
  font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: clamp(1.5rem, 6vw, 3.4rem); letter-spacing: -0.02em;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  will-change: transform; word-break: break-word;
}
.contact__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.6rem; margin-top: 1.4rem; color: var(--muted); font-size: var(--step--1); }
.contact__meta a:hover { color: var(--text); }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 1.8rem; margin-top: 2.4rem; }
.socials a { color: var(--muted); font-size: var(--step--1); }
.socials a span { color: var(--red); }
.socials a:hover { color: var(--text); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding-block: 2.2rem; color: var(--muted-dim); font-size: var(--step--1); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }

/* ---------- Reveal primitives (JS on) ---------- */
html.js .reveal { opacity: 0; transform: translateY(30px); }
html.js .hero__title .line__inner { transform: translateY(110%); }
html.js [data-hero] { opacity: 0; transform: translateY(24px); }
html.js .hero__portrait { opacity: 0; transform: translateY(30px) scale(0.96); }

/* =========================================================
   Responsive
   ========================================================= */

/* Tablet */
@media (min-width: 680px) {
  .work__grid { grid-template-columns: repeat(2, 1fr); }
  .explore__grid { grid-template-columns: repeat(3, 1fr); }
  .toolkit__body { grid-template-columns: 1fr 1fr; }
  .about__grid { grid-template-columns: 1fr; }
}

/* Desktop */
@media (min-width: 1000px) {
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; align-items: center; column-gap: clamp(2rem, 5vw, 5rem); }
  .hero__portrait { justify-self: end; width: min(380px, 32vw); }
  .about__grid { grid-template-columns: 0.4fr 0.6fr; align-items: start; }
  .about__head .section__title { margin-bottom: 0; }
  .toolkit__grid { grid-template-columns: 0.4fr 0.6fr; align-items: start; }
  .toolkit__head .section__title { margin-bottom: 0; }
  .card--featured {
    grid-column: span 2;
    display: grid; grid-template-columns: 1.15fr 1fr; align-items: stretch;
  }
  .card--featured .card__thumb { aspect-ratio: auto; height: 100%; }
  .card--featured .card__body { align-self: center; }
}

@media (min-width: 1260px) {
  .work__grid { grid-template-columns: repeat(3, 1fr); }
  .card--featured { grid-column: span 3; grid-template-columns: 1.3fr 1fr; }
}

/* Mobile nav */
@media (max-width: 860px) {
  .logo__text { display: none; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0;
    background: rgba(8, 8, 11, 0.97);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    display: grid; place-items: center;
    transform: translateY(-100%); transition: transform 0.45s var(--ease);
  }
  .nav.is-open { transform: translateY(0); }
  .nav__list { flex-direction: column; gap: 1.8rem; text-align: center; }
  .nav__link { font-size: var(--step-1); color: var(--text); }
  .nav__link--cta { border-color: var(--border-strong); }
  body.menu-open { overflow: hidden; }
}

@media (max-width: 680px) {
  .portrait__tag--a { top: 8%; left: 4%; }
  .portrait__tag--b { top: 44%; right: 4%; }
  .portrait__tag--c { bottom: 8%; left: 4%; }
  .hero { padding-block: 7.5rem 5.5rem; }
  .hero__title { overflow-wrap: anywhere; }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html.js .reveal,
  html.js [data-hero],
  html.js .hero__portrait { opacity: 1 !important; transform: none !important; }
  html.js .hero__title .line__inner { transform: none !important; }
  .blob { animation: none; }
  .marquee__track { animation: none; }
  .preloader { display: none; }
  .cursor { display: none !important; }
}
