/* =========================================================
   BRAND OVERLAY v3 — sai kanagat personal identity system
   Comprehensive override layer. Loaded LAST.
   Design principles applied:
     · Clarity (Apple HIG)        — every text legible, contrast > AA
     · Deference                  — chrome recedes, content is hero
     · Depth                      — subtle elevation, true layering
     · Restraint (Rams · Ive)     — one accent, used surgically
     · Quality                    — tokens consistent, no orphans
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&family=Newsreader:ital,opsz,wght@0,6..72,200..800;1,6..72,200..800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* ───────────────────────────────────────────────────────
   TOKENS
   ─────────────────────────────────────────────────────── */
:root {
  /* core */
  --paper: #f4f3ef;
  --paper-pure: oklch(0.985 0.003 260);
  --ink: oklch(0.16 0.012 260);
  --ink-soft: oklch(0.32 0.012 260);
  --accent: oklch(0.42 0.21 265);
  --accent-ink: oklch(0.28 0.18 268);
  --accent-up: oklch(0.55 0.22 262);
  --accent-soft: oklch(0.93 0.04 265);

  /* neutrals — cool warm-grey scale */
  --n-50:  oklch(0.985 0.003 260);
  --n-100: oklch(0.955 0.004 260);
  --n-200: oklch(0.915 0.006 260);
  --n-300: oklch(0.86  0.008 260);
  --n-400: oklch(0.72  0.010 260);
  --n-500: oklch(0.56  0.012 260);
  --n-600: oklch(0.44  0.012 260);
  --n-700: oklch(0.32  0.012 260);
  --n-800: oklch(0.235 0.012 260);
  --n-900: oklch(0.16  0.012 260);

  /* type */
  --sans:  'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --serif: 'Newsreader', 'Source Serif Pro', Georgia, serif;
  --mono:  'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* radii + shadows */
  --r-1: 2px; --r-2: 4px; --r-3: 8px; --r-4: 14px; --r-5: 22px; --r-full: 999px;

  /* type scale (canonical) */
  --t-xs: 12px; --t-sm: 14px; --t-base: 16px; --t-md: 18px;
  --t-lg: 22px; --t-xl: 28px; --t-2xl: 36px; --t-3xl: 48px;
  --t-4xl: 64px; --t-5xl: 88px; --t-6xl: 128px;

  /* motion tokens */
  --motion-fast: 200ms;
  --motion-base: 300ms;
  --motion-slow: 500ms;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* transform / interaction tokens — read by js/interactions.js */
  --tilt-max: 4;            /* card 3D tilt max in degrees (Marin-restraint) */
  --tilt-perspective: 1000; /* px */
  --magnetic-radius: 110;   /* button attract radius in px */
  --magnetic-strength: 0.28;/* pull factor 0–1 */
  --hover-lift: 3px;        /* card lift on hover */
  --hover-shift: 24px;      /* editorial row slide on hover */
  --breath-amp: 0.0035;     /* hero loop subtle breathing */

  --shadow-1: 0 1px 0 rgba(20,14,8,0.04), 0 1px 2px rgba(20,14,8,0.05);
  --shadow-2: 0 1px 2px rgba(20,14,8,0.04), 0 6px 16px rgba(20,14,8,0.06);
  --shadow-3: 0 4px 8px rgba(20,14,8,0.05), 0 16px 36px rgba(20,14,8,0.08);
  --shadow-4: 0 8px 16px rgba(20,14,8,0.06), 0 32px 72px rgba(20,14,8,0.12);

  /* legacy remap so styles.css inherits the new system */
  --black: var(--ink);
  --white: var(--paper);
  --yellow: var(--accent);
  --yellow-dim: var(--accent-soft);
  --grey-line: var(--n-300);
  --grey-mid: var(--n-500);
  --grey-dark: var(--n-700);
  --font-display: var(--sans);
  --font-body: var(--sans);
  --font-mono: var(--mono);
}

/* ───────────────────────────────────────────────────────
   GLOBAL
   ─────────────────────────────────────────────────────── */
html, body { background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: var(--paper); }

a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }

h1, h2, h3, .name-first, .name-last, .hero-name, .post-title, .blog-row-title, .work-card-title {
  font-family: var(--sans); font-weight: 500; letter-spacing: -0.022em; color: var(--ink);
}
.outline { color: transparent !important; -webkit-text-stroke: 1.5px var(--ink) !important; }

em, .brand-italic, .serif-italic {
  font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--ink); letter-spacing: -0.012em;
}

.section-label, .nav-tag, .hero-label, .post-meta, .filter-pill,
.lang-toggle, .blog-row-tag, .blog-row-date,
.work-card-number, .demo-tile-num, .demo-tile-cta, .timeline-year,
.feed-msg .who, .lb-caption { font-family: var(--mono); }

.section-label .num { color: var(--accent); font-weight: 500; }

/* ───────────────────────────────────────────────────────
   NAV
   ─────────────────────────────────────────────────────── */
.nav {
  background: rgba(244, 243, 239, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--n-300);
}
.nav a:not(.nav-score-btn):not(.nav-logo) { color: var(--ink); text-decoration: none; font-family: var(--sans); font-size: var(--t-sm); font-weight: 400; }
.nav a:not(.nav-score-btn):not(.nav-logo):hover { color: var(--accent-ink); }
.nav a.active { color: var(--accent-ink); }
.nav a.active::after { background: var(--accent) !important; height: 2px !important; }
.nav-logo, .nav-logo:hover { color: var(--ink); font-family: var(--sans); font-weight: 500; letter-spacing: -0.012em; text-decoration: none; }
.nav-logo span { color: var(--accent); }
.nav-score-btn {
  background: var(--ink); color: var(--paper); border-radius: var(--r-full);
  padding: 7px 14px; font-family: var(--sans); font-weight: 500; font-size: var(--t-sm); letter-spacing: -0.005em;
  text-decoration: none;
  transition: background var(--motion-fast) var(--ease-out), transform .2s ease;
}
.nav-score-btn:hover { background: var(--accent-ink); color: var(--paper); }
.nav-tag { color: var(--n-500); font-size: var(--t-xs); letter-spacing: 0.18em; text-transform: uppercase; font-family: var(--mono); }
.nav-hamburger span { background: var(--ink); }

/* ───────────────────────────────────────────────────────
   BUTTONS
   ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 500; font-size: var(--t-sm); letter-spacing: -0.005em;
  padding: 12px 22px; border-radius: var(--r-full);
  text-decoration: none;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); border: none; }
.btn-primary:hover { background: var(--accent-ink); color: var(--paper); }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--n-300); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-outline-yellow { background: var(--accent); color: var(--paper); border: none; }
.btn-outline-yellow:hover { background: var(--accent-up); color: var(--paper); }

/* ───────────────────────────────────────────────────────
   HERO LOOP SECTION (homepage) — paper bg, ink mark, ultramarine accent
   ─────────────────────────────────────────────────────── */
.hero-loop-section {
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 96px 32px 80px;
  gap: 40px;
  position: relative;
}
.hero-loop-section .hero-label {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  color: var(--n-500); font-family: var(--mono);
  font-size: var(--t-xs); letter-spacing: 0.22em; text-transform: uppercase;
  text-align: left;
}
.hero-loop-section .hero-label .num { color: var(--accent); margin-right: 12px; }
.hero-loop-stage { width: 100%; max-width: 1180px; display: flex; justify-content: center; }
.hero-bottom-centered {
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  margin-top: 40px; max-width: 720px;
}
.hero-bottom-centered .hero-tagline {
  color: var(--ink);
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(20px, 2.2vw, 28px); line-height: 1.4; letter-spacing: -0.01em;
}
.hero-bottom-centered .hero-tagline strong {
  font-family: var(--sans); font-style: normal; font-weight: 500; color: var(--ink);
}
.hero-bottom-centered .hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-bottom-centered .btn-primary { background: var(--ink); color: var(--paper); }
.hero-bottom-centered .btn-primary:hover { background: var(--accent); color: var(--paper); }
.hero-bottom-centered .btn-outline { border-color: var(--n-300); color: var(--ink); }
.hero-bottom-centered .btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.hero-bottom-centered .btn-primary svg, .hero-bottom-centered .btn-outline svg { stroke: currentColor; }

/* ───────────────────────────────────────────────────────
   SUBPAGE HEROES (work, about, blog, demos, contact)
   ─────────────────────────────────────────────────────── */
.work-page-header, .about-hero, .blog-hero, .demos-page, .post-hero {
  background: var(--paper); color: var(--ink); padding-top: 120px;
}
.work-page-header h1, .about-hero h1, .blog-hero h1 {
  font-family: var(--sans); font-weight: 500; letter-spacing: -0.03em;
  font-size: clamp(56px, 9vw, 128px); line-height: 0.95; color: var(--ink);
}
.work-page-sub p { color: var(--n-700); max-width: 680px; line-height: 1.6; font-size: var(--t-md); }
.post-title { font-family: var(--sans); font-weight: 500; letter-spacing: -0.025em; line-height: 0.98; color: var(--ink); }
.post-title span[style*="color: var(--yellow)"] { color: var(--accent) !important; }

/* ───────────────────────────────────────────────────────
   FILTER PILLS — quiet text-link tabs (Marin Kurir-flavoured)
   ─────────────────────────────────────────────────────── */
.filter-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 28px; }
.filter-pill {
  background: transparent !important; border: 1px solid var(--n-300);
  border-radius: var(--r-full);
  color: var(--n-700);
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.16em; text-transform: uppercase;
  padding: 8px 16px;
  transition: background var(--motion-fast) var(--ease-out), color .2s ease, border-color .2s ease;
  cursor: pointer;
}
.filter-pill:hover { border-color: var(--ink); color: var(--ink); }
.filter-pill.active { background: var(--ink) !important; color: var(--paper) !important; border-color: var(--ink); }

/* ───────────────────────────────────────────────────────
   WORK CARDS (legacy grid, still used by project panel)
   ─────────────────────────────────────────────────────── */
.work-card { border-radius: var(--r-4); overflow: hidden; background: var(--n-100); }
.work-card-overlay {
  background: linear-gradient(180deg, transparent 0%, rgba(16,18,28,0) 35%, rgba(16,18,28,0.92) 100%) !important;
  color: var(--paper) !important;
}
.work-card-number { color: rgba(255,255,255,0.72) !important; letter-spacing: 0.18em; text-transform: uppercase; font-size: var(--t-xs); font-family: var(--mono); }
.work-card-title { color: var(--paper) !important; font-family: var(--sans); font-weight: 500; letter-spacing: -0.015em; }
.tag {
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.16em; text-transform: uppercase;
  padding: 4px 9px; border-radius: var(--r-full);
  background: rgba(244,243,239,0.12); color: var(--paper) !important;
  border: 1px solid rgba(244,243,239,0.22);
}
.tag.design, .tag.marketing, .tag.collab, .tag.systems { color: var(--accent-soft) !important; border-color: rgba(244,243,239,0.22) !important; }

/* ───────────────────────────────────────────────────────
   PROJECT DETAIL PANEL — paper surface, ink text
   ─────────────────────────────────────────────────────── */
