
/* ============================================================
   Rahul Sharma · Portfolio 26 — "Glass Column" design system
   v2.1 — full white bg, monochrome primaries (black/white),
   weights 400–600 only, CFB button system (buttons-48)
   ============================================================ */

:root {
  --bg: #ffffff;
  --surface: rgba(255, 255, 255, .68);
  --surface-solid: #FFFFFF;
  --text: #0A0A0A;
  --muted: #5C6066;
  --border: rgba(10, 10, 10, .10);
  --shadow: 0 8px 30px rgba(10, 10, 10, .07);

  /* Primary = black in light mode */
  --primary: #0A0A0A;
  --on-primary: #FFFFFF;

  /* Metallic ring for buttons only */
  --metal-ring: linear-gradient(
    135deg,
    rgba(10, 10, 10, .40) 0%,
    rgba(255, 255, 255, .90) 24%,
    rgba(10, 10, 10, .22) 46%,
    rgba(190, 190, 190, .85) 66%,
    rgba(255, 255, 255, .80) 82%,
    rgba(10, 10, 10, .38) 100%
  );

  --header-h: 56px;
}

[data-theme="dark"] {
  --bg: #0D0E11;
  --surface: rgba(255, 255, 255, .06);
  --surface-solid: #1B1C1E;
  --text: #F5F5F5;
  --muted: #A2A8B3;
  --border: rgba(255, 255, 255, .09);
  --shadow: 0 8px 30px rgba(0, 0, 0, .45);

  /* Primary = white in dark mode */
  --primary: #ffffff;
  --on-primary: #0D0E11;

  --metal-ring: linear-gradient(
    130deg,
    rgba(255, 255, 255, .55) 0%,
    rgba(255, 255, 255, .15) 25%,
    rgba(255, 255, 255, .70) 45%,
    rgba(255, 255, 255, .12) 65%,
    rgba(255, 255, 255, .55) 85%,
    rgba(255, 255, 255, .30) 100%
  );
}

/* ============================================================
   Typeface: Geist (Google Fonts, weights 400/500/600)
   Drop the .woff2 files into ./fonts/ before deploy.
   Until then the site falls back to system sans gracefully.
   ============================================================ */

* { box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  transition: background-color .35s ease, color .35s ease;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Column layout ---------- */

.column {
  max-width: 1024px;
  margin-inline: auto;
  min-height: 100svh;
  padding: 88px clamp(16px, 5vw, 28px) 48px;
}

main { display: block; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  background: var(--primary);
  color: var(--on-primary);
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
}
.skip-link:focus { left: 12px; }

/* ---------- Glass header ---------- */

.site-head-wrap {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 50;
  max-width: 1024px;
  margin-inline: auto;
  padding-inline: 16px;
}

/* ktz.dk-style header: avatar + segmented tab nav + utility on the right */
.site-head {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 6px 6px 6px 8px;
  border-radius: 999px;
  background: var(--surface);
  border: none;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: var(--shadow);
}

.avatar-link {
  display: inline-flex;
  flex: none;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  transition: transform .3s ease;
}
.avatar-link:hover .avatar { transform: scale(1.06); }

/* Rail keeps the large 72px portrait on desktop */
.rail-avatar .avatar {
  width: 72px;
  height: 72px;
}

.segmented {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 44px;
  max-height: 44px;
  padding: 4px;
  border-radius: 18px;
  background: var(--seg-bg, #F1F1EF);
}

[data-theme="dark"] .segmented { background: rgba(255, 255, 255, .07); }

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 18px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-radius: 14px;
  transition: color .3s ease, background-color .3s ease,
              box-shadow .3s ease, font-weight .3s ease;
}
.nav-link:hover { color: var(--text); }

.nav-link svg {
  width: 16px;
  height: 16px;
  display: none;   /* icons show only on the active tab */
}

/* Active tab: solid white pill (paper fill in dark mode) */
.nav-link[aria-current="page"] {
  background: var(--surface-solid);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .10);
}
.nav-link[aria-current="page"] svg { display: block; }

[data-theme="dark"] .nav-link[aria-current="page"] {
  box-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}

.theme-toggle {
  border: none;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

/* ---------- Header actions: single-icon theme toggle ---------- */

.theme-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background-color .3s ease, transform .3s ease;
  box-shadow: none;
  outline: none;
}
.theme-toggle:hover { background: rgba(10,10,10,.06); }
[data-theme="dark"] .theme-toggle:hover { background: rgba(255,255,255,.08); }
.theme-toggle:active { transform: scale(.94); }

.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* ---------- Floating Ask AI button ---------- */

.cfb-fab-wrap {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 85;
}

.cfb-fab-wrap .cfb-slot--fab {
  flex: 0 0 auto;
}

.cfb-fab-wrap:has([aria-expanded="true"]) .cfb-slot--fab {
  transform: scale(.96);
}

/* Primary nav lives in the header on small screens;
   on desktop the sticky rail takes over. */
@media (min-width: 900px) {
  .site-nav { display: none; }
  .site-head {
    width: fit-content;
    margin-left: auto;
    padding: 4px;
    height: 44px;
  }
  .site-head .avatar-link { display: none; }
  .site-head { gap: 0; }
}

.chat-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10, 10, 10, .35);
  opacity: 0;
  transition: opacity .25s ease;
}
.chat-root.open .chat-backdrop { opacity: 1; }

.chat-panel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 95;
  display: flex;
  flex-direction: column;
  width: min(400px, calc(100vw - 32px));
  height: min(80vh, calc(100svh - 32px));
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(10,10,10,.14), inset 0 1px 0 rgba(255,255,255,.7);
  overflow: hidden;
  transform: translateY(12px) scale(.98);
  opacity: 0;
  pointer-events: none;
  transition: transform .25s cubic-bezier(.16, 1, .3, 1), opacity .25s ease;
}
@media (max-width: 640px) {
  .chat-panel {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 80vh;
    max-height: 80vh;
    border-radius: 24px 24px 0 0;
  }
}
.chat-panel::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 340px;
  background: radial-gradient(620px 360px at 50% 100%, rgba(255,122,69,.58) 0%, rgba(255,90,31,.34) 38%, rgba(255,90,31,0) 74%);
  pointer-events: none;
  z-index: 0;
  animation: chatGlowLive 2.2s ease-in-out infinite;
}
[data-theme="dark"] .chat-panel::after {
  background: radial-gradient(620px 360px at 50% 100%, rgba(255,122,69,.46) 0%, rgba(255,90,31,.26) 38%, rgba(255,90,31,0) 74%);
}
.chat-log, .chat-form, .chat-head, .chat-chips { position: relative; z-index: 1; }
@keyframes chatGlowLive {
  0%, 100% { opacity: .85; transform: scaleY(1) scaleX(1); filter: brightness(1); }
  50% { opacity: 1; transform: scaleY(1.1) scaleX(1.03); filter: brightness(1.12); }
}
@media (prefers-reduced-motion: reduce) { .chat-panel::after { animation: none; } }
.chat-panel:has(.chat-form input:focus)::after { animation-duration: 1.6s; }
[data-theme="dark"] .chat-panel {
  background: rgba(23,24,29,.78);
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 8px 32px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.10);
}
.chat-log { scrollbar-width: thin; }
.chat-msg.bot { background: rgba(255,255,255,.92); }
[data-theme="dark"] .chat-msg.bot { background: rgba(255,255,255,.06); }
.chat-root.open .chat-panel {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.chat-head img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.chat-head strong { font-weight: 600; font-size: .9375rem; transition: font-weight .1s linear, letter-spacing .1s linear; }
.chat-head strong.kinetic { will-change: font-weight, letter-spacing; }
.chat-head small { display: block; font-size: .8125rem; color: var(--muted); }

.chat-close {
  margin-left: auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.chat-close:hover { background: var(--border); color: var(--text); }
.chat-close svg { width: 16px; height: 16px; }

.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: .9375rem;
  line-height: 1.5;
}
.chat-msg.bot {
  align-self: flex-start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-bottom-left-radius: 6px;
}
.chat-msg.user {
  align-self: flex-end;
  background: var(--primary);
  color: var(--on-primary);
  border-bottom-right-radius: 6px;
}

.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 10px;
}
.chat-chip {
  font-family: inherit;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.chat-chip:hover { border-color: var(--text); background: var(--border); }

.chat-form {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid transparent;
  background: transparent;
}
.chat-form input {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: .9375rem;
  color: var(--text);
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 999px;
  padding: 10px 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 1px 6px rgba(0,0,0,.06);
  transition: border-color .3s ease, box-shadow .3s ease;
}
[data-theme="dark"] .chat-form input {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.chat-form input::placeholder { color: var(--muted); opacity: .7; }
.chat-form input:focus { outline: none; border-color: rgba(255,122,69,.55); box-shadow: 0 0 0 3px rgba(255,122,69,.18), inset 0 1px 0 rgba(255,255,255,.6); }
[data-theme="dark"] .chat-form input:focus { border-color: rgba(255,122,69,.5); box-shadow: 0 0 0 3px rgba(255,122,69,.14); }
.chat-form button {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--on-primary);
  background:
    linear-gradient(var(--primary), var(--primary)) padding-box,
    var(--metal-ring) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
}
.chat-form button:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 4px 12px rgba(0, 0, 0, .16);
}
.chat-form button:active { transform: translateY(0); box-shadow: none; }
.chat-form button svg { width: 16px; height: 16px; }

