/* =====================================================================
   ANKIT RATHOD — PORTFOLIO
   Design tokens, base styles, and every component on the site.
   Organised top to bottom in the order sections appear on the page.
   ===================================================================== */

/* ---------------------------------------------------------------------
   0. FONTS
   Space Grotesk (display) + Inter (body) via Google Fonts.
   Clash Display is loaded from Fontshare as the premium display option;
   Space Grotesk is the fallback if that request is ever blocked.
   --------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,700,900&display=swap');

/* ---------------------------------------------------------------------
   1. DESIGN TOKENS
   --------------------------------------------------------------------- */
:root{
  /* colour */
  --bg:            #050505;
  --bg-raised:     #0b0b0d;
  --text:          #FFFFFF;
  --text-secondary:#B3B3B3;
  --text-tertiary: #6f6f75;
  --accent-1:      #D42D42; /* crimson — the brand's signature red */
  --accent-2:      #8C1D32; /* deep wine red, for gradient depth */
  --highlight:     #FFB800; /* amber */
  --success:       #20D67B;
  --error:         #FF4D6D;

  --glass-bg:      rgba(255,255,255,0.045);
  --glass-bg-strong: rgba(255,255,255,0.07);
  --glass-border:  rgba(255,255,255,0.09);
  --line:          rgba(255,255,255,0.10);
  --line-soft:     rgba(255,255,255,0.06);

  --glow-red:      rgba(212,45,66,0.28);
  --glow-red-deep: rgba(140,29,50,0.30);
  --glow-amber:    rgba(255,184,0,0.22);

  /* type */
  --font-display: 'Satoshi', 'Inter', sans-serif;
  --font-heading: 'Satoshi', 'Inter', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* scale (fluid) */
  --fs-hero:    clamp(3.4rem, 13vw, 14rem);
  --fs-h1:      clamp(2.4rem, 5.6vw, 4.6rem);
  --fs-h2:      clamp(1.9rem, 3.6vw, 3rem);
  --fs-h3:      clamp(1.3rem, 2vw, 1.7rem);
  --fs-lead:    clamp(1.1rem, 1.6vw, 1.35rem);
  --fs-body:    1rem;
  --fs-small:   0.85rem;
  --fs-eyebrow: 0.78rem;

  /* layout */
  --container-max: 1440px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-pad: clamp(5rem, 12vw, 9rem);
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 0.25s;
  --dur-med: 0.6s;
  --dur-slow: 1.1s;

  --nav-h: 88px;
  --nav-h-shrunk: 64px;
}

/* ---------------------------------------------------------------------
   2. RESET
   --------------------------------------------------------------------- */