.project-panel { background: var(--paper) !important; color: var(--ink); }
.panel-backdrop { background: rgba(16,18,28,0.5) !important; backdrop-filter: blur(6px); }
.panel-close-btn { color: var(--ink) !important; border: 1px solid var(--n-300); border-radius: var(--r-full); background: transparent; }
.panel-close-btn:hover { color: var(--paper) !important; background: var(--ink); border-color: var(--ink); }
.panel-content { color: var(--ink) !important; }
.panel-label, .panel-label .num { color: var(--accent) !important; }
.panel-title { font-family: var(--sans); font-weight: 500; letter-spacing: -0.025em; color: var(--ink) !important; font-size: clamp(36px, 5vw, 64px); line-height: 1; }
.panel-meta { border-top: 1px solid var(--n-300); border-bottom: 1px solid var(--n-300); padding: 24px 0; margin: 32px 0; }
.panel-meta-item label { color: var(--n-500) !important; font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.18em; text-transform: uppercase; }
.panel-meta-item span { color: var(--ink) !important; font-family: var(--sans); font-weight: 500; }
.panel-body { color: var(--n-700) !important; font-size: var(--t-md); line-height: 1.7; }
.panel-body p { color: var(--n-700); }
.panel-body p + p { margin-top: 16px; }
.panel-body strong { color: var(--ink); }
.panel-body em { font-family: var(--serif); font-style: italic; color: var(--ink); }
.panel-body h3 { color: var(--ink); font-family: var(--sans); font-weight: 500; margin-top: 28px; }
.panel-highlight {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  color: var(--ink) !important;
  padding: 20px 24px;
  margin: 32px 0;
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.55;
  border-radius: var(--r-3);
}
.panel-gallery { background: transparent; }
.panel-gallery img { background: var(--n-100); border-radius: var(--r-3); }

/* ───────────────────────────────────────────────────────
   MARQUEE
   ─────────────────────────────────────────────────────── */
.marquee-wrap { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.marquee-wrap.inverted { background: var(--paper); color: var(--ink); border-top: 1px solid var(--n-300); border-bottom: 1px solid var(--n-300); border-color: var(--n-300); }
.marquee-track span { color: inherit; }

/* ───────────────────────────────────────────────────────
   HOMEPAGE — selected work + discipline split
   ─────────────────────────────────────────────────────── */
.work-section { background: var(--paper); }
.work-section h2 { color: var(--ink); }
.discipline-split { background: var(--paper); border-top: 1px solid var(--n-300); }
.discipline-col { color: var(--ink); }
.discipline-col h2 { color: var(--ink); }
.discipline-col .num { color: var(--ink) !important; }
.discipline-col-tag { font-family: var(--mono); color: var(--accent); }
.discipline-col-tag.design::before { background: var(--accent) !important; }
.discipline-list li { color: var(--n-700); }

/* ───────────────────────────────────────────────────────
   ABOUT PAGE
   ─────────────────────────────────────────────────────── */
.about-bio-intro { color: var(--ink); font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -0.02em; }
.about-bio-intro span[style] { color: var(--accent-ink) !important; }
.about-bio-text p { color: var(--n-700); font-size: var(--t-md); line-height: 1.7; }
.about-bio-text p strong { color: var(--ink); }
.about-bio-text p em { color: var(--accent-ink); font-style: italic; font-family: var(--serif); }
.timeline-section { background: var(--paper); }
.timeline-year { color: var(--accent); font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.2em; }
.timeline-role { color: var(--ink); font-family: var(--sans); font-weight: 500; font-size: var(--t-lg); letter-spacing: -0.015em; }
.timeline-company { color: var(--n-500); font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.1em; text-transform: uppercase; }
.timeline-desc { color: var(--n-700); line-height: 1.65; }
.about-portrait img { border-radius: var(--r-4); }
.about-portrait figcaption { color: var(--n-500); font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.22em; text-transform: uppercase; }
.about-portraits, .timeline-section { border-color: var(--n-300); }

/* ───────────────────────────────────────────────────────
   BLOG
   ─────────────────────────────────────────────────────── */
.blog-list { padding: 64px 32px 96px; max-width: 1180px; margin: 0 auto; }
.blog-row {
  display: grid; grid-template-columns: 100px 1fr 80px; gap: 32px; align-items: baseline;
  padding: 28px 8px;
  border-bottom: 1px solid var(--n-300);
  text-decoration: none; color: var(--ink);
  transition: padding .3s ease, color .3s ease;
  position: relative;
}
.blog-row::before {
  content: ''; position: absolute; inset: 0;
  background: var(--accent-soft); opacity: 0;
  transition: opacity .3s ease; pointer-events: none; z-index: -1;
}
.blog-row:hover { padding-left: 24px; }
.blog-row:hover::before { opacity: 0.55; }
.blog-row:hover .blog-row-cta { color: var(--accent); transform: translateX(4px); }
.blog-row-date { color: var(--n-500); font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.18em; text-transform: uppercase; }
.blog-row-tag { color: var(--accent); font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 6px; }
.blog-row-title { color: var(--ink); font-family: var(--sans); font-weight: 500; font-size: clamp(20px, 2.4vw, 32px); letter-spacing: -0.022em; line-height: 1.15; }
.blog-row-excerpt { color: var(--n-700); margin-top: 8px; line-height: 1.6; font-size: var(--t-sm); }
.blog-row-cta { color: var(--n-500); font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.22em; text-transform: uppercase; text-align: right; transition: color .3s ease, transform .3s ease; }
@media (max-width: 760px) { .blog-row { grid-template-columns: 80px 1fr; gap: 16px; padding: 18px 4px; } .blog-row-cta { display: none; } }

/* Blog post bodies */
.post-meta { color: var(--n-500); }
.post-meta .post-tag { color: var(--accent); }
.post-body { max-width: 720px; margin: 0 auto; padding: 0 32px 96px; }
.post-body p { color: var(--n-700); font-size: var(--t-md); line-height: 1.7; margin-bottom: 16px; font-family: var(--sans); }
.post-body p strong { color: var(--ink); }
.post-body p em { color: var(--accent-ink); font-family: var(--serif); font-style: italic; }
.post-body h2 { color: var(--ink); font-family: var(--sans); font-weight: 500; font-size: clamp(24px, 2.6vw, 36px); letter-spacing: -0.022em; margin: 48px 0 16px; }
.post-body ul { color: var(--n-700); line-height: 1.7; }
.post-body ul li { margin-bottom: 8px; }
.post-body ul li strong { color: var(--ink); }
.post-body a:not(.btn) { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ───────────────────────────────────────────────────────
   DEMOS PAGE
   ─────────────────────────────────────────────────────── */
.demos-page h1 .outline { color: transparent !important; -webkit-text-stroke: 1.5px var(--ink) !important; }
.demos-lede { color: var(--n-700) !important; line-height: 1.65; }
.demo-tile { border-radius: var(--r-4); border: 1px solid var(--n-300); background: var(--paper); }
.demo-tile-content { color: var(--paper) !important; }
.demo-tile-num { color: var(--accent); }
.demo-tile-title { color: var(--paper); font-family: var(--sans); font-weight: 500; letter-spacing: -0.025em; }
.demo-tile-desc { color: rgba(244, 243, 239, 0.85); }
.demo-tile-cta { color: var(--accent-soft); }
.demo-tile-tag { color: rgba(244, 243, 239, 0.85); border-color: rgba(244, 243, 239, 0.3); }
.demo-tile:hover { border-color: var(--ink); box-shadow: var(--shadow-3); }

/* ───────────────────────────────────────────────────────
   CONTACT
   ─────────────────────────────────────────────────────── */
.contact-page, .contact-section, .contact-hero { background: var(--paper); color: var(--ink); }
.contact-form input, .contact-form textarea {
  background: var(--paper-pure); border: 1px solid var(--n-300); color: var(--ink);
  border-radius: var(--r-3); padding: 14px 16px;
  font-family: var(--sans); font-size: var(--t-base);
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--ink); }
.contact-form label { color: var(--n-500); font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.18em; text-transform: uppercase; }

/* ───────────────────────────────────────────────────────
   FOOTER — ink surface
   ─────────────────────────────────────────────────────── */
.footer { background: var(--ink) !important; color: var(--paper) !important; border-top: none !important; padding: 64px 32px; }
.footer-logo, .footer-logo span { color: var(--paper) !important; }
.footer-logo span { color: var(--accent) !important; }
.footer-copy { color: rgba(244,243,239,0.6) !important; font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.18em; text-transform: uppercase; }
.footer-socials a { color: var(--paper) !important; text-decoration: none; font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.18em; text-transform: uppercase; padding: 6px 0; border-bottom: 1px solid rgba(244,243,239,0.25); }
.footer-socials a:hover { color: var(--accent-soft) !important; border-color: var(--accent); }

/* ───────────────────────────────────────────────────────
   PROCESS PAGE
   ─────────────────────────────────────────────────────── */
.process-section { background: var(--paper); }
.process-phase { border-top: 1px solid var(--n-300); padding: 64px 32px; }
.process-phase h2 { color: var(--ink); font-family: var(--sans); font-weight: 500; letter-spacing: -0.025em; }
.process-phase p { color: var(--n-700); line-height: 1.65; }
.process-num { color: var(--accent); font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.2em; }

/* ───────────────────────────────────────────────────────
   GALLERY PAGE
   ─────────────────────────────────────────────────────── */
.gallery-grid, .gallery-masonry { background: var(--paper); padding: 64px 32px; }
.gallery-grid img, .gallery-masonry img { border-radius: var(--r-3); background: var(--n-100); }

/* ───────────────────────────────────────────────────────
   LANG TOGGLE
   ─────────────────────────────────────────────────────── */
.lang-toggle { border-radius: var(--r-full); border: 1px solid var(--n-300); background: var(--paper); padding: 2px; display: inline-flex; align-items: center; }
.lang-toggle button { background: transparent; border: none; color: var(--n-700); padding: 5px 12px; font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.18em; cursor: pointer; border-radius: var(--r-full); }
.lang-toggle button.is-active { background: var(--ink); color: var(--paper); }
.lang-toggle span { color: var(--n-300); }

/* ───────────────────────────────────────────────────────
   LIGHTBOX — refine to brand
   ─────────────────────────────────────────────────────── */
.lb-overlay { background: rgba(16,18,28,0.94); }
.lb-close, .lb-prev, .lb-next { background: rgba(244,243,239,0.08); border: 1px solid rgba(244,243,239,0.2); color: var(--paper); border-radius: var(--r-full); font-family: var(--mono); }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.lb-caption { color: rgba(244,243,239,0.7); font-family: var(--mono); }

/* ───────────────────────────────────────────────────────
   SKILLS BOUNCE — keep visible on paper
   ─────────────────────────────────────────────────────── */
.skills-bounce { background: var(--paper); border-top: 1px solid var(--n-300); border-bottom: 1px solid var(--n-300); }
.skills-bounce-header h2 { color: var(--ink); }
.skills-bounce-stage { background: var(--paper); }
.skills-bounce-hint { color: var(--n-500); font-family: var(--mono); }
.skills-bounce-meta { color: var(--n-500); font-family: var(--mono); }

/* ───────────────────────────────────────────────────────
   UTILITIES
   ─────────────────────────────────────────────────────── */
.brand-disc { display: inline-block; width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--ink); vertical-align: middle; margin-right: 0.4em; }
.brand-dot { color: var(--accent); }

/* Focus states — accessibility (WCAG 2.4.7) */
a:focus-visible, button:focus-visible, .btn:focus-visible, .filter-pill:focus-visible, .nav-score-btn:focus-visible, .we-row:focus-visible, .blog-row:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-3);
}

/* Skip to content — accessibility (WCAG 2.4.1) */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 12px 18px; border-radius: var(--r-full);
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.15em; text-transform: uppercase;
  z-index: 100;
}
.skip-link:focus, .skip-link:focus-visible {
  left: 18px; top: 18px; outline: 2px solid var(--accent); outline-offset: 3px;
}