.chat-note {
  padding: 0 16px 12px;
  font-size: .8125rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- Type ---------- */

.eyebrow {
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

.display {
  font-size: clamp(1.625rem, 4.2vw, 2.125rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 16px;
}

/* Heading fills the same measure as body copy; first line stays put */
.display { max-width: 26ch; }
.h-line1 { display: block; }
.h-rest { display: block; }

h2 {
  font-size: clamp(1.5rem, 3.5vw, 1.875rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 12px;
}

h3 {
  font-size: clamp(1.1875rem, 2.5vw, 1.375rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; }
em { font-style: italic; }

.small { font-size: .9375rem; color: var(--muted); }

.muted { color: var(--muted); }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Sections & rhythm ---------- */

.section { margin-top: 80px; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
}
.section-head h2 { margin: 0; white-space: nowrap; }

.sec-num {
  display: none;
}

/* ---------- Scroll progress hairline ---------- */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 80;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ---------- Editorial layout: sticky rail + content ---------- */

.layout { display: block; }

.rail { display: none; }

@media (min-width: 900px) {
  .layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 72px;
  }
  .rail {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 88px;
    align-self: start;
  }
  .page-home .column { padding-top: 88px; }
  .page-case-study .column { padding-top: 88px; }
  /* Right column starts level with the hero */
  .content > .hero,
  .content > .cs-hero { padding-top: 20px; }
}

.rail-avatar { margin-bottom: 4px; }
.rail-avatar .avatar { border: none; }

.rail-name {
  margin: 0 0 2px;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.rail-role {
  margin: 0;
  font-size: .9375rem;
  color: var(--muted);
}

.rail .status-chip { align-self: flex-start; }

.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.rail-nav a {
  font-size: .9375rem;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 0;
  transition: color .3s ease, padding-left .3s ease;
}
.rail-nav a:hover { color: var(--text); padding-left: 6px; }

.rail-meta {
  margin: 0;
  font-size: .9375rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 16px;
  line-height: 1.7;
}

/* ---------- Hero ---------- */

.hero { padding-block: 24px 0; }

.column { position: relative; z-index: 1; }
.magnet-btn { transition: transform 0.15s ease-out; }
.btn, .theme-toggle, .status-chip { transition: transform 0.15s ease-out; will-change: transform; }

.hero-sub {
  max-width: 46ch;
  font-size: clamp(1rem, 2.5vw, 1.0625rem);
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.6;
}

/* Matrix/glitch name — locked width so scramble never reflows hero */
.name-glitch {
  display: inline-block;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  min-width: 12.5ch;
}

.name-glitch.glitching {
  text-shadow:
    2px 0 rgba(255, 45, 85, .55),
    -2px 0 rgba(0, 255, 234, .55);
}



/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--border);
  margin-top: 48px;
  padding: 12px 0;
  user-select: none;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee-track span {
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.marquee-track i {
  font-style: normal;
  font-size: .5rem;
  color: var(--border);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- Shared hero bits ---------- */

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface-solid);
  border-radius: 999px;
  padding: 6px 14px;
  text-decoration: none;
  transition: transform .3s ease, box-shadow .3s ease;
}
.status-chip:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 5px rgba(34,197,94,.14);
  animation: live-pulse 1.8s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(34,197,94,.14); }
  50% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ---------- Ghost numerals on media tiles ---------- */

.ghost-num {
  position: absolute;
  top: 10px;
  left: 22px;
  font-size: clamp(56px, 8vw, 88px);
  font-weight: 600;
  line-height: 1;
  color: rgba(10, 10, 10, .055);
  letter-spacing: -0.03em;
  pointer-events: none;
  user-select: none;
  transition: color .3s ease;
}
[data-theme="dark"] .ghost-num { color: rgba(255, 255, 255, .06); }
.case-card:hover .ghost-num { color: rgba(10, 10, 10, .12); }
[data-theme="dark"] .case-card:hover .ghost-num { color: rgba(255, 255, 255, .12); }

.case-media img { position: relative; }

.case-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--muted);
  z-index: 1;
}

.case-media--wide { aspect-ratio: 21 / 9; }
.case-media--wide img { width: min(30%, 200px); }

.case-card--row .case-title { margin-top: 20px; }

/* ---------- About / Expertise / Writing ---------- */

.about { max-width: 62ch; }

.expertise-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.expertise-list li {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  transition: padding-left .3s ease;
}
.expertise-list li:last-child { border-bottom: 1px solid var(--border); }
.expertise-list li:hover { padding-left: 10px; }
.expertise-list strong { font-weight: 600; }
.expertise-list span { font-size: .9375rem; color: var(--muted); }

.writing-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.writing-list a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: padding-left .3s ease;
}
.writing-list li:last-child a { border-bottom: 1px solid var(--border); }
.writing-list a:hover { padding-left: 10px; }

.writing-title { font-weight: 500; }
.writing-meta { margin-left: auto; font-size: .9375rem; color: var(--muted); }
.writing-list svg { width: 16px; height: 16px; color: var(--muted); flex: none; }

/* ---------- Underline sweep ---------- */

.u-sweep {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 0% 2px;
  background-position: 0 100%;
  transition: background-size .4s ease;
  text-decoration: none;
}
.u-sweep:hover { background-size: 100% 2px; }

/* ---------- "On the stove" section ---------- */

.kitchen-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 24px;
  font-size: 15px;
  color: var(--muted);
}
.kitchen-status strong { color: var(--text); font-weight: 600; }

.stove-flame {
  position: relative;
  width: 14px;
  height: 14px;
  flex: none;
}
.stove-flame-dot {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--primary);
}
.stove-flame::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.4;
  animation: stove-pulse 1.8s ease-in-out infinite;
}
@keyframes stove-pulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(2.2); opacity: 0; }
}

/* Heat indicator: small dot, different states */
.heat {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--border);
  flex: none;
}
.heat-simmer {
  background: var(--primary);
  border-color: var(--primary);
  animation: simmer-pulse 2.2s ease-in-out infinite;
}
.heat-plated {
  background: var(--text);
  border-color: var(--text);
}
.heat-cold {
  background: transparent;
  opacity: 0.5;
}
@keyframes simmer-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

/* Featured "tonight's dish" card — flat anchor, not hoverable */
.dish-featured {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 24px;
}

.dish-featured-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.dish-label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}
.dish-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}
.dish-blurb {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 20px;
}
.dish-vibe { margin-bottom: 20px; }
.dish-ingredients {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dish-ingredients li {
  font-size: 14px;
  font-weight: 500;
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
}

/* Recipe card grid */
.stove-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.recipe-card {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative;
}
.recipe-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.recipe-card header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.recipe-card h4 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}
.recipe-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 14px;
}
.recipe-tags {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.recipe-tags li {
  font-size: 14px;
  font-weight: 500;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
}
.recipe-meta {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  font-style: italic;
  opacity: 0.8;
}
.recipe-card-cold { opacity: 0.6; }
.recipe-card-cold:hover { opacity: 0.8; }

.vibe-toggle { margin-bottom: 16px; }
.vibe-toggle summary { font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; list-style: none; padding: 6px 0; }
.vibe-toggle summary::-webkit-details-marker { display: none; }
.vibe-toggle[open] summary { margin-bottom: 8px; }
.recipe-icon { width: 16px; height: 16px; color: var(--muted); flex: none; }
.recipe-card p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(2 * 1.55em); }
.hire-card { background: var(--surface-solid); border: 1px solid var(--border); border-radius: 20px; padding: 24px; }
.hire-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .hire-grid { grid-template-columns: 1fr 1fr; } }
.hire-kicker { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hire-block p { margin: 4px 0 0; font-size: .9375rem; line-height: 1.5; }
.hire-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }

.cooking-cta { text-align: center; padding: 8px 0; }

.copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .stove-grid { grid-template-columns: 1fr; }
  .dish-featured { padding: 20px; }
}

/* ---------- AI-style text reveal ---------- */

.ai-word {
  opacity: 0;
  transition: opacity .25s ease;
}
.ai-word.on { opacity: 1; }

.ai-caret {
  display: inline-block;
  width: 9px;
  height: 1em;
  margin-left: 3px;
  vertical-align: text-bottom;
  background: var(--text);
  animation: blink 1s steps(1) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .ai-word { opacity: 1 !important; transition: none; }
  .ai-caret { display: none; }
}

/* ---------- Case study cards (media tile + title + blurb) ---------- */

/* ---------- Buttons — flat pills (primary / secondary) ---------- */

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 28px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease;
}

@property --orbit-angle {
  syntax: "<angle>";
  initial-value: 135deg;
  inherits: false;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(105deg,
    transparent 38%, rgba(255, 255, 255, 0.55) 50%, transparent 62%);
  background-size: 250% 100%;
  background-position: 160% 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.btn:hover::after {
  opacity: 1;
  animation: cfb-sweep 1.6s linear infinite;
}

/* Metal-ring orbit — light travels around the pill on hover (secondary only) */
.btn-secondary {
  --orbit-angle: 135deg;
}
.btn-secondary:hover {
  animation: metal-orbit 3s ease-in-out infinite;
  background:
    linear-gradient(var(--surface-solid), var(--surface-solid)) padding-box,
    linear-gradient(var(--orbit-angle),
      rgba(10, 10, 10, .40) 0%,
      rgba(255, 255, 255, .90) 24%,
      rgba(10, 10, 10, .22) 46%,
      rgba(190, 190, 190, .85) 66%,
      rgba(255, 255, 255, .80) 82%,
      rgba(10, 10, 10, .38) 100%) border-box;
}
[data-theme="dark"] .btn-secondary:hover {
  background:
    linear-gradient(var(--surface-solid), var(--surface-solid)) padding-box,
    linear-gradient(var(--orbit-angle),
      rgba(255, 255, 255, .55) 0%,
      rgba(255, 255, 255, .15) 25%,
      rgba(255, 255, 255, .70) 45%,
      rgba(255, 255, 255, .12) 65%,
      rgba(255, 255, 255, .55) 85%,
      rgba(255, 255, 255, .30) 100%) border-box;
}
@keyframes metal-orbit {
  to { --orbit-angle: 495deg; }
}

.btn-primary {
  color: var(--on-primary);
  background:
    linear-gradient(var(--primary), var(--primary)) padding-box,
    var(--metal-ring) border-box;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}

[data-theme="dark"] .btn-primary {
  box-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}

.btn-secondary {
  color: var(--text);
  background:
    linear-gradient(var(--surface-solid), var(--surface-solid)) padding-box,
    var(--metal-ring) border-box;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}



[data-theme="dark"] .btn-secondary {
  box-shadow: 0 1px 2px rgba(0, 0, 0, .28);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}

[data-theme="dark"] .btn:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, .42);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}

.btn:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.btn svg { width: 18px; height: 18px; flex: none; position: relative; z-index: 1; }

/* ---------- FAB only — Clean Futuristic Button (buttons-48) ---------- */