*, *::before, *::after{ box-sizing: border-box; }
html{
  scroll-behavior: auto; /* Lenis owns smooth scrolling */
  -webkit-text-size-adjust: 100%;
}
body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  opacity: 1;
  transition: opacity 0.4s var(--ease-out);
}
html.is-leaving body{ opacity: 0; }
img, video, svg, canvas{ display: block; max-width: 100%; }
a{ color: inherit; text-decoration: none; }
button{ font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,p{ margin: 0; }
input, textarea{ font: inherit; color: inherit; background: none; border: 0; }

/* Hide native cursor only when the custom one is active (fine pointer, no reduced motion) */
html.has-custom-cursor, html.has-custom-cursor *{ cursor: none; }

/* ---------------------------------------------------------------------
   3. ACCESSIBILITY
   --------------------------------------------------------------------- */
.skip-link{
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 999;
  background: var(--accent-1);
  color: #050505;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus{ left: 1rem; }

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

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

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------------------------------------------------------------
   4. LAYOUT UTILITIES
   --------------------------------------------------------------------- */
.container{
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section{
  position: relative;
  padding-block: var(--section-pad);
}
.section-head{
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-heading);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.eyebrow::before{
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-1);
  box-shadow: 0 0 12px 2px var(--glow-red);
}
.section-title{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h1);
  line-height: 1.04;
  letter-spacing: -0.01em;
  max-width: 14ch;
}
.section-desc{
  max-width: 34ch;
  color: var(--text-secondary);
  font-size: var(--fs-lead);
  line-height: 1.5;
}
.grain{
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 3;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Buttons -------------------------------------------------------------- */
.btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 1.05rem 2.1rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
}
.btn-primary{
  background: var(--text);
  color: #050505;
}
.btn-primary::before{
  content:"";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, var(--accent-1), var(--accent-2));
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-out);
  z-index: -1;
}
.btn-primary:hover::before{ opacity: 1; }
.btn-primary:hover{ color: #050505; }
.btn-ghost{
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover{ border-color: var(--accent-1); box-shadow: 0 0 24px -6px var(--glow-red); }
.btn .btn-arrow{ transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover .btn-arrow{ transform: translateX(4px); }

/* magnetic wrapper: JS toggles a transform via inline style on .magnetic */
.magnetic{ will-change: transform; }

/* Split-type helper: lines get individual overflow so masks reveal cleanly */
.split-line{ overflow: hidden; display: block; }

/* ---------------------------------------------------------------------
   5. CUSTOM CURSOR
   --------------------------------------------------------------------- */
.cursor{
  position: fixed;
  top: 0; left: 0;
  width: 34px; height: 34px;
  border: 1.5px solid rgba(255,255,255,0.7);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width var(--dur-fast) var(--ease-out), height var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out);
  mix-blend-mode: difference;
}
.cursor-dot{
  position: fixed;
  top: 0; left: 0;
  width: 6px; height: 6px;
  background: var(--text);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity var(--dur-fast) var(--ease-out), width var(--dur-fast) var(--ease-out), height var(--dur-fast) var(--ease-out);
}
.cursor.is-active{
  width: 64px; height: 64px;
  border-color: var(--accent-1);
  box-shadow: 0 0 30px -4px var(--glow-red);
}
.cursor.is-active ~ .cursor-dot,
.cursor-dot.is-hidden{ opacity: 0; }
.cursor.is-media{ width: 100px; height: 100px; border-style: dashed; }
.cursor-label{
  position: fixed;
  top: 0; left: 0;
  z-index: 9999;
  pointer-events: none;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #050505;
  background: var(--text);
  padding: 0.4em 0.8em;
  border-radius: 999px;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.cursor-label.is-visible{ opacity: 1; }
@media (hover: none), (pointer: coarse){
  .cursor, .cursor-dot, .cursor-label{ display: none; }
}

/* ---------------------------------------------------------------------
   6. PRELOADER
   --------------------------------------------------------------------- */
.preloader{
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
}
.preloader-mark{
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  letter-spacing: 0.02em;
}
.preloader-bar{
  width: min(240px, 60vw);
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.preloader-bar-fill{
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
}
.preloader-pct{
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
}
.preloader.is-done{
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s var(--ease-out), visibility 0.7s;
}

/* ---------------------------------------------------------------------
   7. NAVIGATION
   --------------------------------------------------------------------- */
.nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: height var(--dur-fast) var(--ease-out);
}
.nav::before{
  content: "";
  position: absolute; inset: 0;
  background: rgba(5,5,5,0.35);
  backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: backdrop-filter var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out), background var(--dur-med) var(--ease-out);
  z-index: -1;
}
.nav.is-scrolled{ height: var(--nav-h-shrunk); }
.nav.is-scrolled::before{
  backdrop-filter: blur(18px);
  background: rgba(5,5,5,0.55);
  border-bottom-color: var(--line-soft);
}
.nav-inner{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo{
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.nav-cta{ display: flex; align-items: center; gap: 1rem; }
.nav-toggle{
  display: flex; /* hamburger is the primary nav at every breakpoint now */
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  z-index: 520;
  position: relative;
}
.nav-toggle span{ width: 22px; height: 1.5px; background: var(--text); transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast); }
.nav-toggle.is-open span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity: 0; }
.nav-toggle.is-open span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }

/* Fullscreen overlay menu — reveals as a circle expanding from the toggle
   button's position (top right), giving a "parallax" sense of the menu
   pushing forward while the page recedes (see the html.nav-open rule below,
   applied to <main>/.footer) rather than a flat slide or fade. */
.nav-mobile{
  position: fixed;
  inset: 0;
  z-index: 480;
  background: radial-gradient(140% 140% at calc(100% - 44px) 44px, #101014 0%, #050505 65%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.1rem, 3.4vw, 1.8rem);
  clip-path: circle(1.5% at calc(100% - 44px) 44px);
  opacity: 0;
  visibility: hidden;
  transition: clip-path 0.85s var(--ease-soft), opacity 0.3s ease, visibility 0.85s;
}
.nav-mobile.is-open{
  clip-path: circle(150% at calc(100% - 44px) 44px);
  opacity: 1;
  visibility: visible;
}
.nav-mobile-link{
  display: flex;
  align-items: baseline;
  gap: clamp(0.7rem, 2vw, 1.1rem);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 6.4vw, 3.4rem);
  color: var(--text);
  opacity: 0.94;
  transition: color var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.nav-mobile-link:hover, .nav-mobile-link:focus-visible{ color: var(--accent-1); opacity: 1; }
.nav-mobile-num{
  font-family: var(--font-heading);
  font-size: clamp(0.75rem, 1.6vw, 0.95rem);
  color: var(--accent-1);
  font-weight: 500;
}
.nav-mobile-foot{
  position: absolute;
  bottom: clamp(1.5rem, 4vw, 2.5rem);
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.nav-mobile-foot a:hover{ color: var(--accent-1); }

/* Page content recedes slightly while the overlay is open — the other half
   of the parallax effect: the menu comes forward, the page pushes back. */
main, .footer{
  transition: transform 0.7s var(--ease-out), filter 0.7s var(--ease-out);
}
html.nav-open main, html.nav-open .footer{
  transform: scale(0.96);
  filter: blur(3px) brightness(0.65);
  pointer-events: none;
}

/* ---------------------------------------------------------------------
   8. AMBIENT BACKGROUND (shared canvas behind hero + skills)
   --------------------------------------------------------------------- */
.ambient-canvas{
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.ambient-glow{
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 42% at 18% 20%, var(--glow-red-deep), transparent 60%),
    radial-gradient(32% 36% at 82% 68%, var(--glow-red), transparent 60%);
  filter: blur(10px);
  opacity: 0.7;
}

/* ---------------------------------------------------------------------
   8a. PAGE HERO (Services / Work / Journal / Contact page intros)
   --------------------------------------------------------------------- */
.page-hero{
  padding-top: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem));
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
  border-bottom: 1px solid var(--line);
}
.page-hero-title{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  max-width: 18ch;
  margin-top: 1.2rem;
}
.page-hero-desc{
  margin-top: 1.4rem;
  max-width: 48ch;
  font-size: var(--fs-lead);
  color: var(--text-secondary);
}

/* ---------------------------------------------------------------------
   9. HERO
   --------------------------------------------------------------------- */
.hero{
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero-grid{
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(60% 60% at 50% 40%, black, transparent 85%);
  opacity: 0.5;
}
.hero-inner{
  position: relative;
  z-index: 2;
}
.hero-eyebrow{
  margin-bottom: 1.5rem;
}
.hero-name{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-hero);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.hero-name .line{ display: block; }

/* Logo SVGs (wordmark + compact monogram) — real brand artwork, referenced via
   <use href="#logo-wordmark"> / <use href="#logo-mark"> against <symbol>s
   defined once near the top of <body>. Wordmark aspect ratio is ~4.624:1. */
.logo-svg{ display: block; color: currentColor; }
.preloader-mark .logo-svg{ width: clamp(170px, 42vw, 240px); height: auto; margin: 0 auto; }
.nav-logo .logo-svg{ width: clamp(96px, 13vw, 124px); height: auto; }
.footer-word .logo-svg{ width: clamp(220px, 42vw, 560px); height: auto; }
.hero-name .logo-svg{ width: clamp(260px, 90vw, 980px); height: auto; }

/* Small inline red dot — used where "Untitled" appears as a word within
   running text (e.g. the manifesto close), rather than as the full lockup. */
.logo-dot{
  display: inline-block;
  width: 0.16em;
  height: 0.16em;
  border-radius: 50%;
  background: #D72638;
  margin-left: 0.06em;
  vertical-align: 0.02em;
}
.hero-tagline{
  margin: clamp(1.2rem, 2.6vw, 1.8rem) 0 0;
  font-family: var(--font-heading);
  font-size: clamp(0.82rem, 1.4vw, 1.05rem);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.accent-dot{ color: var(--accent-1); }
.hero-sub{
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  color: var(--text-secondary);
}
.hero-role{
  position: relative;
  display: inline-flex;
  align-items: center;
}
.hero-role-text{
  color: var(--text);
  white-space: nowrap;
}
.hero-role-cursor{
  display: inline-block;
  width: 2px;
  height: 0.95em;
  margin-left: 4px;
  background: var(--accent-1);
  animation: heroCursorBlink 0.9s step-end infinite;
}
@keyframes heroCursorBlink{
  0%, 49%{ opacity: 1; }
  50%, 100%{ opacity: 0; }
}
.hero-actions{
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.hero-scroll{
  position: absolute;
  bottom: clamp(1.5rem, 4vw, 2.5rem);
  left: var(--gutter);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  z-index: 2;
}
.hero-scroll-line{
  width: 1px; height: 44px;
  background: linear-gradient(var(--text-tertiary), transparent);
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after{
  content: "";
  position: absolute;
  top: -100%; left: 0; right: 0; height: 100%;
  background: var(--accent-1);
  animation: scrollline 2.4s ease-in-out infinite;
}
@keyframes scrollline{ to{ top: 100%; } }
.hero-index{
  position: absolute;
  right: var(--gutter);
  bottom: clamp(1.5rem, 4vw, 2.5rem);
  z-index: 2;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--text-tertiary);
  text-align: right;
}

/* ---------------------------------------------------------------------
   10. ABOUT
   --------------------------------------------------------------------- */
.about-grid{
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.about-portrait{
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(150deg, #14141a 0%, #050505 75%);
  border: 1px solid var(--line);
  transform-style: preserve-3d;
  will-change: transform;
}
.about-portrait-glow{
  position: absolute; inset: -20%;
  background: radial-gradient(45% 45% at 30% 20%, var(--glow-red), transparent 65%),
              radial-gradient(45% 45% at 75% 80%, var(--glow-red-deep), transparent 65%);
  opacity: 0.8;
}
.about-portrait-mono{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(90px, 20vw, 150px);
  height: auto;
  color: rgba(255,255,255,0.92);
  filter: drop-shadow(0 0 40px var(--glow-red));
}
.about-portrait-frame{
  position: absolute; inset: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: calc(var(--radius-lg) - 10px);
  pointer-events: none;
}
.about-caption{
  margin-top: 1rem;
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  text-transform: uppercase;
}
.about-copy .section-desc{ margin-bottom: 1.6rem; }
.about-lead{
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  line-height: 1.4;
  max-width: 32ch;
  margin-bottom: 1.8rem;
}
.about-body p{
  color: var(--text-secondary);
  max-width: 46ch;
  margin-bottom: 1.2rem;
}
.about-stats{
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: clamp(2rem, 5vw, 3rem);
  border-top: 1px solid var(--line);
}
.about-stat-num{
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--text); font-weight: 700;}
.about-stat-num span{ color: var(--accent-1); }
.about-stat-label{
  margin-top: 0.4rem;
  font-size: var(--fs-small);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------------------------------------------------------------------
   10a. PHILOSOPHY
   --------------------------------------------------------------------- */
.philosophy-section{ border-top: 1px solid var(--line); }
.philosophy-statement{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 3.1rem);
  line-height: 1.25;
  max-width: 22ch;
  letter-spacing: -0.01em;
}
.philosophy-statement .accent-dot-text{ color: var(--accent-1); }
.belief-list{
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.belief-list li{
  list-style: none;
  padding: clamp(1.1rem, 2.5vw, 1.5rem) 0;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  color: var(--text-secondary);
  max-width: 46ch;
}
.belief-list li:last-child{ border-bottom: 1px solid var(--line-soft); }
.belief-list li strong{ color: var(--text); font-weight: 600; }
.belief-list li em{ color: var(--accent-1); font-style: normal; }

/* ---------------------------------------------------------------------
   11. TIMELINE
   --------------------------------------------------------------------- */
.timeline-rail{ margin-top: clamp(3rem, 6vw, 5rem); }
.timeline{
  --fl: 0px; --fr: 36px;
  overflow-x: auto; overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
  padding-bottom: 0.5rem;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
}
.timeline.is-scrubbed{ scrollbar-width: none; }
.timeline.is-scrubbed::-webkit-scrollbar{ display: none; }
/* Scroll-linked mode: the page scrolls normally and the row of years moves
   sideways with it (no pinning). Without JS, or with reduced motion, it stays
   a native sideways-scrolling strip. */
.timeline.is-scrubbed{ overflow: hidden; scroll-snap-type: none; }
.timeline.is-scrubbed .timeline-row{ will-change: transform; }
/* Pinned mode: the section holds the screen (native position: sticky) while
   the years move sideways, then lets go. JS sets --tl-scroll. */
#experience.tl-pin{ padding: 0; height: calc(100vh + var(--tl-scroll, 0px)); }
#experience.tl-pin > .container{
  position: sticky; top: 0;
  height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
}
.timeline:focus-visible{ outline: 2px solid var(--accent-1); outline-offset: 4px; border-radius: var(--radius-md); }
.timeline-row{
  position: relative;
  display: flex; gap: 1.25rem;
  width: max-content;
  padding-top: 2.6rem;
}
.timeline-track{
  position: absolute;
  left: 0; right: 0; top: 6px;
  height: 1px;
  background: var(--line);
}
.timeline-track-fill{
  position: absolute;
  left: 0; top: 0;
  width: 0; height: 100%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-1));
}
.timeline-item{
  position: relative;
  flex: 0 0 clamp(280px, 30vw, 400px);
  min-height: 230px;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg);
  scroll-snap-align: start;
  transition: border-color var(--dur-med) var(--ease-out);
}
@media (max-width: 720px){ .timeline-item{ flex-basis: min(80vw, 330px); } }
.timeline-item:last-child{ scroll-snap-align: end; }
.timeline-item.is-active{ border-color: rgba(212,45,66,0.4); }
.timeline-node{
  position: absolute;
  left: 1.6rem;
  top: calc(1px - 2.6rem);
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--text-tertiary);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.timeline-item.is-active .timeline-node,
.timeline-item.is-current .timeline-node{
  border-color: var(--accent-1);
  box-shadow: 0 0 0 4px var(--glow-red);
}
.timeline-year{
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 0.8rem;
  color: var(--text-secondary); font-weight: 700;}
.timeline-item.is-current .timeline-year{ color: var(--accent-1); }
.timeline-title{
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}
.timeline-note{ color: var(--text-secondary); }
.timeline-tag{
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-1);
  border: 1px solid rgba(212,45,66,0.35);
  border-radius: 999px;
  padding: 0.25em 0.75em;
}

/* ---------------------------------------------------------------------
   11a. LOGO THINKING
   --------------------------------------------------------------------- */
.logo-showcase{
  display: flex;
  justify-content: center;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  margin-bottom: clamp(1rem, 3vw, 2rem);
}
.logo-mark--showcase{
  width: clamp(80px, 12vw, 130px);
  height: auto;
  color: var(--text);
}
.logo-thinking-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.logo-thinking-item{
  background: var(--bg);
  padding: clamp(1.8rem, 3vw, 2.6rem);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  transition: background var(--dur-med) var(--ease-out);
}
.logo-thinking-item:hover{ background: var(--bg-raised); }
.logo-thinking-num{
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--accent-1);
}
.logo-thinking-title{
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin: 1.4rem 0 0.7rem; font-weight: 700;}
.logo-thinking-desc{
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.55;
  max-width: 34ch;
}