/* Discipline split (homepage) — bring into brand */
.discipline-split { padding: 96px 32px; gap: 32px; }
.discipline-col { padding: 32px; background: var(--paper-pure); border-radius: var(--r-4); border: 1px solid var(--n-300); }
.discipline-col h2 { font-family: var(--sans); font-weight: 500; letter-spacing: -0.025em; font-size: clamp(28px, 4vw, 48px); line-height: 1; }
.discipline-col-tag { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin: 18px 0; }
.discipline-col-tag.design::before, .discipline-col-tag.marketing::before { background: var(--accent) !important; width: 8px !important; height: 8px !important; border-radius: 50% !important; display: inline-block !important; margin-right: 10px !important; vertical-align: middle !important; }
.discipline-list { margin-top: 24px; padding: 0; list-style: none; }
.discipline-list li { padding: 14px 0; border-bottom: 1px dashed var(--n-300); color: var(--n-700); font-family: var(--sans); font-size: var(--t-base); line-height: 1.4; }
.discipline-list li:last-child { border-bottom: none; }

/* Work section header on homepage */
.work-section { padding: 96px 32px; }
.work-section h2 { font-family: var(--sans); font-weight: 500; letter-spacing: -0.025em; font-size: clamp(40px, 6vw, 88px); line-height: 0.98; color: var(--ink); }
.work-grid { gap: 14px; margin-top: 48px; }
.work-grid .work-card { aspect-ratio: 4/5; }

/* Hero number / corner mark on homepage — kill if present */
.hero-number { display: none !important; }

/* Process page */
.process-page, .process-hero { background: var(--paper); padding: 120px 32px 48px; }
.process-hero h1 { font-family: var(--sans); font-weight: 500; letter-spacing: -0.03em; font-size: clamp(56px, 9vw, 128px); line-height: 0.95; color: var(--ink); }

/* Gallery page */
.gallery-page, .gallery-hero { background: var(--paper); padding: 120px 32px 48px; }
.gallery-hero h1 { font-family: var(--sans); font-weight: 500; letter-spacing: -0.03em; font-size: clamp(56px, 9vw, 128px); line-height: 0.95; color: var(--ink); }

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Reduced motion respect — kill all transitions/animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .we-row:hover { padding-left: 8px; }
}

/* ───────────────────────────────────────────────────────
   WORK · EDITORIAL LIST VIEW (Marin Kurir)
   ─────────────────────────────────────────────────────── */
.work-editorial { max-width: 1280px; margin: 0 auto; padding: 32px 48px 96px; border-top: 1px solid var(--n-300); }
.we-header {
  display: grid; grid-template-columns: 56px 80px 1fr 1fr 100px; gap: 24px;
  padding: 14px 8px; border-bottom: 1px solid var(--n-300);
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.22em; text-transform: uppercase; color: var(--n-500);
}
.we-row {
  display: grid; grid-template-columns: 56px 80px 1fr 1fr 100px; gap: 24px;
  align-items: baseline; padding: 28px 8px;
  border-bottom: 1px solid var(--n-300);
  color: var(--ink); text-decoration: none;
  transition: padding-left 0.4s cubic-bezier(0.2,0.8,0.2,1), color 0.3s ease;
  position: relative;
}
.we-row::before { content: ''; position: absolute; inset: 0; background: var(--accent-soft); opacity: 0; transition: opacity var(--motion-base) var(--ease-out); pointer-events: none; z-index: -1; }
.we-row:hover { padding-left: 28px; }
.we-row:hover::before { opacity: 0.55; }
.we-row:hover .we-title { color: var(--accent-ink); }
.we-row:hover .we-cta { color: var(--accent); transform: translateX(4px); }
.we-num { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.18em; color: var(--accent); align-self: center; }
.we-year { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.16em; color: var(--n-500); align-self: center; }
.we-title { font-family: var(--sans); font-weight: 500; font-size: clamp(20px, 2.2vw, 30px); letter-spacing: -0.022em; line-height: 1.15; color: var(--ink); transition: color 0.3s ease; }
.we-role { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--n-500); align-self: center; }
.we-cta { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: 0.22em; text-transform: uppercase; color: var(--n-500); text-align: right; align-self: center; transition: color 0.3s ease, transform 0.3s ease; }
.we-preview { position: fixed; top: 0; left: 0; width: 320px; height: 220px; pointer-events: none; z-index: 60; opacity: 0; transform: scale(0.96); transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.2,0.8,0.2,1); border-radius: var(--r-4); overflow: hidden; box-shadow: var(--shadow-3); background: var(--paper); }
.we-preview.is-on { opacity: 1; transform: scale(1); }
.we-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 760px) {
  .work-editorial { padding: 24px 20px 64px; }
  .we-header { grid-template-columns: 40px 60px 1fr 64px; gap: 12px; }
  .we-header .we-h-role { display: none; }
  .we-row { grid-template-columns: 40px 60px 1fr 64px; gap: 12px; padding: 20px 4px; }
  .we-row .we-role { display: none; }
  .we-title { font-size: var(--t-md); }
  .we-preview { display: none; }
}

/* Custom cursor — restored, ultramarine palette */
.cursor-dot, .cursor-ring { display: block !important; pointer-events: none; }
.cursor-dot {
  position: fixed; top: 0; left: 0; z-index: 9999;
  width: 6px; height: 6px;
  background: var(--ink);
  border-radius: 50%;
  transform: translate3d(-50%, -50%, 0);
  transition: width .2s ease, height .2s ease, background .2s ease;
}
.cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9998;
  width: 32px; height: 32px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  transform: translate3d(-50%, -50%, 0);
  opacity: 0.4;
  transition: width .25s cubic-bezier(.2,.8,.2,1), height .25s cubic-bezier(.2,.8,.2,1), border-color .2s ease, opacity .2s ease;
}
.cursor-grow .cursor-ring,
body.is-hover .cursor-ring { width: 56px; height: 56px; border-color: var(--accent); opacity: 0.9; }
.cursor-grow .cursor-dot,
body.is-hover .cursor-dot { background: var(--accent); }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none !important; } }
/* Hide the system cursor when ours is active (desktop only) */
@media (hover: hover) and (pointer: fine) { html { cursor: none; } a, button, .btn, [role="button"], input, textarea, select { cursor: none; } }

.scroll-progress { background: var(--accent) !important; height: 2px !important; }
.loader-screen { background: var(--ink) !important; }
.loader-screen * { color: var(--paper) !important; }

/* ───────────────────────────────────────────────────────
   TAG VARIANTS — visually differentiated (was: identical)
   ─────────────────────────────────────────────────────── */
.tag { background: rgba(244,243,239,0.10) !important; color: rgba(244,243,239,0.85) !important; border: 1px solid rgba(244,243,239,0.18) !important; }
.tag.design   { color: var(--accent-soft) !important; border-color: rgba(140, 120, 255, 0.35) !important; }
.tag.marketing{ color: oklch(0.93 0.06 80) !important; border-color: rgba(245, 200, 100, 0.35) !important; }
.tag.systems  { color: oklch(0.88 0.10 165) !important; border-color: rgba(100, 220, 180, 0.30) !important; }
.tag.collab   { color: var(--paper) !important; border-color: rgba(244,243,239,0.40) !important; background: rgba(244,243,239,0.18) !important; }

/* ───────────────────────────────────────────────────────
   FOCUS — universal keyboard-only visible state
   Action 7 · supersedes the earlier narrower rule
   ─────────────────────────────────────────────────────── */
.work-card:focus-visible,
.demo-tile:focus-visible,
.blog-row:focus-visible,
.we-row:focus-visible,
.lang-toggle button:focus-visible,
.filter-pill:focus-visible,
.nav-score-btn:focus-visible,
.btn:focus-visible,
a:focus-visible,
button:focus-visible,
[role="dialog"] *:focus-visible,
input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent) !important;
  outline-offset: 3px !important;
  border-radius: var(--r-3);
}

/* ───────────────────────────────────────────────────────
   MOBILE POLISH (v2026-05-21)
   Fixes: small viewport hero heights, work list wrap,
   tablet two-col disciplines, tap target sizes.
   ─────────────────────────────────────────────────────── */

/* Use small-viewport units so iOS Safari URL bar doesn't add scroll */
@supports (height: 100svh) {
  .hero,
  .hero-loop-section,
  .about-hero,
  .contact-hero,
  .process-hero,
  .gallery-hero {
    min-height: calc(100svh - var(--nav-h, 64px));
  }
  .hero-loop-section { min-height: 100svh; }
}

/* Keep discipline split as 2 columns on tablet (was stacking at 768px). */
@media (min-width: 640px) and (max-width: 980px) {
  .discipline-split { grid-template-columns: 1fr 1fr !important; }
  .discipline-col { padding: 56px 28px !important; }
  .discipline-col:first-child {
    border-right: 1px solid var(--n-300) !important;
    border-bottom: none !important;
  }
  .discipline-col h2 { font-size: clamp(28px, 5vw, 44px); line-height: 1.05; }
}

/* WORK editorial list — restructure on small screens so titles read
   on one line instead of wrapping one word at a time. */
@media (max-width: 640px) {
  .work-editorial { padding: 20px 16px 56px; }
  .we-header { display: none; }
  .we-row {
    grid-template-columns: 36px 1fr auto !important;
    grid-template-areas:
      "num   title  cta"
      "year  title  cta";
    column-gap: 12px;
    row-gap: 2px;
    padding: 18px 4px;
    align-items: start !important;
  }
  .we-row .we-num   { grid-area: num;   align-self: start; }
  .we-row .we-year  { grid-area: year;  align-self: start; }
  .we-row .we-title { grid-area: title; font-size: clamp(17px, 4.6vw, 22px); line-height: 1.25; min-width: 0; word-break: normal; overflow-wrap: anywhere; }
  .we-row .we-cta   { grid-area: cta;   align-self: center; font-size: 0.55rem; }
  .we-row .we-role  { display: none; }
}

/* Small-screen breathing room + readable text */
@media (max-width: 480px) {
  :root { --pad-x: 18px; }
  .about-bio,
  .timeline-section,
  .work-page-header,
  .contact-hero { padding-left: 18px; padding-right: 18px; }
  /* About bio text — make sure body text is ≥16px */
  .about-bio-text p { font-size: 16px; line-height: 1.65; }
  .about-bio-intro { font-size: clamp(18px, 5vw, 22px); }
  /* Timeline — collapse the absolute year into inline label */
  .timeline { padding-left: 28px; }
  .timeline::before { left: 8px; }
  .timeline-item::before { left: -24px; top: 28px; }
  .timeline-item { padding: 28px 0; }
  .timeline-year {
    position: static !important;
    width: auto !important;
    text-align: left !important;
    margin-bottom: 6px;
    font-size: 0.6rem;
    color: var(--accent);
  }
  .timeline-role { font-size: 1.05rem; }
  /* Stacks for tighter footer + nav links inside hamburger panel */
  .nav-links.open a { font-size: 1.05rem; padding: 6px 0; }
  /* Marquee track velocity — smaller text on mobile so it doesn't dwarf */
  .marquee-track span { font-size: clamp(14px, 4vw, 22px); }
  /* Filter pills should wrap cleanly */
  .filter-pills { gap: 8px; }
  .filter-pill { padding: 8px 14px; font-size: 0.65rem; min-height: 36px; }
}

/* Touch target minimums — 44x44 for all interactive elements on touch */
@media (hover: none), (pointer: coarse) {
  .nav-hamburger,
  .lang-toggle button,
  .filter-pill,
  .btn,
  .nav-links a,
  .we-cta,
  .blog-row-cta { min-height: 44px; }
  .nav-hamburger { min-width: 44px; }
  .lang-toggle button { padding: 8px 12px; }
}

