/* ============================================================
   LA SCHAFFER — Portfolio
   Design system + all page styles (shared across every page)
   Edit the tokens in :root to restyle the whole site at once.
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Core palette — black & white base */
  --bg:        #08080b;
  --bg-2:      #0e0e13;
  --bg-3:      #15151c;
  --fg:        #ffffff;   /* stark white primary text */
  --muted:     #e9e9ef;   /* near-white secondary on dark — ~18:1 */
  --muted-2:   #cfcfd6;   /* small labels on dark — ~14:1 */
  --text-2:    #f3f3f7;   /* body copy on dark — near-white */
  --line:      rgba(255,255,255,0.12);
  --line-2:    rgba(255,255,255,0.20);
  --nav-bg:    rgba(8,8,11,0.72);      /* scrolled nav bar — flips on .theme-light */
  --overlay-bg:rgba(8,8,11,0.97);      /* mobile menu backdrop */

  /* Neon pops */
  --pink:      #ff2e97;
  --orange:    #ff6a2b;
  --green:     #14f195;
  --purple:    #a855f7;
  --cyan:      #22d3ee;

  /* Default accent (overridden per-project via [data-accent]) */
  --accent:    var(--pink);
  --accent-ink:#0a0a0a;

  /* Type */
  --display: "Syne", "Arial Black", sans-serif;
  --sans:    "Space Grotesk", system-ui, -apple-system, sans-serif;
  --mono:    "Space Grotesk", system-ui, -apple-system, sans-serif; /* label/UI font — was Space Mono */

  /* Layout */
  --container: 1280px;
  --gutter: clamp(20px, 5vw, 80px);
  --radius: 14px;
  --radius-lg: 22px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Accent themes — set data-accent on <body> or any section */
[data-accent="pink"]   { --accent: var(--pink); }
[data-accent="orange"] { --accent: var(--orange); }
[data-accent="green"]  { --accent: var(--green); }
[data-accent="purple"] { --accent: var(--purple); }
[data-accent="cyan"]   { --accent: var(--cyan); }

/* Light theme — flips the whole palette for big black/white contrast.
   Put class="band theme-light" on a full-width <section>, with an inner .container. */
.theme-light {
  --bg:     #f4f3ee;
  --bg-2:   #e7e6df;
  --bg-3:   #dad9cf;
  --fg:     #0a0a0d;
  /* "grays" on white are now near-black for readability (all > 12:1) */
  --muted:  #1f1f24;
  --muted-2:#33333a;
  --text-2: #17171b;
  --line:   rgba(10,10,15,0.16);
  --line-2: rgba(10,10,15,0.30);
  /* accessible deep accents — used for any COLORED text/marks on white (all AA on this bg) */
  --pink:   #b3145d;
  --orange: #b23c0a;
  --green:  #0a6b4c;
  --purple: #6d28d9;
  --cyan:   #0e7490;
  --accent-ink: #ffffff;                 /* white text on deep-accent buttons */
  --nav-bg:     rgba(244,243,238,0.82);  /* light translucent nav on white pages */
  --overlay-bg: rgba(244,243,238,0.98);
  background: var(--bg);
  color: var(--fg);
}
.band { position: relative; width: 100%; }

/* ---------- 2. RESET ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* Grain overlay */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9998;
  opacity: 0.045; mix-blend-mode: overlay;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Skip link (accessibility) */
.skip {
  position: absolute; left: -999px; top: 0; z-index: 10000;
  background: var(--accent); color: var(--accent-ink);
  padding: 12px 18px; font-family: var(--mono); font-size: 13px;
}
.skip:focus { left: 12px; top: 12px; }

/* Focus visibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- 3. LAYOUT PRIMITIVES ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(80px, 12vh, 160px); position: relative; }
.eyebrow {
  font-family: var(--mono); font-size: 14px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); font-weight: 400;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--accent);
  display: inline-block;
}

/* ---------- 4. TYPOGRAPHY ---------- */
.display {
  font-family: var(--display); font-weight: 800; line-height: 0.92;
  letter-spacing: -0.02em; text-transform: uppercase;
}
h1,h2,h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; letter-spacing: -0.02em; }
.h-xl { font-size: clamp(1.65rem, 6.5vw, 5.5rem); }
.h-lg { font-size: clamp(2.2rem, 6vw, 5rem); text-transform: uppercase; }
.h-md { font-size: clamp(1.6rem, 3.4vw, 2.8rem); }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.45rem); color: var(--fg); max-width: 62ch; line-height: 1.5; }
.muted { color: var(--muted); }
.accent-text { color: var(--accent); }
mark { background: none; color: var(--accent); }