/* ---------------------------------------------------------------------
   12. SKILLS — LAYERS
   --------------------------------------------------------------------- */
.skills-section{ position: relative; overflow: hidden; }
.skills-layers{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
  padding: clamp(1rem, 2.4vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: radial-gradient(60% 60% at 70% 40%, rgba(212,45,66,0.07), transparent 70%);
}
@media (min-width: 720px){
  .skills-layers{ grid-template-columns: minmax(210px, 270px) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
}
.layers-list{ display: flex; flex-wrap: wrap; gap: 0.5rem; }
@media (min-width: 720px){ .layers-list{ flex-direction: column; flex-wrap: nowrap; gap: 0.4rem; } }
.layers-btn{
  display: flex; align-items: center; gap: 0.6rem;
  min-height: 44px;
  padding: 0.5rem 1rem;
  font: inherit; font-family: var(--font-heading); font-size: 0.95rem;
  color: var(--text-secondary); text-align: left;
  background: none; border: 1px solid var(--line); border-radius: 999px;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.layers-btn i{
  flex: none; width: 0.7rem; height: 0.7rem; border-radius: 50%;
  border: 1px solid var(--text-tertiary);
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.layers-btn:hover{ color: var(--text); border-color: rgba(255,255,255,0.3); }
.layers-btn[aria-pressed="true"]{ color: var(--text); border-color: var(--accent-1); }
.layers-btn[aria-pressed="true"] i{ background: var(--accent-1); border-color: var(--accent-1); }
.layers-tools{ display: flex; gap: 0.5rem; margin-top: 0.9rem; }
.layers-tool{
  min-height: 40px; padding: 0.4rem 0.9rem;
  font: inherit; font-size: var(--fs-small); color: var(--text-secondary);
  background: none; border: 1px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.layers-tool:hover{ color: var(--text); border-color: rgba(255,255,255,0.3); }
.layers-btn:focus-visible, .layers-tool:focus-visible{ outline: 2px solid var(--accent-1); outline-offset: 2px; }
.layers-board{ display: flex; flex-direction: column; align-items: center; min-width: 0; }
.layers-art{
  display: block; width: 100%; max-width: 860px; height: auto; aspect-ratio: 8 / 5;
  background: var(--bg-raised);
  border: 1px solid var(--line); border-radius: var(--radius-md);
}
.layers-note{
  min-height: 2.9em; margin-top: 1rem; max-width: 46ch;
  text-align: center; font-size: var(--fs-small); line-height: 1.5; color: var(--text-secondary);
}
.la-layer{ opacity: 0; transition: opacity 0.45s var(--ease-out); }
.la-layer.is-on{ opacity: 1; }
.la-draw{ stroke-dasharray: 1; stroke-dashoffset: 0; }
.is-on .la-draw{ animation: la-draw 1s var(--ease-out) both; }
.is-on .la-fade{ animation: la-fade 0.6s ease both; animation-delay: calc(var(--i, 0) * 45ms); }
.la-headline{ font-family: var(--font-heading); font-weight: 500; font-size: 52px; fill: #fff; }
.la-dot{ fill: var(--accent-1); }
.la-mv{ animation: la-mv 2.4s ease-in-out infinite alternate; }
.la-ph{ animation: la-ph 3.2s linear infinite; }
.la-tw{ animation: la-tw 2s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes la-draw{ from{ stroke-dashoffset: 1; } to{ stroke-dashoffset: 0; } }
@keyframes la-fade{ from{ opacity: 0; } to{ opacity: 1; } }
@keyframes la-mv{ from{ transform: translateX(-72px); } to{ transform: translateX(72px); } }
@keyframes la-ph{ from{ transform: translateX(0); } to{ transform: translateX(720px); } }
@keyframes la-tw{ from{ opacity: 0.25; transform: scale(0.6); } to{ opacity: 1; transform: scale(1.1); } }

/* ---------------------------------------------------------------------
   13. SERVICES
   --------------------------------------------------------------------- */
.services-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.service-card{
  position: relative;
  background: var(--bg);
  padding: clamp(1.8rem, 3vw, 2.6rem);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: background var(--dur-med) var(--ease-out);
}
.service-card::before{
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 120% at 0% 0%, var(--glow-red-deep), transparent 55%);
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease-out);
}
.service-card:hover::before{ opacity: 0.5; }
.service-card:hover{ background: var(--bg-raised); }
.service-index{
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--accent-1);
}
.service-title{
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  margin: 1.6rem 0 0.8rem; font-weight: 700;}
.service-desc{
  color: var(--text-secondary);
  font-size: 0.92rem;
  max-width: 32ch;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height var(--dur-med) var(--ease-out), opacity var(--dur-med) var(--ease-out), margin var(--dur-med) var(--ease-out);
}
.service-card:hover .service-desc, .service-card:focus-within .service-desc{
  max-height: 8em;
  opacity: 1;
  margin-bottom: 1rem;
}
.service-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  position: relative;
  z-index: 1;
}
.service-tag{
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3em 0.8em;
}

/* ---------------------------------------------------------------------
   14. PORTFOLIO
   --------------------------------------------------------------------- */
.work-list{ display: flex; flex-direction: column; }
.work-item{
  position: relative;
  display: grid;
  grid-template-columns: 6rem 1fr auto auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.6rem, 3vw, 2.2rem) 0;
  border-bottom: 1px solid var(--line);
}
.work-item:first-child{ border-top: 1px solid var(--line); }
.work-index{
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text-tertiary);
}
.work-title{
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.2vw, 3.1rem);
  transition: color var(--dur-fast) var(--ease-out), transform var(--dur-med) var(--ease-out); font-weight: 700;}