/* ═══════════════════════════════════════════════════════════
   PROJECT DETAIL PANEL — REDESIGN v3 (Vanguard / Editorial Luxury)
   Doppelrand nested architecture · Editorial split layout
   Staggered scroll reveals · Magnetic CTA physics
   ═══════════════════════════════════════════════════════════ */

/* Hard override: replace dark generic panel with editorial cream */
.project-panel {
  background: var(--paper) !important;
  border-left: none !important;
  width: min(960px, 100vw) !important;
  box-shadow: -32px 0 80px -16px oklch(0.16 0.012 260 / 0.18),
              -2px 0 0 oklch(0.16 0.012 260 / 0.06) !important;
  transform: translateX(100%);
  transition: transform 720ms cubic-bezier(0.32, 0.72, 0, 1) !important;
}
.project-panel.open { transform: translateX(0); }

/* Subtle film-grain overlay — fixed, pointer-events:none, no scroll repaints */
.project-panel::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

/* Sticky top bar — fluid glass island, not a default border-bottom rectangle */
.project-panel .panel-close {
  position: sticky;
  top: 20px;
  margin: 20px 24px 0;
  z-index: 20;
  padding: 12px 14px 12px 22px !important;
  background: oklch(0.985 0.003 260 / 0.78) !important;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: none !important;
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.6),
    0 1px 2px oklch(0.16 0.012 260 / 0.06),
    0 12px 32px -8px oklch(0.16 0.012 260 / 0.12);
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.project-panel .panel-close-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-family: var(--mono) !important;
  font-size: 10px !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  color: var(--ink) !important;
  background: transparent !important;
  border: none !important;
  padding: 4px 10px !important;
  border-radius: 999px;
  transition: all var(--motion-base) var(--ease-out) !important;
}
.project-panel .panel-close-btn:hover {
  background: var(--ink) !important;
  color: var(--paper) !important;
}
.project-panel .panel-close-btn svg { stroke: currentColor !important; }

#panelNav { gap: 6px !important; }
#prevProject, #nextProject {
  background: transparent !important;
  border: none !important;
  color: var(--ink) !important;
  font-family: var(--mono) !important;
  font-size: 10px !important;
  letter-spacing: 0.22em !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  transition: all var(--motion-base) var(--ease-out) !important;
  min-height: 32px !important;
}
#prevProject:hover, #nextProject:hover {
  background: var(--ink) !important;
  color: var(--paper) !important;
}

/* Content shell — relax padding, give massive whitespace */
.project-panel .panel-content {
  padding: 64px 56px 120px !important;
  color: var(--ink) !important;
  position: relative;
  z-index: 2;
}

/* The Editorial Split header */
.v3-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: oklch(0.16 0.012 260 / 0.05);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 28px;
}
.v3-eyebrow .v3-eyebrow-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  letter-spacing: 0;
}

.v3-title {
  font-family: var(--sans) !important;
  font-weight: 600 !important;
  font-size: clamp(40px, 5.6vw, 76px) !important;
  letter-spacing: -0.04em !important;
  line-height: 0.95 !important;
  text-transform: none !important;
  color: var(--ink) !important;
  margin: 0 0 16px !important;
  max-width: 18ch;
}
.v3-title em, .v3-title .v3-accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.v3-subhead {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: -0.012em;
  line-height: 1.45;
  color: var(--n-700);
  max-width: 52ch;
  margin: 0 0 56px;
}

/* Asymmetrical Bento meta — Doppelrand cards */
.v3-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0 0 80px;
}
.v3-meta-card {
  position: relative;
  padding: 6px;
  background: oklch(0.16 0.012 260 / 0.035);
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px oklch(0.16 0.012 260 / 0.06);
}
.v3-meta-card-inner {
  background: var(--paper);
  border-radius: calc(22px - 6px);
  padding: 16px 16px 18px;
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.7),
    0 1px 2px oklch(0.16 0.012 260 / 0.04);
  height: 100%;
}
.v3-meta-card-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--n-500);
  margin-bottom: 8px;
}
.v3-meta-card-val {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--ink);
}
.v3-meta-card.accent .v3-meta-card-inner {
  background: var(--accent);
  color: var(--paper);
}
.v3-meta-card.accent .v3-meta-card-label { color: oklch(1 0 0 / 0.7); }
.v3-meta-card.accent .v3-meta-card-val { color: var(--paper); }

/* Gallery — bento, Z-axis cascade hover, double-bezel frames */
.v3-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin: 0 0 80px;
}
.v3-gallery-frame {
  position: relative;
  padding: 6px;
  background: oklch(0.16 0.012 260 / 0.04);
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px oklch(0.16 0.012 260 / 0.06);
  overflow: hidden;
  transition: transform 600ms cubic-bezier(0.32, 0.72, 0, 1), box-shadow 600ms cubic-bezier(0.32, 0.72, 0, 1);
}
.v3-gallery-frame:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 0 0 1px oklch(0.16 0.012 260 / 0.1),
    0 24px 60px -16px oklch(0.16 0.012 260 / 0.18);
}
.v3-gallery-frame img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(22px - 6px);
  transition: transform 1200ms cubic-bezier(0.32, 0.72, 0, 1);
}
.v3-gallery-frame:hover img { transform: scale(1.03); }
.v3-gallery-frame.lead { grid-column: span 6; }
.v3-gallery-frame.lead img { aspect-ratio: 16 / 9; }
.v3-gallery-frame.half { grid-column: span 3; }
.v3-gallery-frame.third { grid-column: span 2; }

.v3-gallery-empty {
  grid-column: 1 / -1;
  padding: 56px 32px;
  border-radius: 22px;
  background: oklch(0.16 0.012 260 / 0.03);
  box-shadow: inset 0 0 0 1px oklch(0.16 0.012 260 / 0.06);
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--n-500);
}

/* Body prose — generous measure */
.v3-body {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: -0.005em;
  color: var(--n-800);
  max-width: 62ch;
  margin: 0 0 64px;
}
.v3-body p { margin: 0 0 20px; }
.v3-body p:last-child { margin-bottom: 0; }
.v3-body strong { color: var(--ink); font-weight: 500; }
.v3-body em { font-style: italic; color: var(--accent-ink); }
.v3-body h3 {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 32px 0 12px;
  text-transform: none;
}
.v3-body ol, .v3-body ul {
  font-family: var(--serif);
  margin: 12px 0 20px 4px;
  padding-left: 22px;
}
.v3-body li { margin-bottom: 8px; line-height: 1.65; }

/* Highlight — NOT a colored-left-border. A physical card. */
.v3-highlight {
  position: relative;
  padding: 6px;
  background: var(--ink);
  border-radius: 26px;
  box-shadow:
    inset 0 0 0 1px oklch(1 0 0 / 0.08),
    0 16px 40px -16px oklch(0.16 0.012 260 / 0.4);
  margin: 0 0 64px;
}
.v3-highlight-inner {
  background: linear-gradient(180deg, oklch(0.2 0.012 260) 0%, oklch(0.14 0.012 260) 100%);
  border-radius: calc(26px - 6px);
  padding: 28px 32px;
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.08);
  position: relative;
  overflow: hidden;
}
.v3-highlight-inner::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 50%; height: 180%;
  background: radial-gradient(ellipse at center, oklch(0.42 0.21 265 / 0.4) 0%, transparent 70%);
  pointer-events: none;
}
.v3-highlight-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: oklch(0.42 0.21 265);
  margin-bottom: 10px;
  position: relative;
}
.v3-highlight-text {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.015em;
  line-height: 1.4;
  color: var(--paper);
  position: relative;
}

/* CTA row — magnetic island buttons */
.v3-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.v3-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 6px 22px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 999px;
  text-decoration: none;
  transition:
    transform 400ms cubic-bezier(0.32, 0.72, 0, 1),
    background 400ms cubic-bezier(0.32, 0.72, 0, 1),
    box-shadow 400ms cubic-bezier(0.32, 0.72, 0, 1);
  cursor: pointer;
  border: none;
  position: relative;
  will-change: transform;
}
.v3-btn-primary {
  background: var(--ink);
  color: var(--paper) !important;
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.12),
    0 4px 12px -2px oklch(0.16 0.012 260 / 0.3);
}
.v3-btn-primary:hover {
  background: var(--accent);
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.18),
    0 8px 24px -4px oklch(0.42 0.21 265 / 0.5);
}
.v3-btn-primary:active { transform: scale(0.98); }
.v3-btn-secondary {
  background: oklch(0.16 0.012 260 / 0.06);
  color: var(--ink) !important;
  box-shadow: inset 0 0 0 1px oklch(0.16 0.012 260 / 0.1);
}
.v3-btn-secondary:hover {
  background: var(--ink);
  color: var(--paper) !important;
}
.v3-btn:active { transform: scale(0.98); }

/* Button-in-Button trailing icon */
.v3-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 999px;
  background: oklch(1 0 0 / 0.12);
  transition:
    transform 400ms cubic-bezier(0.32, 0.72, 0, 1),
    background 400ms cubic-bezier(0.32, 0.72, 0, 1);
}
.v3-btn-secondary .v3-btn-icon { background: oklch(0.16 0.012 260 / 0.08); }
.v3-btn:hover .v3-btn-icon {
  transform: translateX(2px) translateY(-1px) scale(1.05);
  background: oklch(1 0 0 / 0.22);
}
.v3-btn-secondary:hover .v3-btn-icon {
  background: oklch(1 0 0 / 0.18);
}
.v3-btn-icon svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 1.5; }

/* Tags row — minimal pills */
.v3-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 0 0 16px;
}
.v3-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--n-600);
  padding: 4px 12px;
  border-radius: 999px;
  background: oklch(0.16 0.012 260 / 0.04);
  box-shadow: inset 0 0 0 1px oklch(0.16 0.012 260 / 0.05);
}