.outline-text {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--fg);
  text-stroke: 1.5px var(--fg);
}

/* Bolder text for contrast — dark home page only (case studies keep their weights) */
body:not(.theme-light) { font-weight: 500; }
body:not(.theme-light) :is(
  .eyebrow, .sec-head__index, .stat__label, .fact dt, .tag,
  .about__sub, .work-item__client, .work-item__num,
  .nav__links a, .contact__links a, .footer__row, .hero__scroll, .btn
) { font-weight: 700; }

/* ---------- 5. BUTTONS / LINKS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 15px; letter-spacing: 0.02em;
  padding: 15px 28px; border-radius: 100px;
  border: 2px solid var(--fg);
  transition: transform .4s var(--ease), background .3s, color .3s, border-color .3s;
  will-change: transform;
}
.btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn--accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.btn--accent:hover { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn .arr { transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translate(4px,-4px); }

.link-underline {
  position: relative; display: inline-block;
  background-image: linear-gradient(var(--accent),var(--accent));
  background-size: 0% 2px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .4s var(--ease);
  padding-bottom: 2px;
}
.link-underline:hover { background-size: 100% 2px; }

/* ---------- 6. NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter);
  transition: transform .5s var(--ease), background .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
  padding-block: 14px;
}
.nav.hidden { transform: translateY(-110%); }
.nav__brand {
  font-family: var(--display); font-weight: 800; font-size: 20px;
  letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.nav__brand .dot { color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: clamp(16px, 3vw, 38px); }
.nav__links a { font-family: var(--mono); font-size: 14px; letter-spacing: 0.02em; }
.nav__links a:not(.btn) { color: var(--muted); transition: color .3s; }
.nav__links a:not(.btn):hover { color: var(--fg); }
.nav__num { font-family: var(--mono); color: var(--muted-2); font-size: 12px; }

/* Mobile hamburger (built by JS on small screens) */
.nav__toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line-2);
  border-radius: 50%; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  transition: border-color .3s; background: rgba(8,8,11,0.4);
}
.nav__toggle span { display: block; width: 18px; height: 2px; background: var(--fg); transition: transform .3s var(--ease), opacity .2s; }
.nav.menu-open .nav__toggle span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav.menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.menu-open .nav__toggle span:nth-child(3) { transform: translateY(-3.5px) rotate(-45deg); }

.nav-overlay {
  position: fixed; inset: 0; z-index: 1040;
  background: var(--overlay-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  padding: 0 var(--gutter);
  opacity: 0; pointer-events: none; transform: translateY(-10px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.nav-overlay.open { opacity: 1; pointer-events: auto; transform: none; }
.nav-overlay a {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2rem, 11vw, 3.6rem); line-height: 1.2; color: var(--fg);
  display: flex; align-items: baseline; gap: 14px; transition: color .3s;
}
.nav-overlay a .idx { font-family: var(--mono); font-size: 13px; font-weight: 400; color: var(--accent); }
.nav-overlay a:hover, .nav-overlay a:focus-visible { color: var(--accent); }

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
}
@media (min-width: 721px) { .nav-overlay { display: none; } }

/* ---------- 7. HERO ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: 140px 60px; }
/* Full-bleed gradient layer — spans the whole viewport width, responsively,
   instead of being clipped to the 1280px content container. */
.hero__bg {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 100vw; height: 100%; overflow: hidden; z-index: 0; pointer-events: none;
}
.hero__glow {
  position: absolute; z-index: 0; filter: blur(100px); opacity: 0.55;
  width: 62vw; height: 62vw; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--pink), transparent 62%),
              radial-gradient(circle at 70% 60%, var(--purple), transparent 60%);
  top: -20%; right: -8%;
  animation: drift 18s var(--ease-in-out) infinite alternate;
}
.hero__glow--2 {
  background: radial-gradient(circle at 50% 50%, var(--green), transparent 60%),
             radial-gradient(circle at 30% 70%, var(--orange), transparent 60%);
  width: 48vw; height: 48vw; top: auto; bottom: -22%; left: -8%; right: auto;
  opacity: 0.4; animation-duration: 22s;
}
@keyframes drift { to { transform: translate(-6%, 8%) scale(1.15); } }

