/* ===== Design tokens ===== */
:root {
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --text: #16161A;
  --muted: #6B6B73;
  --line: #E6E4DF;
  --accent: #7C5CFF;
  --radius: 18px;
  --max: 1200px;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E0E10; --surface: #17171A; --text: #F2F1EE; --muted: #9A9AA3; --line: #2A2A2F;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E0E10; --surface: #17171A; --text: #F2F1EE; --muted: #9A9AA3; --line: #2A2A2F;
  color-scheme: dark;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  transition: background .3s, color .3s;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
ul { list-style: none; margin: 0; padding: 0; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow { color: var(--muted); font-size: 14px; letter-spacing: .02em; margin: 0 0 16px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { font-weight: 600; letter-spacing: -.01em; margin-right: auto; }
.nav { display: flex; gap: 28px; font-size: 15px; }
.nav a { color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--text); }
.theme-toggle {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  cursor: pointer; font-size: 16px;
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.theme-toggle.is-near { transition-duration: .15s; }

/* ===== Hero ===== */
.hero { padding-top: 120px; padding-bottom: 100px; }
.hero-title {
  font-family: var(--serif); font-size: clamp(44px, 7vw, 92px);
  line-height: 1.02; letter-spacing: -.02em; max-width: 14ch;
}
.hero-title em { color: var(--accent); }
.hero-sub { color: var(--muted); font-size: 19px; max-width: 52ch; margin: 28px 0 36px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px;
  border-radius: 999px; font-weight: 500; font-size: 15px;
  transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .3s, opacity .2s;
}
.btn-primary:hover { box-shadow: 0 12px 28px -10px color-mix(in srgb, var(--accent) 70%, transparent); }

/* Magnetic CTA: JS sets --mx/--my; the label drifts a little further than the button */
[data-magnetic] { transform: translate(var(--mx, 0), var(--my, 0)); will-change: transform; }
[data-magnetic] .mag-label { display: inline-flex; align-items: center; gap: 8px; transition: transform .45s cubic-bezier(.2,.7,.2,1); transform: translate(calc(var(--mx, 0) * .4), calc(var(--my, 0) * .4)); }
[data-magnetic].is-near { transition-duration: .15s; }
[data-magnetic].is-near .mag-label { transition-duration: .15s; }

/* Text interaction: underline grows from the left, arrows nudge forward */
.u-link { position: relative; }
.u-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.u-link:hover::after, .u-link:focus-visible::after, .u-link[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.arrow { display: inline-block; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
a:hover > .arrow, a:focus-visible > .arrow, .btn:hover .arrow { transform: translateX(5px); }
a:hover > .arrow.down, .btn:hover .arrow.down { transform: translateY(4px); }
a:hover > .arrow.up { transform: translateY(-4px); }
a:hover > .arrow.back-arrow { transform: translateX(-5px); }
a:hover > .arrow.diag { transform: translate(3px, -3px); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-ghost { border: 1px solid var(--line); }

/* ===== Section heads ===== */
.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--line); padding-top: 24px; margin-bottom: 40px;
}
.section-head h2 { font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.count { color: var(--muted); font-size: 14px; }

/* ===== Work grid ===== */
.work { padding-bottom: 120px; }
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 32px; }
.project { display: block; }
.project:nth-child(1) { grid-column: span 2; }   /* Pixel Hunters featured full width */
.project:nth-child(1) .project-media { aspect-ratio: 21 / 9; }

/* Image zoom: the fill (or image) scales up while the frame stays fixed */
.project-media {
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 4 / 3; border-radius: var(--radius);
  display: grid; place-items: center; color: #fff;
}
.project-media::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 20% 10%, color-mix(in srgb, var(--accent) 55%, white) 0%, transparent 60%),
    linear-gradient(140deg, var(--accent), color-mix(in srgb, var(--accent) 60%, black));
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.project-media > *, .project-media img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.project-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
/* Expand badge in the corner */
.project-media::after {
  content: "↗"; position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.9); color: #16161A; font-size: 16px;
  opacity: 0; transform: scale(.6) rotate(-45deg); transition: opacity .3s, transform .4s cubic-bezier(.2,.7,.2,1);
}
.project:hover .project-media::before,
.project:hover .project-media img { transform: scale(1.08); }
.project:hover .project-media > .project-mark { transform: scale(1.04); }
.project:hover .project-media::after { opacity: 1; transform: none; }
.case-hero::after, .case-gallery .project-media::after { display: none; }
.project-mark { font-family: var(--serif); font-size: clamp(32px, 5vw, 64px); letter-spacing: -.01em; }
.project-index {
  position: absolute; top: 18px; left: 20px;
  font-size: 13px; font-weight: 600; opacity: .85;
}

.project-info { display: flex; justify-content: space-between; gap: 24px; padding-top: 20px; }
.project-info h3 { font-size: 22px; letter-spacing: -.01em; }
.project-info p { color: var(--muted); margin: 4px 0 0; max-width: 46ch; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; align-content: flex-start; justify-content: flex-end; }
.tags li {
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); white-space: nowrap;
}

/* ===== About ===== */
.about { padding-bottom: 120px; }
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; }
.about-photo {
  aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: var(--surface); border: 1px dashed var(--line);
  display: grid; place-items: center; color: var(--muted);
}
.lead { font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); line-height: 1.2; margin: 0 0 20px; }
.about-text > p { color: var(--muted); }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.about-cols h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.about-cols li { padding: 6px 0; border-bottom: 1px solid var(--line); }

/* ===== Contact ===== */
.contact { padding: 100px 24px 120px; border-top: 1px solid var(--line); }
.contact-title { font-family: var(--serif); font-size: clamp(44px, 8vw, 110px); line-height: 1; letter-spacing: -.02em; }
.contact-title a:hover { color: var(--accent); }
.socials { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 40px; }
.socials a { color: var(--muted); transition: color .2s; }
.socials a:hover { color: var(--text); }

/* ===== Footer ===== */
.site-footer {
  display: flex; justify-content: space-between;
  padding-top: 24px; padding-bottom: 40px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 14px;
}