/* Staggered entry animations — fire when .open is added */
.v3-reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition:
    opacity 800ms cubic-bezier(0.32, 0.72, 0, 1),
    transform 800ms cubic-bezier(0.32, 0.72, 0, 1),
    filter 800ms cubic-bezier(0.32, 0.72, 0, 1);
}
.project-panel.open .v3-reveal {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.project-panel.open .v3-reveal[data-delay="1"] { transition-delay: 220ms; }
.project-panel.open .v3-reveal[data-delay="2"] { transition-delay: 320ms; }
.project-panel.open .v3-reveal[data-delay="3"] { transition-delay: 420ms; }
.project-panel.open .v3-reveal[data-delay="4"] { transition-delay: 520ms; }
.project-panel.open .v3-reveal[data-delay="5"] { transition-delay: 620ms; }
.project-panel.open .v3-reveal[data-delay="6"] { transition-delay: 720ms; }
.project-panel.open .v3-reveal[data-delay="7"] { transition-delay: 820ms; }

/* Respect motion preferences */
@media (prefers-reduced-motion: reduce) {
  .v3-reveal, .project-panel { transition: opacity 200ms ease !important; transform: none !important; filter: none !important; }
  .v3-gallery-frame, .v3-gallery-frame img, .v3-btn, .v3-btn-icon { transition: none !important; }
}

/* Mobile collapse — single column, tighten paddings */
@media (max-width: 768px) {
  .project-panel .panel-content { padding: 40px 22px 96px !important; }
  .project-panel .panel-close { margin: 14px 14px 0; padding: 10px 12px !important; }
  .v3-title { font-size: clamp(34px, 9vw, 52px) !important; }
  .v3-meta { grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 48px; }
  .v3-gallery { grid-template-columns: 1fr; gap: 10px; margin-bottom: 48px; }
  .v3-gallery-frame.lead,
  .v3-gallery-frame.half,
  .v3-gallery-frame.third { grid-column: span 1; }
  .v3-gallery-frame.lead img { aspect-ratio: 4 / 3; }
  .v3-highlight-inner { padding: 22px 22px; }
  .v3-highlight-text { font-size: 17px; }
  .v3-body { font-size: 16px; margin-bottom: 48px; }
  .v3-ctas { flex-direction: column; align-items: stretch; }
  .v3-btn { justify-content: space-between; }
}

/* All button text white — override variant defaults */
.btn,
.btn-primary,
.btn-outline,
.btn-outline-yellow,
.nav-score-btn,
.filter-pill,
.btn *,
.nav-score-btn *,
.filter-pill * { color: #ffffff !important; }
.btn svg, .nav-score-btn svg, .filter-pill svg { stroke: #ffffff !important; fill: currentColor; }
.btn:hover, .btn-primary:hover, .btn-outline:hover, .btn-outline-yellow:hover,
.nav-score-btn:hover, .filter-pill:hover { color: #ffffff !important; }
/* Outline buttons need a visible background so white text reads */
.btn-outline { background: var(--ink) !important; border-color: var(--ink) !important; }
.btn-outline:hover { background: var(--accent-ink) !important; border-color: var(--accent-ink) !important; }
.filter-pill { background: var(--ink) !important; border-color: var(--ink) !important; }
.filter-pill.active { background: var(--accent) !important; border-color: var(--accent) !important; }

/* Stop horizontal overflow without breaking position:sticky.
   overflow-x: hidden on ancestors disables sticky — use overflow-x: clip instead. */
html { max-width: 100vw; }
body { overflow-x: clip; max-width: 100vw; }
img, video, iframe, canvas { max-width: 100%; height: auto; }

/* Demo canvases — keep them within viewport on mobile */
@media (max-width: 768px) {
  .demo-card canvas,
  #agora-canvas,
  #hand-canvas,
  #physics-canvas { width: 100% !important; height: auto !important; aspect-ratio: 16 / 10; }
  .demo-card { padding: 20px !important; }
}

/* CV / brand-identity page — make wide tables scroll instead of overflow */
@media (max-width: 768px) {
  .swatch-row,
  .voice-grid,
  .platform-grid,
  .platform-grid.two,
  .platform-grid.three { grid-template-columns: 1fr !important; }
  .do-dont { grid-template-columns: 1fr !important; }
}


/* ═══════════════════════════════════════════════════════════
   CHUNK A · HOME PAGE UPGRADE (Soft Structuralism vibe)
   Editorial marquee · Doppelrand work cards · Z-axis cascade
   Magnetic CTAs · Refined footer
   ═══════════════════════════════════════════════════════════ */

/* — Marquee: less corporate strip, more editorial ribbon — */
.marquee-wrap {
  background: var(--paper) !important;
  border-top: 1px solid oklch(0.16 0.012 260 / 0.08) !important;
  border-bottom: 1px solid oklch(0.16 0.012 260 / 0.08) !important;
  padding: 28px 0 !important;
  position: relative;
  overflow: hidden;
}
.marquee-wrap::before,
.marquee-wrap::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 120px;
  z-index: 2; pointer-events: none;
}
.marquee-wrap::before { left: 0; background: linear-gradient(90deg, var(--paper) 0%, transparent 100%); }
.marquee-wrap::after  { right: 0; background: linear-gradient(270deg, var(--paper) 0%, transparent 100%); }
.marquee-track span {
  font-family: var(--sans) !important;
  font-weight: 500 !important;
  font-size: clamp(28px, 4vw, 44px) !important;
  letter-spacing: -0.025em !important;
  color: var(--ink) !important;
  margin: 0 28px !important;
  text-transform: none !important;
  transition: color 600ms cubic-bezier(0.32, 0.72, 0, 1);
}
.marquee-track span:nth-child(3n+2) {
  font-family: var(--serif) !important;
  font-style: italic !important;
  font-weight: 400 !important;
  color: var(--accent) !important;
}
.marquee-track span:hover { color: var(--accent); }

/* — Work cards: Doppelrand framing + lift on hover — */
.work-grid .work-card {
  border-radius: 22px !important;
  overflow: hidden !important;
  box-shadow:
    0 0 0 1px oklch(0.16 0.012 260 / 0.06),
    0 1px 2px oklch(0.16 0.012 260 / 0.04),
    0 12px 32px -16px oklch(0.16 0.012 260 / 0.12) !important;
  transition:
    transform 700ms cubic-bezier(0.32, 0.72, 0, 1),
    box-shadow 700ms cubic-bezier(0.32, 0.72, 0, 1) !important;
  background: var(--paper);
  position: relative;
}
.work-grid .work-card:hover {
  transform: translateY(-6px) !important;
  box-shadow:
    0 0 0 1px oklch(0.16 0.012 260 / 0.1),
    0 1px 2px oklch(0.16 0.012 260 / 0.04),
    0 32px 64px -16px oklch(0.16 0.012 260 / 0.22) !important;
}
.work-grid .work-card .card-img,
.work-grid .work-card img {
  transition: transform 1200ms cubic-bezier(0.32, 0.72, 0, 1) !important;
}
.work-grid .work-card:hover .card-img,
.work-grid .work-card:hover img {
  transform: scale(1.03) !important;
}

/* — Work-section header: tighter editorial pairing — */
.work-section { padding: clamp(72px, 10vw, 140px) var(--pad-x) !important; }
.work-section .work-header h2 {
  font-family: var(--sans) !important;
  font-weight: 600 !important;
  font-size: clamp(48px, 7vw, 96px) !important;
  letter-spacing: -0.045em !important;
  line-height: 0.95 !important;
  text-transform: none !important;
  color: var(--ink);
}

/* — Section labels: refined chip style — */
.section-label {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  font-family: var(--mono) !important;
  font-size: 10px !important;
  letter-spacing: 0.24em !important;
  text-transform: uppercase !important;
  color: var(--n-600) !important;
}
.section-label .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff !important;
  font-size: 9px;
  letter-spacing: 0 !important;
}

/* — Discipline split refresh — */
.discipline-split {
  background: var(--paper) !important;
  color: var(--ink) !important;
}
.discipline-col h2 {
  font-family: var(--sans) !important;
  font-weight: 600 !important;
  font-size: clamp(40px, 5.6vw, 72px) !important;
  letter-spacing: -0.04em !important;
  line-height: 0.96 !important;
  text-transform: none !important;
  color: var(--ink);
  margin-top: 24px;
}
.discipline-col-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: oklch(0.16 0.012 260 / 0.05) !important;
  color: var(--ink) !important;
  border: none !important;
}
.discipline-col-tag::before { display: none !important; }
.discipline-col-tag.marketing { background: var(--accent) !important; color: var(--paper) !important; }
.discipline-list li {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: -0.005em;
  line-height: 1.55;
  color: var(--n-700);
  padding: 14px 0 !important;
  border-bottom: 1px solid oklch(0.16 0.012 260 / 0.06) !important;
}
.discipline-list li:last-child { border-bottom: none !important; }

/* — Stats strip: glass island with concentric structure — */
.stats-strip {
  background: var(--paper) !important;
  margin: clamp(72px, 10vw, 120px) clamp(20px, 4vw, 56px) !important;
  border-radius: 28px !important;
  padding: 8px !important;
  box-shadow:
    inset 0 0 0 1px oklch(0.16 0.012 260 / 0.06),
    0 1px 2px oklch(0.16 0.012 260 / 0.04),
    0 24px 64px -24px oklch(0.16 0.012 260 / 0.18) !important;
  position: relative;
  overflow: hidden;
}
.stats-strip::before {
  content: '';
  position: absolute; inset: 8px;
  border-radius: 20px;
  background: linear-gradient(135deg, oklch(0.985 0.003 260) 0%, oklch(0.93 0.04 265 / 0.18) 100%);
  pointer-events: none;
  z-index: 0;
}
.stats-strip .stat-item {
  position: relative; z-index: 1;
  border: none !important;
  padding: 32px 24px !important;
}
.stats-strip .stat-item:not(:last-child) {
  box-shadow: inset -1px 0 0 oklch(0.16 0.012 260 / 0.08);
}
.stats-strip .stat-num {
  font-family: var(--sans) !important;
  font-weight: 600 !important;
  font-size: clamp(38px, 4.8vw, 58px) !important;
  letter-spacing: -0.04em !important;
  color: var(--ink) !important;
  line-height: 1 !important;
  margin-bottom: 8px !important;
}
.stats-strip .stat-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--n-600);
  line-height: 1.5;
}

/* — About teaser: Z-axis cascade (two slightly offset blocks) — */
.about-teaser {
  background: var(--paper) !important;
  padding: clamp(96px, 14vw, 160px) clamp(24px, 5vw, 96px) !important;
  position: relative;
}
.about-teaser-left h2 {
  font-family: var(--sans) !important;
  font-weight: 600 !important;
  font-size: clamp(56px, 8vw, 120px) !important;
  letter-spacing: -0.05em !important;
  line-height: 0.92 !important;
  text-transform: none !important;
  color: var(--ink) !important;
}
.about-teaser-right {
  position: relative;
  padding: 32px 32px 32px;
  background: var(--paper);
  border-radius: 22px;
  box-shadow:
    inset 0 0 0 1px oklch(0.16 0.012 260 / 0.07),
    0 12px 32px -16px oklch(0.16 0.012 260 / 0.16);
}
.about-teaser-right::before {
  content: '';
  position: absolute;
  inset: -10px -10px auto auto;
  width: 100%; height: 100%;
  border-radius: 22px;
  background: oklch(0.42 0.21 265 / 0.05);
  box-shadow: inset 0 0 0 1px oklch(0.42 0.21 265 / 0.18);
  z-index: -1;
  transform: rotate(2deg);
}
.about-teaser-right p {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: -0.005em;
  color: var(--n-800);
  margin-bottom: 20px;
}
.about-teaser-right p:last-child { margin-bottom: 0; }
.about-teaser-right p strong { color: var(--ink); font-weight: 500; }
.about-teaser-right p em {
  font-style: italic;
  color: var(--accent-ink);
}
@media (max-width: 768px) {
  .about-teaser-right::before { display: none; }
}

/* — Contact CTA section: massive outlined headline framed by a soft box — */
main > section:last-of-type {
  background: var(--paper) !important;
}
main > section:last-of-type h2 {
  font-family: var(--sans) !important;
  font-weight: 600 !important;
  font-size: clamp(64px, 11vw, 168px) !important;
  letter-spacing: -0.055em !important;
  line-height: 0.9 !important;
  text-transform: none !important;
  color: var(--ink) !important;
}