.cfb-slot {
  --cfb-h:        48px;
  --cfb-lh:       22px;
  --cfb-icon:     22px;
  --cfb-radius:   15.5px;
  --cfb-stroke-w: 0.5px;
  --cfb-gap:      4.04px;
  --cfb-pad-x:    28px;
  --cfb-pad-l:    var(--cfb-pad-x);
  --cfb-pad-y:    calc((var(--cfb-h) - var(--cfb-lh) - 2 * var(--cfb-stroke-w)) / 2);
  --cfb-face-1:      #F9FBFE;
  --cfb-face-2:      #EDF1F6;
  --cfb-face-3:      #C5C9D0;
  --cfb-face-mid:    47.22%;
  --cfb-stroke-1:    #EDEDED;
  --cfb-stroke-2:    #87E5FF;
  --cfb-edge-hi:     #98A2B2;
  --cfb-edge-mid:    #646B82;
  --cfb-edge-lo:     #959EB0;
  --cfb-edge-deep:   #474F62;
  --cfb-inner-bevel: #4E5567;
  --cfb-ambient:     61, 72, 97;
  --cfb-glow:        #00C8FF;
  --cfb-glow-blur:   1.5px;
  --cfb-glow-blur-h: 5px;
  --cfb-glow-inset:  5px;
  --cfb-glow-drop:   8px;
  --cfb-glare:       rgba(255, 255, 255, 0.55);
  --cfb-sheen:       #CDEEFF;
  --cfb-sweep:       1.6s;
  --cfb-ink:         #456889;
  --cfb-font:        "Geist", system-ui, -apple-system, sans-serif;
  --cfb-size:        16px;
  --cfb-weight:      600;
  --cfb-tracking:    0.07em;

  position: relative;
  display: inline-flex;
  width: fit-content;
  height: fit-content;
  flex: 0 0 auto;
  justify-self: start;
  border-radius: calc(var(--cfb-radius) + var(--cfb-stroke-w));
  transition: transform 120ms cubic-bezier(.2, .8, .3, 1),
              box-shadow 120ms cubic-bezier(.2, .8, .3, 1);
  box-shadow:
    0 4px 0    2.5px  var(--cfb-edge-lo),
    0 5px 0.2px 2.5px var(--cfb-edge-deep),
    0 25px 20px       rgba(var(--cfb-ambient), 0.26),
    0 9px  8px        rgba(var(--cfb-ambient), 0.70);
}

.cfb-slot * { box-sizing: border-box; }

.cfb-glow {
  position: absolute;
  inset: var(--cfb-glow-inset);
  transform: translateY(var(--cfb-glow-drop));
  border-radius: calc(var(--cfb-radius) - var(--cfb-glow-inset));
  background: var(--cfb-glow);
  filter: blur(var(--cfb-glow-blur));
  mix-blend-mode: screen;
  pointer-events: none;
  transition: transform 120ms cubic-bezier(.2, .8, .3, 1),
              opacity 120ms ease, filter 200ms ease;
}
@supports (mix-blend-mode: plus-lighter) {
  .cfb-glow { mix-blend-mode: plus-lighter; }
}

.cfb {
  position: relative;
  display: inline-flex;
  padding: var(--cfb-stroke-w);
  border: 0;
  border-radius: calc(var(--cfb-radius) + var(--cfb-stroke-w));
  background: linear-gradient(180deg, var(--cfb-stroke-1) 0%, var(--cfb-stroke-2) 100%);
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  box-shadow:
    0 1px 0.2px var(--cfb-edge-hi),
    0 2px 0     var(--cfb-edge-mid);
  transition: background 140ms ease, box-shadow 140ms ease;
}

.cfb__face {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--cfb-gap);
  padding: var(--cfb-pad-y) var(--cfb-pad-x) var(--cfb-pad-y) var(--cfb-pad-l);
  border-radius: var(--cfb-radius);
  overflow: hidden;
  background: linear-gradient(180deg,
    var(--cfb-face-1) 0%,
    var(--cfb-face-2) var(--cfb-face-mid),
    var(--cfb-face-3) 100%);
  box-shadow: inset 0 -0.81px 1.62px var(--cfb-inner-bevel);
  transition: background 140ms ease, box-shadow 140ms ease;
}

.cfb__face::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(105deg,
    transparent 38%, var(--cfb-glare) 50%, transparent 62%);
  background-size: 250% 100%;
  background-position: 160% 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.cfb__label {
  position: relative;
  font-family: var(--cfb-font);
  font-size: var(--cfb-size);
  font-weight: var(--cfb-weight);
  letter-spacing: var(--cfb-tracking);
  line-height: var(--cfb-lh);
  white-space: nowrap;
  color: var(--cfb-ink);
  text-shadow:
    0 1px 1px rgba(255, 255, 255, 0.5),
    0 0   1px rgba(135, 229, 255, 0.55),
    0 -1px 1px rgba(0, 0, 0, 0.14);
}

.cfb__label::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  letter-spacing: inherit;
  background: linear-gradient(100deg,
    transparent 42%, var(--cfb-sheen) 50%, transparent 58%);
  background-size: 250% 100%;
  background-position: 160% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.cfb__icon {
  width: var(--cfb-icon);
  height: var(--cfb-icon);
  flex: 0 0 auto;
  color: var(--cfb-ink);
  filter:
    drop-shadow(0 1px 1px rgba(255, 255, 255, 0.5))
    drop-shadow(0 0 1px rgba(135, 229, 255, 0.6));
}

.cfb-slot:not(.cfb-slot--flat):hover {
  box-shadow:
    0 4px 0    2.5px  var(--cfb-edge-lo),
    0 5px 0.2px 2.5px var(--cfb-edge-deep),
    0 28px 22px       rgba(var(--cfb-ambient), 0.30),
    0 10px 9px        rgba(var(--cfb-ambient), 0.72);
}
.cfb-slot:hover .cfb-glow {
  transform: translateY(10px);
  filter: blur(var(--cfb-glow-blur-h));
}
.cfb-slot:not(.cfb-slot--flat):hover .cfb__face::after,
.cfb-slot:not(.cfb-slot--flat):hover .cfb__label::after {
  opacity: 1;
  animation: cfb-sweep var(--cfb-sweep) linear infinite;
}

@keyframes cfb-sweep {
  from { background-position: 160% 0; }
  to   { background-position: -60% 0; }
}

.cfb-slot:not(.cfb-slot--flat):has(.cfb:active) {
  transform: translateY(3px);
  box-shadow:
    0 1.5px 0  2.5px  var(--cfb-edge-lo),
    0 2px 0.2px 2.5px var(--cfb-edge-deep),
    0 14px 14px       rgba(var(--cfb-ambient), 0.22),
    0 4px  5px        rgba(var(--cfb-ambient), 0.60);
}
.cfb-slot:has(.cfb:active) .cfb-glow {
  transform: translateY(3px);
  opacity: 0.75;
}

.cfb:focus-visible { outline: 2px solid #0B84C4; outline-offset: 5px; }

/* Secondary — flattened key */
.cfb-slot--flat {
  --flat-collar-y:      0.5px;
  --flat-collar-blur:   0px;
  --flat-collar-spread: 0px;
  --flat-collar-alpha:  0.14;
  --flat-amb-y:         2px;
  --flat-amb-blur:      4px;
  --flat-amb-alpha:     0.10;
  --flat-hairline-y:    1px;
  --flat-hairline-blur: 0px;
  --flat-hairline-alpha: 0.10;
  --flat-press-y:       1px;
  --cfb-face-1:      #EFF2F6;
  --cfb-face-2:      #E7EAEF;
  --cfb-face-3:      #DEE2E8;
  --cfb-face-mid:    55%;
  --cfb-stroke-1:    #F7F7F7;
  --cfb-stroke-2:    #D7DCE3;
  --cfb-inner-bevel: rgba(154, 161, 172, 0.35);
  --flat-shadow:
    0 var(--flat-collar-y) var(--flat-collar-blur) var(--flat-collar-spread)
      rgba(var(--cfb-ambient), var(--flat-collar-alpha)),
    0 var(--flat-amb-y) var(--flat-amb-blur)
      rgba(var(--cfb-ambient), var(--flat-amb-alpha));
  box-shadow: var(--flat-shadow);
}

.cfb-slot--flat:hover,
.cfb-slot--flat:has(.cfb:active) {
  box-shadow: var(--flat-shadow);
}

.cfb-slot--flat .cfb {
  box-shadow: 0 var(--flat-hairline-y) var(--flat-hairline-blur)
              rgba(var(--cfb-ambient), var(--flat-hairline-alpha));
}

.cfb-slot--flat .cfb__face::after,
.cfb-slot--flat .cfb__label::after { content: none; }

.cfb-slot--flat .cfb__label {
  text-shadow:
    0 1px 1px rgba(255, 255, 255, 0.55),
    0 -1px 1px rgba(0, 0, 0, 0.08);
}
.cfb-slot--flat .cfb__icon {
  filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.55));
}

.cfb-slot--flat:hover {
  --flat-collar-y:      0.25px;
  --flat-collar-blur:   1px;
  --flat-collar-alpha:  0.035;
  --flat-amb-y:         0.25px;
  --flat-amb-blur:      1px;
  --flat-amb-alpha:     0.025;
  --flat-hairline-y:    0.5px;
  --flat-hairline-blur: 0.5px;
  --flat-hairline-alpha: 0.025;
  --cfb-face-1:      #EDF0F4;
  --cfb-face-2:      #E8EBF0;
  --cfb-face-3:      #E2E6EB;
  --cfb-inner-bevel: rgba(154, 161, 172, 0.09);
}

.cfb-slot--flat:has(.cfb:active) {
  --flat-collar-y:      0.25px;
  --flat-collar-blur:   0.5px;
  --flat-collar-alpha:  0.025;
  --flat-amb-y:         0.25px;
  --flat-amb-blur:      1px;
  --flat-amb-alpha:     0.02;
  --flat-hairline-y:    0.5px;
  --flat-hairline-blur: 0.5px;
  --flat-hairline-alpha: 0.02;
  --cfb-face-1:      #EDF0F4;
  --cfb-face-2:      #E8EBF0;
  --cfb-face-3:      #E2E6EB;
  transform: translateY(0.5px);
}
.cfb-slot--flat:has(.cfb:active) .cfb__face {
  box-shadow: inset 0 -0.5px 1px rgba(154, 161, 172, 0.22);
}

/* Primary — Ember */
.cfb-slot--ember {
  --cfb-face-1: #FAFAFA;
  --cfb-face-2: #FAFAFA;
  --cfb-face-3: #FAFAFA;
  --ember-1: #FF1F8F;
  --ember-2: #FF5A00;
  --ember-3: #FFC400;
  --cfb-glow: linear-gradient(100deg,
    var(--ember-1) 0%, var(--ember-2) 48%, var(--ember-3) 100%);
  --cfb-glow-blur:   1.2px;
  --cfb-glow-blur-h: 4px;
  --cfb-stroke-2: #FF9A3D;
  --cfb-sheen:    #FFD48A;
}

