/* ImpactLearning portfolio. Tokens first, then base, then components. */

:root {
  --paper: #fbf9ff;
  --card: #ffffff;
  --ink: #17122b;
  --muted: #5a5470;
  --line: #e9e4f5;
  --accent: #6d3ae8;
  --accent-soft: #efe8ff;
  --teal: #0b7a64;
  --teal-soft: #dcf5ee;
  --blue: #2f55e0; --blue-soft: #e3e9ff; --on-blue: #ffffff;
  --green: #0b7a64; --green-soft: #dcf5ee; --on-green: #ffffff;
  --purple: #6d3ae8; --purple-soft: #efe8ff; --on-purple: #ffffff;
  --orange: #b8450f; --orange-soft: #ffe9dd; --on-orange: #ffffff;
  --pink: #c81f66; --pink-soft: #ffe3ef;
  --yellow: #f4b400; --yellow-soft: #fff4d1; --on-yellow: #17122b; --yellow-text: #7d5b00;
  --grad: linear-gradient(100deg, #e11d74 0%, #7c3aed 50%, #2f55e0 100%);
  --grad-bright: linear-gradient(100deg, #ff3d9a 0%, #8b3dff 50%, #3d6bff 100%);
  --glass: rgba(255, 255, 255, 0.78);
  --shadow-sm: 0 1px 2px rgba(40, 20, 90, .06), 0 4px 12px rgba(40, 20, 90, .05);
  --shadow-lg: 0 30px 60px -24px rgba(109, 58, 232, .35), 0 8px 20px -8px rgba(40, 20, 90, .12);
  --shadow: rgba(40, 20, 90, .18);
  --tk: #fff1a8;
  --tk-ink: #4a3b00;
  --focus: #6d3ae8;

  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1120px;
  --read: 68ch;
  --radius: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0c0a16;
    --card: #16122a;
    --ink: #f3f0ff;
    --muted: #aea7c8;
    --line: #2a2442;
    --accent: #b69cff;
    --accent-soft: #241c45;
    --teal: #4fd1b3;
    --teal-soft: #0f2a25;
    --blue: #93a8ff; --blue-soft: #1c2547; --on-blue: #0c0a16;
    --green: #4fd1b3; --green-soft: #0f2a25; --on-green: #0c0a16;
    --purple: #b69cff; --purple-soft: #241c45; --on-purple: #0c0a16;
    --orange: #ff9b6a; --orange-soft: #35201a; --on-orange: #0c0a16;
    --pink: #ff7ab6; --pink-soft: #3a1328;
    --yellow: #f5c84c; --yellow-soft: #302710; --on-yellow: #0c0a16; --yellow-text: #f5c84c;
    --grad: linear-gradient(100deg, #ff7ab6 0%, #b69cff 50%, #93a8ff 100%);
    --grad-bright: linear-gradient(100deg, #ff3d9a 0%, #8b3dff 50%, #3d6bff 100%);
    --glass: rgba(22, 18, 42, 0.78);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-lg: 0 30px 60px -24px rgba(0, 0, 0, .7);
    --shadow: rgba(0, 0, 0, .5);
    --tk: #4b4110;
    --tk-ink: #fff3b0;
    --focus: #b69cff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0c0a16;
  --card: #16122a;
  --ink: #f3f0ff;
  --muted: #aea7c8;
  --line: #2a2442;
  --accent: #b69cff;
  --accent-soft: #241c45;
  --teal: #4fd1b3;
  --teal-soft: #0f2a25;
  --blue: #93a8ff; --blue-soft: #1c2547; --on-blue: #0c0a16;
  --green: #4fd1b3; --green-soft: #0f2a25; --on-green: #0c0a16;
  --purple: #b69cff; --purple-soft: #241c45; --on-purple: #0c0a16;
  --orange: #ff9b6a; --orange-soft: #35201a; --on-orange: #0c0a16;
  --pink: #ff7ab6; --pink-soft: #3a1328;
  --yellow: #f5c84c; --yellow-soft: #302710; --on-yellow: #0c0a16; --yellow-text: #f5c84c;
  --grad: linear-gradient(100deg, #ff7ab6 0%, #b69cff 50%, #93a8ff 100%);
  --grad-bright: linear-gradient(100deg, #ff3d9a 0%, #8b3dff 50%, #3d6bff 100%);
  --glass: rgba(22, 18, 42, 0.78);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-lg: 0 30px 60px -24px rgba(0, 0, 0, .7);
  --shadow: rgba(0, 0, 0, .5);
  --tk: #4b4110;
  --tk-ink: #fff3b0;
  --focus: #b69cff;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
}

[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; }

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

.eyebrow {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal); margin: 0 0 1rem;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; text-decoration: none; }
.brand span { color: var(--accent); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav a:hover { background: var(--card); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--accent); }
.nav-toggle { display: none; }
.theme-toggle {
  background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 8px;
  width: 40px; height: 40px; cursor: pointer; font-size: 1rem;
}
.header-actions { display: flex; align-items: center; gap: 8px; }

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 8px;
    height: 40px; padding: 0 12px; font: inherit; font-weight: 500; cursor: pointer;
  }
  .nav { position: absolute; top: 64px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .nav a { padding: 12px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid var(--ink);
  background: var(--ink); color: var(--paper); cursor: pointer; font: inherit; font-weight: 600;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
section { padding: 72px 0; }
@media (min-width: 720px) { section { padding: 104px 0; } }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Hero */
.hero { padding-top: 64px; }
@media (min-width: 720px) { .hero { padding-top: 112px; } }
.hero h1 { max-width: 19ch; text-wrap: balance; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 58ch; margin-bottom: 2rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
.hero-meta strong { color: var(--ink); font-weight: 600; }

/* Featured work */
.work-list { display: grid; gap: 24px; }
.work-card {
  display: grid; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; transition: transform 0.2s ease, border-color 0.2s ease;
}
.work-card:hover { transform: translateY(-3px); border-color: var(--accent); color: inherit; }
@media (min-width: 860px) { .work-card { grid-template-columns: 1.05fr 1fr; } .work-card.flip .work-visual { order: 2; } }
.work-visual { min-height: 240px; display: grid; place-items: center; padding: 32px; position: relative; }
.work-visual.v-sales { background: var(--teal-soft); }
.work-visual.v-campus { background: var(--accent-soft); }
.work-visual.v-branch { background: color-mix(in srgb, var(--line) 55%, var(--card)); }
.work-body { padding: 28px; display: flex; flex-direction: column; }
@media (min-width: 860px) { .work-body { padding: 40px; } }
.work-body h3 { font-size: 1.6rem; }
.work-body p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; }
.tags li { font-size: 0.8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.tags li.ai { border-color: var(--teal); color: var(--teal); }
.work-link { margin-top: auto; font-weight: 600; color: var(--accent); }
.status { position: absolute; top: 16px; left: 16px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: var(--card); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); }

.more-work { margin-top: 48px; }
.more-work h3 { font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.mini-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.mini { display: block; padding: 20px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; background: var(--card); }
.mini:hover { border-color: var(--accent); color: inherit; }
.mini strong { display: block; font-size: 1.05rem; }
.mini span { color: var(--muted); font-size: 0.9rem; }

/* Mock visuals (pure CSS, no client imagery) */
.mock { width: min(340px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; box-shadow: 0 12px 32px -18px rgb(0 0 0 / 0.35); font-size: 0.85rem; }
.mock .bubble { background: var(--paper); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.mock .bubble.me { background: var(--teal); color: var(--card); margin-left: 28px; }
.mock .fb { border-left: 3px solid var(--accent); padding: 6px 10px; color: var(--muted); }
.flow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; font-weight: 600; }
.flow span { background: var(--card); border: 1px solid var(--line); padding: 10px 14px; border-radius: 10px; }
.flow i { font-style: normal; color: var(--accent); }

/* AI approach */
.ai-grid { display: grid; gap: 20px; }
@media (min-width: 800px) { .ai-grid { grid-template-columns: 1fr 1fr; } }
.ai-col { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.ai-col h3 { display: flex; align-items: center; gap: 10px; }
.ai-col ul { margin: 0; padding-left: 1.2em; }
.ai-col li { margin-bottom: 0.6em; }
.ai-col li::marker { color: var(--teal); }
.ai-col.no li::marker { color: var(--accent); }

/* Services */
.svc-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 720px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.svc { background: var(--card); padding: 28px; }
.svc p { color: var(--muted); margin: 0; }
.svc .num { font-family: var(--font-display); color: var(--accent); font-size: 1rem; margin-bottom: 8px; display: block; }

/* About */
.about-grid { display: grid; gap: 40px; }
@media (min-width: 860px) { .about-grid { grid-template-columns: 1.3fr 1fr; } }
.about-grid p { max-width: var(--read); }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; }
.facts li span:first-child { color: var(--muted); }
.facts li span:last-child { text-align: right; font-weight: 500; }

/* Contact */
.contact { background: var(--ink); color: var(--paper); }
.contact h2, .contact a { color: var(--paper); }
.contact .eyebrow { color: color-mix(in srgb, var(--paper) 70%, var(--teal)); }
.contact p { color: color-mix(in srgb, var(--paper) 75%, transparent); }
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1.2fr; } }
.form { display: grid; gap: 16px; }
.form label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; padding: 12px 14px; border-radius: 10px; min-height: 48px;
  border: 1px solid color-mix(in srgb, var(--paper) 30%, transparent);
  background: color-mix(in srgb, var(--paper) 8%, var(--ink)); color: var(--paper);
}
.form textarea { min-height: 140px; resize: vertical; }
.form .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); justify-self: start; }
.form .btn:hover { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.contact :focus-visible { outline-color: var(--paper); }
.form-row { display: grid; gap: 16px; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }

.site-footer { padding: 32px 0; font-size: 0.9rem; color: var(--muted); border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ===== Case study ===== */
.cs-hero { padding-top: 56px; padding-bottom: 48px; }
.cs-hero h1 { max-width: 20ch; font-size: clamp(2.2rem, 5vw, 3.8rem); }
.cs-hero .lede { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.crumb { font-size: 0.9rem; color: var(--muted); margin-bottom: 32px; display: inline-block; }
.snapshot { display: grid; gap: 0; grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin-top: 40px; }
.snapshot div { padding: 18px 20px; border-bottom: 1px solid var(--line); }
@media (min-width: 560px) { .snapshot { grid-template-columns: repeat(2, 1fr); } .snapshot div:nth-last-child(-n+2) { border-bottom: 0; } }
@media (min-width: 900px) { .snapshot { grid-template-columns: repeat(3, 1fr); } .snapshot div:nth-last-child(-n+3) { border-bottom: 0; } }
.snapshot dt { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.snapshot dd { margin: 0; font-weight: 500; }
.confid { font-size: 0.9rem; color: var(--muted); margin-top: 16px; }

.cs-layout { display: grid; gap: 48px; }
@media (min-width: 1000px) { .cs-layout { grid-template-columns: 220px 1fr; } }
.toc { position: sticky; top: 88px; align-self: start; font-size: 0.92rem; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; color: var(--muted); }
.toc a:hover, .toc a.active { color: var(--ink); border-left-color: var(--accent); }
@media (max-width: 999px) { .toc { display: none; } }

.cs-body > section { padding: 0 0 72px; }
.cs-body h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cs-body p, .cs-body ul, .cs-body ol { max-width: var(--read); }
.cs-body li { margin-bottom: 0.5em; }
.num-label { font-family: var(--font-display); color: var(--accent); font-size: 1rem; display: block; margin-bottom: 6px; }

.pull { font-family: var(--font-display); font-size: clamp(1.3rem, 2.5vw, 1.7rem); line-height: 1.35; border-left: 4px solid var(--accent); padding: 4px 0 4px 24px; margin: 32px 0; max-width: 36ch; }

.compare { display: grid; gap: 16px; margin: 28px 0; }
@media (min-width: 760px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare > div { border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); background: var(--card); }
.compare .label { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; margin-bottom: 10px; display: block; }
.compare .bad .label { color: var(--accent); }
.compare .good { border-color: var(--teal); }
.compare .good .label { color: var(--teal); }
.compare blockquote { margin: 0; font-size: 1.02rem; }

.steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 12px; max-width: none !important; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px 18px 64px; position: relative; margin: 0; }
.steps li::before { content: counter(s); position: absolute; left: 20px; top: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; }
.steps strong { display: block; }
.steps span { color: var(--muted); }

.table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.95rem; }
caption { text-align: left; padding: 14px 16px 0; font-weight: 600; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
tr:last-child td { border-bottom: 0; }

.ai-log { display: grid; gap: 16px; margin: 28px 0; }
.ai-step { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.ai-step header { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.ai-step header strong { font-size: 1.05rem; }
.ai-step .who { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--teal); }
.ai-step .cols { display: grid; }
@media (min-width: 760px) { .ai-step .cols { grid-template-columns: 1fr 1fr; } }
.ai-step .cols > div { padding: 18px 20px; }
.ai-step .cols > div + div { border-top: 1px solid var(--line); }
@media (min-width: 760px) { .ai-step .cols > div + div { border-top: 0; border-left: 1px solid var(--line); } }
.ai-step h4 { margin: 0 0 8px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.ai-step p { margin: 0; font-size: 0.97rem; }

.metrics { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 28px 0; }
.metric { border-top: 3px solid var(--accent); padding-top: 14px; }
.metric b { display: block; font-family: var(--font-display); font-size: 2.2rem; font-weight: 500; line-height: 1.1; }
.metric span { color: var(--muted); font-size: 0.95rem; }

/* Placeholder marks for facts only Talisa can supply. Remove before launch. */
.tk { background: var(--tk); color: var(--tk-ink); padding: 1px 6px; border-radius: 4px; font-weight: 500; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* Playable demo */
.demo { border: 2px solid var(--ink); border-radius: 18px; background: var(--card); margin: 32px 0; overflow: hidden; max-width: 820px; }
.demo-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px; background: var(--ink); color: var(--paper); font-size: 0.85rem; font-weight: 600; }
.demo-inner { padding: 24px; }
@media (min-width: 720px) { .demo-inner { padding: 32px; } }
.demo .customer { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px; }
.avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; }
.demo .customer blockquote { margin: 0; background: var(--paper); border-radius: 4px 14px 14px 14px; padding: 14px 16px; font-size: 1.05rem; }
.demo fieldset { border: 0; padding: 0; margin: 0; }
.demo legend { font-weight: 600; margin-bottom: 12px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; cursor: pointer; background: var(--card); }
.choice:hover { border-color: var(--ink); }
.choice input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--teal); flex: none; }
.choice:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice.correct { border-color: var(--teal); }
.choice.wrong, .choice.wrong:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.demo-feedback { margin-top: 16px; padding: 16px 18px; border-radius: 12px; border-left: 4px solid var(--teal); background: var(--teal-soft); }
.demo-feedback.miss { border-left-color: var(--accent); background: var(--accent-soft); }
.demo-feedback p:last-child { margin-bottom: 0; }
.demo-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

.next-cta { background: var(--teal-soft); border-radius: var(--radius); padding: 32px; display: grid; gap: 16px; }
@media (min-width: 760px) { .next-cta { grid-template-columns: 1fr auto; align-items: center; } }
.next-cta h3 { margin: 0 0 6px; }
.next-cta p { margin: 0; color: var(--muted); }

/* Multi-scene scenario with a prompt that builds as you answer */
:root { --g: #2f55e0; --c: #0b7a64; --s: #6d3ae8; --e: #b8450f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --g: #2b59d9; --c: #0d7259; --s: #6b45b5; --e: #c24a14; } }
:root[data-theme="dark"] { --g: #2b59d9; --c: #0d7259; --s: #6b45b5; --e: #c24a14; }

.scenario-setup { font-size: 1.05rem; margin-bottom: 20px; }
.prompt-build { background: var(--paper); border: 1px dashed var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 24px; }
.pb-label { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.prompt-build p { margin: 0; line-height: 1.9; }
.pb-part { border-bottom: 3px solid; padding-bottom: 1px; }
.pb-part[data-slot="goal"] { border-color: var(--g); }
.pb-part[data-slot="context"] { border-color: var(--c); }
.pb-part[data-slot="source"] { border-color: var(--s); }
.pb-part[data-slot="expect"] { border-color: var(--e); }
.pb-empty { color: var(--muted); font-style: italic; border-bottom-style: dotted; }
.gcse { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; color: var(--card); font-weight: 700; font-size: 0.9rem; margin-right: 6px; vertical-align: middle; }
.gcse.g { background: var(--g); } .gcse.c { background: var(--c); } .gcse.s { background: var(--s); } .gcse.e { background: var(--e); }
.scene legend:focus { outline: none; }
.scene-end h3 { margin-top: 0; }
.scene-end:focus { outline: none; }
.cs-body h3 { margin-top: 36px; }
.gcse-grid { display: grid; grid-template-columns: repeat(2, 64px); gap: 10px; }
.gcse-grid .gcse { width: 64px; height: 64px; font-size: 1.6rem; border-radius: 14px; margin: 0; font-family: var(--font-display); }

/* Course screenshots */
.shot { margin: 28px 0; }
.shot img { width: 100%; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.shot figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 8px; }
.shot.cover { margin-top: 40px; }
.shot.cover img { border-radius: var(--radius); }
.shot.narrow { max-width: 560px; }
.shot-pair { display: grid; gap: 16px; margin: 28px 0; }
.shot-pair .shot { margin: 0; }
@media (min-width: 760px) { .shot-pair { grid-template-columns: 1fr 1fr; } }
.shot-strip { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 24px 0 32px; }
.shot-strip .shot { margin: 0; }
.work-visual.has-img { padding: 0; }
.work-visual.has-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.work-visual.has-img .status { z-index: 1; }
.shot a.zoom { display: block; border-radius: 12px; cursor: zoom-in; }
.shot a.zoom:hover img { border-color: var(--accent); }

/* Video */
.video-fig { margin: 28px 0 12px; }
.video-fig video { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: block; }
.video-fig figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 8px; }
.transcript { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 0 18px; margin-bottom: 20px; max-width: var(--read); }
.transcript summary { cursor: pointer; font-weight: 600; padding: 14px 0; }
.transcript[open] { padding-bottom: 8px; }
.transcript p { font-size: 0.97rem; }
.video-tools { display: flex; justify-content: flex-end; margin-top: 10px; }
.cc-toggle { min-height: 40px; padding: 0 16px; font-size: 0.92rem; }
.cc-icon { font-size: 0.72rem; font-weight: 800; border: 2px solid currentColor; border-radius: 4px; padding: 0 4px; line-height: 1.4; }
.cc-toggle[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.cc-toggle[aria-pressed="true"]:hover { background: var(--accent); border-color: var(--accent); }

.feedback-summary { background: var(--teal-soft); border-radius: var(--radius); padding: 24px 28px; margin: 8px 0 24px; max-width: var(--read); }
.feedback-summary h3 { margin: 0 0 4px; }
.feedback-note { font-size: 0.88rem; color: var(--muted); margin-bottom: 12px; }
.feedback-summary ul { margin: 0; padding-left: 1.2em; }
.feedback-summary li::marker { color: var(--teal); }

/* How I work: process */
.process { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 760px) { .process { grid-template-columns: repeat(2, 1fr); } }
.process li { background: var(--card); padding: 28px; }
.process .num { display: block; font-family: var(--font-display); color: var(--accent); margin-bottom: 8px; }
.process p { color: var(--muted); margin: 0; }
.grounded { margin-top: 40px; }
.grounded h3 { font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.grounded .tags li { font-size: 0.88rem; color: var(--ink); background: var(--card); }
.ai-note { margin-top: 32px; padding: 24px 28px; border-radius: var(--radius); background: var(--teal-soft); max-width: 820px; }
.ai-note h3 { margin-top: 0; }
.ai-note p { margin: 0; }

/* =========================================================
   Vivid layer: light, playful-professional, animated
   ========================================================= */
body { -webkit-font-smoothing: antialiased; }
::selection { background: #ffd6ea; color: #17122b; }

/* Floating pill header */
.site-header { position: sticky; top: 12px; margin: 12px auto 0; width: calc(100% - 24px); max-width: 1180px; background: var(--glass); backdrop-filter: saturate(1.8) blur(16px); -webkit-backdrop-filter: saturate(1.8) blur(16px); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-sm); }
.site-header .wrap { flex-wrap: wrap; row-gap: 10px; padding: 10px 12px 10px 18px; max-width: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; }
.brand-text span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-mark { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #fff 0 12%, transparent 40%), conic-gradient(from 200deg, #ff3d9a, #8b3dff, #3d6bff, #ff3d9a); box-shadow: 0 4px 14px -4px rgba(139, 61, 255, .7); }
.theme-toggle { border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink); }

.tabs { position: relative; }
.tabs ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; position: relative; z-index: 1; }
.tabs a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 500; font-size: 0.9rem; text-decoration: none; white-space: nowrap; color: var(--muted); transition: color .25s ease; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: #fff; font-weight: 600; }
.tab-indicator { position: absolute; top: 0; left: 0; height: 100%; width: 0; background: linear-gradient(100deg, #c81f66, #6d3ae8 55%, #2f55e0); border-radius: 999px; box-shadow: 0 8px 20px -8px rgba(109, 58, 232, .8); transition: transform .45s cubic-bezier(.2,.9,.2,1), width .45s cubic-bezier(.2,.9,.2,1); z-index: 0; opacity: 0; }
.tab-indicator.ready { opacity: 1; }
@media (min-width: 1000px) { .tabs { margin-left: auto; } }
@media (max-width: 999px) {
  .tabs { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .site-header .theme-toggle { margin-left: auto; }
}

/* Views */
.js .view { display: none; }
.js .view.active { display: block; }
.view { padding: 56px 0 96px; position: relative; overflow-x: clip; }
@media (min-width: 720px) { .view { padding: 72px 0 120px; } }
.view h1:focus, .view h2:focus { outline: none; }

/* Soft glows behind sections */
.glow { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: -1; opacity: .55; }
.g1 { width: 520px; height: 520px; right: -120px; top: -60px; background: #ff7ab6; }
.g2 { width: 460px; height: 460px; left: -160px; top: 280px; background: #8fa6ff; }
.g3 { width: 520px; height: 520px; right: -200px; top: 40px; background: #c4a8ff; }
.view-home, #about { isolation: isolate; }
:root[data-theme="dark"] .glow { opacity: .28; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .glow { opacity: .28; } }
@media (prefers-reduced-motion: no-preference) {
  .g1 { animation: float-a 16s ease-in-out infinite alternate; }
  .g2 { animation: float-b 19s ease-in-out infinite alternate; }
}
@keyframes float-a { to { transform: translate(-80px, 60px) scale(1.1); } }
@keyframes float-b { to { transform: translate(90px, -40px) scale(.9); } }

/* Label pill */
.sticker { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); padding: 7px 14px; border-radius: 999px; background: var(--accent-soft); margin: 0 0 20px; }
.sticker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--grad-bright); }
@media (max-width: 480px) { .sticker { font-size: 0.68rem; letter-spacing: 0.04em; } }

.grad-text { background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-reduced-motion: no-preference) { .grad-text { animation: grad-shift 6s ease-in-out infinite alternate; } }
@keyframes grad-shift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* Buttons */
.btn { border-radius: 999px; border: 0; background: var(--ink); color: var(--paper); padding: 0 26px; transition: transform .25s ease, box-shadow .25s ease; position: relative; overflow: hidden; }
.btn::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, #c81f66, #6d3ae8 55%, #2f55e0); opacity: 0; transition: opacity .3s ease; }
.btn > * , .btn { z-index: 0; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: #fff; background: var(--ink); }
.btn:hover::before { opacity: 1; }
.btn { isolation: isolate; }
.btn::before { z-index: -1; }
.btn .arr { display: inline-block; transition: transform .25s ease; }
.btn:hover .arr { transform: translateX(5px); }
.btn.ghost { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost::before { display: none; }
.btn.ghost:hover { color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1.5px var(--accent), var(--shadow-sm); }

/* Hero */
.hero { display: grid; gap: 40px; align-items: center; padding: 0; }
@media (min-width: 960px) { .hero { grid-template-columns: 1.2fr 1fr; } }
.hero h1 { max-width: 12ch; text-wrap: balance; }
.hero .lede { font-size: clamp(1.02rem, 1.6vw, 1.15rem); color: var(--muted); max-width: 54ch; margin-bottom: 2rem; }

/* Code-only orb visual */
.orb-stage { position: relative; height: 420px; display: grid; place-items: center; }
@media (max-width: 959px) { .orb-stage { height: 340px; } }
.orb { width: 260px; height: 260px; border-radius: 50%; position: relative;
  background:
    radial-gradient(circle at 70% 78%, rgba(61, 107, 255, .95), transparent 55%),
    radial-gradient(circle at 26% 70%, rgba(255, 61, 154, .9), transparent 55%),
    radial-gradient(circle at 60% 25%, rgba(139, 61, 255, .95), transparent 60%),
    #8b3dff;
  box-shadow: inset -24px -32px 60px rgba(40, 10, 90, .45), inset 18px 22px 40px rgba(255, 255, 255, .35), 0 50px 100px -30px rgba(139, 61, 255, .75); }
.orb::after { content: ""; position: absolute; left: 22%; top: 14%; width: 34%; height: 22%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .85), transparent); transform: rotate(-24deg); }
.orb-ring { position: absolute; width: 380px; height: 380px; border-radius: 50%; border: 1.5px solid transparent; background: conic-gradient(from 0deg, #ff3d9a, transparent 30%, #3d6bff 55%, transparent 80%, #ff3d9a) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .6; }
.orb-ring.r2 { width: 320px; height: 320px; opacity: .35; }
.mini-orb { position: absolute; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff 0 10%, transparent 40%), linear-gradient(135deg, #ff3d9a, #8b3dff); box-shadow: 0 10px 24px -8px rgba(139, 61, 255, .7); }
.mini-orb.m1 { width: 38px; height: 38px; left: 12%; top: 18%; }
.mini-orb.m2 { width: 22px; height: 22px; right: 16%; top: 12%; background: radial-gradient(circle at 30% 30%, #fff 0 10%, transparent 40%), linear-gradient(135deg, #3d6bff, #22c3a6); }
.mini-orb.m3 { width: 28px; height: 28px; right: 10%; bottom: 20%; background: radial-gradient(circle at 30% 30%, #fff 0 10%, transparent 40%), linear-gradient(135deg, #ffb13d, #ff3d9a); }
.orb-chip { position: absolute; display: inline-flex; gap: 8px; align-items: center; padding: 9px 14px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); font-weight: 600; font-size: .88rem; box-shadow: var(--shadow-lg); }
.orb-chip b { font-size: .75rem; color: var(--accent); }
.orb-chip.c1 { left: 2%; top: 30%; } .orb-chip.c2 { right: 0; top: 36%; } .orb-chip.c3 { left: 8%; bottom: 14%; } .orb-chip.c4 { right: 8%; bottom: 6%; }
@media (prefers-reduced-motion: no-preference) {
  .orb { animation: orb-breathe 7s ease-in-out infinite; }
  .orb-ring.r1 { animation: spin 18s linear infinite; }
  .orb-ring.r2 { animation: spin 26s linear infinite reverse; }
  .mini-orb.m1 { animation: bob 5s ease-in-out infinite; }
  .mini-orb.m2 { animation: bob 6s ease-in-out infinite -2s; }
  .mini-orb.m3 { animation: bob 7s ease-in-out infinite -4s; }
  .orb-chip { animation: chip-in .8s cubic-bezier(.2,.9,.2,1) both, bob 6s ease-in-out infinite; }
  .orb-chip.c1 { animation-delay: .5s, 1.3s; } .orb-chip.c2 { animation-delay: .7s, 2.2s; } .orb-chip.c3 { animation-delay: .9s, 3.1s; } .orb-chip.c4 { animation-delay: 1.1s, 4s; }
}
@keyframes orb-breathe { 0%, 100% { transform: scale(1); filter: hue-rotate(0deg); } 50% { transform: scale(1.05); filter: hue-rotate(-18deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes chip-in { from { opacity: 0; transform: translateY(16px) scale(.9); } to { opacity: 1; transform: none; } }

/* Hero entrance */
@media (prefers-reduced-motion: no-preference) {
  .view.active .hero-copy > * { animation: rise .8s cubic-bezier(.2,.9,.2,1) both; }
  .view.active .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .view.active .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .view.active .hero-copy > :nth-child(4) { animation-delay: .24s; }
  .view.active .orb-stage { animation: rise 1s cubic-bezier(.2,.9,.2,1) both .1s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Marquee */
.marquee { margin: 56px 0 8px; padding: 18px 0; border-block: 1px solid var(--line); background: color-mix(in srgb, var(--card) 70%, transparent); overflow: hidden; }
.marquee-row { display: flex; width: max-content; }
.marquee-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 44px; padding-right: 44px; }
.marquee-list li { font-weight: 600; font-size: 1.05rem; white-space: nowrap; color: var(--muted); display: inline-flex; align-items: center; gap: 44px; }
.marquee-list li::after { content: "✦"; color: #c81f66; font-size: .8rem; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-row { animation: marquee 38s linear infinite; }
  .marquee:hover .marquee-row { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) { .marquee-list { flex-wrap: wrap; justify-content: center; padding: 0 16px; gap: 12px 28px; } .marquee-list li { gap: 28px; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Stats */
.chips { list-style: none; padding: 0; margin: 48px 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.chips li { padding: 20px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: .88rem; box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease; }
.chips li:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.chips strong { display: block; font-size: 1.1rem; color: var(--ink); margin-bottom: 4px; }

/* Rotating words panel */
.rotator-panel { border-radius: 28px; padding: 44px 32px; margin: 0 0 48px; text-align: center; color: #fff; background: linear-gradient(120deg, #c81f66, #6d3ae8 50%, #2f55e0); position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.rotator-panel::before { content: ""; position: absolute; width: 420px; height: 420px; left: -120px; top: -220px; background: radial-gradient(closest-side, rgba(255, 255, 255, .35), transparent); }
.rotator { position: relative; margin: 0; font-size: clamp(1.4rem, 3.6vw, 2.4rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.rot { display: inline-grid; vertical-align: bottom; height: 1.25em; overflow: hidden; text-align: left; }
.rot b { grid-area: 1 / 1; font-weight: 800; color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .5); text-underline-offset: 6px; text-decoration-thickness: 3px; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .rot b { animation: rot-word 10s infinite; }
  .rot b:nth-child(2) { animation-delay: 2.5s; } .rot b:nth-child(3) { animation-delay: 5s; } .rot b:nth-child(4) { animation-delay: 7.5s; }
}
@keyframes rot-word { 0% { opacity: 0; transform: translateY(100%); } 4%, 22% { opacity: 1; transform: none; } 26%, 100% { opacity: 0; transform: translateY(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .rot { display: inline; height: auto; }
  .rot b { opacity: 1; display: inline; }
  .rot b:not(:last-child)::after { content: ", "; }
  .rot b:last-child::before { content: "and "; font-weight: 700; }
}

/* Featured case study */
.feature { display: grid; text-decoration: none; background: var(--card); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); transition: transform .35s cubic-bezier(.2,.9,.2,1), box-shadow .35s ease; }
.feature:hover { transform: translateY(-6px); color: inherit; }
@media (min-width: 860px) { .feature { grid-template-columns: 1.15fr 1fr; } }
.feature-img { overflow: hidden; }
.feature img { width: 100%; height: 100%; object-fit: cover; min-height: 240px; transition: transform .8s cubic-bezier(.2,.9,.2,1); }
.feature:hover img { transform: scale(1.06); }
.feature-body { padding: 36px; display: flex; flex-direction: column; justify-content: center; }
.feature-body p { color: var(--muted); }
.feature-body .sticker { align-self: flex-start; }

/* Section heads */
.section-head h2 { text-wrap: balance; }

/* Work */
.work-card { border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow-sm); transition: transform .35s cubic-bezier(.2,.9,.2,1), box-shadow .35s ease; }
.work-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--line); }
.work-card.flip:hover { transform: none; box-shadow: var(--shadow-sm); }
.work-visual { overflow: hidden; }
.work-visual.has-img img { transition: transform .8s cubic-bezier(.2,.9,.2,1); }
.work-card:hover .work-visual.has-img img { transform: scale(1.06); }
.work-visual.v-campus { background: radial-gradient(circle at 20% 20%, #ffd3e6, transparent 60%), radial-gradient(circle at 80% 80%, #ffe0c8, transparent 60%), #fff4ec; }
.work-visual.v-branch { background: radial-gradient(circle at 80% 20%, #dcd0ff, transparent 60%), radial-gradient(circle at 20% 80%, #d3ddff, transparent 60%), #f5f2ff; }
:root[data-theme="dark"] .work-visual.v-campus, :root[data-theme="dark"] .work-visual.v-branch { background: var(--card); }
.work-link { color: var(--accent); font-weight: 600; }
.status { border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(8px); color: var(--ink); }
.mock { border: 1px solid var(--line); box-shadow: var(--shadow-lg); border-radius: 18px; }
.mock .bubble.me { background: linear-gradient(100deg, #c81f66, #6d3ae8); color: #fff; }
.tags li { border: 1px solid var(--line); background: var(--card); font-weight: 500; }
.tags li.ai { color: var(--teal); border-color: color-mix(in srgb, var(--teal) 40%, var(--line)); }
.more-work h3 { font-family: var(--font-body); }
.mini { border: 1px solid var(--line); border-radius: 20px; transition: transform .3s ease, box-shadow .3s ease; }
.mini:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line); }
.mini strong::after { content: " →"; color: var(--accent); }

/* How I work: scroll story */
.story { margin: 8px 0 56px; }
.story-bar { height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; margin-bottom: 28px; }
.story-bar span { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, #c81f66, #6d3ae8, #2f55e0); }
.story-track { list-style: none; margin: 0; padding: 0 16px; display: grid; gap: 20px; max-width: 1120px; margin-inline: auto; }
.story-step { display: grid; gap: 28px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 32px; padding: 32px; box-shadow: var(--shadow-sm); }
@media (min-width: 860px) { .story-step { grid-template-columns: 0.9fr 1.1fr; padding: 48px; } }
.story-art { position: relative; height: 240px; display: grid; place-items: center; }
.story-orb { position: absolute; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle at 30% 26%, rgba(255, 255, 255, .9) 0 8%, transparent 35%), var(--so); box-shadow: inset -20px -28px 50px rgba(20, 10, 60, .35), 0 40px 80px -30px var(--so-glow); }
.story-num { position: relative; font-size: 4.5rem; font-weight: 800; color: #fff; letter-spacing: -0.04em; text-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.st-blue { --so: linear-gradient(135deg, #5b7bff, #2f55e0); --so-glow: rgba(47, 85, 224, .7); --k: var(--blue); }
.st-pink { --so: linear-gradient(135deg, #ff5ca8, #c81f66); --so-glow: rgba(200, 31, 102, .7); --k: var(--pink); }
.st-violet { --so: linear-gradient(135deg, #a57bff, #6d3ae8); --so-glow: rgba(109, 58, 232, .7); --k: var(--purple); }
.st-orange { --so: linear-gradient(135deg, #ffa05c, #d4541a); --so-glow: rgba(212, 84, 26, .7); --k: var(--orange); }
.kicker { font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--k); margin-bottom: 8px; }
.story-text h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.story-text p:last-child { color: var(--muted); font-size: 1.02rem; margin: 0; }
@media (prefers-reduced-motion: no-preference) { .story-orb { animation: orb-breathe 7s ease-in-out infinite; } }

/* Pinned horizontal mode, enabled by JS on wide screens with motion allowed */
.story.pinned { height: var(--story-h, 400vh); }
.story.pinned .story-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.story.pinned .story-track { display: flex; gap: 0; padding: 0; max-width: none; width: max-content; will-change: transform; }
.story.pinned .story-step { width: min(1060px, calc(100vw - 64px)); margin: 0 max(32px, calc((100vw - 1060px) / 2)); flex: none; }
.story.pinned .story-step + .story-step { margin-left: 0; }

.grounded h3 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.ai-note { background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.ai-note::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(180deg, #c81f66, #6d3ae8, #2f55e0); }

/* Services: stacking cards */
.stack { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.stack-card { position: sticky; top: calc(110px + var(--i) * 18px); min-height: 260px; border-radius: 32px; padding: 40px; color: #fff; overflow: hidden; box-shadow: 0 -12px 40px -20px rgba(20, 10, 60, .35), var(--shadow-lg); display: flex; flex-direction: column; justify-content: flex-end; }
@media (min-width: 860px) { .stack-card { padding: 48px 56px; min-height: 300px; } }
.stack-card h3 { font-size: clamp(1.5rem, 3vw, 2.3rem); max-width: 18ch; margin-bottom: 12px; position: relative; }
.stack-card p { max-width: 52ch; margin: 0; opacity: .95; position: relative; font-size: 1.02rem; }
.stack-card .num { position: absolute; top: 32px; left: 40px; font-weight: 700; font-size: .9rem; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .18); }
@media (min-width: 860px) { .stack-card .num { left: 56px; top: 40px; } }
.stack-orb { position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .55) 0 8%, rgba(255, 255, 255, .12) 45%, transparent 70%); }
.sc-blue { background: linear-gradient(135deg, #2f55e0, #1c3aa6); }
.sc-pink { background: linear-gradient(135deg, #c81f66, #9a1450); }
.sc-violet { background: linear-gradient(135deg, #6d3ae8, #4a20b8); }
.sc-orange { background: linear-gradient(135deg, #b8450f, #8f3208); }
.sc-teal { background: linear-gradient(135deg, #0b7a64, #065a49); }
.sc-ink { background: linear-gradient(135deg, #2a2150, #120e25); }
@media (max-width: 719px) { .stack-card { position: relative; top: auto; } }

/* About */
.facts { border: 1px solid var(--line); border-radius: 28px; padding: 8px 24px; background: var(--card); box-shadow: var(--shadow-lg); }
.facts li:last-child { border-bottom: 0; }

/* Contact */
.contact { background: linear-gradient(130deg, #2a1466 0%, #5b21b6 50%, #9d174d 100%); color: #fff; overflow: hidden; }
.contact::before { content: ""; position: absolute; width: 640px; height: 640px; right: -200px; top: -300px; background: radial-gradient(closest-side, rgba(255, 122, 182, .45), transparent); pointer-events: none; }
.contact h2, .contact a { color: #fff; }
.contact p { color: rgba(255, 255, 255, .88); }
.contact .sticker { background: rgba(255, 255, 255, .14); color: #fff; }
.contact .wrap { position: relative; }
.form input, .form select, .form textarea { border-radius: 14px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .35); color: #fff; }
.form select option { color: #17122b; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .2); outline: none; }
.form .btn { background: #fff; color: #17122b; }
.form .btn::before { display: none; }
.form .btn:hover { background: #fff; color: #17122b; }
.contact :focus-visible { outline-color: #fff; }

/* Floating call to action */
.float-cta { position: fixed; left: 50%; bottom: 20px; z-index: 40; transform: translate(-50%, 0); display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 1.02rem; color: #fff; text-decoration: none; background: linear-gradient(100deg, #c81f66, #6d3ae8); box-shadow: 0 18px 40px -12px rgba(200, 31, 102, .65); transition: transform .35s cubic-bezier(.2,.9,.2,1), opacity .3s ease, box-shadow .3s ease; }
.float-cta:hover { color: #fff; transform: translate(-50%, -3px); box-shadow: 0 24px 50px -12px rgba(200, 31, 102, .8); }
.float-cta.hide { opacity: 0; pointer-events: none; transform: translate(-50%, 24px); }
.float-cta:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-bottom: 96px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.9,.2,1), transform .8s cubic-bezier(.2,.9,.2,1); transition-delay: calc(var(--ri, 0) * 80ms); }
.reveal.in { opacity: 1; transform: none; }

/* Case study in the new style */
.num-label { font-weight: 700; font-size: .8rem; letter-spacing: .08em; color: var(--accent); }
.demo { border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow-lg); }
.demo-bar { background: linear-gradient(100deg, #2a1466, #5b21b6); }
.snapshot { border-radius: 24px; box-shadow: var(--shadow-sm); }
.pull { border-left: 4px solid #c81f66; font-weight: 600; }
.metric { border-top: 3px solid; border-image: linear-gradient(90deg, #c81f66, #6d3ae8) 1; }
.metric b { font-weight: 800; }
.shot img { border-radius: 16px; box-shadow: var(--shadow-sm); }
.cs-hero .shot.cover img { box-shadow: var(--shadow-lg); }
.feedback-summary { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); border-radius: 24px; }
.cs-hero h1 { max-width: 20ch; }
.toc { top: 110px; }
.compare > div, .ai-step, .table-wrap, .transcript { border-radius: 20px; }
.float-cta { white-space: nowrap; }
@media (max-width: 480px) { .float-cta { padding: 12px 22px; font-size: .95rem; } .orb-stage { transform: scale(.85); } }
.embed-placeholder { border: 2px dashed var(--line); border-radius: 24px; min-height: 260px; display: grid; place-items: center; padding: 24px; text-align: center; background: var(--card); }
.cs-hero .crumb { display: table; margin-bottom: 20px; }
.course-embed { margin: 28px 0; }
.course-frame { position: relative; aspect-ratio: 16 / 10; border-radius: 24px; overflow: hidden; background: #0a0f2e; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.course-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.course-embed figcaption { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin-top: 14px; font-size: .92rem; color: var(--muted); }
.course-embed figcaption span:first-child { max-width: 52ch; }
@media (max-width: 719px) { .course-frame { aspect-ratio: 3 / 4; } }
.cs-layout > * { min-width: 0; }
.course-start { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #0a0f2e; display: grid; place-items: center; font: inherit; color: #fff; }
.course-start img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; filter: saturate(.8); transition: opacity .3s ease, transform .6s cubic-bezier(.2,.9,.2,1); }
.course-start:hover img, .course-start:focus-visible img { opacity: .2; transform: scale(1.03); }
.course-play { position: relative; display: grid; justify-items: center; gap: 10px; text-align: center; }
.play-icon { width: 84px; height: 84px; border-radius: 50%; background: linear-gradient(120deg, #c81f66, #6d3ae8); box-shadow: 0 18px 40px -12px rgba(200, 31, 102, .7); position: relative; transition: transform .3s ease; }
.play-icon::after { content: ""; position: absolute; left: 34px; top: 26px; border-style: solid; border-width: 16px 0 16px 26px; border-color: transparent transparent transparent #fff; }
.course-start:hover .play-icon { transform: scale(1.08); }
.play-text { font-weight: 700; font-size: 1.3rem; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.play-note { font-size: .88rem; opacity: .9; background: rgba(0, 0, 0, .45); padding: 4px 12px; border-radius: 999px; }
.course-start:focus-visible { outline: 4px solid #fff; outline-offset: -8px; }
.about-side { display: grid; gap: 24px; align-content: start; }
.portrait { margin: 0; position: relative; border-radius: 28px; padding: 6px; background: linear-gradient(135deg, #ff3d9a, #8b3dff 50%, #3d6bff); box-shadow: var(--shadow-lg); max-width: 420px; }
.portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 22px; display: block; }
@media (prefers-reduced-motion: no-preference) { .portrait { transition: transform .4s cubic-bezier(.2,.9,.2,1); } .portrait:hover { transform: rotate(-1.5deg) translateY(-4px); } }
@media (max-width: 859px) {
  .about-side { display: contents; }
  .about-side .portrait { order: -1; max-width: 300px; }
  .about-side .facts { order: 2; }
}

/* About: balanced laptop layout (photo left, text and facts right) */
@media (min-width: 860px) {
  .about-grid { grid-template-columns: minmax(280px, 0.85fr) 1.4fr; grid-template-areas: "photo text" "photo facts"; column-gap: 64px; row-gap: 32px; align-items: start; }
  .about-side { display: contents; }
  .about-grid > div:first-child { grid-area: text; }
  .about-side .portrait { grid-area: photo; position: sticky; top: 120px; max-width: none; }
  .about-side .facts { grid-area: facts; display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; padding: 12px 24px; }
  .about-side .facts li { flex-direction: column; justify-content: flex-start; gap: 2px; padding: 12px 0; }
  .about-side .facts li span:last-child { text-align: left; }
  .about-side .facts li:nth-last-child(-n+2) { border-bottom: 0; }
  .about-side .facts li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Laptop polish: content starts higher, less dead space above section heads */
@media (min-width: 720px) { .view { padding-top: 56px; } }
.section-head { margin-bottom: 36px; }
.section-head h2 { max-width: 22ch; }

/* How I work: photo beside the intro */
.approach-head { display: grid; gap: 32px; align-items: center; margin-bottom: 36px; }
.approach-head .section-head { margin-bottom: 0; }
.work-photo { margin: 0; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; max-width: 560px; }
.work-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%; }
@media (min-width: 960px) { .approach-head { grid-template-columns: 1.1fr 1fr; gap: 56px; } .work-photo { justify-self: end; width: 100%; } }
@media (prefers-reduced-motion: no-preference) { .work-photo img { transition: transform .8s cubic-bezier(.2,.9,.2,1); } .work-photo:hover img { transform: scale(1.04); } }

/* Contact: friendly headshot */
.contact-me { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.headshot { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255, 255, 255, .85); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); flex: none; }
.contact-me strong { display: block; color: #fff; font-size: 1.05rem; }
.contact-me span { color: rgba(255, 255, 255, .85); font-size: .92rem; }
.story.pinned .story-sticky { justify-content: flex-start; padding-top: 118px; }

/* Testimonials */
.testimonials { padding: 0; margin: 8px 0 56px; }
.testimonials h2 { margin-bottom: 28px; }
.quote-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
@media (min-width: 860px) { .quote-grid { grid-template-columns: 1fr 1fr; } }
.quote { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 30px 30px 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; overflow: hidden; transition: transform .35s cubic-bezier(.2,.9,.2,1), box-shadow .35s ease; }
.quote:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.quote::before { content: "\201C"; position: absolute; top: -18px; right: 20px; font-size: 7rem; font-weight: 800; line-height: 1; color: var(--q); opacity: .14; pointer-events: none; }
.quote::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--q); }
.quote blockquote { margin: 0 0 20px; flex: 1; }
.quote blockquote p { margin: 0; font-size: 1.02rem; line-height: 1.7; }
.quote-by { margin: 0; display: flex; flex-direction: column; }
.quote-by strong { font-size: .95rem; }
.quote-by span { font-size: .85rem; color: var(--muted); }
.q-blue { --q: var(--blue); } .q-pink { --q: var(--pink); } .q-violet { --q: var(--purple); } .q-orange { --q: var(--orange); }

/* Quick wins: availability badge + recent work thumbnails in hero */
.availability { display: inline-flex; align-items: center; gap: 10px; margin: -0.4rem 0 1.6rem; font-size: .9rem; font-weight: 600; color: var(--teal); background: var(--teal-soft); padding: 6px 14px; border-radius: 999px; }
.availability .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 color-mix(in srgb, var(--teal) 60%, transparent); }
@media (prefers-reduced-motion: no-preference) { .availability .dot { animation: pulse 2.2s ease-out infinite; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--teal) 55%, transparent); } 100% { box-shadow: 0 0 0 9px transparent; } }
.hero-work { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; }
.hero-work-label { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.hero-work a { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease; }
.hero-work a:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--ink); }
.hero-work img { width: 64px; height: 40px; object-fit: cover; border-radius: 10px; }
.hero-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 20px; }
.hero-tags .sticker, .hero-tags .availability { margin: 0; }
@media (min-width: 960px) { .hero { align-items: start; } .orb-stage { margin-top: 10px; } }
@media (min-width: 960px) and (max-height: 860px) { .hero h1 { font-size: 3.6rem; } .hero .lede { margin-bottom: 1.4rem; } .hero-work { margin-top: 18px; } .orb-stage { height: 380px; } }
.ai-step-title { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; margin: 0; letter-spacing: 0; }

/* Downloads */
.samples { margin-top: 48px; }
.samples h3 { font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.sample-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.sample { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 22px 22px 18px 84px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease; }
.sample:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink); }
.sample strong { font-size: 1.05rem; }
.sample span:not(.dl-icon) { color: var(--muted); font-size: .9rem; }
.sample em { font-style: normal; font-size: .8rem; font-weight: 600; color: var(--accent); margin-top: 6px; }
.dl-icon { position: absolute; left: 22px; top: 22px; width: 46px; height: 56px; border-radius: 8px; background: linear-gradient(160deg, #c81f66, #6d3ae8); color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: end center; padding-bottom: 8px; box-shadow: 0 10px 20px -10px rgba(109, 58, 232, .8); }
.dl-icon::before { content: ""; position: absolute; top: 0; right: 0; width: 14px; height: 14px; background: rgba(255, 255, 255, .35); border-bottom-left-radius: 6px; }
.resume-btns, .cs-downloads { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 8px; }