/* — Footer polish: minimal, refined, breathing — */
.footer {
  background: var(--ink) !important;
  color: oklch(1 0 0 / 0.7) !important;
  padding: clamp(56px, 8vw, 96px) clamp(24px, 5vw, 56px) !important;
  border-top: none !important;
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  gap: 24px !important;
}
.footer-logo {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.04em;
  color: var(--paper) !important;
}
.footer-logo span { color: var(--accent); }
.footer-copy {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: oklch(1 0 0 / 0.5);
  text-align: center;
  margin: 0;
}
.footer-socials {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.footer-socials a {
  color: oklch(1 0 0 / 0.7) !important;
  text-decoration: none;
  transition: color 300ms cubic-bezier(0.32, 0.72, 0, 1);
}
.footer-socials a:hover { color: var(--paper) !important; }
@media (max-width: 768px) {
  .footer {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
  .footer-socials { justify-content: center; }
}

/* — Hero CTA buttons: magnetic micro-physics — */
.hero-bottom-centered .btn,
.hero-cta .btn {
  transition: transform 400ms cubic-bezier(0.32, 0.72, 0, 1), background 400ms cubic-bezier(0.32, 0.72, 0, 1), box-shadow 400ms cubic-bezier(0.32, 0.72, 0, 1) !important;
}
.hero-bottom-centered .btn:hover,
.hero-cta .btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -8px oklch(0.16 0.012 260 / 0.3); }
.hero-bottom-centered .btn:active,
.hero-cta .btn:active { transform: scale(0.98); }

/* — Reveal enhancement: blur-fade on intersection — */
.reveal {
  filter: blur(4px);
  transform: translateY(40px);
  opacity: 0;
  transition:
    opacity 1000ms cubic-bezier(0.32, 0.72, 0, 1),
    transform 1000ms cubic-bezier(0.32, 0.72, 0, 1),
    filter 1000ms cubic-bezier(0.32, 0.72, 0, 1);
}
.reveal.visible,
.reveal.in-view {
  filter: blur(0);
  transform: translateY(0);
  opacity: 1;
}
.reveal-delay-1 { transition-delay: 120ms; }
.reveal-delay-2 { transition-delay: 220ms; }
.reveal-delay-3 { transition-delay: 320ms; }
.reveal-delay-4 { transition-delay: 420ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .work-grid .work-card, .marquee-track span { transition: opacity 200ms ease !important; filter: none !important; transform: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   CHUNK C · STANDALONE CASE STUDY PAGES UPGRADE
   Aperol: Ethereal Glass · OLED dark + mesh gradients
   Brand-Identity: Editorial Luxury (already on cream)
   ═══════════════════════════════════════════════════════════ */

/* — Aperol page Ethereal Glass treatment — */
body.ap-page,
body:has(.ap-hero) {
  background: #050505 !important;
  color: oklch(0.92 0.005 260) !important;
}
body:has(.ap-hero)::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 800px 600px at 20% 10%, oklch(0.42 0.21 28 / 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 600px 800px at 90% 80%, oklch(0.55 0.22 262 / 0.14) 0%, transparent 60%),
    radial-gradient(ellipse 1000px 400px at 50% 50%, oklch(0.5 0.18 35 / 0.08) 0%, transparent 70%);
  pointer-events: none;
}
body:has(.ap-hero) main { position: relative; z-index: 1; }
body:has(.ap-hero) .nav { background: oklch(0 0 0 / 0.4) !important; backdrop-filter: blur(20px) saturate(140%); }
body:has(.ap-hero) .nav a,
body:has(.ap-hero) .nav-tag,
body:has(.ap-hero) .nav-logo { color: oklch(0.92 0.005 260) !important; }
body:has(.ap-hero) .nav-logo span,
body:has(.ap-hero) .nav-score-btn { background: linear-gradient(135deg, #E55D34 0%, #C84A26 100%) !important; color: #fff !important; }

.ap-hero {
  background: transparent !important;
  color: oklch(0.92 0.005 260) !important;
  padding: clamp(80px, 14vw, 180px) clamp(24px, 5vw, 80px) clamp(56px, 8vw, 96px) !important;
}
.ap-section {
  background: transparent !important;
  color: oklch(0.92 0.005 260) !important;
  padding: clamp(64px, 9vw, 120px) clamp(24px, 5vw, 80px) !important;
}
.ap-section--orange { background: linear-gradient(135deg, oklch(0.55 0.2 28 / 0.95) 0%, oklch(0.45 0.18 25 / 0.95) 100%) !important; }
.ap-section--dark {
  background: oklch(0 0 0 / 0.4) !important;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-radius: 22px;
  margin: 24px clamp(20px, 4vw, 56px);
  box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.06);
}
.ap-section h2, .ap-section h3,
.ap-hero h1, .ap-hero h2 {
  color: oklch(0.96 0.003 260) !important;
}
.ap-section p, .ap-hero p { color: oklch(0.78 0.008 260); }
.ap-section a:not(.btn), .ap-hero a:not(.btn) { color: oklch(0.7 0.18 28) !important; }

/* — Brand-identity Editorial Luxury polish — */
body:has(.bi-cover),
.bi-page {
  background: var(--paper) !important;
  color: var(--ink) !important;
}
.brand-identity-system .swatch-row,
.brand-identity-system .platform-grid {
  border-radius: 22px !important;
  padding: 6px !important;
  background: oklch(0.16 0.012 260 / 0.04) !important;
  box-shadow: inset 0 0 0 1px oklch(0.16 0.012 260 / 0.06) !important;
}

/* Universal: section padding inflation on long-form case studies */
.bi-section, .ap-section { transition: background 600ms cubic-bezier(0.32, 0.72, 0, 1); }

/* ═══════════════════════════════════════════════════════════
   CHUNK D · DEMOS + GALLERY UPGRADE
   Demos: Doppelrand frames, pulse status, magnetic CTAs
   Gallery: True masonry · Z-axis hover · lazy
   ═══════════════════════════════════════════════════════════ */

/* — Demo tiles → Doppelrand framing — */
.demo-tile {
  position: relative;
  padding: 8px !important;
  background: oklch(0.16 0.012 260 / 0.04) !important;
  border-radius: 26px !important;
  border: none !important;
  box-shadow:
    inset 0 0 0 1px oklch(0.16 0.012 260 / 0.06),
    0 1px 2px oklch(0.16 0.012 260 / 0.04),
    0 16px 40px -20px oklch(0.16 0.012 260 / 0.15) !important;
  transition:
    transform 700ms cubic-bezier(0.32, 0.72, 0, 1),
    box-shadow 700ms cubic-bezier(0.32, 0.72, 0, 1) !important;
  overflow: hidden !important;
}
.demo-tile:hover {
  transform: translateY(-6px);
  box-shadow:
    inset 0 0 0 1px oklch(0.16 0.012 260 / 0.1),
    0 32px 64px -20px oklch(0.16 0.012 260 / 0.28) !important;
}
.demo-tile > * {
  border-radius: calc(26px - 8px);
}
.demo-tile-bg {
  position: relative !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  background: linear-gradient(180deg, oklch(0.16 0.012 260) 0%, oklch(0.22 0.05 265) 100%) !important;
}
.demo-tile-num {
  font-family: var(--mono) !important;
  font-size: 10px !important;
  letter-spacing: 0.24em !important;
  color: oklch(1 0 0 / 0.55) !important;
}
.demo-tile-num::before {
  content: '●';
  display: inline-block;
  margin-right: 8px;
  color: #50C878;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}
.demo-tile-title {
  font-family: var(--sans) !important;
  font-weight: 600 !important;
  font-size: clamp(28px, 3.6vw, 44px) !important;
  letter-spacing: -0.035em !important;
  line-height: 1 !important;
  color: oklch(1 0 0 / 0.95) !important;
  text-transform: none !important;
}
.demo-tile-desc {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  color: oklch(1 0 0 / 0.7);
  margin-top: 12px;
}
.demo-tile-cta {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 8px 8px 18px !important;
  font-family: var(--mono) !important;
  font-size: 10px !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  background: oklch(1 0 0 / 0.1) !important;
  color: oklch(1 0 0 / 0.95) !important;
  border-radius: 999px !important;
  border: none !important;
  transition: all 400ms cubic-bezier(0.32, 0.72, 0, 1) !important;
}
.demo-tile-cta::after {
  content: '↗';
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 24px; height: 24px;
  border-radius: 999px;
  background: oklch(1 0 0 / 0.14);
  transition: transform 400ms cubic-bezier(0.32, 0.72, 0, 1);
}
.demo-tile-cta:hover { background: var(--accent) !important; }
.demo-tile-cta:hover::after { transform: translateX(2px) translateY(-1px); background: oklch(1 0 0 / 0.25); }

.demo-tile-tag {
  font-family: var(--mono) !important;
  font-size: 9px !important;
  letter-spacing: 0.22em !important;
  color: oklch(1 0 0 / 0.6) !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  background: oklch(1 0 0 / 0.07) !important;
  border: none !important;
}

/* — Gallery: masonry-style with hover lift — */
.gallery-grid {
  column-count: 3 !important;
  column-gap: 12px !important;
  display: block !important;
  padding: clamp(20px, 4vw, 56px) !important;
}
@media (max-width: 980px) { .gallery-grid { column-count: 2 !important; } }
@media (max-width: 600px) { .gallery-grid { column-count: 1 !important; } }
.gallery-item {
  break-inside: avoid !important;
  margin-bottom: 12px !important;
  display: block !important;
  position: relative !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  padding: 6px !important;
  background: oklch(0.16 0.012 260 / 0.05);
  box-shadow:
    inset 0 0 0 1px oklch(0.16 0.012 260 / 0.06),
    0 1px 2px oklch(0.16 0.012 260 / 0.04) !important;
  transition:
    transform 700ms cubic-bezier(0.32, 0.72, 0, 1),
    box-shadow 700ms cubic-bezier(0.32, 0.72, 0, 1) !important;
  aspect-ratio: auto !important;
  height: auto !important;
}
.gallery-item.tall { aspect-ratio: auto !important; }
.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow:
    inset 0 0 0 1px oklch(0.16 0.012 260 / 0.12),
    0 32px 64px -16px oklch(0.16 0.012 260 / 0.22) !important;
}
.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  transition: transform 1200ms cubic-bezier(0.32, 0.72, 0, 1);
}
.gallery-item:hover img { transform: scale(1.025); }
.gallery-item-overlay {
  position: absolute !important;
  inset: 6px !important;
  border-radius: 14px !important;
  background: linear-gradient(0deg, oklch(0 0 0 / 0.8) 0%, oklch(0 0 0 / 0) 60%) !important;
  display: flex !important;
  align-items: flex-end !important;
  padding: 20px !important;
  opacity: 0;
  transition: opacity 500ms cubic-bezier(0.32, 0.72, 0, 1);
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16px;
  color: var(--paper);
  letter-spacing: -0.01em;
}
.gallery-item-cat {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: oklch(1 0 0 / 0.65);
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════
   CHUNK B · ABOUT + CONTACT UPGRADE (Soft Structuralism)
   About: editorial split, refined timeline, glass cards
   Contact: Doppelrand form inputs, magnetic submit
   ═══════════════════════════════════════════════════════════ */

/* — About hero refresh — */
.about-hero {
  padding: clamp(96px, 14vw, 180px) clamp(24px, 5vw, 80px) clamp(64px, 9vw, 120px) !important;
}
.about-hero h1 {
  font-family: var(--sans) !important;
  font-weight: 600 !important;
  font-size: clamp(72px, 12vw, 180px) !important;
  letter-spacing: -0.055em !important;
  line-height: 0.88 !important;
  text-transform: none !important;
  color: var(--ink) !important;
}
.about-hero h1 .line-grey { color: var(--n-500) !important; }
.about-bio {
  padding: clamp(64px, 9vw, 120px) clamp(24px, 5vw, 80px) !important;
}
.about-bio-intro {
  font-family: var(--serif) !important;
  font-style: italic !important;
  font-weight: 400 !important;
  font-size: clamp(22px, 2.6vw, 32px) !important;
  letter-spacing: -0.015em !important;
  line-height: 1.4 !important;
  color: var(--ink) !important;
  margin-bottom: 56px !important;
  max-width: 26ch;
}
.about-bio-text p {
  font-family: var(--serif) !important;
  font-weight: 400 !important;
  font-size: 17px !important;
  line-height: 1.7 !important;
  letter-spacing: -0.005em !important;
  color: var(--n-800) !important;
  margin-bottom: 20px !important;
  max-width: 62ch;
}
.about-bio-text p strong { color: var(--ink); font-weight: 500; }
.about-bio-text p em { font-style: italic; color: var(--accent-ink); }

/* — Achievements grid: glass islands — */
.achievements,
.achievements-grid {
  padding: clamp(64px, 9vw, 120px) clamp(24px, 5vw, 80px) !important;
}
.achievement-card {
  padding: 8px !important;
  background: oklch(0.16 0.012 260 / 0.04) !important;
  border-radius: 22px !important;
  border: none !important;
  box-shadow: inset 0 0 0 1px oklch(0.16 0.012 260 / 0.06) !important;
  transition: transform 600ms cubic-bezier(0.32, 0.72, 0, 1), box-shadow 600ms cubic-bezier(0.32, 0.72, 0, 1) !important;
}
.achievement-card:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 0 0 1px oklch(0.16 0.012 260 / 0.1),
    0 24px 56px -16px oklch(0.16 0.012 260 / 0.2) !important;
}
.achievement-card > * { padding-left: 16px; padding-right: 16px; }
.achievement-num {
  font-family: var(--sans) !important;
  font-weight: 600 !important;
  font-size: clamp(36px, 4.4vw, 52px) !important;
  letter-spacing: -0.04em !important;
  color: var(--ink) !important;
  padding-top: 16px !important;
}
.achievement-title { color: var(--ink) !important; }
.achievement-desc { color: var(--n-700); }

/* — Timeline rebuild: vertical line with year markers — */
.timeline-section { padding: clamp(80px, 11vw, 140px) clamp(24px, 5vw, 80px) !important; }
.timeline-section h2 {
  font-family: var(--sans) !important;
  font-weight: 600 !important;
  font-size: clamp(48px, 7vw, 96px) !important;
  letter-spacing: -0.045em !important;
  line-height: 0.95 !important;
  text-transform: none !important;
  color: var(--ink);
  margin-bottom: 56px;
}
@media (min-width: 769px) {
  .timeline { padding-left: 220px !important; }
  .timeline::before {
    left: 180px !important;
    background: linear-gradient(180deg, transparent 0%, oklch(0.16 0.012 260 / 0.15) 8%, oklch(0.16 0.012 260 / 0.15) 92%, transparent 100%) !important;
  }
  .timeline-year {
    left: -220px !important;
    width: 140px !important;
    font-family: var(--mono) !important;
    font-size: 11px !important;
    letter-spacing: 0.2em !important;
    color: var(--accent) !important;
    top: 32px !important;
  }
  .timeline-item::before {
    left: -50px !important;
    width: 12px !important;
    height: 12px !important;
    background: var(--accent) !important;
    box-shadow: 0 0 0 6px oklch(0.42 0.21 265 / 0.12) !important;
    border: 2px solid var(--paper) !important;
  }
}
.timeline-item { padding: 32px 0 !important; border-bottom: 1px solid oklch(0.16 0.012 260 / 0.08) !important; }
.timeline-role {
  font-family: var(--sans) !important;
  font-weight: 500 !important;
  font-size: clamp(18px, 2vw, 22px) !important;
  letter-spacing: -0.015em !important;
  color: var(--ink) !important;
}
.timeline-company {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--n-500);
  margin-top: 4px;
}
.timeline-desc {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--n-700);
  margin-top: 12px;
  max-width: 60ch;
}