.cfb-slot--ember .cfb__label {
  text-shadow:
    0 1px 1px rgba(255, 255, 255, 0.5),
    0 0   1px rgba(255, 150, 80, 0.85),
    0 -1px 1px rgba(0, 0, 0, 0.14);
}
.cfb-slot--ember .cfb__icon {
  filter:
    drop-shadow(0 1px 1px rgba(255, 255, 255, 0.5))
    drop-shadow(0 0 1px rgba(255, 150, 80, 0.9));
}
.cfb-slot--ember .cfb:focus-visible { outline-color: #C2571F; }

/* Shapes */
.cfb-slot--lead {
  --cfb-gap:   8px;
  --cfb-pad-l: 22px;
  --cfb-pad-x: 28px;
}

.cfb-slot--icon {
  --cfb-pad-x: var(--cfb-pad-y);
  --cfb-pad-l: var(--cfb-pad-y);
}

.cfb-slot--fab {
  --cfb-h:      60px;
  --cfb-lh:     24px;
  --cfb-icon:   24px;
  --cfb-radius: 999px;
  --cfb-pad-x:  18px;
  --cfb-pad-l:  18px;
}
.orb-fab { position: absolute; inset: 0; border-radius: 999px; overflow: hidden; pointer-events: none; display: grid; place-items: center; }
.orb-fab .shader-mount { width: 100%; height: 100%; border-radius: 999px; overflow: hidden; filter: blur(5px); opacity: .96; }
.orb-fab .shader-mount canvas { width: 100% !important; height: 100% !important; display: block; border-radius: 999px; }

/* ---------- Experimental Orb v2 — high attention ---------- */
.cfb-fab-wrap { right: 22px; bottom: 22px; }
.orb-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  animation: orb-float 3.2s ease-in-out infinite, orb-enter .6s cubic-bezier(.16,1,.3,1) both;
}
@keyframes orb-enter {
  from { transform: scale(.72); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes orb-float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.orb-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(10,10,10,.11);
  pointer-events: none;
  animation: orb-ping 2.4s cubic-bezier(0,0,.2,1) infinite;
}
.orb-pulse--2 { animation-delay: .85s; }
@keyframes orb-ping {
  0% { transform: scale(.88); opacity: .55; }
  100% { transform: scale(1.45); opacity: 0; }
}
[data-theme="dark"] .orb-pulse { border-color: rgba(255,255,255,.14); }

.orb-core {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid transparent;
  background:
    linear-gradient(#0A0A0A,#000) padding-box,
    var(--metal-ring) border-box;
  box-shadow:
    0 14px 28px rgba(10,10,10,.18),
    0 6px 12px rgba(10,10,10,.16),
    0 0 0 1px rgba(10,10,10,.04);
  display: grid;
  place-items: center;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .22s cubic-bezier(.16,1,.3,1), box-shadow .22s ease, filter .22s ease;
}
[data-theme="dark"] .orb-core {
  background:
    linear-gradient(#111214,#000) padding-box,
    var(--metal-ring) border-box;
  box-shadow:
    0 16px 30px rgba(0,0,0,.42),
    0 6px 12px rgba(0,0,0,.32);
}
.orb-core:hover {
  transform: scale(1.07);
  box-shadow:
    0 18px 34px rgba(10,10,10,.22),
    0 8px 14px rgba(10,10,10,.18);
}
.orb-core:active { transform: scale(.98); }
.orb-core:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

.orb-core__shader {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  opacity: .92;
}
.orb-core__shader canvas {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: 50% !important;
}
.orb-core__inner {
  position: absolute;
  inset: 1.5px;
  border-radius: 50%;
  background:
    radial-gradient(68% 62% at 30% 22%, rgba(255,255,255,.14) 0%, transparent 58%),
    radial-gradient(90% 90% at 70% 85%, rgba(255,122,69,.10) 0%, transparent 55%),
    linear-gradient(180deg,#1E1F22 0%,#000 100%);
  pointer-events: none;
  z-index: 1;
}
[data-theme="dark"] .orb-core__inner {
  background:
    radial-gradient(68% 62% at 30% 22%, rgba(255,255,255,.10) 0%, transparent 58%),
    linear-gradient(180deg,#1B1C1F 0%, #000 100%);
}
.orb-core__icon {
  position: relative;
  z-index: 2;
  width: 22px;
  height: 22px;
  color: #FFF;
  filter:
    drop-shadow(0 1px 2px rgba(0,0,0,.45))
    drop-shadow(0 0 8px rgba(255,255,255,.22));
  display: grid;
  place-items: center;
  pointer-events: none;
  transition: transform .22s cubic-bezier(.16,1,.3,1);
}
.orb-core:hover .orb-core__icon { transform: scale(1.08) rotate(6deg); }
.orb-core__icon svg { width: 22px; height: 22px; display: block; }
.orb-core__dot {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255,255,255,.9), 0 0 14px rgba(255,122,69,.65);
  z-index: 2;
  pointer-events: none;
  opacity: 0;
}
.orb-core__dot--1 { top: 12%; right: 18%; animation: orb-twinkle 1.9s ease-in-out infinite .2s; }
.orb-core__dot--2 { bottom: 16%; left: 14%; width: 4px; height: 4px; animation: orb-twinkle 1.9s ease-in-out infinite .8s; }
@keyframes orb-twinkle {
  0%,100% { opacity: 0; transform: scale(.7); }
  50% { opacity: 1; transform: scale(1); }
}
.orb-core__shine {
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.62) 50%, transparent 58%);
  background-size: 220% 100%;
  background-position: 140% 0;
  opacity: 0;
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: screen;
}
.orb-core:hover .orb-core__shine {
  opacity: 1;
  animation: orb-shine 1.35s linear infinite;
}
@keyframes orb-shine {
  from { background-position: 140% 0; }
  to { background-position: -20% 0; }
}
.orb-label {
  position: absolute;
  right: 68px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--surface-solid);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(10,10,10,.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s cubic-bezier(.16,1,.3,1);
}
.orb-wrap:hover .orb-label,
.orb-wrap:focus-within .orb-label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.orb-label::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 10px; height: 10px;
  background: var(--surface-solid);
  border-right: 1px solid var(--border);
  border-top: 1px solid var(--border);
}
@media (max-width: 640px) {
  .orb-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .orb-wrap, .orb-pulse, .orb-core__dot, .orb-core__shine { animation: none !important; }
  .orb-wrap { transform: none; }
}
/* ---------- Index FAB — 02 Aurora Wave (orange+white, full 360°, random cw/ccw) ---------- */
.cfb-fab-wrap .orbx{
  width:58px; height:58px; border-radius:50%; display:grid; place-items:center;
  position:relative; isolation:isolate; cursor:pointer; border:none; flex:none;
  border-radius:50% !important;
  animation:siriDrift 7.2s ease-in-out infinite;
}
@keyframes siriDrift{ 0%{transform:translate(0,0)} 25%{transform:translate(3px,-5px)} 50%{transform:translate(-4px,3px)} 75%{transform:translate(5px,2px)} 100%{transform:translate(0,0)} }
.cfb-fab-wrap .orbx--aurora{
  background:radial-gradient(90% 75% at 50% 18%, #FFFFFF 0%, #FFFBF5 52%, #FFF4E8 100%);
  border:1px solid rgba(255,255,255,.96);
  box-shadow:0 14px 28px rgba(180,110,60,.14), 0 6px 14px rgba(180,110,60,.10), 0 0 0 1px rgba(255,255,255,.7) inset;
  overflow:hidden;
}
.cfb-fab-wrap .orbx--aurora .orbx__aurora{
  position:absolute; inset:-1px; border-radius:50%; overflow:hidden; opacity:.98; z-index:0;
  background:conic-gradient(from 24deg at 50% 50%, #FFFFFF 0deg, #FFFBF5 72deg, #FFDCC2 132deg, #FF8A3D 198deg, #FF6A1A 278deg, #FFB68A 320deg, #FFFFFF 360deg);
  filter:blur(.6px) saturate(1.02) brightness(1.02);
}
.cfb-fab-wrap .orbx--aurora .orbx__wave{
  position:absolute; inset:0; border-radius:50%; overflow:hidden; z-index:1; pointer-events:none;
}
.cfb-fab-wrap .orbx--aurora .orbx__wave svg{ position:absolute; inset:0; width:108%; height:100%; display:block; left:-4%; }
.cfb-fab-wrap .orbx--aurora .orbx__wave .wave-fill{ filter:blur(.4px) saturate(1.02); opacity:.94; }
.cfb-fab-wrap .orbx--aurora .orbx__glass{
  position:absolute; inset:0; border-radius:50%;
  background:radial-gradient(72% 52% at 34% 26%, rgba(255,255,255,.72) 0%, transparent 62%), linear-gradient(180deg, rgba(255,255,255,.18), transparent 58%);
  border:none; box-shadow:inset 0 1px 0 rgba(255,255,255,.72), inset 0 -8px 14px rgba(180,100,140,.06);
  backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px); pointer-events:none; z-index:2;
}
.cfb-fab-wrap .orbx__aurora{ will-change:transform; transform:rotate(0deg); }
@media(prefers-reduced-motion:reduce){ .cfb-fab-wrap .orbx__aurora{ will-change:auto; } }
/* ---------- FAB tooltip — hey + 2 words + hand, 4s/6s loop, mobile-first ---------- */
.cfb-fab-wrap .orb-tip{
  position:absolute; bottom:68px; left:50%; transform:translateX(-50%) translateY(6px);
  display:inline-flex; align-items:center; gap:6px;
  background:var(--surface-solid); color:var(--text);
  border:1.5px solid var(--border); border-radius:999px;
  padding:8px 14px; font-size:.8125rem; font-weight:500; line-height:1; white-space:nowrap;
  box-shadow:0 8px 20px rgba(10,10,10,.12), 0 2px 8px rgba(10,10,10,.08);
  opacity:0; pointer-events:none; z-index:5;
  transition:opacity .22s cubic-bezier(.16,1,.3,1), transform .22s cubic-bezier(.16,1,.3,1);
}
.cfb-fab-wrap .orb-tip.is-visible{ opacity:1; transform:translateX(-50%) translateY(0); pointer-events:auto; }
.cfb-fab-wrap .orb-tip::after{
  content:""; position:absolute; left:50%; bottom:-6px; transform:translateX(-50%) rotate(45deg);
  width:10px; height:10px; background:var(--surface-solid); border-right:1.5px solid var(--border); border-bottom:1.5px solid var(--border);
}
.cfb-fab-wrap .orb-tip__hand{ display:inline-block; transform-origin:70% 70%; }
.cfb-fab-wrap .orb-tip.is-visible .orb-tip__hand{ animation:handWave 1.1s ease-in-out infinite; }
@keyframes handWave{
  0%{ transform:rotate(0deg) }
  15%{ transform:rotate(14deg) }
  30%{ transform:rotate(-8deg) }
  45%{ transform:rotate(14deg) }
  60%{ transform:rotate(-4deg) }
  75%{ transform:rotate(10deg) }
  100%{ transform:rotate(0deg) }
}
[data-theme="dark"] .cfb-fab-wrap .orb-tip{ box-shadow:0 8px 20px rgba(0,0,0,.32), 0 2px 8px rgba(0,0,0,.22); }
@media(min-width:641px){
  .cfb-fab-wrap .orb-tip{ bottom:auto; top:50%; left:auto; right:68px; transform:translateY(-50%) translateX(6px); }
  .cfb-fab-wrap .orb-tip.is-visible{ transform:translateY(-50%) translateX(0); }
  .cfb-fab-wrap .orb-tip::after{ left:auto; right:-6px; bottom:auto; top:50%; transform:translateY(-50%) rotate(45deg); }
}
@media(prefers-reduced-motion:reduce){
  .cfb-fab-wrap .orb-tip, .cfb-fab-wrap .orb-tip__hand{ animation:none !important; transition:none; }
}
.cfb__face { position: relative; }
.cfb__icon { position: relative; z-index: 1; }

.cfb-slot--fab:not(.cfb-slot--flat) {
  --cfb-glow-drop: 10px;
  box-shadow:
    0 4px 0    2.5px  var(--cfb-edge-lo),
    0 5px 0.2px 2.5px var(--cfb-edge-deep),
    0 34px 28px       rgba(var(--cfb-ambient), 0.28),
    0 12px 11px       rgba(var(--cfb-ambient), 0.70);
}
.cfb-slot--fab:not(.cfb-slot--flat):hover {
  box-shadow:
    0 4px 0    2.5px  var(--cfb-edge-lo),
    0 5px 0.2px 2.5px var(--cfb-edge-deep),
    0 38px 30px       rgba(var(--cfb-ambient), 0.32),
    0 13px 12px       rgba(var(--cfb-ambient), 0.72);
}
.cfb-slot--fab.cfb-slot--flat {
  --flat-amb-y:     4px;
  --flat-amb-blur:  8px;
  --flat-amb-alpha: 0.12;
}
.cfb-slot--fab.cfb-slot--flat:hover {
  --flat-amb-y:     0.5px;
  --flat-amb-blur:  2px;
  --flat-amb-alpha: 0.03;
}
.cfb-slot--fab.cfb-slot--flat:has(.cfb:active) {
  --flat-amb-y:     0.25px;
  --flat-amb-blur:  1.5px;
  --flat-amb-alpha: 0.025;
}

@media (prefers-reduced-motion: reduce) {
  .cfb-slot, .cfb-glow, .cfb__face, .cfb { transition: none; }
  .cfb-slot:has(.cfb:active) { transform: none; }
  .cfb-slot:not(.cfb-slot--flat):hover .cfb__face::after,
  .cfb-slot:not(.cfb-slot--flat):hover .cfb__label::after {
    animation: none;
    background-position: 50% 0;
  }
  .btn:hover::after {
    animation: none;
    background-position: 50% 0;
  }
}

/* ---------- FAB monochrome normalization (matches btn-primary) ---------- */
.cfb-fab-wrap .cfb-slot--fab:has(.orb-fab) {
  background: transparent;
  border: none;
  box-shadow: none;
}
.cfb-fab-wrap .cfb-slot--fab:has(.orb-fab) .cfb { background: transparent; box-shadow: none; border: none; }
.cfb-fab-wrap .cfb-slot--fab:has(.orb-fab) .cfb__face { background: transparent; box-shadow: none; }
.cfb-fab-wrap .cfb-slot--fab:has(.orb-fab) .cfb__icon { color: #FFF0E0; filter: drop-shadow(0 0 10px rgba(255,122,69,.85)) drop-shadow(0 0 18px rgba(255,90,31,.55)) drop-shadow(0 1px 2px rgba(0,0,0,.28)); }
.cfb-fab-wrap .cfb-slot--fab {
  --cfb-face-1: var(--primary);
  --cfb-face-2: var(--primary);
  --cfb-face-3: var(--primary);
  --cfb-ink: var(--on-primary);
  --cfb-font: "Geist", system-ui, -apple-system, sans-serif;
  --cfb-stroke-1: transparent;
  --cfb-stroke-2: transparent;
  background: linear-gradient(var(--primary), var(--primary)) padding-box,
              var(--metal-ring) border-box;
  border: 1px solid transparent;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.cfb-fab-wrap .cfb-slot--fab .cfb-glow { display: none; }
.cfb-fab-wrap .cfb-slot--fab .cfb {
  background: transparent;
  box-shadow: none;
  border: 0;
}
.cfb-fab-wrap .cfb-slot--fab .cfb__face {
  background: transparent;
  box-shadow: none;
}
.cfb-fab-wrap .cfb-slot--fab .cfb__face::after,
.cfb-fab-wrap .cfb-slot--fab .cfb__label::after { display: none; }
.cfb-fab-wrap .cfb-slot--fab .cfb__icon {
  color: var(--on-primary);
  filter: none;
}
.cfb-fab-wrap .cfb-slot--fab:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
[data-theme="dark"] .cfb-fab-wrap .cfb-slot--fab:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,.42);
}
.cfb-fab-wrap .cfb-slot--fab:has(.cfb:active) {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}

/* ---------- Cards ---------- */

.card {
  display: block;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.card + .card { margin-top: 16px; }

.card-tag {
  display: inline-block;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 8px;
}

.card p { color: var(--muted); }

.card-arrow { font-weight: 500; color: var(--text); white-space: nowrap; }

/* ---------- Case study cards (media tile + title + blurb) ---------- */

.case-grid { display: grid; gap: 40px; position: relative; }
.work-more { text-align: center; margin-top: 32px; }
.work-more .small { margin-top: 10px; }
@media (max-width: 480px) { .work-more .btn { width: 100%; } }
.case-compact { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface-solid); }
.case-compact:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.case-compact-media { position: relative; width: 72px; height: 72px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); display: grid; place-items: center; overflow: hidden; flex: none; }
.case-compact-media img { width: 70%; height: auto; opacity: .9; }
.case-compact-media .ghost-num { font-size: 28px; top: 2px; left: 6px; }
.case-compact-body .case-title { margin: 0 0 4px; font-size: 1.0625rem; min-height: auto; -webkit-line-clamp: 1; }
.case-compact-body .case-blurb { font-size: .875rem; min-height: auto; -webkit-line-clamp: 1; }
.case-compact .case-badge { align-self: center; font-size: 14px; padding: 3px 8px; }
@media (max-width: 640px) { .case-compact { grid-template-columns: 56px 1fr; } .case-compact .case-badge { grid-column: 2; justify-self: start; } .case-compact-media { width: 56px; height: 56px; } }
.case-grid.is-collapsed .case-extra { display: none; }
.case-grid:not(.is-collapsed) .case-extra { display: grid; }

.case-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.case-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

@media (min-width: 900px) {
  .case-media { aspect-ratio: 1 / 1.02; }
}

[data-theme="dark"] .case-media {
  background: var(--surface);
}

.case-card:hover .case-media {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.case-media img,
.case-media svg {
  width: min(64%, 260px);
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(10, 10, 10, .16));
  transition: transform .25s cubic-bezier(.16, 1, .3, 1);
}

@media (min-width: 900px) {
  .case-media img,
  .case-media svg { width: min(58%, 240px); }
}

.case-card:hover .case-media img { transform: translateY(-4px); }

.case-arrow {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
  transition: transform .3s ease, box-shadow .3s ease;
}
.case-arrow svg { width: 17px; height: 17px; }
.case-card:hover .case-arrow {
  transform: translate(2px, -2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .14);
}

.case-title {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 20px 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  /* Reserve exactly two lines so blurbs align across cards */
  min-height: calc(2 * 1.25em);
}

.case-blurb {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(2 * 1.55em);
}

/* ---------- Custom cursor: 8px inverse dot ---------- */

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 300;
  opacity: 0;
  transition: opacity .3s ease;
}
html.has-cursor .cursor-dot { opacity: 1; }