.hero__inner { position: relative; z-index: 2; }
.hero__eyebrow { margin-bottom: clamp(18px,4vh,44px); }
.hero__title { position: relative; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line span { display: block; }
.hero__title .l2 {
  color: transparent;
  background-image: linear-gradient(100deg, var(--pink) 0%, var(--orange) 30%, var(--green) 60%, var(--purple) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: hueSlide 9s var(--ease-in-out) infinite alternate;
}
@keyframes hueSlide { to { background-position: 100% 0; } }
.hero__role {
  margin-top: clamp(20px, 4vh, 40px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 0;
}
.hero__role .role-main { font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 3vw, 2.3rem); text-transform: uppercase; line-height: 1.05; }
.hero__role .rotator { color: var(--accent); }
.hero__desc { margin-top: clamp(24px, 4vh, 44px); }
.hero__cta { margin-top: clamp(30px, 5vh, 56px); display: flex; flex-wrap: wrap; gap: 16px; }

.hero__scroll {
  position: absolute; bottom: 28px; left: var(--gutter); z-index: 2;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); display: flex; align-items: center; gap: 12px;
}
.hero__scroll .bar { width: 46px; height: 1px; background: var(--muted); position: relative; overflow: hidden; }
.hero__scroll .bar::after { content: ""; position: absolute; inset: 0; background: var(--accent); animation: scrollbar 2.4s var(--ease-in-out) infinite; }
@keyframes scrollbar { 0%{transform:translateX(-100%)} 60%,100%{transform:translateX(100%)} }

@media (max-width: 640px) {
  .hero { justify-content: flex-end; min-height: 90svh; padding-block: 118px 44px; }
  .hero__scroll { display: none; }
  .hero__glow { width: 90vw; height: 90vw; top: -6%; }
}

/* ---------- 8. MARQUEE ---------- */
.marquee {
  border-block: 1px solid var(--line);
  padding-block: 22px; overflow: hidden; white-space: nowrap;
  background: var(--bg-2);
}
.marquee__track { display: inline-flex; gap: 0; animation: marquee 32s linear infinite; will-change: transform; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.4rem, 3vw, 2.4rem); padding-inline: 28px; color: var(--fg);
  display: inline-flex; align-items: center; gap: 44px;
}
.marquee__track span::after { content: "✦"; color: var(--accent); font-size: 0.7em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 9. FAST FACTS / STATS ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: var(--bg); padding: clamp(26px, 3vw, 48px) clamp(22px,2.5vw,36px); transition: background .4s; }
.stat:hover { background: var(--bg-2); }
.stat__num { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -0.03em; }
.stat__num .u { color: var(--accent); }
.stat__label { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em; color: var(--muted); margin-top: 14px; text-transform: uppercase; line-height: 1.4; }
@media (max-width: 900px){ .stats { grid-template-columns: repeat(2,1fr); } }

/* Recruiter fast-facts list */
.facts { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 40px; }
.fact { background: var(--bg); padding: 22px 26px; display: flex; gap: 18px; align-items: baseline; }
.fact dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); min-width: 116px; flex-shrink: 0; }
.fact dd { font-weight: 500; }
.fact dd .accent-text { font-weight: 700; }
@media (max-width: 720px){ .facts { grid-template-columns: 1fr; } .fact { flex-direction: column; gap: 4px; } }

/* ---------- 10. SECTION HEADER ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vh, 80px); }
.sec-head__index { font-family: var(--mono); color: var(--muted-2); font-size: 14px; }

/* ---------- 11. WORK GRID ---------- */
.work-list { display: flex; flex-direction: column; }
.work-item {
  position: relative; display: grid;
  grid-template-columns: 52px minmax(0,1fr) clamp(150px, 20vw, 250px) 56px;
  grid-template-areas: "num main media cta";
  gap: clamp(16px, 3vw, 40px); align-items: center;
  padding: clamp(22px, 3.4vw, 40px) 0; border-top: 1px solid var(--line);
  transition: padding .5s var(--ease);
}
.work-item:last-child { border-bottom: 1px solid var(--line); }
.work-item__num { grid-area: num; font-family: var(--mono); font-size: 14px; color: var(--muted); align-self: start; padding-top: 6px; }
.work-item__main { grid-area: main; min-width: 0; }
.work-item__title {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.8rem, 4.8vw, 3.9rem); line-height: 0.98; letter-spacing: -0.02em;
  transition: color .4s, transform .5s var(--ease);
  color: var(--fg);
}
.work-item:hover .work-item__title { color: var(--accent); }
.work-item__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.work-item__client { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-top: 14px; max-width: 54ch; line-height: 1.5; }