/* — Certifications: nested cards — */
.certs-section { padding: clamp(64px, 9vw, 120px) clamp(24px, 5vw, 80px) !important; }
.cert-card {
  padding: 6px !important;
  background: oklch(0.16 0.012 260 / 0.04) !important;
  border-radius: 18px !important;
  border: none !important;
  box-shadow: inset 0 0 0 1px oklch(0.16 0.012 260 / 0.06) !important;
  transition: transform 500ms cubic-bezier(0.32, 0.72, 0, 1) !important;
}
.cert-card:hover { transform: translateY(-3px); }
.cert-card > * { padding: 0 14px; }
.cert-card > *:first-child { padding-top: 16px; }
.cert-card > *:last-child { padding-bottom: 16px; }
.cert-name { color: var(--ink); font-family: var(--sans); font-weight: 500; }
.cert-issuer { color: var(--n-600); font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; }
.cert-year { color: var(--accent); font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; }

/* — Contact page polish — */
.contact-hero {
  padding: clamp(96px, 14vw, 180px) clamp(24px, 5vw, 80px) clamp(64px, 9vw, 100px) !important;
}
.contact-hero h1 {
  font-family: var(--sans) !important;
  font-weight: 600 !important;
  font-size: clamp(64px, 10vw, 144px) !important;
  letter-spacing: -0.05em !important;
  line-height: 0.92 !important;
  text-transform: none !important;
  color: var(--ink) !important;
}
.contact-hero h1 .outline {
  -webkit-text-stroke: 2px var(--ink);
  color: transparent;
}
.contact-body { padding: clamp(48px, 7vw, 80px) clamp(24px, 5vw, 80px) clamp(96px, 12vw, 144px) !important; }

/* Doppelrand form inputs */
.contact-form .form-group {
  position: relative;
  padding: 4px !important;
  background: oklch(0.16 0.012 260 / 0.04);
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px oklch(0.16 0.012 260 / 0.06);
  margin-bottom: 16px !important;
  transition: box-shadow 400ms cubic-bezier(0.32, 0.72, 0, 1), background 400ms cubic-bezier(0.32, 0.72, 0, 1);
}
.contact-form .form-group:focus-within {
  background: oklch(0.42 0.21 265 / 0.06);
  box-shadow:
    inset 0 0 0 1px var(--accent),
    0 0 0 4px oklch(0.42 0.21 265 / 0.12);
}
.contact-form .form-group label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--n-600);
  padding: 10px 14px 2px;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  background: var(--paper) !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  font-family: var(--sans) !important;
  font-size: 16px !important;
  color: var(--ink) !important;
  width: 100% !important;
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.5) !important;
  outline: none !important;
}
.contact-form input:focus,
.contact-form textarea:focus { box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.7), 0 1px 2px oklch(0.16 0.012 260 / 0.04) !important; }
.contact-form button[type=submit],
.contact-form .btn-primary {
  padding: 12px 12px 12px 28px !important;
  border-radius: 999px !important;
  font-family: var(--mono) !important;
  font-size: 11px !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  background: var(--ink) !important;
  color: var(--paper) !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: all 400ms cubic-bezier(0.32, 0.72, 0, 1) !important;
}
.contact-form button[type=submit]:hover {
  background: var(--accent) !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px oklch(0.42 0.21 265 / 0.45);
}

/* Availability + alternative contact channels */
.contact-availability {
  padding: 8px !important;
  background: oklch(0.16 0.012 260 / 0.04) !important;
  border-radius: 22px !important;
  box-shadow: inset 0 0 0 1px oklch(0.16 0.012 260 / 0.06) !important;
  margin-bottom: 24px;
}
.contact-availability-dot {
  width: 10px; height: 10px;
  background: #50C878 !important;
  box-shadow: 0 0 0 4px oklch(0.7 0.18 145 / 0.2);
  animation: pulse 2s ease-in-out infinite;
}
.contact-detail {
  padding: 16px !important;
  background: oklch(0.16 0.012 260 / 0.03);
  border-radius: 16px;
  margin-bottom: 8px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
}

/* ═══════════════════════════════════════════════════════════
   CHUNK E · BLOG UPGRADE
   Editorial Luxury · long-form reading template
   Editorial index list · hover preview · Newsreader prose
   ═══════════════════════════════════════════════════════════ */

/* — Blog hero — */
.blog-hero {
  padding: clamp(96px, 14vw, 180px) clamp(24px, 5vw, 80px) clamp(48px, 7vw, 80px) !important;
}
.blog-hero h1 {
  font-family: var(--sans) !important;
  font-weight: 600 !important;
  font-size: clamp(64px, 10vw, 160px) !important;
  letter-spacing: -0.05em !important;
  line-height: 0.9 !important;
  text-transform: none !important;
  color: var(--ink) !important;
}

/* — Blog index rows: refined editorial list — */
.blog-list {
  padding: 0 clamp(24px, 5vw, 80px) clamp(96px, 12vw, 144px) !important;
}
.blog-row {
  display: grid !important;
  grid-template-columns: 88px 1fr auto !important;
  gap: 24px !important;
  padding: 28px 12px !important;
  border-bottom: 1px solid oklch(0.16 0.012 260 / 0.08) !important;
  transition: padding-left 500ms cubic-bezier(0.32, 0.72, 0, 1), background 500ms cubic-bezier(0.32, 0.72, 0, 1) !important;
  border-radius: 10px;
  position: relative;
}
.blog-row::before { display: none !important; }
.blog-row:hover {
  padding-left: 28px !important;
  background: oklch(0.42 0.21 265 / 0.03);
}
.blog-row-date {
  font-family: var(--mono) !important;
  font-size: 10px !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  color: var(--n-500) !important;
}
.blog-row-tag {
  font-family: var(--mono) !important;
  font-size: 10px !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  color: var(--accent) !important;
  margin-bottom: 8px !important;
}
.blog-row-title {
  font-family: var(--sans) !important;
  font-weight: 500 !important;
  font-size: clamp(22px, 2.8vw, 36px) !important;
  letter-spacing: -0.025em !important;
  line-height: 1.18 !important;
  color: var(--ink) !important;
  text-transform: none !important;
}
.blog-row-excerpt {
  font-family: var(--serif) !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  color: var(--n-700) !important;
  margin-top: 10px !important;
}
.blog-row-cta {
  font-family: var(--mono) !important;
  font-size: 10px !important;
  letter-spacing: 0.24em !important;
  text-transform: uppercase !important;
  color: var(--n-500) !important;
  align-self: center !important;
}
.blog-row:hover .blog-row-cta { color: var(--accent) !important; transform: translateX(4px); }
@media (max-width: 760px) {
  .blog-row { grid-template-columns: 80px 1fr !important; }
  .blog-row-cta { display: none; }
}