/* The dot IS the cursor — hide the system one everywhere */
html.has-cursor,
html.has-cursor * {
  cursor: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .cursor-dot { display: none; }
}

/* ---------- Vibe / cooking panels ---------- */

.vibe-panel {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.vibe-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: .9375rem;
  font-weight: 500;
  color: var(--muted);
}

.vibe-bar-dots { display: flex; gap: 6px; }
.vibe-bar-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }

.vibe-body {
  padding: 20px;
  font-size: .9375rem;
  line-height: 1.7;
}

.caret {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  vertical-align: text-bottom;
  margin-left: 2px;
  background: var(--text);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.vibe-line { display: block; }
.vibe-line + .vibe-line { margin-top: 6px; }
.vibe-line .ok { color: var(--muted); font-weight: 500; }

.cs-mobile-nav { display: flex; gap: 4px; overflow-x: auto; padding: 6px; margin: 0 0 24px; background: var(--surface-solid); border: 1px solid var(--border); border-radius: 999px; scrollbar-width: none; }
.cs-mobile-nav::-webkit-scrollbar { display: none; }
.cs-mobile-nav a { flex: none; font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
.cs-mobile-nav a[aria-current="page"] { background: var(--primary); color: var(--on-primary); }
@media (min-width: 900px) { .cs-mobile-nav { display: none; } }
.cs-scrub { position: relative; overflow: hidden; }
.cs-scrub-img { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; font-weight: 500; color: var(--muted); }
.cs-scrub-after { background: var(--surface-solid); }
.cs-scrub-before { background: var(--bg); clip-path: inset(0 var(--pos,52%) 0 0); border-right: 1px solid var(--border); }
.cs-scrub-handle { position: absolute; top: 0; bottom: 0; left: var(--pos,52%); width: 2px; background: var(--primary); transform: translateX(-1px); }
.cs-scrub-handle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); transform: translate(-50%,-50%); background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2"><path d="M11 17 6 12l5-5"/><path d="M13 7l5 5-5 5"/></svg>'); background-size: 14px; background-repeat: no-repeat; background-position: center; }
.cs-scrub-range { position: absolute; inset: 0; opacity: 0; cursor: ew-resize; }
.cs-scrub-label { position: absolute; top: 12px; font-size: 14px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; background: var(--surface-solid); border: 1px solid var(--border); border-radius: 999px; padding: 3px 8px; color: var(--muted); }
.cs-scrub-label.before { left: 12px; } .cs-scrub-label.after { right: 12px; }
.cs-token { cursor: pointer; transition: transform .18s, box-shadow .18s; }
.cs-token:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.cs-token.copied { outline: 2px solid var(--text); }
.cook-filter { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.cook-filter button { font: inherit; font-size: 14px; font-weight: 500; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--muted); cursor: pointer; }
.cook-filter button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); border-color: transparent; }