/* Persistent project thumbnail (swap the .ph for an <img> later) */
.work-item__media {
  grid-area: media; aspect-ratio: 16/10; border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
  position: relative;
  transform: scale(0.95); filter: saturate(0.8) brightness(0.92);
  transition: transform .55s var(--ease), filter .45s;
}
.work-item__media .ph { border-radius: 12px; width: 100%; height: 100%; }
.work-item__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-item:hover .work-item__media { transform: scale(1.02); filter: saturate(1.15) brightness(1); }

/* Accent veil over each thumbnail, lifted on hover (hover-capable devices only) */
@media (hover: hover) {
  .work-item__media::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: var(--accent); opacity: 0.62;
    transition: opacity .5s var(--ease); pointer-events: none;
  }
  .work-item:hover .work-item__media::after { opacity: 0; }
}

.work-item__cta { grid-area: cta; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--fg); transition: background .4s, color .4s, border-color .4s, transform .5s var(--ease); flex-shrink: 0; }
.work-item:hover .work-item__cta { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: rotate(45deg); }

@media (max-width: 760px) {
  .work-item {
    grid-template-columns: auto 1fr;
    grid-template-areas: "num main" "media media";
    gap: 6px 14px; row-gap: 20px; align-items: start;
  }
  .work-item__num { padding-top: 4px; }
  .work-item__cta { display: none; }
  .work-item__media { transform: none; filter: none; aspect-ratio: 16/9; }
}

.tag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); border: 1px solid var(--line); padding: 6px 12px; border-radius: 100px; text-transform: uppercase; }
.tag--accent { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }

/* "And plenty more" — client wall at the foot of the work section (drop real logo SVGs in later) */
.work-more { margin-top: clamp(52px, 7vw, 96px); padding-top: clamp(38px, 5vw, 60px); border-top: 1px solid var(--line); }
.work-more__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px 40px; flex-wrap: wrap; margin-bottom: clamp(26px, 3.5vw, 44px); }
.work-more__title { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.5rem, 3.4vw, 2.6rem); line-height: 1.04; letter-spacing: -0.02em; max-width: 20ch; }
.work-more__title a { color: var(--accent); white-space: nowrap; transition: opacity .3s; }
.work-more__title a:hover { opacity: .65; }
.work-more__logos { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.work-more__logos li { background: var(--bg); display: flex; align-items: center; justify-content: center; text-align: center; padding: clamp(22px, 2.6vw, 36px) 12px; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(0.8rem, 1.05vw, 1.05rem); letter-spacing: 0.01em; line-height: 1.15; color: var(--muted); transition: color .3s, background .3s; }
.work-more__logos li:hover { color: var(--accent); background: var(--bg-2); }
@media (max-width: 820px){ .work-more__logos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px){ .work-more__logos { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 12. PLACEHOLDER GRAPHICS (swap for real images) ---------- */
.ph {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, var(--bg-2)), var(--bg-2) 70%);
  display: flex; align-items: center; justify-content: center; isolation: isolate;
}
.ph::before {
  content: ""; position: absolute; inset: -2px; z-index: 0; opacity: 0.5;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 14px, color-mix(in srgb, var(--accent) 30%, transparent) 14px 15px);
}
.ph::after {
  content: ""; position: absolute; z-index: 0; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--accent), transparent 68%);
  filter: blur(30px); opacity: 0.55;
}
.ph__label {
  position: relative; z-index: 2; font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg);
  background: rgba(8,8,11,0.6); backdrop-filter: blur(4px);
  border: 1px dashed var(--line-2); border-radius: 100px; padding: 9px 16px; text-align: center;
}
.ph--tall { aspect-ratio: 4/5; }
.ph--wide { aspect-ratio: 16/9; }
.ph--square { aspect-ratio: 1; }

/* Device mockup frame */
.mock {
  position: relative; border-radius: 30px; border: 8px solid #1b1b22;
  background: var(--bg-3); overflow: hidden; box-shadow: 0 40px 90px rgba(0,0,0,0.5);
}
.mock--phone { aspect-ratio: 9/19; max-width: 300px; border-radius: 38px; }
.mock--browser { aspect-ratio: 16/10; border-radius: 14px; border-width: 0; }
.mock--browser .mock__bar { display: flex; gap: 7px; padding: 12px 14px; background: #17171d; border-bottom: 1px solid var(--line); }
.mock--browser .mock__bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--muted-2); }
.mock .ph { border-radius: 0; height: 100%; }

