/* ==========================================================================
   Lawrence Lee — portfolio
   Tokens, base, layout, components. No build step; plain CSS.
   ========================================================================== */

:root {
  --bg: #f4f4f6;
  --surface: #ffffff;
  --dark: #101014;
  --dark-2: #16161c;
  --ink: #101014;
  --ink-2: #5b5b66;
  --ink-3: #8e8e9a;
  --ink-on-dark: #f5f5f7;
  --ink-2-on-dark: #a2a2ae;
  --line: #e2e2e8;
  --line-dark: #2a2a33;
  --accent: #503de8;
  --accent-2: #a99cf7;
  --hero3d-ink: #0A0A1B;
  --hero3d-accent: #B3A8F5;
  --green: #4ade80;

  --font: "Geist", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1248px;
  --pad: clamp(20px, 6.67vw, 96px);
  --radius: 12px;
  --radius-sm: 8px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }

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

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--pad)); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.mono--accent { color: var(--accent); }
.on-dark .mono--accent { color: var(--accent-2); }

.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.on-dark .eyebrow, .dark .eyebrow { color: var(--accent-2); }

/* Dark surfaces */
.dark { background: var(--dark); color: var(--ink-on-dark); }
.dark .muted { color: var(--ink-2-on-dark); }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }

/* Type scale */
.h-display { font-size: clamp(44px, 6.1vw, 88px); font-weight: 600; line-height: 1; letter-spacing: -0.045em; }
.h-hero { font-size: clamp(36px, 4vw, 52px); font-weight: 600; line-height: 1.08; letter-spacing: -0.035em; }
.h-title { font-size: clamp(40px, 7.2vw, 104px); font-weight: 600; line-height: 1; letter-spacing: -0.045em; overflow-wrap: anywhere; }
.h1 { font-size: clamp(34px, 3.4vw, 48px); font-weight: 600; line-height: 1.1; letter-spacing: -0.035em; }
.h2 { font-size: clamp(30px, 2.8vw, 40px); font-weight: 600; line-height: 1.1; letter-spacing: -0.035em; }
.h3 { font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.h4 { font-size: 18px; font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; }
.lead { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.45; }
.body-lg { font-size: 17px; }
.small { font-size: 14px; }
.tiny { font-size: 13px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 600; line-height: 1; transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #4533d0; }
.btn--light { background: var(--ink-on-dark); color: var(--dark); }
.btn--light:hover { background: #fff; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ghost { border: 1px solid var(--line-dark); color: var(--ink-on-dark); font-weight: 500; }
.btn--ghost:hover { border-color: #3d3d48; }
.btn--surface { background: var(--surface); color: var(--ink); font-size: 14px; padding: 12px 18px; }
.btn--surface:hover { background: #fff; box-shadow: 0 6px 20px rgba(16,16,20,.08); }
.btn--sm { padding: 10px 18px; font-size: 14px; }

.link { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--accent); }
.link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link:hover svg { transform: translateX(3px); }
.on-dark .link { color: var(--ink-on-dark); }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav { position: relative; z-index: 20; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; padding-bottom: 28px; }
.nav__logo { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-on-dark); }
.nav__links { display: flex; align-items: center; gap: 36px; }
.nav__links a { font-size: 14px; font-weight: 500; color: var(--ink-2-on-dark); transition: color .2s; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink-on-dark); }
.nav__links a[aria-current="page"] { font-weight: 600; }
.nav__cta { margin-left: 0; }
.nav__toggle { display: none; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line-dark); color: var(--ink-on-dark); align-items: center; justify-content: center; }
.nav__toggle svg { width: 18px; height: 18px; }

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav.is-open .nav__links { display: flex; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--dark); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); padding: 8px var(--pad) 16px; }
  .nav.is-open .nav__links a { padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--line-dark); }
  .nav.is-open .nav__links a:last-child { border-bottom: 0; }
  .nav.is-open .nav__links .btn { margin-top: 12px; justify-content: center; }
}

/* ==========================================================================
   Hero (home) — outline Tetris background
   ========================================================================== */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #15172a 0%, #101014 100%); color: var(--ink-on-dark); min-height: 640px; }
.hero .nav { position: relative; z-index: 3; }
.hero__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 50% 70% at 72% 70%, rgba(59,108,255,.15) 0%, rgba(139,92,246,.07) 50%, rgba(16,16,20,0) 100%); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: pointer; }
.hero { cursor: pointer; }
.hero a, .hero button { cursor: pointer; }
.hero__inner { position: relative; z-index: 2; padding-top: clamp(56px, 6.7vw, 96px); padding-bottom: clamp(56px, 6.1vw, 88px); }
.hero__copy { max-width: 660px; display: grid; gap: 28px; }
.hero__headline { font-size: clamp(34px, 3.6vw, 52px); font-weight: 600; line-height: 1.1; letter-spacing: -0.035em; }
.hero__headline em { font-style: normal; color: var(--accent-2); }
.hero__body { max-width: 600px; font-size: 17px; color: var(--ink-2-on-dark); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.hero__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.hero__hud { position: absolute; right: var(--pad); top: calc(93px + clamp(56px, 6.7vw, 96px)); z-index: 2; }
.hero__hud button { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); transition: color .2s; }
.hero__hud button:hover { color: var(--ink-on-dark); }
.hero__hud button.is-building { color: var(--accent-2); }

@media (max-width: 900px) {
  .hero__hud { position: static; margin-top: 24px; }
  .hero__copy { position: relative; }
  .hero__copy::before { content: ""; position: absolute; inset: -40px -40px -40px -40px; background: radial-gradient(ellipse at 30% 50%, rgba(16,16,20,.85), rgba(16,16,20,0) 70%); z-index: -1; }
}

/* Wordmarks / logos strip: seamless marquee, left to right */
.wordmarks { border-top: 1px solid var(--line-dark); padding: 28px 0; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 114s linear infinite; }
.marquee__group { display: flex; flex: none; }
.marquee__group span { font-size: 16px; font-weight: 600; color: var(--ink-3); white-space: nowrap; padding: 0 40px; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } .marquee { mask-image: none; -webkit-mask-image: none; } .marquee__group[aria-hidden] { display: none; } .marquee__group { flex-wrap: wrap; justify-content: center; row-gap: 12px; } }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-top: clamp(72px, 8.3vw, 120px); }
.section--flush { padding-top: 0; }
.section__header { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 48px; }
.section__header .h2 { font-size: clamp(32px, 3.3vw, 48px); }
.section__heading { display: grid; gap: 12px; max-width: 800px; }
.section__heading .lead { color: var(--ink); }
@media (max-width: 700px) { .section__header { flex-direction: column; align-items: flex-start; gap: 12px; } }

/* Proof strip */
.proof { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 64px; }
.metric-card { background: var(--surface); border-radius: var(--radius); padding: 28px; display: grid; gap: 12px; }
.metric-card__value { font-size: clamp(32px, 2.8vw, 40px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--accent); }
.metric-card__label { font-size: 14px; color: var(--ink-2); line-height: 1.45; }
@media (max-width: 960px) { .proof { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .proof { grid-template-columns: 1fr; } }

/* Selected work: bordered cards, text left, wide thumbnail right (no alternating) */
.work { display: grid; gap: 24px; }
.project { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 4.5vw, 64px); align-items: center; padding: clamp(28px, 4vw, 56px); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: border-color .25s, box-shadow .25s; }
.project__media { order: 2; }
.cover3d { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1248 / 680; background: var(--bg); border: 1px solid var(--line); perspective: 1200px; }
.cover3d__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cover3d__fg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transform-style: preserve-3d; will-change: transform; filter: drop-shadow(0 18px 30px rgba(10,10,27,0)); transition: filter .6s var(--ease); }
.cover3d.is-active .cover3d__fg { filter: drop-shadow(0 22px 34px rgba(10,10,27,.22)); }
.tilt__sheen { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--sx, 50%) var(--sy, 50%), rgba(255,255,255,.28), rgba(255,255,255,0) 50%); opacity: 0; transition: opacity .5s; mix-blend-mode: soft-light; }
.cover3d.is-active .tilt__sheen { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .cover3d__fg { transform: none !important; } .tilt__sheen { display: none; } }
.project__text { display: grid; gap: 16px; order: 1; }
.project__index { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .04em; color: var(--ink-2); }
.project__title { font-size: clamp(26px, 2.5vw, 36px); font-weight: 600; line-height: 1.1; letter-spacing: -0.035em; }
.project__meta { font-size: 14px; color: var(--ink-2); }
.project__desc { color: var(--ink-2); max-width: 46ch; }
.project__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.project__actions .btn { padding: 12px 18px; font-size: 14px; }
.btn--ink:hover { background: #22223a; }
.btn--outline { border: 1px solid var(--line); color: var(--ink); background: var(--surface); font-weight: 500; }
.btn--outline:hover { border-color: #cfcbe8; background: var(--bg); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 12px; font-weight: 500; color: var(--ink-2); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px; }
.tag--soft { border: 0; background: var(--bg); }
@media (max-width: 900px) { .project { grid-template-columns: 1fr; gap: 24px; } .project__media { order: 0; } .project__text { order: 1; } }

/* AI playground section (home) */
.ai-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 64px; margin-bottom: 56px; }
.ai-header__text { display: grid; gap: 14px; max-width: 720px; }
.ai-header__text .h1 { font-size: clamp(30px, 3vw, 44px); }
@media (max-width: 800px) { .ai-header { flex-direction: column; align-items: flex-start; gap: 20px; } }

.icon-box { width: 40px; height: 40px; border-radius: 10px; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; color: var(--accent); flex: none; }
.icon-box svg { width: 18px; height: 18px; }
.card .icon-box { background: var(--bg); }
.cycle { display: grid; gap: 20px; }
.cycle__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.cycle__step { position: relative; display: grid; gap: 8px; align-content: start; }
.cycle__node { position: relative; z-index: 1; width: 48px; height: 48px; margin-bottom: 12px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--accent); }
.cycle__node svg { width: 20px; height: 20px; }
.cycle__step:not(:last-child)::after { content: ""; position: absolute; top: 24px; left: 60px; right: -12px; height: 1px; background: var(--line); }
.cycle__step:not(:last-child)::before { content: ""; position: absolute; top: 20px; right: -12px; width: 8px; height: 8px; border-top: 1px solid #c4c4cf; border-right: 1px solid #c4c4cf; transform: rotate(45deg); }
.cycle__title { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.cycle__desc { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.cycle__rail { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.cycle__rail .logo-tile { width: 32px; height: 32px; }
.cycle__rail .logo-tile svg { width: 16px; height: 16px; }
@media (max-width: 900px) {
  .cycle__steps { grid-template-columns: 1fr; gap: 0; }
  .cycle__step { grid-template-columns: 48px auto 1fr; column-gap: 16px; row-gap: 2px; padding-bottom: 24px; }
  .cycle__node { grid-row: 1 / span 2; margin: 0; }
  .cycle__step .mono { align-self: end; grid-column: 2; }
  .cycle__title { grid-column: 3; align-self: end; }
  .cycle__desc { grid-column: 2 / -1; }
  .cycle__step:not(:last-child)::after { top: 52px; bottom: 4px; left: 24px; right: auto; width: 1px; height: auto; }
  .cycle__step:not(:last-child)::before { display: none; }
}

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--surface); border-radius: var(--radius); padding: 28px; display: grid; gap: 16px; align-content: start; }
.card--dark { background: var(--dark); color: var(--ink-on-dark); }
.card__desc { font-size: 15px; color: var(--ink-2); }
.card--dark .card__desc { color: var(--ink-2-on-dark); }
.status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--live { color: #16a34a; }
@media (max-width: 960px) { .cards, .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards, .cards--4, .cards--2 { grid-template-columns: 1fr; } }

/* Testimonial */
.testimonial { padding-top: clamp(80px, 9.7vw, 140px); padding-bottom: clamp(80px, 9.7vw, 140px); display: grid; justify-items: center; text-align: center; gap: 28px; }
.testimonial__mark { font-size: 96px; font-weight: 700; line-height: .6; color: var(--accent); }
.testimonial__quote { max-width: 960px; font-size: clamp(24px, 2.5vw, 36px); font-weight: 600; line-height: 1.25; letter-spacing: -0.03em; }
.testimonial__who { font-size: 14px; color: var(--ink-2); }

/* About band (home) */
.about-band { padding-top: 96px; padding-bottom: 96px; }
.about-band__inner { display: grid; grid-template-columns: 240px 1fr; gap: 72px; align-items: center; }
.about-band__photo { width: 240px; height: 240px; border-radius: 50%; overflow: hidden; }
.about-band__photo img { width: 100%; height: 100%; object-fit: cover; }
.about-band__text { display: grid; gap: 20px; }
.about-band__text .h1 { font-size: clamp(26px, 2.4vw, 34px); }
@media (max-width: 800px) { .about-band__inner { grid-template-columns: 1fr; gap: 32px; } }

/* Footer */
.footer { padding-top: clamp(80px, 8.3vw, 120px); padding-bottom: 40px; }
.footer__cta { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 56px; }
.footer__big { font-size: clamp(38px, 5vw, 72px); font-weight: 600; line-height: 1.02; letter-spacing: -0.04em; }
.footer__links { display: flex; flex-wrap: wrap; gap: 12px; }
.footer__links .btn svg { width: 14px; height: 14px; color: var(--ink-2); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
@media (max-width: 760px) { .footer__cta { flex-direction: column; align-items: flex-start; gap: 24px; } }

/* ==========================================================================
   Case study
   ========================================================================== */
.cs-header { padding-top: clamp(56px, 5.6vw, 80px); display: grid; gap: 28px; }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-3); }
.breadcrumb svg { width: 14px; height: 14px; }
.breadcrumb span { color: var(--ink-on-dark); }
.cs-header__sub { max-width: 880px; font-size: clamp(20px, 2.1vw, 30px); font-weight: 500; line-height: 1.25; letter-spacing: -0.025em; color: var(--ink-2-on-dark); }
.cs-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 28px 0 56px; border-top: 1px solid var(--line-dark); }
.cs-meta dt { font-size: 12px; font-weight: 600; letter-spacing: .03em; color: var(--ink-3); margin-bottom: 8px; }
.cs-meta dd { font-size: 15px; line-height: 1.4; color: var(--ink-on-dark); }
@media (max-width: 800px) { .cs-meta { grid-template-columns: repeat(2, 1fr); } }

.cs-cover { padding-bottom: clamp(48px, 5.6vw, 80px); }
.cs-cover__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1248 / 680; background: var(--dark-2); }
.cs-cover__img img { width: 100%; height: 100%; object-fit: cover; }