.repo-btn { margin-top: 24px; }

.log-status {
  display: inline-block;
  font-size: .9375rem;
  font-weight: 500;
  border-radius: 999px;
  padding: 4px 14px;
  border: 1px solid var(--border);
  color: var(--muted);
}
.log-status.shipped {
  background: var(--primary);
  color: var(--on-primary);
  border-color: transparent;
}
.log-status.burnt { text-decoration: line-through; opacity: .7; }

.log-entry + .log-entry { margin-top: 16px; }

/* ---------- Case study page ---------- */

.page-case-study .section { margin-top: 72px; }

.cs-back {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}
.cs-back:hover { color: var(--text); text-decoration: underline; }

.cs-rail-label {
  margin: 0;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.cs-rail-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.cs-rail-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 500;
}

.cs-lede {
  max-width: 52ch;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 32px;
}

.cs-hero-media { margin: 0; }

.cs-media {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  aspect-ratio: 16 / 10;
}

[data-theme="dark"] .cs-media {
  background: var(--surface-solid);
}

.cs-media video,
.cs-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cs-media .ghost-num {
  top: 16px;
  left: 24px;
  font-size: clamp(48px, 7vw, 72px);
}

.cs-media--wide { aspect-ratio: 21 / 9; }

.cs-hero-media figcaption,
.cs-figure figcaption {
  font-size: .9375rem;
  color: var(--muted);
  margin-top: 12px;
}

.cs-impact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 48px 0 32px;
}

.cs-stat {
  text-align: center;
  padding: 24px 12px;
  border-radius: 20px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
}

.cs-stat strong {
  display: block;
  font-size: clamp(1.375rem, 3.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 6px;
}

.cs-stat span {
  font-size: .875rem;
  color: var(--muted);
}

.cs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
}

.cs-meta div {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
}

.cs-meta dt {
  margin: 0;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--muted);
}

.cs-meta dd {
  margin: 0;
  font-size: .875rem;
  font-weight: 500;
}

.cs-pullquote {
  margin: 32px 0 0;
  padding: 24px 28px;
  border-radius: 20px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.cs-stakeholders {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}

@media (min-width: 640px) {
  .cs-stakeholders { grid-template-columns: repeat(3, 1fr); }
}

.cs-stakeholders li {
  padding: 20px;
  border-radius: 16px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
}

.cs-stakeholders strong {
  display: block;
  font-size: .9375rem;
  margin-bottom: 6px;
}

.cs-stakeholders span {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.5;
}

.cs-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: grid;
  gap: 12px;
}

.cs-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px;
  border-radius: 16px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
}

.cs-step-num {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--muted);
  padding-top: 2px;
}

.cs-step strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 6px;
}

.cs-step p {
  font-size: .9375rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

.cs-figure { margin: 32px 0 0; }

.cs-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg);
}

.cs-aside-card {
  padding: 28px;
  border-radius: 20px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
}

.cs-aside-card p { margin-bottom: 20px; }

.cs-end-nav { margin-top: 72px; }

/* Legacy case study helpers (contact/other pages) */

.case-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 32px 0;
}

.case-meta div {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 16px;
}

.case-meta dt {
  font-size: .9375rem;
  color: var(--muted);
  margin: 0 0 2px;
}

.case-meta dd {
  margin: 0;
  font-weight: 500;
  font-size: .9375rem;
}

figure.figure-block { margin: 32px 0; }

figure.figure-block img,
figure.figure-block video,
.fig-placeholder {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--surface-solid);
}

.fig-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 500;
  font-size: .9375rem;
}

figcaption {
  font-size: .9375rem;
  color: var(--muted);
  margin-top: 10px;
}

.outcome-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 32px 0;
}

.outcome-stats div {
  text-align: center;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 8px;
}

.outcome-stats strong {
  display: block;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.outcome-stats span { font-size: .9375rem; color: var(--muted); }

.pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
}

/* ---------- Contact ---------- */

.form-field { margin-bottom: 16px; }

.form-field label {
  display: block;
  font-size: .9375rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 13px 20px;
  transition: border-color .15s ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
  border-radius: 20px;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--text);
}

/* ---------- Socials / footer ---------- */

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.social-row a {
  display: inline-block;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  transition: color .15s ease, border-color .15s ease, transform .15s ease;
}
.social-row a:hover {
  color: var(--text);
  border-color: var(--text);
  transform: translateY(-1px);
}

.site-foot {
  margin-top: 120px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: .9375rem;
  color: var(--muted);
}

.foot-cta {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--text);
}

.foot-mail {
  align-self: flex-start;
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  font-weight: 500;
  color: var(--text);
}

.foot-copy { margin-top: 8px; }

.site-foot .social-row { margin: 8px 0 0; }

/* ---------- Reveal animation ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(10px);
  transition: opacity .8s cubic-bezier(.16, 1, .3, 1),
              transform .8s cubic-bezier(.16, 1, .3, 1),
              filter .8s cubic-bezier(.16, 1, .3, 1);
}
.js [data-reveal].in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
  .caret { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
  .expertise-list li { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 480px) {
  .column { padding-top: 88px; }
  .section { margin-top: 64px; }
  .marquee { margin-top: 32px; }
  .nav-link { padding: 0 14px; }
  .case-meta { grid-template-columns: 1fr 1fr; }
  .outcome-stats { grid-template-columns: 1fr; }
  .cs-impact { grid-template-columns: 1fr; }
  .cs-step { grid-template-columns: 40px 1fr; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* Two-up case study grid when the column allows it */
@media (min-width: 600px) {
  .case-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}



/* ============================================================
   v2.2 — build-on-top pass
   Audience lens · Voices · Souvenir card
   Same tokens, same pills, same weights (400/500/600).
   ============================================================ */

/* ---------- Audience lens (hero) ---------- */

.lens { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.lens-label { margin: 0; font-size: .9375rem; color: var(--muted); }
.lens-seg { align-self: flex-start; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.lens-seg::-webkit-scrollbar { display: none; }
.lens-opt {
  border: 0; background: transparent; font-family: inherit; cursor: pointer;
  white-space: nowrap; flex: none;
}
.lens-opt[aria-checked="true"] {
  background: var(--surface-solid);
  color: var(--text);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .10);
}
[data-theme="dark"] .lens-opt[aria-checked="true"] {
  background: rgba(255, 255, 255, .14);
  box-shadow: none;
}
.lens-opt:focus { outline: none; }
.lens-opt:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--text) 45%, transparent);
}
.lens-opt[aria-checked="true"]:focus-visible {
  box-shadow: 0 2px 8px rgba(0, 0, 0, .10), inset 0 0 0 1.5px color-mix(in srgb, var(--text) 45%, transparent);
}

.lens-note {
  margin: 0; min-height: 1.6em;
  font-size: .9375rem; color: var(--muted);
}
.lens-note:empty { visibility: hidden; }
.lens-note .lens-dot {
  display: inline-block; vertical-align: middle; margin-right: 8px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--text);
  animation: lensPulse 1.6s ease-in-out infinite;
}
.lens-note button {
  font: inherit; font-size: .9375rem; color: var(--text); background: none; border: 0;
  padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
@keyframes lensPulse { 50% { opacity: .25; } }

#hero-cta { margin-top: 20px; }

/* Sections glide to their new place (View Transitions where supported) */
::view-transition-group(*) { animation-duration: .55s; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
.section.lens-lead .section-head h2::after {
  content: "First for you";
  margin-left: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: .9375rem; font-weight: 500; letter-spacing: 0;
  color: var(--muted);
  vertical-align: middle;
}

/* ---------- Voices ---------- */

.section-intro { margin: -8px 0 20px; color: var(--muted); }
.voice-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 720px) { .voice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.voice-card {
  margin: 0; padding: 24px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  background: var(--surface-solid); border: 1px solid var(--border); border-radius: 20px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.voice-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.voice-card blockquote {
  margin: 0; font-size: 1.125rem; line-height: 1.45; font-weight: 500; letter-spacing: -0.01em;
}
.voice-card blockquote::before { content: "\201C"; display: block; font-size: 2.5rem; line-height: .8; margin-bottom: 8px; color: var(--muted); }
.voice-card figcaption { display: flex; align-items: center; gap: 12px; }
.voice-card figcaption strong { display: block; font-weight: 600; }
.voice-card figcaption small { display: block; font-size: .9375rem; color: var(--muted); }
.voice-mark {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-size: .9375rem; font-weight: 600;
  background: var(--primary); color: var(--on-primary);
}

/* ---------- Souvenir card ---------- */

.souvenir {
  margin-top: 40px; padding: 24px;
  display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center;
  background: var(--surface-solid); border: 1px solid var(--border); border-radius: 24px;
}
@media (min-width: 760px) { .souvenir { grid-template-columns: 1fr 1.15fr; padding: 32px; } }
.souvenir-copy { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.souvenir-kicker { margin: 0; font-size: .9375rem; color: var(--muted); }
.souvenir-title { margin: 0; font-size: clamp(1.5rem, 3.5vw, 1.875rem); font-weight: 600; letter-spacing: -0.02em; color: var(--text); line-height: 1.15; }
.souvenir-sub { margin: 0 0 12px; max-width: 38ch; color: var(--muted); }

.souvenir-card {
  position: relative; min-height: 250px; padding: clamp(20px, 3vw, 28px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  border-radius: 20px;
  background: var(--primary); color: var(--on-primary);
  border: 1px solid transparent;
  background:
    linear-gradient(var(--primary), var(--primary)) padding-box,
    var(--metal-ring) border-box;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45);
  transform: rotate(-1.5deg);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1);
  overflow: hidden;
}
.souvenir-card::after {   /* slow sheen, like light on a card */
  content: ""; position: absolute; inset: -40% -60%;
  background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.14) 50%, transparent 58%);
  transform: translateX(-40%);
  animation: cardSheen 6s ease-in-out infinite;
  pointer-events: none;
}
[data-theme="dark"] .souvenir-card::after { background: linear-gradient(115deg, transparent 42%, rgba(0,0,0,.08) 50%, transparent 58%); }
@keyframes cardSheen { 0%, 55% { transform: translateX(-40%); } 100% { transform: translateX(40%); } }
.souvenir:hover .souvenir-card { transform: rotate(0deg) scale(1.01); }
.sc-top { display: flex; align-items: center; gap: 10px; font-size: .9375rem; opacity: .75; }
.sc-mono {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: .9375rem; font-weight: 600; border: 1px solid currentColor; opacity: 1;
}
.sc-line { margin: 0; font-size: clamp(1.25rem, 2.4vw, 1.5rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
.sc-read { margin: 0; font-size: .9375rem; opacity: .7; line-height: 1.4; }
.sc-foot { white-space: nowrap; display: flex; justify-content: space-between; gap: 12px; font-size: .9375rem; opacity: .6; }

@media (prefers-reduced-motion: reduce) {
  .souvenir-card::after, .lens-note .lens-dot { animation: none; }
  .souvenir-card { transform: none; }
}


/* ---------- Recruiter brief (header button + dialog) ---------- */

.brief-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 44px; padding: 0 12px; margin-left: auto;
  font: inherit; font-size: .9375rem; font-weight: 500; white-space: nowrap;
  color: var(--muted); cursor: pointer;
  border: 0; border-radius: 999px; background: transparent;
  transition: color .2s ease, background-color .2s ease;
}
.brief-btn:hover { color: var(--text); background: var(--border); }
.brief-btn:focus-visible { outline: none; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--text) 40%, transparent); }
.brief-btn svg { width: 14px; height: 14px; flex: none; transition: transform .2s ease; }
.brief-btn:hover svg { transform: translate(2px, -2px); }
.brief-short { display: none; }
@media (max-width: 560px) {
  .brief-long { display: none; }
  .brief-short { display: inline; }
  .brief-btn { padding: 0 10px; }
}
.site-head .theme-toggle { margin-left: 8px; }