/* ===== Case study ===== */
.case { padding-top: 48px; padding-bottom: 80px; }
.back { display: inline-block; color: var(--muted); font-size: 14px; margin-bottom: 64px; }
.back:hover { color: var(--text); }
.case-title { font-family: var(--serif); font-size: clamp(48px, 8vw, 104px); line-height: 1; letter-spacing: -.02em; }
.case-summary { font-size: 21px; color: var(--muted); max-width: 56ch; margin: 24px 0 48px; }
.case-meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 24px 0; margin: 0 0 48px;
}
.case-meta dt { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.case-meta dd { margin: 6px 0 0; }
.case-hero { aspect-ratio: 16 / 9; margin-bottom: 80px; }
.case-section { max-width: 760px; margin: 0 auto 80px; }
.case-section h2 { font-family: var(--serif); font-size: 40px; margin-bottom: 16px; }
.case-section p { color: var(--muted); font-size: 18px; }
.process { counter-reset: step; list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.process li { counter-increment: step; display: grid; grid-template-columns: 48px 140px 1fr; gap: 12px; padding: 18px 20px; background: var(--bg); }
.process li::before { content: "0" counter(step); color: var(--accent); font-weight: 600; }
.process span { color: var(--muted); }
.case-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 80px; }
.case-gallery .wide { grid-column: span 2; aspect-ratio: 21 / 9; }
.case-gallery .project-media span { opacity: .8; font-size: 14px; }
.case-next { border-top: 1px solid var(--line); padding-top: 40px; }
.case-next a { font-family: var(--serif); font-size: clamp(36px, 6vw, 72px); }
.case-next a:hover { color: var(--accent); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .project-media::before, .project-media > *, .project-media img, .cs-figure a img, .arrow { transition: none !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
@media (max-width: 820px) {
  .projects { grid-template-columns: 1fr; gap: 48px; }
  .project:nth-child(1) { grid-column: auto; }
  .project:nth-child(1) .project-media { aspect-ratio: 4 / 3; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { max-width: 360px; }
  .case-meta { grid-template-columns: 1fr 1fr; }
  .case-gallery { grid-template-columns: 1fr; }
  .case-gallery .wide { grid-column: auto; }
  .process li { grid-template-columns: 40px 1fr; }
  .process li span { grid-column: 2; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .contact { padding: 72px 16px 88px; }
  .nav { gap: 16px; font-size: 14px; }
  .hero { padding-top: 72px; padding-bottom: 72px; }
  .project-info { flex-direction: column; gap: 12px; }
  .tags { justify-content: flex-start; }
}

/* =========================================================
   Rich case study (Pixel Hunters)
   ========================================================= */
.chapters {
  position: sticky; top: 64px; z-index: 5;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 12px 0; margin-bottom: 40px;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.chapters::-webkit-scrollbar { display: none; }
.chapters a {
  flex: none; font-size: 13px; color: var(--muted);
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
}
.chapters a:hover { color: var(--text); border-color: var(--text); }

.cs-block { padding: 72px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 120px; }
.cs-num { color: var(--accent); font-weight: 600; font-size: 14px; margin: 0 0 8px; }
.cs-block h2 { font-family: var(--serif); font-size: clamp(36px, 5vw, 56px); line-height: 1.05; margin-bottom: 24px; }
.cs-block h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 48px 0 16px; font-weight: 600; }
.cs-block h4 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.cs-lead { font-size: 19px; color: var(--muted); max-width: 64ch; margin: 0; }
.cs-lead.big { font-family: var(--serif); font-size: clamp(28px, 3.6vw, 40px); color: var(--text); line-height: 1.15; }
.cs-lead.big em { color: var(--accent); }
.cs-block p { color: var(--muted); }

.problem {
  margin: 0 0 8px; padding: 28px 32px;
  font-family: var(--serif); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3;
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.bullets { display: grid; gap: 10px; }
.bullets li { position: relative; padding-left: 20px; color: var(--muted); }
.bullets li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 2px; background: var(--accent); }
.bullets strong { color: var(--text); }

/* Interview guide */
.guide { list-style: none; padding: 0; margin: 0; counter-reset: q; border-top: 1px solid var(--line); }
.guide li {
  counter-increment: q; display: grid; grid-template-columns: 40px 1fr 280px; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.guide li::before { content: "Q" counter(q); color: var(--accent); font-weight: 600; font-size: 14px; }
.guide strong { font-weight: 500; }
.guide span { color: var(--muted); font-size: 14px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
table.data th { text-align: left; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface); }
table.data th, table.data td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data td:first-child { font-weight: 600; white-space: nowrap; }
table.data i { font-style: normal; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; margin-right: 4px; }
i.y  { background: #DDF3E6; color: #17663A; }
i.p  { background: #FCEFCF; color: #7A5300; }
i.pd { background: #ECE6FF; color: #4B2DB8; }
i.n  { background: var(--line); color: var(--muted); }
i.u  { border: 1px dashed var(--muted); color: var(--muted); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.stats div { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.stats strong { display: block; font-family: var(--serif); font-size: 44px; font-weight: 400; line-height: 1; color: var(--accent); }
.stats span { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }

/* Themes bar list */
.themes { display: grid; gap: 8px; }
.themes li {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px;
  position: relative; padding: 10px 14px; border-radius: 10px; overflow: hidden; isolation: isolate;
}
.themes li::before {
  content: ""; position: absolute; inset: 0; width: calc(var(--n) / 5 * 100%); z-index: -1;
  background: color-mix(in srgb, var(--accent) calc(var(--n) * 4%), transparent);
}
.themes b { font-size: 13px; color: var(--muted); font-weight: 600; }
.themes b::after { content: " of 5"; font-weight: 400; }

/* Findings cards */
.findings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.findings article { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.findings p { font-size: 15px; margin: 0 0 16px; }
.findings q { display: block; font-family: var(--serif); font-size: 20px; line-height: 1.3; color: var(--text); }
.findings cite { display: block; margin-top: 6px; font-style: normal; font-size: 13px; color: var(--accent); font-weight: 600; }

/* Competitors */
.cs-figure { margin: 32px 0 0; }
.cs-figure a { display: block; overflow: hidden; border-radius: 14px; }
.cs-figure a img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.cs-figure a:hover img { transform: scale(1.04); }
.cs-figure img { width: 100%; height: auto; display: block; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.cs-figure figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; }
.callouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.callouts div { padding: 24px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 8%, transparent); }
.callouts p { margin: 0; font-size: 15px; }

/* Journey map */
.journey-wrap { overflow-x: auto; margin-top: 32px; border: 1px solid var(--line); border-radius: 14px; }
.journey { display: grid; grid-template-columns: 110px repeat(6, minmax(140px, 1fr)); min-width: 960px; font-size: 14px; }
.journey > div { padding: 14px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); }
.journey > .j-label { border-left: 0; }
.journey > div:nth-last-child(-n+7) { border-bottom: 0; }
.j-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface); }
.j-stage { font-weight: 600; background: var(--accent); color: #fff; }
.journey q { font-family: var(--serif); font-size: 17px; line-height: 1.25; }
.journey > .j-curve { grid-column: span 6; padding: 8px 0 12px; }
.j-curve svg { display: block; width: 100%; height: 110px; }
.j-curve .mid { stroke: var(--line); stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.j-curve .curve { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.j-curve .dots circle { fill: var(--bg); stroke: var(--accent); stroke-width: 3; vector-effect: non-scaling-stroke; }
.j-emoji { display: grid; grid-template-columns: repeat(6, 1fr); text-align: center; font-size: 13px; color: var(--muted); }
.journey .pain { background: color-mix(in srgb, #E5484D 7%, transparent); }
.journey .opp { background: color-mix(in srgb, #30A46C 8%, transparent); }
.hint { display: none; font-size: 13px; margin-top: 8px; }

/* How might we */
.hmw { list-style: none; padding: 0; margin: 0; counter-reset: h; border-top: 1px solid var(--line); }
.hmw li {
  counter-increment: h; position: relative;
  padding: 20px 0 20px 72px; border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-size: clamp(20px, 2.4vw, 28px); line-height: 1.25;
}
.hmw li::before {
  content: "0" counter(h); position: absolute; left: 0; top: 26px;
  font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--accent);
}
@media (max-width: 560px) { .hmw li { padding-left: 44px; } .hmw li::before { top: 24px; } }
.hmw strong { font-weight: 400; color: var(--accent); }

/* Lo-fi wireframes */
.wires { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.wire-item { margin: 0; }
.wire-item figcaption { font-size: 14px; color: var(--muted); margin-top: 14px; }
.wire-item figcaption strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 4px; }
.phone {
  --wf: color-mix(in srgb, var(--text) 12%, transparent);
  --wf2: color-mix(in srgb, var(--text) 22%, transparent);
  position: relative; aspect-ratio: 9 / 18.5; border: 2px solid var(--wf2); border-radius: 28px;
  padding: 14px 12px; background: var(--surface); overflow: hidden;
  display: flex; flex-direction: column; gap: 10px; font-size: 11px;
}
.ph-bar { width: 40%; height: 6px; border-radius: 4px; background: var(--wf2); margin: 0 auto 4px; flex: none; }
.ph-title { font-weight: 600; font-size: 14px; }
.ph-text { font-weight: 600; font-size: 12px; }
.ph-sub { color: var(--muted); font-size: 10.5px; }
.ph-img { background: var(--wf); border-radius: 10px; flex: 1; }
.ph-line { display: block; height: 6px; border-radius: 3px; background: var(--wf); }
.ph-line.dark { background: var(--wf2); }
.w30 { width: 30%; } .w40 { width: 40%; } .w60 { width: 60%; } .w70 { width: 70%; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px; display: grid; gap: 10px;
  background: var(--bg); border-top: 2px solid var(--wf2); border-radius: 18px 18px 0 0;
}
.sheet .ph-line { margin: 0 auto; height: 4px; }
.chips { display: flex; gap: 5px; flex-wrap: wrap; }
.chips span { padding: 4px 8px; border-radius: 999px; border: 1px solid var(--wf2); font-size: 10px; }
.chips span.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chips.sm span { padding: 3px 6px; font-size: 9px; }
.ph-btn { text-align: center; padding: 8px; border-radius: 8px; background: var(--text); color: var(--bg); font-weight: 600; }
.grid-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; flex: 1; grid-auto-rows: 1fr; }
.grid-tiles div { background: var(--wf); border-radius: 8px; }
.grid-tiles .t2 { grid-row: span 2; }
.tabbar { display: flex; justify-content: space-around; padding-top: 8px; border-top: 1px solid var(--wf); flex: none; }
.tabbar span { width: 18px; height: 18px; border-radius: 6px; background: var(--wf); }
.tabbar span.on { background: var(--accent); }
.search { padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--accent); font-size: 11px; }
.results { display: grid; gap: 10px; }
.results div { display: grid; grid-template-columns: 44px 1fr; gap: 6px 8px; align-items: center; }
.results i { grid-row: span 2; height: 44px; border-radius: 8px; background: var(--wf); }
.task-card { padding: 10px; border-radius: 12px; border: 1.5px solid var(--wf2); display: grid; gap: 6px; }
.mini-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.mini-row i { aspect-ratio: 1; border-radius: 6px; background: var(--wf); }
.alert { margin-top: auto; padding: 8px 10px; border-radius: 10px; font-size: 10px; background: color-mix(in srgb, #F5A524 18%, transparent); }

@media (max-width: 960px) {
  .wires { grid-template-columns: repeat(2, 1fr); }
  .findings, .callouts, .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .two-col, .findings, .callouts { grid-template-columns: 1fr; }
  .guide li { grid-template-columns: 36px 1fr; }
  .guide li span { grid-column: 2; }
  .hint { display: block; }
  .cs-block { padding: 56px 0; }
  .problem { padding: 20px; }
}
@media (max-width: 420px) {
  .wires { grid-template-columns: 1fr; max-width: 260px; margin-inline: auto; }
}

/* =========================================================
   Runtiva case study
   ========================================================= */
.fine { font-size: 13px; color: var(--muted); margin-top: 10px; }
.callouts.one { grid-template-columns: 1fr; }

/* Hero: real screen + framing question */
.rt-hero {
  display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 56px; align-items: center;
  padding: 48px; margin-bottom: 48px; border-radius: 28px;
  background: radial-gradient(120% 120% at 0% 0%, #0B3B33 0%, #121217 55%);
  color: #F2F1EE;
}
.rt-hero img { width: 100%; height: auto; display: block; border-radius: 28px; box-shadow: 0 40px 80px -30px rgba(0,201,167,.35), 0 0 0 1px rgba(255,255,255,.06); }
.rt-hero .eyebrow { color: #00C9A7; }
.rt-hmw { font-family: var(--serif); font-size: clamp(26px, 3.2vw, 40px); line-height: 1.15; margin: 0 0 28px; }
.rt-scope { display: flex; flex-wrap: wrap; gap: 8px; }
.rt-scope li { font-size: 13px; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.75); }

/* Had / didn't have */
.have-grid, .split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.have, .split > div { padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.have h4, .split h4 { margin-bottom: 16px; }
.checks { display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
}
.checks.yes li::before { content: "✓"; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.checks.no li::before { content: "–"; background: var(--line); color: var(--muted); }

.pipeline { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pipeline li { font-size: 14px; padding: 8px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.pipeline li:not(:last-child)::after { content: "→"; margin-left: 12px; color: var(--accent); }
.pipeline li { display: inline-flex; align-items: center; }

/* Format map */
.format-map { margin-top: 40px; display: grid; gap: 0; justify-items: center; }
.fm-root {
  padding: 18px 28px; border-radius: 16px; background: #121217; color: #fff; text-align: center;
  font-family: var(--serif); font-size: 30px; line-height: 1.1; position: relative;
}
.fm-root span { display: block; font-family: var(--sans); font-size: 12px; letter-spacing: .06em; color: #00C9A7; margin-top: 6px; }
.fm-branches {
  width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 40px; position: relative;
}
.fm-branches::before { /* connector bracket */
  content: ""; position: absolute; top: 0; left: calc(100% / 6); right: calc(100% / 6); height: 22px;
  border: 1.5px dashed color-mix(in srgb, var(--accent) 60%, transparent); border-bottom: 0; border-radius: 12px 12px 0 0;
}
.fm-branches::after { content: ""; position: absolute; top: -22px; left: 50%; height: 22px; border-left: 1.5px dashed color-mix(in srgb, var(--accent) 60%, transparent); }
.fm-node { padding: 20px; border-radius: 14px; border: 1.5px solid var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--bg)); }
.fm-node b { display: block; font-size: 17px; margin-bottom: 6px; }
.fm-node span { font-size: 14px; color: var(--muted); }
.fm-shared { width: 100%; margin-top: 16px; padding: 18px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.fm-shared > span { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fm-shared ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.fm-shared li { flex: 1; text-align: center; min-width: 90px; padding: 8px 10px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; }

/* Information architecture */
.ia { margin-top: 40px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; position: relative; padding-top: 28px; }
.ia::before { content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 14px; border: 1.5px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; }
.ia-col { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.ia-col b { display: block; padding: 12px 14px; background: #121217; color: #fff; font-size: 14px; }
.ia-col b::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #00C9A7; margin-right: 8px; }
.ia-col ul { padding: 8px 14px 12px; }
.ia-col li { font-size: 13px; padding: 6px 0; border-bottom: 1px dashed var(--line); color: var(--muted); }
.ia-col li:last-child { border-bottom: 0; }

/* Core flow */
.flow-steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; counter-reset: fs; }
.flow-steps li {
  counter-increment: fs; position: relative; padding: 18px 16px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px;
}
.flow-steps li::before { content: "0" counter(fs); font-size: 12px; font-weight: 700; color: var(--accent); }
.flow-steps li:not(:last-child)::after {
  content: "→"; position: absolute; right: -12px; top: 18px; z-index: 1;
  width: 14px; text-align: center; color: var(--accent); background: var(--bg);
}
.flow-steps b { font-size: 17px; }
.flow-steps span { font-size: 14px; }
.flow-steps em { font-style: normal; font-size: 13px; color: var(--muted); margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); }

/* Interactive journey map */
.jm { margin-top: 32px; border: 1px solid var(--line); border-radius: 18px; padding: 20px; background: var(--surface); }
.jm-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.jm-tabs button, .jm-stages button { font: inherit; cursor: pointer; color: var(--text); }
.jm-tabs button { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; font-size: 14px; }
.jm-tabs button[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.jm-curve { display: block; width: 100%; height: 90px; }
.jm-path { fill: none; stroke: var(--accent); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.jm-dots circle { fill: var(--surface); stroke: var(--accent); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.jm-dots circle.on { fill: var(--accent); }
.jm-stages { display: grid; grid-template-columns: repeat(var(--n, 6), 1fr); gap: 6px; margin-top: 4px; }
.jm-stages button {
  padding: 10px 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg);
  font-size: 13px; font-weight: 600; text-align: center; transition: background .2s, border-color .2s;
}
.jm-stages button small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
.jm-stages button:hover { border-color: var(--accent); }
.jm-stages button.on { background: color-mix(in srgb, var(--accent) 14%, var(--bg)); border-color: var(--accent); }
.jm-detail { margin-top: 20px; padding: 24px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.jd-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.jd-stage { font-weight: 600; }
.jd-feel { padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.jd-feel.e2 { background: #FDECC8; color: #8A5300; }
.jd-feel.e3 { background: var(--line); color: var(--muted); }
.jd-feel.e4 { background: #DBEAFE; color: #1D4ED8; }
.jd-feel.e5 { background: #D1FAE5; color: #047857; }
.jm-detail q { display: block; font-family: var(--serif); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; margin: 14px 0 20px; }
.jd-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.jd-cols h5 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px; font-weight: 600; }
.jd-cols ul { display: grid; gap: 6px; }
.jd-cols li { position: relative; padding-left: 16px; font-size: 15px; }
.jd-cols li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: #E5484D; }
.jd-cols p { margin: 0; font-size: 15px; color: var(--text); }

/* Annotated player-selection screen */
.annot { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: center; margin-top: 40px; }
.rt-phone {
  background: #121217; color: #E8E8EA; border-radius: 32px; padding: 18px 14px; font-size: 12px;
  border: 6px solid #2A2D35; display: grid; gap: 10px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.4);
}
.rp-top { display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.rp-top b { color: #F59E0B; font-weight: 600; }
.rp-slots { display: flex; gap: 4px; }
.rp-slots span { flex: 1; text-align: center; padding: 6px 0; border-radius: 8px; background: #1D2128; font-size: 11px; font-weight: 600; color: #9CA3AF; }
.rp-slots span.on { background: #00C9A7; color: #062B25; }
.rp-search { padding: 8px 10px; border-radius: 10px; background: #1D2128; color: #9CA3AF; display: flex; gap: 6px; align-items: center; }
.rp-search i { font-style: normal; margin-left: auto; padding: 2px 8px; border-radius: 999px; border: 1px solid #333844; font-size: 10px; }
.rp-search i + i { margin-left: 0; }
.rp-row { display: grid; grid-template-columns: 30px 1fr auto 24px; gap: 8px; align-items: center; padding: 8px 4px; border-bottom: 1px solid #1F232B; }
.rp-row > i { width: 30px; height: 30px; border-radius: 50%; background: #2A2D35; }
.rp-row b { display: block; font-size: 12px; }
.rp-row s { text-decoration: none; font-size: 9px; padding: 1px 5px; border-radius: 4px; background: #EF4444; color: #fff; margin-left: 4px; vertical-align: 1px; }
.rp-row small { color: #9CA3AF; font-size: 10.5px; }
.rp-row em { font-style: normal; font-weight: 600; }
.rp-row u { text-decoration: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #00C9A7; color: #00C9A7; display: grid; place-items: center; font-weight: 700; }
.rp-cap { margin-top: 4px; padding: 10px; border-radius: 12px; background: #1D2128; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rp-cap small { display: block; color: #9CA3AF; font-size: 10px; }
.rp-cap b { font-size: 14px; }
.rp-cap span { grid-column: span 2; text-align: center; padding: 9px; border-radius: 10px; background: #2A2D35; color: #6B7280; font-weight: 600; }
.annot-notes { list-style: none; padding: 0; margin: 0; counter-reset: an; display: grid; gap: 18px; }
.annot-notes li { counter-increment: an; position: relative; padding-left: 44px; color: var(--muted); }
.annot-notes li::before {
  content: counter(an); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700;
}
.annot-notes b { color: var(--text); }

/* Shared vs format-specific */
.fmt { display: grid; gap: 12px; }
.fmt li { font-size: 15px; color: var(--muted); }
.fmt b { display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 6px; margin-right: 8px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); vertical-align: 1px; }

/* Design system */
.ds { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.ds-tokens { padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.ds-tokens h4 { margin-bottom: 16px; }
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 24px; }
.swatches span { font-size: 12px; font-weight: 600; }
.swatches span::before { content: ""; display: block; aspect-ratio: 1; border-radius: 12px; background: var(--c); border: 1px solid var(--line); margin-bottom: 8px; }
.swatches code { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }
.ds-list { display: flex; flex-wrap: wrap; gap: 6px; }
.ds-list li { font-size: 13px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); }
.ds-stage { padding: 28px; border-radius: 16px; background: #0B0D11; display: grid; align-content: center; gap: 16px; }
.ds-label { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #8B93A1 !important; }
.rt-card { background: #1D2128; border-radius: 16px; padding: 18px; color: #F2F1EE; display: grid; gap: 10px; box-shadow: 0 0 0 1px rgba(255,255,255,.05); }
.rc-head { display: flex; gap: 6px; }
.badge { font-style: normal; display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; }
.badge.classic { background: rgba(0,201,167,.15); color: #00C9A7; }
.badge.g { background: rgba(245,158,11,.15); color: #F59E0B; }
.badge.m { background: rgba(147,197,253,.15); color: #93C5FD; }
.rc-title { font-weight: 600; font-size: 17px; }
.rc-prize small { display: block; color: #8B93A1; font-size: 11px; }
.rc-prize b { font-size: 24px; }
.rc-bar { height: 6px; border-radius: 3px; background: #2A2D35; overflow: hidden; }
.rc-bar span { display: block; height: 100%; background: linear-gradient(90deg, #00C9A7, #5EEAD4); border-radius: 3px; }
.rc-meta { display: flex; justify-content: space-between; font-size: 12px; color: #8B93A1; }
.rc-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.rc-cta span { text-align: center; padding: 11px; border-radius: 12px; font-weight: 600; font-size: 14px; }
.rc-cta .ghost { border: 1.5px solid #00C9A7; color: #00C9A7; }
.rc-cta .fill { background: #00C9A7; color: #062B25; }
.rc-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; color: #8B93A1; }
.rc-legend .dot { display: inline-block; width: 18px; height: 6px; border-radius: 3px; background: #00C9A7; vertical-align: middle; }

/* States */
.states { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 40px; }
.states figure { margin: 0; }
.states img { width: 100%; display: block; border-radius: 14px; background: #0D1117; aspect-ratio: 37 / 27; object-fit: cover; }
.states figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.state-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.state-chips li { font-size: 13px; padding: 5px 12px; border-radius: 999px; border: 1px dashed var(--line); color: var(--muted); }

/* Contributions */
.contrib { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.contrib > div { padding: 24px; border-top: 3px solid var(--accent); background: var(--surface); border-radius: 0 0 14px 14px; }
.contrib h4 { margin-bottom: 12px; }

@media (max-width: 1024px) {
  .flow-steps { grid-template-columns: repeat(3, 1fr); }
  .flow-steps li:nth-child(3)::after { display: none; }
  .ia { grid-template-columns: repeat(3, 1fr); }
  .ia::before { display: none; }
  .states { grid-template-columns: repeat(3, 1fr); }
  .contrib { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .rt-hero { grid-template-columns: 1fr; padding: 28px; gap: 32px; }
  .rt-hero img { max-width: 260px; margin-inline: auto; }
  .annot, .ds { grid-template-columns: 1fr; }
  .rt-phone { max-width: 320px; margin-inline: auto; }
  .jm-stages { grid-template-columns: repeat(var(--n, 6), minmax(96px, 1fr)); overflow-x: auto; }
}
@media (max-width: 680px) {
  .have-grid, .split, .jd-cols, .fm-branches { grid-template-columns: 1fr; }
  .fm-branches::before, .fm-branches::after { display: none; }
  .fm-branches { padding-top: 16px; }
  .flow-steps { grid-template-columns: 1fr; }
  .flow-steps li::after { display: none; }
  .ia { grid-template-columns: 1fr 1fr; }
  .states { grid-template-columns: 1fr 1fr; }
  .contrib { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .swatches span { font-size: 10px; }
  .swatches code { display: none; }
}

/* =========================================================
   Runtiva: contest-flow iterations (lo-fi wireframes)
   ========================================================= */
.lf, .lf-card {
  --wf: color-mix(in srgb, var(--text) 11%, transparent);
  --wf2: color-mix(in srgb, var(--text) 22%, transparent);
  --wft: color-mix(in srgb, var(--text) 70%, transparent);
}
.lf { gap: 7px; padding: 14px 10px; font-size: 9.5px; color: var(--wft); }
.lf > * { flex: none; }
.lf .row, .lf-card .row { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.lf .row.start, .lf-card .row.start { justify-content: flex-start; flex-wrap: wrap; }
.lf .row.wrap { flex-wrap: wrap; }
.lf .l, .lf-card .l { display: block; height: 5px; border-radius: 3px; background: var(--wf); }
.lf .l.t, .lf-card .l.t { height: 7px; background: var(--wf2); }
.lf .l.c { margin-inline: auto; }
.w10 { width: 10%; } .w15 { width: 15%; } .w20 { width: 20%; } .w25 { width: 25%; } .w50 { width: 50%; } .w80 { width: 80%; } .w90 { width: 90%; }
.lf .ic { font-size: 13px; line-height: 1; }
.lf .tt { font-size: 10.5px; color: var(--text); margin-right: auto; }
.lf .tt.lg { font-size: 13px; }
.lf .big, .lf-card .big { font-size: 13px; color: var(--text); }
.lf .box, .lf-card { border: 1.5px solid var(--wf2); border-radius: 9px; padding: 7px; display: grid; gap: 5px; background: var(--surface); }
.lf .box.ghost { height: 46px; opacity: .5; }
.lf .box.mini { flex: 1; padding: 5px; }
.lf .pill, .lf-card .pill { padding: 3px 7px; border-radius: 6px; font-size: 9px; font-weight: 600; white-space: nowrap; text-align: center; }
.lf .pill.acc, .lf-card .pill.acc { background: var(--accent); color: #fff; }
.lf .pill.lg, .lf-card .pill.lg { padding: 6px 10px; font-size: 11px; }
.lf .pill.o { border: 1.2px solid var(--wf2); }
.lf .pill.sm { font-size: 8.5px; padding: 2px 6px; }
.lf .pill.grey { background: var(--wf); color: var(--muted); }
.lf .pill.warn { background: color-mix(in srgb, #F59E0B 20%, transparent); color: #B45309; }
.lf .pill.round { border-radius: 50%; width: 18px; height: 18px; padding: 0; display: grid; place-items: center; }
.lf .pill.wide { display: block; padding: 7px; }
.lf .tag-s, .lf-card .tag-s { font-size: 8px; padding: 2px 5px; border-radius: 4px; background: var(--wf); white-space: nowrap; }
.lf .bar, .lf-card .bar { display: block; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--accent) var(--p), var(--wf) var(--p)); }
.lf .pbar { display: block; flex: 1; height: 5px; border-radius: 3px; background: linear-gradient(90deg, #F59E0B var(--p), transparent var(--p)); }
.lf .jer { width: 16px; height: 16px; border-radius: 4px; background: var(--wf2); }
.lf .jer.s { width: 11px; height: 11px; }
.lf .match { padding: 0 6px; }
.lf .tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--wf); font-size: 8.5px; }
.lf .tabs span { padding-bottom: 4px; }
.lf .tabs span.on { color: var(--text); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }
.lf .tabs.seg { border: 0; background: var(--wf); border-radius: 7px; padding: 3px; justify-content: space-between; }
.lf .tabs.seg span { padding: 2px 6px; }
.lf .tabs.seg span.on { background: var(--surface); border-radius: 5px; box-shadow: none; }
.lf .seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border-radius: 7px; background: var(--wf); font-size: 8.5px; text-align: center; }
.lf .seg2 span { padding: 4px 0; border-radius: 5px; }
.lf .seg2 span.on { background: var(--accent); color: #fff; font-weight: 600; }
.lf .chips { flex-wrap: nowrap; overflow: hidden; justify-content: flex-start; }
.lf .chips span { font-size: 8.5px; padding: 3px 6px; white-space: nowrap; flex: none; }
.lf .chips.bottom { margin-top: auto; flex-wrap: nowrap; overflow: hidden; border-top: 1px solid var(--wf); padding-top: 7px; justify-content: flex-start; }
.lf .offers { align-items: stretch; }
.lf .slots { gap: 3px; }
.lf .slots span { flex: 1; text-align: center; padding: 7px 0; border: 1.2px dashed var(--wf2); border-radius: 6px; font-size: 8px; }
.lf .plr i { width: 18px; height: 18px; border-radius: 50%; background: var(--wf); flex: none; }
.lf .col { flex: 1; display: grid; gap: 3px; }
.lf .cap { margin-top: auto; border-top: 1px solid var(--wf); padding-top: 6px; display: grid; gap: 6px; }
.lf .cap b { font-size: 9px; color: var(--text); }
.lf .confetti { text-align: center; color: var(--accent); letter-spacing: 6px; font-size: 12px; margin-top: 8px; }
.lf .hero-t { text-align: center; font-size: 12px; color: var(--text); }
.lf .jers i { width: 16px; height: 16px; border-radius: 4px; background: var(--wf2); }
.lf .check { width: 30px; height: 30px; border-radius: 50%; margin: 10px auto 0; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); font-size: 14px; }
.lf .note { font-size: 8px; padding: 4px 5px; border-radius: 5px; background: var(--wf); }
.lf .radio { padding: 5px 0; border-bottom: 1px solid var(--wf); }
.lf .radio i { width: 10px; height: 10px; border-radius: 50%; border: 1.2px solid var(--wf2); }
.lf .radio i.on { border: 3px solid var(--accent); }
.lf .radio i.sq { border-radius: 3px; flex: none; }
.lf .radio.off { opacity: .45; }
.lf .radio span:first-of-type { margin-right: auto; }
.lf .kv { font-size: 9px; padding: 3px 0; }
.lf .kv b { color: var(--text); }
.lf .kv.strong { border-top: 1px solid var(--wf2); padding-top: 5px; font-weight: 700; }
.lf .promo { padding: 5px 7px; border-radius: 7px; border: 1.2px dashed var(--accent); font-size: 8.5px; }
.lf .promo b { color: var(--accent); }
.lf .stat3, .lf-card .stat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; font-size: 9.5px; font-weight: 700; color: var(--text); }
.lf .stat3 i, .lf-card .stat3 i { display: block; font-style: normal; font-size: 7px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.lf .act, .lf-card .act { flex: 1; text-align: center; font-size: 8.5px; padding: 4px; border-top: 1px solid var(--wf); }
.lf .act.acc, .lf-card .act.acc { color: var(--accent); font-weight: 600; }
.lf .vs { padding: 4px; }
.lf .vs span { flex: 1; text-align: center; padding: 4px; border: 1.2px dashed var(--wf2); border-radius: 6px; font-size: 8.5px; }
.lf .fab { position: absolute; left: 50%; bottom: 12px; translate: -50% 0; padding: 6px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 9px; font-weight: 600; white-space: nowrap; box-shadow: 0 6px 14px -6px rgba(0,0,0,.35); }
.lf .ctas { margin-top: auto; }
.lf .ctas .pill { flex: 1; padding: 7px; }
.lf.dimmed::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.28); z-index: 1; }
.lf .lf-sheet { z-index: 2; gap: 6px; padding: 12px 10px; background: var(--surface); }

/* Highlight: new or changed in this version */
.lf .new, .lf-card .new { outline: 1.5px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.lf .lf-sheet.new { outline-offset: -3px; border-radius: 18px 18px 0 0; }
.evo-legend { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 12px 0 0; }
.new-key { width: 18px; height: 12px; border-radius: 3px; outline: 1.5px solid var(--accent); outline-offset: 1px; }

/* Card evolution row */
.card-evo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card-evo figure { margin: 0; position: relative; }
.card-evo figure:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 40px; color: var(--accent); }
.lf-card { font-size: 10px; color: var(--wft); padding: 12px; gap: 7px; min-height: 128px; align-content: start; }
.lf-card .big { font-size: 17px; }
.lf-card .pill { font-size: 10px; padding: 4px 9px; }
.lf-card .tag-s { font-size: 9px; }
.lf-card .stat3 { font-size: 12px; }
.lf-card .stat3 i { font-size: 8px; }
.lf-card .act { font-size: 10px; }
.card-evo figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; }
.card-evo figcaption b { display: block; color: var(--text); margin-bottom: 2px; }

/* Version switcher */
.evo { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.evo-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.evo-tabs button {
  font: inherit; color: var(--muted); background: var(--surface); border: 0; border-right: 1px solid var(--line);
  padding: 14px 16px; text-align: left; cursor: pointer; display: grid; gap: 2px;
}
.evo-tabs button:last-child { border-right: 0; }
.evo-tabs button b { font-size: 20px; color: var(--text); font-family: var(--serif); font-weight: 400; }
.evo-tabs button span { font-size: 12px; font-weight: 600; }
.evo-tabs button small { font-size: 12px; }
.evo-tabs button[aria-selected="true"] { background: var(--bg); color: var(--text); box-shadow: inset 0 -3px 0 var(--accent); }
.evo-tabs button[aria-selected="true"] b { color: var(--accent); }
.evo-body { padding: 24px; }
.evo-head h4 { font-size: 20px; margin-bottom: 6px; }
.evo-head h4 span { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.evo-head p { margin: 0; max-width: 70ch; }
.evo-screens { display: flex; gap: 16px; overflow-x: auto; padding: 24px 4px 6px; scroll-snap-type: x mandatory; }
.evo-screens figure { margin: 0; flex: 0 0 188px; scroll-snap-align: start; }
.evo-screens figcaption { font-size: 12px; color: var(--muted); text-align: center; margin-top: 8px; }
.evo-why { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.evo-why h5 { grid-column: 1 / -1; margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.evo-why article { padding: 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.evo-why h6 { margin: 0; font-size: 15px; font-weight: 600; }
.evo-why p { margin: 0; font-size: 14px; }
.evo-why .fix { color: var(--text); padding-top: 8px; border-top: 1px dashed var(--line); }
.evo-why .fix b { display: inline-block; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border-radius: 5px; margin-right: 6px; background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); vertical-align: 1px; }

@media (max-width: 900px) {
  .card-evo { grid-template-columns: 1fr 1fr; }
  .card-evo figure:nth-child(2)::after { display: none; }
}
@media (max-width: 560px) {
  .card-evo { grid-template-columns: 1fr; }
  .card-evo figure::after { display: none; }
  .evo-tabs { grid-template-columns: 1fr 1fr; }
  .evo-tabs button:nth-child(2) { border-right: 0; }
  .evo-tabs button:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .evo-body { padding: 16px; }
}

/* =========================================================
   Genesilico case study
   ========================================================= */
/* Screen placeholder: swap for an <img> when screens are ready */
.ph-shot {
  display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center;
  min-height: 260px; padding: 32px 20px; margin-top: 32px; border-radius: 18px;
  border: 2px dashed color-mix(in srgb, var(--accent) 45%, var(--line));
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--accent) 5%, transparent) 14px 15px),
    color-mix(in srgb, var(--accent) 4%, var(--bg));
}
.ph-shot .ph-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.ph-shot b { font-size: 16px; font-weight: 600; max-width: 32ch; }
.ph-shot small { font-size: 12px; color: var(--muted); }
.ph-shot.hero-shot { aspect-ratio: 16 / 9; margin: 0 0 48px; }
.ph-shot.tall { aspect-ratio: 9 / 16; min-height: 0; margin: 0; width: 100%; max-width: 240px; justify-self: center; }

table.data tr.hl td { background: color-mix(in srgb, var(--accent) 8%, transparent); }
table.data td small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); white-space: normal; max-width: 180px; }

/* Users */
.gs-users { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.gs-users > div { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.gs-who { margin: 0 0 16px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent) !important; }
.gs-users .checks li { color: var(--muted); font-size: 15px; }
.gs-users .checks b { color: var(--text); font-weight: 600; }
.pipeline { margin-top: 32px; }
.pain-list b { background: color-mix(in srgb, #E5484D 14%, transparent) !important; color: #C2353A !important; }

/* Persona */
.persona { display: grid; grid-template-columns: 300px 1fr; gap: 16px; margin-top: 40px; padding: 16px; border-radius: 22px; background: var(--accent); }
.persona > * { background: var(--bg); border-radius: 14px; padding: 24px; }
.p-id { text-align: center; }
.p-avatar {
  width: 110px; height: 110px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-size: 40px; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--bg)); border: 2px dashed color-mix(in srgb, var(--accent) 45%, transparent);
}
.p-id h4 { font-size: 20px; color: var(--accent); margin-bottom: 16px; }
.p-id dl { margin: 0; display: grid; gap: 6px; text-align: left; font-size: 14px; }
.p-id dl div { display: grid; grid-template-columns: 96px 1fr; }
.p-id dt { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-top: 2px; }
.p-id dd { margin: 0; }
.p-id blockquote { margin: 18px 0; padding: 14px; border-radius: 10px; background: var(--surface); font-family: var(--serif); font-size: 18px; line-height: 1.3; text-align: left; }
.p-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.p-tags span { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.p-body { display: grid; gap: 24px; align-content: start; }
.p-body h5 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.p-body p { margin: 0; }

/* Information architecture tree */
.gs-ia { margin-top: 40px; display: grid; justify-items: center; }
.gs-root { padding: 12px 24px; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 600; }
.gs-branches { width: 100%; display: grid; grid-template-columns: 1fr 1.6fr 1fr 1fr; gap: 12px; padding-top: 36px; position: relative; align-items: start; }
.gs-branches::before { content: ""; position: absolute; top: 14px; left: 12%; right: 12%; height: 22px; border: 1.5px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; }
.gs-branches::after { content: ""; position: absolute; top: -8px; left: 50%; height: 22px; border-left: 1.5px solid var(--line); }
.gs-br { --c: #8B5CF6; border-radius: 14px; padding: 14px; background: color-mix(in srgb, var(--c) 8%, var(--bg)); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
.gs-br.c2 { --c: #F43F5E; } .gs-br.c3 { --c: #EAB308; } .gs-br.c4 { --c: #22C55E; }
.gs-br > b { display: block; padding: 8px 10px; margin-bottom: 8px; border-radius: 8px; text-align: center; font-size: 14px; background: color-mix(in srgb, var(--c) 22%, var(--bg)); }
.gs-br ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gs-br li { font-size: 13px; }
.gs-br > ul > li { padding: 7px 10px; border-radius: 8px; background: var(--bg); border: 1px solid color-mix(in srgb, var(--c) 25%, transparent); }
.gs-br li ul { margin: 6px 0 0 4px; padding-left: 10px; border-left: 1.5px dashed color-mix(in srgb, var(--c) 45%, transparent); }
.gs-br li li { color: var(--muted); }
.gs-br li li li { color: var(--muted); font-size: 12.5px; }

/* AI assistant */
.gs-feature { display: grid; grid-template-columns: 220px 220px 1fr; gap: 24px; align-items: center; margin-top: 40px; }

/* NGS order */
.gs-goals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px; }
.gs-goals div { padding: 20px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 7%, var(--bg)); font-weight: 500; }
.gs-goals span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.gs-decision { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: center; }
.gs-decision h4 { margin-top: 12px; }
.gs-decision p { margin-top: 4px; }
.gs-dd { padding: 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.gs-dd-label { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--text) !important; }
.gs-dd-field { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 10px; border: 2px solid var(--accent); background: var(--bg); }
.gs-dd-field span::after { content: "|"; color: var(--accent); margin-left: 1px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.gs-dd-field i { font-style: normal; color: var(--muted); }
.gs-dd ul { margin-top: 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); overflow: hidden; box-shadow: 0 12px 30px -16px rgba(0,0,0,.25); }
.gs-dd li { padding: 9px 12px; font-size: 14px; border-bottom: 1px solid var(--line); }
.gs-dd li:last-child { border-bottom: 0; }
.gs-dd li.custom { color: var(--accent); font-weight: 600; background: color-mix(in srgb, var(--accent) 7%, transparent); }
.findings.two { grid-template-columns: 1fr 1fr; margin-top: 32px; }
.gs-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gs-shots .ph-shot { aspect-ratio: 16 / 10; min-height: 0; }
.contrib p { margin: 0; font-size: 15px; }

@media (max-width: 1024px) {
  .gs-feature { grid-template-columns: 1fr 1fr; }
  .gs-feature .annot-notes { grid-column: 1 / -1; }
  .gs-branches { grid-template-columns: 1fr 1fr; }
  .gs-branches::before, .gs-branches::after { display: none; }
  .gs-branches { padding-top: 16px; }
}
@media (max-width: 760px) {
  .gs-users, .gs-goals, .persona, .gs-decision, .findings.two, .gs-shots { grid-template-columns: 1fr; }
  .gs-branches { grid-template-columns: 1fr; }
  .ph-shot.hero-shot { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) { .gs-dd-field span::after { animation: none; } }

/* =========================================================
   About me: animated bento grid
   ========================================================= */
.about-intro { font-family: var(--serif); font-size: clamp(26px, 3.2vw, 38px); line-height: 1.2; max-width: 30ch; margin: 0 0 40px; }
.bento {
  --orange: #F26B1D;
  --tile: color-mix(in srgb, var(--surface) 88%, transparent);
  display: grid; gap: 14px; padding: 18px; border-radius: 28px;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-areas:
    "photo think quote"
    "photo exp   collab"
    "tools exp   shipped"
    "lang  process process";
  background:
    radial-gradient(60% 70% at 15% 20%, rgba(186, 196, 255, .55), transparent 70%),
    radial-gradient(70% 80% at 85% 85%, rgba(255, 170, 120, .7), transparent 70%),
    linear-gradient(120deg, #FFE7D6, #FFC9A3 55%, #FFE2CF);
}
:root[data-theme="dark"] .bento { background: radial-gradient(70% 80% at 85% 85%, rgba(242,107,29,.35), transparent 70%), linear-gradient(120deg, #241A16, #2E1D12 55%, #1C1714); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .bento { background: radial-gradient(70% 80% at 85% 85%, rgba(242,107,29,.35), transparent 70%), linear-gradient(120deg, #241A16, #2E1D12 55%, #1C1714); }
}
.tile {
  position: relative; overflow: hidden; border-radius: 18px; padding: 18px;
  background: var(--tile); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 10px 30px -18px rgba(120, 50, 10, .35);
}
.tile p { margin: 0; color: var(--muted); font-size: 14px; }
.t-serif { font-family: var(--serif); font-size: 22px; font-weight: 400; line-height: 1.15; margin-bottom: 6px; }
.t-label { font-size: 11px !important; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px !important; }

/* Photo with moving light streaks */
.bento-photo { grid-area: photo; padding: 0; min-height: 320px; background: linear-gradient(160deg, #3A3A3E, #1B1B1E); }
.bento-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.photo-ph { position: absolute; inset: 14px; border: 2px dashed rgba(255,255,255,.25); border-radius: 12px; display: grid; place-content: center; justify-items: center; gap: 4px; color: rgba(255,255,255,.7); z-index: 1; }
.photo-ph .ph-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #FFB38A; }
.photo-ph small { font-size: 12px; }
.streaks { position: absolute; inset: 0; z-index: 2; pointer-events: none; mix-blend-mode: screen; }
.streaks i {
  position: absolute; left: -40%; height: 3px; width: 70%; border-radius: 3px; filter: blur(1.5px);
  background: linear-gradient(90deg, transparent, var(--orange) 60%, #FFD2B0);
  animation: streak 3.8s cubic-bezier(.5,0,.3,1) infinite;
}
.streaks i:nth-child(1) { top: 28%; animation-delay: 0s; }
.streaks i:nth-child(2) { top: 42%; height: 5px; animation-delay: .9s; }
.streaks i:nth-child(3) { top: 58%; animation-delay: 1.8s; width: 55%; }
.streaks i:nth-child(4) { top: 71%; height: 2px; animation-delay: 2.6s; }
@keyframes streak { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 70% { opacity: .9; } 100% { transform: translateX(190%); opacity: 0; } }

/* Design thinking: icon marquee */
.t-think { grid-area: think; }
.marquee { margin-top: 10px; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 26px; width: max-content; animation: marquee 22s linear infinite; }
.t-think:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: grid; justify-items: center; gap: 6px; font-size: 9.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.marquee-track svg { width: 30px; height: 30px; fill: none; stroke: var(--orange); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.marquee-track span:nth-child(3n+2) svg { stroke: #E0569B; }
.marquee-track span:nth-child(3n) svg { stroke: #4F7BF7; }
@keyframes marquee { to { transform: translateX(calc(-50% - 13px)); } }

/* Craftsmanship: card that lifts on hover */
.t-quote { grid-area: quote; transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s; transform-origin: 30% 80%; }
.t-quote:hover { transform: translate(6px, -8px) rotate(-2.5deg); box-shadow: 0 30px 50px -24px rgba(120,50,10,.45); }
.t-quote p { font-size: 15px; color: var(--text); opacity: .8; }
.t-cursor { position: absolute; top: 16px; right: 22px; width: 18px; fill: var(--surface); stroke: var(--text); stroke-width: 1.5; animation: nudge 3s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translate(-6px, 6px); } }

/* Experience */
.t-exp {
  grid-area: exp; color: #F5F2EE; display: grid; align-content: end; gap: 6px;
  background: radial-gradient(90% 70% at 100% 0%, rgba(242,107,29,.45), transparent 60%), #17151A;
}
.t-exp p { color: rgba(245,242,238,.7); }
.t-exp .t-label { position: absolute; top: 18px; left: 18px; }
.laurel { display: flex; align-items: center; gap: 6px; margin: 34px 0 18px; }
.laurel svg { width: 34px; height: 68px; fill: #E9A23B; stroke: #E9A23B; stroke-width: 2; }
.laurel svg path { fill: none; }
.laurel svg.flip { transform: scaleX(-1); }
.laurel-num { text-align: center; font-family: var(--serif); line-height: 1; }
.laurel-num b { font-size: 46px; font-weight: 400; }
.laurel-num em { font-style: normal; font-size: 30px; color: var(--orange); vertical-align: top; }
.laurel-num span { display: block; font-size: 20px; }

/* Collaboration: multiplayer cursors */
.t-collab { grid-area: collab; min-height: 150px; }
.mp-cursor { position: absolute; display: flex; align-items: flex-start; pointer-events: none; }
.mp-cursor svg { width: 14px; }
.mp-cursor b { font-size: 11px; font-weight: 700; color: #fff; padding: 2px 8px; border-radius: 999px; margin: 10px 0 0 -2px; }
.c-a svg { fill: #16A34A; } .c-a b { background: #16A34A; }
.c-b svg { fill: #D946EF; } .c-b b { background: #D946EF; }
.c-a { top: 18px; right: 30px; animation: drift-a 9s ease-in-out infinite; }
.c-b { top: 70px; left: 46%; animation: drift-b 11s ease-in-out infinite; }
@keyframes drift-a { 0%,100% { transform: translate(0,0); } 30% { transform: translate(-40px, 40px); } 60% { transform: translate(-10px, 70px); } }
@keyframes drift-b { 0%,100% { transform: translate(0,0); } 35% { transform: translate(-90px, -20px); } 70% { transform: translate(30px, 10px); } }

/* Projects shipped */
.t-shipped {
  grid-area: shipped; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: linear-gradient(120deg, var(--tile), color-mix(in srgb, #22C55E 12%, var(--tile)));
}
.t-shipped .t-serif { color: #15803D; }
.shipped-num { font-family: var(--serif); font-size: 52px; line-height: 1; color: #15803D; white-space: nowrap; }

/* Toolkit */
.t-tools { grid-area: tools; }
.tool-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tool-chips li { font-size: 12.5px; padding: 5px 11px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); transition: transform .3s, border-color .3s; }
.tool-chips li:hover { transform: translateY(-2px); border-color: var(--orange); }

/* Languages */
.t-lang { grid-area: lang; }
.t-translate { position: absolute; top: 12px; right: 14px; width: 38px; fill: none; stroke: color-mix(in srgb, var(--text) 18%, transparent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; animation: float-rot 6s ease-in-out infinite; }
@keyframes float-rot { 50% { transform: translateY(-5px) rotate(-8deg); } }
.langs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.langs span { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 5px; }
.langs i { display: block; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--text) 10%, transparent); position: relative; overflow: hidden; }
.langs i::after { content: ""; position: absolute; inset: 0; width: var(--lvl); background: var(--orange); border-radius: 3px; transform: scaleX(0); transform-origin: left; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.bento.in-view .langs i::after { transform: scaleX(1); }
.langs li:nth-child(2) i::after { transition-delay: .15s; } .langs li:nth-child(3) i::after { transition-delay: .3s; } .langs li:nth-child(4) i::after { transition-delay: .45s; }

/* Design process: steps fill in sequence (driven by script.js) */
.t-process { grid-area: process; }
.steps { list-style: none; padding: 0; margin: 18px 0 0; display: flex; justify-content: space-between; position: relative; }
.steps::before, .steps::after { content: ""; position: absolute; top: 9px; left: 10px; right: 10px; height: 2px; background: color-mix(in srgb, var(--text) 12%, transparent); }
.steps::after { background: var(--orange); right: auto; width: calc((100% - 20px) * var(--prog, 0)); transition: width .6s ease; }
.steps li { position: relative; z-index: 1; display: grid; justify-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.steps li::before {
  content: ""; width: 20px; height: 20px; border-radius: 50%; box-sizing: border-box;
  border: 2px solid color-mix(in srgb, var(--text) 20%, transparent); background: var(--surface);
  transition: background .3s, border-color .3s;
}
.steps li.done { color: var(--text); font-weight: 600; }
.steps li.done::before { background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; border-color: var(--orange); }

@media (max-width: 900px) {
  .bento {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "photo think"
      "photo quote"
      "exp collab"
      "exp shipped"
      "tools lang"
      "process process";
  }
}
@media (max-width: 600px) {
  .bento {
    grid-template-columns: 1fr; padding: 12px;
    grid-template-areas: "photo" "think" "quote" "exp" "collab" "shipped" "process" "lang" "tools";
  }
  .bento-photo { min-height: 360px; }
  .steps li { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .streaks, .mp-cursor { display: none; }
  .marquee-track, .t-cursor, .t-translate, .core::before { animation: none !important; }
  .langs i::after { transition: none; }
}