.work-item:hover .work-title{ color: var(--accent-1); transform: translateX(0.3em); }
.work-meta{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.3rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  text-align: right;
}
.work-meta .cat{ color: var(--text-secondary); }
.work-arrow{
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.work-item:hover .work-arrow{ border-color: var(--accent-1); transform: rotate(45deg); background: rgba(212,45,66,0.08); }
.work-preview{
  position: fixed;
  top: 0; left: 0;
  z-index: 40;
  width: 340px;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}
.work-preview.is-visible{ opacity: 1; transform: translate(-50%, -50%) scale(1); }
.work-preview-sheen{
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.25) 50%, transparent 60%);
  transform: translateX(-120%);
}
.work-item:hover .work-preview-sheen{ transition: transform 0.9s var(--ease-out); transform: translateX(120%); }
@media (hover: none){ .work-preview{ display: none; } }

.work-cta{
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  justify-content: center;
}

/* ---------------------------------------------------------------------
   15. TESTIMONIALS MARQUEE
   --------------------------------------------------------------------- */
.marquee{
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track{
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: marquee 55s linear infinite;
}
.marquee:hover .marquee-track, .marquee-track.is-paused{ animation-play-state: paused; }
@keyframes marquee{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }
.testimonial-card{
  flex: 0 0 auto;
  width: min(420px, 84vw);
  padding: clamp(1.8rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  transition: transform var(--dur-med) var(--ease-out), border-color var(--dur-fast);
}
.testimonial-card:hover{ transform: translateY(-6px) rotate(-0.4deg); border-color: rgba(212,45,66,0.4); }
.testimonial-quote{
  font-family: var(--font-heading);
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: 1.4rem;
}
.testimonial-name{ font-size: 0.85rem; font-weight: 600; }
.testimonial-title{ font-size: 0.78rem; color: var(--text-tertiary); }

/* ---------------------------------------------------------------------
   15a. BRAND MANIFESTO
   --------------------------------------------------------------------- */
.manifesto-section{
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.manifesto-open{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4.4vw, 3.2rem);
  line-height: 1.3;
  max-width: 24ch;
  margin: 0 auto;
}
.manifesto-list{
  margin: clamp(2.5rem, 5vw, 3.5rem) auto;
  max-width: 32ch;
}
.manifesto-list p{
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  padding: 0.5rem 0;
}
.manifesto-close{
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  max-width: 26ch;
  margin: 0 auto; font-weight: 700;}
.manifesto-close .logo-dot{ margin-left: 0.1em; margin-right: 0.05em; }

/* ---------------------------------------------------------------------
   16. CONTACT
   --------------------------------------------------------------------- */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
}
.contact-title{
  font-family: var(--font-display);
  font-size: var(--fs-hero-contact, clamp(2.6rem, 7vw, 5.4rem));
  line-height: 1;
  margin-bottom: 1.5rem; font-weight: 700;}
.contact-email{
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.5rem;
}
.contact-email:hover{ color: var(--accent-1); border-color: var(--accent-1); }
.contact-socials{
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.contact-social{
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.6em 1.3em;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.contact-social:hover{ color: var(--accent-1); border-color: var(--accent-1); }

.field{ position: relative; margin-bottom: 2.1rem; }
.field input, .field textarea{
  width: 100%;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
  resize: none;
}
.field textarea{ min-height: 90px; }
.field label{
  position: absolute;
  left: 0; top: 0.9rem;
  color: var(--text-tertiary);
  font-size: 1.05rem;
  transition: transform var(--dur-fast) var(--ease-out), font-size var(--dur-fast) var(--ease-out), color var(--dur-fast);
  pointer-events: none;
}
.field input:focus ~ label,
.field textarea:focus ~ label,
.field.has-value label{
  transform: translateY(-1.4rem);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-1);
}
.field-underline{
  position: absolute; left: 0; bottom: 0;
  height: 1px; width: 0%;
  background: var(--accent-1);
  transition: width var(--dur-med) var(--ease-out);
}
.field input:focus ~ .field-underline,
.field textarea:focus ~ .field-underline{ width: 100%; }
.field-error{
  display: none;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: var(--error);
}
.field.has-error .field-error{ display: block; }
.field.has-error input, .field.has-error textarea{ border-color: var(--error); }

.contact-submit{ margin-top: 0.5rem; }
.form-status{
  margin-top: 1.2rem;
  font-size: 0.88rem;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 0.5em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
}
.form-status.is-visible{ opacity: 1; transform: translateY(0); }
.form-status .dot{ width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.form-status.is-error{ color: var(--error); }
.form-status.is-error .dot{ background: var(--error); }

/* ---------------------------------------------------------------------
   17. FOOTER
   --------------------------------------------------------------------- */
.footer{
  position: relative;
  padding-top: clamp(4rem, 8vw, 6rem);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.footer-constellation{
  position: absolute;
  top: 0; right: 0;
  width: min(600px, 70vw);
  height: 280px;
  opacity: 0.6;
  pointer-events: none;
}
.footer-top{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.footer-word{
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 12vw, 9rem);
  line-height: 0.9;
  letter-spacing: -0.02em; font-weight: 700;}
.footer-links{ display: flex; gap: 2.5rem; flex-wrap: wrap; }
.footer-col-title{
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0.9rem;
}
.footer-col a{
  display: block;
  color: var(--text-secondary);
  font-size: 0.92rem;
  padding: 0.3rem 0;
  transition: color var(--dur-fast);
}
.footer-col a:hover{ color: var(--accent-1); }
.footer-bottom{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 1.8rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.78rem;
  color: var(--text-tertiary);
}
.footer-easter{
  cursor: pointer;
  opacity: 0.35;
  transition: opacity var(--dur-fast);
}
.footer-easter:hover{ opacity: 1; color: var(--accent-1); }

/* ---------------------------------------------------------------------
   18. SCROLL-REVEAL HELPERS (GSAP toggles these via opacity/transform inline,
   but base state lives here so content isn't invisible without JS)
   --------------------------------------------------------------------- */
.reveal{ opacity: 1; }
.js .reveal{ opacity: 0; transform: translateY(28px); }
.js .reveal-fade{ opacity: 0; }
noscript .reveal, noscript .reveal-fade{ opacity: 1 !important; }

/* ---------------------------------------------------------------------
   19. CASE STUDY PAGE
   --------------------------------------------------------------------- */
.cs-hero{
  position: relative;
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: var(--nav-h);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.cs-hero-bg{ position: absolute; inset: 0; z-index: 0; }
.cs-hero-bg::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,5,5,0.1), rgba(5,5,5,0.95));
}
.cs-back{
  position: relative; z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: clamp(2rem, 6vw, 4rem);
  width: fit-content;
}
.cs-back:hover{ color: var(--accent-1); }
.cs-hero-meta{
  position: relative; z-index: 2;
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}
.cs-hero-meta div{ font-family: var(--font-heading); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-tertiary); }
.cs-hero-meta span{ display: block; color: var(--text); font-size: 0.95rem; text-transform: none; letter-spacing: 0; margin-top: 0.3rem; }
.cs-hero-title{
  position: relative; z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 9vw, 7rem);
  line-height: 0.98;
  max-width: 20ch; font-weight: 700;}