.brief {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100svh - 48px);
  padding: 0; border: 1px solid var(--border); border-radius: 24px;
  background: var(--surface-solid); color: var(--text);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .45);
}
.brief::backdrop { background: rgba(10, 10, 10, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.brief[open] { animation: briefIn .45s cubic-bezier(.16, 1, .3, 1); }
@keyframes briefIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.brief-inner { padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.brief-head { display: grid; grid-template-columns: 48px 1fr 44px; gap: 14px; align-items: center; }
.brief-head .avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.brief-kicker { margin: 0; font-size: .9375rem; color: var(--muted); }
.brief-head h2 { margin: 0; font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.brief-close {
  width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer;
  border: 0; border-radius: 50%; background: transparent; color: var(--muted);
}
.brief-close:hover { background: var(--border); color: var(--text); }
.brief-close svg { width: 20px; height: 20px; }
.brief-list { margin: 0; display: flex; flex-direction: column; }
.brief-list > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--border); }
.brief-list dt { font-size: .9375rem; color: var(--muted); }
.brief-list dd { margin: 0; line-height: 1.5; }
.brief-list strong { font-weight: 600; }
@media (max-width: 480px) { .brief-list > div { grid-template-columns: 1fr; gap: 2px; } }
.brief-cta { display: flex; gap: 10px; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) { .brief[open] { animation: none; } }

/* Phone header: make room for the Hiring? pill */
@media (max-width: 560px) {
  .site-nav .nav-link[href="#about"],
  .site-nav .nav-link[href="#journey"] { display: none; }
  .site-nav .nav-link { padding: 0 12px; }
  .site-nav .nav-link svg { display: none !important; }
  .site-head .theme-toggle { margin-left: 0; }
}


/* ============================================================
   v2.3 — layout pass: feature case card, one contact zone,
   one primary button per screen
   ============================================================ */

/* Feature case study: full width, nothing truncated */
.case-grid:has(> .case-card--feature:only-child) { grid-template-columns: 1fr; }
.case-card--feature .case-media { aspect-ratio: 16 / 10; }
.case-card--feature .case-media img { width: min(34%, 220px); margin-top: 12%; }
.case-card--feature .ghost-num { font-size: clamp(64px, 10vw, 120px); top: 18px; left: 24px; }
.case-body { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.case-eyebrow { font-size: .9375rem; color: var(--muted); }
.case-card--feature .case-title,
.case-card--feature .case-blurb {
  display: block; min-height: 0; overflow: visible; -webkit-line-clamp: unset; margin: 0;
}
.case-card--feature .case-blurb { max-width: 56ch; }
.case-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 8px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.case-stats > span {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 14px 0;
  font-size: .9375rem; color: var(--muted); line-height: 1.35;
}
.case-stats > span + span { padding-left: 16px; border-left: 1px solid var(--border); }
.case-stats strong { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.case-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 6px;
  font-weight: 500; color: var(--text);
}
.case-link svg { width: 16px; height: 16px; transition: transform .25s ease; }
.case-card:hover .case-link svg { transform: translateX(3px); }
@media (max-width: 520px) {
  .case-stats { grid-template-columns: 1fr; }
  .case-stats > span { flex-direction: row; align-items: baseline; gap: 10px; padding: 10px 0; }
  .case-stats > span + span { padding-left: 0; border-left: 0; border-top: 1px solid var(--border); }
  .case-stats strong { min-width: 4.5ch; }
  .case-card--feature .case-media img { width: min(48%, 200px); }
}

/* Hiring: one quiet line that opens the brief */
.hire-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
  padding: 18px 20px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface-solid);
}
.hire-strip-text { margin: 0; color: var(--muted); }
.hire-strip-text strong { color: var(--text); font-weight: 600; }
.hire-strip-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.text-link {
  font-weight: 500; color: var(--text);
  text-decoration: underline; text-decoration-color: var(--border);
  text-underline-offset: 4px; transition: text-decoration-color .2s ease;
}
.text-link:hover { text-decoration-color: currentColor; }

/* Footer is now the one contact zone */
.site-foot { scroll-margin-top: 96px; }

/* ============================================================
   v3 — work-led homepage
   Real work first, fewer words, one column at full width.
   Same tokens, Geist, weights 400/500/600.
   ============================================================ */

.column--v3 .content { display: block; }
.column--v3 .section { margin-top: 112px; }

.v3-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-bottom: 24px;
}
.v3-head h2 { margin: 0; font-size: clamp(1.5rem, 3.5vw, 1.875rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.v3-k { display: block; font-size: .9375rem; color: var(--muted); line-height: 1.4; }

/* ---------- Hero ---------- */
.v3-hero { padding-top: 40px; }
.v3-id { display: flex; align-items: center; gap: 14px; }
.v3-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--border); }
.v3-name { margin: 0; font-weight: 600; line-height: 1.3; }
.v3-role { margin: 0; display: flex; align-items: center; gap: 8px; font-size: .9375rem; color: var(--muted); }
.v3-role a { color: var(--text); }
.v3-role .status-dot { flex: none; }
.v3-title {
  margin: 36px 0 0; max-width: 19ch;
  font-size: clamp(2.5rem, 6.6vw, 4.5rem); font-weight: 600;
  letter-spacing: -0.04em; line-height: 1.02;
}
.v3-soft { color: var(--muted); }
.v3-hero .hero-sub { margin-top: 8px; }
.v3-hero .cta-row { margin-top: 24px; }

/* ---------- Work grid ---------- */
.v3-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 16px; }
.v3-tile { display: flex; flex-direction: column; gap: 16px; color: inherit; text-decoration: none; }
.v3-tile--wide { grid-column: span 2; }
.v3-media {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 4 / 5; border-radius: 24px;
  background: var(--surface-solid); border: 1px solid var(--border);
  transform: translateZ(0);
}
.v3-tile--wide .v3-media { aspect-ratio: 2 / 1; }
.v3-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .8s cubic-bezier(.16, 1, .3, 1);
}
.v3-tile:hover .v3-media img { transform: scale(1.035); }

