/* ==========================================================
   Gauthem Krishna — Portfolio
   Palette: pitch black + white, mint / teal / ocean / mist / gray.
   Tokens first; everything else reads from them.
   ========================================================== */
:root {
  /* palette */
  --black: #000000;
  --white: #ffffff;
  --mint: #4fc0aa;
  --teal: #32818e;
  --ocean: #0a638e;
  --mist: #e6ede6;
  --gray: #858585;

  /* roles */
  --bg: var(--black);
  --surface: #061012;                           /* card: black with a hint of teal */
  --surface-strong: #0a1a1e;
  --line: rgba(230, 237, 230, 0.12);
  --line-strong: rgba(230, 237, 230, 0.24);
  --text: var(--white);
  --muted: rgba(230, 237, 230, 0.74);
  --dim: var(--gray);
  --accent: var(--mint);                       /* buttons, italic accents */
  --accent-hover: #7dd3c2;
  --pop: var(--mint);                          /* labels, numbers */
  --on-accent: var(--black);

  --font-sans: "Gabarito", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, serif;
  --font-mono: "Red Hat Display", ui-sans-serif, system-ui, sans-serif;

  --maxw: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  background: var(--bg);
}
body {
  margin: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--mint); }
::selection { background: var(--mint); color: var(--black); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.center { display: flex; justify-content: center; margin-top: 40px; }
.muted { color: var(--muted); }
.i { width: 1.1em; height: 1.1em; flex: none; }
main, .site-footer { position: relative; z-index: 1; }

.label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pop);
}

/* ---------- Background glow canvas ---------- */
.glow-canvas {
  position: fixed; inset: 0; z-index: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  opacity: .55;
}

/* ---------- Intro loader ---------- */
.loader { display: none; }
.js .loader {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  transition: opacity .7s var(--ease), visibility .7s;
}
.loader.done { opacity: 0; visibility: hidden; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border-radius: 999px;
  font-size: 15px; font-weight: 600;
  border: 1px solid transparent;
  transition: background .25s var(--ease), border-color .25s, color .25s, transform .25s var(--ease), box-shadow .25s;
  white-space: nowrap;
}
.btn .i { transition: transform .25s var(--ease); }
.btn:hover .i { transform: translate(2px, -1px); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; }
.btn-icon { width: 54px; padding: 0; }
.btn-accent {
  background: var(--accent); color: var(--on-accent);
}
.btn-accent:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--surface); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }

.pill-btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 22px;
  border-radius: 999px; border: 1px solid var(--line-strong);
  background: transparent;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text);
  transition: border-color .3s, background .3s, color .3s;
}
.pill-btn .i { transition: transform .3s var(--ease); }
.pill-btn:hover, a:hover > .feature-body .pill-btn { border-color: var(--mint); color: var(--mint); background: rgba(79, 192, 170, .06); }
.pill-btn:hover .i, a:hover .pill-btn .i { transform: translateX(4px); }
.pill-lg { height: 56px; padding: 0 30px; font-size: 13px; }

.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: 15px; }
.text-link .i { color: var(--mint); transition: transform .25s var(--ease); }
.text-link:hover .i, a:hover .text-link .i { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(0, 0, 0, .9);
  border-bottom-color: var(--line);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -0.01em; }
.brand-mark {
  display: block; flex: none;
  width: 36px; height: 36px; border-radius: 11px;
  object-fit: cover;
  border: 1px solid var(--line-strong);
}
.brand-name { font-size: 15px; }
.brand-role { font-family: var(--font-mono); font-size: 10px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  position: relative;
  padding: 8px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--muted);
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); background: rgba(10, 99, 142, .28); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 1px; background: var(--mint);
}
.menu-toggle { display: none; }
.mobile-menu { display: none; }

/* ---------- Eyebrow ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mint); }

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 48px) 0 96px;
  text-align: center;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-title {
  margin-top: 30px;
  font-size: clamp(44px, 7.6vw, 108px);
  line-height: .98;
  letter-spacing: -0.05em;
  font-weight: 600;
  max-width: 16ch;
  color: var(--text);
}
.hero-title em { font-size: 1.1em; padding: 0 .04em; color: var(--mint); }
.hero-meta {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 14px;
  margin-top: 30px; font-size: 17px; color: var(--muted);
}
.hero-meta i { width: 1px; height: 14px; background: var(--line-strong); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 40px; }
.hero-lede { margin-top: 40px; font-size: 16px; color: var(--muted); max-width: 64ch; line-height: 1.7; }

/* ---------- Ticker ---------- */
.ticker {
  position: relative;
  border-block: 1px solid var(--line);
  padding: 20px 0; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; gap: 30px; width: max-content; animation: ticker 50s linear infinite; align-items: center; }
