:root {
  --ink: #17111a;
  --ink-2: #43384a;
  --muted: #625767;
  --paper: #f8eff5;
  --paper-2: #f9d9ec;
  --plum: #c4107f;
  --plum-soft: #fde4f2;
  --lilac: #ff8fd6;
  --tt-blue: #009fd9;
  --line: #f0cde3;
  --night: #141016;
  --night-2: #221a25;
  --night-line: #46344b;
  --card: #fff;
  --plum-bg: #b80f74;
  --blob: linear-gradient(135deg, #ff4fb8 0%, #ff4fb8 35%, #d6dae2 100%);
  --on-night-muted: #d7cbd9;
  --on-night-accent: #ff6fcf;
  --on-plum-bg: #ffe6f4;
  --glow: rgba(255, 79, 184, .35);
  --radius: 20px;
  --serif: "Montserrat", system-ui, sans-serif;
  --sans: "Montserrat", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 11; background: var(--paper); }
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .01em; color: var(--plum); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
h2 { font-size: clamp(30px, 3.4vw, 42px); }
em { font-style: italic; color: var(--plum); }

/* Nav */
nav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--moodbar-h, 0px)); z-index: 10; background: color-mix(in srgb, var(--paper) 85%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; }
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font: 500 20px var(--serif); text-decoration: none; }
.logo span { color: var(--plum); }
.logo-cursor { display: inline-block; width: 2px; height: .95em; margin: 0 .22em; vertical-align: -.12em; background: var(--plum); animation: blink 1.1s steps(1) infinite; }
@media (prefers-reduced-motion: reduce) { .logo-cursor { animation: none; } }
nav ul { display: flex; gap: 28px; list-style: none; font-size: 15px; }
nav ul a { text-decoration: none; color: var(--ink-2); }
nav ul a:hover { color: var(--plum); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font: 500 15px var(--sans); text-decoration: none; transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--plum); }
.btn-ghost { border: 1px solid var(--line); background: var(--card); }
.btn-light { background: #fff; color: #1c1530; }
.btn-light:hover { background: var(--plum-soft); }
nav .btn { padding: 9px 18px; font-size: 14px; }

/* Hero */
.hero { padding: 40px 0 36px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1fr auto; column-gap: 56px; align-items: center; }
.hero .status, .hero h1 { grid-column: 1 / -1; }
.hero h1 { text-wrap: balance; max-width: 32ch; }
.status { display: inline-flex; align-items: center; gap: 10px; font: 500 14px var(--sans); color: var(--ink-2); margin-bottom: 28px; }
.status .dot { width: 22px; height: 22px; border-radius: 50%; background: #0077a8; color: #fff; display: grid; place-items: center; font: 700 12px var(--sans); }
.hero h1 { font-size: clamp(34px, 4.1vw, 56px); margin-bottom: 24px; }
.hero h1 em { font-weight: 300; }
.hero p.lede { font-size: 20px; color: var(--ink-2); max-width: 46ch; margin-bottom: 28px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.portrait { position: relative; width: 300px; max-width: 100%; aspect-ratio: 4/5; }
.portrait .blob { position: absolute; inset: 6% -6% -4% 8%; background: var(--blob); border-radius: 46% 54% 40% 60% / 55% 45% 55% 45%; }
.portrait .photo { position: absolute; inset: 0 10% 8% 0; border-radius: 200px 200px 24px 24px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(28,21,48,.45); }
.portrait .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }

/* Journey strip */
.journey { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.journey .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-block: 20px; font-family: var(--serif); font-size: 19px; color: var(--ink-2); }
.journey .sep { color: var(--lilac); }

/* Approach */
.approach { padding: 112px 0; }
.approach .top { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 56px; flex-wrap: wrap; }
.approach .top p { max-width: 42ch; color: var(--ink-2); font-size: 20px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); position: relative; }
.step::before { counter-increment: s; content: "0" counter(s); font: 300 48px var(--serif); color: var(--plum-soft); -webkit-text-stroke: 1px var(--lilac); display: block; margin-bottom: 18px; }
.step h3 { font-size: 24px; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--ink-2); }