/* — Blog post reading template — */
.post-hero {
  padding: clamp(96px, 14vw, 180px) clamp(24px, 5vw, 80px) clamp(48px, 7vw, 72px) !important;
  max-width: 880px;
  margin: 0 auto;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--n-500);
}
.post-tag {
  padding: 4px 12px;
  border-radius: 999px;
  background: oklch(0.42 0.21 265 / 0.08);
  color: var(--accent) !important;
}
.post-title {
  font-family: var(--sans) !important;
  font-weight: 600 !important;
  font-size: clamp(40px, 6vw, 80px) !important;
  letter-spacing: -0.04em !important;
  line-height: 0.96 !important;
  text-transform: none !important;
  color: var(--ink) !important;
  margin: 0 0 24px !important;
}
.post-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px) clamp(96px, 12vw, 144px) !important;
  font-family: var(--serif) !important;
  font-weight: 400;
  font-size: 18px !important;
  line-height: 1.75 !important;
  letter-spacing: -0.005em !important;
  color: var(--n-800) !important;
}
.post-body p { margin: 0 0 22px !important; }
.post-body p:first-of-type::first-letter {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 4em;
  line-height: 0.85;
  float: left;
  margin: 6px 14px 0 0;
  color: var(--accent);
}
.post-body p strong { color: var(--ink); font-weight: 500; }
.post-body p em { color: var(--accent-ink); }
.post-body h2,
.post-body h3 {
  font-family: var(--sans) !important;
  font-weight: 600 !important;
  font-style: normal !important;
  letter-spacing: -0.02em !important;
  color: var(--ink) !important;
  text-transform: none !important;
  margin: 48px 0 16px !important;
}
.post-body h2 { font-size: clamp(28px, 3.2vw, 40px) !important; }
.post-body h3 { font-size: clamp(22px, 2.4vw, 28px) !important; }
.post-body blockquote {
  margin: 32px 0 !important;
  padding: 28px 32px !important;
  border-left: none !important;
  background: var(--ink) !important;
  color: var(--paper) !important;
  border-radius: 22px !important;
  font-family: var(--sans) !important;
  font-style: normal !important;
  font-weight: 500 !important;
  font-size: clamp(20px, 2.4vw, 28px) !important;
  letter-spacing: -0.02em !important;
  line-height: 1.4 !important;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px -20px oklch(0.16 0.012 260 / 0.4);
}
.post-body blockquote::before {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 50%; height: 160%;
  background: radial-gradient(ellipse at center, oklch(0.42 0.21 265 / 0.3) 0%, transparent 70%);
  pointer-events: none;
}
.post-body img {
  display: block;
  width: 100%;
  height: auto;
  margin: 32px 0;
  padding: 6px;
  background: oklch(0.16 0.012 260 / 0.04);
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px oklch(0.16 0.012 260 / 0.06);
}
.post-body a {
  color: var(--accent-ink) !important;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.post-body a:hover { color: var(--accent) !important; }
.post-body ul, .post-body ol { padding-left: 24px; margin: 16px 0 22px; }
.post-body li { margin-bottom: 8px; line-height: 1.7; }

.post-nav {
  max-width: 720px;
  margin: 0 auto 64px !important;
  padding: 0 clamp(24px, 5vw, 80px) !important;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.post-nav a {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink) !important;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 999px;
  background: oklch(0.16 0.012 260 / 0.05);
  transition: all 400ms cubic-bezier(0.32, 0.72, 0, 1);
}
.post-nav a:hover { background: var(--ink); color: var(--paper) !important; }

/* ═══════════════════════════════════════════════════════════
   POST-CHUNK FIXES (2026-05-27 23:55)
   - Cursor visibility on dark surfaces (footer, dark sections)
   - Marquee scale + animation stability
   ═══════════════════════════════════════════════════════════ */



/* Marquee — pull back to readable scale + lock animation smoothness */
.marquee-track {
  will-change: transform;
  animation: marquee 36s linear infinite !important;
}
.marquee-track span {
  font-size: clamp(18px, 2.8vw, 28px) !important;
  margin: 0 22px !important;
  flex-shrink: 0;
}
.marquee-wrap {
  padding: 22px 0 !important;
  contain: paint;
}
.marquee-track span:hover {
  transition: none !important;
  color: var(--accent) !important;
}

/* KILL legacy cursor system — replaced by .mag-cursor in cursor.js */
.cursor-dot, .cursor-ring { display: none !important; }

/* "More from this project" gallery label */
.v3-gallery.v3-gallery-rest { margin-top: 64px; }
.v3-gallery.v3-gallery-rest .v3-rest-label {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--n-600);
  padding: 8px 0 16px;
  border-top: 1px solid oklch(0.16 0.012 260 / 0.08);
  margin-bottom: 4px;
}
.v3-gallery.v3-gallery-lead {
  margin-bottom: 48px;
}

/* Ambient floating icons — drift in the TRUE background, peek through translucent sections */
#ambientFloat {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}
html, body { background: var(--paper); }
/* Page sections get slightly translucent paper so icons peek through subtly */
.hero, .hero-loop-section, .work-section, .discipline-split,
.about-teaser, .stats-strip, .marquee-wrap, .skills-bounce,
main > section:not(.hero-stage-1):not(.shutter-transition):not(.hero-stage-3) {
  background-color: oklch(0.975 0.003 260 / 0.82) !important;
}
/* Stage 1 stays clean paper (no translucent dilution), Stage 3 stays solid ink, shutter stays paper */
.hero-stage-1 { background-color: var(--paper) !important; }
.hero-stage-3 { background-color: var(--ink) !important; }
.shutter-transition { background-color: var(--paper) !important; }
/* Nav, footer, panels stay solid */
.nav { background: oklch(0.975 0.003 260 / 0.85) !important; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.footer { background: var(--ink) !important; }
/* Z-index stacking only — DON'T override position on nav/panel/backdrop.
   nav is position:fixed in styles.css, panel/backdrop are position:fixed too.
   Overriding these to relative breaks layout (causes double top space) and panel visibility. */
main, footer { position: relative; z-index: 1; }
.nav { z-index: 1000; }   /* keep z-index high, but DON'T change position */
.project-panel { z-index: 2001; }
.panel-backdrop { z-index: 2000; }

/* ═══════════════════════════════════════════════════════════
   HERO EXPERIENCE v2 — Nav fixed, experience pinned in viewport
   Single sticky pin holds three stacked layers below the nav.
   Scroll progress 0..1 through the section drives the louvre flip
   and the cross-fade. After progress=1, page continues normally.
   ═══════════════════════════════════════════════════════════ */

/* Nav fixed at top so it stays through the choreography */
:root { --nav-height: 72px; }
.nav {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 1500;
  height: var(--nav-height);
  background: oklch(0.975 0.003 260 / 0.88) !important;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}
/* Push the page content down by nav height (so first section isn't hidden behind nav) */
main { padding-top: var(--nav-height); }

/* Skip-link should land below nav too */
#main { scroll-margin-top: var(--nav-height); }

/* Hero experience — scroll spacer container */
.hero-experience {
  position: relative;
  height: 200vh;        /* scroll real estate */
  background: transparent;
  margin-top: calc(-1 * var(--nav-height));  /* pull up so the pin starts behind the nav */
  padding-top: var(--nav-height);
}
/* The pin sticks below the nav for the full scroll-spacer duration */
.hero-experience-sticky {
  position: sticky;
  top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  height: calc(100svh - var(--nav-height));
  width: 100%;
  overflow: hidden;
  perspective: 1400px;
  /* Grid stack — all layers occupy the same cell, perfectly aligned */
  display: grid !important;
  grid-template-areas: "stack";
  grid-template-rows: 1fr;
  grid-template-columns: 1fr;
}
.hero-layer {
  grid-area: stack;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  will-change: opacity, transform;
}

/* LAYER 1 — Hero loop */
.hero-layer-1 {
  background: var(--paper);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px 40px;
}
.hero-layer-1 .hero-stage-eyebrow {
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
}
.hero-layer-1 #heroLoop {
  width: 100%;
  max-width: 1180px;
  display: flex;
  justify-content: center;
}
.hero-layer-1 .hl-frame {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  aspect-ratio: auto !important;
  width: 100%;
  height: min(56vh, 460px);
}
.hero-layer-1 .hl-frame .hl-stage { border-radius: 0 !important; }
.hero-layer-1 .hl-wordmark { bottom: -8px !important; color: var(--ink) !important; }

/* Scroll cue — bottom of layer 1 */
.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 4;
  pointer-events: none;
}
.scroll-cue-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--n-600);
}
.scroll-cue-line {
  width: 1px; height: 48px;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink) 50%, transparent 100%);
  position: relative;
  overflow: hidden;
}
.scroll-cue-line::after {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 30%;
  background: var(--accent);
  animation: scroll-cue-drop 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes scroll-cue-drop {
  0%   { transform: translateY(-100%); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(360%); opacity: 0; }
}

/* LAYER 2 — Shutter slats */
.hero-layer-shutter {
  z-index: 3;
  display: flex;
  flex-direction: column;
  perspective: 1400px;
  pointer-events: none;
}
.louver {
  flex: 1;
  width: 100%;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}
.louver .side { position: absolute; inset: 0; backface-visibility: hidden; }
.louver .side-front {
  background: transparent;
  /* faint hairline hints at the shutter divisions at rest */
  border-bottom: 1px solid oklch(0.16 0.012 260 / 0.04);
}
.louver:last-child .side-front { border-bottom: none; }
.louver .side-back {
  background: var(--ink);
  transform: rotateX(180deg);
  border-top: 2px solid var(--accent);
}

/* LAYER 3 — Tagline reveal */
.hero-layer-3 {
  background: var(--ink);
  color: var(--paper);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 32px;
  opacity: 0;
  pointer-events: none;
}
.hero-stage-3-inner {
  max-width: 720px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.hero-stage-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: oklch(0.16 0.012 260 / 0.05);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
}
.hero-stage-eyebrow .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  letter-spacing: 0;
}
.hero-stage-eyebrow-dark {
  background: oklch(1 0 0 / 0.06) !important;
  color: oklch(1 0 0 / 0.6) !important;
}
.hero-layer-3 .hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--paper);
  margin: 0;
}
.hero-layer-3 .hero-tagline strong {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 500;
}
.hero-layer-3 .hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}
.hero-layer-3 .btn-primary {
  background: var(--paper);
  color: var(--ink) !important;
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.7), 0 8px 24px -8px oklch(0 0 0 / 0.4);
}
.hero-layer-3 .btn-primary:hover {
  background: var(--accent);
  color: var(--paper) !important;
  transform: translateY(-2px);
}
.hero-layer-3 .btn-outline {
  background: transparent !important;
  border: 1px solid oklch(1 0 0 / 0.25) !important;
  color: var(--paper) !important;
}
.hero-layer-3 .btn-outline:hover {
  background: oklch(1 0 0 / 0.08) !important;
  border-color: var(--paper) !important;
}

/* Critical: the marquee and everything below must scroll OVER the pinned hero */
.marquee-wrap, .work-section, .discipline-split, .stats-strip,
.about-teaser, main > section { position: relative; z-index: 5; }

@media (prefers-reduced-motion: reduce) {
  .hero-experience { height: auto; margin-top: 0; }
  .hero-experience-sticky { position: relative; height: auto; }
  .hero-layer { position: relative; height: 100svh; }
  .hero-layer-shutter { display: none; }
  .hero-layer-3 { opacity: 1; pointer-events: all; }
  .scroll-cue-line::after { animation: none; }
}

@media (max-width: 768px) {
  :root { --nav-height: 60px; }
  .hero-experience { height: 180vh; }
  .hero-layer-1 .hero-stage-eyebrow { top: 20px; }
  .hero-layer-1 .hl-frame { height: min(50vh, 380px); }
}

/* ───────────────────────────────────────────────────────
   INNER PAGE HEROES — tighten excess top whitespace
   gallery / about / contact / process / blog / demos all had
   ~500px of empty space above their H1 because of two stacked
   spacing systems (page padding + section padding). Tighten.
   ─────────────────────────────────────────────────────── */
.contact-hero,
.gallery-hero,
.about-hero,
.process-hero,
.blog-hero,
.demos-hero,
.work-page-header {
  padding-top: clamp(64px, 9vw, 120px) !important;
  padding-bottom: clamp(48px, 7vw, 96px) !important;
  min-height: auto !important;
  position: relative;
}

/* Page-level scroll cue (NOT the hero-experience one) */
.scroll-cue-page {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 5;
  opacity: 0.6;
  animation: scrollCueFade 2.4s ease-in-out infinite;
}
.scroll-cue-page .scroll-cue-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink);
}
.scroll-cue-page .scroll-cue-line {
  width: 1px;
  height: 44px;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.scroll-cue-page .scroll-cue-line::after {
  content: '';
  position: absolute;
  top: -44px;
  left: 0;
  width: 1px;
  height: 100%;
  background: var(--accent);
  animation: scrollCueDrop 2s ease-in-out infinite;
}
@keyframes scrollCueDrop {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(44px); }
  100% { transform: translateY(88px); }
}
@keyframes scrollCueFade {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 0.85; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue-page { animation: none; }
  .scroll-cue-page .scroll-cue-line::after { animation: none; }
}