.ticker-track span { font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; letter-spacing: -0.03em; white-space: nowrap; }
.ticker-track .sep { color: var(--dim); font-weight: 400; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); padding-top: clamp(48px, 7vw, 88px); }
.stat { padding: 8px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong {
  display: block; font-size: clamp(38px, 4.6vw, 60px); font-weight: 600; letter-spacing: -0.05em; line-height: 1.05;
  color: var(--text);
}
.stat span { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); max-width: 24ch; }

/* ---------- Sections ---------- */
.section { padding-top: clamp(88px, 12vw, 150px); }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap;
  margin-bottom: clamp(32px, 4vw, 56px); padding-bottom: 28px; border-bottom: 1px solid var(--line);
}
.section-title { margin-top: 14px; font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.045em; line-height: 1; }
.section-desc { max-width: 42ch; color: var(--muted); font-size: 16px; line-height: 1.65; }


/* ---------- Feature cards (professional work) ---------- */
.features { display: grid; gap: clamp(20px, 3vw, 32px); }
.feature-link {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(64px, 6vw, 80px) clamp(20px, 3.4vw, 44px) clamp(24px, 3.4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color .4s, transform .5s var(--ease), box-shadow .5s;
}
.feature-link:hover { border-color: var(--line-strong); }
.badge {
  position: absolute; left: clamp(20px, 3.4vw, 44px); top: 20px;
  display: block;
  font-family: var(--font-mono); font-size: 13px; color: var(--mint);
}
.feature-corner {
  position: absolute; right: clamp(20px, 3.4vw, 44px); top: 32px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim);
}
.feature-media {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10.5;
  background: var(--surface-strong);
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.feature-link:hover .feature-media img { transform: scale(1.05); }
.feature-body { display: flex; flex-direction: column; align-items: flex-start; }
.feature-meta { font-size: 14px; color: var(--muted); }
.feature-body h3 { margin-top: 10px; font-size: clamp(30px, 3.4vw, 48px); letter-spacing: -0.045em; transition: color .3s; }
.feature-link:hover h3 { color: var(--mint); }
.feature-excerpt { margin: 18px 0 28px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips li, .pill {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .02em;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--muted); background: transparent;
}

/* ---------- Work grid (other works) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--muted); font-size: 14px; font-weight: 500; cursor: pointer;
  transition: all .25s;
}
.filter span { font-family: var(--font-mono); font-size: 11px; color: var(--dim); }
.filter:hover { color: var(--text); border-color: rgba(79, 192, 170, .4); }
.filter.is-active { background: var(--mint); color: var(--black); border-color: var(--mint); }
.filter.is-active span { color: rgba(0, 0, 0, .6); }

.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.work-card {
  display: flex; flex-direction: column; gap: 16px;
  padding: 12px 12px 18px;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color .35s, transform .45s var(--ease), box-shadow .45s;
}
.work-card:hover { border-color: var(--line-strong); }
.work-card[hidden] { display: none; }
.work-media { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--surface-strong); }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.work-card:hover .work-media img { transform: scale(1.06); }
.work-arrow {
  position: absolute; right: 12px; top: 12px;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: #fff; color: var(--black);
  opacity: 0; transform: scale(.7) rotate(-45deg);
  transition: opacity .3s, transform .4s var(--ease);
}
.work-card:hover .work-arrow, .work-card:focus-visible .work-arrow { opacity: 1; transform: none; }
.work-info { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 0 6px; }
.work-info h3 { font-size: 19px; letter-spacing: -0.025em; transition: color .3s; }
.work-card:hover h3 { color: var(--mint); }
.work-info p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.work-info .pill { white-space: nowrap; }

/* ---------- Split / experience ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split-side { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 20px; }
.split-side .section-head { margin-bottom: 0; border-bottom: 0; padding-bottom: 0; }
.split-side > p { font-size: 15px; line-height: 1.75; }
.exp-list { list-style: none; border-top: 1px solid var(--line); }
.exp {
  position: relative;
  display: grid; grid-template-columns: 170px 1fr; column-gap: 24px; row-gap: 4px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
  transition: padding .35s var(--ease);
}
.exp::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--mint); transition: width .6s var(--ease); }
.exp:hover { padding-left: 10px; }
.exp:hover::before { width: 100%; }
.exp-period { grid-row: span 2; font-family: var(--font-mono); font-size: 13px; color: var(--dim); padding-top: 4px; }
.exp-role { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.exp-place { font-size: 14px; color: var(--muted); }
.exp:first-child .exp-period { color: var(--mint); }
.about-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service {
  padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; gap: 14px;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color .35s, transform .45s var(--ease);
}
.service:hover { border-color: var(--line-strong); }
.service-top { display: flex; justify-content: space-between; align-items: center; }
.service-top .index { font-family: var(--font-mono); font-size: 12px; color: var(--mint); letter-spacing: .1em; }
.service-icon { width: 30px; height: 30px; color: var(--mint); }
.service h3 { font-size: 23px; letter-spacing: -0.03em; margin-top: 14px; }
.service > p { font-size: 14px; color: var(--muted); line-height: 1.75; }
.checks { list-style: none; display: grid; gap: 10px; margin-top: auto; padding-top: 8px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.checks .i { color: var(--mint); margin-top: 3px; }
.services-grid.full { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- Toolkit ---------- */
.toolkit { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.tool {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 26px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  font-size: 14px; font-weight: 500; color: var(--muted);
  transition: border-color .3s, color .3s, transform .3s var(--ease), background .3s;
}
.tool img { width: 32px; height: 32px; object-fit: contain; border-radius: 8px; filter: grayscale(1) brightness(1.5); opacity: .75; transition: filter .3s, opacity .3s; }
.tool:hover { border-color: var(--line-strong); color: var(--text); }
.tool:hover img { filter: none; opacity: 1; }

/* ---------- CTA ---------- */
.cta { padding-top: clamp(88px, 12vw, 150px); }
.cta-card {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(48px, 8vw, 112px) clamp(24px, 5vw, 72px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  text-align: center;
}
.cta-glow { display: none; }
.cta-card h2 { margin: 18px auto 0; font-size: clamp(38px, 6vw, 84px); letter-spacing: -0.05em; max-width: 15ch; line-height: 1; }
.cta-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 40px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: calc(var(--header-h) + clamp(56px, 9vw, 112px)) 0 clamp(8px, 2vw, 16px); }
.page-title { margin-top: 26px; font-size: clamp(42px, 6.6vw, 96px); letter-spacing: -0.05em; line-height: 1; max-width: 17ch; }
.page-lede { margin-top: 26px; font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); max-width: 70ch; line-height: 1.7; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.contact-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 30px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color .3s, transform .4s var(--ease);
}
.contact-card > .i { width: 26px; height: 26px; color: var(--mint); margin-bottom: 20px; }
.contact-card strong { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; word-break: break-word; }
a.contact-card:hover { border-color: var(--line-strong); }
.phones { display: flex; flex-direction: column; }
.phones a:hover { color: var(--mint); }

/* ---------- Case study ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; }
.progress span { display: block; height: 100%; width: 100%; background: var(--mint); transform-origin: 0 50%; transform: scaleX(0); }
.case-hero { padding: calc(var(--header-h) + clamp(36px, 5vw, 72px)) 0 clamp(32px, 4vw, 48px); }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 500; margin-bottom: 30px; }
.back-link:hover { color: var(--text); }
.back-link .i { transition: transform .25s var(--ease); }
.back-link:hover .i { transform: translateX(-3px); }
.case-hero .eyebrow { display: flex; width: max-content; }
.case-title {
  margin-top: 24px; font-size: clamp(48px, 8.4vw, 124px); letter-spacing: -0.055em; line-height: .95;
  color: var(--text);
  padding-bottom: .05em;
}
.case-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; margin: 44px 0 0; padding-top: 26px; border-top: 1px solid var(--line); }
.case-meta dt { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--mint); }
.case-meta dd { margin: 8px 0 0; font-size: 16px; font-weight: 500; }
.case-cover { margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface-strong); }
.case-cover img { width: 100%; max-height: 80vh; object-fit: cover; }

.case-layout { display: grid; grid-template-columns: 220px minmax(0, 760px); justify-content: space-between; gap: 48px; padding-top: clamp(56px, 7vw, 96px); }
.case-layout.no-toc { grid-template-columns: minmax(0, 820px); justify-content: center; }
.case-layout.no-toc .case-aside { display: none; }
.toc { position: sticky; top: calc(var(--header-h) + 32px); }
.toc ol { list-style: none; margin-top: 14px; border-left: 1px solid var(--line); }
.toc a {
  display: block; padding: 7px 0 7px 16px; margin-left: -1px;
  border-left: 1px solid transparent;
  font-size: 14px; color: var(--dim); line-height: 1.35;
  transition: color .2s, border-color .2s;
}
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--mint); border-left-color: var(--mint); }

.prose { font-size: 17px; line-height: 1.8; color: #d6d2d6; }
.prose > * + * { margin-top: 18px; }
.prose h2 { margin-top: 72px; font-size: clamp(30px, 3.2vw, 42px); color: var(--text); letter-spacing: -0.04em; line-height: 1.12; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 44px; font-size: 23px; color: var(--text); letter-spacing: -0.025em; line-height: 1.25; }
.prose h4 { margin-top: 32px; font-size: 18px; color: var(--mint); letter-spacing: -0.015em; }
.prose h5, .prose h6 { margin-top: 24px; font-size: 16px; color: var(--text); }
.prose .note { font-family: var(--font-mono); font-size: 13px; color: var(--muted); font-weight: 400; letter-spacing: .02em; }
.prose strong { color: var(--text); font-weight: 700; }
.prose h2 strong, .prose h3 strong, .prose h4 strong { font-weight: inherit; }
.prose a:not(.btn) { color: var(--mint); text-decoration: underline; text-decoration-color: rgba(79, 192, 170, .4); text-underline-offset: 3px; word-break: break-word; }
.prose a:not(.btn):hover { text-decoration-color: currentColor; }
.prose ul, .prose ol { padding-left: 0; list-style: none; }
.prose li { position: relative; padding-left: 28px; }
.prose li + li { margin-top: 12px; }
.prose ul > li::before { content: "–"; position: absolute; left: 4px; top: 0; color: var(--mint); }
.prose ol { counter-reset: n; }
.prose ol > li { counter-increment: n; }
.prose ol > li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: .25em; font-family: var(--font-mono); font-size: 12px; color: var(--mint); }
.prose .shot { margin: 44px 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface-strong); }
.prose .shot + .shot { margin-top: 20px; }
.prose .btn { margin-top: 4px; }

.next-wrap { padding-top: clamp(88px, 11vw, 140px); }
.next-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 32px;
  padding: clamp(20px, 3vw, 36px); border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color .35s, box-shadow .45s;
}
.next-card:hover { border-color: var(--line-strong); }
.next-text h2 { margin: 12px 0 8px; font-size: clamp(34px, 4.6vw, 64px); letter-spacing: -0.05em; transition: color .3s; }
.next-card:hover h2 { color: var(--mint); }
.next-text .text-link { margin-top: 24px; }
.next-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface-strong); }
.next-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.next-card:hover .next-media img { transform: scale(1.05); }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(88px, 11vw, 140px); border-top: 1px solid var(--line); padding-top: 60px; background: rgba(0, 0, 0, .6); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-blurb { margin-top: 16px; font-size: 14px; max-width: 42ch; }
.footer-links { list-style: none; display: grid; gap: 10px; margin-top: 16px; font-size: 15px; }
.footer-links a { color: var(--muted); transition: color .2s; }
.footer-links a:hover { color: var(--mint); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 60px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.to-top:hover { color: var(--text); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .js .loader { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .toolkit { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-layout { grid-template-columns: minmax(0, 1fr); }
  .case-aside { display: none; }
  .brand-role { display: none; }
}
@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .menu-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; margin-left: auto; padding: 0 11px;
    background: transparent; border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer;
  }
  .menu-toggle span { display: block; height: 1.5px; background: var(--text); transition: transform .3s var(--ease); }
  .menu-open .menu-toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-open .menu-toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .menu-open .site-header { bottom: 0; background: var(--bg); overflow-y: auto; }
  .mobile-menu { padding: 8px var(--gutter) 24px; flex-direction: column; }
  .menu-open .mobile-menu { display: flex; }
  .mobile-menu a:not(.btn) { padding: 14px 0; font-size: 24px; font-weight: 600; letter-spacing: -0.03em; border-bottom: 1px solid var(--line); color: var(--muted); }
  .mobile-menu a[aria-current="page"] { color: var(--text); }
  .mobile-menu .btn { margin-top: 20px; }
  .menu-open { overflow: hidden; }

  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .feature-link { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .split-side { position: static; }
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-card { grid-template-columns: 1fr; }
  .next-media { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .brand-name { display: none; }
  .hero { min-height: auto; padding-bottom: 120px; }
  .hero-title { font-size: clamp(40px, 11.5vw, 60px); }
  .hero-meta { font-size: 15px; }
  .work-grid, .services-grid, .services-grid.full, .contact-grid { grid-template-columns: 1fr; }
  .toolkit { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .exp { grid-template-columns: 1fr; }
  .exp-period { grid-row: auto; }
  .stat { padding-left: 16px; }
  .stat strong { font-size: 36px; }
  .prose { font-size: 16px; }
  .hero-actions .btn-lg:not(.btn-icon) { flex: 1; }
  .feature-corner { display: none; }
}

/* ---------- Experience details & education ---------- */
.exp-points { grid-column: 2; list-style: none; margin-top: 10px; display: grid; gap: 6px; }
.exp-points li { position: relative; padding-left: 18px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.exp-points li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 5px; height: 5px; border-radius: 1px; background: var(--mint); transform: rotate(45deg); }
.edu-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.edu {
  display: flex; flex-direction: column; gap: 10px;
  padding: 26px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface);
}
.edu strong { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
@media (max-width: 1080px) { .edu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .edu-grid { grid-template-columns: 1fr; } .exp-points { grid-column: 1; } }

/* ---------- Media captions & video ---------- */
.prose .shot video { display: block; width: 100%; height: auto; background: var(--black); }
.prose .shot figcaption {
  padding: 12px 16px; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em; color: var(--muted);
  background: rgba(0, 0, 0, .55);
}

/* Label font (Red Hat Display) reads best at medium weight */
.label, .index, .badge, .feature-corner, .chips li, .pill, .pill-btn, .filter span,
.exp-period, .case-meta dt, .brand-role, .scroll-cue, .prose .note, .prose .shot figcaption,
.prose ol > li::before, .service-top .index { font-weight: 500; }
@media (max-width: 600px) {
  .hero-meta { flex-direction: column; gap: 2px; }
  .hero-meta i { display: none; }
}

/* ---------- Portrait ---------- */
.eyebrow-avatar { gap: 12px; color: var(--muted); }
.eyebrow-avatar img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.page-hero-split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.portrait {
  position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4 / 5; max-width: 420px; justify-self: end; width: 100%;
  border: 1px solid var(--line-strong);
}
.portrait::before { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; z-index: 1; pointer-events: none; background: linear-gradient(transparent, rgba(0, 0, 0, .78)); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
.portrait figcaption {
  position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: .06em; color: var(--text);
}
.portrait.compact { aspect-ratio: 1; max-width: 320px; }
@media (max-width: 900px) {
  .page-hero-split { grid-template-columns: 1fr; }
  .portrait { justify-self: start; max-width: 360px; order: -1; }
  .portrait.compact { max-width: 220px; }
}

/* Alternate feature rows: image left, then image right */
.feature:nth-child(even) .feature-link { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.feature:nth-child(even) .feature-media { order: 2; }
.feature:nth-child(even) .badge { left: auto; right: clamp(20px, 3.4vw, 44px); }
.feature:nth-child(even) .feature-corner { right: auto; left: clamp(20px, 3.4vw, 44px); }
@media (max-width: 900px) {
  .feature:nth-child(even) .feature-link { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-media { order: 0; }
}
.feature-link, .next-card { position: relative; }

/* Still rendering for mockup screenshots (?shot) */
.shot *, .shot *::before, .shot *::after { transition: none !important; animation: none !important; }
.shot .reveal { opacity: 1 !important; transform: none !important; }
.shot .loader { display: none !important; }
html.shot { scroll-behavior: auto !important; }

/* Heroes without a portrait sit centred, like the homepage hero */
.page-hero-text.centered { display: flex; flex-direction: column; align-items: center; text-align: center; }
.page-hero-text.centered .page-title { max-width: 20ch; }
.page-hero-text.centered .page-lede { max-width: 62ch; }

/* ---------- Search button + command palette ---------- */
.search-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 10px 0 12px; margin-left: 4px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: transparent;
  color: var(--muted); cursor: pointer; transition: color .2s, border-color .2s;
}
.search-btn:hover { color: var(--text); border-color: var(--text); }
.search-btn .i { width: 16px; height: 16px; }
kbd {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .04em;
  padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--muted);
}
.palette {
  position: fixed; inset: 0; z-index: 120;
  display: flex; justify-content: center; align-items: flex-start; padding: 14vh 16px 16px;
  background: rgba(0, 0, 0, .78);
}
.palette[hidden] { display: none; }
.palette-box {
  width: 100%; max-width: 560px; border-radius: var(--radius);
  background: var(--surface-strong); border: 1px solid var(--line-strong); overflow: hidden;
}
.palette-input {
  width: 100%; height: 56px; padding: 0 20px; border: 0; border-bottom: 1px solid var(--line);
  background: transparent; color: var(--text); font: inherit; font-size: 17px; outline: none;
}
.palette-input::placeholder { color: var(--dim); }
.palette-list { list-style: none; max-height: 50vh; overflow-y: auto; padding: 8px; }
.palette-list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: 15px;
}
.palette-list li small { font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.palette-list li[aria-selected="true"], .palette-list li:hover { background: rgba(255, 255, 255, .06); }
.palette-list li[aria-selected="true"] span { color: var(--mint); }
.palette-empty { color: var(--dim); cursor: default !important; }
.palette-hint { padding: 10px 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.palette-open, .lightbox-open { overflow: hidden; }


/* ---------- Lightbox ---------- */
.zoomable { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 4vh 4vw;
  background: rgba(0, 0, 0, .9); cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 12px; object-fit: contain; }
.lightbox button {
  position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-size: 24px; line-height: 1; cursor: pointer;
}

/* ---------- Try-it quiz (styled like the HP-appen app) ---------- */
.quiz {
  --hp-blue: #3a6df0; --hp-green: #22a447; --hp-red: #e0463f; --hp-ink: #1d2433; --hp-muted: #6a7389;
  margin: 36px 0; padding: 22px; border-radius: var(--radius);
  background: #fff; color: var(--hp-ink); font-family: var(--font-sans);
}
.quiz-bar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.quiz-tag { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #fff3c7; color: #7a5a00; }
.quiz-meta { font-size: 13px; color: var(--hp-muted); }
.prose .quiz-q { font-size: 20px; font-weight: 600; color: var(--hp-ink); margin: 0 0 16px; }
.prose .quiz-opts { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: none; }
.prose .quiz-opts > li { padding: 0; margin: 0; }
.prose .quiz-opts > li::before { content: none; }
.quiz-opt {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 14px 16px; border-radius: 12px; border: 1.5px solid #dfe3ec; background: #fff;
  font: inherit; font-size: 18px; font-weight: 600; color: var(--hp-ink); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.quiz-opt:hover:not(:disabled) { border-color: var(--hp-blue); background: #f5f8ff; }
.quiz-opt:disabled { cursor: default; }
.quiz-key { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #cfd5e2; font-size: 12px; color: var(--hp-muted); flex: none; }
.quiz-opt.is-right { border-color: var(--hp-green); background: #effaf2; }
.quiz-opt.is-right .quiz-key { background: var(--hp-green); border-color: var(--hp-green); color: #fff; }
.quiz-opt.is-wrong { border-color: var(--hp-red); background: #fdf1f0; }
.quiz-opt.is-wrong .quiz-key { background: var(--hp-red); border-color: var(--hp-red); color: #fff; }
.quiz-expl { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: #f3f6fd; font-size: 15px; line-height: 1.6; color: var(--hp-ink); }
.quiz-expl p + p { margin-top: 6px; }
.prose .quiz-expl strong { color: var(--hp-ink); }
.quiz-result { font-weight: 700; }
.quiz-reset { margin-top: 10px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--hp-blue); background: transparent; color: var(--hp-blue); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.prose .quiz-caption { margin-top: 14px; font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: .02em; color: var(--hp-muted); }

/* ---------- Local time ---------- */
.local-time { font-size: 13px; }
.footer-time { color: var(--dim); }

@media (max-width: 900px) {
  .search-btn { margin-left: auto; }
  .search-btn kbd { display: none; }
  .menu-toggle { margin-left: 8px; }
}
.palette-input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }

/* ---------- Intro greetings ---------- */
.loader-word {
  margin: 0; font-weight: 600; letter-spacing: -0.03em; color: var(--text);
  font-size: clamp(36px, 6vw, 72px); line-height: 1.2; text-align: center; padding: 0 16px;
}
.loader-word.flash { animation: greet .32s var(--ease) both; }
.loader-word.final { color: var(--mint); font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
@keyframes greet { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Hero rotating word ---------- */
.rotator { display: inline-block; }
.rotator-word { display: inline-block; transition: opacity .28s var(--ease), transform .28s var(--ease); }
.rotator-word.out { opacity: 0; transform: translateY(.25em); }

/* ==========================================================
   Page transitions (cross-document View Transitions)
   ========================================================== */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
.glow-canvas { view-transition-name: ribbons; }
::view-transition-old(root) { animation: vt-out .32s cubic-bezier(.4, 0, .2, 1) both; }
::view-transition-new(root) { animation: vt-in .6s cubic-bezier(.2, .7, .2, 1) .08s both; }
::view-transition-old(ribbons), ::view-transition-new(ribbons) { animation: none; }
::view-transition-group(*) { animation-duration: .6s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
@keyframes vt-out { to { opacity: 0; transform: translateY(-20px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(28px); } }

/* Fallback for browsers without them: fade the page in and out */
.no-vt main, .no-vt .site-footer { animation: vt-in .55s cubic-bezier(.2, .7, .2, 1) both; }
.no-vt.leaving main, .no-vt.leaving .site-footer { opacity: 0; transform: translateY(-16px); transition: opacity .25s ease, transform .25s ease; }

/* ==========================================================
   Smooth scrolling (Lenis) + scroll-linked motion
   ========================================================== */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* Staggered reveals: siblings arrive one after another (delay set per item in JS) */
.js .reveal { transition-delay: var(--d, 0ms); }

/* Gentle parallax on large images */
.parallax { translate: 0 var(--py, 0px); scale: 1.08; will-change: translate; }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .no-vt main, .no-vt .site-footer { animation: none; }
  .parallax { translate: none; scale: none; }
}
.shot main, .shot .site-footer { animation: none !important; }
html.lenis { scroll-behavior: auto !important; }
.eyebrow-avatar span { white-space: nowrap; }

/* Portrait beside the homepage bio */
.home-portrait { justify-self: start; max-width: 280px; aspect-ratio: 4 / 5; margin-bottom: 8px; }
@media (max-height: 960px) { .split-side.has-portrait { position: static; } }
@media (max-width: 900px) { .home-portrait { max-width: 240px; order: 0; } }
.eyebrow { white-space: nowrap; }

/* Greeting above the homepage headline — continues from the intro's "Hi, I’m Gauthem." */
.hero-hello {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: clamp(26px, 3vw, 38px); line-height: 1.1; letter-spacing: -0.01em;
  color: var(--mint);
}
.hero-hello + .hero-title { margin-top: 18px; }

/* ==========================================================
   Hero showcase reel
   ========================================================== */
.showcase {
  --sc-dur: 4200ms;
  position: relative; width: 100%; max-width: 1040px; margin-top: 56px; text-align: left;
  border-radius: var(--radius-lg); border: 1px solid var(--line-strong);
  background: var(--surface); overflow: hidden;
}
.sc-stage { position: relative; aspect-ratio: 16 / 9; }
.sc-scene { position: absolute; inset: 0; padding: clamp(24px, 4.4vw, 60px); display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.sc-scene[hidden] { display: none; }
.sc-head { font-family: var(--font-mono); font-weight: 500; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--mint); }

/* entrance choreography: children carry --i for their stagger */
.sc-in { opacity: 0; transform: translateY(18px); }
.sc-pop { opacity: 0; transform: scale(.7); }
.sc-scene.play .sc-in { animation: sc-in .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms + 120ms); }
.sc-scene.play .sc-pop { animation: sc-pop .5s cubic-bezier(.3, 1.4, .5, 1) both; animation-delay: calc(var(--i, 0) * 70ms + 700ms); }
.sc-scene.out { animation: sc-out .4s var(--ease) both; }
@keyframes sc-in { to { opacity: 1; transform: none; } }
@keyframes sc-pop { to { opacity: 1; transform: none; } }
@keyframes sc-out { to { opacity: 0; transform: translateY(-12px); } }

/* 1 · Intro */
.sc-intro { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.sc-photo { width: clamp(150px, 22vw, 260px); aspect-ratio: 1; object-fit: cover; border-radius: 24px; border: 1px solid var(--line-strong); }
.sc-kicker { font-family: var(--font-mono); font-weight: 500; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--mint); }
.sc-name { margin-top: 10px; font-size: clamp(36px, 6vw, 76px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.sc-line { margin-top: 14px; font-size: clamp(16px, 1.8vw, 22px); color: var(--text); }
.sc-dim { margin-top: 6px; color: var(--muted); font-size: clamp(14px, 1.4vw, 17px); }

/* 2 · Impact */
.sc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.sc-stat { padding: 8px 20px; border-left: 1px solid var(--line); }
.sc-stat:first-child { border-left: 0; padding-left: 0; }
.sc-stat strong { display: block; white-space: nowrap; font-size: clamp(32px, 4.4vw, 58px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.sc-stat span { display: block; margin-top: 12px; font-size: 14px; color: var(--muted); max-width: 22ch; }

/* 3 · Journey */
.sc-track { position: relative; }
.sc-rail { position: absolute; left: 0; right: 0; top: 34px; height: 1px; background: var(--line-strong); }
.sc-rail::after { content: ""; position: absolute; inset: 0; background: var(--mint); transform-origin: 0 50%; transform: scaleX(0); }
.sc-scene.play .sc-rail::after { animation: sc-rail 2.4s cubic-bezier(.5, 0, .2, 1) .3s forwards; }
@keyframes sc-rail { to { transform: scaleX(1); } }
.sc-nodes { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.sc-node { display: flex; flex-direction: column; gap: 6px; }
.sc-scene.play .sc-node { animation-delay: calc(var(--i) * 380ms); }
.sc-year { font-family: var(--font-mono); font-weight: 500; font-size: 13px; color: var(--mint); height: 20px; }
.sc-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--black); border: 2px solid var(--mint); margin: 2px 0 10px; }
.sc-node:last-child .sc-dot { background: var(--mint); }
.sc-node strong { font-size: clamp(14px, 1.35vw, 18px); overflow-wrap: anywhere; font-weight: 600; letter-spacing: -0.02em; }
.sc-node small { font-size: 13px; color: var(--muted); line-height: 1.4; }

/* 4 · Work */
.sc-reel { overflow: hidden; margin: 0 calc(-1 * clamp(24px, 4.4vw, 60px)); padding: 0 clamp(24px, 4.4vw, 60px); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.sc-reel-track { display: flex; gap: 18px; width: max-content; }
.sc-scene.play .sc-reel-track { animation: sc-reel 16s linear both; }
@keyframes sc-reel { from { transform: translateX(8%); } to { transform: translateX(-38%); } }
.sc-tile { margin: 0; width: clamp(200px, 26vw, 300px); }
.sc-tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); display: block; }
.sc-tile figcaption { margin-top: 10px; font-size: 15px; font-weight: 600; }

/* 5 · Craft */
.sc-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.sc-step { font-size: clamp(24px, 3.4vw, 44px); font-weight: 600; letter-spacing: -0.04em; }
.sc-arrow { font-size: clamp(20px, 2.6vw, 32px); color: var(--mint); }
.sc-tools { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.sc-tool { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.sc-tool img { width: 22px; height: 22px; object-fit: contain; border-radius: 5px; }

/* 6 · Outro */
.sc-outro { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 30px; }
.sc-big { font-size: clamp(30px, 5.2vw, 68px); font-weight: 600; letter-spacing: -0.05em; line-height: 1.02; max-width: 15ch; }
.sc-big em { color: var(--mint); }
.sc-cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* Player controls */
.sc-controls { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line); }
.sc-play { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--text); display: grid; place-items: center; cursor: pointer; }
.sc-play:hover { border-color: var(--text); }
.sc-icon-pause { width: 10px; height: 11px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.showcase.paused .sc-icon-pause { width: 0; height: 0; border: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.sc-segs { flex: 1; display: flex; gap: 6px; }
.sc-seg { flex: 1; height: 18px; padding: 0; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; }
.sc-seg i { display: block; width: 100%; height: 3px; border-radius: 3px; background: var(--line-strong); position: relative; overflow: hidden; }
.sc-seg i::after { content: ""; position: absolute; inset: 0; background: var(--mint); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.sc-seg.done i::after { transform: scaleX(1); }
.sc-label { flex: none; min-width: 92px; text-align: right; font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.showcase.paused .sc-seg.active i::after, .showcase.paused .sc-scene, .showcase.paused .sc-scene * { animation-play-state: paused !important; }

@media (max-width: 760px) {
  .sc-stage { aspect-ratio: 4 / 5; }
  .sc-intro { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .sc-stats { grid-template-columns: 1fr 1fr; row-gap: 26px; }
  .sc-stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .sc-rail { display: none; }
  .sc-nodes { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .sc-dot { display: none; }
  .sc-tools { grid-template-columns: 1fr 1fr; }
  .sc-tool:nth-child(n + 9) { display: none; }
  .sc-label { display: none; }
}

/* Still versions: reduced motion and mockup screenshots */
.shot .sc-in, .shot .sc-pop { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .sc-in, .sc-pop { opacity: 1; transform: none; }
  .sc-rail::after { transform: scaleX(1); }
}
.showcase.idle .sc-seg.active i::after, .showcase.idle .sc-scene, .showcase.idle .sc-scene * { animation-play-state: paused !important; }
.hero-inner { width: 100%; }