.cs-hero-excerpt{
  position: relative; z-index: 2;
  margin-top: 1.4rem;
  max-width: 42ch;
  font-size: var(--fs-lead);
  color: var(--text-secondary);
}

.cs-block{
  display: grid;
  grid-template-columns: 0.6fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}
.cs-block-label{
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-1);
}
.cs-block-body p{
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 62ch;
}
.cs-block-body p + p{ margin-top: 1rem; }

.cs-gallery{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.cs-gallery-item{
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform var(--dur-med) var(--ease-out);
}
.cs-gallery-item:hover{ transform: scale(1.015); }
.cs-gallery-item:first-child, .cs-gallery-item:nth-child(4){ grid-column: span 2; aspect-ratio: 16/8; }

.cs-testimonial{
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--line);
  text-align: center;
}
.cs-testimonial blockquote{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  line-height: 1.35;
  max-width: 26ch;
  margin: 0 auto 1.4rem;
}
.cs-testimonial cite{ font-style: normal; color: var(--text-tertiary); font-size: 0.9rem; }

.cs-related{ padding-top: clamp(3rem, 6vw, 5rem); }
.cs-related-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.cs-related-card{
  position: relative;
  aspect-ratio: 5/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  padding: 1.6rem;
}
.cs-related-card::after{ content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.75)); }
.cs-related-card span{ position: relative; z-index: 1; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; }
.cs-related-card small{ position: relative; z-index: 1; display: block; color: var(--text-secondary); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.3rem; }