.tldr { margin-top: 64px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 2.8vw, 40px); display: grid; grid-template-columns: 220px 1fr; gap: 56px; }
.tldr__label { display: grid; gap: 8px; align-content: start; }
.tldr__label .h3 { font-size: 22px; }
.tldr__list { display: grid; gap: 14px; counter-reset: tldr; }
.tldr__list li { display: grid; grid-template-columns: 24px 1fr; gap: 16px; font-size: 17px; line-height: 1.5; }
.tldr__list li::before { counter-increment: tldr; content: counter(tldr); width: 24px; height: 24px; border-radius: 50%; background: var(--bg); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.tldr__metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.tldr__metrics div { display: grid; gap: 6px; }
.tldr__metrics b { font-size: clamp(28px, 2.5vw, 36px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--accent); }
.tldr__metrics span { font-size: 13px; color: var(--ink-2); line-height: 1.4; }
@media (max-width: 900px) { .tldr { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 560px) { .tldr__metrics { grid-template-columns: 1fr; } }

.cs-body { display: grid; grid-template-columns: 240px 1fr; gap: 64px; align-items: start; padding-top: 96px; padding-bottom: 120px; }
.toc { position: sticky; top: 24px; display: grid; gap: 2px; padding-top: 6px; }
.toc a { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 6px; font-size: 14px; color: var(--ink-2); transition: background .2s, color .2s; }
.toc a i { font-family: var(--mono); font-style: normal; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.toc a.is-active { background: var(--surface); color: var(--ink); font-weight: 600; }
.toc a.is-active i { color: var(--accent); }
.cs-main { display: grid; gap: 88px; min-width: 0; }
.cs-section { display: grid; gap: 24px; scroll-margin-top: 24px; }
.cs-section__n { font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--accent); margin-bottom: 10px; }
.cs-section .kicker { font-size: 18px; line-height: 1.4; color: var(--ink); }
.cs-section p { color: var(--ink-2); font-size: 16px; }
.cs-section p.strong { color: var(--ink); font-weight: 600; font-size: 16px; }
.cs-section .analogy { border-left: 3px solid var(--accent); padding: 4px 0 4px 24px; }
.cs-section .analogy p { font-style: italic; }
@media (max-width: 900px) { .cs-body { grid-template-columns: 1fr; gap: 40px; padding-top: 64px; } .toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; } }

.bullets { display: grid; gap: 12px; }
.bullets li { display: grid; grid-template-columns: 6px 1fr; gap: 14px; font-size: 16px; line-height: 1.5; }
.bullets li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 10px; }

.table { background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.table__row { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding: 20px 24px; border-top: 1px solid var(--line); }
.table__row:first-child { border-top: 0; }
.table__row b { font-weight: 600; font-size: 16px; }
.table__row p { font-size: 16px; }
@media (max-width: 640px) { .table__row { grid-template-columns: 1fr; gap: 6px; } }

.media { display: grid; gap: 16px; }
.media__frame { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1248 / 520; background: var(--surface); }
.media__frame img { width: 100%; height: 100%; object-fit: cover; }
.media__frame--natural { aspect-ratio: auto; border: 1px solid var(--line); }
.media__frame--natural img { height: auto; }
.media__play { position: absolute; inset: 0; display: grid; place-items: center; }
.media__play span { width: 72px; height: 72px; border-radius: 50%; background: var(--dark); color: var(--ink-on-dark); display: grid; place-items: center; transition: transform .2s var(--ease); }
.media__play:hover span { transform: scale(1.06); }
.media__play svg { width: 24px; height: 24px; margin-left: 3px; }
.media__title { font-size: 16px; font-weight: 600; }
.media__desc, .cs-section .media__desc, .cs-section .media__points li { font-size: 14px; }
.media__caption { font-size: 13px; color: var(--ink-3); }

.annotated { display: grid; grid-template-columns: 600fr 400fr; gap: 24px; align-items: start; }
.annotated__shot { border-radius: var(--radius); overflow: hidden; aspect-ratio: 600 / 380; background: var(--surface); }
.annotated__shot img { width: 100%; height: 100%; object-fit: cover; }
.annotated__shot--natural { aspect-ratio: auto; align-self: start; border: 1px solid var(--line); }
.annotated__shot--natural img { height: auto; }
button.annotated__shot { display: block; width: 100%; padding: 0; text-align: left; }
.annotated__notes { display: grid; gap: 14px; }
.annotated__notes ol { display: grid; gap: 12px; counter-reset: note; }
.annotated__notes ol li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.annotated__notes ol li::before { counter-increment: note; content: counter(note); width: 22px; height: 22px; border-radius: 50%; background: var(--surface); font-size: 11px; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.annotated__pains { display: grid; gap: 10px; }
.annotated__pains li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.annotated__pains li svg { width: 14px; height: 14px; color: var(--accent); margin-top: 3px; }
@media (max-width: 800px) { .annotated { grid-template-columns: 1fr; } }

.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; --ba-before: #B7561E; --ba-after: #0D751B; }
.ba__col { border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: grid; align-content: start; }
.ba__label { display: flex; align-items: center; gap: 8px; padding: 14px 24px; font-size: 15px; font-weight: 600; letter-spacing: .02em; color: #fff; background: var(--ba-before); }
.ba__col--after .ba__label { background: var(--ba-after); }
.ba__col ul { margin: 0; padding: 4px 24px 8px; list-style: none; }
.ba__col li { padding: 14px 0; font-size: 15px; line-height: 1.45; color: var(--ink); }
.ba__col li + li { border-top: 1px solid var(--line); }
@media (max-width: 640px) { .ba { grid-template-columns: 1fr; } }

.quotes { display: grid; gap: 16px; margin-top: 24px; }
.quotes__head { display: flex; align-items: center; gap: 16px; margin-bottom: 4px; }
.quotes__head .h4 { color: var(--accent); }
.quotes__head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.quote { background: var(--surface); border-radius: var(--radius); padding: 32px; display: grid; gap: 16px; }
.quote p { font-size: 22px; font-weight: 600; line-height: 1.35; letter-spacing: -0.02em; color: var(--ink); }
.quote cite { font-style: normal; font-size: 14px; color: var(--ink-2); }

.next { display: block; padding-top: 64px; padding-bottom: 64px; }
.next__inner { display: grid; grid-template-columns: 1fr 520px; gap: 64px; align-items: center; }
.next__text { display: grid; gap: 14px; max-width: 520px; }
.next__title { font-size: clamp(36px, 3.9vw, 56px); font-weight: 600; line-height: 1.05; letter-spacing: -0.045em; }
.next__cover { border-radius: 10px; overflow: hidden; aspect-ratio: 1248 / 680; }
.next__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.next:hover .next__cover img { transform: scale(1.02); }
@media (max-width: 1000px) { .next__inner { grid-template-columns: 1fr; gap: 28px; } }

.footer--slim { padding-top: 40px; padding-bottom: 40px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--ink-3); }

/* ==========================================================================
   About
   ========================================================================== */
.about-hero { position: relative; background: linear-gradient(180deg, #15172a 0%, #101014 100%); color: var(--ink-on-dark); overflow: hidden; }
.about-hero__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 45% 65% at 75% 60%, rgba(59,108,255,.13) 0%, rgba(139,92,246,.06) 50%, rgba(16,16,20,0) 100%); }
.about-hero__inner { position: relative; display: grid; grid-template-columns: 1fr 360px; gap: 80px; align-items: center; padding-top: clamp(56px, 6.1vw, 88px); padding-bottom: clamp(56px, 6.1vw, 88px); }
.about-hero__copy { display: grid; gap: 28px; }
.about-hero__photo { width: 360px; height: 360px; border-radius: 16px; overflow: hidden; }
.about-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .about-hero__inner { grid-template-columns: 1fr; gap: 32px; } .about-hero__photo { width: 240px; height: 240px; } }

.career { border-top: 1px solid var(--line-dark); }
.career__inner { display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 28px; padding-bottom: 28px; }
.career__item { display: grid; gap: 6px; padding: 0 32px; border-left: 1px solid var(--line-dark); }
.career__item:first-child { padding-left: 0; border-left: 0; }
.career__co { font-size: 16px; font-weight: 600; color: var(--ink-on-dark); }
.career__role { font-size: 13px; color: var(--ink-2-on-dark); }
@media (max-width: 800px) { .career__inner { grid-template-columns: repeat(2, 1fr); gap: 24px 0; } .career__item:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 480px) { .career__inner { grid-template-columns: 1fr; } .career__item { padding-left: 0; border-left: 0; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 600px); gap: 64px; align-items: center; }
.split__copy { display: grid; gap: 24px; }
.split__photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 600 / 520; }
.split__photo img { width: 100%; height: 100%; object-fit: cover; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 8px; background: var(--surface); font-size: 13px; font-weight: 600; width: fit-content; }
.badge svg { width: 16px; height: 16px; color: var(--accent); }
@media (max-width: 1100px) { .split { grid-template-columns: 1fr; gap: 28px; } }

