/* ============================================================
   John Etokhana portfolio and case studies
   Aesthetic: sesan.studio (narrow column, Inter, calm, editorial)
   ============================================================ */

/* ---------- Password gate (case studies) ---------- */
html.locked { overflow: hidden; }
html.locked body > .progress,
html.locked body > .cs-top,
html.locked body > main { display: none !important; }

.gate {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: radial-gradient(120% 120% at 50% 0%, #f5f3ff 0%, #ffffff 55%);
  opacity: 1; transition: opacity .26s ease;
}
.gate-card {
  width: 100%; max-width: 372px; text-align: center;
  background: #fff; border: 1px solid #e7ebf0; border-radius: 16px;
  padding: 34px 30px 26px; box-shadow: 0 30px 60px -30px rgba(76,29,149,.28);
}
.gate-lock {
  width: 46px; height: 46px; margin: 0 auto 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #7c3aed; background: #f3efff; border: 1px solid #e9e2ff;
}
.gate-lock svg { width: 22px; height: 22px; }
.gate-title { font-size: 16px; font-weight: 650; color: #0b1220; letter-spacing: -.01em; }
.gate-sub { font-size: 12.5px; color: #64748b; line-height: 1.5; margin: 8px auto 20px; max-width: 300px; }
.gate-form { display: flex; gap: 8px; }
.gate-input {
  flex: 1; font: inherit; font-size: 14px; padding: 10px 13px;
  border: 1px solid #e2e8f0; border-radius: 9px; color: #0b1220; background: #fff;
  outline: none; transition: border-color .18s ease, box-shadow .18s ease;
}
.gate-input:focus { border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124,58,237,.15); }
.gate-btn {
  font: inherit; font-size: 13px; font-weight: 600; color: #fff; cursor: pointer;
  background: #7c3aed; border: 1px solid #7c3aed; border-radius: 9px; padding: 10px 16px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.gate-btn:hover { background: #6d28d9; transform: translateY(-1px); box-shadow: 0 10px 22px -12px rgba(124,58,237,.7); }
.gate-err { font-size: 12px; color: #dc2626; min-height: 16px; margin-top: 12px; }
.gate-back { display: inline-block; margin-top: 6px; font-size: 12px; color: #94a3b8; text-decoration: none; }
.gate-back:hover { color: #0b1220; }
.gate-card.shake { animation: gate-shake .4s ease; }
@keyframes gate-shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-5px); }
  40%, 60% { transform: translateX(5px); }
}
@media (prefers-reduced-motion: reduce) {
  .gate, .gate-btn { transition: none; }
  .gate-card.shake { animation: none; }
}


:root {
  --ink: #0b1220;
  --ink-soft: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e7ebf0;
  --line-soft: #eef1f5;
  --bg: #ffffff;
  --bg-tint: #f8fafc;
  --accent: #7c3aed;         /* violet, from the Rivva gradient */
  --content: 600px;
  --wide: 920px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --sans: "InterVariable", "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-feature-settings: "cv11", "ss01";
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: #ede9fe; color: var(--ink); }

a { color: inherit; }

/* ---------- Scroll progress bar (top) ---------- */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: var(--accent); z-index: 50;
  transition: width .08s linear;
}

/* ---------- Sticky left nav ---------- */
nav.side {
  position: fixed; top: 96px; left: 44px;
  display: flex; flex-direction: column; gap: 7px; z-index: 20;
}
nav.side a {
  font-size: 12px; color: var(--faint); text-decoration: none;
  position: relative; padding-left: 14px; transition: color .18s var(--ease);
  width: max-content;
}
nav.side a::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 5px; height: 1px; background: currentColor;
  transform: translateY(-50%) scaleX(0); transform-origin: left;
  transition: transform .22s var(--ease); opacity: .6;
}
nav.side a:hover { color: var(--ink); }
nav.side a.active { color: var(--ink); font-weight: 500; }
nav.side a.active::before { transform: translateY(-50%) scaleX(1); background: var(--accent); opacity: 1; }

/* ---------- Layout ---------- */
main { max-width: var(--content); margin: 0 auto; padding: 92px 24px 168px; }
section { margin-bottom: 68px; }
section:target { scroll-margin-top: 60px; }

/* ---------- Typography ---------- */
.eyebrow {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--faint); font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

h1.name { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
h2.label { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
p { color: var(--ink); margin-bottom: 14px; }
p.lead strong { font-weight: 600; }
p:last-child { margin-bottom: 0; }

a.inline {
  color: var(--ink); font-weight: 500; text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .25s var(--ease); padding-bottom: 1px;
}
a.inline:hover { background-size: 100% 1px; }
/* a lit inline link: always underlined + accent, for the one link worth spotlighting */
a.inline.lit { color: var(--accent); background-size: 100% 1px; }
a.inline.lit:hover { opacity: .82; }

.desc { color: var(--muted); font-size: 12.5px; line-height: 1.55; margin-top: 10px; }

/* ---------- Avatar + badge ---------- */
.avatar {
  width: 46px; height: 46px; border-radius: 50%; margin-bottom: 26px;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(130% 130% at 28% 20%, #6366f1, #7c3aed 52%, #db2777);
  color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .5px;
  box-shadow: 0 4px 18px -6px rgba(124,58,237,.5);
}
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 11px; margin-bottom: 20px; background: var(--bg);
}
.badge .dot {
  width: 6px; height: 6px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,.5); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,.45); }
  70% { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* ---------- Project cards ---------- */
.card { margin-top: 34px; }
.card:first-of-type { margin-top: 26px; }

a.thumb {
  display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: 14px;
  overflow: hidden; position: relative; border: 1px solid var(--line);
  text-decoration: none; transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  transform: translateZ(0);
}
a.thumb:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -22px rgba(15,23,42,.32); }
a.thumb .fill { position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; }
a.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* brand thumb variants */
.t-episode { background: #0b0b0e; }
.t-episode .wm { height: 30px; }
.t-episode .tag { color: #9aa0aa; }
.t-rivva { background: linear-gradient(140deg,#4f46e5 0%,#7c3aed 55%,#c026d3 120%); }
.t-kora { background: linear-gradient(140deg,#0f3bbf,#2563eb 65%,#60a5fa); }
.t-milkyway { background: radial-gradient(120% 130% at 70% 20%, #1e1b4b, #0b1020 70%); }
.t-word { color: #fff; font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.t-word.sr { font-weight: 700; }
.t-tag { color: rgba(255,255,255,.72); font-size: 12px; letter-spacing: .01em; }
.t-milkyway .stars { position: absolute; inset: 0; background-image:
  radial-gradient(1.4px 1.4px at 20% 30%, #fff8, transparent),
  radial-gradient(1.4px 1.4px at 70% 60%, #fff6, transparent),
  radial-gradient(1.2px 1.2px at 45% 80%, #fff5, transparent),
  radial-gradient(1.6px 1.6px at 85% 35%, #fff7, transparent),
  radial-gradient(1.2px 1.2px at 30% 65%, #fff4, transparent); }

.card-title { margin-top: 15px; }
a.ext {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 5px;
}
a.ext .arrow { font-size: 11px; color: var(--faint); transition: transform .2s var(--ease); }
a.ext:hover .arrow { transform: translate(2px,-2px); }
a.ext.case .arrow { color: var(--accent); }
.meta-line { font-size: 11px; color: var(--faint); margin-top: 5px; letter-spacing: .01em; }

/* ---------- Lists (writing / friends / contact) ---------- */
ul.links { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 15px; }
ul.links a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: baseline; gap: 5px; }
ul.links a:hover .t { text-decoration: underline; text-underline-offset: 3px; }
ul.links .arrow { color: var(--faint); font-size: 11px; }
ul.links .src { display: block; font-size: 11px; color: var(--faint); margin-top: 2px; }

.contact-row { display: flex; flex-direction: column; gap: 13px; margin-top: 18px; }
.contact-row a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 9px; }
.contact-row a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-row .ico { width: 15px; height: 15px; color: var(--muted); flex: none; }
.copyhint { color: var(--faint); font-size: 11px; margin-left: 6px; }

/* ============================================================
   CASE STUDY PAGES
   ============================================================ */
.cs main { max-width: var(--wide); padding-top: 40px; }

.cs-top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px; background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.cs-top a.back { font-size: 13px; color: var(--ink-soft); text-decoration: none;
  display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
.cs-top a.back:hover { color: var(--ink); }
.cs-top a.back .arw { transition: transform .2s var(--ease); }
.cs-top a.back:hover .arw { transform: translateX(-3px); }
.cs-top .live { font-size: 12px; color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.cs-top .live:hover { color: var(--ink); }

.cs-hero { padding: 60px 0 20px; }
.cs-hero h1 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.1; letter-spacing: -.02em; font-weight: 600; margin-bottom: 20px; max-width: 720px; }
.cs-hero h1 em { font-style: normal; font-family: inherit; font-weight: inherit; color: inherit; }
.cs-hero .dek { font-size: 16px; line-height: 1.55; color: var(--ink-soft); max-width: 620px; }

.cs-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 20px; margin: 40px 0 8px;
  padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cs-meta .k { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin-bottom: 7px; }
.cs-meta .v { font-size: 13px; color: var(--ink); line-height: 1.45; }

/* Section block: sticky label left, prose right */
.block { display: grid; grid-template-columns: 150px 1fr; gap: 44px; padding: 56px 0; border-bottom: 1px solid var(--line-soft); }
.block > .h { position: sticky; top: 84px; align-self: start; }
.block .h .n { font-size: 11px; color: var(--faint); font-weight: 600; letter-spacing: .06em; }
.block .h .t { font-size: 15px; font-weight: 600; margin-top: 4px; }
.block .body { max-width: 660px; }
.block .body p { font-size: 15px; line-height: 1.62; color: var(--ink-soft); margin-bottom: 18px; }
.block .body p strong { color: var(--ink); font-weight: 600; }
.block .body h4 { font-size: 14px; font-weight: 650; margin: 26px 0 10px; color: var(--ink); }
.block .body ul { margin: 0 0 18px; padding-left: 0; list-style: none; }
.block .body ul li { font-size: 15px; line-height: 1.6; color: var(--ink-soft); position: relative; padding-left: 22px; margin-bottom: 10px; }
.block .body ul li::before { content: ""; position: absolute; left: 3px; top: 10px; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--accent); }
/* On wide case-study layouts, let section media break out of the reading column so it aligns
   with the full-width cover/intro instead of sitting small and left-shifted after the label gutter. */
@media (min-width: 941px) {
  .cs .block .body > .stage,
  .cs .block .body > figure { width: calc(100% + 212px); margin-left: -194px; }
}

/* Placeholder image frame */
.ph {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background:
    linear-gradient(135deg, #fbfcfe, #f1f4f8);
  display: flex; align-items: center; justify-content: center;
  margin: 8px 0 6px; min-height: 200px;
}
.ph::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: repeating-linear-gradient(-45deg, transparent 0 11px, rgba(148,163,184,.07) 11px 12px);
}
.ph .lab { position: relative; z-index: 1; text-align: center; padding: 24px; }
.ph .chip { display: inline-block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 10px; margin-bottom: 12px; font-weight: 600; }
.ph .cap { font-size: 13px; color: var(--ink-soft); max-width: 340px; margin: 0 auto; }
.ph.tall { aspect-ratio: 4/3; }
.ph.wide { aspect-ratio: 16/9; }
.ph.phone { aspect-ratio: 9/16; max-width: 260px; }
figure { margin: 22px 0 8px; }
figure figcaption { font-size: 12px; color: var(--muted); margin-top: 10px; }
.ph-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ph-row.phones { grid-template-columns: repeat(3, 1fr); justify-items: center; }

/* Metrics */
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 8px 0; }
.metrics .m { border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: var(--bg-tint); }
.metrics .m .fig { font-size: 30px; font-weight: 680; letter-spacing: -.02em; line-height: 1; }
.metrics .m .fig .u { color: var(--accent); }
.metrics .m .lbl { font-size: 12px; color: var(--muted); margin-top: 9px; line-height: 1.4; }

/* Impact bar (impact-first, sits right under the hero) */
.impact {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 28px;
  margin: 34px 0 6px; padding: 24px 26px; border-radius: 14px;
  background: #faf9fc;
  border: 1px solid var(--line);
}
.impact .lead { grid-column: 1 / -1; font-size: 14.5px; font-weight: 550; color: var(--ink); line-height: 1.5; }
.impact .stat .n { font-size: 27px; font-weight: 680; letter-spacing: -.02em; line-height: 1; }
.impact .stat .n .u { color: var(--accent); }
.stat .n .ar, .metrics .fig .ar { margin: 0 .2em; color: var(--accent); font-weight: 500; }
.impact .stat .l { font-size: 11.5px; color: var(--muted); margin-top: 6px; line-height: 1.4; }

/* Real screenshot presentation */
.shot { display: block; width: 100%; border-radius: 14px; border: 1px solid var(--line);
  background: #f4f6f9; }
figure .cap, figure figcaption { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* Decision / options (the messy middle) */
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0 8px; }
.opt { border: 1px solid var(--line); border-radius: 12px; padding: 18px 18px 16px; background: #fff; position: relative; }
.opt.chosen { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: linear-gradient(#fbfaff, #fff); }
.opt .tag { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.opt.chosen .tag { color: var(--accent); }
.opt .ot { font-size: 14px; font-weight: 600; color: var(--ink); margin: 6px 0 12px; line-height: 1.35; }
.opt .pl { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 10px 0 5px; }
.opt ul { list-style: none; margin: 0; padding: 0; }
.opt ul li { font-size: 12.5px; line-height: 1.45; color: var(--ink-soft); padding-left: 16px; position: relative; margin-bottom: 5px; }
.opt.chosen ul li::before, .opt ul li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: #cbd5e1; }
.opt .pros li::before { background: #86c99a; }
.opt .cons li::before { background: #e6a3a3; }
.chose { font-size: 14px; line-height: 1.6; color: var(--ink-soft); margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line-soft); }
.chose strong { color: var(--ink); font-weight: 600; }

/* Pull principle callout */
.principle { border-left: 2px solid var(--accent); padding: 4px 0 4px 22px; margin: 26px 0; }
.principle .p1 { font-size: 17px; line-height: 1.5; color: var(--ink); font-weight: 500; letter-spacing: -.01em; }
.principle .p2 { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* Next project footer */
.cs-next { display: flex; align-items: center; justify-content: space-between; padding: 48px 0 8px; gap: 20px; flex-wrap: wrap; }
.cs-next .l { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin-bottom: 8px; }
.cs-next a.np { font-size: 26px; font-weight: 640; letter-spacing: -.02em; text-decoration: none; color: var(--ink);
  display: inline-flex; align-items: center; gap: 10px; }
.cs-next a.np .arrow { color: var(--accent); transition: transform .2s var(--ease); }
.cs-next a.np:hover .arrow { transform: translateX(4px); }
.cs-next a.home { font-size: 13px; color: var(--muted); text-decoration: none; }
.cs-next a.home:hover { color: var(--ink); }

/* ============================================================
   NOTES / ESSAY  (mockup-on-animated-background, sesan-style)
   ============================================================ */
.essay { max-width: 660px; margin: 0 auto; padding: 44px 24px 140px; }
.essay h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 640; letter-spacing: -.02em; line-height: 1.08; margin: 12px 0 12px; }
.essay .sub { font-size: 12.5px; color: var(--muted); margin-bottom: 34px; }
.essay .lede { font-size: 17px; line-height: 1.62; color: var(--ink-soft); margin-bottom: 12px; }
.essay h2 { font-size: 18px; font-weight: 640; color: var(--ink); margin: 44px 0 12px; letter-spacing: -.01em; }
.essay h2 .num { color: var(--accent); font-variant-numeric: tabular-nums; margin-right: 10px; }
.essay p { font-size: 15.5px; line-height: 1.68; color: var(--ink-soft); margin-bottom: 16px; }
.essay p strong { color: var(--ink); font-weight: 600; }
.essay .kicker { font-family: var(--sans); }

/* Stage: a mockup floating on a colorful animated background */
.stage {
  position: relative; border-radius: 16px; overflow: hidden;
  margin: 26px 0 8px; padding: 46px 40px;
  display: flex; align-items: center; justify-content: center; min-height: 340px;
  border: 1px solid var(--line);
}
.stage::before {
  content: ""; position: absolute; inset: -25%; z-index: 0;
  filter: blur(24px) saturate(1.25);
  animation: drift 20s ease-in-out infinite alternate;
}
.stage > * { position: relative; z-index: 1; }
@keyframes drift {
  from { transform: translate3d(-3%, -2%, 0) scale(1.06) rotate(0deg); }
  to   { transform: translate3d(3%, 3%, 0) scale(1.18) rotate(7deg); }
}
.stage.s-violet::before { background:
  radial-gradient(42% 52% at 28% 30%, #6366f1 0%, transparent 70%),
  radial-gradient(46% 56% at 72% 58%, #a855f7 0%, transparent 70%),
  radial-gradient(52% 60% at 52% 82%, #ec4899 0%, transparent 72%),
  linear-gradient(120deg, #312e81, #1e1b4b); }
.stage.s-teal::before { background:
  radial-gradient(44% 54% at 30% 28%, #14b8a6 0%, transparent 70%),
  radial-gradient(46% 56% at 74% 60%, #22d3ee 0%, transparent 70%),
  radial-gradient(50% 60% at 50% 84%, #6366f1 0%, transparent 72%),
  linear-gradient(120deg, #0f766e, #0c4a6e); }
.stage.s-amber::before { background:
  radial-gradient(44% 54% at 30% 30%, #f59e0b 0%, transparent 70%),
  radial-gradient(46% 56% at 72% 58%, #ef4444 0%, transparent 70%),
  radial-gradient(52% 60% at 52% 84%, #db2777 0%, transparent 72%),
  linear-gradient(120deg, #7c2d12, #431407); }
.stage.s-rose::before { background:
  radial-gradient(44% 54% at 30% 30%, #fb7185 0%, transparent 70%),
  radial-gradient(46% 56% at 72% 60%, #d946ef 0%, transparent 70%),
  radial-gradient(52% 60% at 50% 84%, #6366f1 0%, transparent 72%),
  linear-gradient(120deg, #831843, #3b0764); }
.stage.s-cyan::before { background:
  radial-gradient(44% 54% at 30% 30%, #38bdf8 0%, transparent 70%),
  radial-gradient(46% 56% at 72% 60%, #818cf8 0%, transparent 70%),
  radial-gradient(52% 60% at 50% 84%, #22d3ee 0%, transparent 72%),
  linear-gradient(120deg, #0c4a6e, #1e1b4b); }

/* Painting backgrounds (sesan-style: mockups float on real abstract art) */
.stage.paint::before {
  inset: -10%;
  background-image: var(--pbg);
  background-size: cover; background-position: center; background-repeat: no-repeat;
  filter: saturate(1.06);
  animation: drift 30s ease-in-out infinite alternate;
}
.pb1 { --pbg: url('assets/bg/bg-1.jpg'); } .pb2 { --pbg: url('assets/bg/bg-2.jpg'); }
.pb3 { --pbg: url('assets/bg/bg-3.jpg'); } .pb4 { --pbg: url('assets/bg/bg-4.jpg'); }
.pb5 { --pbg: url('assets/bg/bg-5.jpg'); } .pb6 { --pbg: url('assets/bg/bg-6.jpg'); }

/* Browser window mockup */
.window {
  width: 100%; max-width: 560px; background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 34px 64px -22px rgba(2,6,23,.55), 0 10px 24px -14px rgba(2,6,23,.4);
  animation: floaty 7s ease-in-out infinite;
}
.window .bar { height: 34px; background: #f3f4f6; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid #e5e7eb; }
.window .bar .d { width: 10px; height: 10px; border-radius: 50%; }
.window .bar .d.r { background: #ff5f57; } .window .bar .d.y { background: #febc2e; } .window .bar .d.g { background: #28c840; }
.window .bar .t { margin-left: 8px; font-size: 11px; color: #9aa0aa; }
.window .body { background: #fff; display: block; }
.window .body video, .window .body img { display: block; width: 100%; }
.window .body.ph { aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #fbfcfe, #eef2f7); }
.window .body.ph .cap { font-size: 12.5px; color: var(--muted); text-align: center; padding: 20px; max-width: 320px; }
.window .body.ph .chip { display: inline-block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; margin-bottom: 10px; font-weight: 600; }

/* Phone mockup on a stage */
.phone-stage { width: 232px; border-radius: 32px; background: #0b0b0f; padding: 7px; box-shadow: 0 34px 64px -22px rgba(2,6,23,.6); animation: floaty 7s ease-in-out infinite; }
.phone-stage .scr { border-radius: 26px; overflow: hidden; aspect-ratio: 9/19.5; background: #000; display: flex; align-items: center; justify-content: center; }
.phone-stage .scr img, .phone-stage .scr video { width: 100%; height: 100%; object-fit: cover; }
.phone-stage .scr .cap { color: #6b7280; font-size: 12px; text-align: center; padding: 16px; }

@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.stage-cap { font-size: 12px; color: var(--muted); margin-top: 11px; }

@media (max-width: 620px) { .stage { padding: 30px 18px; min-height: 260px; } }

/* ---- Coded demo vignettes (live UI inside the window, no images) ---- */
.window .body .demo { padding: 20px; }
.demo, .demo * { box-sizing: border-box; }
@keyframes dFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes dBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes dGrow { from { transform: scaleY(.05); } to { transform: scaleY(1); } }
@keyframes dType { from { width: 0; } to { width: var(--w, 100%); } }
@keyframes dPulse { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }
.demo .caret { display: inline-block; width: 2px; height: 1em; background: currentColor; vertical-align: -2px; margin-left: 1px; animation: dBlink 1.1s steps(1) infinite; }

/* 1. code + live preview */
.demo-code { display: grid; grid-template-columns: 1fr .82fr; gap: 14px; align-items: center; }
.demo-code .code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; line-height: 1.85; color: #475569; }
.demo-code .code .kw { color: #7c3aed; } .demo-code .code .tag { color: #0ea5e9; } .demo-code .code .str { color: #16a34a; }
.demo-code .prev { border: 1px solid #eef1f5; border-radius: 10px; background: linear-gradient(135deg, #faf9ff, #eef2f7); padding: 14px; }
.demo-code .prev .card { border-radius: 8px; background: #fff; border: 1px solid #e7ebf0; padding: 11px; animation: dPulse 3s ease-in-out infinite; }
.demo-code .prev .card .b { height: 7px; border-radius: 4px; background: #e7ebf0; margin-bottom: 6px; }
.demo-code .prev .card .b.s { width: 55%; }
.demo-code .prev .card .pill { height: 15px; width: 48px; border-radius: 7px; background: #7c3aed; margin-top: 9px; }

/* 2. activation bars */
.demo-bars .h { font-size: 11px; color: #64748b; margin-bottom: 14px; }
.demo-bars .chart { display: flex; align-items: flex-end; gap: 18px; height: 116px; }
.demo-bars .bar { flex: 1; max-width: 44px; border-radius: 6px 6px 0 0; background: linear-gradient(#818cf8, #6366f1); transform-origin: bottom; height: var(--h); animation: dGrow 1.1s ease-out both; }
.demo-bars .bar.hot { background: linear-gradient(#c084fc, #a855f7); }
.demo-bars .labels { display: flex; gap: 18px; margin-top: 8px; }
.demo-bars .labels span { flex: 1; max-width: 44px; text-align: center; font-size: 10px; color: #94a3b8; }
.demo-bars .badge { margin-top: 13px; display: inline-block; font-size: 11px; font-weight: 600; color: #7c3aed; background: #f3efff; border: 1px solid #e9e2ff; border-radius: 999px; padding: 3px 11px; animation: dFade .6s .9s both; }

/* 3. draft doc filling in */
.demo-doc .t { font-size: 12px; font-weight: 600; color: #0b1220; margin-bottom: 13px; }
.demo-doc .line { height: 9px; border-radius: 5px; background: #f1f4f8; margin-bottom: 10px; overflow: hidden; position: relative; }
.demo-doc .line::after { content: ""; position: absolute; inset: 0; width: var(--w, 100%); background: linear-gradient(90deg, #e2e8f0, #cbd5e1); animation: dType 1.1s ease-out both; }
.demo-doc .line:nth-child(2)::after { animation-delay: .1s; } .demo-doc .line:nth-child(3)::after { animation-delay: .3s; }
.demo-doc .line:nth-child(4)::after { animation-delay: .5s; } .demo-doc .line:nth-child(5)::after { animation-delay: .7s; }
.demo-doc .cap { font-size: 10px; color: #94a3b8; margin-top: 6px; }

/* 4. search tool */
.demo-search .in { display: flex; align-items: center; gap: 8px; border: 1px solid #e7ebf0; border-radius: 10px; padding: 10px 12px; font-size: 12px; color: #334155; margin-bottom: 12px; }
.demo-search .in .mag { width: 13px; height: 13px; border: 1.6px solid #94a3b8; border-radius: 50%; position: relative; flex: none; }
.demo-search .in .mag::after { content: ""; position: absolute; width: 5px; height: 1.6px; background: #94a3b8; transform: rotate(45deg); right: -3px; bottom: 0; }
.demo-search .res { display: flex; gap: 9px; align-items: flex-start; font-size: 11.5px; color: #334155; line-height: 1.4; padding: 8px 2px; border-top: 1px solid #f1f4f8; animation: dFade .5s both; }
.demo-search .res:nth-child(3) { animation-delay: .3s; } .demo-search .res:nth-child(4) { animation-delay: .55s; }
.demo-search .res .src { font-size: 9px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #7c3aed; background: #f3efff; border-radius: 5px; padding: 2px 6px; flex: none; }

/* ---- Coded "Claude" renderings (realistic AI vignettes) ---- */
.essay .stage { width: calc(100% + 120px); margin-left: -60px; }
@media (max-width: 800px) { .essay .stage { width: 100%; margin-left: 0; } }
.window .body .claude { padding: 17px 18px 20px; display: flex; flex-direction: column; gap: 11px; text-align: left; font-size: 12.5px; color: #1f2733; line-height: 1.5; }
.claude, .claude * { box-sizing: border-box; }
.claude > * { animation: dFade .5s both; }
.claude > *:nth-child(2) { animation-delay: .12s; } .claude > *:nth-child(3) { animation-delay: .26s; }
.claude > *:nth-child(4) { animation-delay: .4s; } .claude > *:nth-child(5) { animation-delay: .54s; }
.claude > *:nth-child(6) { animation-delay: .68s; } .claude > *:nth-child(7) { animation-delay: .82s; }
/* JS-driven streaming reveal (overrides the CSS stagger above once JS runs) */
.claude.js-stream > * { animation: none; opacity: 0; transform: translateY(7px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.claude.js-stream > *.in { opacity: 1; transform: none; }
.claude.js-stream .tool .ok { opacity: 0; transform: scale(.4); }
.claude.js-stream .tool.in .ok { animation: dPop .34s .18s both; }
@keyframes dPop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
.cl-star { animation: cwork 8s linear infinite; }
@keyframes cwork { to { transform: rotate(360deg); } }
.claude .caret { display: inline-block; width: 2px; height: 1em; background: #94a3b8; vertical-align: -2px; margin-left: 2px; animation: dBlink 1s steps(1) infinite; }
.claude .u { align-self: flex-end; max-width: 84%; background: #f1f3f6; border-radius: 13px; padding: 9px 12px; color: #1f2733; }
.claude .think { display: flex; align-items: center; gap: 8px; color: #94a3b8; }
.cl-star { flex: none; }
.claude .msg { color: #334155; }
.claude .msg strong { color: #0b1220; font-weight: 600; }
.claude .tool { border: 1px solid #e7ebf0; border-radius: 9px; overflow: hidden; }
.claude .tool .th { display: flex; align-items: center; gap: 7px; padding: 8px 11px; background: #fbfcfd; }
.claude .tool .th .arr { color: #b6bdc7; font-family: ui-monospace, Menlo, monospace; }
.claude .tool .th .name { font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; color: #0b1220; }
.claude .tool .th .src { color: #9aa3af; font-size: 11px; }
.claude .tool .th .ok { margin-left: auto; color: #16a34a; font-size: 13px; }
.claude .tool .rz { padding: 8px 11px; border-top: 1px solid #f1f4f8; font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: #475569; }
.claude table.t { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.claude table.t th { text-align: left; color: #9aa3af; font-weight: 500; padding: 6px 8px; border-bottom: 1px solid #eef1f5; }
.claude table.t td { padding: 6px 8px; border-bottom: 1px solid #f4f6f9; color: #334155; vertical-align: top; }
.claude table.t tr.hot td { background: #f7f3ff; }
.claude table.t .u2 { color: #9aa3af; }
.claude .diff { font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: #475569; background: #fbfcfd; border: 1px solid #f1f4f8; border-radius: 7px; padding: 7px 10px; display: flex; justify-content: space-between; align-items: center; }
.claude .diff .add { color: #16a34a; } .claude .diff .del { color: #dc2626; margin-left: 7px; }
.claude .art { border: 1px solid #e7ebf0; border-radius: 10px; padding: 13px; background: #fff; }
.claude .steps { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.claude .steps .st { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #94a3b8; }
.claude .steps .st .n { width: 18px; height: 18px; border-radius: 50%; background: #eef1f5; color: #64748b; display: flex; align-items: center; justify-content: center; font-size: 10px; }
.claude .steps .st.on .n { background: #0b0b0f; color: #fff; }
.claude .steps .st.on { color: #0b1220; font-weight: 500; }
.claude .fld { font-size: 10px; color: #94a3b8; margin: 9px 0 4px; }
.claude .inp { border: 1px solid #e7ebf0; border-radius: 7px; padding: 8px 10px; font-size: 11.5px; color: #334155; }
.claude .inp.ph2 { color: #b6bdc7; }
.claude .cta { margin-top: 12px; background: #0b0b0f; color: #fff; border-radius: 8px; padding: 9px; text-align: center; font-size: 11.5px; font-weight: 500; }
.claude .doc-h { font-size: 11px; color: #64748b; margin: 6px 0 4px; font-weight: 600; }
.claude .doc-l { height: 8px; border-radius: 4px; background: #eef1f5; margin-bottom: 7px; }
.claude .res { display: flex; gap: 9px; align-items: flex-start; line-height: 1.4; }
.claude .res .src { font-size: 9px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #7c3aed; background: #f3efff; border-radius: 5px; padding: 2px 6px; flex: none; margin-top: 1px; }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line-soft); margin-top: 56px; padding-top: 22px;
  display: flex; justify-content: space-between; font-size: 12px; color: var(--faint); flex-wrap: wrap; gap: 10px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  nav.side { display: none; }
  main { padding-top: 56px; }
  .block { grid-template-columns: 1fr; gap: 16px; padding: 40px 0; }
  .block > .h { position: static; }
  .cs-meta { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: 1fr; }
  .impact { grid-template-columns: 1fr 1fr; }
  .options { grid-template-columns: 1fr; }
  .ph-row, .ph-row.phones { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .badge .dot { animation: none; }
  a.thumb, a.thumb:hover { transition: none; transform: none; }
  .stage::before, .window, .phone-stage { animation: none !important; }
  .claude *, .claude > * { animation: none !important; }
}
