@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&family=Plus+Jakarta+Sans:wght@400;500;600&display=swap');

:root {
  --bg: #f4f2ee;
  --surface: #ffffff;
  --ink: #17121d;
  --muted: #6c6578;
  --line: #e6e1e6;
  --accent: #9a6a00;
  --accent-soft: #f6ecd6;
  --on-accent: #ffffff;
  --grad: linear-gradient(90deg, #d99a00 0%, #c9615a 50%, #7a52e0 100%);
  --max: 1080px;
}

/* Dark surfaces */
.hero, .case-hero, .contact, footer, nav, .dark {
  --bg: #110c18;
  --surface: #1c1524;
  --ink: #f4f1f7;
  --muted: #a9a1b5;
  --line: #2e2538;
  --accent: #ffcc55;
  --accent-soft: rgba(255, 204, 85, .14);
  --on-accent: #110c18;
  --grad: linear-gradient(90deg, #ffd466 0%, #ff9f8a 50%, #a98bff 100%);
  background: var(--bg);
  color: var(--ink);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 720px; }

/* Nav */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 10; background: transparent !important; border-bottom: 1px solid transparent; transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease, box-shadow .3s ease; }
nav.scrolled { background: rgba(17, 12, 24, .72) !important; backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom-color: rgba(255,255,255,.08); }
nav .wrap { display: flex; justify-content: space-between; align-items: center; height: 60px; }
.logo { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 19px; text-decoration: none; letter-spacing: -0.01em; }
nav ul { display: flex; gap: 28px; list-style: none; font-size: 14px; }
nav ul a { text-decoration: none; color: var(--muted); transition: color .2s ease; }
nav ul a:hover { color: var(--ink); }

/* Type */
h1, h2, h3 { font-family: 'Outfit', sans-serif; font-weight: 500; line-height: 1.08; letter-spacing: -0.025em; }
h1 { font-size: clamp(44px, 7vw, 80px); font-weight: 600; }
h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 20px; }
h3 { font-size: 22px; margin-bottom: 8px; letter-spacing: -0.015em; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.lead { font-size: 21px; color: var(--muted); max-width: 640px; }
p + p { margin-top: 16px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

section { padding: 104px 0; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 150px 0 120px; }
.hero::before, .case-hero::before {
  content: ''; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(255, 200, 70, .38), rgba(255, 159, 138, .14) 45%, transparent 70%);
  filter: blur(20px); pointer-events: none; animation: drift 14s ease-in-out infinite alternate;
}
.hero::after {
  content: ''; position: absolute; left: -15%; bottom: -40%; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(closest-side, rgba(140, 90, 255, .38), transparent 70%); filter: blur(20px); pointer-events: none;
  animation: drift 18s ease-in-out infinite alternate-reverse;
}
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-6%, 8%) scale(1.08); } }
.hero .wrap, .case-hero .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 900px; margin-bottom: 28px; }
.hero h1 em { font-style: normal; }
.hero h1 em, .hero h1 em .w { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.chip { font-size: 14px; padding: 7px 15px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.04); backdrop-filter: blur(8px); }
.chip.dot::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #5fd3c0; margin-right: 8px; }

/* Work cards */
.work-grid { display: grid; gap: 24px; margin-top: 40px; }
.card {
  display: grid; grid-template-columns: 1.1fr 1fr;
  background: var(--surface); border-radius: 28px; overflow: hidden; text-decoration: none;
  box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(0, 0, 0, .1); }