.v3-media--browser {
  display: flex; flex-direction: column;
  padding: 40px 56px 0;
  background: radial-gradient(120% 90% at 50% 0%, #2A2C31 0%, #0D0E11 70%);
  border-color: rgba(255, 255, 255, .06);
}
.v3-browser-bar {
  flex: none; height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 14px;
  background: #1C1D21; border-radius: 12px 12px 0 0; border: 1px solid rgba(255, 255, 255, .08); border-bottom: 0;
}
.v3-browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.v3-media--browser video {
  flex: 1; min-height: 0; width: 100%; object-fit: cover; object-position: top center; display: block;
  background: #fff; box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
  transition: transform .8s cubic-bezier(.16, 1, .3, 1);
}
.v3-tile:hover .v3-media--browser video { transform: translateY(-6px); }

.v3-cap { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.v3-t { display: block; font-size: 1.1875rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.v3-stat { text-align: right; font-size: .9375rem; color: var(--muted); line-height: 1.35; }
.v3-stat strong { display: block; font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }

/* ---------- Journey ---------- */
.v3-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.v3-steps li {
  display: flex; flex-direction: column; gap: 14px; padding: 24px;
  border-radius: 24px; border: 1px solid var(--border); background: var(--surface-solid);
}
.v3-step-top { display: flex; align-items: center; gap: 12px; }
.v3-step-top img { width: 40px; height: 40px; flex: none; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid var(--border); }
.v3-step-top strong { display: block; font-weight: 600; line-height: 1.3; }
.v3-step-top small { display: block; font-size: .9375rem; color: var(--muted); line-height: 1.35; }
.v3-big { margin-top: auto; padding-top: 20px; font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.v3-line { color: var(--muted); font-size: .9375rem; line-height: 1.5; }
/* "Now" card is inverted, so the story ends on the present */
.v3-steps li:last-child { background: var(--primary); color: var(--on-primary); border-color: transparent; }
.v3-steps li:last-child small,
.v3-steps li:last-child .v3-line { color: color-mix(in srgb, var(--on-primary) 68%, transparent); }

/* ---------- Outside work ---------- */
.v3-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.v3-card {
  display: flex; flex-direction: column; gap: 14px; padding: 24px;
  border-radius: 24px; border: 1px solid var(--border); background: var(--surface-solid);
  color: inherit; text-decoration: none;
}
a.v3-card { transition: transform .25s ease, box-shadow .25s ease; }
a.v3-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.v3-card-title { font-size: clamp(1.375rem, 3vw, 1.75rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.v3-card .text-link { margin-top: auto; align-self: flex-start; }
.v3-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.v3-chips span { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--border); font-size: .9375rem; color: var(--muted); }
.v3-posts { list-style: none; margin: 0; padding: 0; }
.v3-posts li + li { border-top: 1px solid var(--border); }
.v3-posts a { display: flex; align-items: center; gap: 14px; padding: 12px 0; color: inherit; text-decoration: none; }
.v3-posts a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.v3-posts img { width: 72px; height: 48px; flex: none; border-radius: 10px; object-fit: cover; background: var(--border); }
.v3-posts span { font-weight: 500; line-height: 1.35; }
.v3-kitchen {
  margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 24px; border-radius: 20px; border: 1px solid var(--border);
  color: var(--muted); text-decoration: none; transition: background-color .2s ease;
}
.v3-kitchen strong { color: var(--text); font-weight: 600; margin-right: 6px; }
.v3-kitchen svg { width: 18px; height: 18px; flex: none; color: var(--text); transition: transform .25s ease; }
.v3-kitchen:hover { background: var(--surface-solid); }
.v3-kitchen:hover svg { transform: translateX(3px); }

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  .v3-steps { grid-template-columns: 1fr; }
  .v3-duo { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .column--v3 .section { margin-top: 80px; }
  .v3-grid { grid-template-columns: 1fr; gap: 32px; }
  .v3-tile--wide { grid-column: auto; }
  .v3-media, .v3-tile--wide .v3-media { aspect-ratio: 4 / 3.4; }
  .v3-media--browser { padding: 22px 18px 0; }
  .v3-cap { flex-direction: column; gap: 8px; }
  .v3-stat { text-align: left; }
  .v3-stat strong { display: inline; margin-right: 6px; }
  .v3-title { margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .v3-media img, .v3-media--browser video { transition: none; }
}


/* v3 + sticky rail: the rail carries identity on desktop */
@media (min-width: 900px) {
  .column--v3 .v3-id { display: none; }
  .column--v3 .v3-hero { padding-top: 24px; }
  .column--v3 .v3-title { margin-top: 0; max-width: none; font-size: clamp(2.5rem, 4.4vw, 3.5rem); }
  .column--v3 .v3-head h2 { font-size: 1.625rem; }
  .column--v3 .v3-media--browser { padding: 28px 32px 0; }
  .column--v3 .v3-big { font-size: clamp(2.25rem, 3.6vw, 2.75rem); }
  .column--v3 .v3-steps li { padding: 20px; }
}


/* Geist: tabular numbers for stats */
.v3-big, .v3-stat strong, .case-stats strong, .cs-stat strong { font-variant-numeric: tabular-nums; }

/* Original hero headline: keep "who" on the same line as "engineer" */
.column--v3 .display { max-width: 32ch; }


/* ---------- Journey v2: timeline track + tighter cards ---------- */
.v3-track {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  margin-bottom: 14px;
}
.v3-track > span {
  position: relative; padding-top: 14px;
  font-size: .9375rem; color: var(--muted);
  border-top: 2px solid var(--border);
}
.v3-track b { font-weight: 600; color: var(--text); margin-right: 6px; font-variant-numeric: tabular-nums; }
.v3-track > span::before {           /* tick where each chapter starts */
  content: ""; position: absolute; left: 0; top: -6px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--muted);
}
.v3-track .is-now { border-top-color: var(--text); }
.v3-track .is-now::before { background: var(--text); border-color: var(--text); }
.v3-now {
  position: absolute; right: 0; top: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  font-style: normal; font-weight: 500; color: var(--text);
}
.v3-now::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22C55E;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .16);
  animation: live-pulse 1.8s ease-in-out infinite;
}
.v3-track .is-now::after {           /* the line keeps going past "now" */
  content: ""; position: absolute; right: -16px; top: -2px; width: 16px; height: 2px;
  background: linear-gradient(90deg, var(--text), transparent);
}

.column--v3 .v3-steps li {
  gap: 0; padding: 22px;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s ease;
}
.column--v3 .v3-steps li:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.v3-when { display: none; }
.v3-co { display: flex; align-items: center; gap: 12px; }
.v3-co img { width: 36px; height: 36px; flex: none; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid var(--border); }
.v3-co strong { display: block; font-weight: 600; line-height: 1.25; }
.v3-co small { display: block; font-size: .9375rem; color: var(--muted); line-height: 1.3; }
.column--v3 .v3-big { margin-top: 32px; padding-top: 0; font-size: clamp(2.25rem, 3.4vw, 2.75rem); }
.column--v3 .v3-line { margin-top: 8px; font-size: .9375rem; line-height: 1.45; max-width: 26ch; }
.v3-steps li:last-child .v3-co small { color: color-mix(in srgb, var(--on-primary) 68%, transparent); }
.v3-steps li:last-child .v3-co img { border-color: transparent; }

@media (max-width: 760px) {
  .v3-track { display: none; }
  .v3-when { display: block; margin-bottom: 14px; font-size: .9375rem; color: var(--muted); }
  .v3-steps li:last-child .v3-when { color: color-mix(in srgb, var(--on-primary) 68%, transparent); }
  .column--v3 .v3-big { margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .v3-now::before { animation: none; }
  .column--v3 .v3-steps li { transition: none; }
}

.v3-journey .v3-head { flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 28px; }


/* ---------- Journey v3: vertical timeline, same on every screen ---------- */
.v3-tl { list-style: none; margin: 0; padding: 0; position: relative; }
.v3-tl-item {
  position: relative;
  display: grid; grid-template-columns: 112px 28px minmax(0, 1fr); align-items: start;
  padding-bottom: 20px;
}
.v3-tl-item:last-child { padding-bottom: 0; }

/* the line: runs down the middle column, from this marker to the next */
.v3-tl-item::before {
  content: ""; position: absolute; left: calc(112px + 13px); top: 30px; bottom: -6px;
  width: 2px; background: var(--border);
}
.v3-tl-item:last-child::before { display: none; }
.v3-tl-item:nth-last-child(2)::before { background: linear-gradient(var(--border), var(--text)); }

.v3-tl-when { padding-top: 18px; text-align: right; padding-right: 14px; line-height: 1.3; }
.v3-tl-when b { display: block; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.v3-tl-when span { display: block; font-size: .9375rem; color: var(--muted); }
.v3-tl-chapter { margin-top: 6px; color: var(--text) !important; font-weight: 500; }

.v3-tl-dot {
  position: relative; z-index: 1; justify-self: center; margin-top: 22px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--muted);
}
.v3-tl-item.is-now .v3-tl-dot {
  background: #22C55E; border-color: #22C55E;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, .16);
  animation: live-pulse 1.8s ease-in-out infinite;
}

.v3-tl-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px 22px; border-radius: 22px;
  border: 1px solid var(--border); background: var(--surface-solid);
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s ease;
}
.v3-tl-card:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.v3-tl-stat { display: flex; flex-direction: column; align-items: flex-end; text-align: right; flex: none; max-width: 52%; }
.v3-tl .v3-big { margin: 0; padding: 0; font-size: clamp(2rem, 3.4vw, 2.5rem); }
.v3-tl .v3-line { margin-top: 4px; max-width: 30ch; font-size: .9375rem; line-height: 1.4; color: var(--muted); }

/* current chapter: inverted card */
.v3-tl-item.is-now .v3-tl-card { background: var(--primary); color: var(--on-primary); border-color: transparent; }
.v3-tl-item.is-now .v3-co small,
.v3-tl-item.is-now .v3-line { color: color-mix(in srgb, var(--on-primary) 68%, transparent); }
.v3-tl-item.is-now .v3-co img { border-color: transparent; }

/* tablet: card content stacks, timeline stays */
@media (max-width: 900px) {
  .v3-tl-card { flex-direction: column; align-items: flex-start; gap: 18px; }
  .v3-tl-stat { align-items: flex-start; text-align: left; max-width: none; }
}
/* phone: narrower year column, same line and markers */
@media (max-width: 560px) {
  .v3-tl-item { grid-template-columns: 74px 22px minmax(0, 1fr); padding-bottom: 16px; }
  .v3-tl-item::before { left: calc(74px + 10px); }
  .v3-tl-when span { white-space: nowrap; }
  .v3-tl-when { padding-right: 8px; padding-top: 16px; }
  .v3-tl-when b { font-size: 1.0625rem; }
  .v3-tl-card { padding: 18px; }
  .v3-tl-card:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .v3-tl-item.is-now .v3-tl-dot { animation: none; }
  .v3-tl-card { transition: none; }
}

/* Homepage polish: a clearer introduction and a consistent project rhythm. */
.page-home .column--v3 .section { margin-top: 88px; }
.page-home .v3-head {
  border-top: 1px solid var(--border); padding-top: 24px; margin-bottom: 28px;
}
.section-number {
  color: var(--muted); font-size: .9375rem; font-weight: 400;
  letter-spacing: 0; vertical-align: middle; margin-right: 10px;
  font-variant-numeric: tabular-nums;
}
.page-home .v3-grid { gap: 40px 24px; }
.page-home .v3-media { border-radius: 20px; aspect-ratio: 1 / 1; }
.page-home .v3-tile--wide .v3-media { aspect-ratio: 1.9 / 1; }
.page-home .v3-cap { gap: 16px; }
.page-home .v3-t { font-size: 1.25rem; margin-bottom: 5px; }
.project-summary { display: block; margin-top: 10px; line-height: 1.55; color: var(--muted); }
.project-action {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: auto; padding-top: 14px;
  border-top: 1px solid var(--border); font-size: .9375rem; font-weight: 500;
}
.project-action > span {
  display: grid; place-items: center; width: 30px; height: 30px;
  border: 1px solid var(--border); border-radius: 50%;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.v3-tile:hover .project-action > span {
  background: var(--primary); color: var(--on-primary); transform: rotate(5deg);
}
.page-home .v3-tile:focus-visible {
  outline: 2px solid var(--text); outline-offset: 8px; border-radius: 20px;
}
.page-home .v3-stat { flex: 0 0 138px; padding-top: 2px; }
.page-home .v3-card { border-radius: 20px; }
@media (max-width: 640px) {
  .page-home .column--v3 .section { margin-top: 64px; }
  .page-home .v3-head { gap: 12px; flex-wrap: wrap; padding-top: 20px; }
  .page-home .v3-head h2 { font-size: 1.5rem; }
  .page-home .v3-grid { gap: 32px; }
  .page-home .v3-media { aspect-ratio: 4 / 3; }
  .page-home .v3-tile--wide .v3-media { aspect-ratio: 4 / 3; }
  .page-home .v3-stat { flex: auto; padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .project-action > span { transition: none; }
}
@media (max-width: 360px) {
  .page-home .site-head { gap: 4px; }
  .page-home .site-head .avatar-link { display: none; }
  .page-home .brief-btn svg { display: none; }
  .page-home .site-head .theme-toggle { flex: 0 0 44px; }
}
.page-home .section,
.page-home #contact { scroll-margin-top: 96px; }