/* ---------------------------------------------------------------------
   20. LIGHTBOX
   --------------------------------------------------------------------- */
.lightbox{
  position: fixed; inset: 0;
  z-index: 2000;
  background: rgba(5,5,5,0.96);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-fast) var(--ease-out), visibility var(--dur-fast);
}
.lightbox.is-open{ opacity: 1; visibility: visible; }
.lightbox-frame{
  width: min(1000px, 88vw);
  aspect-ratio: 16/10;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.lightbox-close{
  position: absolute; top: 2rem; right: 2rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.lightbox-close:hover{ color: var(--accent-1); }

/* ---------------------------------------------------------------------
   21. DESIGNER / DEVELOPER MODE (easter egg toggle)
   --------------------------------------------------------------------- */
html.developer-mode body{ background: #050608; }
html.developer-mode .grain{ opacity: 0.03; }
html.developer-mode .section-title,
html.developer-mode .hero-name,
html.developer-mode .cs-hero-title,
html.developer-mode .footer-word{ font-family: 'JetBrains Mono', 'Space Grotesk', monospace; }
html.theme-shift{ --accent-1: #00F5FF; --accent-2: #7A5CFF; }
.mode-toggle{
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 400;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--glass-bg-strong);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.mode-toggle:hover{ border-color: var(--accent-1); }

/* ---------------------------------------------------------------------
   22. TOAST (Konami code + misc easter-egg feedback)
   --------------------------------------------------------------------- */
.toast{
  position: fixed;
  bottom: 1.75rem;
  left: 50%;
  z-index: 5000;
  transform: translate(-50%, 20px);
  background: var(--text);
  color: #050505;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  pointer-events: none;
}
.toast.is-visible{ opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------------
   23. 404 PAGE
   --------------------------------------------------------------------- */
.notfound{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-inline: var(--gutter);
  position: relative;
  overflow: hidden;
}
.notfound-code{
  font-family: var(--font-display);
  font-size: clamp(6rem, 22vw, 14rem);
  line-height: 0.85;
  background: linear-gradient(100deg, var(--text) 30%, var(--accent-1) 60%, var(--accent-2) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700;}
.notfound-text{ margin-top: 1rem; color: var(--text-secondary); max-width: 40ch; font-size: var(--fs-lead); }
.notfound-actions{ margin-top: 2.5rem; }
.notfound-canvas{ position: absolute; inset: 0; z-index: 0; }

/* ---------------------------------------------------------------------
   24. RESPONSIVE
   --------------------------------------------------------------------- */
@media (max-width: 1080px){
  .about-grid{ grid-template-columns: 1fr; }
  .about-portrait{ max-width: 420px; }
  .services-grid{ grid-template-columns: repeat(2, 1fr); }
  .logo-thinking-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .cs-block{ grid-template-columns: 1fr; gap: 1.2rem; }
  .cs-related-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 860px){
  :root{ --section-pad: clamp(4rem, 14vw, 6rem); }
  .work-item{ grid-template-columns: 3rem 1fr auto; }
  .work-meta{ display: none; }
  .services-grid{ grid-template-columns: 1fr; }
  .cs-gallery{ grid-template-columns: 1fr; }
  .cs-gallery-item, .cs-gallery-item:first-child, .cs-gallery-item:nth-child(4){ grid-column: span 1; aspect-ratio: 4/3; }
  .cursor, .cursor-dot, .cursor-label{ display: none; }
  html.has-custom-cursor, html.has-custom-cursor *{ cursor: auto; }
}

@media (max-width: 560px){
  .hero-sub{ flex-direction: column; align-items: flex-start; gap: 0.2rem; }
  .about-stats{ grid-template-columns: repeat(2, auto); row-gap: 1.6rem; }
  .footer-top{ flex-direction: column; align-items: flex-start; }
  .footer-links{ gap: 1.6rem; }
  .mode-toggle{ bottom: 1rem; right: 1rem; }
}

/* Respect Windows High Contrast / forced colors */
@media (forced-colors: active){
  .btn-primary, .btn-ghost{ border: 1px solid CanvasText; }
}

/* ---------------------------------------------------------------------
   JOURNAL — list and article pages
   --------------------------------------------------------------------- */
.journal-list{ display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 760px){
  .journal-list{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journal-card.is-featured{ grid-column: 1 / -1; flex-direction: row; }
  .journal-card.is-featured .journal-cover{ flex: 0 0 46%; aspect-ratio: auto; min-height: 300px; }
  .journal-card.is-featured .journal-body{ justify-content: center; }
}
.journal-card{
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--bg);
  transition: border-color var(--dur-med) var(--ease-out), background var(--dur-med) var(--ease-out);
}
.journal-card:hover{ background: var(--bg-raised); border-color: rgba(255,255,255,0.22); }
.journal-card:focus-visible{ outline: 2px solid var(--accent-1); outline-offset: 3px; }
.journal-cover{ aspect-ratio: 16 / 9; background-size: cover; background-position: center; }
.journal-body{ display: flex; flex-direction: column; gap: 0.7rem; padding: 1.5rem 1.6rem 1.7rem; }
.journal-meta, .article-meta{ display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-size: var(--fs-small); color: var(--text-tertiary); }
.journal-title{ font-family: var(--font-heading); font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1.2; margin: 0; }
.journal-excerpt{ margin: 0; color: var(--text-secondary); }
.journal-more{ margin-top: auto; padding-top: 0.4rem; font-size: var(--fs-small); color: var(--accent-1); }
.journal-tag{
  display: inline-block; vertical-align: middle; margin-left: 0.4rem;
  padding: 0.2em 0.7em; border: 1px dashed rgba(212,45,66,0.6); border-radius: 999px;
  font-family: var(--font-body); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-1);
}
.article-hero{ padding-top: calc(var(--nav-h) + clamp(2rem, 5vw, 4rem)); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.article-wrap{ max-width: 780px; }
.article-title{ font-family: var(--font-display); font-size: clamp(2.1rem, 5.2vw, 3.8rem); line-height: 1.08; margin: 1rem 0 1.2rem; }
.article-dek{ font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.5; color: var(--text-secondary); margin: 0; }
.article-sample{ margin: 0 0 1.6rem; padding: 0.8rem 1rem; border: 1px dashed rgba(212,45,66,0.6); border-radius: var(--radius-md); font-size: var(--fs-small); color: var(--text-secondary); }
.article-cover{ aspect-ratio: 16 / 8; border-radius: var(--radius-lg); background-size: cover; background-position: center; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.article-body{ padding-bottom: 2rem; }
.article-body p{ font-size: 1.125rem; line-height: 1.75; color: var(--text-secondary); margin: 0 0 1.4em; }
.article-body h2{ font-family: var(--font-heading); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; margin: 2.2em 0 0.6em; }
.article-body blockquote{ margin: 2em 0; padding: 0 0 0 1.4rem; border-left: 2px solid var(--accent-1); font-family: var(--font-heading); font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.45; }
.article-body blockquote cite{ display: block; margin-top: 0.7rem; font-family: var(--font-body); font-size: var(--fs-small); font-style: normal; color: var(--text-tertiary); }
.article-body ul{ margin: 0 0 1.6em; padding-left: 1.3rem; color: var(--text-secondary); font-size: 1.125rem; line-height: 1.7; }
.article-body li{ margin-bottom: 0.4em; }
.article-fig{ margin: 2em 0; }
.article-fig-img{ aspect-ratio: 16 / 9; border-radius: var(--radius-md); border: 1px solid var(--line); background: linear-gradient(135deg, var(--bg-raised), #14141a); background-size: cover; background-position: center; }
.article-fig figcaption{ margin-top: 0.7rem; font-size: var(--fs-small); color: var(--text-tertiary); }
.article-end{ display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.6rem 0; margin-top: 1rem; border-top: 1px solid var(--line); }
.article-author{ font-size: var(--fs-small); color: var(--text-secondary); }
.article-author b{ display: block; font-family: var(--font-heading); font-weight: 500; font-size: 1rem; color: var(--text); }
.article-more{ padding-bottom: clamp(3rem, 6vw, 5rem); }

/* ---------------------------------------------------------------------
   JOURNAL — scroll story (layout: "story")
   Each .story-scene is tall; .story-pin sticks to the screen while the
   scene's scroll progress (--p, 0 to 1) drives the artwork and the text.
   --------------------------------------------------------------------- */
.article-hero.story-hero{ min-height: 88vh; min-height: 88svh; display: flex; flex-direction: column; justify-content: flex-end; }
.story-cue{ margin-top: 2.2rem; font-size: var(--fs-small); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-tertiary); }
.story-cue span{ display: inline-block; animation: story-bob 1.8s ease-in-out infinite; }
@keyframes story-bob{ 50%{ transform: translateY(6px); } }
.story{ position: relative; }
.story-progress{ position: fixed; left: 0; top: 0; z-index: 70; width: 100%; height: 2px; background: var(--accent-1); transform-origin: left; transform: scaleX(var(--sp, 0)); pointer-events: none; }
.story-scene{ position: relative; height: calc(var(--len, 2) * 100vh); height: calc(var(--len, 2) * 100svh); }
.story-pin{
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 0 clamp(1.25rem, 5vw, 4rem);
  overflow: hidden;
}
.story-copy{ position: relative; z-index: 2; width: 100%; max-width: 1080px; }
.story-art{ position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.story-statement{ margin: 0; max-width: 22ch; font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 6.2vw, 4.8rem); line-height: 1.1; letter-spacing: -0.02em; }
.story-statement .w{ opacity: clamp(0.14, calc(0.14 + (var(--p, 0) * var(--n, 10) * 1.12 - var(--i, 0))), 1); }
.story-statement .w.hl{ color: var(--accent-1); }
.beats{ display: grid; }
.beat{ grid-area: 1 / 1; opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.beat.is-on{ opacity: 1; transform: none; }
.beat.is-past{ opacity: 0; transform: translateY(-26px); }
.beat-inner{ display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem clamp(1.5rem, 5vw, 4rem); }
.beat-text{ margin: 0; max-width: 20ch; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 5.2vw, 3.9rem); line-height: 1.14; letter-spacing: -0.015em; }
.beat-label{ font-family: var(--font-display); font-weight: 900; font-size: clamp(4.5rem, 17vw, 12rem); line-height: 0.9; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.5px var(--accent-1); }
.scene-years .beat-text{ max-width: 30ch; font-weight: 500; font-size: clamp(1.15rem, 2.4vw, 1.75rem); line-height: 1.45; letter-spacing: 0; color: var(--text-secondary); }
mark.hl{ color: inherit; background: linear-gradient(var(--accent-1), var(--accent-1)) no-repeat 0 94% / 0 0.12em; transition: background-size 0.9s var(--ease-out) 0.4s; }
.beat.is-on mark.hl{ background-size: 100% 0.12em; }
.story-word{ position: absolute; z-index: 1; left: 0; top: 50%; white-space: nowrap; pointer-events: none; font-family: var(--font-display); font-weight: 900; font-size: clamp(8rem, 30vw, 28rem); line-height: 0.8; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,0.3); transform: translate(calc((0.45 - var(--p, 0)) * 55vw), -50%); }
.story-grid path{ fill: none; stroke: rgba(255,255,255,0.13); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, calc((var(--p, 0) - var(--s, 0)) * 5), 1)); }
.story-scribble-art{ top: auto; bottom: 14%; height: 26%; }
.story-scribble-art path{ fill: none; stroke: var(--accent-1); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, calc(var(--p, 0) * 1.4), 1)); }
.story-veil{ position: absolute; inset: 0; z-index: 0; background: var(--accent-2); opacity: clamp(0, calc(1.05 - var(--p, 0) * 1.7), 1); pointer-events: none; }
.story-label{ position: absolute; z-index: 1; left: clamp(1.25rem, 5vw, 4rem); top: clamp(5rem, 13vh, 8rem); font-family: var(--font-display); font-weight: 900; font-size: clamp(3rem, 13vw, 10rem); line-height: 0.9; letter-spacing: -0.04em; color: #fff; opacity: clamp(0.12, calc(1 - var(--p, 0) * 1.1), 1); transform: translateY(calc(var(--p, 0) * -30px)); }
.scene-finale .story-label{ top: clamp(5rem, 14vh, 9rem); color: transparent; -webkit-text-stroke: 1.5px var(--accent-1); opacity: clamp(0, calc(var(--p, 0) * 4), 1); }
.scene-poster .story-pin{ justify-content: flex-start; gap: clamp(1rem, 3vh, 2rem); padding-top: clamp(5.5rem, 15vh, 9rem); }
.scene-poster .story-copy{ text-align: left; }
.scene-poster .beat-text{ max-width: 24ch; font-size: clamp(1.6rem, 4.2vw, 3rem); }
.story-poster-art{ position: relative; z-index: 1; width: min(94vw, 760px, calc(46vh * 1.6)); aspect-ratio: 8 / 5; height: auto; margin-top: auto; margin-bottom: clamp(1rem, 4vh, 3rem); background: #0b0b0b; border: 1px solid var(--line); border-radius: var(--radius-md); }
.story-layer{ opacity: clamp(0, calc((var(--p, 0) - var(--s, 0)) * 9), 1); transform: translateY(calc((1 - clamp(0, calc((var(--p, 0) - var(--s, 0)) * 9), 1)) * 16px)); }
.story-line{ position: absolute; left: clamp(1.25rem, 5vw, 4rem); right: clamp(1.25rem, 5vw, 4rem); bottom: clamp(2rem, 8vh, 4rem); height: 1px; background: var(--line); }
.story-line i{ position: absolute; inset: 0; background: var(--accent-1); transform-origin: left; transform: scaleX(var(--p, 0)); }
.scene-finale .story-pin{ gap: 2rem; }
.story-wordmark{ position: relative; z-index: 1; width: min(78vw, 640px); height: auto; color: #fff; opacity: clamp(0.1, calc(var(--p, 0) * 3), 1); transform: scale(calc(0.86 + var(--p, 0) * 0.14)); }
.scene-finale .story-copy{ text-align: center; }
.scene-finale .beat-inner{ justify-content: center; }
.scene-finale .beat-text{ max-width: 24ch; }
.story-static .story-hero{ min-height: 0; }
@media (max-width: 720px){ .beat-label{ -webkit-text-stroke-width: 1px; } .story-poster-art{ width: min(94vw, calc(38vh * 1.6)); margin-top: 1.5rem; } }
.story-notebook path{ fill: none; stroke-dasharray: 1; }
.story-notebook .nb-line{ stroke: rgba(255,255,255,0.1); stroke-width: 1; stroke-dashoffset: calc(1 - clamp(0, calc((var(--p, 0) - var(--s, 0)) * 6), 1)); }
.story-notebook .nb-margin{ stroke: var(--accent-1); stroke-width: 2; stroke-dashoffset: calc(1 - clamp(0, calc(var(--p, 0) * 3), 1)); }
.scene-notebook .story-copy{ padding-left: clamp(0.5rem, 8vw, 7rem); }
.scene-years .beat-text{ max-width: 30ch; }
.story-word-short{ left: auto; right: 6vw; font-size: clamp(14rem, 52vw, 46rem); -webkit-text-stroke-color: rgba(212,45,66,0.55); transform: translateY(-50%) rotate(calc((var(--p, 0) - 0.5) * 26deg)) scale(calc(0.8 + var(--p, 0) * 0.35)); }
.story-mask{ position: absolute; z-index: 1; right: clamp(1.25rem, 8vw, 7rem); top: 50%; width: min(42vw, 430px); height: auto; transform: translateY(-50%) rotate(-6deg); pointer-events: none; }
.story-mask path{ fill: none; stroke: var(--accent-1); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, calc(var(--p, 0) * 2.4), 1)); }
@media (max-width: 720px){ .story-mask{ top: auto; bottom: 8vh; right: 1.25rem; width: 62vw; transform: rotate(-6deg); } }
.story-mask .mask-body{ fill: rgba(212,45,66, calc((var(--p, 0) - 0.3) * 0.5)); }
.story-mask .mask-eye{ stroke: #fff; stroke-width: 2.5; }
.scene-hero .story-word{ -webkit-text-stroke-color: rgba(255,255,255,0.09); }
.scene-hero .story-mask{ width: min(46vw, 480px); }