.card-visual { min-height: 340px; display: flex; align-items: center; justify-content: center; padding: 36px; }
.card-body { padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.card-body p { color: var(--muted); margin-top: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag { font-size: 13px; padding: 5px 12px; border-radius: 999px; background: var(--bg); color: var(--muted); }
.more { margin-top: 24px; font-weight: 600; color: var(--accent); }

.v-memorial { background: radial-gradient(90% 90% at 85% 10%, rgba(255,200,70,.55), transparent 60%), radial-gradient(90% 90% at 0% 100%, rgba(140,90,255,.5), transparent 60%), #110c18; }
.v-biddit { background: radial-gradient(120% 120% at 80% 10%, #ffd466 0%, #ff9f8a 45%, #7a52e0 100%); }

/* Mock visuals */
.mock { width: 100%; max-width: 360px; background: rgba(255,255,255,.96); color: #1d1d1f; border-radius: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.35); padding: 20px; font-size: 12px; }
.mock .bar { height: 8px; border-radius: 4px; background: #e8e8ed; margin: 8px 0; }
.mock .bar.s { width: 40%; } .mock .bar.m { width: 70%; }
.mock .btn { display: inline-block; margin-top: 12px; padding: 8px 14px; border-radius: 999px; background: #110c18; color: #ffcc55; font-weight: 600; }
.mock .avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #ffd466, #a98bff); }
.mock .row { display: flex; gap: 12px; align-items: center; }
.mock .price { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 26px; }
.mock .timer { color: #ff375f; font-weight: 600; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 36px 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.stat b { display: block; font-family: 'Outfit', sans-serif; font-weight: 500; font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: 14px; color: var(--muted); }

/* About / skills */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.skills { list-style: none; display: grid; gap: 18px; }
.skills li { padding-left: 18px; border-left: 2px solid var(--accent); }
.skills li b { display: block; }
.skills li span { color: var(--muted); font-size: 15px; }

/* Case study */
.case-hero { position: relative; overflow: hidden; padding: 120px 0 72px; }
.case-hero .lead { margin-top: 20px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.facts dt { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.facts dd { margin-top: 4px; font-weight: 500; }
.case section { padding: 80px 0; }
.case h2 { font-size: clamp(28px, 3.4vw, 36px); }
.quote { margin: 28px 0; padding: 24px 28px; background: var(--surface); border-radius: 20px; border-left: 3px solid var(--accent); font-family: 'Outfit', sans-serif; font-size: 22px; line-height: 1.4; letter-spacing: -0.01em; }
.quote small { display: block; margin-top: 10px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 13px; color: var(--muted); letter-spacing: 0; }
.insights { display: grid; gap: 14px; margin-top: 28px; }
.insight { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
ol.steps { margin: 20px 0 0 20px; } ol.steps li { margin-top: 10px; }
.placeholder { background: #fff8e1; color: #6b5200; border: 1px dashed #e0b84a; border-radius: 14px; padding: 14px 18px; font-size: 15px; margin-top: 20px; }
.next-case { display: block; text-decoration: none; padding: 56px 0; }
.next-case span { color: var(--muted); font-size: 14px; }
.next-case h3 { font-size: 34px; margin-top: 6px; }

/* Contact */
.contact { text-align: center; position: relative; overflow: hidden; }
.contact::before { content: ''; position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 700px; height: 400px; background: radial-gradient(closest-side, rgba(255,200,70,.22), rgba(140,90,255,.12) 50%, transparent 72%); pointer-events: none; }
.contact .wrap { position: relative; }
.contact h2 { font-size: clamp(40px, 6vw, 64px); }
.contact .links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.button { display: inline-block; padding: 14px 26px; border-radius: 999px; text-decoration: none; font-weight: 600; border: 1px solid var(--line); }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

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

@media (max-width: 820px) {
  .card, .two-col { grid-template-columns: 1fr; }
  .two-col { gap: 40px; }
  nav ul { gap: 18px; }
  section { padding: 76px 0; }
  .hero { padding: 110px 0 90px; }
  .card-body { padding: 28px; }
}

/* New case study blocks */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0; }
.duo-item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px; transition: transform .3s ease, box-shadow .3s ease; }
.duo-item:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(27,26,23,.07); }
.duo-item p { color: var(--muted); font-size: 16px; }
.duo-icon { display: inline-block; font-size: 26px; margin-bottom: 10px; }

.findings { list-style: none; margin-top: 28px; display: grid; gap: 4px; }
.findings li { display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.findings b { font-family: "Outfit", sans-serif; font-weight: 500; background: var(--grad); -webkit-background-clip: text; background-clip: text; font-size: 24px; color: transparent; line-height: 1.2; }

.insights .n { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.insights .n::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: middle; }
.insight p:not(.n) { color: var(--muted); }

.decisions { display: grid; gap: 12px; margin-top: 28px; }
.decision { display: grid; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; transition: border-color .25s ease, transform .25s ease; }
.decision:hover { transform: translate(var(--dx, 0px), -4px) rotate(var(--dr, -.6deg)); box-shadow: 0 14px 30px -14px rgba(17,12,24,.22); }
.decision span { color: var(--muted); font-size: 15px; }

.checklist { list-style: none; margin-top: 20px; display: grid; gap: 12px; }
.checklist li { padding-left: 30px; position: relative; }
.checklist li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; margin-top: 4px; }

.design-block { margin-top: 56px; }
.design-block .narrow { margin: 0 auto 18px; }
.design-block h3 { font-size: 24px; }
.design-block p { color: var(--muted); }
.frame {
  aspect-ratio: 16 / 9; border-radius: 24px; border: 1.5px dashed #c7c7cc;
  background: repeating-linear-gradient(45deg, #ececf0 0 12px, #f2f2f5 12px 24px);
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px;
  color: var(--muted); font-size: 14px;
}
.frame.tall { aspect-ratio: 16 / 11; }
.frame span { background: var(--bg); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); }

/* Interactions */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); z-index: 20; }
nav { transition: box-shadow .3s ease; }
nav.scrolled { box-shadow: 0 6px 24px rgba(27,26,23,.06); }
nav ul a { position: relative; }
nav ul a::after { content: ''; position: absolute; left: 0; bottom: -4px; height: 1.5px; width: 100%; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .3s ease; }
nav ul a:hover::after { transform: scaleX(1); transform-origin: left; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

.hero h1 .w { display: inline-block; opacity: 0; transform: translateY(0.4em); animation: wordIn .8s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i) * 60ms + 100ms); }
@keyframes wordIn { to { opacity: 1; transform: none; } }

.card .mock { transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s ease; }
.card:hover .mock { transform: translateY(-6px) rotate(-1.5deg) scale(1.02); box-shadow: 0 22px 44px rgba(0,0,0,.14); }
.card .more, .next-case .arrow { display: inline-block; transition: transform .3s ease; font-style: normal; }
.card:hover .more { transform: translateX(6px); }
.next-case:hover .arrow { transform: translateX(8px); }
.next-case h3 { transition: color .3s ease; }
.next-case:hover h3 { color: var(--accent); }

.chip { transition: transform .2s ease, border-color .2s ease; }
.chip:hover { transform: translateY(-2px); border-color: var(--accent); }
.chip.dot::before { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(95,211,192,.55); } 50% { box-shadow: 0 0 0 6px rgba(95,211,192,0); } }

.button { transition: transform .25s cubic-bezier(.3,1.6,.5,1), background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button:not(.primary):hover { background: var(--ink); color: var(--bg); }

.reveal.in.stat:hover, .reveal.in.duo-item:hover { transform: translateY(-4px); }
.reveal.in.decision:hover { transform: translate(var(--dx, 0px), -4px) rotate(var(--dr, -.6deg)); }
.reveal.in.duo-item, .reveal.in.stat { transition: opacity .7s ease, transform .3s ease, box-shadow .3s ease, border-color .25s ease; }
.reveal.in.decision { transition: opacity .7s ease, transform .4s cubic-bezier(.3,1.6,.5,1), box-shadow .3s ease; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero h1 .w { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  * { scroll-behavior: auto !important; }
}

@media (max-width: 820px) {
  .duo { grid-template-columns: 1fr; }
  .findings li { grid-template-columns: 64px 1fr; }
  .card, .two-col { grid-template-columns: 1fr; }
  .two-col { gap: 40px; }
  nav ul { gap: 18px; }
  section { padding: 72px 0; }
  .card-body { padding: 28px; }
}

.note { margin-top: 32px; padding: 16px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 15px; }

/* Design screenshots */
.shots { display: grid; gap: 16px; margin-top: 16px; }
.shots.two { grid-template-columns: 1fr 1fr; }
.shots.two-wide { grid-template-columns: 1.6fr 1fr; }
.shots.phones { grid-template-columns: repeat(2, minmax(0, 280px)); justify-content: center; gap: 28px; }
.shot { margin: 0; position: relative; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); cursor: zoom-in; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; }
.shot:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(17,12,24,.12); }
.shot img { width: 100%; height: 100%; display: block; object-fit: contain; background: #fff; }
.shot.scroll { height: 520px; }
.shot.scroll img { object-fit: cover; object-position: top; transition: object-position .6s cubic-bezier(.2,.8,.2,1); }
.shot.scroll.play img { object-position: bottom; transition: object-position 4s ease-in-out; }
.shot.phone { border-radius: 32px; border: 6px solid #17121d; height: 560px; }
.shot.phone img { object-fit: cover; object-position: top; }
.shot figcaption { position: absolute; left: 12px; bottom: 12px; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: rgba(17,12,24,.78); color: #f4f1f7; backdrop-filter: blur(6px); }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(17,12,24,.88); backdrop-filter: blur(8px); display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 48px 24px; opacity: 0; pointer-events: none; transition: opacity .3s ease; cursor: zoom-out; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(1200px, 100%); height: auto; border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.5); transform: scale(.97); transition: transform .3s ease; }
.lightbox.open img { transform: none; }
@media (max-width: 820px) {
  .shots.two, .shots.two-wide { grid-template-columns: 1fr; }
  .shots.phones { grid-template-columns: 1fr 1fr; gap: 14px; }
  .shot.phone { height: 420px; border-width: 4px; }
  .shot.scroll { height: 420px; }
}
.shot.reveal { transition: opacity .7s ease, transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; }
.caption-note { font-size: 14px; color: var(--muted); margin-top: -8px; }
.shot-item { min-width: 0; }
.shot-cap { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center; }
.shots.phones .shot-item { width: 100%; }

/* TL;DR + timeline */
.tldr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tldr > div { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.tldr span { display: block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.tldr p { font-size: 15px; color: var(--ink); line-height: 1.55; }
.case section:has(.tldr) { padding-top: 56px; padding-bottom: 24px; }
.timeline { list-style: none; position: relative; margin-top: 28px; display: grid; gap: 0; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 40px; width: 2px; background: linear-gradient(var(--accent), #7a52e0); opacity: .5; }
.timeline li { position: relative; padding: 0 0 22px 36px; display: grid; gap: 2px; }
.timeline li::before { content: ''; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.timeline li:last-child::before { background: var(--accent); }
.timeline b { font-family: 'Outfit', sans-serif; font-weight: 500; font-size: 18px; }
.timeline span { color: var(--muted); }
.v-gava { background: radial-gradient(90% 90% at 15% 10%, rgba(255,212,102,.65), transparent 60%), radial-gradient(90% 90% at 100% 100%, rgba(255,159,138,.55), transparent 60%), #2a1d33; }
.mock .amt { padding: 6px 10px; border-radius: 999px; border: 1px solid #e3e0e6; font-weight: 600; }
.mock .amt.on { background: #110c18; color: #ffcc55; border-color: #110c18; }
@media (max-width: 820px) { .tldr { grid-template-columns: 1fr; } }

/* Hypothesis bars */
.hypos { list-style: none; margin-top: 28px; display: grid; gap: 14px; }
.hypos li { display: grid; grid-template-columns: minmax(0, 1fr) 1.1fr 40px; gap: 16px; align-items: center; }
.hypos .hl { font-size: 15px; }
.hypos .hbar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--line); }
.hypos .hbar i { display: block; width: calc(var(--w) / 6 * 100%); transform-origin: left; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.hypos .hbar .p { background: #7a52e0; } .hypos .hbar .pa { background: #e3a72f; } .hypos .hbar .n { background: #c9615a; }
.hypos .hc { font-family: 'Outfit', sans-serif; font-weight: 500; text-align: right; color: var(--muted); }
.hypos li.reveal:not(.in) .hbar i { transform: scaleX(0); }
.legend { display: flex; gap: 18px; font-size: 13px; color: var(--muted); margin-top: 14px !important; }
.legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.legend .lp::before { background: #7a52e0; } .legend .lpa::before { background: #e3a72f; } .legend .ln::before { background: #c9615a; }
@media (max-width: 820px) { .hypos li { grid-template-columns: 1fr 40px; } .hypos .hbar { grid-column: 1 / -1; grid-row: 2; } }
.hypos.scores .hbar i.sc { width: calc(var(--w) / 5 * 100%); background: var(--grad); }
h3.sub { font-size: 22px; margin-top: 48px; }
.todos { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.todos li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; padding: 7px 14px 7px 7px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.todos li b { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 12px; min-width: 24px; height: 24px; display: inline-grid; place-items: center; border-radius: 999px; background: linear-gradient(135deg, #a86f00 0%, #a8473f 50%, #6a42d0 100%); color: #fff; }

/* Horizontal timeline */
.tl2 { position: relative; height: 330px; margin: 36px 8px 0; --n: 13; }
.tl2 .axis { position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; background: var(--line); }
.tl2 .months span { position: absolute; top: calc(50% + 12px); left: calc(var(--m) / var(--n) * 100%); transform: translateX(-50%); font-size: 12px; color: var(--muted); font-family: 'Outfit', sans-serif; letter-spacing: .04em; }
.tl2 .months em { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 11px; opacity: .7; }
.tl2 ol { list-style: none; margin: 0; padding: 0; }
.tl2 li { position: absolute; inset: 0; pointer-events: none; }
.tl2 .seg { position: absolute; top: 50%; height: 8px; margin-top: -4px; border-radius: 8px; left: calc(var(--s) / var(--n) * 100%); width: calc((var(--e) - var(--s)) / var(--n) * 100%); }
.tl2 li.r .seg { background: #7a52e0; }
.tl2 li.x .seg { background: repeating-linear-gradient(90deg, #c9615a 0 10px, transparent 10px 16px); }
.tl2 .dot { position: absolute; top: 50%; left: calc(var(--s) / var(--n) * 100%); width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); z-index: 1; }
.tl2 li.r .dot { border-color: #7a52e0; }
.tl2 li.x .dot { border-color: #c9615a; }
.tl2 li.live .dot { width: 26px; height: 26px; margin: -13px 0 0 -13px; border: 0; background: var(--grad); box-shadow: 0 0 0 6px rgba(201,97,90,.15), 0 0 30px rgba(122,82,224,.45); animation: livepulse 2.4s ease-in-out infinite; }
@keyframes livepulse { 0%,100% { box-shadow: 0 0 0 6px rgba(201,97,90,.15), 0 0 24px rgba(122,82,224,.35); } 50% { box-shadow: 0 0 0 12px rgba(201,97,90,0), 0 0 40px rgba(122,82,224,.55); } }
.tl2 .lab { position: absolute; left: calc(var(--l, var(--s)) / var(--n) * 100%); width: 170px; margin-left: -9px; padding-left: 14px; border-left: 1px dashed var(--line); pointer-events: auto; }
.tl2 li.up .lab { bottom: calc(50% + 18px); padding-bottom: 4px; }
.tl2 li.down .lab { top: calc(50% + 56px); padding-top: 4px; }
.tl2 li.live .lab { left: auto; right: -8px; margin: 0; text-align: right; padding: 4px 14px 0 0; border-left: 0; border-right: 1px dashed var(--line); }
.tl2 .lab b { display: block; line-height: 24px; font-family: 'Outfit', sans-serif; font-weight: 500; font-size: 17px; }
.tl2 li.live .lab b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 600; }
.tl2 .lab span { display: block; font-size: 14px; color: var(--muted); line-height: 1.4; }
.tl2 li.reveal { transition: opacity .6s ease, transform .6s ease; }
@media (max-width: 1000px) {
  .tl2 { height: auto; margin: 28px 0 0; }
  .tl2 .axis, .tl2 .months { display: none; }
  .tl2 ol { position: relative; display: grid; }
  .tl2 ol::before { content: ''; position: absolute; left: 8px; top: 10px; bottom: 30px; width: 2px; background: var(--line); }
  .tl2 li { position: relative; inset: auto; padding: 0 0 22px 36px; }
  .tl2 .seg { display: none; }
  .tl2 li .dot { left: 0; top: 3px; margin: 0; }
  .tl2 li.live .dot { left: -4px; top: -1px; margin: 0; }
  .tl2 li .lab, .tl2 li.up .lab, .tl2 li.down .lab, .tl2 li.live .lab { position: static; width: auto; margin: 0; padding: 0; border: 0; text-align: left; }
}
.tl2 li.soft .seg { background: repeating-linear-gradient(90deg, rgba(122,82,224,.35) 0 6px, transparent 6px 10px); height: 4px; margin-top: -2px; }
.tl2 li.soft .dot { display: none; }
@media (max-width: 1000px) { .tl2 li.soft .dot { display: block; border-color: #7a52e0; } }
.lb-hint { display: none; }
.lightbox.zoom .lb-hint { display: block; position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); margin: 0; padding: 8px 16px; border-radius: 999px; background: rgba(17,12,24,.85); color: #f4f1f7; font-size: 13px; pointer-events: none; z-index: 2; }
.lightbox.zoom img { cursor: zoom-in; }
.lightbox.zoom.full { display: block; padding: 24px; }
.lightbox.zoom.full img { max-width: none; width: var(--zw, 6000px); border-radius: 8px; cursor: grab; transform: none; }
.lightbox.zoom.full img:active { cursor: grabbing; }
.tl2.tall { height: 440px; margin-top: -24px; }
.tl2 li.far .lab { top: calc(50% + 150px); }
.tl2 li.far .lab::before { content: ''; position: absolute; left: -1px; top: -94px; height: 94px; border-left: 1px dashed var(--line); }
.tl2 li.r2 .dot { border-color: #7a52e0; }
@media (max-width: 1000px) { .tl2.tall { height: auto; margin-top: 28px; } .tl2 li.far .lab::before { display: none; } }

/* E-shop */
.v-shop { background: radial-gradient(90% 90% at 85% 15%, rgba(169,139,255,.6), transparent 60%), radial-gradient(90% 90% at 10% 100%, rgba(255,212,102,.55), transparent 60%), #241a2e; }
.tl2 li.key .dot { width: 22px; height: 22px; margin: -11px 0 0 -11px; border: 0; background: var(--grad); }
@media (max-width: 1000px) { .tl2 li.key .dot { margin: 0; top: 1px; } }
.mchart { list-style: none; display: grid; grid-template-columns: repeat(10, 1fr); gap: 10px; align-items: end; height: 240px; margin-top: 24px; position: relative; }
.mchart li { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.mchart i { display: block; width: 100%; max-width: 44px; height: calc(var(--v) / 6 * 170px); border-radius: 8px 8px 3px 3px; background: var(--line); transform-origin: bottom; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.mchart li.a i { background: var(--grad); }
.mchart li.mix i { background: linear-gradient(90deg, var(--line) 0 28%, #d99a00 28%, #c9615a 60%, #7a52e0); }
.mchart .v { font-size: 12px; color: var(--muted); font-family: 'Outfit', sans-serif; }
.mchart .m { font-size: 13px; color: var(--muted); }
.mchart li.reveal:not(.in) i { transform: scaleY(0); }
.legend .lb::before { background: var(--line); } .legend .la::before { background: var(--grad); }
.funnel { list-style: none; margin-top: 20px; display: grid; gap: 14px; }
.funnel li { display: grid; grid-template-columns: 150px 1fr 1fr; gap: 16px; align-items: center; }
.funnel li.fh span { font-size: 13px; color: var(--muted); }
.funnel .fl { font-size: 15px; }
.funnel .fb { display: flex; align-items: center; gap: 10px; }
.funnel .fb i { display: block; flex: none; height: 12px; border-radius: 999px; width: calc(var(--w) / 17 * 150px); }
.funnel .fb i.b { background: var(--line); } .funnel .fb i.a { background: var(--grad); }
.funnel em { font-style: normal; font-size: 13px; color: var(--muted); font-family: 'Outfit', sans-serif; }
@media (max-width: 600px) { .funnel li { grid-template-columns: 96px 1fr 1fr; gap: 8px; } .funnel .fb i { width: calc(var(--w) / 17 * 70px); } }

/* FOUC guard: page stays hidden until this file has loaded */

.shots.three { grid-template-columns: repeat(3, 1fr); align-items: start; }
@media (max-width: 820px) { .shots.three { grid-template-columns: 1fr; } }

/* How I use AI */
.ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.ai-item { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.ai-item span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.ai-item h3 { font-size: 21px; margin: 10px 0 8px; }
.ai-item p { color: var(--muted); font-size: 15px; }
@media (max-width: 820px) { .ai-grid { grid-template-columns: 1fr; } }

/* Sastrify */
.v-sas { background: radial-gradient(90% 90% at 20% 15%, rgba(31,138,92,.55), transparent 60%), radial-gradient(90% 90% at 90% 100%, rgba(232,116,44,.5), transparent 60%), #1d1a24; }
.chip-o { font-size: 12px; font-weight: 600; color: #1f8a5c; padding: 7px 12px; }
.dot-c { width: 18px; height: 18px; border-radius: 50%; display: inline-block; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0; }
.compare > div { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.compare > div.pick { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.compare h3 { font-size: 19px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.compare h3 em { font-style: normal; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; background: var(--accent); color: #fff; padding: 4px 9px; border-radius: 999px; }
.compare ul { list-style: none; display: grid; gap: 6px; font-size: 15px; }
.compare ul + ul { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.compare .pros li::before { content: '+ '; color: #1f8a5c; font-weight: 700; }
.compare .cons li::before { content: '− '; color: #c9615a; font-weight: 700; }
.compare .cons li { color: var(--muted); }
@media (max-width: 720px) { .compare { grid-template-columns: 1fr; } }
.decision em { font-style: normal; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; margin-left: 8px; vertical-align: 2px; }
.decision em.cut { background: rgba(201,97,90,.15); color: #c9615a; }
.decision em.kept { background: rgba(31,138,92,.15); color: #1f8a5c; }
.hypos.adopt .hbar { position: relative; overflow: visible; }
.hypos.adopt .hbar i.sc { width: calc(var(--w) / 50 * 100%); border-radius: 999px; }
.hypos.adopt .hbar .tg { position: absolute; left: 90%; top: -5px; bottom: -5px; width: 2px; background: #c9615a; border-radius: 2px; }
.legend .lt::before { background: #c9615a; width: 3px !important; }
.v-sas2 { background: radial-gradient(90% 90% at 85% 15%, rgba(232,116,44,.5), transparent 60%), radial-gradient(90% 90% at 10% 100%, rgba(31,138,92,.5), transparent 60%), #1d1a24; }
.swap { display: flex; align-items: center; justify-content: center; gap: 36px; margin: 20px auto 0; padding: 36px; max-width: 620px; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.swap > div { display: grid; gap: 14px; justify-items: center; }
.swap .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.swap .sb { font: 600 14px/1 'Inter', 'Plus Jakarta Sans', sans-serif; letter-spacing: .04em; text-transform: uppercase; border: 0; border-radius: 6px; padding: 12px 18px; color: #fff; cursor: default; }
.swap .sb.o { background: #e8742c; } .swap .sb.g { background: #1f8a5c; }
.swap .sb.t { background: none; padding: 4px; } .swap .sb.o.t { color: #e8742c; } .swap .sb.g.t { color: #1f8a5c; }
.swap-arrow { font-style: normal; font-size: 28px; color: var(--muted); }
.shots.ba { grid-template-columns: 1fr 1fr; align-items: center; }
.shots.ba .shot img { padding: 14px; box-sizing: border-box; }
@media (max-width: 720px) { .swap { gap: 18px; padding: 22px; } .shots.ba { grid-template-columns: 1fr; } }

/* Foodcircle */
.v-fc { background: radial-gradient(90% 90% at 15% 15%, rgba(226,72,61,.55), transparent 60%), radial-gradient(90% 90% at 90% 100%, rgba(31,122,85,.55), transparent 60%), #22191c; }
.flow { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; counter-reset: f; }
.flow li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.flow li:not(:last-child)::after { content: '→'; position: absolute; right: -11px; top: 22px; color: var(--muted); font-size: 16px; background: var(--bg); line-height: 1; }
.flow b { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #a86f00 0%, #a8473f 50%, #6a42d0 100%); color: #fff; font-family: 'Outfit', sans-serif; font-size: 14px; }
.flow .who { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); font-weight: 600; margin: 12px 0 6px; }
.flow p { font-size: 14px; color: var(--muted); }
.persona { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px auto 0; max-width: 980px; }
.persona div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.persona span { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); font-weight: 600; }
.persona p { margin-top: 6px; font-size: 15px; }
.pains { list-style: none; display: grid; gap: 8px; margin: 22px 0; }
.pains li { padding: 12px 16px 12px 44px; border-radius: 12px; border: 1px solid var(--line); color: var(--muted); position: relative; font-size: 15px; }
.pains li::before { content: '○'; position: absolute; left: 16px; color: var(--muted); }
.pains li.on { background: var(--surface); color: var(--fg, inherit); border-color: var(--accent); }
.pains li.on::before { content: '★'; color: var(--accent); }
.hmw { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.hmw div { border-radius: 18px; padding: 22px; background: linear-gradient(135deg, rgba(217,154,0,.12), rgba(122,82,224,.12)); }
.hmw span { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.hmw p { margin-top: 8px; font-size: 17px; }
.parties { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 26px 0 8px; }
.parties span { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; }
.parties .fc { background: linear-gradient(135deg, #a86f00 0%, #a8473f 50%, #6a42d0 100%); color: #fff; border-color: transparent; }
.journey-wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: start; margin-top: 20px; }
.journey { list-style: none; display: grid; gap: 8px; }
.journey li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; }
.journey li.hl { background: var(--surface); border: 1px solid var(--accent); }
.journey b { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: var(--line); font-family: 'Outfit', sans-serif; }
.journey li.hl b { background: linear-gradient(135deg, #a86f00 0%, #a8473f 50%, #6a42d0 100%); color: #fff; }
.journey p { font-size: 15px; }
.fcfun .hbar i.sc { width: calc(var(--w) * 1%) !important; }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr 1fr; } .flow li::after { display: none; } .persona { grid-template-columns: 1fr 1fr; } .journey-wrap { grid-template-columns: 1fr; } .hmw { grid-template-columns: 1fr; } }

/* Portrait */
.portrait { position: relative; width: 220px; margin: 0 0 32px; aspect-ratio: 4/5; border-radius: 28px; padding: 4px; background: var(--grad); box-shadow: 0 24px 60px rgba(122,82,224,.25), 0 8px 24px rgba(217,154,0,.18); transform: rotate(-2deg); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.portrait:hover { transform: rotate(0deg) scale(1.02); }
.portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; display: block; }
.portrait::after { content: ''; position: absolute; inset: -30px; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,204,85,.35), transparent); filter: blur(10px); }
@media (max-width: 820px) { .portrait { width: 180px; } }

/* Resume */
nav a.on { color: var(--accent); }
.resume-hero .rh { display: flex; align-items: center; gap: 28px; margin-bottom: 18px; }
.portrait.sm { width: 120px; margin: 0; border-radius: 22px; padding: 3px; }
.portrait.sm img { border-radius: 19px; }
.rh-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.btn-lg { display: inline-flex; align-items: center; padding: 12px 20px; border-radius: 999px; background: var(--grad); color: #110c18; font-weight: 600; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; }
.btn-lg.ghost { background: rgba(255,255,255,.08); color: #f4f1f7; border: 1px solid rgba(255,255,255,.18); }
.jobs { list-style: none; margin-top: 28px; position: relative; }
.jobs::before { content: ''; position: absolute; left: 150px; top: 6px; bottom: 10px; width: 2px; background: var(--line); }
.job { display: grid; grid-template-columns: 150px 1fr; gap: 32px; padding-bottom: 40px; position: relative; }
.job::before { content: ''; position: absolute; left: 144px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); box-sizing: border-box; }
.job:first-child::before { background: var(--grad); border: 0; }
.job .when { font-family: 'Outfit', sans-serif; font-size: 14px; color: var(--muted); padding-top: 2px; }
.job h3 { font-size: 20px; } .job h3 span { color: var(--muted); font-weight: 400; }
.job .where { font-size: 13px; color: var(--muted); margin: 2px 0 10px; }
.job ul { margin: 10px 0 0 18px; display: grid; gap: 6px; color: var(--muted); font-size: 15px; }
.job .more { display: inline-block; margin-top: 12px; font-size: 14px; }
.rgrid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chips li { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.langs { list-style: none; margin-top: 14px; display: grid; gap: 8px; }
.langs li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; } .langs span { color: var(--muted); }
@media (max-width: 720px) { .jobs::before, .job::before { display: none; } .job { grid-template-columns: 1fr; gap: 6px; } .rgrid { grid-template-columns: 1fr; } .resume-hero .rh { gap: 18px; } .portrait.sm { width: 90px; } }
@media print {
  nav, footer, .progress, .rh-actions, .next-case, .job .more { display: none !important; }
  html, body { background: #fff !important; color: #111 !important; }
  .case-hero { background: #fff !important; color: #111 !important; padding: 0 0 10px !important; }
  .case-hero::before, .case-hero::after, .portrait::after { display: none !important; }
  .case-hero h1, .case-hero .lead, .eyebrow { color: #111 !important; -webkit-text-fill-color: #111 !important; }
  section { padding: 14px 0 !important; }
  .print-only { display: block !important; }
  .jobs::before { display: none; } .job::before { display: none; }
  .job { grid-template-columns: 110px 1fr; gap: 16px; }
  h2 { font-size: 22px !important; margin-bottom: 4px; }
  .job { break-inside: avoid; padding-bottom: 16px; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .portrait { transform: none !important; box-shadow: none !important; }
}

.print-only { display: none; }
.more-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; } .more-links .more { margin-top: 0; }
.rh-actions button.button { background: none; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.button.primary { font-weight: 700; }

/* Primary button: moving gradient */
.button.primary {
  background: linear-gradient(90deg, #ffd466 0%, #ff9f8a 25%, #a98bff 50%, #ff9f8a 75%, #ffd466 100%);
  background-size: 200% 100%; background-position: 0% 50%;
  border-color: transparent; color: #110c18;
  transition: background-position .7s cubic-bezier(.2,.7,.2,1), transform .25s cubic-bezier(.3,1.6,.5,1), box-shadow .4s ease;
}
.button.primary:hover { background-position: 100% 50%; box-shadow: 0 0 24px rgba(169,139,255,.35), 0 0 10px rgba(255,159,138,.25); }
@media (prefers-reduced-motion: reduce) { .button.primary { transition: none; } }

/* Resume top buttons: compact, one row */
.rh-actions { flex-wrap: nowrap; gap: 8px; }
.rh-actions .button, .rh-actions button.button { padding: 10px 18px; font-size: 14px; line-height: 1.3; white-space: nowrap; font-family: inherit; }
@media (max-width: 720px) { .rh-actions { flex-wrap: wrap; } }

.rh-actions button.button { display: inline-flex; align-items: center; gap: 7px; }
.btn-ico { flex: none; transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.button:hover .btn-ico { transform: translateY(1px); }


/* Board games section */
.games { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 32px; }
.game { display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: transparent; transition: border-color .25s ease, transform .3s ease; }
.game:hover { border-color: var(--accent); }
.game .g-name { font-size: 13px; font-weight: 600; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.game .g-name em { font-style: normal; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: linear-gradient(90deg, #ffd466, #ff9f8a, #a98bff); color: #110c18; }
.game h3 { font-size: 19px; line-height: 1.3; }
.game p { color: var(--muted); font-size: 15px; line-height: 1.55; flex: 1; }
.game .more { font-size: 14px; text-decoration: none; }
.game.fav { border-color: rgba(169,139,255,.45); background: rgba(169,139,255,.06); }

#games .lead { max-width: none; text-wrap: balance; }


/* Hero table: messy pieces dealt to the product trio */
.hero::after { display: none; }
.hero::before { opacity: .45; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero-grid .hero-text h1 { font-size: clamp(40px, 4.8vw, 64px); }
.hero-table { position: relative; width: 100%; }
.ht-canvas { position: absolute; left: 0; top: 0; width: 480px; height: 400px; transform-origin: 0 0; }
.ht-piece { position: absolute; left: 0; top: 0; transition: transform 1.1s cubic-bezier(.3,1.2,.4,1); will-change: transform; }
.ht-piece svg { display: block; filter: drop-shadow(0 3px 4px rgba(0,0,0,.35)); }
.ht-seat { position: absolute; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); opacity: 0; transition: opacity .6s ease .5s; }
.ht-board { position: absolute; left: 82px; top: 62px; width: 316px; height: 200px; border: 1px dashed rgba(255,255,255,.14); border-radius: 16px; opacity: 0; transition: opacity .6s ease .4s; }
.hero-table.dealt .ht-seat, .hero-table.dealt .ht-board { opacity: 1; }
.ht-seat.s0 { left: 12px; top: 34px; }
.ht-seat.s2 { right: 12px; top: 34px; text-align: right; }
.ht-seat.s1 { left: 105px; width: 256px; text-align: center; top: 366px; }
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-table { max-width: 480px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) { .ht-piece, .ht-seat, .ht-board { transition: none !important; } }

.hero-table { cursor: pointer; -webkit-tap-highlight-color: transparent; }

.ht-piece svg { transform: translate(calc(var(--gx, 0) * var(--k, 1) * 1px), calc(var(--gy, 0) * var(--k, 1) * 1px)); transition: transform .3s ease-out; }

.logo { white-space: nowrap; }
@media (max-width: 480px) {
  .logo { font-size: 17px; }
  nav ul { gap: 14px; font-size: 13.5px; }
}
@media (max-width: 360px) { nav ul { gap: 10px; font-size: 13px; } .logo { font-size: 16px; } }


/* Let's talk: the fourth player */
.seats { display: flex; justify-content: center; align-items: flex-end; gap: 14px; margin-bottom: 18px; }
.seat-m { width: 26px; height: 26px; background: var(--c); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Cpath d='M18 2a6 6 0 0 1 6 6a6 6 0 0 1-1.5 4L33 15a3 3 0 0 1-1 5.5L24 20l4 13a2 2 0 0 1-2 2h-5l-3-8-3 8h-5a2 2 0 0 1-2-2l4-13-8 .5a3 3 0 0 1-1-5.5L13.5 12A6 6 0 0 1 12 8a6 6 0 0 1 6-6z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Cpath d='M18 2a6 6 0 0 1 6 6a6 6 0 0 1-1.5 4L33 15a3 3 0 0 1-1 5.5L24 20l4 13a2 2 0 0 1-2 2h-5l-3-8-3 8h-5a2 2 0 0 1-2-2l4-13-8 .5a3 3 0 0 1-1-5.5L13.5 12A6 6 0 0 1 12 8a6 6 0 0 1 6-6z'/%3E%3C/svg%3E") center / contain no-repeat; opacity: .55; }
.pile { position: relative; width: 76px; height: 64px; margin-left: 14px; }
.pile .oval { position: absolute; left: 6px; right: 6px; bottom: -4px; height: 16px; border: 1.5px dashed rgba(95,211,192,.6); border-radius: 50%; }
.yp { position: absolute; left: 50%; bottom: 0; will-change: transform, opacity; opacity: 0; }
.yp svg { display: block; filter: drop-shadow(0 3px 4px rgba(0,0,0,.35)); }
.yp-meeple { transition: transform .45s cubic-bezier(.3,1.6,.5,1); cursor: pointer; }
.seat-eyebrow { color: #5fd3c0 !important; }

.hero-grid > .ht-hint { grid-column: 2; margin: -64px 0 0; position: relative; text-align: center; font-size: 13px; letter-spacing: .04em; color: var(--muted); transition: opacity .4s ease; }
.ht-hint { cursor: pointer; width: fit-content; justify-self: center; padding: 4px 8px; }
.ht-hint::before { content: '↻ '; color: rgba(95,211,192,.55); transition: color .25s ease, text-shadow .25s ease; }
.ht-hint:hover, .ht-hint:focus-visible { color: #fff; opacity: 1; outline: none; }
.ht-hint:hover::before, .ht-hint:focus-visible::before { color: #5fd3c0; text-shadow: 0 0 10px rgba(95,211,192,.7); }
.ht-hint.used { opacity: .6; }
.ht-hint.used:hover, .ht-hint.used:focus-visible { opacity: 1; }
.hero-grid > .ht-hint { transition: opacity .4s ease, color .25s ease; }
@media (max-width: 1000px) { .hero-grid > .ht-hint { grid-column: 1; margin-top: -8px; } }



/* Back to top: player 4's order token, later the bait that goes into the seat */
.totop { position: fixed; right: 24px; bottom: 24px; z-index: 20; width: 40px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s ease, transform .4s cubic-bezier(.3,1.6,.5,1); }
.totop svg { display: block; filter: drop-shadow(0 4px 10px rgba(0,0,0,.45)); transition: filter .25s ease; }
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
@media (hover: hover) {
  .totop.show:hover { transform: translateY(-4px) rotate(-8deg); }
  .totop.show:hover svg { filter: drop-shadow(0 0 12px rgba(95,211,192,.7)); }
}
.totop.gone, .totop.show.gone { opacity: 0; pointer-events: none; transition: none; }
@media (max-width: 600px) { .totop { right: 16px; bottom: 16px; width: 44px; height: 44px; } .totop svg { width: 44px; height: 44px; } }

.hero-table, .ht-hint { overflow-anchor: none; }


/* Final score trophy token on case study cards: gold, silver or bronze by size of the result */
.card-visual { position: relative; }
.score-coin { --m: #e9b949; position: absolute; right: 22px; top: 22px; z-index: 2; width: 96px; height: 96px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #2a2235; color: var(--m); border: 2.5px solid var(--m); box-shadow: 0 10px 22px rgba(0,0,0,.4); transform: rotate(-8deg); transition: transform .45s cubic-bezier(.3,1.6,.5,1); }
.score-coin::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; border: 1px solid var(--m); opacity: .35; }
.score-coin .tr { width: 26px; height: 22px; fill: currentColor; margin-bottom: 2px; }
.score-coin b { font-size: 19px; font-weight: 700; line-height: 1; letter-spacing: -.02em; color: #fff; }
.score-coin span { font-size: 9px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-top: 3px; }
.score-coin.gold { --m: #ffd466; }
.score-coin.silver { --m: #d3d8e0; }
.score-coin.bronze { --m: #d9905a; }
.card:hover .score-coin { transform: rotate(4deg) translateY(-4px); }
.final-score { font-size: 14px; color: var(--ink) !important; margin-top: 14px !important; }
.final-score i { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-right: 6px; }
@media (max-width: 720px) { .score-coin { width: 80px; height: 80px; right: 14px; top: 14px; } .score-coin .tr { width: 20px; height: 17px; } .score-coin b { font-size: 16px; } .score-coin span { font-size: 8px; } }

/* Calmer cards: no lift or tilt on hover, only the trophy reacts when you touch it */
.card:hover { transform: none; }
.card:hover .mock { transform: none; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.card:hover .score-coin { transform: rotate(-8deg); }

/* Table mat always visible, seats always marked */
.ht-seat { opacity: .35; }
.hero-table.dealt .ht-seat { opacity: 1; color: var(--ink); }

.hero-table.sorted .ht-seat { opacity: .1; }


/* Jump chips under the hero: sticky, follow the scroll */
.jump { position: sticky; top: 60px; z-index: 9; background: rgba(17, 12, 24, .82); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.08); }
.jump .wrap { display: flex; gap: 8px; padding-top: 10px; padding-bottom: 10px; overflow-x: auto; scrollbar-width: none; }
.jump .wrap::-webkit-scrollbar { display: none; }
.jchip { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); color: #cfc8da; font-size: 13.5px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background .25s ease, color .25s ease, border-color .25s ease; }
.jchip .d { width: 8px; height: 8px; border-radius: 50%; }
.jchip:hover { border-color: rgba(255,255,255,.4); color: #fff; }
.jchip.on { background: #f4f1f7; color: #110c18; border-color: #f4f1f7; }
#work, #ai, #about, #games, #earlier { scroll-margin-top: 118px; }
@media (max-width: 600px) { .jchip { padding: 7px 12px; font-size: 13px; } }


/* Resume: selected work shortcut */
.portrait.sm { flex: none; }
.mini-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 28px; }
.mini { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 18px; background: var(--surface); text-decoration: none; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: box-shadow .3s ease; }
.mini:hover { box-shadow: 0 16px 40px rgba(0,0,0,.1); }
.mini-score { --m: #e9b949; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 8px; border-radius: 999px; background: #2a2235; color: #fff; font-size: 12.5px; font-weight: 700; border: 1.5px solid var(--m); margin-bottom: 6px; }
.mini-score svg { width: 16px; height: 14px; fill: var(--m); color: var(--m); }
.mini-score.gold { --m: #ffd466; } .mini-score.silver { --m: #d3d8e0; } .mini-score.bronze { --m: #d9905a; }
.mini-ey { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mini-t { font-size: 16px; font-weight: 600; line-height: 1.35; }
.mini-go { margin-top: auto; padding-top: 8px; font-size: 13.5px; font-weight: 600; color: var(--accent); transition: transform .3s ease; }
.mini:hover .mini-go { transform: translateX(5px); }
@media print { .no-print { display: none !important; } }

.mini-score { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.mini-score em { font-style: normal; font-weight: 500; color: #cfc8da; margin-left: 2px; }

/* The jump bar steps aside at Let's talk, so the seat and the meeple stay visible */
.jump { transition: transform .35s ease, opacity .25s ease; }
.jump.away { transform: translateY(-100%); opacity: 0; pointer-events: none; }

/* At the very bottom, Let's talk fills the screen under the menu, so the seat and meeple are always in view */
#contact.contact { padding-bottom: 88px; }

@media (max-width: 720px) {
  #contact.contact { min-height: 0; padding: 44px 0 40px; }
  .contact .lead { font-size: 16.5px !important; line-height: 1.55; }
  .contact .links { margin-top: 24px; gap: 10px; }
  .contact .links .button { padding: 12px 20px; font-size: 15px; }
  .seats { margin-bottom: 10px; }
  footer { padding: 20px 0; }
  footer .wrap { gap: 4px; }
}

/* CV PDF: real A4 margins, no orphaned headers, jobs may continue on the next page */
@page { size: A4; margin: 14mm 15mm 14mm; }
@media print {
  .wrap, .wrap.narrow { max-width: none !important; padding-left: 0 !important; padding-right: 0 !important; }
  .job { break-inside: auto; }
  .job h3, .job .where { break-after: avoid; }
  .job { grid-template-columns: 92px 1fr !important; gap: 14px !important; padding-bottom: 12px !important; }
  .job ul { margin-top: 4px !important; }
  .case-hero .lead { font-size: 15px !important; max-width: none !important; }
  section { padding: 8px 0 !important; }
  .rh { margin-bottom: 8px !important; }
  .rgrid { gap: 24px !important; }
  .job li { break-inside: avoid; }
  h2, .eyebrow { break-after: avoid; }
  .rgrid > * { break-inside: avoid; }
}


/* Long screens: a soft fade shows the cut is intentional (hover scrolls the page) */
.shot.scroll { position: relative; }
.shot.scroll::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 72px; background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,.96)); pointer-events: none; transition: opacity .5s ease; }
.shot.scroll.play::after { opacity: 0; }
/* Lighter phone frames */


/* Kind words: big, short quotes */
.kw { display: grid; gap: 44px; margin-top: 36px; }
.kw-q { margin: 0; }
.kw-q blockquote { margin: 0; font-family: 'Outfit', sans-serif; font-weight: 500; font-size: clamp(24px, 3.2vw, 36px); line-height: 1.25; letter-spacing: -0.02em; }
.kw-q blockquote::before { content: '“'; display: block; font-size: 1.8em; line-height: .6; height: .45em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kw-q figcaption { margin-top: 14px; font-size: 15px; color: var(--muted); }
.kw-q figcaption b { color: var(--ink); font-weight: 600; margin-right: 6px; }
#kind-words { scroll-margin-top: 118px; }

/* Contact buttons with icons */
.links .button { display: inline-flex; align-items: center; gap: 8px; }
.copy-mail { font: inherit; font-weight: 700; cursor: pointer; }
.copy-mail.done .cm-txt::after { content: ''; }
.copy-mail .btn-ico, .links .button .btn-ico { flex: none; }

/* Case study modal */
.cmodal { position: fixed; inset: 0; z-index: 100; background: rgba(17,12,24,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s ease; }
.cmodal.open { opacity: 1; }
.cmodal .cm-sheet { position: absolute; inset: 36px 36px 0; border-radius: 22px 22px 0 0; overflow: hidden; background: #110c18; transform: translateY(40px); transition: transform .45s cubic-bezier(.2,.8,.2,1); box-shadow: 0 -10px 60px rgba(0,0,0,.4); }
.cmodal.open .cm-sheet { transform: none; }
.cmodal iframe { width: 100%; height: 100%; border: 0; display: block; background: #110c18; }
@media (max-width: 600px) { .cmodal .cm-sheet { inset: 8px 0 0; border-radius: 18px 18px 0 0; } }
html.cm-lock, html.cm-lock body { overflow: hidden; }
html.in-modal nav, html.in-modal .totop { display: none !important; }
html.in-modal .case-hero { padding-top: 72px; }

.copy-mail { justify-content: center; }

/* Copy-email is a <button>: keep the primary gradient look everywhere, also in the resume header */
.rh-actions button.button.primary, .links button.button.primary {
  background: linear-gradient(90deg, #ffd466 0%, #ff9f8a 25%, #a98bff 50%, #ff9f8a 75%, #ffd466 100%);
  background-size: 200% 100%; background-position: 0% 50%; color: #110c18; border-color: transparent; font-weight: 700;
}
.rh-actions button.button.primary:hover, .links button.button.primary:hover { background-position: 100% 50%; }

.rh-actions .button { display: inline-flex; align-items: center; gap: 8px; }

/* Desktop: the "Click to sort" hint sits on the same line as the hero chips */
@media (min-width: 1001px) {
  .hero-grid { grid-template-rows: 1fr auto; align-items: end; }
  .hero-grid > .hero-text { grid-column: 1; grid-row: 1 / span 2; align-self: end; }
  .hero-grid > .hero-table { grid-column: 2; grid-row: 1; align-self: end; }
  .hero-grid > .ht-hint { grid-column: 2; grid-row: 2; margin: 0 !important; align-self: center; position: relative; top: -5px; }
}


/* Copy email: fixed size, sliding label */
.copy-mail { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
.copy-mail .cm-stack { display: grid; overflow: hidden; }
.copy-mail .cm-a, .copy-mail .cm-b { grid-area: 1 / 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; transition: transform .38s cubic-bezier(.2,.8,.2,1), opacity .28s ease; }
.copy-mail .cm-b { transform: translateY(105%); opacity: 0; }
.copy-mail.done .cm-a { transform: translateY(-105%); opacity: 0; }
.copy-mail.done .cm-b { transform: none; opacity: 1; }
.copy-mail .cm-check path { stroke-dasharray: 22; stroke-dashoffset: 22; transition: stroke-dashoffset .35s ease .18s; }
.copy-mail.done .cm-check path { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) { .copy-mail .cm-a, .copy-mail .cm-b, .copy-mail .cm-check path { transition: none; } }


/* Case modal controls: round buttons like the reference, springy hover like the table pieces */
.cmodal .cm-nav { position: absolute; top: 18px; left: 18px; z-index: 2; display: flex; gap: 10px; }
.cmodal .cm-btn { width: 48px; height: 48px; padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); background: #110c18; color: #f4f1f7; cursor: pointer; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(17,12,24,.16); transition: transform .35s cubic-bezier(.3,1.6,.5,1), background .2s ease, color .2s ease, box-shadow .25s ease; }
.cmodal .cm-close { position: absolute; z-index: 2; top: 18px; right: 26px; width: 48px; height: 48px; font-size: 0; }
.cmodal .cm-btn:hover { background: #5fd3c0; color: #110c18; box-shadow: 0 4px 12px rgba(17,12,24,.2); }
.cmodal .cm-btn:focus-visible { outline: 2px solid #5fd3c0; outline-offset: 3px; }
.cmodal iframe { transition: opacity .18s ease; }
.cmodal iframe.swap { opacity: 0; }
@media (max-width: 600px) { .cmodal .cm-nav { top: 12px; left: 12px; gap: 8px; } .cmodal .cm-btn { width: 42px; height: 42px; } .cmodal .cm-close { top: 12px; right: 12px; } }
/* Scrollbar inside the modal: dark, thin, clear of the rounded corner */
html.in-modal .progress { display: none !important; }
html.in-modal { scrollbar-width: none; }
html.in-modal::-webkit-scrollbar { display: none; width: 0; height: 0; }
/* Overlay scrollbar drawn by the modal, inside the rounded sheet */
.cmodal .cm-bar { position: absolute; top: 84px; bottom: 16px; right: 6px; width: 10px; z-index: 2; }
.cmodal .cm-thumb { position: absolute; left: 2px; right: 2px; top: 0; min-height: 40px; border-radius: 99px; background: rgba(120,110,135,.55); box-shadow: 0 0 0 1px rgba(255,255,255,.12); cursor: grab; transition: background .2s ease, left .2s ease, right .2s ease; }
.cmodal .cm-bar:hover .cm-thumb, .cmodal .cm-thumb.drag { background: rgba(120,110,135,.85); left: 0; right: 0; }
.cmodal .cm-thumb.drag { cursor: grabbing; }
.cmodal .cm-bar.none { display: none; }
@media (hover: none) { .cmodal .cm-bar { display: none; } html.in-modal { scrollbar-width: auto; } html.in-modal::-webkit-scrollbar { display: initial; } }
html.in-modal .case-hero { padding-top: 84px; }


/* Compact Let's talk at the end of each case study */
.contact-mini { padding: 72px 0 80px; text-align: center; }
.contact-mini h2 { text-wrap: balance; margin: 6px 0 0; font-size: clamp(32px, 4.4vw, 48px); }
.contact-mini .links { margin-top: 28px; }
.contact-mini .links { justify-content: center; }
.contact-mini .seat-you { position: relative; display: grid; place-items: end center; width: 52px; height: 40px; margin-left: 6px; }
.contact-mini .seat-you::after { content: ''; position: absolute; left: 0; right: 0; bottom: -5px; height: 14px; border: 1.5px dashed rgba(95,211,192,.6); border-radius: 50%; }
.contact-mini .seat-you .seat-m { position: relative; z-index: 1; width: 32px; height: 32px; opacity: 1; filter: drop-shadow(0 3px 8px rgba(95,211,192,.35)); }
@media (max-width: 720px) { .contact-mini { padding: 52px 0 60px; } }


.hero h1 .w { padding-bottom: .14em; margin-bottom: -.14em; }


@media (max-width: 720px) { .hero-meta { flex-wrap: nowrap; gap: 5px; } .hero-meta .chip { font-size: 11.5px; padding: 5px 8px; white-space: nowrap; } .hero-meta .chip.dot::before { width: 7px; height: 7px; margin-right: 5px; } }
@media (max-width: 389px) { .hero-meta { flex-wrap: wrap; gap: 6px; } .hero-meta .chip { font-size: 12px; padding: 6px 10px; } }



html.in-modal .lightbox { backdrop-filter: none; -webkit-backdrop-filter: none; background: #1a1422; }
.cmodal iframe { border-radius: 22px 22px 0 0; }
@media (max-width: 600px) { .cmodal iframe { border-radius: 18px 18px 0 0; } }


/* Off the clock: game table with speech-bubble cards */
.gtable { position: relative; display: block; height: 440px; margin-top: 36px; border-radius: 28px; background: radial-gradient(ellipse at 50% 40%, #2a2036 0%, #1b1424 70%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 30px 60px -30px rgba(17,12,24,.5); }
.gspot { position: absolute; width: 156px; transform: translate(-50%, -50%); }
.gs-1 { left: 15%; top: 77%; } .gs-2 { left: 38%; top: 71%; } .gs-3 { left: 62%; top: 78%; } .gs-4 { left: 85%; top: 72%; }
.gpiece { all: unset; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; cursor: pointer; }
.gpiece svg { width: 148px; height: 148px; transition: transform .4s cubic-bezier(.3,1.6,.5,1), filter .3s ease; }
.gspot:hover .gpiece svg, .gspot.open .gpiece svg, .gpiece:focus-visible svg { transform: translate(var(--hx, 0px), var(--hy, -10px)) rotate(var(--hr, -6deg)); filter: drop-shadow(0 12px 14px rgba(0,0,0,.35)); }
.gpiece .g-name { font-size: 13px; font-weight: 600; color: rgba(244,241,247,.6); text-align: center; transition: color .2s ease; }
.gspot:hover .g-name, .gspot.open .g-name { color: #f4f1f7; }
.gpiece:focus-visible { outline: 2px solid #5fd3c0; outline-offset: 6px; border-radius: 12px; }
.gbubble { position: absolute; bottom: calc(100% + 6px); left: 50%; width: 330px; padding: 18px 20px 16px; border-radius: 18px; background: #f4f1ec; color: #110c18; box-shadow: 0 18px 40px rgba(0,0,0,.35); opacity: 0; visibility: hidden; transform: translate(-50%, 10px) scale(.96); transform-origin: 50% 100%; transition: opacity .2s ease, transform .3s cubic-bezier(.3,1.4,.5,1), visibility 0s linear .3s; z-index: 3; }
.gbubble::after { content: ''; position: absolute; top: calc(100% - 1px); left: var(--tail, 50%); width: 22px; height: 15px; margin-left: -11px; background: #f4f1ec; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.gbubble::before { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
.gs-1 .gbubble { left: 0; transform: translate(0, 10px) scale(.96); transform-origin: 20% 100%; --tail: 78px; }
.gs-4 .gbubble { left: auto; right: 0; transform: translate(0, 10px) scale(.96); transform-origin: 80% 100%; --tail: calc(100% - 78px); }
.gspot:hover .gbubble, .gspot:has(:focus-visible) .gbubble, .gspot.open .gbubble { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition: opacity .2s ease, transform .35s cubic-bezier(.3,1.4,.5,1), visibility 0s; }
.gs-1:hover .gbubble, .gs-1:has(:focus-visible) .gbubble, .gs-1.open .gbubble, .gs-4:hover .gbubble, .gs-4:has(:focus-visible) .gbubble, .gs-4.open .gbubble { transform: none; }
.gspot:hover, .gspot:has(:focus-visible), .gspot.open { z-index: 4; }
.gbubble .gb-name { display: flex; gap: 8px; align-items: center; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #6b6475; margin-bottom: 6px; }
.gbubble .gb-name em { font-style: normal; text-transform: none; letter-spacing: 0; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: linear-gradient(90deg, #ffd466, #ff9f8a, #a98bff); color: #110c18; }
.gbubble h3 { font-size: 19px; line-height: 1.25; margin: 0 0 8px; color: #110c18; }
.gbubble p { font-size: 14.5px; line-height: 1.55; color: #4a4252; margin: 0 0 10px; }
.gbubble .more { font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; }
.gbubble .more:hover { text-decoration: underline; }
@media (max-width: 900px) { .gspot { width: 110px; } .gpiece svg { width: 96px; height: 96px; } .gbubble { width: 290px; } }
@media (max-width: 720px), (hover: none) {
  .gtable { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 8px; padding: 28px 12px 44px; }
  .gspot { position: relative; left: auto !important; top: auto !important; transform: none; width: auto; }
  .gbubble { position: absolute; top: calc(100% + 12px); bottom: auto; left: 0 !important; right: auto !important; width: calc(200% + 8px); transform: translateY(-6px) scale(.97) !important; transform-origin: 25% 0; }
  .gspot:nth-child(even) .gbubble { left: calc(-100% - 8px) !important; transform-origin: 75% 0; }
  .gbubble::after { top: auto; bottom: calc(100% - 1px); clip-path: polygon(50% 0, 100% 100%, 0 100%); left: 25%; }
  .gspot:nth-child(even) .gbubble::after { left: 75%; }
  .gbubble::before { top: auto; bottom: 100%; }
  .gspot:hover .gbubble { opacity: 0; visibility: hidden; }
  .gspot.open .gbubble { opacity: 1; visibility: visible; transform: none !important; }
  .gspot:hover .gpiece svg { transform: none; filter: none; }
  .gspot.open .gpiece svg { transform: translateY(-8px) rotate(-6deg); }
}

.g-hint { margin: 14px auto 0; width: fit-content; font-size: 13px; letter-spacing: .04em; color: var(--muted); text-align: center; }
.g-hint { display: flex; align-items: center; gap: 6px; }
.g-hint::before { content: ''; width: 14px; height: 14px; background: #5fd3c0; -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M9%203.5a1.75%201.75%200%200%201%203.5%200V10l.5-.1a1.6%201.6%200%200%201%202%20.9%201.6%201.6%200%200%201%202.3.9%201.6%201.6%200%200%201%202.7%201.1V16c0%203.3-2.4%206-5.6%206h-1.3c-1.7%200-3.2-.8-4.2-2.1L4.6%2015.4a1.6%201.6%200%200%201%202.4-2.1L9%2015V3.5Z%22%20fill%3D%22black%22/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M9%203.5a1.75%201.75%200%200%201%203.5%200V10l.5-.1a1.6%201.6%200%200%201%202%20.9%201.6%201.6%200%200%201%202.3.9%201.6%201.6%200%200%201%202.7%201.1V16c0%203.3-2.4%206-5.6%206h-1.3c-1.7%200-3.2-.8-4.2-2.1L4.6%2015.4a1.6%201.6%200%200%201%202.4-2.1L9%2015V3.5Z%22%20fill%3D%22black%22/%3E%3C/svg%3E") center / contain no-repeat; }

.lightbox img { margin: auto; }
.cmodal .cm-sheet { background: #1a1422; }

/* Phone shots: same clean card as desktop, no black bezel */
.shot.phone { border: 1px solid var(--line); border-radius: 20px; box-shadow: none; }
@media (max-width: 720px) { .shot.phone { border-width: 1px; } }
.shot .sticky-bar { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: auto !important; object-fit: contain !important; background: #fff; box-shadow: 0 -6px 18px rgba(17,12,24,.08); z-index: 2; pointer-events: none; transition: none !important; }
.shot.has-bar::after { display: none; }

/* Decision cards: stand out at rest, like cards dealt on the table */
.decisions { counter-reset: dec; }
.decision { position: relative; counter-increment: dec; padding-left: 70px; box-shadow: 0 1px 2px rgba(17,12,24,.04), 0 8px 20px -12px rgba(17,12,24,.18); }
.decision::before { content: counter(dec); position: absolute; left: 20px; top: 20px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 700 14px/1 Outfit, sans-serif; color: #110c18; background: #ffd466; box-shadow: inset 0 -3px 0 rgba(0,0,0,.14); }
.decision:nth-child(odd) { --rest: -.35deg; } .decision:nth-child(even) { --rest: .35deg; }
.reveal.in.decision { transform: rotate(var(--rest, 0deg)); }
@media (max-width: 720px) { .decision { padding-left: 62px; } .decision::before { left: 16px; width: 30px; height: 30px; } .reveal.in.decision { transform: none; } }

.shot, .shot.zoomable, .shot img { cursor: default !important; }

/* Checkout flow slideshow */
.shot.flow { aspect-ratio: 3024 / 2440; height: auto; }
.shot.flow img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .3s ease; }
.shot.flow img.on { opacity: 1; }
.flow-steps { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.flow-steps button { font: inherit; font-size: 13px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; transition: all .3s ease; }
.flow-steps button.on { color: var(--ink); background: var(--surface); border-color: var(--ink); }
.shot.flow, .shot.flow img { cursor: pointer !important; }
/* Phones: wide scrolling shots keep full width and scroll inside instead of cropping the sides */
@media (max-width: 760px) {
  .shot.scroll:not(.phone):not(.mbp):not(.mbp-sm) { height: auto !important; max-height: 70vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .shot.scroll:not(.phone):not(.mbp):not(.mbp-sm) img { height: auto; object-fit: contain; }
  .shot.scroll:not(.phone):not(.mbp):not(.mbp-sm)::after { display: none; }
}
/* Phone shots: real phone proportions (about 9:19.5) instead of a short fixed height */
.shot.phone { height: auto !important; aspect-ratio: 9 / 19.5; }
.shot.phone img:not(.sticky-bar) { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 720px) { .shot.phone { max-width: min(280px, 72vw) !important; } }
/* Desktop screens shown in a MacBook Pro 14" window (1512 x 982), scrolling inside */
.shot.mbp { height: auto !important; aspect-ratio: 1512 / 982; }
.shot.mbp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot.mbp.play img { object-position: bottom; }
.cmodal:focus { outline: none; }
/* Mobile checkout flow inside a phone */
.shot.phone.flow { aspect-ratio: 9 / 19.5; }
.shot.phone.flow img { object-fit: cover; object-position: top; }
/* Checkout step pills: warm borders, active pill gets the site gradient */
.flow-steps button { border-color: #e3dbe6; }
.flow-steps button.on { border: 1px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; color: var(--ink); }
@media (max-width: 460px) { .flow-steps { gap: 4px; } .flow-steps button { font-size: 11px; padding: 5px 8px; } }
@media (max-width: 760px) {
  .shot.mbp-sm { height: auto !important; aspect-ratio: 1512 / 982; }
  .shot.mbp-sm img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
  .shot.mbp-sm.play img { object-position: bottom; }
}
/* Desktop / Mobile switch */
.vpane[hidden] { display: none !important; }
.vtabs { display: grid; grid-template-columns: 1fr 1fr; width: fit-content; gap: 4px; margin: 0 auto 18px; padding: 4px; border: 2px solid #e2d9cc; border-radius: 999px; background: var(--surface); }
.vtabs button { font: inherit; font-size: 13.5px; font-weight: 700; letter-spacing: .01em; color: var(--ink); background: transparent; border: 0; border-radius: 999px; padding: 7px 26px; cursor: pointer; transition: color .25s ease, background .25s ease; }
.vtabs button:not(.on):hover { background: rgba(226, 217, 204, .45); }
.vtabs button.on { color: #17121d; background: var(--grad); }
.vtabs button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.vswitch.eq .vpane[data-v="m"] .shot.phone { height: var(--vh) !important; width: calc(var(--vh) * 9 / 19.5); max-width: none !important; margin: 0 auto; }
@media (max-width: 760px) { .vswitch .vpane[data-v="m"] .shot.phone { margin: 0 auto; } .vtabs button { font-size: 13px; padding: 6px 22px; } }
/* Hero: table flip. The mat flips away, the seats fade, the pieces fly (positions are set in main.js) */
.hero { overflow-x: clip; overflow-y: visible; }
.hero-table.flipped { z-index: 40; }
.hero-table.flipped .ht-piece { pointer-events: none; }
.ht-board { transition: opacity .6s ease .4s, transform .7s cubic-bezier(.3,1.3,.5,1); transform-origin: 50% 100%; }
.hero-table.flipped .ht-board { transform: perspective(700px) rotateX(-75deg) translateY(-30px); opacity: 0; transition: opacity .5s ease .15s, transform .6s cubic-bezier(.2,.9,.3,1); }
.hero-table.flipped .ht-seat { opacity: 0; transition: opacity .3s ease; }

/* Case study cards: a stronger hover */
.card { position: relative; isolation: isolate; }
.card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 2px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s ease; pointer-events: none; z-index: 3; }
.card-visual::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .35s ease; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 40%), rgba(255, 255, 255, .22), transparent 60%); }
.card .mock { position: relative; z-index: 2; }
@media (hover: hover) {
  .card:hover { transform: translateY(-8px); box-shadow: 0 32px 70px rgba(122, 82, 224, .22), 0 12px 28px rgba(0, 0, 0, .12); }
  .card:hover::after { opacity: 1; }
  .card:hover .card-visual::before { opacity: 1; }
  .card:hover .mock { transform: translateY(-10px) rotate(-2deg) scale(1.04); box-shadow: 0 30px 60px rgba(0, 0, 0, .4); }
  .card:hover .score-coin { transform: rotate(10deg) translateY(-6px) scale(1.08); }
  .card:hover .more { transform: translateX(8px); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
@media (prefers-reduced-motion: reduce) { .card:hover, .card:hover .mock, .card:hover .score-coin { transform: none !important; } }
/* Hero pieces in 3D: stacked layers give each piece a real thickness when it turns */
.ht-piece { perspective: 520px; }
.ht-3d { position: relative; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; }
.ht-l { position: absolute; left: 0; top: 0; }
.ht-l.ht-front { position: relative; }
.ht-l:not(.ht-front) svg { filter: brightness(.5) saturate(.85); }
/* While the pieces are in the air they pass in front of the section bar */
nav { z-index: 11; }
.hero.tossing .wrap { z-index: 10; }
/* Solid pieces (cubes and the d12) */
.ht-solid { position: relative; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; }
.ht-f { position: absolute; left: 0; top: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; -webkit-transform-style: preserve-3d; }
.ht-shade { position: absolute; inset: 0; display: block; pointer-events: none; }
.ht-piece .ht-f svg { filter: none; }
.ht-cf svg { width: 100%; height: 100%; }
.stats { perspective: 900px; }
.stat, .stats .stat.reveal.in { position: relative; isolation: isolate; overflow: hidden; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .3s ease; }
.stat::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s ease; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 212, 102, .28), transparent 65%); }
.stat::after { content: ''; position: absolute; inset: 0; border-radius: 19px; padding: 1.5px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.stat b { transition: transform .45s cubic-bezier(.3,1.6,.5,1); transform-origin: 0 100%; }
@media (hover: hover) {
  .stat:hover, .stats .stat.reveal.in:hover { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px); transition: transform .12s ease-out, box-shadow .35s ease, border-color .3s ease; box-shadow: 0 22px 44px rgba(122, 82, 224, .16), 0 8px 18px rgba(0, 0, 0, .06); border-color: transparent; }
  .stat:hover::before, .stat:hover::after { opacity: 1; }
  .stat:hover b { transform: scale(1.08) translateY(-2px); }
}
/* Quotes in case studies: a card with a 3D yellow meeple, same hover as the stat cards */
.quote { position: relative; isolation: isolate; overflow: hidden; margin: 40px 0; padding: 30px 34px 30px 112px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; font-weight: 500; font-size: clamp(21px, 2.5vw, 28px); line-height: 1.3; letter-spacing: -0.02em; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .3s ease; }
.quote small { margin-top: 14px; font-size: 15px; }
.quote::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s ease; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 212, 102, .26), transparent 65%); }
.quote::after { content: ''; position: absolute; inset: 0; border-radius: 23px; padding: 1.5px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.q-wrap { perspective: 900px; }
.q-meeple { display: block; position: absolute; left: 32px; top: 30px; width: 52px; height: 52px; perspective: 400px; }
.q-meeple .m3 { display: block; position: relative; width: 52px; height: 52px; transform-style: preserve-3d; transform: rotateX(-14deg) rotateY(-28deg); transition: transform .8s cubic-bezier(.3,1.4,.5,1); }
.q-meeple .m3 > i { position: absolute; inset: 0; background: #c99a1a; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Cpath d='M18 2a6 6 0 0 1 6 6a6 6 0 0 1-1.5 4L33 15a3 3 0 0 1-1 5.5L24 20l4 13a2 2 0 0 1-2 2h-5l-3-8-3 8h-5a2 2 0 0 1-2-2l4-13-8 .5a3 3 0 0 1-1-5.5L13.5 12A6 6 0 0 1 12 8a6 6 0 0 1 6-6z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Cpath d='M18 2a6 6 0 0 1 6 6a6 6 0 0 1-1.5 4L33 15a3 3 0 0 1-1 5.5L24 20l4 13a2 2 0 0 1-2 2h-5l-3-8-3 8h-5a2 2 0 0 1-2-2l4-13-8 .5a3 3 0 0 1-1-5.5L13.5 12A6 6 0 0 1 12 8a6 6 0 0 1 6-6z'/%3E%3C/svg%3E") center / contain no-repeat; }
.q-meeple .m3 > i.f { background: #ffd466; }
.q-meeple .m3 > i.f::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,.45), transparent 45%); }
.q-meeple::after { content: ''; position: absolute; left: 6px; right: 6px; bottom: -8px; height: 8px; border-radius: 50%; background: rgba(0,0,0,.14); filter: blur(3px); transition: transform .8s cubic-bezier(.3,1.4,.5,1), opacity .5s ease; }
@media (hover: hover) {
  .quote:hover { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px); transition: transform .12s ease-out, box-shadow .35s ease, border-color .3s ease; box-shadow: 0 22px 44px rgba(122, 82, 224, .16), 0 8px 18px rgba(0, 0, 0, .06); border-color: transparent; }
  .quote:hover::before, .quote:hover::after { opacity: 1; }
  .quote:hover .q-meeple .m3 { transform: translateY(-10px) rotateX(-10deg) rotateY(332deg); }
  .quote:hover .q-meeple::after { transform: scale(.7); opacity: .6; }
}
@media (max-width: 600px) { .quote { padding: 92px 24px 26px; } .q-meeple { left: 24px; top: 24px; width: 44px; height: 44px; } .q-meeple .m3 { width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) { .quote, .quote:hover, .q-meeple .m3 { transform: none !important; } }

/* Summary and audience cards: same tilt, light and gradient edge as the stat cards */
.tldr, .duo { perspective: 900px; }
.tldr > div, .duo-item, .reveal.in.duo-item { position: relative; isolation: isolate; overflow: hidden; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .3s ease, opacity .7s ease; }
.tldr > div::before, .duo-item::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s ease; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 212, 102, .26), transparent 65%); }
.tldr > div::after, .duo-item::after { content: ''; position: absolute; inset: 0; border-radius: 19px; padding: 1.5px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.duo-item::after { border-radius: 15px; }
.duo-icon { display: inline-block; transition: transform .5s cubic-bezier(.3,1.6,.5,1); }
@media (hover: hover) {
  .tldr > div:hover, .duo-item:hover, .reveal.in.duo-item:hover { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px); transition: transform .12s ease-out, box-shadow .35s ease, border-color .3s ease; box-shadow: 0 22px 44px rgba(122, 82, 224, .16), 0 8px 18px rgba(0, 0, 0, .06); border-color: transparent; }
  .tldr > div:hover::before, .tldr > div:hover::after, .duo-item:hover::before, .duo-item:hover::after { opacity: 1; }
  .duo-item:hover .duo-icon { transform: translateY(-6px) rotate(-10deg) scale(1.2); }
}
@media (prefers-reduced-motion: reduce) { .tldr > div, .duo-item, .duo-icon { transform: none !important; } }
/* Findings: the label column takes the width of the longest label, so words are never cut */
.findings { grid-template-columns: max-content 1fr; column-gap: 20px; }
.findings li { grid-column: 1 / -1; grid-template-columns: subgrid; gap: 0 20px; }
.findings b { min-width: 60px; padding-right: 2px; }
@media (max-width: 720px) { .findings li { grid-template-columns: subgrid; } .findings b { font-size: 20px; } }
/* Insight cards: same tilt and light as the other cards, the dot becomes a game disc that flips on hover */
.insights { perspective: 900px; }
.insight { position: relative; isolation: isolate; overflow: hidden; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .3s ease, opacity .7s ease; }
.insight::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s ease; background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 212, 102, .24), transparent 65%); }
.insight::after { content: ''; position: absolute; inset: 0; border-radius: 19px; padding: 1.5px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.insights .n::before { --dc: #ffd466; --de: #c99a1a; width: 14px; height: 14px; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.55), transparent 45%), var(--dc); box-shadow: 0 2.5px 0 var(--de), 0 4px 6px rgba(0,0,0,.18); margin-right: 12px; position: relative; top: -2px; transition: transform .6s cubic-bezier(.3,1.5,.5,1); }
.insights .insight:nth-child(4n+2) .n::before { --dc: #ff9f8a; --de: #d0644d; }
.insights .insight:nth-child(4n+3) .n::before { --dc: #a98bff; --de: #7a52e0; }
.insights .insight:nth-child(4n+4) .n::before { --dc: #5fd3c0; --de: #2a9d8a; }
@media (hover: hover) {
  .insight:hover { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-5px); transition: transform .12s ease-out, box-shadow .35s ease, border-color .3s ease; box-shadow: 0 22px 44px rgba(122, 82, 224, .14), 0 8px 18px rgba(0, 0, 0, .05); border-color: transparent; }
  .insight:hover::before, .insight:hover::after { opacity: 1; }
  .insight:hover .n::before { transform: translateY(-5px) rotateX(360deg); }
}
@media (prefers-reduced-motion: reduce) { .insight, .insights .n::before { transform: none !important; } }
/* Audience cards: 3D game pieces instead of emoji */
.duo-icon.piece { display: block; width: 40px; height: 40px; margin-bottom: 14px; perspective: 400px; font-size: 0; }
.duo-icon.piece .m3 { display: block; position: relative; width: 40px; height: 40px; transform-style: preserve-3d; transform: rotateX(-14deg) rotateY(-28deg); transition: transform .8s cubic-bezier(.3,1.4,.5,1); }
.duo-icon.piece .m3 > i { position: absolute; inset: 0; background: var(--pe); -webkit-mask: var(--shape) center / contain no-repeat; mask: var(--shape) center / contain no-repeat; }
.duo-icon.piece .m3 > i.f { background: linear-gradient(160deg, rgba(255,255,255,.45), transparent 45%), var(--pc); }
.duo-icon.piece[data-piece="meeple"] { --shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Cpath d='M18 2a6 6 0 0 1 6 6a6 6 0 0 1-1.5 4L33 15a3 3 0 0 1-1 5.5L24 20l4 13a2 2 0 0 1-2 2h-5l-3-8-3 8h-5a2 2 0 0 1-2-2l4-13-8 .5a3 3 0 0 1-1-5.5L13.5 12A6 6 0 0 1 12 8a6 6 0 0 1 6-6z'/%3E%3C/svg%3E"); }
.duo-icon.piece[data-piece="house"] { --shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Cpath d='M18 3 33 15v17a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V15Z'/%3E%3C/svg%3E"); }
@media (hover: hover) { .duo-item:hover .duo-icon.piece { transform: none; } .duo-item:hover .duo-icon.piece .m3 { transform: translateY(-8px) rotateX(-10deg) rotateY(332deg); } }
/* Summary cards: violet labels, violet hover */
.tldr span { color: #6a42d0; }
.tldr > div::before { background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(169, 139, 255, .26), transparent 65%); }
.tldr > div::after { background: linear-gradient(135deg, #a98bff, #7a52e0); }
@media (hover: hover) { .tldr > div:hover { box-shadow: 0 22px 44px rgba(122, 82, 224, .22), 0 8px 18px rgba(0, 0, 0, .05); } }
/* What I learned: three numbered cards and a "Next turn" strip */
.lessons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; perspective: 900px; }
.lesson { position: relative; isolation: isolate; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .3s ease; }
.lesson .ln { display: block; font-family: 'Outfit', sans-serif; font-weight: 500; font-size: 40px; line-height: 1; letter-spacing: -0.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 14px; transition: transform .45s cubic-bezier(.3,1.6,.5,1); transform-origin: 0 100%; }
.lesson h3 { font-size: 18px; line-height: 1.3; margin: 0 0 8px; }
.lesson p { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0; }
.lesson::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s ease; background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 212, 102, .26), transparent 65%); }
.lesson::after { content: ''; position: absolute; inset: 0; border-radius: 19px; padding: 1.5px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.next-turn { display: flex; align-items: flex-start; gap: 18px; margin-top: 18px; padding: 22px 24px; border-radius: 20px; background: linear-gradient(135deg, rgba(169, 139, 255, .14), rgba(169, 139, 255, .04)); border: 1px solid rgba(169, 139, 255, .35); }
.next-turn .duo-icon.piece { flex: none; margin: 2px 0 0; }
.next-turn .nt-l { display: block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #6a42d0; margin-bottom: 6px; }
.next-turn p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink); }
@media (hover: hover) {
  .lesson:hover { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px); transition: transform .12s ease-out, box-shadow .35s ease, border-color .3s ease; box-shadow: 0 22px 44px rgba(122, 82, 224, .16), 0 8px 18px rgba(0, 0, 0, .06); border-color: transparent; }
  .lesson:hover::before, .lesson:hover::after { opacity: 1; }
  .lesson:hover .ln { transform: scale(1.1) translateY(-2px); }
  .next-turn:hover .duo-icon.piece .m3 { transform: translateY(-8px) rotateX(-10deg) rotateY(332deg); }
}
@media (max-width: 820px) { .lessons { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .lesson, .lesson .ln { transform: none !important; } }
/* Hero tags: plain text, not buttons. The status keeps its pulsing dot */
.hero-meta { align-items: center; gap: 0 !important; flex-wrap: wrap !important; }
.hero-meta .chip { border: 0; background: none; backdrop-filter: none; padding: 0 !important; border-radius: 0; color: var(--muted); font-size: 14px !important; cursor: default; white-space: nowrap; }
.hero-meta .chip:hover { transform: none; }
.hero-meta .chip.dot { color: var(--ink); font-weight: 600; }
.hero-meta .chip + .chip::before { content: '·'; margin: 0 10px; color: var(--muted); opacity: .6; }
@media (max-width: 720px) { .hero-meta .chip { font-size: 13px !important; } .hero-meta .chip + .chip::before { margin: 0 7px; } }
@media (max-width: 430px) { .hero-meta { flex-wrap: nowrap !important; } .hero-meta .chip { font-size: 11.5px !important; } .hero-meta .chip + .chip::before { margin: 0 5px; } .hero-meta .chip.dot::before { margin-right: 6px; } }
@media (max-width: 520px) { .mchart { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; } .mchart .v { font-size: 9.5px; letter-spacing: -.02em; } .mchart .m { font-size: 11px; } }
.shot.zoomable, .shot.zoomable img { cursor: zoom-in !important; }
/* Flow carousels: a true crossfade. The new screen fades in on top, the old one leaves only after */
.shot.flow img { transition: opacity .25s ease .5s !important; z-index: 0; }
.shot.flow img.on { transition: opacity .5s ease !important; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .shot.flow img, .shot.flow img.on { transition: none !important; } }
/* Next turn meeple: same as the quote meeple, bigger, with its shadow */
.next-turn { align-items: center; }
.next-turn .duo-icon.piece { position: relative; width: 52px; height: 52px; margin: 0 4px 6px 0; }
.next-turn .duo-icon.piece .m3 { width: 52px; height: 52px; }
.next-turn .duo-icon.piece::after { content: ''; position: absolute; left: 6px; right: 6px; bottom: -8px; height: 8px; border-radius: 50%; background: rgba(60, 30, 120, .2); filter: blur(3px); transition: transform .8s cubic-bezier(.3,1.4,.5,1), opacity .5s ease; }
@media (hover: hover) { .next-turn:hover .duo-icon.piece::after { transform: scale(.7); opacity: .6; } }
/* Process path (Foodcircle "How it worked before"): board-game spaces on a dashed track */
.flow.path { position: relative; gap: 18px; width: min(1000px, calc(100vw - 56px)); margin-left: 50%; transform: translateX(-50%); margin-top: 22px; perspective: 900px; }
.flow.path::before { content: ''; position: absolute; left: 12%; right: 12%; top: 41px; border-top: 2px dashed rgba(122, 82, 224, .35); z-index: 0; }
.flow.path li { z-index: 1; padding: 22px; border-radius: 20px; isolation: isolate; overflow: hidden; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .3s ease; }
.flow.path li::after { content: ''; position: absolute; inset: 0; right: 0; top: 0; border-radius: 19px; padding: 1.5px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s ease; pointer-events: none; font-size: 0; display: block !important; }
.flow.path li::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s ease; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 212, 102, .26), transparent 65%); }
.flow.path b { --dc: #ffd466; --de: #c99a1a; width: 36px; height: 36px; color: #2a2235; font-weight: 600; font-size: 16px; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.55), transparent 45%), var(--dc); box-shadow: 0 3px 0 var(--de), 0 6px 10px rgba(0,0,0,.16); transition: transform .6s cubic-bezier(.3,1.5,.5,1); }
.flow.path li:nth-child(2) b { --dc: #ff9f8a; --de: #d0644d; }
.flow.path li:nth-child(3) b { --dc: #a98bff; --de: #7a52e0; color: #fff; }
.flow.path li:nth-child(4) b { --dc: #5fd3c0; --de: #2a9d8a; }
.flow.path .who { color: #6a42d0; margin: 16px 0 8px; }
.flow.path p { font-size: 15px; line-height: 1.55; }
@media (hover: hover) {
  .flow.path li:hover { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px); transition: transform .12s ease-out, box-shadow .35s ease, border-color .3s ease; box-shadow: 0 22px 44px rgba(122, 82, 224, .16), 0 8px 18px rgba(0, 0, 0, .06); border-color: transparent; }
  .flow.path li:hover::before, .flow.path li:hover::after { opacity: 1; }
  .flow.path li:hover b { transform: translateY(-6px) rotateX(360deg); }
}
@media (max-width: 900px) { .flow.path { grid-template-columns: 1fr 1fr; } .flow.path::before { display: none; } }
@media (max-width: 600px) {
  .flow.path { grid-template-columns: 1fr; width: auto; margin-left: 0; transform: none; padding-left: 0; }
  .flow.path::before { display: block; left: 39px; right: auto; top: 30px; bottom: 30px; border-top: 0; border-left: 2px dashed rgba(122, 82, 224, .35); }
}
@media (prefers-reduced-motion: reduce) { .flow.path li, .flow.path b { transform: none !important; } }
/* Next turn: same tilt, light and edge as the other cards, in violet */
.next-turn { position: relative; isolation: isolate; overflow: hidden; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .3s ease; }
.next-turn::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s ease; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(169, 139, 255, .3), transparent 65%); }
.next-turn::after { content: ''; position: absolute; inset: 0; border-radius: 19px; padding: 1.5px; background: linear-gradient(135deg, #a98bff, #7a52e0); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.lessons + .next-turn, .next-turn { will-change: transform; }
@media (hover: hover) {
  .next-turn:hover { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-5px); transition: transform .12s ease-out, box-shadow .35s ease, border-color .3s ease; box-shadow: 0 22px 44px rgba(122, 82, 224, .22), 0 8px 18px rgba(0, 0, 0, .05); border-color: transparent; }
  .next-turn:hover::before, .next-turn:hover::after { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .next-turn { transform: none !important; } }
/* ===== Foodcircle: livelier blocks ===== */
/* Who we talked to: profile cards with the card hover */
.persona { perspective: 900px; }
.persona div { position: relative; isolation: isolate; overflow: hidden; border-radius: 18px; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .3s ease, opacity .7s ease; }
.persona span { color: #6a42d0; }
.persona div::before, .hmw div::before, .pains li::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s ease; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 212, 102, .26), transparent 65%); }
.persona div::after, .hmw div::after { content: ''; position: absolute; inset: 0; border-radius: 17px; padding: 1.5px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s ease; pointer-events: none; }
/* Pain points: the three that mattered get a yellow game disc, the rest stay quiet */
.pains li { overflow: hidden; isolation: isolate; transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, border-color .3s ease, background .3s ease, opacity .7s ease; }
.pains li::before { content: ''; top: 50%; left: 16px; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; border: 1.5px solid var(--line); background: none; transition: transform .6s cubic-bezier(.3,1.5,.5,1); }
.pains li.on { border-color: rgba(201, 154, 26, .45); }
.pains li.on::before { content: ''; width: 14px; height: 14px; margin-top: -8px; border: 0; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.55), transparent 45%), #ffd466; box-shadow: 0 2.5px 0 #c99a1a, 0 4px 6px rgba(0,0,0,.16); }
/* How might we: two cards with the violet hover */
.hmw { perspective: 900px; }
.hmw div { position: relative; isolation: isolate; overflow: hidden; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, opacity .7s ease; }
.hmw span { color: #6a42d0; }
.hmw div::before { background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(169, 139, 255, .3), transparent 65%); }
.hmw div::after { background: linear-gradient(135deg, #a98bff, #7a52e0); }
/* The five parties: player tokens, not buttons */
.parties { gap: 6px 22px; }
.parties span { display: inline-flex; align-items: center; gap: 9px; padding: 0; border: 0; background: none; border-radius: 0; font-weight: 600; cursor: default; }
.parties span::before { content: ''; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.55), transparent 45%), var(--tc, #ffd466); box-shadow: 0 2.5px 0 var(--te, #c99a1a), 0 4px 6px rgba(0,0,0,.14); }
.parties span:nth-child(1) { --tc: #ffd466; --te: #c99a1a; } .parties span:nth-child(2) { --tc: #ff9f8a; --te: #d0644d; }
.parties span:nth-child(4) { --tc: #5fd3c0; --te: #2a9d8a; } .parties span:nth-child(5) { --tc: #cfd3da; --te: #8c929c; }
.parties .fc { background: none; color: #6a42d0; }
.parties .fc::before { --tc: #a98bff; --te: #7a52e0; width: 20px; height: 20px; }
/* The new money flow: steps on a dashed track, lit one after another */
.journey { position: relative; gap: 4px; }
.journey::before { content: ''; position: absolute; left: 27px; top: 22px; bottom: 22px; border-left: 2px dashed rgba(122, 82, 224, .3); }
.journey li { position: relative; z-index: 1; border: 1px solid transparent; transition: background .4s ease, border-color .4s ease, box-shadow .4s ease, transform .4s cubic-bezier(.2,.8,.2,1), opacity .7s ease; }
.journey b { position: relative; background: var(--surface); border: 1.5px solid var(--line); color: var(--muted); transition: transform .6s cubic-bezier(.3,1.5,.5,1), background .4s ease, color .4s ease, border-color .4s ease, box-shadow .4s ease; }
.journey li.hl { border-color: rgba(122, 82, 224, .35); }
.journey li.hl b { border: 0; color: #fff; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.45), transparent 45%), #a98bff; box-shadow: 0 2.5px 0 #7a52e0, 0 4px 6px rgba(0,0,0,.16); }
.journey li.lit { background: var(--surface); border-color: rgba(201, 154, 26, .45); box-shadow: 0 10px 24px rgba(0,0,0,.06); transform: translateX(6px); }
.journey li.lit b { border: 0; color: #2a2235; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.55), transparent 45%), #ffd466; box-shadow: 0 2.5px 0 #c99a1a, 0 4px 6px rgba(0,0,0,.16); transform: translateY(-3px) rotateX(360deg); }
@media (hover: hover) {
  .persona div:hover, .hmw div:hover { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-5px); transition: transform .12s ease-out, box-shadow .35s ease, border-color .3s ease; box-shadow: 0 20px 40px rgba(122, 82, 224, .16), 0 8px 18px rgba(0, 0, 0, .05); border-color: transparent; }
  .persona div:hover::before, .persona div:hover::after, .hmw div:hover::before, .hmw div:hover::after { opacity: 1; }
  .pains li:hover { transform: translateX(6px); box-shadow: 0 10px 24px rgba(0,0,0,.06); background: var(--surface); }
  .pains li:hover::after { opacity: 1; }
  .pains li:hover::before { transform: translateY(-3px) rotateX(360deg); }
}
@media (prefers-reduced-motion: reduce) { .persona div, .hmw div, .pains li, .journey li, .journey b { transform: none !important; } }
/* Touch screens: no sticky hover. Cards play their hover once when they scroll into view and once per tap (class .hov, set by main.js) */
@media (hover: none) {
  .card:hover:not(.hov), .duo-item:hover:not(.hov), .reveal.in.stat:hover:not(.hov), .reveal.in.duo-item:hover:not(.hov), .decision:hover, .reveal.in.decision:hover, .shot:hover, .portrait:hover, .chip:hover, .button:hover, .mini:hover { transform: none; }
  .card:hover:not(.hov) .mock, .card:hover:not(.hov) .more, .mini:hover .mini-go { transform: none; }
  .shot:hover { box-shadow: none; }
.card.hov { transform: translateY(-8px); box-shadow: 0 32px 70px rgba(122, 82, 224, .22), 0 12px 28px rgba(0, 0, 0, .12); }
  .card.hov::after { opacity: 1; }
  .card.hov .card-visual::before { opacity: 1; }
  .card.hov .mock { transform: translateY(-10px) rotate(-2deg) scale(1.04); box-shadow: 0 30px 60px rgba(0, 0, 0, .4); }
  .card.hov .score-coin { transform: rotate(10deg) translateY(-6px) scale(1.08); }
  .card.hov .more { transform: translateX(8px); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat.hov, .stats .stat.reveal.in.hov { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px); transition: transform .12s ease-out, box-shadow .35s ease, border-color .3s ease; box-shadow: 0 22px 44px rgba(122, 82, 224, .16), 0 8px 18px rgba(0, 0, 0, .06); border-color: transparent; }
  .stat.hov::before, .stat.hov::after { opacity: 1; }
  .stat.hov b { transform: scale(1.08) translateY(-2px); }
.quote.hov { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px); transition: transform .12s ease-out, box-shadow .35s ease, border-color .3s ease; box-shadow: 0 22px 44px rgba(122, 82, 224, .16), 0 8px 18px rgba(0, 0, 0, .06); border-color: transparent; }
  .quote.hov::before, .quote.hov::after { opacity: 1; }
  .quote.hov .q-meeple .m3 { transform: translateY(-10px) rotateX(-10deg) rotateY(332deg); }
  .quote.hov .q-meeple::after { transform: scale(.7); opacity: .6; }
.tldr > div.hov, .duo-item.hov, .reveal.in.duo-item.hov { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px); transition: transform .12s ease-out, box-shadow .35s ease, border-color .3s ease; box-shadow: 0 22px 44px rgba(122, 82, 224, .16), 0 8px 18px rgba(0, 0, 0, .06); border-color: transparent; }
  .tldr > div.hov::before, .tldr > div.hov::after, .duo-item.hov::before, .duo-item.hov::after { opacity: 1; }
  .duo-item.hov .duo-icon { transform: translateY(-6px) rotate(-10deg) scale(1.2); }
.insight.hov { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-5px); transition: transform .12s ease-out, box-shadow .35s ease, border-color .3s ease; box-shadow: 0 22px 44px rgba(122, 82, 224, .14), 0 8px 18px rgba(0, 0, 0, .05); border-color: transparent; }
  .insight.hov::before, .insight.hov::after { opacity: 1; }
  .insight.hov .n::before { transform: translateY(-5px) rotateX(360deg); }
.duo-item.hov .duo-icon.piece { transform: none; } .duo-item.hov .duo-icon.piece .m3 { transform: translateY(-8px) rotateX(-10deg) rotateY(332deg); }
.tldr > div.hov { box-shadow: 0 22px 44px rgba(122, 82, 224, .22), 0 8px 18px rgba(0, 0, 0, .05); }
.lesson.hov { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px); transition: transform .12s ease-out, box-shadow .35s ease, border-color .3s ease; box-shadow: 0 22px 44px rgba(122, 82, 224, .16), 0 8px 18px rgba(0, 0, 0, .06); border-color: transparent; }
  .lesson.hov::before, .lesson.hov::after { opacity: 1; }
  .lesson.hov .ln { transform: scale(1.1) translateY(-2px); }
  .next-turn.hov .duo-icon.piece .m3 { transform: translateY(-8px) rotateX(-10deg) rotateY(332deg); }
.next-turn.hov .duo-icon.piece::after { transform: scale(.7); opacity: .6; }
.flow.path li.hov { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px); transition: transform .12s ease-out, box-shadow .35s ease, border-color .3s ease; box-shadow: 0 22px 44px rgba(122, 82, 224, .16), 0 8px 18px rgba(0, 0, 0, .06); border-color: transparent; }
  .flow.path li.hov::before, .flow.path li.hov::after { opacity: 1; }
  .flow.path li.hov b { transform: translateY(-6px) rotateX(360deg); }
.next-turn.hov { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-5px); transition: transform .12s ease-out, box-shadow .35s ease, border-color .3s ease; box-shadow: 0 22px 44px rgba(122, 82, 224, .22), 0 8px 18px rgba(0, 0, 0, .05); border-color: transparent; }
  .next-turn.hov::before, .next-turn.hov::after { opacity: 1; }
.persona div.hov, .hmw div.hov { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-5px); transition: transform .12s ease-out, box-shadow .35s ease, border-color .3s ease; box-shadow: 0 20px 40px rgba(122, 82, 224, .16), 0 8px 18px rgba(0, 0, 0, .05); border-color: transparent; }
  .persona div.hov::before, .persona div.hov::after, .hmw div.hov::before, .hmw div.hov::after { opacity: 1; }
  .pains li.hov { transform: translateX(6px); box-shadow: 0 10px 24px rgba(0,0,0,.06); background: var(--surface); }
  .pains li.hov::after { opacity: 1; }
  .pains li.hov::before { transform: translateY(-3px) rotateX(360deg); }
}
/* Design Review: the Slack message rebuilt as text, so it reads clearly */
.chat { position: relative; isolation: isolate; overflow: hidden; display: flex; gap: 14px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; text-align: left; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .3s ease; }
.chat-av { flex: none; width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.chat-b { min-width: 0; font-size: 15px; line-height: 1.5; color: var(--ink); }
.chat-b p { margin: 0 0 10px; overflow-wrap: anywhere; } .chat-b p:last-child { margin-bottom: 0; }
.chat-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px !important; } .chat-h b { font-weight: 700; } .chat-h span { font-size: 12px; color: var(--muted); }
.chat-b a { color: #1264a3; text-decoration: none; }
.chat::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s ease; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 212, 102, .24), transparent 65%); }
.chat::after { content: ''; position: absolute; inset: 0; border-radius: 19px; padding: 1.5px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s ease; pointer-events: none; }
@media (hover: hover) { .chat:hover { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-5px); transition: transform .12s ease-out, box-shadow .35s ease, border-color .3s ease; box-shadow: 0 20px 40px rgba(122, 82, 224, .16), 0 8px 18px rgba(0, 0, 0, .05); border-color: transparent; } .chat:hover::before, .chat:hover::after { opacity: 1; } }
@media (hover: none) { .chat.hov { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(122, 82, 224, .16); border-color: transparent; } .chat.hov::before, .chat.hov::after { opacity: 1; } }
/* What I do: each skill is a row with a game disc; on hover it slides, the disc flips and a gradient edge appears */
.skills li { position: relative; isolation: isolate; border-left: 0; padding: 12px 16px 12px 46px; border-radius: 14px; transition: transform .3s cubic-bezier(.2,.8,.2,1), background .3s ease, box-shadow .3s ease; }
.skills li::after { content: ''; position: absolute; left: 16px; top: 17px; width: 14px; height: 14px; border-radius: 50%; --dc: #ffd466; --de: #c99a1a; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.55), transparent 45%), var(--dc); box-shadow: 0 2.5px 0 var(--de), 0 4px 6px rgba(0,0,0,.16); transition: transform .6s cubic-bezier(.3,1.5,.5,1); }
.skills li:nth-child(4n+2)::after { --dc: #ff9f8a; --de: #d0644d; } .skills li:nth-child(4n+3)::after { --dc: #a98bff; --de: #7a52e0; } .skills li:nth-child(4n+4)::after { --dc: #5fd3c0; --de: #2a9d8a; }
.skills li::before { content: ''; position: absolute; inset: 0; border-radius: 13px; padding: 1.5px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.skills { gap: 6px; }
/* How I use AI: cards with tilt, light and gradient edge, violet labels */
.ai-grid { perspective: 900px; }
.ai-item { position: relative; isolation: isolate; overflow: hidden; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .3s ease, opacity .7s ease; }
.ai-item span { color: #6a42d0; transition: letter-spacing .4s ease; }
.ai-item::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s ease; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 212, 102, .26), transparent 65%); }
.ai-item::after { content: ''; position: absolute; inset: 0; border-radius: 19px; padding: 1.5px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s ease; pointer-events: none; }
@media (hover: hover) {
  .skills li:hover { transform: translateX(8px); background: var(--surface); box-shadow: 0 12px 26px rgba(0,0,0,.06); }
  .skills li:hover::before { opacity: 1; }
  .skills li:hover::after { transform: translateY(-4px) rotateX(360deg); }
  .ai-item:hover { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px); transition: transform .12s ease-out, box-shadow .35s ease, border-color .3s ease; box-shadow: 0 22px 44px rgba(122, 82, 224, .16), 0 8px 18px rgba(0, 0, 0, .06); border-color: transparent; }
  .ai-item:hover::before, .ai-item:hover::after { opacity: 1; }
  .ai-item:hover span { letter-spacing: .14em; }
}
@media (hover: none) {
  .skills li.hov { transform: translateX(8px); background: var(--surface); box-shadow: 0 12px 26px rgba(0,0,0,.06); }
  .skills li.hov::before { opacity: 1; }
  .skills li.hov::after { transform: translateY(-4px) rotateX(360deg); }
  .ai-item.hov { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px); transition: transform .12s ease-out, box-shadow .35s ease, border-color .3s ease; box-shadow: 0 22px 44px rgba(122, 82, 224, .16), 0 8px 18px rgba(0, 0, 0, .06); border-color: transparent; }
  .ai-item.hov::before, .ai-item.hov::after { opacity: 1; }
  .ai-item.hov span { letter-spacing: .14em; }
}
@media (prefers-reduced-motion: reduce) { .skills li, .ai-item, .skills li::after { transform: none !important; } }
/* Game shelf bubbles: a slightly different pop each time, fully clickable, violet hover */
#games .gbubble { rotate: var(--br0, -4deg); cursor: pointer; isolation: isolate; overflow: visible; }
#games .gspot:hover .gbubble, #games .gspot:has(:focus-visible) .gbubble, #games .gspot.open .gbubble { rotate: var(--br, 0deg); transition: opacity .22s ease var(--bd, 0s), transform .5s var(--be, cubic-bezier(.3,1.4,.5,1)) var(--bd, 0s), rotate .6s var(--be, cubic-bezier(.3,1.4,.5,1)) var(--bd, 0s), box-shadow .3s ease, visibility 0s; }
#games .gbubble .gb-glow { position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .3s ease; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(169, 139, 255, .32), transparent 65%); }
#games .gbubble .gb-edge { position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; background: linear-gradient(135deg, #a98bff, #7a52e0); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s ease; }
#games .gbubble .more { display: inline-block; transition: color .3s ease, transform .35s cubic-bezier(.3,1.5,.5,1); }
@media (hover: hover) {
  #games .gbubble:hover { box-shadow: 0 22px 50px rgba(122, 82, 224, .45), 0 18px 40px rgba(0,0,0,.3); }
  #games .gbubble:hover .gb-glow, #games .gbubble:hover .gb-edge { opacity: 1; }
  #games .gbubble:hover .more { color: #6a42d0; transform: translateX(6px); text-decoration: none; }
}
@media (prefers-reduced-motion: reduce) { #games .gbubble, #games .gspot:hover .gbubble, #games .gspot:has(:focus-visible) .gbubble, #games .gspot.open .gbubble { rotate: none; } }
/* Gradient edges follow the card's own corner exactly (card radius minus its 1px border) */
.ai-item::after { border-radius: 21px; }
.skills li::before { border-radius: 14px; }
.hmw div::after { border-radius: 18px; }
.stat::after, .tldr > div::after, .lesson::after, .next-turn::after, .insight::after, .flow.path li::after, .chat::after { border-radius: 19px; }
#games .gbubble .gb-edge { border-radius: 18px; padding: 2px; }
/* Gradient edge drawn as the card's own border, so corners stay even (no white ring, no thick corners) */
.stat::after, .tldr > div::after, .lesson::after, .insight::after, .flow.path li::after, .chat::after, .ai-item::after, .quote::after, .duo-item::after, .persona div::after { content: none !important; }
.stat, .tldr > div, .lesson, .insight, .flow.path li, .chat, .ai-item, .quote, .duo-item, .persona div { border-width: 1.5px; }
@media (hover: hover) { .stat:hover, .tldr > div:hover, .lesson:hover, .insight:hover, .flow.path li:hover, .chat:hover, .ai-item:hover, .quote:hover, .duo-item:hover, .persona div:hover { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; } }
@media (hover: none) { .stat.hov, .tldr > div.hov, .lesson.hov, .insight.hov, .flow.path li.hov, .chat.hov, .ai-item.hov, .quote.hov, .duo-item.hov, .persona div.hov { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; } }
.tldr > div:hover, .tldr > div.hov { background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, #a98bff, #7a52e0) border-box !important; }
.next-turn::after { content: none !important; }
@media (hover: hover) { .next-turn:hover { border-color: #8d6bf0 !important; } }
@media (hover: none) { .next-turn.hov { border-color: #8d6bf0 !important; } }
/* Kind words: notes left on the table, alternating sides, slightly crooked. On hover a note straightens and lifts */
#kind-words .kw { gap: 26px; width: min(980px, calc(100vw - 48px)); margin-left: 50%; transform: translateX(-50%); }
.kw-q { --kr: -2deg; --kc: #ffd466; --ke: #c99a1a; position: relative; width: min(680px, 86%); padding: 30px 34px 26px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 22px; box-shadow: 0 14px 30px -16px rgba(17,12,24,.22); rotate: var(--kr); transition: rotate .45s cubic-bezier(.3,1.4,.5,1), translate .45s cubic-bezier(.3,1.4,.5,1), box-shadow .35s ease, border-color .3s ease, background .3s ease; }
.kw-q:nth-child(2) { --kr: 1.6deg; --kc: #ff9f8a; --ke: #d0644d; margin-left: auto; margin-top: -8px; }
.kw-q:nth-child(3) { --kr: -1deg; --kc: #a98bff; --ke: #7a52e0; margin-left: 4%; margin-top: -6px; }
.kw-q:nth-child(4) { --kr: 2.4deg; --kc: #5fd3c0; --ke: #2a9d8a; margin-left: auto; margin-right: 6%; margin-top: -10px; }
.kw-q blockquote { font-size: clamp(21px, 2.4vw, 28px); line-height: 1.28; }
.kw-q blockquote::before { content: ''; position: absolute; top: -13px; left: 30px; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.55), transparent 45%), var(--kc); box-shadow: 0 3px 0 var(--ke), 0 6px 10px rgba(0,0,0,.18); transition: transform .6s cubic-bezier(.3,1.5,.5,1); }
.kw-q:nth-child(even) blockquote::before { left: auto; right: 30px; }
.kw-q figcaption { margin-top: 16px; }
@media (hover: hover) { .kw-q:hover { rotate: 0deg; translate: 0 -6px; box-shadow: 0 26px 50px -18px rgba(122, 82, 224, .4); border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; } .kw-q:hover blockquote::before { transform: translateY(-6px) rotateX(360deg); } }
@media (hover: none) { .kw-q.hov { rotate: 0deg; translate: 0 -6px; border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; } .kw-q.hov blockquote::before { transform: translateY(-6px) rotateX(360deg); } }
@media (max-width: 640px) { #kind-words .kw { width: auto; margin-left: 0; transform: none; gap: 22px; } .kw-q, .kw-q:nth-child(n) { width: auto; margin: 0 6px; padding: 26px 22px 20px; rotate: calc(var(--kr) * .5); } .kw-q:nth-child(even) { margin-left: 18px; } .kw-q:nth-child(odd) { margin-right: 18px; } }
@media (prefers-reduced-motion: reduce) { .kw-q { transition: none; } }
/* What I do and How might we: gradient edge as a real border too */
.skills li::before, .hmw div::after { content: none !important; }
.skills li { border: 1.5px solid transparent; }
.hmw div { border: 1.5px solid transparent; }
@media (hover: hover) { .skills li:hover { background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; } .hmw div:hover { background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, #a98bff, #7a52e0) border-box; } }
@media (hover: none) { .skills li.hov { background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; } .hmw div.hov { background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, #a98bff, #7a52e0) border-box; } }
/* Jump chips: the old hero-chip hover, a golden edge and a small lift */
.jchip { transition: transform .2s ease, border-color .2s ease, color .2s ease, background .2s ease, box-shadow .2s ease; }
@media (hover: hover) { .jchip:not(.on):hover { transform: translateY(-2px); border-color: #ffcc55; color: #fff; box-shadow: 0 6px 16px rgba(255, 204, 85, .12); } .jchip.on:hover { transform: translateY(-2px); } }
/* Hero flip: table, shadows */
.hero-table.flipped .ht-shadows { position: absolute; inset: 0; pointer-events: none; }
.ht-sh { position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.9), transparent); opacity: 0; filter: blur(3px); }
.hero-table:not(.flipped) .ht-sh { opacity: 0 !important; }
/* Hero flip: build-up and release */
.hero-table { --charge: 0; }
.hero-table.charging .ht-board { transform: perspective(700px) rotateX(calc(var(--charge) * 14deg)) scale(calc(1 - var(--charge) * .03)); transition: none; }
.hero-table.charging::after { content: ''; position: absolute; left: 10%; right: 10%; top: 20%; bottom: 10%; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(255, 212, 102, calc(var(--charge) * var(--charge) * .55)), transparent); filter: blur(10px); }
.ht-burst { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; pointer-events: none; z-index: 0; background: radial-gradient(closest-side, rgba(255, 212, 102, .22), rgba(255, 159, 138, .08) 60%, transparent); animation: htBurst .7s ease-out forwards; }
@keyframes htBurst { from { transform: scale(.6); opacity: 1; } to { transform: scale(5); opacity: 0; } }
.hero.shake .wrap { animation: htShake .26s ease-out; }
@keyframes htShake { 25% { translate: -2px 1px; } 50% { translate: 2px -1px; } 75% { translate: -1px 0; } }
.ht-f { -webkit-backface-visibility: hidden; }
/* Kind words: a real 3D meeple pinned on each note (teal is kept for the hiring manager) */
.kw-q blockquote::before { content: none !important; }
.kw-q:nth-child(4) { --kc: #4a3f5a; --ke: #241c2e; }
.kw-m { position: absolute; top: -22px; left: 26px; width: 38px; height: 38px; perspective: 300px; pointer-events: none; }
.kw-q:nth-child(even) .kw-m { left: auto; right: 26px; }
.kw-m .m3 { display: block; position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateX(-14deg) rotateY(-26deg); transition: transform .8s cubic-bezier(.3,1.4,.5,1); }
.kw-q:nth-child(even) .kw-m .m3 { transform: rotateX(-14deg) rotateY(26deg); }
.kw-m .m3 > i { position: absolute; inset: 0; background: var(--ke); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Cpath d='M18 2a6 6 0 0 1 6 6a6 6 0 0 1-1.5 4L33 15a3 3 0 0 1-1 5.5L24 20l4 13a2 2 0 0 1-2 2h-5l-3-8-3 8h-5a2 2 0 0 1-2-2l4-13-8 .5a3 3 0 0 1-1-5.5L13.5 12A6 6 0 0 1 12 8a6 6 0 0 1 6-6z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Cpath d='M18 2a6 6 0 0 1 6 6a6 6 0 0 1-1.5 4L33 15a3 3 0 0 1-1 5.5L24 20l4 13a2 2 0 0 1-2 2h-5l-3-8-3 8h-5a2 2 0 0 1-2-2l4-13-8 .5a3 3 0 0 1-1-5.5L13.5 12A6 6 0 0 1 12 8a6 6 0 0 1 6-6z'/%3E%3C/svg%3E") center / contain no-repeat; }
.kw-m .m3 > i.f { background: linear-gradient(160deg, rgba(255,255,255,.5), transparent 45%), var(--kc); }
.kw-m::after { content: ''; position: absolute; left: 5px; right: 5px; bottom: -5px; height: 6px; border-radius: 50%; background: rgba(0,0,0,.16); filter: blur(2.5px); transition: transform .8s cubic-bezier(.3,1.4,.5,1), opacity .5s ease; }
@media (hover: hover) { .kw-q:hover .kw-m .m3 { transform: translateY(-8px) rotateX(-10deg) rotateY(334deg); } .kw-q:hover .kw-m::after { transform: scale(.7); opacity: .6; } }
@media (hover: none) { .kw-q.hov .kw-m .m3 { transform: translateY(-8px) rotateX(-10deg) rotateY(334deg); } }
.kw-q:nth-child(5) { --kr: -1.6deg; --kc: #7fb2ff; --ke: #3f78cc; margin-left: 2%; margin-top: -8px; }
/* Hero vortex: the table fades as the pieces spiral out (--vp goes 0 to 1 with the scroll) */
.hero-table.vortex { z-index: 40; }
.hero-table.vortex .ht-piece { pointer-events: none; }
.hero-table.vortex .ht-board, .hero-table.vortex .ht-seat { transition: none; opacity: calc(1 - var(--vp, 0) * 3); }
.hero-table.vortex::before { content: ''; position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(10, 6, 16, .9), rgba(122, 82, 224, .25) 55%, transparent); transform: scale(calc(var(--vp, 0) * 4)); opacity: calc(1 - var(--vp, 0)); }
/* MyMemorial: concept cards, palettes, sticky side actions on desktop wireframe */
.insights.concepts { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 860px; margin: 20px auto 28px; }
@media (max-width: 640px) { .insights.concepts { grid-template-columns: 1fr; } }
.pals { display: grid; gap: 14px; max-width: 860px; margin: 18px auto 0; }
.pal { background: var(--surface); border: 1.5px solid var(--line); border-radius: 20px; padding: 18px 18px 16px; opacity: .72; transition: opacity .3s ease, transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease; }
.pal:hover { opacity: 1; transform: translateY(-3px); box-shadow: 0 14px 30px rgba(17,12,24,.08); }
.pal.win { opacity: 1; border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; }
.pal-n { color: var(--ink); font-weight: 600; font-size: 15px; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.pal-n span { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #17121d; background: var(--grad); border-radius: 999px; padding: 3px 10px; }
.pal-s { display: grid; grid-template-columns: repeat(4, 1fr) 1.5fr 1.5fr; gap: 8px; }
.pal-s i { font-style: normal; background: var(--c); border-radius: 12px; min-height: 74px; padding: 10px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .3s cubic-bezier(.3,1.4,.5,1); }
.pal-s i:hover { transform: translateY(-4px) scale(1.04); }
.pal-s b { font-size: 11.5px; font-weight: 600; }
.pal-s em { font-style: normal; font-size: 11px; opacity: .85; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .pal-s { grid-template-columns: repeat(4, 1fr); } .pal-s i.t { grid-column: span 2; min-height: 52px; } .pal-s i { min-height: 64px; padding: 8px; } }
.shot .sticky-rail { position: absolute !important; left: 87% !important; top: 40% !important; right: auto !important; bottom: auto !important; width: 3.3% !important; height: auto !important; object-fit: contain !important; background: transparent !important; z-index: 2; pointer-events: none; filter: drop-shadow(0 4px 10px rgba(93, 116, 255, .55)); transition: none !important; }
/* Board with a horizontal carousel that slides before the page scrolls (hscroll) */
.shot.hscroll { position: relative; overflow: hidden; }
.shot.hscroll .hs-pg { position: absolute; left: 0; top: 0; width: 100%; will-change: transform; }
.shot.hscroll img.hs-base { position: static !important; inset: auto !important; display: block; width: 100% !important; height: auto !important; object-fit: fill !important; transition: none !important; }
.shot.hscroll .hs-win { position: absolute; overflow: hidden; }
.shot.hscroll img.hs-strip { position: absolute !important; inset: auto !important; left: 0; top: 0; width: auto !important; height: 100% !important; max-width: none; object-fit: fill !important; background: transparent !important; will-change: transform; transition: none !important; }
/* My Memorial condolence flow: one phone, five steps, scroll + overlay + carousel */
.shot.phone.cflow { aspect-ratio: 402 / 871; height: auto !important; overflow: hidden; cursor: pointer; background: #fff; --u: 1px; }
.shot.cflow .cf-l { position: absolute !important; left: 0; top: 0; width: 100% !important; height: auto !important; inset: auto !important; object-fit: fill !important; transition: opacity .45s ease; }
.shot.cflow .cf-l > img { display: block; width: 100% !important; height: auto !important; position: static !important; object-fit: fill !important; }
.shot.cflow .cf-p2, .shot.cflow .cf-p4, .shot.cflow .cf-p5, .shot.cflow .cf-top, .shot.cflow .cf-dim, .shot.cflow .cf-sheet { opacity: 0; }
.shot.cflow .cf-top { z-index: 3; transition: opacity .25s ease; }
.shot.cflow .cf-trig { top: auto !important; bottom: 0 !important; z-index: 4; background: transparent !important; }
.shot.cflow .cf-dim { height: 100% !important; bottom: 0 !important; background: rgba(17, 12, 24, .55); z-index: 5; }
.shot.cflow .cf-sheet { top: auto !important; bottom: 0 !important; z-index: 6; transform: translateY(100%); transition: transform .55s cubic-bezier(.2,.8,.2,1), opacity .2s ease; filter: drop-shadow(0 -6px 18px rgba(0,0,0,.18)); }
.shot.cflow.s2 .cf-dim { opacity: 1; }
.shot.cflow.s2 .cf-sheet { opacity: 1; transform: translateY(0); }
.shot.cflow .cf-win { position: absolute; left: 0; width: 100%; top: calc(var(--u) * 346); height: calc(var(--u) * 268); overflow: hidden; }
.shot.cflow .cf-strip { position: absolute !important; inset: auto !important; left: 0; top: 0; width: 400% !important; height: 100% !important; max-width: none; object-fit: fill !important; transition: transform .7s cubic-bezier(.4,0,.2,1) !important; }
.shot.cflow .cf-dots { position: absolute; left: calc(var(--u) * 168); top: calc(var(--u) * 626); width: calc(var(--u) * 66); height: calc(var(--u) * 16); display: flex; align-items: center; justify-content: center; gap: calc(var(--u) * 8); background: #f7f6f2; }
.shot.cflow .cf-dots i { display: block; width: calc(var(--u) * 8); height: calc(var(--u) * 8); border-radius: 50%; background: #ded7c9; transition: background .3s ease; }
.shot.cflow .cf-dots i.on { background: #766d4e; }
.shot.cflow .cf-p2, .shot.cflow .cf-p4 { z-index: 1; }
.shot.cflow .cf-p5 { z-index: 2; }
.shot.cflow .cf-dim { transition: opacity .45s ease .1s; }
.cf-pane { display: flex; justify-content: center; }
.cf-pane .shot-item { display: flex; flex-direction: column; align-items: center; width: auto; }
.cf-pane .flow-steps { flex-wrap: nowrap; white-space: nowrap; }
.cf-pane .shot.phone.cflow { width: calc(var(--vh, 700px) * 402 / 871) !important; max-width: none !important; height: auto !important; margin: 0 auto; }
@media (max-width: 760px) { .cf-pane .shot.phone.cflow { width: min(300px, 74vw) !important; } }
@media (max-width: 460px) { .cf-pane .flow-steps { gap: 3px; } .cf-pane .flow-steps button { font-size: 10px; padding: 5px 7px; } }
@media (prefers-reduced-motion: reduce) { .shot.cflow * { transition: none !important; } }
/* My Memorial desktop condolence flow inside the MacBook frame */
.shot.mbp.dflow { overflow: hidden; cursor: pointer; --u: 1px; background: #fff; }
.shot.dflow .df-l { position: absolute; left: 0; top: 0; width: 100%; transition: opacity .45s ease; }
.shot.dflow .df-l > img { position: static !important; inset: auto !important; display: block; width: 100% !important; height: auto !important; object-fit: fill !important; }
.shot.dflow .df-p4 { opacity: 0; }
.shot.dflow img.df-trig { position: absolute !important; inset: auto !important; left: calc(var(--u) * 1332) !important; top: calc(var(--u) * 739) !important; width: calc(var(--u) * 160) !important; height: auto !important; object-fit: fill !important; background: transparent !important; z-index: 3; transition: opacity .3s ease !important; }
.shot.dflow .df-dim { position: absolute; inset: 0; background: rgba(17, 12, 24, .55); opacity: 0; z-index: 4; transition: opacity .4s ease; }
.shot.dflow .df-modal { position: absolute; left: 50%; top: 50%; width: calc(var(--u) * 576 * .92); height: calc(var(--u) * 962 * .92); transform: translate(-50%, -46%); opacity: 0; z-index: 5; transition: opacity .35s ease, transform .45s cubic-bezier(.2,.8,.2,1), height .45s cubic-bezier(.2,.8,.2,1); border-radius: calc(var(--u) * 16); overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.25); background: #fff; }
.shot.dflow .df-modal img { position: absolute !important; inset: auto !important; left: 0 !important; top: 0 !important; width: 100% !important; height: auto !important; object-fit: fill !important; transition: opacity .45s ease !important; }
.shot.dflow .df-m2 { opacity: 0; }
.shot.dflow.m-on .df-dim { opacity: 1; }
.shot.dflow.m-on .df-modal { opacity: 1; transform: translate(-50%, -50%); }
.shot.dflow.m-two .df-m2 { opacity: 1; }
.shot.dflow.m-two .df-modal { height: calc(var(--u) * 1021 * .92); }
.shot.dflow .df-win { position: absolute; left: calc(var(--u) * 557.5); top: calc(var(--u) * 573); width: calc(var(--u) * 640); height: calc(var(--u) * 426); overflow: hidden; border-radius: calc(var(--u) * 16) calc(var(--u) * 16) 0 0; }
.shot.dflow img.df-strip { position: absolute !important; inset: auto !important; left: 0 !important; top: 0 !important; width: 400% !important; height: 100% !important; max-width: none; object-fit: fill !important; transition: transform .7s cubic-bezier(.4,0,.2,1) !important; }
.shot.dflow .df-dots { position: absolute; left: calc(var(--u) * 800); top: calc(var(--u) * 1027); width: calc(var(--u) * 156); height: calc(var(--u) * 24); background: #f7f6f2; display: flex; align-items: center; justify-content: center; gap: calc(var(--u) * 16); }
.shot.dflow .df-dots i { width: calc(var(--u) * 16); height: calc(var(--u) * 16); border-radius: 50%; background: #ddd5c7; transition: background .3s ease; }
.shot.dflow .df-dots i.on { background: #766c4c; }
@media (prefers-reduced-motion: reduce) { .shot.dflow *, .shot.dflow img { transition: none !important; } }
.shot.hscroll .hs-arr { position: absolute; }
.shot.hscroll .hs-arr img { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; object-fit: fill !important; transition: opacity .25s ease !important; }
.shot.hscroll .hs-arr .a-on { opacity: 0; }
.shot.hscroll .hs-arr.on .a-on { opacity: 1; }
.shot.hscroll .hs-arr.on .a-off { opacity: 0; }
.shot.hscroll .hs-arr.hs-r .a-on { opacity: 1; } .shot.hscroll .hs-arr.hs-r .a-off { opacity: 0; }
.shot.hscroll .hs-arr.hs-r.end .a-on { opacity: 0; } .shot.hscroll .hs-arr.hs-r.end .a-off { opacity: 1; }
.shot.mbp.oflow { overflow: hidden; cursor: pointer; background: #fff; }
.shot.oflow .of-l { position: absolute; left: 0; top: 0; width: 100%; opacity: 0; transition: opacity .5s ease; }
.shot.oflow .of-l.on { opacity: 1; }
.shot.oflow .of-l img { position: static !important; inset: auto !important; display: block; width: 100% !important; height: auto !important; object-fit: fill !important; }
.of-steps { flex-wrap: nowrap; white-space: nowrap; }
@media (max-width: 760px) { .of-steps { flex-wrap: wrap; } .of-steps::before, .of-steps::after { content: ""; flex-basis: 100%; height: 0; } .of-steps::before { order: 1; } .of-steps::after { order: 3; } .of-steps button:nth-child(n+3) { order: 2; } .of-steps button:nth-child(n+5) { order: 4; } }
.shot.cflow .cf-tc { position: absolute; left: 0; top: calc(var(--u) * 208); width: 100%; height: calc(var(--u) * 138); background: #fff; opacity: 0; transition: opacity .4s ease; }
.shot.cflow .cf-l > img.cf-body { position: absolute !important; inset: auto !important; left: 0 !important; top: calc(var(--u) * 346) !important; width: 100% !important; height: auto !important; object-fit: fill !important; background: transparent !important; }
.shot.cflow .cf-body, .shot.cflow .cf-win, .shot.cflow .cf-dots { transition: transform .55s cubic-bezier(.4,0,.2,1); }
.shot.cflow .cf-p5.tg .cf-tc { opacity: 1; }
.shot.cflow .cf-p5.up .cf-body, .shot.cflow .cf-p5.up .cf-win, .shot.cflow .cf-p5.up .cf-dots { transform: translateY(calc(var(--u) * -138)); }
.shot.dflow .df-tc { position: absolute; left: calc(var(--u) * 557.5); top: calc(var(--u) * 405); width: calc(var(--u) * 640); height: calc(var(--u) * 168); background: #fff; opacity: 0; transition: opacity .4s ease; }
.shot.dflow .df-l > img.df-body { position: absolute !important; inset: auto !important; left: calc(var(--u) * 557.5) !important; top: calc(var(--u) * 573) !important; width: calc(var(--u) * 640) !important; height: auto !important; object-fit: fill !important; background: transparent !important; }
.shot.dflow .df-body, .shot.dflow .df-win, .shot.dflow .df-dots { transition: transform .55s cubic-bezier(.4,0,.2,1); }
.shot.dflow .df-p4.tg .df-tc { opacity: 1; }
.shot.dflow .df-p4.up .df-body, .shot.dflow .df-p4.up .df-win, .shot.dflow .df-p4.up .df-dots { transform: translateY(calc(var(--u) * -162)); }
.shot.cflow .cf-p5.nt *, .shot.dflow .df-p4.nt * { transition: none !important; }
/* Case study chapters: board track with a meeple */
.toc { position: fixed; right: 26px; top: 50%; transform: translateY(-50%); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .45s ease; }
.toc.in { opacity: .38; pointer-events: auto; }
.toc.in.show, .toc.in:hover { opacity: 1; }
.toc-rail { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px 6px 16px 22px; }
.toc-rail::before { content: ""; position: absolute; right: 9.5px; top: 20px; bottom: 20px; width: 0; border-left: 1px dashed rgba(128, 120, 140, .55); }
.toc-rail i { position: relative; display: block; width: 8px; height: 8px; border-radius: 2.5px; border: 1px solid rgba(128, 120, 140, .75); background: transparent; transition: background .3s ease, border-color .3s ease, transform .3s ease; margin-left: auto; }
.toc-rail i.past { background: rgba(128, 120, 140, .8); border-color: transparent; }
.toc-rail i.on { transform: scale(.6); opacity: 0; }
.toc-mp { position: absolute; right: -1px; top: 0; width: 22px; height: 22px; transition: transform .55s cubic-bezier(.34,1.4,.5,1); pointer-events: none; }
.toc-mp svg { display: block; width: 22px; height: 22px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
.toc-mp.hop svg { animation: tocHop .55s ease; }
@keyframes tocHop { 0% { transform: translateY(0) rotate(0); } 40% { transform: translateY(-7px) rotate(-10deg); } 100% { transform: translateY(0) rotate(0); } }
.toc-panel { position: absolute; right: 0; top: 50%; transform: translateY(-50%) translateX(10px); min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px 10px 10px; box-shadow: 0 22px 48px rgba(0,0,0,.18), 0 6px 14px rgba(0,0,0,.06); opacity: 0; visibility: hidden; transition: opacity .25s ease, transform .25s ease, visibility 0s .25s; }
.toc:hover .toc-panel, .toc:focus-within .toc-panel { opacity: 1; visibility: visible; transform: translateY(-50%); transition: opacity .25s ease, transform .25s ease; }
.toc-panel p { margin: 0 10px 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.toc-panel a { display: flex; gap: 12px; align-items: center; padding: 6px 10px; border-radius: 10px; font-size: 13.5px; line-height: 1.3; color: var(--muted); text-decoration: none; transition: background .2s ease, color .2s ease; }
.toc-panel a b { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: radial-gradient(70% 70% at 100% 0%, rgba(217, 154, 0, .55), transparent 70%), radial-gradient(70% 70% at 0% 100%, rgba(122, 82, 224, .7), transparent 70%), #110c18; font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 16px; letter-spacing: -.04em; line-height: 1; }
.toc-panel a b span { background: linear-gradient(90deg, #ffd466, #ff9f8a 50%, #a98bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.toc-panel a:hover { background: var(--bg); color: var(--ink); }
.toc-panel a.on { color: var(--ink); font-weight: 600; }
@media (max-width: 1100px), (hover: none) { .toc { display: none; } }
.toc.calm .toc-mp { transition: transform .7s cubic-bezier(.4,0,.2,1); }
.shot.dflow .df-l > img.df-left { position: absolute !important; inset: auto !important; left: calc(var(--u) * 90) !important; top: calc(var(--u) * 185) !important; width: calc(var(--u) * 380) !important; height: auto !important; object-fit: fill !important; background: transparent !important; }
.shot.dflow img.df-trig, .shot.cflow .cf-trig { transition: opacity .35s ease !important; }
.shot.dflow .df-modal img { background: transparent !important; }
.shot.dflow .df-arr { position: absolute; top: calc(var(--u) * 1015); width: calc(var(--u) * 48); height: calc(var(--u) * 48); background: #f7f6f2; transition: transform .55s cubic-bezier(.4,0,.2,1); }
.shot.dflow .df-al { left: calc(var(--u) * 572.5); }
.shot.dflow .df-ar { left: calc(var(--u) * 1132.5); }
.shot.dflow .df-arr img { position: absolute !important; inset: auto !important; left: calc(var(--u) * 4) !important; top: calc(var(--u) * 4) !important; width: calc(var(--u) * 40) !important; height: calc(var(--u) * 40) !important; object-fit: fill !important; background: transparent !important; transition: opacity .3s ease !important; }
.shot.dflow .df-arr .a-on { opacity: 0; }
.shot.dflow .df-arr.on .a-on { opacity: 1; }
.shot.dflow .df-arr.on .a-off { opacity: 0; }
.shot.dflow .df-p4.up .df-arr { transform: translateY(calc(var(--u) * -162)); }

.shot.mbp.oflow.vg { aspect-ratio: 16 / 10; background: #0f1318; }
.vg-phones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 24px 0 8px; }
.vg-phones img { width: 100%; height: auto; display: block; border-radius: 22px; border: 1px solid var(--line); }
@media (max-width: 760px) { .vg-phones { grid-template-columns: repeat(2, 1fr); } }
.v-vigil { background: radial-gradient(90% 90% at 85% 15%, rgba(169,139,255,.6), transparent 60%), radial-gradient(90% 90% at 10% 100%, rgba(95,211,192,.55), transparent 60%), #241a2e; }
.score-coin.teal { --m: #5fd3c0; }
.mock .vg-btn { color: #5fd3c0; }
.shot.mbp.oflow.vg { border-color: rgba(255,255,255,.1); background: #0f1318; transform: none; }
.shot.mbp.oflow.vg:hover { transform: none; box-shadow: none; }
.shot.oflow.vg .of-l img { background: #0f1318; transform: scale(1.006); }
.fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.fx > * { position: absolute; opacity: 0; }
.shot.oflow.vg .of-l { container-type: inline-size; }
.fx-r { border: max(1px, .15cqw) solid currentColor; border-radius: var(--r, 8px); box-sizing: border-box; }
.fx-g { border-radius: var(--r, 8px); background: currentColor; }
.fx-p, .fx-f { border-radius: var(--r, 8px); background: #fff; }
.fx-f { transform-origin: left center; transform: scaleX(0); }
.c-amber { color: #ffcc55; } .c-red { color: #ff7a66; } .c-green { color: #7ee0a8; } .c-blue { color: #7ab8ff; } .c-cream { color: #e6dcc6; }
.fx.run .fx-r { animation: fxring 1.5s ease-in-out infinite; }
.fx.run .fx-g { animation: fxglow 1.6s ease-out both; }
.fx.run .fx-f { animation: fxfill 4.2s ease-in-out .5s both; }
.fx.run .fx-p { animation: fxflash 4.2s ease-out .5s both; }
@keyframes fxring { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes fxglow { 0% { opacity: 0; } 30% { opacity: .22; } 100% { opacity: .1; } }
@keyframes fxfill { 0%, 60% { transform: scaleX(0); opacity: 0; } 61% { opacity: .38; } 92% { transform: scaleX(1); opacity: .38; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes fxflash { 0%, 60% { opacity: 0; } 64% { opacity: .5; } 90%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fx { display: none; } }
html { visibility: visible !important; }