/* Quotes */
.quotes { background: var(--plum-bg); color: #fff; padding: 112px 0; }
.quotes .eyebrow { color: #cdb8ec; }
.q-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 40px; }
blockquote p { font: 300 clamp(24px, 2.6vw, 32px)/1.3 var(--serif); letter-spacing: -.01em; }
blockquote p::before { content: "“"; display: block; font-size: 80px; line-height: .6; color: var(--lilac); margin-bottom: 12px; }
blockquote cite { display: block; margin-top: 20px; font-style: normal; font-size: 15px; color: #ddd0ef; }
blockquote cite b { color: #fff; font-weight: 500; }

/* Logos */
.logos { padding: 28px 0 40px; overflow: hidden; }
.logos .eyebrow { text-align: center; display: block; margin-bottom: 22px; color: var(--muted); }
/* One row of logos. Each logo's share of the row follows its shape, so wide and square logos look about the same size. */
.marquee { display: flex; flex-wrap: nowrap; justify-content: center; align-items: center; gap: clamp(12px, 2vw, 28px); padding-inline: max(24px, env(safe-area-inset-left, 0px)); max-width: 1180px; margin-inline: auto; }
.marquee img { flex: var(--s) 1 0; min-width: 0; max-width: calc(var(--s) * 52px); height: auto; object-fit: contain; mix-blend-mode: multiply; }
@media (max-width: 760px) {
  .marquee { flex-wrap: wrap; gap: 18px 26px; padding-inline: 16px; }
  .marquee img { flex: none; width: calc(var(--s) * 34px); max-width: none; }
}

/* Leadership + contact */
.lead { padding: 112px 0; }
.lead .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.lead h2 { margin-top: 16px; }
.lead p { color: var(--ink-2); margin-bottom: 18px; font-size: 19px; }
.lead .bear { font: italic 300 22px/1.45 var(--serif); color: var(--ink); border-left: 2px solid var(--lilac); padding-left: 22px; margin-top: 28px; }
.lead .bear small { display: block; margin-top: 10px; font: normal 14px var(--sans); color: var(--muted); }

footer { background: var(--night); color: #f1ecfa; padding: 96px 0 40px; }
footer h2 { font-size: clamp(44px, 7vw, 88px); margin-bottom: 32px; }
footer h2 em { color: var(--lilac); }
footer .row2 { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 80px; padding-top: 28px; border-top: 1px solid var(--night-line); font-size: 14px; color: #8f86ab; }
footer .social { display: flex; gap: 20px; }
footer .social a { text-decoration: none; color: #cfc8e2; }
footer .social a:hover { color: #fff; }

/* Reveal */
/* Content is visible at rest; JS only adds a gentle lift for sections below the fold */
.reveal.pre { transform: translateY(16px); }
.reveal { transition: transform .8s ease; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.pre { transform: none; transition: none; }
  .caret { animation: none; }
}
@media (max-width: 960px) {
  /* Menu drops to its own scrollable row under the logo */
  nav .wrap { flex-wrap: wrap; height: auto; padding-top: 12px; }
  nav ul { order: 3; width: 100%; gap: 22px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; white-space: nowrap; }
  .hero .wrap, .lead .wrap, .q-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .portrait { width: 220px; margin-top: 32px; }
  .steps, .timeline { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .steps, .timeline { grid-template-columns: 1fr; }
  .schema { grid-template-columns: 1fr; }
  .link { width: 1px; height: 16px; justify-self: center; background: linear-gradient(#5a4a87, var(--tt-blue)); }
  .link::after { display: none; }
  .approach, .quotes, .lead { padding: 80px 0; }
}

/* ============ Inner pages ============ */
nav ul a[aria-current="page"] { color: var(--plum); font-weight: 500; }
.page-head { padding-block: 72px 48px; }
.page-head h1 { font-size: clamp(44px, 6.5vw, 84px); margin-top: 16px; text-wrap: balance; }
.page-head p { font-size: 20px; color: var(--ink-2); max-width: 46ch; margin-top: 20px; }
.page-body { padding-bottom: 112px; }
.section-title { font-size: clamp(28px, 3.4vw, 40px); margin: 72px 0 28px; }
.section-title:first-child { margin-top: 0; }

/* Podcast + writing cards */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.media-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform .25s, box-shadow .25s; min-width: 0; }
.media-card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(28,21,48,.45); }
.media-card .thumb { aspect-ratio: 16 / 10; max-width: 100%; background: var(--paper-2); overflow: hidden; }
.media-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-card .body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.media-card .kicker { font: 500 11.5px var(--mono); letter-spacing: .01em; color: var(--muted); }
.media-card h3 { font-size: 24px; line-height: 1.15; text-wrap: balance; }
.media-card p { font-size: 15px; color: var(--ink-2); }
.media-card ul { list-style: none; font-size: 15px; color: var(--ink-2); display: grid; gap: 4px; }
.media-card ul li::before { content: "· "; color: var(--lilac); }
.media-card .go { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 500; color: var(--plum); }
button.media-card { font: inherit; color: inherit; text-align: left; padding: 0; width: 100%; cursor: pointer; }
.note-dialog { margin: auto; max-width: 460px; width: calc(100% - 32px); padding: 32px; border: 0; border-radius: var(--radius); background: var(--card); color: var(--ink); box-shadow: 0 30px 60px -30px rgba(28,21,48,.55); }
.note-dialog::backdrop { background: rgba(20,16,22,.55); }
.note-face { display: block; width: 88px; height: 88px; margin-bottom: 16px; }
.note-face .head { transform-box: fill-box; transform-origin: 50% 95%; animation: headbob 5s ease-in-out infinite; }
.note-face .eyes { transform-box: fill-box; transform-origin: center; animation: eyeblink 4.6s infinite; }
@media (prefers-reduced-motion: reduce) { .note-face .head, .note-face .eyes { animation: none; } }
.note-dialog h2 { font-size: 26px; line-height: 1.2; }
.note-dialog p { margin-top: 12px; color: var(--ink-2); }
.note-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.note-actions button { cursor: pointer; }
.media-card.feature { grid-column: 1 / -1; flex-direction: row; }
.media-card.feature .thumb { flex: 1.1; aspect-ratio: auto; min-height: 320px; }
.media-card.feature .body { flex: 1; padding: 40px; justify-content: center; }
.media-card.feature h3 { font-size: clamp(28px, 3vw, 38px); }
.media-card.feature p { font-size: 17px; }

/* Reviews */
.long-reviews { display: grid; gap: 24px; }
.long-review { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding: 40px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.long-review .who b { display: block; font: 400 24px/1.2 var(--serif); margin-bottom: 6px; }
.long-review .who span { font-size: 14px; color: var(--muted); }
.long-review .who a { display: inline-block; margin-top: 12px; font-size: 14px; color: var(--plum); }
.long-review .words { display: grid; gap: 14px; color: var(--ink-2); min-width: 0; }
.chats { columns: 3 280px; column-gap: 20px; }
.chat { break-inside: avoid; margin-bottom: 20px; padding: 24px; border-radius: var(--radius); background: var(--plum-soft); }
.chat p { font: 400 18px/1.45 var(--serif); }
.chat span { display: block; margin-top: 12px; font-size: 14px; color: var(--ink-2); }

/* Resume */
.resume-grid { display: grid; grid-template-columns: 1fr 340px; gap: 64px; align-items: start; }
.resume-grid > * { min-width: 0; }
.jobs { display: grid; }
.jobs-hint { font: 500 12px var(--mono); letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.job-item { border-top: 1px solid var(--line); }
.job-item:last-child { border-bottom: 1px solid var(--line); }
.job { width: 100%; display: grid; grid-template-columns: 1fr auto 28px; gap: 4px 20px; padding: 20px 0; background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.job b { font: 400 22px/1.25 var(--serif); transition: color .15s; }
.job span { color: var(--ink-2); font-size: 15px; grid-column: 1; }
.job time { font: 500 13px var(--mono); color: var(--muted); grid-row: 1; grid-column: 2; align-self: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.job .toggle { grid-row: 1 / span 2; grid-column: 3; align-self: center; justify-self: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: transform .2s, border-color .15s; }
.job .toggle::before, .job .toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--plum); transform: translate(-50%, -50%); }
.job .toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.job:hover b, .job[aria-expanded="true"] b { color: var(--plum); }
.job:hover .toggle { border-color: var(--plum); }
.job[aria-expanded="true"] .toggle { transform: rotate(45deg); border-color: var(--plum); }
.job:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; border-radius: 8px; }
.job-note { padding: 0 48px 22px 0; }
.job-note p { font: 400 19px/1.5 var(--serif); color: var(--ink); max-width: 60ch; }
.job-item.now { background: var(--plum-soft); border-radius: 14px; border-top-color: transparent; padding-inline: 20px; margin-bottom: 8px; }
.job-item.now + .job-item { border-top-color: transparent; }
.job-item.now time { color: var(--plum); }
.aside-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 92px); }
.aside-card h2 { font-size: 26px; margin-bottom: 18px; }
.skills { display: grid; gap: 14px; }
.skills dt { font-weight: 600; font-size: 15px; }
.skills dd { font-size: 14px; color: var(--ink-2); }
.creds { display: grid; gap: 10px; list-style: none; }
.creds li { display: grid; grid-template-columns: 1fr auto; gap: 16px; font-size: 15px; color: var(--ink-2); padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.creds li time { font: 500 13px var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.pull { margin: 48px 0; padding: 32px; border-left: 2px solid var(--lilac); font: italic 300 24px/1.4 var(--serif); }
.pull cite { display: block; margin-top: 12px; font: normal 14px var(--sans); color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card { display: flex; flex-direction: column; gap: 12px; padding: 32px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); text-decoration: none; transition: transform .25s, border-color .25s; }
.contact-card:hover { transform: translateY(-4px); border-color: var(--lilac); }
.contact-card.primary { background: var(--night); color: #f1ecfa; border-color: var(--night); }
.contact-card.primary p { color: #cfc8e2; }
.contact-card.primary .go { color: var(--lilac); }
.contact-card h3 { font-size: 28px; }
.contact-card p { font-size: 15px; color: var(--ink-2); flex: 1; }
.contact-card .go { font-size: 14px; font-weight: 500; color: var(--plum); }

/* Compact footer for inner pages */
footer.mini { padding: 40px 0; }
footer.mini .row2 { margin-top: 0; padding-top: 0; border-top: 0; }

@media (max-width: 960px) {
  .resume-grid { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .long-review { grid-template-columns: 1fr; gap: 20px; }
  .contact-grid { grid-template-columns: 1fr; }
  .media-card.feature { flex-direction: column; }
  .media-card.feature .thumb, .media-card.feature .body { flex: none; }
  .media-card.feature .thumb { min-height: 0; aspect-ratio: 2 / 1; }
}
@media (max-width: 600px) {
  .page-head { padding-block: 40px 32px; }
  .long-review, .media-card.feature .body { padding: 24px; }
  .job { grid-template-columns: 1fr; }
  .job time { grid-row: auto; grid-column: 1; }
}


/* ============ Case studies ============ */
.case-head { padding-block: 64px 32px; }
.case-head .back { font-size: 14px; color: var(--plum); }
.case-head h1 { font-size: clamp(40px, 5.6vw, 72px); margin-top: 20px; text-wrap: balance; max-width: 18ch; }
.case-head .summary { font-size: 20px; color: var(--ink-2); max-width: 52ch; margin-top: 20px; }
.case-meta { display: flex; flex-wrap: wrap; gap: 16px 48px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.case-meta dt { font: 500 11.5px var(--mono); letter-spacing: .01em; color: var(--muted); margin-bottom: 4px; }
.case-meta dd { font-size: 15px; }
.case-hero { margin-block: 8px 24px; }
.case-hero img { width: 100%; border-radius: var(--radius); }
.prose { max-width: 720px; padding-bottom: 112px; }
.prose > * + * { margin-top: 16px; }
.prose .part { display: block; margin-top: 72px; }
.prose h2 { font-size: clamp(28px, 3.4vw, 40px); margin-top: 12px; text-wrap: balance; }
.prose .part + h2 { margin-top: 12px; }
.prose h2:not(.part + h2) { margin-top: 64px; }
.prose h3 { font-size: 24px; margin-top: 40px; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 10px; }
.prose li::marker { color: var(--lilac); }
.prose figure { margin-block: 32px; }
.prose figure img { width: 100%; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.prose figcaption b { color: var(--ink); font-weight: 600; }
.prose .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-block: 32px; }
.prose .pair figure { margin: 0; }
.prose .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin-block: 32px; }
.prose .gallery figure { margin: 0; }
.prose .note { padding: 20px 24px; background: var(--paper-2); border-radius: 12px; }
.prose .note b { display: block; font: 500 11.5px var(--mono); letter-spacing: .01em; color: var(--plum); margin-bottom: 6px; }
.prose .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; margin-block: 32px; }
.prose .stats div { margin: 0; }
.prose .stats b { display: block; font: 400 44px/1 var(--serif); color: var(--plum); font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.prose .stats span { font-size: 14px; color: var(--ink-2); }
.prose blockquote { font: italic 300 24px/1.4 var(--serif); color: var(--ink); border-left: 2px solid var(--lilac); padding-left: 24px; margin-block: 32px; }
.prose .link-out { display: inline-block; margin-top: 24px; }
.case-nav { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 80px; padding-top: 32px; border-top: 1px solid var(--line); }
.case-nav a { text-decoration: none; display: grid; gap: 4px; }
.case-nav small { font: 500 11.5px var(--mono); letter-spacing: .01em; color: var(--muted); }
.case-nav span { font: 400 20px/1.3 var(--serif); color: var(--plum); }
.case-nav a:hover span { text-decoration: underline; }
@media (max-width: 600px) {
  .prose .pair { grid-template-columns: 1fr; }
  .case-head { padding-block: 40px 24px; }
}

/* Career strip: one centered line on wide screens, wraps on phones */
.journey .wrap { justify-content: center; }

/* Typing cursor in the hero headline: only exists while the text is being typed */
.type-caret { display: inline-block; width: .06em; height: .9em; margin-left: .02em; margin-right: -.08em; background: var(--plum); vertical-align: -.08em; }
.type-ghost { visibility: hidden; }

/* Clickable roles in the career strip */
.journey .wrap { flex-direction: column; gap: 10px; text-align: center; }
.roles { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 12px; }
@media (min-width: 961px) { .roles { flex-wrap: nowrap; white-space: nowrap; } }


/* Reviews: key statement up front, full review expands */
.long-review .words .key { font: 300 24px/1.35 var(--serif); color: var(--ink); }
.full-review summary { display: inline-flex; cursor: pointer; list-style: none; margin-top: 4px; border-radius: 50%; }
.full-review summary::-webkit-details-marker { display: none; }
.full-review .toggle { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); position: relative; transition: transform .2s, border-color .15s; }
.full-review .toggle::before, .full-review .toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--plum); transform: translate(-50%, -50%); }
.full-review .toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.full-review summary:hover .toggle { border-color: var(--plum); }
.full-review[open] .toggle { transform: rotate(45deg); border-color: var(--plum); }
.full-review summary:focus-visible { outline: 2px solid var(--plum); outline-offset: 4px; border-radius: 4px; }
.full-review > p { margin-top: 14px; color: var(--ink-2); }
.full-review > p:first-of-type { margin-top: 18px; }

/* Reviews: two columns of compact cards that are easy to scan */
.long-reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.long-review { grid-template-columns: 1fr; gap: 14px; padding: 28px; }
.long-review .who b { font-size: 21px; margin-bottom: 2px; }
.long-review .who a { margin-top: 6px; }
.long-review .words .key { font-size: 21px; }
@media (max-width: 760px) { .long-reviews { grid-template-columns: 1fr; } .long-review { padding: 24px; } }

/* Contact: email + access request form */
.contact-top { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.email-box, .access-box { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 24px 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.email-box h2, .access-box h2 { font-size: 24px; }
.email-box > p, .access-box > p { color: var(--ink-2); font-size: 15px; }
.email-box .btn, .access-box .btn { margin-block: 10px 4px; padding: 11px 20px; }
.email-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 6px; }
.email-line a { font: 400 17px var(--sans); color: var(--plum); word-break: break-all; }
.copy-btn { padding: 8px 16px; font-size: 14px; cursor: pointer; }
.copy-status { font-size: 14px; color: var(--muted); min-height: 1.4em; margin-top: 8px; }
.access-fallback { font-size: 14px; color: var(--muted); }
.access-fallback b { color: var(--ink); font-weight: 500; }

/* Homepage case studies: one clear path into the portfolio */
.work { padding-block: 96px; }
.work-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; margin-bottom: 36px; }
.work-head h2 { margin-top: 14px; }
.work-head p { max-width: 42ch; color: var(--ink-2); }
.work-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.work-grid .media-card { flex-direction: row; }
.work-grid .media-card .thumb { flex: 0 0 42%; aspect-ratio: 16 / 10; }
.work-grid .media-card .body { padding: 28px 32px; justify-content: center; }
.work-grid .media-card h3 { font-size: 28px; }
@media (max-width: 760px) { .work-grid .media-card { flex-direction: column; } .work-grid .media-card .thumb { flex: none; } .work-grid .media-card .body { padding: 24px; } }
.work-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 32px; }
.work-foot p { color: var(--ink-2); font-size: 15px; }
.work-foot p a { color: var(--plum); }
@media (max-width: 760px) { .work-grid { grid-template-columns: 1fr; } .work { padding-block: 72px; } }

/* Purple case studies section with the content model diagram */
.work.dark { background: var(--night); color: #f1ecfa; position: relative; overflow: hidden; }
.work.dark::before { content: ""; position: absolute; width: 700px; height: 700px; right: -200px; top: -250px; background: radial-gradient(circle, rgba(0,159,217,.22), transparent 65%); pointer-events: none; }
.work.dark::after { content: ""; position: absolute; width: 600px; height: 600px; left: -200px; bottom: -300px; background: radial-gradient(circle, rgba(183,155,224,.18), transparent 65%); pointer-events: none; }
.work.dark .wrap { position: relative; z-index: 1; }
.work.dark .eyebrow { color: var(--tt-blue); }
.work.dark .work-head p, .work.dark .work-foot p { color: #bdb4d4; }
.work.dark .work-foot p a { color: #cfc8e2; }
.work.dark .media-card { border-color: transparent; }
.model { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--night-line); }
.model-text h2 { font-size: clamp(30px, 3.4vw, 42px); color: #fff; margin-bottom: 16px; }
.model-text h3 { font: italic 300 clamp(24px, 2.6vw, 32px)/1.2 var(--serif); color: var(--lilac); margin: 12px 0 14px; }
.model-text p { color: #cfc8e2; font-size: 21px; line-height: 1.5; max-width: 52ch; }
.model-text .model-aside { margin-top: 18px; }
.model .viz { border-radius: 14px; background: #120e22; border: 1px solid var(--night-line); padding: 24px; }
.schema { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 10px; width: 100%; font: 12px var(--mono); }
.node { background: #1d1733; border: 1px solid var(--night-line); border-radius: 10px; padding: 12px; min-width: 0; }
.node .k { color: var(--lilac); margin-bottom: 6px; font-weight: 500; }
.node .f { color: #9d94b8; line-height: 1.9; overflow-wrap: anywhere; }
.node .f::before { content: "· "; color: #5a4a87; }
.node.out { border-color: var(--tt-blue); }
.node.out .k { color: var(--tt-blue); }
.link { width: 24px; height: 1px; background: linear-gradient(90deg, #5a4a87, var(--tt-blue)); position: relative; }
.link::after { content: ""; position: absolute; right: -2px; top: -3px; border: 3.5px solid transparent; border-left-color: var(--tt-blue); }
@media (max-width: 960px) { .model { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .schema { grid-template-columns: 1fr; }
  .link { width: 1px; height: 16px; justify-self: center; background: linear-gradient(#5a4a87, var(--tt-blue)); }
  .link::after { display: none; }
}

/* Cards keep dark text even inside the dark Case studies section */
.media-card { color: var(--ink); }

/* Visible to screen readers only */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.job-note strong { font-weight: 600; color: var(--plum); }

/* "My work" heading matches "How I think" */
.work-title { font-size: clamp(30px, 3.4vw, 42px); color: #fff; margin-bottom: 24px; }

/* Outside work: a short, personal closing section */
.outside { padding-block: 80px; }
.outside h2 { margin-bottom: 16px; text-wrap: balance; }
.outside p { font-size: 20px; color: var(--ink-2); max-width: 52ch; }
.outside-grid { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.outside-grid { grid-template-columns: 1fr minmax(0, 400px); }
.bake-show { margin: 0; position: relative; }
.bake-frame { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.bake-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; will-change: opacity; }
.bake-frame img.prev { opacity: 1; z-index: 1; }
.bake-frame img.on { opacity: 1; z-index: 2; animation: bakefade .3s ease-out; }
@keyframes bakefade { from { opacity: 0; } }
.bake-sparkle { position: absolute; top: -30px; right: -24px; width: 52px; z-index: 2; fill: none; stroke: var(--plum); stroke-width: 3.5; stroke-linecap: round; transform: rotate(90deg); }
.bake-star { position: absolute; z-index: 2; width: 18px; fill: var(--plum); animation: twinkle 1.8s ease-in-out infinite; }
.bake-star.s1 { right: -14px; bottom: 34%; }
.bake-star.s2 { left: -12px; bottom: 18%; width: 13px; fill: var(--lilac); animation-delay: -.9s; }
@keyframes twinkle { 0%, 100% { transform: scale(.6) rotate(0); opacity: .5; } 50% { transform: scale(1.15) rotate(45deg); opacity: 1; } }
.bake-pause { z-index: 2; position: absolute; right: 12px; bottom: 12px; border: 0; border-radius: 999px; padding: 6px 14px; background: rgba(20,16,22,.72); color: #fff; font: 500 12px var(--mono); cursor: pointer; }
.bake-pause:hover { background: rgba(20,16,22,.9); }
.bake-pause:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .bake-frame img.on { animation: none; } .bake-star { animation: none; } }
@media (max-width: 760px) { .outside-grid { grid-template-columns: 1fr; gap: 40px; } .bake-sparkle { right: -6px; } .bake-star.s1 { right: -6px; } .bake-star.s2 { left: -6px; } }

/* Phone screenshots: show the whole screen, scaled down, so they stay sharp */
.media-card .thumb.phone { display: flex; align-items: center; justify-content: center; padding-block: 16px; background: var(--plum-soft); }
.media-card .thumb.phone img { width: auto; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(28, 21, 48, .18)); }

/* Small source images: shown at half their pixel size or less, never stretched */
.media-card .thumb.small { display: flex; align-items: center; justify-content: center; padding: 20px; background: #fff; border-bottom: 1px solid var(--line); }
.media-card .thumb.small img { width: 100%; height: auto; max-height: 100%; object-fit: contain; }

/* My work: editorial project list (rows, not cards) */
.work-list { list-style: none; }
.work-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) 240px 28px; gap: 36px; align-items: center; padding: 34px 8px; border-bottom: 1px solid var(--night-line); text-decoration: none; color: #f1ecfa; transition: background .3s; }
.work-list li:last-child .work-row { border-bottom: 0; }
.work-row:hover { background: rgba(255, 255, 255, .03); }
.work-row:focus-visible { outline: 2px solid var(--lilac); outline-offset: 4px; border-radius: 12px; }
.wr-meta { display: grid; gap: 4px; font: 500 12.5px/1.4 var(--mono); color: #8f86ab; align-self: start; padding-top: 8px; }
.wr-meta span:first-child { color: #cfc8e2; }
.wr-main h3 { font: 400 clamp(26px, 2.6vw, 34px)/1.15 var(--serif); color: #fff; margin-bottom: 10px; text-wrap: balance; transition: color .25s; }
.work-row:hover h3 { color: var(--lilac); }
.wr-main p { color: #bdb4d4; font-size: 16px; max-width: 60ch; }
.wr-result { display: block; margin-top: 14px; font: 500 13px/1.4 var(--mono); color: var(--tt-blue); }
.wr-thumb { aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: #fff; transform: scale(.96); transition: transform .45s ease; }
.work-row:hover .wr-thumb { transform: scale(1); }
.wr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wr-thumb.phone { display: flex; justify-content: center; padding-block: 10px; background: var(--plum-soft); }
.wr-thumb.phone img { width: auto; object-fit: contain; }
.wr-arrow { font-size: 22px; color: #8f86ab; transition: transform .3s, color .3s; }
.work-row:hover .wr-arrow { transform: translateX(6px); color: #fff; }
@media (max-width: 960px) { .work-row { grid-template-columns: minmax(0, 1fr) 200px; gap: 24px; } .wr-meta { grid-column: 1 / -1; display: flex; gap: 12px; padding-top: 0; } .wr-arrow { display: none; } }
@media (max-width: 600px) { .work-row { grid-template-columns: 1fr; padding-inline: 0; } .wr-thumb { order: -1; } }
@media (prefers-reduced-motion: reduce) { .wr-thumb, .wr-arrow { transition: none; } }

@media (max-width: 760px) { .contact-top { grid-template-columns: 1fr; } }

.quotes .eyebrow, blockquote cite { color: var(--on-plum-bg); }
.wr-meta, .wr-arrow, footer .row2, .chat-bar { color: var(--on-night-muted); }
.sep { color: var(--plum); }
.wr-result { color: var(--on-night-accent); }
.work.dark::before { background: radial-gradient(circle, var(--glow), transparent 65%); }
.logo-home { font-size: clamp(22px, 2.4vw, 28px); }
@media (max-width: 420px) {
  nav .wrap > .btn { padding: 8px 14px; font-size: 13px; }
  .logo-home { font-size: 20px; }
}

/* Portrait: the shape behind the photo slowly changes */
.portrait .blob { animation: blob 14s ease-in-out infinite; }
@keyframes blob {
  0%, 100% { border-radius: 46% 54% 40% 60% / 55% 45% 55% 45%; transform: rotate(0deg); }
  33% { border-radius: 58% 42% 52% 48% / 44% 58% 42% 56%; transform: rotate(4deg); }
  66% { border-radius: 40% 60% 46% 54% / 60% 40% 60% 40%; transform: rotate(-3deg); }
}
.sketch .pencil-body { transform-box: view-box; transform-origin: 0 0; }
@keyframes scribble { 0%, 100% { transform: rotate(0deg) translate(0, 0); } 25% { transform: rotate(-6deg) translate(-1px, 1px); } 50% { transform: rotate(3deg) translate(1px, 0); } 75% { transform: rotate(-3deg) translate(0, 1px); } }

/* How I think: a pencil draws a line under the heading as it scrolls into view */
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }
.pencil-head { position: relative; display: inline-block; }
.pencil-line { position: absolute; left: -2%; bottom: -26px; width: 110%; height: auto; overflow: visible; }
.pencil-line .line { fill: none; stroke: var(--lilac); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; }
.model-text.pencil-wait .line { stroke-dashoffset: 1; }
.model-text.pencil-wait .pencil { opacity: 0; }
.model-text.pencil-go .line { stroke-dashoffset: 1; animation: draw 1.1s cubic-bezier(.6, .1, .3, 1) forwards; }
.model-text.pencil-go .pencil { opacity: 0; animation: appear .15s ease forwards; }
.model-text.pencil-go .pencil-body { animation: scribble 2.6s ease-in-out 1.1s infinite; }
.model-text h2.pencil-head { margin-bottom: 40px; }
.sketch .shaft { fill: var(--plum-bg); }
.sketch .band { fill: var(--muted); }
.sketch .eraser { fill: var(--lilac); }
.sketch .wood { fill: #e9cfa8; }
.sketch .lead { fill: #f1ecfa; }
@media (prefers-reduced-motion: reduce) {
  .portrait .blob, .sketch .pencil-body { animation: none; }
}


/* Hero: the intro paragraph fades in after the headline is typed */
.hero p.lede { transition: opacity .7s ease, transform .7s ease; }
.hero p.lede.lede-wait { opacity: 0; transform: translateY(8px); }

/* Portrait: three quick lines for a little sparkle */
.portrait .sparkle { position: absolute; z-index: 1; top: -6%; right: -4%; width: 54px; height: 54px; overflow: visible; pointer-events: none; }
.sparkle path { fill: none; stroke: var(--plum); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .3s ease-out forwards; }
.sparkle path:nth-child(1) { animation-delay: .6s; }
.sparkle path:nth-child(2) { animation-delay: .8s; }
.sparkle path:nth-child(3) { animation-delay: 1s; }
@media (prefers-reduced-motion: reduce) { .sparkle path { animation: none; stroke-dashoffset: 0; } }

/* My work: result lines type out like a terminal */
.term-cursor { display: inline-block; width: .6em; height: 1.1em; margin-left: 2px; vertical-align: -.2em; background: currentColor; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Pick a voice: the chat under How I think (always on the dark section) */
.voices { margin-top: 48px; max-width: 928px; }
.voices-head h3 { font: 400 clamp(24px, 2.6vw, 30px)/1.2 var(--serif); color: #fff; }
.voices-head p { font-size: 18px; color: #cfc8e2; margin-top: 10px; }
.voice-picker { display: grid; grid-template-columns: repeat(5, minmax(0, 176px)); gap: 12px; margin: 22px 0 18px; }
.voice-picker button { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 10px 14px; border-radius: 16px; border: 1px solid var(--night-line); background: transparent; color: #f1ecfa; font: 500 14px var(--sans); cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.voice-picker svg { width: 104px; height: 104px; transition: transform .25s; }
.voice-picker button:hover svg { transform: translateY(-3px) rotate(-3deg); }
.voice-picker button:hover { border-color: var(--lilac); }
.voice-picker button[aria-pressed="true"] { border-color: var(--lilac); background: var(--night-2); }
.chat-window { max-width: 760px; margin-inline: auto; border: 1px solid var(--night-line); border-radius: var(--radius); background: var(--night-2); overflow: hidden; }
.chat-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--night-line); font: 500 13px var(--mono); color: var(--on-night-muted); }
.chat-restart { border: 0; background: none; font: 500 13px var(--sans); color: var(--lilac); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.chat-log { display: flex; flex-direction: column; gap: 10px; padding: 22px 20px 8px; min-height: 240px; max-height: 420px; overflow-y: auto; }
.msg { max-width: 80%; padding: 12px 16px; border-radius: 18px; font-size: 16px; line-height: 1.5; }
.msg-row { display: flex; align-items: flex-end; gap: 10px; align-self: flex-start; max-width: 86%; }
.msg-face { width: 42px; height: 42px; flex: none; }
.msg-row .msg { max-width: none; }
.msg.bot { background: rgba(255, 255, 255, .09); color: #f1ecfa; border-bottom-left-radius: 6px; }
.msg.me { align-self: flex-end; background: var(--lilac); color: #17122a; border-bottom-right-radius: 6px; }
.msg.typing { display: inline-flex; gap: 5px; padding: 15px 16px; }
.msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: #a39bbd; animation: dots 1s ease-in-out infinite; }
.msg.typing span:nth-child(2) { animation-delay: .15s; }
.msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chat-replies { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 20px 20px; min-height: 64px; }
.reply { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--lilac); background: transparent; color: var(--lilac); font: 500 14px var(--sans); cursor: pointer; text-decoration: none; }
.reply:hover { background: rgba(183, 155, 224, .14); }
.reply.solid { background: var(--lilac); color: #17122a; }
.reply.solid:hover { background: #fff; }
.voice-note { max-width: 760px; margin: 14px auto 0; font-size: 15px; color: #bdb4d4; }
@media (max-width: 600px) {
  .msg { max-width: 92%; }
  .msg-row { max-width: 96%; }
  .voice-picker { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .voice-picker button { padding: 10px 2px 8px; gap: 6px; border-radius: 12px; font-size: 11px; line-height: 1.2; text-align: center; }
  .voice-picker svg { width: 100%; max-width: 56px; height: auto; }
}

/* Voice picker: the bots blink and tilt their heads a little, each on its own beat */
.voice-picker .head, .msg-face .head { transform-box: fill-box; transform-origin: 50% 95%; }
.voice-picker .eyes, .msg-face .eyes { transform-box: fill-box; transform-origin: center; animation: eyeblink 4.6s infinite; }
.voice-picker .head { animation: headbob 5s ease-in-out infinite; }
.voice-picker button:nth-child(2) .head { animation-duration: 4.4s; animation-delay: -1.2s; }
.voice-picker button:nth-child(3) .head { animation-duration: 5.6s; animation-delay: -2.6s; }
.voice-picker button:nth-child(4) .head { animation-duration: 4.8s; animation-delay: -3.4s; }
.voice-picker button:nth-child(2) .eyes { animation-delay: -1.7s; }
.voice-picker button:nth-child(3) .eyes { animation-delay: -3.1s; }
.voice-picker button:nth-child(4) .eyes { animation-delay: -.8s; }
.voice-picker button:nth-child(5) .head { animation-duration: 5.2s; animation-delay: -4.1s; }
.voice-picker button:nth-child(5) .eyes { animation-delay: -2.3s; }
@keyframes eyeblink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@keyframes headbob { 0%, 100% { transform: rotate(0deg); } 30% { transform: rotate(-4deg) translateY(-.5px); } 70% { transform: rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .voice-picker .head, .voice-picker .eyes, .msg-face .eyes { animation: none; } }

/* Chat: the email address inside a bot message */
.chat-email { color: var(--lilac); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

/* Moods: "How are you feeling today?" swaps the site's colors (mood.js). The base colors above are the pink default, shown until someone picks a mood. */
:root[data-mood="spicy"] {
  --ink: #2a1418;
  --ink-2: #55333a;
  --muted: #74535a;
  --paper: #fff1ef;
  --paper-2: #ffd9d3;
  --plum: #c41d2e;
  --plum-soft: #ffe0e6;
  --lilac: #ff9db3;
  --line: #f8c6c0;
  --card: #fff;
  --night: #5a0d1c;
  --night-2: #6f1426;
  --night-line: #8e2a3c;
  --plum-bg: #b8124b;
  --blob: #ff9db3;
  --on-night-muted: #f3c2cb;
  --on-night-accent: #ffb3c4;
  --on-plum-bg: #ffe3ef;
  --glow: rgba(255, 90, 90, .35);
}
:root[data-mood="corporate"] {
  --ink: #14213d;
  --ink-2: #3a4a66;
  --muted: #56657f;
  --paper: #f4f7fb;
  --paper-2: #e3ebf5;
  --plum: #1f5fbf;
  --plum-soft: #dde9fa;
  --lilac: #8fb8f2;
  --line: #d3deec;
  --card: #fff;
  --night: #0f2747;
  --night-2: #16365f;
  --night-line: #2b4d7a;
  --plum-bg: #1f5fbf;
  --blob: #a9c9f5;
  --on-night-muted: #b5c7e0;
  --on-night-accent: #9fd0ff;
  --on-plum-bg: #e3eeff;
  --glow: rgba(80, 160, 255, .3);
}
:root[data-mood="funky"] {
  --ink: #17132a;
  --ink-2: #403a5c;
  --muted: #5f5978;
  --paper: #f3f1f8;
  --paper-2: #e3dff0;
  --plum: #6d28b8;
  --plum-soft: #ebe5f8;
  --lilac: #d6dae2;
  --line: #dcd7ea;
  --card: #fff;
  --night: #17112a;
  --night-2: #241a3d;
  --night-line: #3e3263;
  --plum-bg: #4b1f8a;
  --blob: linear-gradient(135deg, #8b5cf6 0%, #8b5cf6 35%, #d6dae2 100%);
  --on-night-muted: #cfcbe0;
  --on-night-accent: #c9b6ff;
  --on-plum-bg: #ece4ff;
  --glow: rgba(150, 110, 255, .35);
}
/* Funky: Studio 54 shine. A pink glow around the photo */
:root[data-mood="funky"] .mood-bar { background: linear-gradient(115deg, #1c1033 0%, #6d28b8 70%, #9aa0ae 100%); }
:root[data-mood="funky"] .mood-toggle { background: rgba(14, 15, 18, .78); border-radius: 999px; padding: 4px 16px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }
:root[data-mood="funky"] .portrait .blob { box-shadow: 0 0 50px rgba(139, 92, 246, .45); }
:root[data-mood="simple"] {
  --ink: #172a2c;
  --ink-2: #3a4f52;
  --muted: #56696b;
  --paper: #f1f7f6;
  --paper-2: #e0eeec;
  --plum: #1f6f6b;
  --plum-soft: #dcefed;
  --lilac: #9fd8d2;
  --line: #cfe3e0;
  --card: #fff;
  --night: #1d3a3d;
  --night-2: #27494c;
  --night-line: #3c6266;
  --plum-bg: #2b6b6a;
  --blob: #bfe5e0;
  --on-night-muted: #bcd6d4;
  --on-night-accent: #a8ece4;
  --on-plum-bg: #e3f4f2;
  --glow: rgba(140, 220, 210, .25);
}

/* Mood bar at the top of every page, styled like a "switch experience" header */
.mood-bar { position: sticky; top: 0; z-index: 11; background: linear-gradient(115deg, var(--night) 0%, var(--plum-bg) 100%); color: #fff; text-align: center; box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .5); }
.mood-toggle { display: inline-flex; align-items: center; gap: 6px; margin: 10px auto 6px; padding: 4px 10px; border: 0; background: none; cursor: pointer; font: 700 19px var(--sans); }
.mood-toggle .rainbow { background: linear-gradient(90deg, #ffffff, #ffb3e1, #ffffff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mood-toggle .caret { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid #ffb3e1; transition: transform .25s; }
.mood-toggle[aria-expanded="false"] .caret { transform: rotate(-90deg); }
.mood-panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .35s ease; }
.mood-panel[data-open="false"] { grid-template-rows: 0fr; }
.mood-panel > div { overflow: hidden; }
.mood-options { display: flex; justify-content: center; gap: 22px; padding: 6px 16px 18px; }
.mood-options button { display: flex; flex-direction: column; align-items: center; gap: 8px; border: 0; background: none; color: #fff; font: 500 15px var(--sans); cursor: pointer; }
.mood-face { display: grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; transition: transform .2s, box-shadow .2s; }
.mood-options button:hover .mood-face { transform: translateY(-3px); }
.mood-options button[aria-pressed="true"] .mood-face { box-shadow: 0 0 0 3px #fff; }
.mood-face.sweet { background: #ffd6ec; }
.mood-face.spicy { background: #ffd9d3; }
.mood-face.corporate { background: #dde9fa; }
.mood-face.funky { background: linear-gradient(135deg, #d9c8ff, #e4e7ec); }
.mood-face.simple { background: #dcefed; }
.mood-face svg { width: 52px; height: 52px; overflow: visible; }
.mi-move { transform-box: view-box; }
.mi-chili { transform-origin: 13px 8px; animation: chili 1.6s ease-in-out infinite; }
.mi-case { transform-origin: 16px 6px; animation: swing 2.4s ease-in-out infinite; }
.mi-facets { animation: facets 1.6s linear infinite; }
.mi-shine { transform-origin: 26px 9px; transform-box: view-box; animation: shine 1.4s ease-in-out infinite; }
.mi-sprout { transform-origin: 16px 28px; animation: sway 3s ease-in-out infinite; }
.mi-cupcake { transform-origin: 16px 29px; animation: bounce 1.8s ease-in-out infinite; }
@keyframes chili { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(10deg); } }
@keyframes swing { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes facets { to { transform: translateX(-6px); } }
@keyframes shine { 0%, 100% { transform: scale(.4); opacity: .3; } 50% { transform: scale(1); opacity: 1; } }
@keyframes bounce { 0%, 100% { transform: translateY(0) scale(1, 1); } 45% { transform: translateY(-2px) scale(.98, 1.03); } 60% { transform: translateY(0) scale(1.03, .97); } }
@keyframes sway { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@media (prefers-reduced-motion: reduce) { .mi-chili, .mi-case, .mi-facets, .mi-shine, .mi-sprout, .mi-cupcake { animation: none; } .mood-panel { transition: none; } }
@media (max-width: 600px) {
  .mood-options { gap: 8px; padding: 6px 10px 14px; }
  .mood-options button { font-size: 13px; gap: 6px; }
  .mood-face { width: 60px; height: 60px; }
  .mood-face svg { width: 40px; height: 40px; }
}


/* Menu button: page links live in a dropdown in the top right corner */
nav.has-menu .wrap { position: relative; flex-wrap: nowrap; height: 68px; padding-top: 0; gap: 12px; }
nav.has-menu .menu-toggle { margin-left: auto; }
nav.has-menu ul { display: none; position: absolute; top: calc(100% - 4px); right: max(24px, env(safe-area-inset-right, 0px)); z-index: 12; flex-direction: column; gap: 2px; width: auto; min-width: 210px; padding: 10px; overflow: visible; white-space: normal; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 48px -24px rgba(28,21,48,.45); }
nav.has-menu[data-menu="open"] ul { display: flex; }
nav.has-menu ul a { display: block; padding: 11px 14px; border-radius: 10px; font-size: 16px; color: var(--ink); }
nav.has-menu ul a:hover, nav.has-menu ul a:focus-visible { background: var(--plum-soft); color: var(--plum); }
.menu-toggle { flex: none; display: grid; place-content: center; gap: 4px; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: var(--card); cursor: pointer; }
.menu-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.menu-toggle:hover { border-color: var(--plum); }
.menu-toggle:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; }
nav[data-menu="open"] .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
nav[data-menu="open"] .menu-toggle span:nth-child(2) { opacity: 0; }
nav[data-menu="open"] .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 600px) { nav.has-menu ul { right: max(16px, env(safe-area-inset-right, 0px)); } }
@media (prefers-reduced-motion: reduce) { .menu-toggle span { transition: none; } }

/* Contact: an envelope that floats in the bottom right corner of every page */
.mail-fab { position: fixed; right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px)); z-index: 20; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--paper); box-shadow: 0 14px 30px -12px rgba(28,21,48,.55); transition: transform .2s, background .2s; }
.mail-fab:hover { transform: translateY(-3px); background: var(--plum); }
.mail-fab:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; }
.mail-fab svg { width: 24px; height: 24px; }
@media (prefers-reduced-motion: reduce) { .mail-fab { transition: none; } .mail-fab:hover { transform: none; } }