.dogs { display: grid; grid-template-columns: minmax(0, 440px) 1fr; gap: 16px; }
.dogs figure { border-radius: var(--radius); overflow: hidden; aspect-ratio: 440 / 480; }
.dogs figure img { width: 100%; height: 100%; object-fit: cover; }
.dogs figure:last-child { aspect-ratio: 792 / 480; }
@media (max-width: 800px) { .dogs { grid-template-columns: 1fr; } .dogs figure, .dogs figure:last-child { aspect-ratio: 4 / 3; } }

/* ==========================================================================
   AI playground page
   ========================================================================== */
.page-header { position: relative; background: linear-gradient(180deg, #15172a 0%, #101014 100%); color: var(--ink-on-dark); }
.page-header__inner { display: grid; gap: 24px; padding-top: clamp(56px, 6.1vw, 88px); padding-bottom: clamp(56px, 5.6vw, 80px); }
.page-header .lead { max-width: 720px; color: var(--ink-2-on-dark); }

.toolkit { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tool-card { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); cursor: default; outline: none; transition: border-color .2s, box-shadow .2s; }
.tool-card:hover, .tool-card:focus-visible { border-color: #cfcbe8; box-shadow: 0 6px 20px rgba(16,16,20,.06); }
.tool-card:focus-visible { box-shadow: 0 0 0 3px rgba(80,61,232,.25); }
.tool-card__name { font-size: 15px; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.tool-card__tip { position: absolute; left: 0; right: 0; bottom: calc(100% + 10px); z-index: 5; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--dark); color: var(--ink-on-dark); font-size: 13px; line-height: 1.45; box-shadow: 0 10px 30px rgba(16,16,20,.18); opacity: 0; visibility: hidden; transform: translateY(4px); pointer-events: none; transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s; }
.tool-card__tip::after { content: ""; position: absolute; top: 100%; left: 28px; border: 6px solid transparent; border-top-color: var(--dark); }
.tool-card:hover .tool-card__tip, .tool-card:focus .tool-card__tip { opacity: 1; visibility: visible; transform: none; }
.logo-tile { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--line); }
.logo-tile svg { width: 20px; height: 20px; fill: var(--brand); }

@media (max-width: 720px) { .toolkit { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .tool-card { padding: 12px; gap: 10px; } .logo-tile { width: 36px; height: 36px; } }
@media (prefers-reduced-motion: reduce) { .tool-card__tip { transition: none; transform: none; } }

.principle { display: grid; grid-template-columns: 22px 1fr; gap: 16px; padding: 28px; border-radius: var(--radius); background: var(--dark); color: var(--ink-on-dark); align-items: start; }
.principle svg { width: 22px; height: 22px; color: var(--accent); }
.principle b { display: block; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.principle p { font-size: 15px; color: var(--ink-2-on-dark); }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

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

/* ==========================================================================
   Light 3D hero (option G)
   ========================================================================== */
.hero--light { background: linear-gradient(180deg, #ffffff 0%, #f7f7fc 100%); color: var(--hero3d-ink); min-height: 720px; }
.hero--light .hero__glow { background: radial-gradient(ellipse 40% 55% at 72% 50%, rgba(80,61,232,.07) 0%, rgba(80,61,232,0) 70%); }
.hero--light .nav__logo, .hero--light .nav__links a:hover, .hero--light .nav__links a[aria-current="page"] { color: #0a0a1b; }
.hero--light .nav__links a { color: #535366; }
.hero--light .nav__cta, .hero--light .nav__links a.nav__cta, .hero--light .nav__links a.nav__cta:hover { background: #0a0a1b; color: #fff; }
.hero--light .nav__links a.nav__cta:hover, .hero--light a.nav__cta:hover { background: #2a2944; }
.hero--light .nav__toggle { border-color: #e2e2ed; color: #0a0a1b; }
.hero--light .hero__copy { max-width: 980px; gap: 28px; }
.hero--light .hero__headline { font-size: clamp(34px, 3.9vw, 56px); line-height: 1.08; letter-spacing: -0.027em; font-weight: 700; max-width: 18ch; }
.hero--light .hero__headline em { color: var(--accent); }
.hero--light .hero__body { color: #535366; line-height: 1.65; max-width: 580px; }
.hero--light .hero__meta { display: flex; align-items: center; gap: 16px; position: absolute; left: var(--pad); bottom: 28px; z-index: 2; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8a8a9a; }
.hero--light .hero__meta i { width: 32px; height: 1px; background: #e2e2ed; }
.hero__tip { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 6px; background: #0a0a1b; color: #fff; font-size: 13px; font-weight: 500; transition: opacity .4s; }
.hero__tip svg { width: 13px; height: 13px; }
.hero__tip[hidden] { display: none; }
.hero__tip.is-hidden { opacity: 0; pointer-events: none; }
.hero__tip--cursor { left: 0; bottom: auto; top: 0; transform: none; pointer-events: none; transition: opacity .15s; white-space: nowrap; }
.hero.is-over-object, .hero.is-over-object .hero__canvas { cursor: pointer; }
.hero--light { cursor: default; }
.hero--light .hero__canvas { cursor: default; }
@media (max-width: 900px) {
  .hero--light .hero__copy::before { display: none; }
  .hero--light .hero__inner { padding-bottom: 46vw; }
  .hero--light .hero__meta { display: none; }
}
.wordmarks--light { background: #fff; border-top: 1px solid #e2e2ed; border-bottom: 1px solid #e2e2ed; }
.wordmarks--light .marquee__group span { color: #8a8a9a; }
.wordmarks--light.marquee, .wordmarks--light .marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }

/* Case-study blocks added for the Carlyle study: gallery, points, steps, stats, sub-heads, notes */
.cs-sub { margin-top: 16px; }
.cs-note { font-size: 13px !important; color: var(--ink-3) !important; }
.gallery { display: grid; gap: 24px; align-items: start; }
.gallery--2 { grid-template-columns: 1fr 1fr; }
.gallery--full .zoom { aspect-ratio: auto; }
.gallery--full .zoom img { display: block; height: auto; }
.gallery--full .zoom::after { display: none; }
.annotated__shot.zoom { aspect-ratio: auto; }
.annotated__shot.zoom img { display: block; height: auto; object-fit: contain; }
.annotated__shot.zoom::after { display: none; }
.zoom { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); cursor: zoom-in; padding: 0; transition: border-color .2s, box-shadow .2s; }
.zoom img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .4s var(--ease); }
.zoom:hover { border-color: var(--accent-2); box-shadow: 0 12px 32px rgba(16,16,20,.10); }
.zoom:hover img { transform: scale(1.015); }
.zoom::after { content: ""; position: absolute; inset: auto 0 0 0; height: 28%; background: linear-gradient(to top, rgba(255,255,255,.95), rgba(255,255,255,0)); pointer-events: none; }
.zoom--natural { aspect-ratio: auto; }
.zoom--natural img { height: auto; object-fit: initial; }
.zoom--natural::after { display: none; }
.zoom--padded { padding: clamp(20px, 4vw, 48px); background: #fff; }
.zoom--natural .zoom__hint { opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s var(--ease); }
.zoom--natural:hover .zoom__hint, .zoom--natural:focus-visible .zoom__hint { opacity: 1; transform: none; }
@media (hover: none) { .zoom--natural .zoom__hint { opacity: 1; transform: none; } }
.zoom__hint { position: absolute; right: 14px; bottom: 14px; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: var(--dark); color: var(--ink-on-dark); font-size: 13px; font-weight: 500; }
.zoom__hint svg { width: 14px; height: 14px; }
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12,12,16,.88); overflow-y: auto; overscroll-behavior: contain; }
.lightbox::backdrop { background: transparent; }
.lightbox__inner { width: min(1200px, 100% - 32px); margin: 72px auto 48px; display: grid; gap: 14px; }
.lightbox__inner img { width: 100%; height: auto; border-radius: var(--radius); background: #fff; }
.lightbox__cap { color: var(--ink-on-dark); font-size: 15px; font-weight: 500; }
.lightbox__notes { display: none; }
.lightbox__inner--notes { width: min(1440px, 100% - 32px); grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 24px; }
.lightbox__inner--notes .lightbox__cap { position: sticky; top: 72px; display: grid; gap: 14px; padding: 20px; border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.lightbox__inner--notes .lightbox__title { font-size: 17px; font-weight: 600; }
.lightbox__inner--notes .lightbox__notes { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: n; }
.lightbox__notes li { counter-increment: n; display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 14px; font-weight: 400; line-height: 1.45; color: var(--ink-2); }
.lightbox__notes li::before { content: counter(n); width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--mono); font-size: 11px; font-weight: 600; }
@media (max-width: 900px) { .lightbox__inner--notes { grid-template-columns: 1fr; } .lightbox__inner--notes .lightbox__cap { position: static; } }
.lightbox__close { position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.lightbox__close svg { width: 20px; height: 20px; }
body.has-lightbox { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .zoom img { transition: none; } .zoom:hover img { transform: none; } }
.points { display: grid; gap: 24px; }
.point { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 2.6vw, 36px); display: grid; gap: 22px; }
.point__head { display: grid; gap: 8px; }
.point__body { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.point__case, .point__res { display: grid; gap: 10px; align-content: start; }
.point p { font-size: 15px !important; }
.point__res { border-left: 2px solid var(--accent); padding-left: 20px; }
.point__res p { color: var(--ink) !important; }
.point__lbl { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.point__lbl--accent { color: var(--accent); }
@media (max-width: 760px) { .point__body { grid-template-columns: 1fr; } }

/* Proof visuals */
.vis { display: grid; gap: 12px; margin: 4px 0 0; }
.vis .media__caption { font-size: 13px; }
.vpanel { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; min-width: 0; }
.vpanel__bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--ink-2); background: #fafafc; }
.vpanel__bar--dark { background: #1b1b22; border-color: #2a2a33; color: #a1a1ad; }
.vpanel__bar--dark i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a46; }
.vpanel__bar--dark span { margin: 0 auto; padding-right: 48px; font-family: var(--mono); font-size: 11px; }
.vis__stack { display: grid; gap: 0; background: var(--bg); border-radius: var(--radius); padding: 18px; }
.vis__step { display: flex; align-items: center; gap: 8px; padding: 12px 4px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.vis__step svg { width: 16px; height: 16px; color: var(--accent); transform: rotate(90deg); }

/* Figma window */
.vfx { border-color: #d9d9de; }
.vfx__bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; background: #2c2c2c; color: #b3b3b3; font-size: 12px; white-space: nowrap; overflow: hidden; }
.vfx__bar b { color: #fff; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.vfx__sep { color: #6b6b6b; }
.vfig__logo { flex: none; width: 10px; height: 15px; border-radius: 3px; background: linear-gradient(180deg, #f24e1e 0 33%, #a259ff 33% 66%, #0acf83 66%); }
.vfx__canvas { border: 0; border-radius: 0; background: #fff; }
.vfx__canvas:hover { box-shadow: none; }

/* Claude Code terminal */
.cc { background: #141417; border-color: #2a2a33; }
.cc__body { padding: 16px 18px 14px; font-family: var(--mono); font-size: 12px; line-height: 1.6; color: #d9d9e0; display: grid; gap: 8px; overflow-x: auto; }
.cc__body > div { display: grid; grid-template-columns: 18px minmax(0, 1fr); }
.cc__body i { font-style: normal; }
.cc__body b { color: #fff; font-weight: 600; }
.cc__user { display: block !important; color: #a1a1ad; background: #1f1f25; border-radius: 4px; padding: 4px 10px; }
.cc__msg i { color: #fff; }
.cc__tool i { color: #4ec98a; }
.cc__out { margin-top: -6px; color: #8e8e9a; }
.cc__out i { padding-left: 2px; color: #5b5b66; }
.cc__diff { display: grid !important; grid-template-columns: 1fr !important; margin: -4px 0 0 18px; border-radius: 4px; overflow: hidden; }
.cc__diff div { display: grid; grid-template-columns: 30px 16px minmax(0, 1fr); background: rgba(46, 160, 90, .14); color: #b8ecc9; }
.cc__diff em { font-style: normal; color: #6f9c7f; text-align: right; padding-right: 8px; }
.cc__diff span { color: #6fcf97; }
.cc__diff code { font-family: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
.cc__input { display: block !important; margin-top: 6px; border: 1px solid #3a3a46; border-radius: 6px; padding: 6px 10px; color: #8e8e9a; }
.cc__foot { display: block !important; margin-top: -4px; font-size: 11px; color: #5b5b66; padding-left: 2px; }

/* Storybook docs */
.sb { --sb-blue: #029cfd; --sb-ink: #2e3438; --sb-mute: #5c6870; --sb-line: rgba(38, 85, 115, .15); display: grid; grid-template-columns: 220px minmax(0, 1fr); height: 760px; font-family: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; color: var(--sb-ink); border-color: #dfe3e8; }
.sb svg { width: 14px; height: 14px; flex: none; }
.sb__side { background: #f6f9fc; border-right: 1px solid var(--sb-line); padding: 16px 10px; overflow: hidden; display: grid; align-content: start; gap: 14px; }
.sb__brand { font-size: 16px; padding: 0 8px; letter-spacing: -.01em; }
.sb__brand b { font-weight: 800; }
.sb__search { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border-radius: 4px; background: #fff; box-shadow: inset 0 0 0 1px var(--sb-line); font-size: 13px; color: #73828c; }
.sb__search span { flex: 1; }
.sb__search kbd { font-family: inherit; font-size: 11px; border-radius: 3px; padding: 0 5px; background: #eef3f8; color: var(--sb-mute); }
.sb__tree { display: grid; gap: 2px; }
.sb__grp { font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--sb-mute); padding: 12px 8px 4px; }
.sb__it { display: flex; align-items: center; gap: 6px; padding: 4px 8px 4px calc(8px + var(--d) * 20px); border-radius: 4px; font-size: 13px; line-height: 18px; color: var(--sb-ink); text-decoration: none; }
.sb__it > svg:first-child:not(:only-of-type) { width: 10px; height: 10px; color: #93a1ab; }
a.sb__it { padding-left: 36px; }
a.sb__it:hover { background: rgba(2, 156, 253, .08); }
.sb__it--folder svg:last-of-type { color: #6f2cac; }
.sb__it--comp svg:last-of-type { color: var(--sb-blue); }
.sb__it--doc svg { color: #ff8300; }
.sb__it--story svg { color: #37d5d3; }
.sb__it.is-on { background: var(--sb-blue); color: #fff; font-weight: 700; }
.sb__it.is-on svg { color: #fff; }
.sb__main { display: grid; grid-template-rows: 40px minmax(0, 1fr); min-width: 0; }
.sb__tools { display: flex; align-items: center; gap: 4px; padding: 0 10px; border-bottom: 1px solid var(--sb-line); background: #fff; color: #73828c; }
.sb__tools > span { display: flex; gap: 14px; padding: 0 6px; }
.sb__tools > i { width: 1px; height: 20px; background: var(--sb-line); margin: 0 6px; }
.sb__tools-r { margin-left: auto; }
.sb__docs { overflow-y: auto; background: #fff; scroll-behavior: smooth; }
.sb__docs:focus-visible { outline: 2px solid var(--sb-blue); outline-offset: -2px; border-radius: 0; }
.sb__page { max-width: 820px; margin: 0 auto; padding: 32px 36px 48px; display: grid; gap: 18px; font-size: 14px; line-height: 1.6; }
.sb__page h1 { font-size: 32px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.sb__page h2 { font-size: 22px; font-weight: 800; margin-top: 18px; padding-bottom: 6px; border-bottom: 1px solid var(--sb-line); scroll-margin-top: 16px; }
.sb__page h3 { font-size: 15px; font-weight: 700; }
.sb__page h4 { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--sb-mute); margin-bottom: 6px; }
.sb__page p, .sb__page li { color: var(--sb-ink) !important; font-size: 14px !important; }
.sb__page code { font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; background: #f8f8f8; border: 1px solid #eee; border-radius: 3px; padding: 1px 4px; color: #2e3438; }
.sb__lead { font-size: 15px !important; }
.sb__story { display: grid; gap: 8px; scroll-margin-top: 16px; }
.sb__story p { font-size: 13px !important; color: var(--sb-mute) !important; }
.sb__canvas { border: 1px solid var(--sb-line); border-bottom: 0; border-radius: 4px 4px 0 0; padding: 28px; background: #fff; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.sb__canvas img { width: 100%; max-width: 488px; height: auto; display: block; }
.sb__story--wide .sb__canvas img { max-width: 779px; }
.sb__story--primary .sb__canvas { padding: 36px; }
.sb__cbar { margin-top: -8px; display: flex; justify-content: flex-end; border: 1px solid var(--sb-line); border-radius: 0 0 4px 4px; background: #fff; }
.sb__cbar span { font-size: 12px; font-weight: 700; color: var(--sb-mute); padding: 5px 12px; border-left: 1px solid var(--sb-line); }
.sb__stories { display: grid; gap: 24px; }
.sb__story--wide { grid-column: 1 / -1; }
.sb__args { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; border: 1px solid var(--sb-line); border-radius: 4px; overflow: hidden; }
.sb__args th { text-align: left; font-weight: 700; font-size: 13px; padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--sb-line); }
.sb__args td { padding: 10px 14px; vertical-align: top; border-top: 1px solid var(--sb-line); background: #fff; color: var(--sb-ink); }
.sb__args tr:first-child td { border-top: 0; }
.sb__args td:first-child { white-space: nowrap; }
.sb__args td > div { margin-top: 4px; }
.sb__args td code { white-space: normal; overflow-wrap: anywhere; }
.sb__args td:nth-child(3) code { white-space: nowrap; }
.sb__args th:nth-child(1) { width: 14%; } .sb__args th:nth-child(3) { width: 20%; } .sb__args th:nth-child(4) { width: 20%; }
.sb__sel, .sb__ctl { display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 100px; height: 28px; padding: 0 8px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--sb-line); font-size: 12px; color: var(--sb-ink); white-space: nowrap; }
.sb__sel svg { width: 10px; height: 10px; }
.sb__tog { display: inline-flex; padding: 2px; border-radius: 999px; background: #eef3f8; font-size: 12px; }
.sb__tog > * { padding: 2px 10px; border-radius: 999px; font-weight: 700; color: var(--sb-mute); }
.sb__tog b { background: #fff; color: var(--sb-ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.sb__muted { color: #9aa5ad; }
.sb__dots { display: grid; gap: 8px; padding-left: 20px; list-style: disc; }
.sb__dd { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sb__dd-col { display: grid; gap: 8px; align-content: start; }
.sb__dd-col > div:not(.sb__dd-h) { background: #f5f5f5; border-radius: 4px; padding: 12px 14px; display: grid; gap: 2px; }
.sb__dd-col b { font-size: 13px; font-weight: 700; }
.sb__dd-col p { font-size: 13px !important; color: var(--sb-mute) !important; line-height: 1.45; }
.sb__dd-h { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; }
.sb__dd-h--ok { color: #2f7d5b; }
.sb__dd-h--no { color: #c0392b; }
.sb__a11y { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.sb__chk { display: grid; gap: 6px; }
.sb__chk li { display: grid; grid-template-columns: 14px 1fr; gap: 8px; font-size: 13px !important; line-height: 1.5; }
.sb__chk svg { margin-top: 3px; color: #2f7d5b; }
@media (max-width: 900px) { .sb { grid-template-columns: 1fr; height: 720px; grid-template-rows: auto minmax(0, 1fr); } .sb__side { display: none; } }
@media (max-width: 640px) { .sb__page { padding: 22px 18px 36px; } .sb__dd, .sb__a11y { grid-template-columns: 1fr; } .sb__args th:nth-child(3), .sb__args td:nth-child(3), .sb__args th:nth-child(4), .sb__args td:nth-child(4) { display: none; } .vis__stack { padding: 10px; } }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: none; }
.step { background: var(--surface); border-radius: var(--radius); padding: 22px; display: grid; gap: 8px; align-content: start; position: relative; }
.step__n { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--accent); }
.step b { font-size: 16px; font-weight: 600; }
.step span:last-child { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stats--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .gallery--2, .points, .stats { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Problem grid: icon left, text right */
.problems { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.problem { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: start; }
.problem .icon-box { width: 44px; height: 44px; background: var(--bg); }
.problem .icon-box svg { width: 22px; height: 22px; }
.problem__text { display: grid; gap: 6px; }
.problem__text p { font-size: 15px !important; }
@media (max-width: 640px) { .problems { grid-template-columns: 1fr; } }

/* Two-column scope table */
.cols { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cols__col { padding: 24px; display: grid; gap: 14px; align-content: start; }
.cols__col + .cols__col { border-left: 1px solid var(--line); }
.cols__label { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.cols__col + .cols__col .cols__label { color: var(--ink-3); }
.cols ul { display: grid; gap: 10px; }
.cols li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; font-size: 16px; line-height: 1.5; color: var(--ink); }
.cols__col + .cols__col li { color: var(--ink-2); }
.cols li svg { width: 16px; height: 16px; margin-top: 4px; color: var(--accent); }
.cols__col + .cols__col li svg { color: var(--ink-3); }
@media (max-width: 640px) { .cols { grid-template-columns: 1fr; } .cols__col + .cols__col { border-left: 0; border-top: 1px solid var(--line); } }
.sb__chk code { white-space: nowrap; }

/* Storybook: larger renders + expanded source */
.sb { grid-template-columns: 200px minmax(0, 1fr); }
.sb__page { padding: 28px 24px 44px; max-width: 860px; }
.sb__canvas { padding: 18px; }
.sb__story--primary .sb__canvas { padding: 22px; }
.sb__canvas img, .sb__story--wide .sb__canvas img { max-width: 100%; }
.sb__story:not(.sb__story--wide):not(.sb__story--primary) .sb__canvas img { max-width: 520px; }
.sb__story--primary .sb__canvas img { max-width: 560px; }
.sb__cbar { border-radius: 0; }
.sb__cbar span + span { color: var(--sb-ink); }
.sb__src { margin: -8px 0 0; padding: 14px 16px; background: #1d1f23; border-radius: 0 0 4px 4px; overflow-x: auto; font-family: ui-monospace, Menlo, monospace; font-size: 12px; line-height: 1.65; color: #d4d7dd; }
.sb__src code { font: inherit; background: none; border: 0; padding: 0; color: inherit; white-space: pre; }
.sx-t { color: #7fb4ff; } .sx-a { color: #c792ea; } .sx-s { color: #a5d6a7; } .sx-n { color: #f78c6c; }
/* Storybook: keep the docs pane inside the frame so it scrolls */
.sb { grid-template-rows: minmax(0, 1fr); }
.sb__main { min-height: 0; position: relative; }
.sb__docs { min-height: 0; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c3ccd4 transparent; }
.sb__docs::-webkit-scrollbar { width: 8px; }
.sb__docs::-webkit-scrollbar-thumb { background: #c3ccd4; border-radius: 8px; border: 2px solid #fff; }
.sb__main::after { content: ""; position: absolute; left: 0; right: 10px; bottom: 0; height: 40px; background: linear-gradient(to top, #fff, rgba(255,255,255,0)); pointer-events: none; }
@media (max-width: 900px) { .sb { grid-template-rows: minmax(0, 1fr); } }

/* Shipping proof screenshots */
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; align-items: start; }
.shots__item--wide { grid-column: 1 / -1; }
.shots .zoom { background: #fff; }
@media (max-width: 760px) { .shots { grid-template-columns: 1fr; } }
.shots figcaption { gap: 2px; margin-top: 2px; }
.shots .media__title { font-size: 16px; font-weight: 600; }
.shots .media__desc { font-size: 14px !important; line-height: 1.5; color: var(--ink-2) !important; }
.bullets__lead { font-weight: 600; color: var(--ink); }

/* Video embeds, buyer/seller cards, journey map */
.media__frame--video { aspect-ratio: 16 / 9; background: var(--dark); }
.media__frame--video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.media__frame--file { aspect-ratio: auto; border: 1px solid var(--line); }
.media__frame--file video { display: block; width: 100%; height: auto; background: var(--surface); }
.media__points { margin-top: 6px; }
.media__yt { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 14px; }
.media__yt svg { width: 14px; height: 14px; }
.parties { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.party { background: var(--surface); border-radius: var(--radius); padding: 28px; display: grid; gap: 10px; align-content: start; }
.party__logos { display: flex; align-items: center; gap: 24px; height: 40px; margin-bottom: 8px; }
.party__logo { height: 22px; width: auto; }
.party__logo--nike { height: 18px; }
.party__logo--hulu { height: 18px; }
.journey-wrap { overflow-x: auto; padding: 24px; background: var(--surface); border-radius: var(--radius); }
.journey { display: grid; grid-template-rows: auto repeat(2, minmax(64px, auto)); gap: 10px 12px; min-width: 620px; }
.journey__phase { padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.journey__lane { grid-column: 1; align-self: center; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.journey__step { display: flex; align-items: center; padding: 14px 16px; border-radius: var(--radius-sm); background: #ecebfd; color: #2a1f9e; font-size: 14px; line-height: 1.4; }
@media (max-width: 560px) { .parties { grid-template-columns: 1fr; } }

/* Principles: three cards, each led by a small explanatory diagram */
.tenets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tenet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.tenet__vis { background: #e9e6fc; padding: 22px; border-bottom: 1px solid #ddd8fa; }
.tenet__vis svg { display: block; width: 100%; height: auto; overflow: visible; }
.tenet__text { padding: 22px 24px 26px; display: grid; gap: 8px; align-content: start; }
.tenet__text p { font-size: 15px !important; color: var(--ink-2); line-height: 1.5; }
.pd-axis { stroke: #cfcbea; stroke-width: 1; }
.pd-lbl { font-family: var(--mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; fill: var(--ink-3); }
.pd-lbl--accent { fill: var(--accent); }
.pd-tag { font-size: 10.5px; font-weight: 500; fill: var(--ink-3); }
.pd-tag--accent { fill: var(--accent); font-weight: 600; }
.pd-strong { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; }
.pd-muted { fill: none; stroke: #b9b6cc; stroke-width: 2; stroke-linecap: round; }
.pd-dash { stroke-dasharray: 4 5; }
.pd-dot { fill: var(--accent); }
.pd-legacy { fill: #cfcae6; }
.pd-new { fill: var(--accent); }
.pd-row { fill: var(--surface); stroke: #d9d5f3; stroke-width: 1; }
.pd-bar { fill: #d9d6ea; }
.pd-guide { fill: none; stroke: var(--accent-2); stroke-width: 1.5; }
@media (max-width: 960px) { .tenets { grid-template-columns: 1fr; } .tenet { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: none; } .tenet__vis { border-bottom: 0; border-right: 1px solid #ddd8fa; } }
@media (max-width: 600px) { .tenet { grid-template-columns: 1fr; } .tenet__vis { border-right: 0; border-bottom: 1px solid #ddd8fa; } }

/* Insights: numbered research findings with the design decision each one shaped */
.insights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.insight { background: var(--surface); border-radius: var(--radius); padding: 24px; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.insight__n { font-size: 28px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: #c9c3f8; }
.insight--icon { align-items: center; gap: 16px; }
.insight__icon { width: 52px; height: 52px; border-radius: 12px; background: var(--bg); }
.insight__icon svg { width: 24px; height: 24px; }
.insights--2, .insights--4 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .insights, .insights--2, .insights--4 { grid-template-columns: 1fr; } }
.pd-fill { fill: var(--accent); opacity: .12; }
.pd-arrow { fill: none; stroke: var(--ink-3); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pd-line { stroke: var(--accent); stroke-width: 2; }
.pd-check { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pd-ring { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.pd-halo { fill: var(--accent); opacity: .12; }
.pd-empty { fill: var(--surface); stroke: #cfcbea; stroke-width: 1.5; stroke-dasharray: 3 3; }
.pd-approx { font-size: 30px; font-weight: 500; fill: var(--ink-3); }
.pd-chip { fill: var(--surface); stroke: #d9d5f3; stroke-width: 1; }
.pd-chiptxt { font-size: 9.5px; font-weight: 500; fill: var(--ink-2); }
.pd-chiptxt--on { fill: #fff; font-weight: 600; }
.pd-chiptxt--muted { fill: var(--ink-3); }
.pd-chiptxt--accent { fill: var(--accent); font-size: 9px; }
.pd-knob { fill: #fff; }
.pd-q { font-size: 22px; font-weight: 600; fill: var(--accent); }
.pd-sel { fill: var(--surface); stroke: var(--accent); stroke-width: 1.5; }
.pd-opt { font-size: 11.5px; font-weight: 500; fill: var(--ink-2); }
.pd-opt--on { fill: var(--ink); font-weight: 600; }
.pd-avatar { fill: #dedbee; }
.pd-avatar--on { fill: var(--accent-2); }
.pd-bar--dark { fill: #8e8aa8; }
.pd-shield { fill: var(--accent); }

/* About me (homepage): lavender wash + the hero's faint grid */
.aboutme {
  --am-bg: #f1effd; --am-line: #dedaf7; --am-card: #ffffff;
  position: relative; color: var(--ink);
  background: linear-gradient(180deg, #f7f6fe 0%, var(--am-bg) 100%);
  overflow: hidden; isolation: isolate;
  border-top: 1px solid var(--am-line);
  padding-top: clamp(80px, 9.7vw, 140px); padding-bottom: clamp(80px, 9.7vw, 140px);
}
/* Perspective floor grid, same ink and opacity as the hero's floor; fades out before the dividers */
.aboutme::before {
  content: ""; position: absolute; z-index: -1; left: -60%; right: -60%; bottom: 0; height: 75%;
  background:
    linear-gradient(rgba(10,10,27,.09) 1px, transparent 1px) 0 100% / 64px 64px,
    linear-gradient(90deg, rgba(10,10,27,.09) 1px, transparent 1px) 50% 0 / 64px 64px;
  transform: perspective(900px) rotateX(58deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,.55) 45%, transparent 92%);
          mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,.55) 45%, transparent 92%);
  pointer-events: none;
}
.aboutme__head { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: center; max-width: 1140px; }
.aboutme__photo { width: 220px; height: 220px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 6px #fff, 0 20px 40px -20px rgba(80,61,232,.45); }
.aboutme__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aboutme__intro { display: grid; gap: 16px; }
.aboutme__intro .h1 { font-size: clamp(30px, 3vw, 44px); }
.aboutme__intro .eyebrow { color: var(--accent); }
.aboutme__intro .body-lg { color: var(--ink-2); max-width: 760px; }
.aboutme__personal { font-size: 15px; color: var(--ink-2); padding-left: 14px; border-left: 2px solid var(--accent); max-width: 760px; }
.aboutme__label { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.aboutme__sub { font-size: 15px; color: var(--ink-2); margin: -8px 0 20px; max-width: 520px; }

.hp-princ { margin-top: 72px; padding-top: 48px; border-top: 1px solid var(--am-line); }
.hp-princ__head { display: flex; justify-content: space-between; align-items: baseline; gap: 32px; flex-wrap: wrap; }
.hp-princ__head .aboutme__label { margin-bottom: 0; }
.hp-princ__head p { font-size: 15px; color: var(--ink-2); }
.hp-princ__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.hp-princ__item { display: grid; gap: 10px; align-content: start; padding: 24px; background: var(--am-card); border: 1px solid var(--am-line); border-radius: var(--radius); }
.hp-princ__item svg { width: 20px; height: 20px; color: var(--accent); }
.hp-princ__item b { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.hp-princ__item p { font-size: 14px; line-height: 1.55; color: var(--ink-2); }

.aboutme__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--am-line); }

/* Outcomes paragraph with hoverable keywords */
.outcomes { font-size: 24px; line-height: 1.6; font-weight: 500; letter-spacing: -0.015em; color: var(--ink-2); }
.kw { position: relative; white-space: nowrap; color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent-2); text-decoration-thickness: 2px; text-underline-offset: 5px; border-radius: 4px; cursor: pointer; transition: background-color .2s var(--ease), text-decoration-color .2s var(--ease); }
.kw:hover, .kw:focus-visible { background-color: rgba(80,61,232,.1); text-decoration-color: var(--accent); outline: none; }
.kw__tip { white-space: normal; position: absolute; left: -8px; bottom: calc(100% + 12px); width: 300px; transform: translateY(6px); opacity: 0; visibility: hidden; pointer-events: none; z-index: 20;
  display: grid; background: #fff; border: 1px solid var(--am-line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 48px -20px rgba(16,16,20,.35); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s; }
.kw__tip::after { content: ""; position: absolute; left: 32px; top: 100%; width: 12px; height: 12px; background: #fff; border-right: 1px solid var(--am-line); border-bottom: 1px solid var(--am-line); transform: translate(-50%, -6px) rotate(45deg); }
.kw:hover .kw__tip, .kw:focus-visible .kw__tip { opacity: 1; visibility: visible; transform: none; }
.kw__tip img { width: 100%; height: 160px; object-fit: cover; display: block; background: var(--bg); }
.kw__body { display: grid; gap: 4px; padding: 14px 16px 16px; text-align: left; letter-spacing: 0; line-height: 1.4; }
.kw__body b { font-size: 16px; font-weight: 600; color: var(--ink); }
.kw__body small { font-size: 12px; color: var(--ink-3); }
.kw__body > span { font-size: 14px; font-weight: 500; color: var(--ink-2); margin-top: 4px; }
.kw__body em { font-style: normal; font-size: 13px; font-weight: 500; color: var(--accent); display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; }
.kw__body em svg { width: 13px; height: 13px; }
.kw__cta-touch { display: none; }
/* Touch: the preview docks to the bottom of the screen as a card */
@media (hover: none) {
  .kw:hover .kw__tip { opacity: 0; visibility: hidden; }
  .kw__tip { position: fixed; left: 16px; right: 16px; bottom: 16px; width: auto; transform: translateY(16px); grid-template-columns: 120px 1fr; align-items: center; }
  .kw__tip::after { display: none; }
  .kw__tip img { width: 120px; height: 100%; min-height: 120px; }
  .kw.is-open .kw__tip { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .kw.is-open { background-color: rgba(80,61,232,.1); text-decoration-color: var(--accent); }
  .kw__cta-hover { display: none; }
  .kw__cta-touch { display: inline; }
}


.snippets { display: grid; gap: 10px; }
.snippet { display: flex; align-items: center; gap: 16px; padding: 10px 18px 10px 10px; background: var(--am-card); border: 1px solid var(--am-line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.snippet:hover { border-color: var(--accent-2); transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(80,61,232,.4); }
.snippet__thumb { width: 96px; height: 64px; flex: none; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); }
.snippet__thumb img { width: 100%; height: 100%; object-fit: cover; }
.snippet__text { flex: 1; display: grid; gap: 4px; }
.snippet__text b { font-size: 16px; font-weight: 600; }
.snippet__text > span { font-size: 14px; color: var(--ink-2); }
.snippet__text i { font-style: normal; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.snippet > svg { width: 16px; height: 16px; color: var(--ink-3); }
.aboutme__close { margin: 28px 0 12px; font-size: 18px; font-weight: 600; }

@media (max-width: 1000px) { .hp-princ__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .aboutme__grid { grid-template-columns: 1fr; gap: 48px; }
  .aboutme__head { grid-template-columns: 1fr; gap: 28px; }
  .aboutme__photo { width: 160px; height: 160px; }
}
@media (max-width: 560px) {
  .hp-princ__grid { grid-template-columns: 1fr; }
  .outcomes { font-size: 20px; }
  .snippet { flex-direction: column; align-items: stretch; gap: 14px; padding: 10px 10px 18px; position: relative; }
  .snippet__thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .snippet__text { padding: 0 8px; }
  .snippet > svg { position: absolute; right: 18px; bottom: 20px; }
}

/* Breathing room between the last case study and About me */
#work { padding-bottom: clamp(96px, 11vw, 160px); }

/* Selected work: bento tiles with light brand tints */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.tile { position: relative; display: flex; flex-direction: column; min-height: 720px; overflow: hidden; border-radius: 20px; border: 1px solid var(--tile-b);
  background: linear-gradient(135deg, var(--tile-a) 0%, var(--tile-b) 100%); color: var(--ink); text-decoration: none;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.tile:hover { transform: translateY(-4px); box-shadow: 0 28px 56px -32px rgba(16,16,20,.35); }
.tile__copy { position: relative; z-index: 1; display: grid; gap: 14px; align-content: start; padding: 48px 48px 0; }
.tile__co { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--tile-ink); }
.tile__title { font-size: clamp(30px, 2.6vw, 36px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.08; }
.tile__desc { font-size: 16px; line-height: 1.55; color: #3f3f4a; max-width: 560px; }
.tile__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tile__tag { padding: 6px 10px; border-radius: 6px; font-size: 13px; color: #3f3f4a; background: rgba(255,255,255,.85); border: 1px solid var(--tile-b); }
.tile__metrics { display: flex; flex-wrap: wrap; gap: 12px 28px; padding-top: 14px; }
.tile__metric { display: grid; gap: 2px; }
.tile__metric b { font-size: 24px; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); }
.tile__metric i { font-style: normal; font-size: 13px; color: #5b5b66; }
.tile__link { display: inline-flex; align-items: center; gap: 6px; padding-top: 6px; font-size: 14px; font-weight: 600; color: var(--tile-ink); }
.tile__link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.tile:hover .tile__link svg { transform: translateX(4px); }
.tile__shot { margin-top: auto; padding: 40px 0 0 56px; margin-right: -14%; margin-bottom: -6%; }
.tile__shot img { display: block; width: max(100%, 640px); max-width: none; height: auto; transition: transform .6s var(--ease); transform-origin: left bottom; }
.tile--wide .tile__shot img { width: max(100%, 700px); }
.tile:hover .tile__shot img { transform: translateY(-6px) scale(1.015); }
/* Wide tile: copy left, screens right */
.tile--wide { grid-column: 1 / -1; min-height: 560px; display: grid; grid-template-columns: minmax(0, 580px) minmax(0, 1fr); gap: 16px; }
.tile--wide .tile__metrics { flex-wrap: nowrap; }
.tile--wide .tile__copy { padding: 48px 0 48px 48px; align-content: center; }
.tile--wide .tile__shot { align-self: center; padding: 0; margin: 0 -8% 0 0; }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .tile, .tile--wide { min-height: 0; display: flex; grid-column: auto; }
  .tile--wide .tile__copy { padding: 32px 28px 0; }
  .tile__copy { padding: 32px 28px 0; }
  .tile__shot, .tile--wide .tile__shot { padding: 28px 0 0 28px; margin: 0 0 -4% 0; }
  .tile__shot img, .tile--wide .tile__shot img { width: max(100%, 560px); }
}

/* ===================== About page ===================== */
/* Hero: light lavender with the same perspective floor grid, in light purple */
.ab-hero { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, #ffffff 0%, #f4f2fe 100%); color: var(--hero3d-ink); padding-bottom: clamp(72px, 9vw, 128px); }
.ab-hero::before { content: ""; position: absolute; z-index: -1; left: -60%; right: -60%; bottom: 0; height: 70%;
  background:
    linear-gradient(rgba(124,108,240,.28) 1px, transparent 1px) 0 100% / 64px 64px,
    linear-gradient(90deg, rgba(124,108,240,.28) 1px, transparent 1px) 50% 0 / 64px 64px;
  transform: perspective(900px) rotateX(60deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,.5) 45%, transparent 90%); mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,.5) 45%, transparent 90%); pointer-events: none; }
.ab-hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(ellipse 45% 60% at 78% 45%, rgba(80,61,232,.10) 0%, rgba(80,61,232,0) 70%); pointer-events: none; }
.ab-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(40px, 6vw, 96px); align-items: center; padding-top: clamp(48px, 6vw, 88px); }
.ab-hero__copy { display: grid; gap: 24px; }
.ab-hero__copy .eyebrow { color: var(--accent); }
.ab-hero__title { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; max-width: 20ch; }
.ab-hero__body { font-size: 18px; line-height: 1.65; color: #535366; max-width: 620px; }
.ab-hero__photo { width: 300px; height: 300px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 8px #fff, 0 30px 60px -28px rgba(80,61,232,.5); }
.ab-hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) { .ab-hero__inner { grid-template-columns: 1fr; } .ab-hero__photo { width: 180px; height: 180px; order: -1; } }

/* Experience timeline */
.tl { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 16px; }
.tl::before { content: ""; position: absolute; left: 11px; top: 28px; bottom: 28px; width: 2px; background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 30%, var(--line) 100%); }
.tl__item { position: relative; padding-left: 48px; }
.tl__dot { position: absolute; left: 4px; top: 28px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--accent-2); }
.tl__item--now .tl__dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 6px rgba(80,61,232,.15); }
.tl__item--now .tl__dot::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(80,61,232,.35); animation: tlpulse 2.4s var(--ease) infinite; }
@keyframes tlpulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.tl__item--earlier .tl__dot { border-color: var(--line); }
.tl__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .25s, box-shadow .25s; }
.tl__card[open] { border-color: var(--accent-2); box-shadow: 0 20px 44px -30px rgba(80,61,232,.45); }
.tl__sum { list-style: none; cursor: pointer; display: grid; grid-template-columns: 180px minmax(0, 1fr) 28px; gap: 24px; align-items: center; padding: 22px 28px; }
.tl__sum::-webkit-details-marker { display: none; }
.tl__dates { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.tl__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.tl__head b { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.tl__head i { font-style: normal; font-size: 15px; color: var(--ink-2); flex-basis: 100%; }
.tl__now { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: rgba(80,61,232,.08); padding: 3px 8px; border-radius: 999px; }
.tl__chev { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--ink-2); transition: transform .3s var(--ease), background .2s; }
.tl__chev svg { width: 16px; height: 16px; }
.tl__card[open] .tl__chev { transform: rotate(180deg); background: rgba(80,61,232,.1); color: var(--accent); }
.tl__sum:hover .tl__chev { background: rgba(80,61,232,.1); color: var(--accent); }
.tl__sum:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius); }
.tl__body { padding: 0 28px 26px calc(28px + 180px + 24px); display: grid; gap: 14px; }
.tl__ctx { font-size: 15px; color: var(--ink-2); }
.tl__hl { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.tl__hl li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.55; color: var(--ink); }
.tl__hl li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 2px; background: var(--accent-2); }
.tl__cases { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding-top: 4px; }
.tl__cases > span { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-right: 4px; }
.tl__case { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--accent); text-decoration: none; transition: border-color .2s, background .2s; }
.tl__case svg { width: 13px; height: 13px; }
.tl__case:hover { border-color: var(--accent-2); background: rgba(80,61,232,.05); }
.tl__card--flat { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; align-items: center; padding: 22px 28px; background: transparent; border-style: dashed; }
.tl__earlier { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 20px; }
.tl__earlier li { display: grid; gap: 2px; }
.tl__earlier b { font-size: 15px; font-weight: 600; }
.tl__earlier i { font-style: normal; font-size: 13px; color: var(--ink-2); }
@media (max-width: 900px) {
  .tl__sum { grid-template-columns: minmax(0, 1fr) 28px; gap: 6px 16px; padding: 18px 20px; }
  .tl__dates { grid-column: 1; }
  .tl__head { grid-column: 1; }
  .tl__chev { grid-row: 1 / span 2; grid-column: 2; }
  .tl__body { padding: 0 20px 22px; }
  .tl__card--flat { grid-template-columns: 1fr; padding: 18px 20px; }
  .tl__earlier { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl__item { padding-left: 36px; }
}

/* Teaching stats */
.tstats { display: flex; flex-wrap: wrap; gap: 16px 36px; padding: 8px 0 4px; }
.tstat { display: grid; gap: 2px; }
.tstat b { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; }
.tstat span { font-size: 13px; color: var(--ink-2); }

/* AI in my work */
.aisides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.aiside { display: grid; gap: 12px; align-content: start; padding: 32px; border-radius: var(--radius); background: linear-gradient(135deg, #f7f6fe 0%, #ece9fd 100%); border: 1px solid #dedaf7; color: var(--ink); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.aiside:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -28px rgba(80,61,232,.45); }
.aiside__label { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.aiside__title { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.aiside__body { font-size: 15px; line-height: 1.6; color: #3f3f4a; }
.aiside__link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--accent); }
.aiside__link svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.aiside:hover .aiside__link svg { transform: translateX(3px); }
.aiflow { margin-top: 56px; display: grid; gap: 24px; }
.aiflow__label, .aitools__close b { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.aitools { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px; align-items: start; }
.aitools__close { display: grid; gap: 8px; }
.aitools__close b { font-family: var(--font); font-size: 22px; letter-spacing: -0.02em; text-transform: none; color: var(--ink); font-weight: 600; }
.aitools__close p { font-size: 15px; color: var(--ink-2); max-width: 440px; }
.aitools__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.aitools__list li { padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
@media (max-width: 800px) { .aisides, .aitools { grid-template-columns: 1fr; } }

/* Dog loop: one row, looping */
.dogsec { padding-bottom: clamp(72px, 8vw, 120px); overflow: hidden; }
.dogloop { display: grid; gap: 16px; }
.dogloop__track { display: flex; width: max-content; animation: dogloop 70s linear infinite reverse; }
.dogloop__row--rev .dogloop__track { animation-direction: reverse; animation-duration: 80s; }
.dogloop__group { display: flex; gap: 16px; padding-right: 16px; }
.dogloop figure { margin: 0; height: clamp(240px, 26vw, 360px); border-radius: var(--radius); overflow: hidden; flex: none; }
.dogloop img { height: 100%; width: auto; display: block; }
.dogloop:hover .dogloop__track { animation-play-state: paused; }
@keyframes dogloop { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .dogloop__track { animation: none; } .dogloop__group[aria-hidden] { display: none; } .dogloop__row--rev { display: none; } .dogloop__track { width: auto; overflow-x: auto; } }


/* ---- Experience snapshot: line fills as you scroll, cards slide in from the left ---- */
.tl::before { background: var(--line); }
.tl::after { content: ""; position: absolute; left: 11px; top: 28px; bottom: 28px; width: 2px; background: linear-gradient(180deg, var(--accent), var(--accent-2)); transform-origin: top; transform: scaleY(var(--tl-p, 0)); }
.tl__item.reveal { transform: none; opacity: 1; transition: none; }
.tl__item .tl__card { opacity: 0; transform: translateX(-72px); transition: opacity .7s var(--ease), transform .9s var(--ease), border-color .25s, box-shadow .25s; }
.tl__item.is-visible .tl__card { opacity: 1; transform: none; }
.tl__dot { z-index: 1; transform: scale(.4); opacity: 0; transition: transform .5s var(--ease) .15s, opacity .4s .15s, background .3s, border-color .3s; }
.tl__item.is-visible .tl__dot { transform: none; opacity: 1; }
.tl__item.is-reached .tl__dot { border-color: var(--accent); }
.tl__card:not(.tl__card--flat) { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 24px 28px; }
.tl__card:not(.tl__card--flat):hover { border-color: var(--accent-2); box-shadow: 0 20px 44px -30px rgba(80,61,232,.45); }
.tl__card .tl__dates { padding-top: 6px; }
.tl__main { display: grid; gap: 10px; }
.tl__head { margin: 0; font: inherit; }
.tl__what { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); max-width: 640px; }
.tl__main .tl__cases { padding-top: 2px; }
.tl__item--now .tl__card { border-color: var(--accent-2); }
@media (max-width: 720px) {
  .tl__card:not(.tl__card--flat) { grid-template-columns: 1fr; gap: 8px; padding: 18px 20px; }
  .tl__card .tl__dates { padding-top: 0; }
  .tl__item .tl__card { transform: translateX(-40px); }
}
@media (prefers-reduced-motion: reduce) { .tl__item .tl__card, .tl__dot { opacity: 1; transform: none; transition: none; } .tl::after { transform: none; } }

/* ---- AI: agent workflow canvas ---- */
.agentflow { margin-top: 56px; display: grid; gap: 28px; }
.agentflow__head { display: grid; gap: 8px; max-width: 720px; }
.agentflow__title { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.agentflow__sub { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.agentflow__canvas { position: relative; padding: 32px 28px 28px; border-radius: 20px; border: 1px solid #dedaf7;
  background: radial-gradient(circle, rgba(80,61,232,.16) 1px, transparent 1.4px) 0 0 / 20px 20px, linear-gradient(160deg, #f8f7ff 0%, #efedfd 100%);
  display: grid; justify-items: center; }
.agentflow__me { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--accent-2); box-shadow: 0 14px 30px -20px rgba(80,61,232,.55); z-index: 1; }
.agentflow__me img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.agentflow__me span { display: grid; gap: 1px; }
.agentflow__me b { font-size: 15px; font-weight: 600; }
.agentflow__me small { font-size: 12.5px; color: var(--ink-2); }
.agentflow__me::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 28px; background: var(--accent-2); }
.agentflow__lanes { list-style: none; margin: 28px 0 0; padding: 0; width: 100%; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
/* bus line from me to every agent */
.agentflow__lanes::before { content: ""; position: absolute; top: 0; left: calc((100% - 84px) / 8); right: calc((100% - 84px) / 8); height: 2px; background: var(--accent-2); }
.agent { position: relative; display: grid; gap: 0; justify-items: center; align-content: start; padding-top: 22px; }
.agent::before { content: ""; position: absolute; top: 0; left: 50%; width: 2px; height: 22px; background: var(--accent-2); }
.agent__gate { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 7px; margin-bottom: 14px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 500; white-space: nowrap; }
.agent__gate svg { width: 14px; height: 14px; padding: 2px; border-radius: 50%; background: rgba(255,255,255,.22); }
.agent__gate::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 14px; background: repeating-linear-gradient(180deg, var(--accent-2) 0 3px, transparent 3px 6px); }
.agent__card { position: relative; width: 100%; display: grid; gap: 12px; align-content: start; padding: 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 24px -22px rgba(10,10,27,.4); animation: agentrun 10s var(--ease) infinite; animation-delay: calc(var(--i) * 2.5s); }
/* hand-off connector to the next agent, with a flowing dash */
.agent:not(:last-child) .agent__card::after { content: ""; position: absolute; top: 50%; left: 100%; width: 28px; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 5px, transparent 5px 9px); background-size: 18px 2px; animation: agentflow 1s linear infinite; }
.agent:not(:last-child) .agent__card::before { content: ""; position: absolute; top: calc(50% - 4px); left: calc(100% + 20px); width: 0; height: 0; border: 5px solid transparent; border-left-color: var(--accent); border-right: 0; z-index: 1; }
.agent__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.agent__step { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.agent__status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.agent__status i { width: 7px; height: 7px; border-radius: 50%; background: #c9c4ef; animation: agentdot 10s var(--ease) infinite; animation-delay: calc(var(--i) * 2.5s); }
.agent__name { display: flex; align-items: center; gap: 10px; }
.agent__name .logo-tile { width: 36px; height: 36px; }
.agent__name .logo-tile svg { width: 18px; height: 18px; }
.agent__name span { display: grid; gap: 1px; min-width: 0; }
.agent__name b { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.agent__name small { font-size: 12.5px; color: var(--ink-3); }
.agent__does { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.agent__out { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; background: #f3f1fe; border: 1px dashed #cdc6f6; font-size: 12.5px; font-weight: 500; color: var(--accent); }
.agent__out svg { width: 13px; height: 13px; }
/* feedback loops back to the first agent */
.agentflow__loop { position: relative; width: 100%; height: 56px; margin-top: 4px; }
.agentflow__loop::before { content: ""; position: absolute; top: 0; height: 28px; left: calc((100% - 84px) / 8); right: calc((100% - 84px) / 8); border: 2px dashed var(--accent-2); border-top: 0; border-radius: 0 0 16px 16px; }
.agentflow__loop::after { content: ""; position: absolute; top: -2px; left: calc((100% - 84px) / 8 - 5px); border: 6px solid transparent; border-bottom: 8px solid var(--accent-2); border-top: 0; }
.agentflow__loop span { position: absolute; left: 50%; top: 28px; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid #dedaf7; font-size: 13px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.agentflow__loop svg { width: 14px; height: 14px; color: var(--accent); }
@keyframes agentrun { 0%, 24% { border-color: var(--accent-2); box-shadow: 0 18px 36px -22px rgba(80,61,232,.6); transform: translateY(-3px); } 30%, 100% { border-color: var(--line); box-shadow: 0 10px 24px -22px rgba(10,10,27,.4); transform: none; } }
@keyframes agentdot { 0%, 24% { background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.18); } 30%, 100% { background: #c9c4ef; box-shadow: none; } }
@keyframes agentflow { from { background-position: 0 0; } to { background-position: 18px 0; } }
.aitools { margin-top: 0; padding-top: 0; border-top: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.aitools__label { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 960px) {
  .agentflow__canvas { padding: 24px 18px; justify-items: stretch; }
  .agentflow__me { justify-self: center; }
  .agentflow__lanes { grid-template-columns: 1fr; gap: 28px; padding-left: 0; }
  .agentflow__lanes::before { display: none; }
  .agent { padding-top: 0; }
  .agent::before { display: none; }
  .agent:first-child::before { display: none; }
  .agent:not(:last-child) .agent__card::after { top: 100%; left: 50%; width: 2px; height: 28px; background: repeating-linear-gradient(180deg, var(--accent) 0 5px, transparent 5px 9px); background-size: 2px 18px; animation: agentflowv 1s linear infinite; }
  .agent:not(:last-child) .agent__card::before { display: none; }
  .agentflow__loop { height: auto; display: flex; justify-content: center; margin-top: 8px; }
  .agentflow__loop::before, .agentflow__loop::after { display: none; }
  .agentflow__loop span { position: static; transform: none; white-space: normal; text-align: left; }
  .agent__gate { white-space: normal; }
}
@keyframes agentflowv { from { background-position: 0 0; } to { background-position: 0 18px; } }
@media (prefers-reduced-motion: reduce) { .agent__card, .agent__status i, .agent .agent__card::after { animation: none !important; } }
@media (max-width: 720px) { .tl__main .tl__cases { gap: 6px 18px; } .tl__main .tl__case { border: 0; padding: 2px 0; background: none; } }
.aboutme__more { display: inline-flex; margin-top: 28px; }

/* ---- Case-study password gate ---- */
.gate-auto .gate { visibility: hidden; }
.gate { min-height: 100vh; min-height: 100svh; }
.gate__inner { display: grid; place-items: center; padding-top: clamp(32px, 6vw, 80px); }
.gate__card { width: min(100%, 980px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); border-radius: 20px; overflow: hidden; background: rgba(255,255,255,.86); backdrop-filter: blur(8px); border: 1px solid #e4e0fb; box-shadow: 0 40px 80px -48px rgba(80,61,232,.55); }
.gate__cover { position: relative; min-height: 100%; background: #efedfd; }
.gate__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(3px) saturate(.9); transform: scale(1.06); opacity: .9; }
.gate__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(80,61,232,.10), rgba(255,255,255,.35)); }
.gate__body { display: grid; gap: 14px; align-content: center; padding: clamp(28px, 4vw, 48px); }
.gate__lock { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(80,61,232,.08); color: var(--accent); font-size: 12.5px; font-weight: 600; }
.gate__lock svg { width: 13px; height: 13px; }
.gate__body .eyebrow { color: var(--ink-3); margin-top: 6px; }
.gate__title { margin: 0; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 700; color: #0a0a1b; }
.gate__lead { margin: 0; font-size: 15.5px; line-height: 1.6; color: #535366; }
.gate__form { display: grid; gap: 8px; margin-top: 8px; }
.gate__field { display: flex; gap: 8px; }
.gate__field input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid #d9d6ee; background: #fff; font: inherit; font-size: 15px; color: #0a0a1b; transition: border-color .2s, box-shadow .2s; }
.gate__field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(80,61,232,.15); }
.gate__field .btn { height: 46px; padding: 0 20px; }
.gate__field .btn:disabled { opacity: .7; cursor: progress; }
.gate__err { margin: 0; min-height: 20px; font-size: 13.5px; color: #c2263c; }
.gate__form.is-wrong .gate__field { animation: gateshake .4s var(--ease); }
.gate__form.is-wrong input { border-color: #e2677a; }
.gate__help { margin: 0; font-size: 14px; color: var(--ink-2); }
.gate__help a { color: var(--accent); font-weight: 600; }
@keyframes gateshake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (max-width: 760px) {
  .gate__card { grid-template-columns: 1fr; }
  .gate__cover { min-height: 180px; }
  .gate__field { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .gate__form.is-wrong .gate__field { animation: none; } }
.tile__lock { width: 14px; height: 14px; margin-right: 2px; opacity: .8; }
@media (max-width: 760px) { .gate__field input { flex: none; } }
.nav__links a.nav__cta, .nav__links a.nav__cta:hover { color: #fff; }

/* About hero: background-free cutout instead of the circle, resting on the grid */
.ab-hero { padding-bottom: 0; }
.ab-hero__inner { grid-template-columns: minmax(0, 1fr) minmax(300px, 460px); align-items: end; }
.ab-hero__copy { padding-bottom: 0; }
.ab-hero__inner { padding-bottom: clamp(72px, 9vw, 128px); }
.ab-hero__photo { width: 100%; height: auto; border-radius: 0; overflow: visible; box-shadow: none; position: relative; align-self: end; }
.ab-hero__photo::before { content: ""; position: absolute; z-index: -1; left: -4%; right: -4%; top: 6%; bottom: -6%; background: radial-gradient(closest-side, rgba(124,108,240,.26) 0%, rgba(124,108,240,.10) 55%, rgba(124,108,240,0) 100%); pointer-events: none; }
.ab-hero__photo img { width: 100%; height: auto; display: block; object-fit: contain;
  -webkit-mask-image: linear-gradient(180deg, #000 84%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 14%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, #000 84%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 14%, #000 84%, transparent 100%);
  mask-composite: intersect;
  filter: drop-shadow(0 24px 40px rgba(80,61,232,.18)); }
@media (max-width: 860px) {
  .ab-hero__inner { grid-template-columns: 1fr; }
  .ab-hero__copy { padding-bottom: 8px; }
  .ab-hero__photo { order: -1; width: min(72%, 320px); justify-self: center; }
}

/* About page: hero bottom padding, and type matched to the case-study scale
   (body 16/1.55, section intro 18/1.4, sub-heads 22/1.2, headings 40, titles weight 600) */
.ab-hero__inner { padding-bottom: 68px; }
.ab-hero__title { font-weight: 600; }
.ab-hero__body { font-size: 18px; line-height: 1.55; }
.ab-hero ~ section .lead { font-size: 18px; line-height: 1.4; }
.ab-hero ~ section .body-lg,
.ab-hero ~ section .card__desc,
.ab-hero ~ section .tl__what,
.ab-hero ~ section .aiside__body,
.ab-hero ~ section .agentflow__sub { font-size: 16px; line-height: 1.55; }
.ab-hero ~ section .aiside__title,
.ab-hero ~ section .agentflow__title,
.ab-hero ~ section .tl__head b { font-size: 22px; line-height: 1.2; }

/* Selected work: first 3 projects by default, "View all" reveals the rest (all show if JS is off) */
.bento.is-collapsed .tile--more { display: none; }
.bento__more { display: flex; justify-content: center; margin-top: 40px; }
.bento__toggle { gap: 8px; }
.bento__toggle svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.bento__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* ===================== Quieter pass (Nov 2026): no 3D object or perspective grids ===================== */
.aboutme::before, .ab-hero::before { display: none; }
.hero--quiet { min-height: 0; }
.hero--quiet .hero__inner { padding-top: clamp(72px, 8vw, 128px); padding-bottom: clamp(72px, 8vw, 128px); }
.hero--quiet .hero__headline { max-width: 22ch; }
@media (min-width: 901px) { .hero--light.hero--quiet .hero__copy { max-width: none; } .hero--quiet .hero__headline { max-width: 70vw; } }
.hero--quiet .hero__body { max-width: 640px; }
@media (max-width: 900px) { .hero--light.hero--quiet .hero__inner { padding-bottom: 72px; } }

/* Work tiles: outcome headline first, project name underneath */
.tile__project { font-size: 15px; line-height: 1.4; color: #3f3f4a; }
.tile__project b { font-weight: 600; color: var(--tile-ink); }
.tile__project i { font-style: normal; opacity: .4; margin: 0 2px; }
.tile__project small { font-size: 15px; color: #6b6b78; }
.tile__title { max-width: 24ch; }

/* Case study header: outcome headline + project line */
.cs-header__title { font-size: clamp(36px, 4.6vw, 66px); line-height: 1.06; letter-spacing: -0.035em; max-width: 21ch; overflow-wrap: normal; }
.cs-header__project { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2-on-dark); }
.cs-header__project b { font-weight: 600; color: var(--ink-on-dark); }
.cs-header__project i { font-style: normal; opacity: .45; margin: 0 4px; }
.next__title { font-size: clamp(28px, 3vw, 44px); line-height: 1.1; letter-spacing: -0.03em; max-width: 22ch; }
.gate__project { margin: -4px 0 0; font-size: 15px; font-weight: 600; color: var(--accent); }

/* Homepage About me: how I think / work with people / care about */
.traits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 56px; max-width: 1140px; }
.trait { display: grid; gap: 10px; align-content: start; padding-top: 20px; border-top: 2px solid var(--accent); }
.trait__label { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.trait p { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
@media (max-width: 900px) { .traits { grid-template-columns: 1fr; gap: 28px; } }

/* About page: plain process list (replaces the agent canvas) */
.process { margin-top: 64px; display: grid; gap: 28px; }
.process__head { display: grid; gap: 8px; max-width: 760px; }
.process__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: none; }
.process__step { display: grid; gap: 8px; align-content: start; padding-top: 20px; border-top: 1px solid var(--line); }
.process__n { font-size: 14px; font-weight: 600; color: var(--accent); }
.process__title { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.process__does { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.process__call { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.process__call b { color: var(--ink); font-weight: 600; }
.process__loop { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-2); }
.process__loop svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.process__tools { font-size: 15px; line-height: 1.6; color: var(--ink-2); padding-top: 24px; border-top: 1px solid var(--line); }
.process__tools span { font-weight: 600; color: var(--ink); margin-right: 10px; }
@media (max-width: 900px) { .process__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .process__steps { grid-template-columns: 1fr; gap: 24px; } }
.traits { max-width: none; }
.aboutme__intro .h1 { text-wrap: balance; }
.gate__title { font-size: clamp(26px, 2.4vw, 34px); text-wrap: balance; }
.tile__title, .cs-header__title, .next__title { text-wrap: balance; }

/* About me trait visuals */
.trait { gap: 12px; }
.tv { position: relative; height: 176px; margin-bottom: 8px; border-radius: 14px; background: #fff; border: 1px solid var(--am-line, #dedaf7); overflow: hidden; display: grid; place-items: center; }
.tv--reframe { grid-template-columns: 1fr auto 1fr; gap: 10px; padding: 18px; align-items: center; }
.tv-card { display: grid; gap: 6px; padding: 14px; border-radius: 10px; font-size: 14px; line-height: 1.3; min-height: 92px; align-content: start; }
.tv-card small { font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: var(--ink-3); }
.tv-card--asked { background: #f4f4f7; color: var(--ink-3); }
.tv-card--asked s { text-decoration-thickness: 1.5px; }
.tv-card--real { background: var(--accent); color: #fff; }
.tv-card--real small { color: rgba(255,255,255,.75); }
.tv-card--real b { font-weight: 600; }
.tv-arrow svg { width: 18px; height: 18px; color: var(--accent); }
.tv--align svg { width: 100%; height: 100%; padding: 8px 16px 26px; }
.tv-c { fill-opacity: .14; stroke-width: 1.5; }
.tv-c--1 { fill: #503de8; stroke: #503de8; } .tv-c--2 { fill: #0a8f6a; stroke: #0a8f6a; } .tv-c--3 { fill: #d9822b; stroke: #d9822b; }
.tv--align text { font-size: 11px; font-weight: 600; fill: var(--ink-2); font-family: var(--font); }
.tv-dot { fill: var(--ink); }
.tv-tag { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--am-line, #dedaf7); font-size: 12px; font-weight: 600; color: var(--ink); }
.tv--align .tv-tag { left: 50%; transform: translateX(-50%); bottom: 10px; white-space: nowrap; }
.tv--grow img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }

/* About page: restored build diagram, calmer (no dotted canvas, status badges, or running animations) */
.agentflow--calm { margin-top: 64px; }
.agentflow--calm .agentflow__canvas { background: var(--surface); }
.agentflow--calm .process__tools { margin-top: 28px; }
.tv--align svg { padding: 12px 8px 8px; }
.tv--align .tv-tag { left: 12px; top: 12px; bottom: auto; transform: none; }
.hero--light.hero--quiet .hero__glow { background:
  radial-gradient(ellipse 45% 60% at 78% 45%, rgba(80,61,232,.10) 0%, rgba(80,61,232,0) 70%),
  radial-gradient(ellipse 35% 45% at 55% 85%, rgba(139,92,246,.05) 0%, rgba(139,92,246,0) 70%); }

/* Copy-email confirmation */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 1000; transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--ink-on-dark);
  font-size: 14px; line-height: 1.3; box-shadow: 0 8px 24px rgba(16,16,20,.18); transition: opacity .2s ease, transform .2s ease; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast strong { font-weight: 600; margin-right: 6px; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