/* ---------- 13. ABOUT ---------- */
.about-grid { display: grid; grid-template-columns: 0.85fr 1fr; gap: clamp(30px, 5vw, 72px); align-items: start; }
@media (max-width: 900px){ .about-grid { grid-template-columns: 1fr; } }
.about__portrait { position: sticky; top: 100px; }
.about__frame { aspect-ratio: 5 / 7; padding: 0; }
.about__photo {
  position: absolute; inset: 0; z-index: 3;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 22%;
  border-radius: inherit; display: block;
}
/* Below the two-column breakpoint the portrait stacks — must not stick (would cover the text). */
@media (max-width: 900px){ .about__portrait { position: static; top: auto; } }
.about__body p + p { margin-top: 20px; }
.about__body .lead { margin-bottom: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.chip { font-family: var(--mono); font-size: 13px; border: 1px solid var(--line); padding: 9px 15px; border-radius: 100px; color: var(--muted); transition: color .3s, border-color .3s; }
.chip:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.about__sub { font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 40px 0 16px; }

/* ---------- 14. CONTACT ---------- */
.contact { text-align: center; }
.contact__big { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.6rem, 12vw, 9rem); line-height: 0.9; letter-spacing: -0.03em; }
.contact__big a { transition: color .3s; display: inline-block; }
.contact__big a:hover { color: var(--accent); }
.contact__links { display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: center; margin-top: 44px; font-family: var(--mono); font-size: 17px; }
.contact__links a { color: var(--muted); transition: color .3s; }
.contact__links a:hover { color: var(--fg); }

/* ---------- 15. FOOTER ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 40px; }
.footer__row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.footer__row a { color: var(--muted); }
.footer__row a:hover { color: var(--accent); }

/* ---------- 16. CASE STUDY PAGES ---------- */
.cs-hero { min-height: 82svh; display: flex; flex-direction: column; justify-content: flex-end; padding-block: 160px 60px; position: relative; }
/* Full-bleed, responsive header glow — spans the whole viewport width regardless of the 1280 content column */
.cs-hero__glow { position: absolute; z-index: 0; top: 0; left: 50%; margin-left: -50vw; width: 100vw; height: 100%; pointer-events: none; filter: blur(32px); opacity: 0.75; background: radial-gradient(62vw 62vh at 85% 6%, var(--accent), transparent 64%); }
.cs-hero__inner { position: relative; z-index: 2; }
.cs-hero__num { font-family: var(--mono); color: var(--accent); font-size: 15px; letter-spacing: 0.1em; }
.cs-hero__title { font-size: clamp(2.4rem, 8vw, 8rem); margin: 20px 0; text-transform: uppercase; text-wrap: balance; }
.cs-hero__sub { font-size: clamp(1.15rem, 2.4vw, 1.7rem); max-width: 40ch; color: var(--muted); font-family: var(--sans); }

.cs-meta { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.cs-meta__item { background: var(--bg); padding: 26px var(--gutter); }
.cs-meta__item:not(:first-child){ padding-inline: 26px; }
.cs-meta dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.cs-meta dd { margin-top: 10px; font-weight: 500; font-size: 15px; }
@media (max-width: 820px){ .cs-meta { grid-template-columns: repeat(2,1fr); } }

.cs-section { padding-block: clamp(56px, 9vh, 120px); }
.cs-block { display: grid; grid-template-columns: 260px 1fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
@media (max-width: 820px){ .cs-block { grid-template-columns: 1fr; gap: 20px; } }
.cs-block__label { font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); position: sticky; top: 100px; }
.cs-block__body p { color: var(--text-2); max-width: 66ch; }
.cs-block__body p + p { margin-top: 20px; }
.cs-block__body h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); text-transform: uppercase; margin-bottom: 22px; }
.cs-block__body .lead { color: var(--fg); }

.cs-list { margin-top: 24px; display: grid; gap: 2px; }
.cs-list li { padding: 18px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 34px 1fr; gap: 18px; color: var(--text-2); }
.cs-list li:last-child { border-bottom: 1px solid var(--line); }
.cs-list .n { font-family: var(--mono); color: var(--accent); font-size: 13px; padding-top: 4px; }

.cs-figure { margin-block: clamp(30px, 5vh, 60px); }
.cs-figure figcaption { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-top: 14px; letter-spacing: 0.03em; }
.cs-img { width: 100%; height: auto; display: block; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 18px 44px rgba(10,10,15,0.10); cursor: zoom-in; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.cs-img:hover { box-shadow: 0 24px 60px rgba(10,10,15,0.20); transform: translateY(-2px); }

/* ---------- LIGHTBOX — click any case-study image to view it full size ---------- */
.lightbox { position: fixed; inset: 0; z-index: 9990; display: flex; padding: clamp(16px, 4vw, 60px); background: rgba(9,9,12,0.94); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s; cursor: zoom-out; user-select: none; -webkit-user-select: none; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox.zoomed { overflow: auto; }
/* margin:auto centers the image while it fits, and resolves to 0 once it's larger than the frame — so a zoomed image scrolls cleanly instead of clipping off-screen */
.lightbox__img { margin: auto; max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 8px; box-shadow: 0 30px 90px rgba(0,0,0,0.55); transform: scale(.97); transition: transform .3s var(--ease); cursor: zoom-in; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.lightbox.open .lightbox__img { transform: scale(1); }
.lightbox.zoomed .lightbox__img { max-width: none; max-height: none; transform: none; cursor: zoom-out; }
.lightbox__close { position: fixed; top: 18px; right: 22px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.28); background: rgba(255,255,255,0.10); color: #fff; font-size: 17px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .2s, transform .3s var(--ease); }
.lightbox__close:hover { background: rgba(255,255,255,0.2); transform: rotate(90deg); }
.lightbox__hint { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: rgba(255,255,255,0.55); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .lightbox, .lightbox__img, .lightbox__close, .cs-img { transition: none; } .lightbox__img { transform: none; } .cs-img:hover { transform: none; } }
.cs-figs-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 720px){ .cs-figs-2 { grid-template-columns: 1fr; } }

/* Responsive video / prototype embed */
.cs-video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 18px 44px rgba(10,10,15,0.10); background: #000; }
.cs-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cs-figure figcaption a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.cs-figure figcaption a:hover { text-decoration-thickness: 2px; }

.cs-impact { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.cs-impact .stat { background: var(--bg); }
@media (max-width: 720px){ .cs-impact { grid-template-columns: 1fr; } }

.callout { border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent); border-radius: var(--radius); padding: 20px 24px; font-family: var(--mono); font-size: 13.5px; color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); margin-block: 24px; line-height: 1.6; }
.callout strong { color: var(--fg); }

.cs-next { border-top: 1px solid var(--line); }
.cs-next a { display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; padding-block: clamp(40px,7vh,90px); }
.cs-next__label { font-family: var(--mono); font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.cs-next__title { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2rem,6vw,5rem); line-height: 1; transition: color .4s; }
.cs-next a:hover .cs-next__title { color: var(--accent); }
.cs-next__arrow { width: 60px; height: 60px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: .4s; }
.cs-next a:hover .cs-next__arrow { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: translateX(6px); }

/* ---------- 17. CUSTOM CURSOR ---------- */
.cursor { position: fixed; top: 0; left: 0; width: 34px; height: 34px; border: 1.5px solid var(--accent); border-radius: 50%; pointer-events: none; z-index: 9999; transform: translate(-50%,-50%); transition: width .3s var(--ease), height .3s var(--ease), background .3s, opacity .3s; mix-blend-mode: difference; will-change: transform; }
.cursor.hover { width: 68px; height: 68px; background: var(--fg); border-color: var(--fg); }
.cursor.down { width: 24px; height: 24px; }
.cursor__dot { position: fixed; top: 0; left: 0; width: 5px; height: 5px; background: var(--accent); border-radius: 50%; pointer-events: none; z-index: 9999; transform: translate(-50%,-50%); will-change: transform; }
@media (hover: none), (pointer: coarse) { .cursor, .cursor__dot { display: none; } }

/* ---------- 18. REVEAL ANIMATIONS ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }

.mask-line { overflow: hidden; }
.mask-line > * { display: block; transform: translateY(105%); transition: transform 1s var(--ease); }
.mask-line.in > * { transform: none; }

/* ---------- 19. UTILITIES ---------- */
.mt-s { margin-top: 20px; } .mt-m { margin-top: 40px; } .mt-l { margin-top: 72px; }
.center { text-align: center; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,4vw,60px); }
@media (max-width: 820px){ .grid-2 { grid-template-columns: 1fr; } }
.noscroll { overflow: hidden; }

/* ---------- 20. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .mask-line > * { opacity: 1 !important; transform: none !important; }
  .hero__glow, .cs-hero__glow { animation: none; }
  .cursor, .cursor__dot { display: none; }
}
