:root {
  /* Dark mode only */
  --bg: #111110;
  --surface: #1a1a18;
  --surface-2: #222220;
  --ink: #f1efe9;
  --ink-2: #bdbab2;
  --ink-3: #85827a;
  --line: #2e2d2a;
  --accent: #ff7a3d;
  --accent-soft: #3a2117;
  --good: #69db7c;
  --radius: 18px;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  transition: background .3s, color .3s;
}
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: italic; color: var(--accent); }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* NAV */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: color-mix(in srgb, var(--bg) 80%, transparent); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { font: 400 26px/1 var(--serif); text-decoration: none; }
.brand span { color: var(--accent); }
.nav nav { margin-left: auto; display: flex; gap: 22px; }
.nav nav a { text-decoration: none; font-size: 14px; color: var(--ink-2); }
.nav nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav nav { display: none; } }

/* HERO */
.hero { padding: 96px 0 40px; position: relative; isolation: isolate; }
/* Hero effects, adapted from VibeKit (MIT) by JB / Desishub */
.hero-fx { position: absolute; inset: 0 -16px; z-index: -1; pointer-events: none; overflow: hidden; mask-image: linear-gradient(180deg, #000 70%, transparent); }
.hero-fx canvas, .hero-fx svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.c-draw { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: draw-line 2.4s ease-out forwards; }
.c-node { opacity: 0; transform-box: fill-box; transform-origin: center; animation: pop-in .4s ease-out 1.4s forwards; }
.c-node-glow { opacity: 0; transform-box: fill-box; transform-origin: center; animation: pop-in .4s ease-out 1.8s forwards, glow 2.6s ease-in-out 2.2s infinite; }
.c-pulse { opacity: 0; }
.c-pulse-a { offset-path: path("M 1220 160 L 1000 160 L 970 190 L 970 290 L 920 330 L 820 330"); animation: along 4s ease-in-out 2.4s infinite; }
.c-pulse-b { offset-path: path("M 1220 620 L 1050 620 L 1020 590 L 920 590 L 880 550 L 720 550"); animation: along 4s ease-in-out 3s infinite; }
@keyframes draw-line { to { stroke-dashoffset: 0; } }
@keyframes pop-in { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes glow { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }
@keyframes along { 0% { offset-distance: 0%; opacity: 0; } 10%, 90% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
@media (max-width: 760px) { .circuits { opacity: .5; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 13px/1 var(--mono); color: var(--ink-2); padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 60%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero h1 { font: 400 clamp(44px, 8vw, 104px)/0.98 var(--serif); letter-spacing: -0.02em; margin: 28px 0 28px; max-width: 14ch; }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: 60ch; }
.lede strong { color: var(--ink); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font: 500 15px/1 var(--sans); cursor: pointer; transition: transform .15s ease-out, background-color .15s ease-out, border-color .15s ease-out, color .15s ease-out; }
.btn:hover { transform: translateY(-2px); border-color: var(--ink-3); }
.btn:active { transform: scale(.98); transition-duration: .1s; }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.ghost { background: transparent; }

.ticker { margin-top: 72px; overflow: hidden; border-block: 1px solid var(--line); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker-track { display: flex; width: max-content; animation: scroll 40s linear infinite; }
.ticker-track span { padding: 18px 28px; font: 400 22px/1 var(--serif); color: var(--ink-2); white-space: nowrap; }
.ticker-track span::after { content: "✦"; margin-left: 56px; color: var(--accent); font-size: 12px; vertical-align: middle; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* SECTIONS */
.section { padding: 96px 0 24px; }
.section-head { margin-bottom: 40px; }
.kicker { font: 500 13px/1 var(--mono); color: var(--accent); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.section h2 { font: 400 clamp(34px, 5vw, 60px)/1.05 var(--serif); letter-spacing: -0.01em; }
.section-sub { color: var(--ink-2); margin-top: 12px; max-width: 60ch; }

/* BENTO */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; transition: transform .15s ease-out, border-color .15s ease-out; }
.tile:hover { transform: translateY(-3px); border-color: var(--ink-3); }
.tile-xl { grid-column: span 2; grid-row: span 2; background: var(--ink); color: var(--bg); border-color: var(--ink); justify-content: flex-end; }
.tile-xl .tile-label, .tile-xl .tile-note { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.tile-xl .big { font-size: clamp(48px, 7vw, 92px); }
.tile-wide { grid-column: span 4; flex-direction: row; align-items: center; gap: 24px; }
.tile-wide .tile-note { margin: 0 0 0 auto; }
@media (max-width: 900px) { .tile-wide { grid-column: span 2; } }
@media (max-width: 520px) { .tile-wide { grid-column: auto; flex-direction: column; align-items: flex-start; gap: 10px; } .tile-wide .tile-note { margin: 0; } }
.tile-label { font: 500 12px/1.3 var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.big { font: 400 clamp(38px, 4.5vw, 54px)/1 var(--serif); letter-spacing: -0.02em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .25em; }
.big .arrow { color: var(--ink-3); font-size: .6em; }
.accent { color: var(--accent); }
.tile-note { color: var(--ink-2); font-size: 14px; margin-top: auto; }
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .bento { grid-template-columns: 1fr; } .tile-xl { grid-column: auto; } }

/* CASES */
.case { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; padding: 40px 0; border-top: 1px solid var(--line); align-items: center; }
.case-meta { font: 500 12px/1.4 var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.case h3 { font: 400 clamp(26px, 3vw, 36px)/1.1 var(--serif); margin: 10px 0 20px; }
.case dl { display: grid; grid-template-columns: 110px 1fr; gap: 12px 16px; margin: 0; }
.case dt { font: 500 13px/1.6 var(--mono); color: var(--accent); }
.case dd { margin: 0; color: var(--ink-2); }
.case dd strong { color: var(--ink); }
.case-visual { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.case-visual figcaption { font: 400 12px/1.4 var(--mono); color: var(--ink-3); margin-top: 16px; }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 480px) { .case dl { grid-template-columns: 1fr; gap: 2px; } .case dd { margin-bottom: 10px; } }

.bars { height: 220px; display: flex; align-items: flex-end; justify-content: center; gap: 48px; }
.bar-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; width: 90px; position: relative; }
.bar { width: 100%; height: 0; background: var(--ink-3); border-radius: 8px 8px 2px 2px; transition: height 1.2s cubic-bezier(.2,.8,.2,1); order: 2; }
.bar.hi { background: var(--accent); }
.in .bar { height: var(--h); }
.bar-val { order: 1; font: 500 14px/1 var(--mono); margin-bottom: 8px; }
.bar-lbl { order: 3; font: 400 12px/1 var(--mono); color: var(--ink-3); margin-top: 8px; }

.race { display: grid; gap: 22px; }
.lane { display: grid; grid-template-columns: 56px 1fr 64px; align-items: center; gap: 12px; font: 500 13px/1 var(--mono); }
.lane-lbl { color: var(--ink-3); }
.lane-val { text-align: right; }
.track { height: 14px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.runner { height: 100%; width: 0; border-radius: 99px; background: var(--ink-3); transition: width 1.6s cubic-bezier(.2,.8,.2,1); }
.runner.fast { background: var(--accent); min-width: 0; }
.in .runner.slow { width: 100%; }
.in .runner.fast { width: max(0.35%, 4px); }

.flow { width: 100%; height: auto; }
.flow rect { fill: var(--surface-2); stroke: var(--line); }
.flow rect.core { fill: var(--accent-soft); stroke: var(--accent); }
.flow text { font: 500 11px var(--mono); fill: var(--ink-2); text-anchor: middle; }
.flow text.core-t { fill: var(--ink); font-size: 12px; }
.flow text.core-t.sm { font-size: 10px; fill: var(--ink-2); }
.flow-lines path { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 4 5; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -18; } }

/* LAB */
.lab { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lab-controls, .lab-out { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.lab-controls { display: grid; gap: 22px; }
.lab-controls label { display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
.lab-controls output { font: 500 14px var(--mono); color: var(--ink); }
input[type=range] { width: 100%; accent-color: var(--accent); }
.lab-out { display: flex; flex-direction: column; gap: 20px; }
.lab-stat .big { font-size: clamp(56px, 7vw, 84px); }
.lab-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mid { font: 400 32px/1.1 var(--serif); margin-top: 6px; }
.gauge { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--surface-2); }
.gauge-ltd { background: var(--ink-3); transition: width .3s; }
.gauge-ss { background: var(--accent); transition: width .3s; }
.formula { font: 400 13px var(--mono); color: var(--ink-3); margin-top: auto; }
@media (max-width: 860px) { .lab { grid-template-columns: 1fr; } }

/* TIMELINE */
.timeline > li { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 32px 0; border-top: 1px solid var(--line); }
.when { font: 500 13px/1.8 var(--mono); color: var(--ink-3); }
.timeline h3 { font: 400 28px/1.15 var(--serif); }
.org { color: var(--accent); font-weight: 500; margin: 6px 0 14px; }
.timeline ul li { position: relative; padding-left: 20px; color: var(--ink-2); margin-bottom: 8px; }
.timeline ul li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 1px; background: var(--ink-3); }
@media (max-width: 700px) { .timeline > li { grid-template-columns: 1fr; gap: 8px; } }

/* SKILLS */
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.skill-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.skill-group h3 { font: 400 24px/1.2 var(--serif); margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
@media (max-width: 360px) { .skills { grid-template-columns: 1fr; } }

/* EDU */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.edu li { padding: 20px 0; border-top: 1px solid var(--line); }
.edu h3, .paper h3 { font: 400 26px/1.2 var(--serif); }
.edu p { color: var(--ink-3); margin-top: 6px; font-size: 14px; }
.paper { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.paper h3 { margin: 10px 0 12px; }
.paper p:last-child { color: var(--ink-2); }

/* CONTACT */
.contact { padding-bottom: 96px; }
.contact h2 { font-size: clamp(40px, 7vw, 88px); max-width: 14ch; margin-bottom: 20px; }
.footer { display: flex; justify-content: space-between; gap: 16px; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--ink-3); font: 400 13px var(--mono); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .4s ease-out, transform .4s ease-out; }
.reveal.in { opacity: 1; transform: none; }



/* ───────── Graphics & animation layer ───────── */

/* Scroll progress */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* Hero layout */
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: center; }
.hero-grid .hero h1, .hero-copy h1 { font-size: clamp(44px, 6.6vw, 92px); }
.hero-art { margin: 0; }
.hero-art svg { width: 100%; height: auto; display: block; overflow: visible; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { max-width: 460px; margin-top: 8px; } }

/* Headline word reveal */
.w { display: inline-block; opacity: 0; transform: translateY(.35em); animation: word-in .5s cubic-bezier(.16,1,.3,1) forwards; animation-delay: calc(var(--i) * 70ms + 150ms); }
@keyframes word-in { to { opacity: 1; transform: none; } }

/* Illustration parts */
.hero-art .ground { stroke: var(--ink-3); stroke-width: 1.5; }
.hero-art .road { stroke: var(--ink-3); stroke-width: 2; stroke-dasharray: 10 10; opacity: .5; animation: road 1s linear infinite; }
@keyframes road { to { stroke-dashoffset: -20; } }
.wh-body, .hs-body { fill: var(--surface); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.wh-roof, .hs-roof { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.wh-inner { fill: var(--surface-2); }
.wh-door { fill: var(--ink-3); opacity: .35; }
.shelves line { stroke: var(--ink-3); stroke-width: 1.5; }
.shelves rect { fill: var(--surface); stroke: var(--ink-3); stroke-width: 1; }
.shelves rect.hl { fill: var(--accent-soft); stroke: var(--accent); }
.scan { fill: var(--accent); opacity: .7; animation: scan 3.2s ease-in-out infinite; }
@keyframes scan { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: .7; } 90% { opacity: .7; } 100% { transform: translateY(96px); opacity: 0; } }
.hs-door { fill: var(--accent); }
.hs-win { fill: var(--surface-2); stroke: var(--ink-3); }
.parcel rect { fill: #c8915a; stroke: #8a5a2b; stroke-width: 1; }
.parcel line { stroke: #8a5a2b; stroke-width: 1; }
.tr-box { fill: var(--ink); }
.tr-cab { fill: var(--accent); }
.tr-win { fill: var(--surface); opacity: .9; }
.tr-label { font: 600 13px var(--mono); fill: var(--bg); text-anchor: middle; }
.tr-wheel { fill: var(--ink); stroke: var(--surface); stroke-width: 3; }
.speed line { stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; }
.check circle { fill: var(--good); }
.check path { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.route { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 3 6; opacity: .7; }
.route-dot { fill: var(--accent); offset-path: path("M 90 150 C 160 40, 300 40, 372 182"); animation: track 7s linear infinite; }
.pin-shape { fill: var(--accent); }
.pin-hole { fill: var(--bg); }
.pin { animation: bob 2.4s ease-in-out infinite; transform-box: fill-box; }
.chip rect { fill: var(--surface); stroke: var(--line); filter: drop-shadow(0 6px 14px rgb(0 0 0 / .08)); }
.chip text { font: 500 12.5px var(--mono); fill: var(--ink); }
.chip-dot { fill: var(--good); }
.chip-1 { animation: bob 4s ease-in-out infinite; }
.chip-2 { animation: bob 4.6s ease-in-out .6s infinite; }
.chip-3 { animation: bob 5s ease-in-out 1.2s infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* 7s delivery loop: load → drive → drop → confirm */
.truck { animation: drive 7s cubic-bezier(.65,0,.35,1) infinite; }
@keyframes drive {
  0%, 14% { transform: translateX(0); opacity: 1; }
  52%, 86% { transform: translateX(70px); opacity: 1; }
  94% { transform: translateX(110px); opacity: 0; }
  95% { transform: translateX(-60px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
.speed { opacity: 0; animation: speed 7s linear infinite; }
@keyframes speed { 0%, 15% { opacity: 0; } 20%, 46% { opacity: 1; } 52%, 100% { opacity: 0; } }
.parcel-a { animation: load 7s ease-in-out infinite; }
@keyframes load { 0%, 4% { transform: translate(0,0); opacity: 1; } 12% { transform: translate(44px,-14px); opacity: 0; } 95% { transform: translate(0,0); opacity: 0; } 100% { opacity: 1; } }
.parcel-b { opacity: 0; animation: drop 7s ease-out infinite; }
@keyframes drop { 0%, 56% { opacity: 0; transform: translate(-30px,-16px); } 64% { opacity: 1; transform: translate(0,0); } 88% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; } }
.check { opacity: 0; transform-box: fill-box; transform-origin: center; animation: confirm 7s ease-out infinite; }
@keyframes confirm { 0%, 64% { opacity: 0; transform: scale(.4); } 70% { opacity: 1; transform: scale(1.1); } 74%, 88% { opacity: 1; transform: scale(1); } 94%, 100% { opacity: 0; } }
@keyframes track { 0% { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 60% { offset-distance: 100%; opacity: 1; } 66%, 100% { offset-distance: 100%; opacity: 0; } }

/* Icons */
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tile-label { display: flex; align-items: center; gap: 8px; }
.tile-label .ic { color: var(--accent); width: 16px; height: 16px; }
.tile-xl .tile-label .ic { color: var(--accent); }
.skill-group h3 { display: flex; align-items: center; gap: 10px; }
.skill-group h3 .ic { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); transition: transform .15s ease-out; }
.skill-group:hover h3 .ic { transform: translateY(-2px); }
.skill-group { transition: border-color .15s ease-out, transform .15s ease-out; }
.skill-group:hover { border-color: var(--ink-3); transform: translateY(-3px); }

/* Cursor glow on cards */
.tile, .skill-group, .case-visual, .lab-out, .paper { position: relative; isolation: isolate; }
.tile::after, .skill-group::after, .case-visual::after, .lab-out::after, .paper::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .2s ease-out;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%);
}
.tile:hover::after, .skill-group:hover::after, .case-visual:hover::after, .lab-out:hover::after, .paper:hover::after { opacity: 1; }
.tile-xl::after { background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%); }

/* Timeline rail that fills on scroll */
.timeline { position: relative; }
.timeline > li.rail { position: absolute; left: 6px; top: 40px; bottom: 40px; width: 2px; padding: 0; border: 0; background: var(--line); display: block; }
.rail span { position: absolute; inset: 0; background: var(--accent); transform-origin: top; transform: scaleY(var(--p, 0)); }
.timeline > li:not(.rail) { padding-left: 36px; position: relative; }
.timeline > li:not(.rail)::before { content: ""; position: absolute; left: 0; top: 38px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line); transition: border-color .3s ease-out, background-color .3s ease-out, box-shadow .3s ease-out; }
.timeline > li.lit::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }


/* On wide screens the illustration owns the right side; keep VibeKit's particles + lower-left circuit there */
@media (min-width: 961px) { .circuits > g:nth-of-type(1), .circuits > g:nth-of-type(2), .c-pulse { display: none; } }

/* Impact groups: Now (GLEUHR) / Before (Sova) */
.impact-group + .impact-group { margin-top: 56px; }
.group-label { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font: 500 13px/1.4 var(--mono); color: var(--ink-2); margin-bottom: 16px; }
.badge-now, .badge-before { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font: 600 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.badge-now { background: var(--accent); color: #fff; }
.badge-now .pulse { background: #fff; }
.badge-before { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.tile-span2 { grid-column: span 2; }
.big-sub { font: 400 clamp(20px, 2.2vw, 28px)/1.1 var(--serif); color: color-mix(in srgb, var(--bg) 75%, transparent); letter-spacing: 0; align-self: flex-end; padding-bottom: .4em; }
.mid-big { font-size: clamp(30px, 3vw, 40px); }
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 6px 0 4px; }
.cats li { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; border-radius: 14px; background: var(--surface-2); font-size: 13px; font-weight: 500; text-align: center; transition: transform .15s ease-out, background-color .15s ease-out; }
.cats li:hover { transform: translateY(-3px); background: var(--accent-soft); }
.cat-ic { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.stack { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-left: auto; color: var(--ink-2); font-size: 15px; }
.stack strong { color: var(--ink); font-weight: 600; }
.tile-wide .stack { justify-content: flex-end; }
@media (max-width: 900px) { .tile-span2 { grid-column: span 2; } }
@media (max-width: 520px) { .tile-span2 { grid-column: auto; } .cats { grid-template-columns: repeat(2, 1fr); } .tile-wide .stack { justify-content: flex-start; margin-left: 0; } }
/* 12 client-location pins lighting up in sequence */
.loc-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 18px 0 8px; max-width: 420px; }
.loc-grid span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--bg) 8%, transparent); border: 1px solid color-mix(in srgb, var(--bg) 14%, transparent); }
.loc-grid svg { width: 55%; height: 55%; fill: none; stroke: color-mix(in srgb, var(--bg) 45%, transparent); stroke-width: 1.8; stroke-linejoin: round; animation: loc 6s ease-in-out infinite; animation-delay: calc(var(--i) * 0.25s); }
@keyframes loc { 0%, 100% { stroke: color-mix(in srgb, var(--bg) 45%, transparent); transform: none; } 8%, 40% { stroke: var(--accent); transform: translateY(-2px); } 55% { stroke: color-mix(in srgb, var(--bg) 45%, transparent); transform: none; } }


/* WhatsApp: "Connect me now" */
:root { --wa: #25d366; --wa-dark: #128c4b; }
.wa-ic { width: 20px; height: 20px; flex: none; }
.wa-bubble { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.wa-phone { fill: currentColor; }
.btn.wa { background: var(--wa); border-color: var(--wa); color: #0b3d22; font-weight: 600; }
.btn.wa:hover { background: #1fbe5b; border-color: #1fbe5b; }
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 70;
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px 14px 16px;
  border-radius: 999px; background: var(--wa); color: #0b3d22; text-decoration: none;
  font: 600 15px/1 var(--sans); box-shadow: 0 10px 30px rgb(18 140 75 / .35), 0 2px 6px rgb(0 0 0 / .12);
  transition: transform .15s ease-out, box-shadow .15s ease-out, opacity .3s ease-out;
  animation: wa-in .5s cubic-bezier(.16,1,.3,1) 1.2s backwards;
}
.wa-float .wa-ic { width: 24px; height: 24px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--wa); animation: wa-ring 2.4s ease-out 2s infinite; pointer-events: none; }
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgb(18 140 75 / .45), 0 2px 6px rgb(0 0 0 / .12); }
.wa-float:active { transform: scale(.97); }
.wa-float.hide { opacity: 0; pointer-events: none; transform: translateY(12px); }
@keyframes wa-in { from { opacity: 0; transform: translateY(20px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes wa-ring { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(1.25, 1.6); opacity: 0; } }
@media (max-width: 520px) { .wa-float { right: 16px; bottom: 16px; padding: 12px 16px 12px 14px; font-size: 14px; } }


/* ───────── Icons & graphics on every section ───────── */
.kicker { display: inline-flex; align-items: center; gap: 8px; }
.kicker .ic { width: 26px; height: 26px; padding: 5px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); stroke-width: 2; }
.btn .ic { width: 17px; height: 17px; }
.small-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font-size: 14px; color: var(--ink-2); text-decoration: none; border-bottom: 1px solid transparent; transition: color .15s ease-out, border-color .15s ease-out; }
.small-link .ic { width: 15px; height: 15px; }
.small-link:hover { color: var(--ink); border-bottom-color: var(--ink-3); }
.contact .small-link { display: flex; width: max-content; }
.h3-ic { width: 30px; height: 30px; padding: 6px; margin-right: 10px; vertical-align: -6px; border-radius: 9px; background: var(--accent-soft); fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.case-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.case-meta .badge-now, .case-meta .badge-before { padding: 4px 9px; font-size: 10.5px; }
.org { display: flex; align-items: center; gap: 8px; }
.org-ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.edu li { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; align-items: start; }
.edu li p { grid-column: 2; }
.edu-ic { grid-row: span 2; width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--accent-soft); fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.meta-ic { width: 15px; height: 15px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Impact: automatic documentation tile */
.tile-auto { flex-direction: column; align-items: stretch; gap: 14px; background: linear-gradient(120deg, var(--accent-soft), var(--surface) 55%); }
.docflow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.df-src, .df-engine, .df-doc { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 12px; font-size: 13.5px; font-weight: 500; background: var(--surface); border: 1px solid var(--line); }
.df-src .ic, .df-doc .ic { width: 16px; height: 16px; color: var(--accent); }
.df-engine { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.df-engine .ic { width: 16px; height: 16px; color: var(--accent); animation: zap 1.6s ease-in-out infinite; }
@keyframes zap { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
.df-arrow { position: relative; width: 44px; height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.df-arrow::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--accent); animation: flow 1.4s linear infinite; }
@keyframes flow { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.df-docs { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.df-doc { animation: doc-pop 4.5s ease-out infinite; animation-delay: calc(var(--d) * .45s); }
@keyframes doc-pop { 0%, 8% { opacity: .25; transform: translateY(6px); } 18%, 80% { opacity: 1; transform: none; border-color: var(--accent); } 95%, 100% { opacity: .25; transform: none; } }
@media (max-width: 640px) { .df-arrow { width: 24px; } }

/* Issues handled: document generator animation */
.docgen { width: 100%; height: auto; }
.docgen rect { fill: var(--surface-2); stroke: var(--line); }
.docgen text { font: 500 11px var(--mono); fill: var(--ink-2); text-anchor: middle; }
.dg-engine rect { fill: var(--ink); stroke: var(--ink); }
.dg-engine text { fill: var(--bg); }
.dg-bolt { fill: var(--accent); animation: zap 1.6s ease-in-out infinite; }
.dg-line { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 4 5; animation: dash 1.2s linear infinite; }
.dg-order rect { fill: var(--accent-soft); stroke: var(--accent); animation: bob 3s ease-in-out infinite; }
.dg-doc { animation: doc-in 4.5s ease-out infinite; animation-delay: calc(var(--d) * .5s); }
.dg-doc rect { fill: var(--surface); }
@keyframes doc-in { 0%, 6% { opacity: 0; transform: translateX(-14px); } 16%, 82% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: none; } }
.dg-tick { fill: var(--good); }
.dg-tickm { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 900px) { .tile-wide:not(.tile-auto) > .tile-label { white-space: nowrap; } }

/* ───────── Build mode ("Watch this page build itself") ───────── */
.build-btn { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 8px 16px 8px 8px; border-radius: 999px; border: 1px dashed var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); color: var(--ink); font: 500 14px/1 var(--sans); cursor: pointer; transition: background-color .15s ease-out, transform .15s ease-out; }
.build-btn:hover { background: var(--accent-soft); transform: translateY(-2px); }
.bb-play { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); }
.bb-play svg { width: 12px; height: 12px; fill: #fff; margin-left: 2px; }
.foot-links { display: flex; gap: 20px; }
.foot-build { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; }

body.building .bt { opacity: 0 !important; transform: translateY(8px) scale(.985) !important; transition: none !important; }
body.building .bt.built { opacity: 1 !important; transform: none !important; transition: opacity .35s ease-out, transform .35s ease-out !important; }
body.building .hero h1 .w { animation: none; opacity: 0; transform: translateY(.3em); }
.hero h1 .w.on { animation: none; opacity: 1; transform: none; transition: opacity .2s ease-out, transform .2s ease-out; }
body.building .wa-float { opacity: 0; pointer-events: none; }

.sw-layer { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; z-index: 75; overflow: hidden; }
.sw-cursor { position: absolute; left: 0; top: 0; display: flex; align-items: flex-start; transition-property: transform, opacity; transition-timing-function: cubic-bezier(.22,1,.36,1); will-change: transform; filter: drop-shadow(0 3px 6px rgb(0 0 0 / .25)); }
.sw-tag { margin: 16px 0 0 -4px; padding: 3px 8px; border-radius: 6px; color: #fff; font: 600 11px/1.3 var(--sans); white-space: nowrap; }
.sw-box { position: absolute; width: 0; height: 0; border: 1.5px solid var(--c); background: color-mix(in srgb, var(--c) 7%, transparent); border-radius: 6px; transition: width .32s cubic-bezier(.22,1,.36,1), height .32s cubic-bezier(.22,1,.36,1), opacity .35s ease-out; }
.sw-box::before, .sw-box::after { content: ""; position: absolute; width: 7px; height: 7px; background: #fff; border: 1.5px solid var(--c); border-radius: 2px; }
.sw-box::before { left: -5px; top: -5px; }
.sw-box::after { right: -5px; bottom: -5px; }
.sw-box.done { opacity: 0; }
.sw-dim { position: absolute; left: 0; top: -24px; padding: 2px 7px; border-radius: 5px; color: #fff; font: 500 11px/1.5 var(--mono); white-space: nowrap; }

.sw-pill { position: fixed; left: 50%; top: 76px; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); font: 500 14px/1 var(--sans); box-shadow: 0 10px 30px rgb(0 0 0 / .25); animation: wa-in .4s cubic-bezier(.16,1,.3,1) backwards; white-space: nowrap; }
.sw-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: zap 1s ease-in-out infinite; }
.sw-pill.ok .sw-dot { background: var(--good); animation: none; }
.sw-skip { border: 0; border-radius: 999px; padding: 8px 12px; background: color-mix(in srgb, var(--bg) 15%, transparent); color: var(--bg); font: 500 13px/1 var(--sans); cursor: pointer; }
.sw-skip kbd { font: 500 11px var(--mono); opacity: .7; margin-left: 4px; }
@media (max-width: 520px) { .sw-pill { top: 70px; font-size: 13px; } .sw-tag { font-size: 10px; } }

/* Scroll mode: blocks below the hero wait for a cursor to build them */
body.sw-scroll .bt:not(.built) { opacity: 0 !important; transform: translateY(8px) scale(.985) !important; transition: none !important; }
.bt.built { animation: bt-in .35s ease-out; }
@keyframes bt-in { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
.sw-cursor.idle { opacity: 0; transition-duration: .5s !important; }
/* keep the hover lift on cards after the scroll-reveal has run */
.tile.reveal.in:hover, .skill-group.reveal.in:hover { transform: translateY(-3px); }

/* "Inside the Operations" — top-bar trigger for the full build tour */
.ops-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent-soft); color: var(--ink); font: 600 13px/1 var(--sans); cursor: pointer; white-space: nowrap; transition: transform .15s ease-out, background-color .15s ease-out; }
.ops-btn:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--accent) 22%, var(--surface)); }
.ops-ic { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; animation: ops-spin 6s linear infinite; }
.ops-play { fill: var(--accent); stroke: none; }
@keyframes ops-spin { to { transform: rotate(360deg); } }
.ops-ic { transform-origin: 50% 50%; }
@media (max-width: 760px) { .ops-btn { margin-left: auto; } }
@media (max-width: 380px) { .ops-btn { padding: 7px 11px 7px 8px; font-size: 12px; } }

/* ───────── Startup: Shopify store ───────── */
.startup { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; align-items: stretch; }
@media (max-width: 900px) { .startup { grid-template-columns: 1fr; } }
.store { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: 0 20px 50px rgb(0 0 0 / .06); }
.store-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.store-dots { display: flex; gap: 6px; }
.store-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.store-dots i:first-child { background: #ff6159; } .store-dots i:nth-child(2) { background: #ffbd2e; } .store-dots i:nth-child(3) { background: #28c941; }
.store-url { flex: 1; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 8px; background: var(--surface); font: 500 12px var(--mono); color: var(--ink-2); }
.store-url-ic, .store-cart-ic, .store-add-ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.store-url-ic { color: #5e8e3e; }
.store-cart { position: relative; display: inline-flex; color: var(--ink); }
.store-cart-ic { width: 22px; height: 22px; }
.store-cart b { position: absolute; top: -8px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font: 600 11px/18px var(--sans); text-align: center; }
.store-cart b.bump { animation: bump .45s cubic-bezier(.16,1,.3,1); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
.store-body { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; padding: 28px; }
@media (max-width: 520px) { .store-body { grid-template-columns: 1fr; padding: 20px; } .store-img { max-width: 200px; margin: 0 auto; } }
.store-img { aspect-ratio: 1; border-radius: 16px; background: radial-gradient(circle at 50% 40%, var(--accent-soft), var(--surface-2) 70%); display: grid; place-items: center; }
.jar { width: 82%; height: auto; animation: bob 4s ease-in-out infinite; overflow: visible; }
.jar-shadow { fill: rgb(0 0 0 / .08); }
.jar-body { fill: #fff7f1; stroke: #e6cdb9; stroke-width: 2; }
.jar-lid { fill: var(--accent); }
.jar-lid-band { fill: rgb(0 0 0 / .12); }
.jar-label { fill: #fff; stroke: #f0dccc; }
.jar-leaf { fill: #2b8a3e; }
.jar-leaf-vein { fill: none; stroke: #bfe3c6; stroke-width: 1.5; }
.jar-text { font: 700 9px var(--sans); letter-spacing: .12em; fill: #6b5a4c; text-anchor: middle; }
.jar-shine { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; opacity: .8; }
.store-tag { font: 500 12px var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.store-title { font: 400 clamp(24px, 2.6vw, 32px)/1.1 var(--serif); margin: 8px 0 12px; }
.store-price { font: 600 26px var(--sans); margin-bottom: 18px; }
.store-add { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; background: var(--ink); color: var(--bg); font: 600 14px var(--sans); }
.store-add.press { animation: press .5s ease-out; }
@keyframes press { 0%, 100% { transform: none; box-shadow: 0 0 0 0 transparent; } 35% { transform: scale(.94); box-shadow: 0 0 0 7px var(--accent-soft); } }
.store-toast { position: absolute; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--ink); color: var(--bg); font: 500 13px var(--sans); box-shadow: 0 10px 24px rgb(0 0 0 / .18); opacity: 0; transform: translateY(14px); }
.store-toast.show { animation: toast 1.8s ease-in-out; }
.toast-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
@keyframes toast { 0% { opacity: 0; transform: translateY(14px); } 15%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }
.startup-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.startup-stats .tile-dark { grid-column: span 2; background: var(--ink); color: var(--bg); border-color: var(--ink); }
.startup-stats .tile-dark .tile-label, .startup-stats .tile-dark .tile-note { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.startup-stats .tile-dark .big { font-size: clamp(54px, 7vw, 88px); }
.live { display: inline-flex; align-items: center; gap: 12px; color: var(--good); }
.live-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 60%, transparent); animation: pulse 2s infinite; }
@media (max-width: 520px) { .startup-stats { grid-template-columns: 1fr; } .startup-stats .tile-dark { grid-column: auto; } }
.store { display: flex; flex-direction: column; }
.store-body { flex: 1; }
.store-toast { top: 62px; right: 16px; bottom: auto; }
.startup-stats .tile:last-child { grid-column: span 2; flex-direction: row; align-items: center; justify-content: space-between; }
.startup-stats .tile:last-child .tile-note { margin: 0; }
@media (max-width: 520px) { .startup-stats .tile:last-child { grid-column: auto; flex-direction: column; align-items: flex-start; } }

/* Tour: text is typed out piece by piece */
body.building .tx { clip-path: inset(0 100% 0 0); }
body.building .tx.tx-on { clip-path: inset(-4px -4px -4px -4px); }

/* ───────── Doc flow: arrows + effects ───────── */
.df-arrow { position: relative; display: inline-flex; align-items: center; gap: 4px; width: 64px; height: 18px; background: none; overflow: visible; }
.df-arrow::before { content: ""; position: absolute; left: 0; right: 8px; top: 50%; height: 2px; margin-top: -1px; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 11px); background-size: 22px 2px; animation: dashflow .7s linear infinite; }
.df-arrow::after { content: ""; position: absolute; right: 0; top: 50%; margin-top: -6px; border: 6px solid transparent; border-left: 9px solid var(--accent); border-right: 0; filter: drop-shadow(0 0 4px var(--accent)); }
.df-arrow i { position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: dfdot 1.5s linear infinite; }
.df-arrow i:nth-child(2) { animation-delay: .5s; } .df-arrow i:nth-child(3) { animation-delay: 1s; }
@keyframes dashflow { to { background-position: 22px 0; } }
@keyframes dfdot { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 50px; opacity: 0; } }
.df-engine { position: relative; box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); animation: engine-glow 2s ease-out infinite; }
@keyframes engine-glow { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 10px transparent; } }
.df-mini { display: inline-grid; place-items: center; font: 700 20px/1 var(--sans); color: var(--accent); animation: mini 1.2s ease-in-out infinite; }
@keyframes mini { 0%, 100% { transform: translateX(0); opacity: .5; } 50% { transform: translateX(3px); opacity: 1; } }
.df-docs { align-items: center; gap: 6px; }
.df-doc { position: relative; }
.df-tick { position: absolute; top: -7px; right: -7px; width: 18px; height: 18px; border-radius: 50%; background: var(--good); display: grid; place-items: center; opacity: 0; transform: scale(.3); animation: tick 4.5s ease-out infinite; animation-delay: calc(var(--d) * .45s); }
.df-tick-ic { width: 11px; height: 11px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@keyframes tick { 0%, 14% { opacity: 0; transform: scale(.3); } 22%, 80% { opacity: 1; transform: scale(1); } 95%, 100% { opacity: 0; transform: scale(.6); } }
.df-doc { box-shadow: 0 0 0 0 transparent; }
@keyframes doc-pop { 0%, 8% { opacity: .3; transform: translateY(6px); } 18%, 80% { opacity: 1; transform: none; border-color: var(--accent); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 22%, transparent); } 95%, 100% { opacity: .3; transform: none; } }
@media (max-width: 640px) { .df-arrow { width: 36px; } @keyframes dfdot { 0% { left: 0; opacity: 0; } 100% { left: 24px; opacity: 0; } } }

/* ───────── Growth graph (start → month 8) ───────── */
.growth { position: relative; margin: 18px 0 6px; height: 150px; }
.growth svg { width: 100%; height: 100%; overflow: visible; }
.g-grid line { stroke: color-mix(in srgb, var(--bg) 14%, transparent); stroke-dasharray: 3 6; vector-effect: non-scaling-stroke; }
.g-area { fill: url(#gfill); opacity: 0; transition: opacity .8s ease-out .9s; }
.g-line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 60%, transparent)); transition: stroke-dashoffset 1.6s cubic-bezier(.4,0,.2,1) .2s; }
.in .g-line, .built .g-line { stroke-dashoffset: 0; }
.in .g-area, .built .g-area { opacity: 1; }
.g-dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--accent); }
.g-start { left: 3.5%; top: 85.3%; background: color-mix(in srgb, var(--bg) 70%, transparent); }
.g-end { left: 96.5%; top: 10.7%; opacity: 0; transform: scale(.3); transition: opacity .3s ease-out 1.7s, transform .4s cubic-bezier(.16,1,.3,1) 1.7s; }
.in .g-end, .built .g-end { opacity: 1; transform: none; animation: endpulse 2s ease-out 2.2s infinite; }
@keyframes endpulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 14px transparent; } }
.g-lbl { position: absolute; font: 500 11.5px var(--mono); white-space: nowrap; }
.g-lbl-start { left: 0; bottom: -4px; color: color-mix(in srgb, var(--bg) 65%, transparent); }
.g-lbl-end { right: 0; top: 22%; color: var(--accent); }
@media (max-width: 520px) { .growth { height: 110px; } }

/* ───────── Life Beyond Work ───────── */
.pipeline { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; padding: 24px; margin-bottom: 14px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(120deg, var(--surface), color-mix(in srgb, var(--accent) 7%, var(--surface))); }
.pl-step { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); animation: plglow 5s ease-in-out infinite; }
.pl-step .ic { width: 20px; height: 20px; color: var(--accent); }
.pl-step b { font: 600 14px var(--sans); }
.pl-step small { font: 500 11px var(--mono); color: var(--ink-3); }
.pipeline > :nth-child(1) { animation-delay: 0s; } .pipeline > :nth-child(3) { animation-delay: 1s; } .pipeline > :nth-child(5) { animation-delay: 2s; } .pipeline > :nth-child(7) { animation-delay: 3s; } .pipeline > :nth-child(9) { animation-delay: 4s; }
@keyframes plglow { 0%, 22%, 100% { border-color: var(--line); box-shadow: none; transform: none; } 6%, 16% { border-color: var(--accent); box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 25%, transparent); transform: translateY(-3px); } }
.pl-live .ic { color: var(--good); }
.pl-link { position: relative; width: 42px; height: 2px; background: var(--line); border-radius: 2px; }
.pl-link::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--line); border-right: 0; }
.pl-link i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: plrun 1.2s linear infinite; }
@keyframes plrun { 0% { left: 0; opacity: 0; } 20%, 80% { opacity: 1; } 100% { left: 34px; opacity: 0; } }
@media (max-width: 640px) { .pl-link { width: 18px; } @keyframes plrun { 0% { left: 0; opacity: 0; } 100% { left: 12px; opacity: 0; } } }

.beyond-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1000px) { .beyond-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .beyond-grid { grid-template-columns: 1fr; } }
.beyond-card { position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: transform .15s ease-out, border-color .15s ease-out; }
.beyond-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.beyond-card.reveal.in:hover { transform: translateY(-4px); }
.beyond-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .2s ease-out; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%); }
.beyond-card:hover::after { opacity: 1; }
.beyond-card h3 { font: 400 26px/1.1 var(--serif); }
.beyond-card p { color: var(--ink-2); font-size: 14.5px; }
.beyond-card .chips { margin-top: auto; }
.bc-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: #fff; animation: bob 4s ease-in-out infinite; }
.bc-ic .ic { width: 26px; height: 26px; stroke-width: 1.8; }
.bc-claude { background: linear-gradient(135deg, #d97757, #b5502f); }
.bc-claude .ic { animation: spin-slow 8s linear infinite; }
.bc-gh { background: linear-gradient(135deg, #3a3a3a, #111); animation-delay: .5s; }
.bc-vc { background: linear-gradient(135deg, #222, #000); animation-delay: 1s; }
.bc-learn { background: linear-gradient(135deg, var(--good), #1f6b30); animation-delay: 1.5s; }
@keyframes spin-slow { to { transform: rotate(360deg); } }

.proof { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; align-items: center; margin-top: 14px; }
@media (max-width: 860px) { .proof { grid-template-columns: 1fr; } }
.term { border-radius: var(--radius); overflow: hidden; background: #111110; border: 1px solid #2e2d2a; box-shadow: 0 18px 40px rgb(0 0 0 / .18); }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #1c1c1a; }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a37; }
.term-bar i:first-child { background: #ff6159; } .term-bar i:nth-child(2) { background: #ffbd2e; } .term-bar i:nth-child(3) { background: #28c941; }
.term-bar span { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; font: 500 12px var(--mono); color: #9a968c; }
.term-ic { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.term-body { margin: 0; padding: 18px; font: 500 13px/1.9 var(--mono); color: #e9e6df; white-space: pre-wrap; overflow-wrap: anywhere; }
.term-body em { font-style: normal; color: #ff7a3d; }
.term-body u { text-decoration: none; color: #69db7c; }
.tl { display: inline-block; clip-path: inset(0 100% 0 0); }
.term.play .tl { animation: tline .7s steps(28, end) forwards; animation-delay: calc(var(--l) * .75s); }
@keyframes tline { to { clip-path: inset(0 -4px 0 0); } }
.proof-note { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; color: var(--ink-2); }
.proof-note .ic { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--good); color: #fff; stroke-width: 2.6; }
.proof-note strong { color: var(--ink); }
/* fixes: arrowhead (clear the old bar style) + full-length graph line + label position */
.df-arrow::after { inset: auto; left: auto; right: 0; top: 50%; width: 0; height: 0; background: none; animation: none; transform: none; }
.df-arrow { overflow: visible; background: none; height: 18px; border-radius: 0; }
.g-line { vector-effect: none; stroke-width: 3; stroke-dasharray: 600; stroke-dashoffset: 600; }
.in .g-line, .built .g-line { stroke-dashoffset: 0; }
.g-lbl-end { top: -2px; right: 24px; }

/* CV (PDF) download: visible in the top bar and the footer */
.cv-ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.cv-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px 8px 10px; border-radius: 999px; background: var(--ink); color: var(--bg); text-decoration: none; font: 600 13px/1 var(--sans); white-space: nowrap; transition: transform .15s ease-out, box-shadow .15s ease-out; }
.cv-btn small { font: 600 10px/1 var(--mono); padding: 3px 5px; border-radius: 5px; background: var(--accent); color: #fff; letter-spacing: .04em; }
.cv-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgb(0 0 0 / .18); }
.cv-btn .cv-ic { animation: cv-nudge 2.4s ease-in-out infinite; }
@keyframes cv-nudge { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(2px); } 90% { transform: translateY(-1px); } }
@media (max-width: 1180px) { .nav nav { gap: 16px; } .nav nav a { font-size: 13px; } }
@media (max-width: 1060px) { .nav nav { display: none; } .cv-btn { margin-left: auto; } }
@media (max-width: 760px) { .ops-btn { margin-left: 0; } }
@media (max-width: 440px) { .nav-inner { gap: 8px; } .ops-btn { padding: 7px 10px 7px 8px; font-size: 12px; gap: 6px; } .ops-ic { width: 18px; height: 18px; } .cv-btn { padding: 7px 9px 7px 8px; font-size: 12px; } .cv-btn small { display: none; } }
@media (max-width: 374px) { .cv-btn span { display: none; } .cv-btn { padding: 8px; } }

.footer { align-items: center; }
.cv-foot { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 14px; background: var(--accent); color: #fff; text-decoration: none; font: 600 15px/1 var(--sans); box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 35%, transparent); transition: transform .15s ease-out, box-shadow .15s ease-out; }
.cv-foot .cv-ic { width: 22px; height: 22px; }
.cv-foot small { font: 600 11px var(--mono); opacity: .85; margin-left: 4px; }
.cv-foot:hover { transform: translateY(-2px); box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 45%, transparent); }

/* ───────── Toolkit: skill map + logic chart ───────── */
.tk { display: grid; grid-template-columns: 1.05fr 1fr; gap: 14px; align-items: stretch; }
@media (max-width: 900px) { .tk { grid-template-columns: 1fr; } }
.tk-hub { margin: 0; border-radius: var(--radius); border: 1px solid var(--line); background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 9%, var(--surface)), var(--surface) 65%); padding: 10px; }
.tk-hub svg { width: 100%; height: auto; display: block; }
.tk-ring { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 4 6; }
.tk-spoke { stroke: var(--line); stroke-width: 2; stroke-dasharray: 6 6; animation: dash 1.2s linear infinite; transition: stroke .3s ease-out, stroke-width .3s ease-out; }
.tk-spoke.on { stroke: var(--accent); stroke-width: 3; }
.tk-core circle { fill: var(--ink); }
.tk-core .tk-core-halo { fill: none; stroke: var(--accent); stroke-width: 2; opacity: .5; transform-box: fill-box; transform-origin: center; animation: core-pulse 2.4s ease-out infinite; }
@keyframes core-pulse { 0% { transform: scale(.9); opacity: .7; } 100% { transform: scale(1.35); opacity: 0; } }
.tk-core-t { font: 400 20px var(--serif); fill: var(--bg); text-anchor: middle; }
.tk-core-s { font: 500 10px var(--mono); fill: color-mix(in srgb, var(--bg) 65%, transparent); text-anchor: middle; letter-spacing: .04em; }
.tk-node { cursor: pointer; outline: none; }
.tk-node .tk-dot { fill: var(--surface); stroke: var(--line); stroke-width: 2; transition: fill .3s ease-out, stroke .3s ease-out; }
.tk-node .tk-halo { fill: color-mix(in srgb, var(--accent) 18%, transparent); opacity: 0; transform-box: fill-box; transform-origin: center; transition: opacity .3s ease-out; }
.tk-node text { font: 600 12.5px var(--sans); fill: var(--ink); text-anchor: middle; pointer-events: none; transition: fill .3s ease-out; }
.tk-node .tk-num { font: 500 9.5px var(--mono); fill: var(--ink-3); }
.tk-node:hover .tk-dot, .tk-node:focus-visible .tk-dot { stroke: var(--accent); }
.tk-node.on .tk-dot { fill: var(--accent); stroke: var(--accent); }
.tk-node.on text { fill: #fff; }
.tk-node.on .tk-halo { opacity: 1; animation: core-pulse 1.8s ease-out infinite; }
.tk-runner { fill: var(--accent); filter: drop-shadow(0 0 6px var(--accent)); }

.tk-panel { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.tk-step { font: 500 12px var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.tk-panel h3 { font: 400 clamp(28px, 3.2vw, 40px)/1.05 var(--serif); }
.tk-desc { color: var(--ink-2); }
.tk-chips li { animation: chip-in .35s ease-out backwards; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes chip-in { from { opacity: 0; transform: translateY(6px) scale(.96); } to { opacity: 1; transform: none; } }
.tk-panel.swap h3, .tk-panel.swap .tk-desc { animation: chip-in .35s ease-out; }
.tk-bar { height: 3px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-top: auto; }
.tk-bar span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.tk-bar span.run { animation: tkbar 3.6s linear forwards; }
@keyframes tkbar { to { transform: scaleX(1); } }
.tk-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tk-tab { border: 1px solid var(--line); background: transparent; color: var(--ink-2); padding: 6px 10px; border-radius: 999px; font: 500 12px var(--sans); cursor: pointer; transition: background-color .15s ease-out, color .15s ease-out, border-color .15s ease-out; }
.tk-tab:hover { border-color: var(--ink-3); color: var(--ink); }
.tk-tab.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.logic { margin: 14px 0 0; padding: 20px 20px 10px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.logic figcaption { display: flex; align-items: center; gap: 8px; font: 500 12px var(--mono); color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.logic figcaption .ic { color: var(--accent); }
.logic-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.logic-scroll svg { display: block; width: 100%; min-width: 760px; height: auto; }
.lg-edges path { fill: none; stroke: var(--ink-3); stroke-width: 2; }
.lg-edges .lg-no { stroke: #e8590c; stroke-dasharray: 6 5; animation: dash 1.2s linear infinite; }
.lg-edges .lg-mis { stroke: var(--line); stroke-dasharray: 3 5; }
.lg-arrowhead { fill: var(--ink-3); }
.lg-node rect, .lg-node path { fill: var(--surface-2); stroke: var(--line); stroke-width: 1.5; }
.lg-node text { font: 600 13px var(--sans); fill: var(--ink); text-anchor: middle; }
.lg-node .lg-sub { font: 500 10.5px var(--mono); fill: var(--ink-3); }
.lg-sys rect { fill: var(--accent-soft); stroke: var(--accent); }
.lg-dec path { fill: color-mix(in srgb, #2e6bd9 12%, var(--surface)); stroke: #2e6bd9; }
.lg-end rect { fill: color-mix(in srgb, var(--good) 14%, var(--surface)); stroke: var(--good); }
.lg-warn rect { fill: color-mix(in srgb, #e8590c 10%, var(--surface)); stroke: #e8590c; stroke-dasharray: 5 4; }
.lg-mis-box rect { fill: transparent; stroke-dasharray: 4 5; }
.lg-mis-box text { font: 500 12px var(--mono); fill: var(--ink-2); }
.lg-yes { font: 600 11px var(--mono); fill: var(--good); text-anchor: middle; }
.lg-nolbl { font: 600 11px var(--mono); fill: #e8590c; }
.lg-node { animation: lg-lit 6s ease-in-out infinite; animation-delay: calc(var(--n) * .55s); }
@keyframes lg-lit { 0%, 14%, 100% { filter: none; } 5%, 9% { filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent) 55%, transparent)); } }
.lg-token { fill: var(--accent); filter: drop-shadow(0 0 6px var(--accent)); }
.lg-token-a { offset-path: path("M80 128 L927 128"); animation: lg-run 6s cubic-bezier(.45,0,.55,1) infinite; }
.lg-token-b { fill: #e8590c; offset-path: path("M420 128 L420 255 L255 255 L255 128"); animation: lg-run-b 6s ease-in-out 2s infinite; opacity: 0; }
@keyframes lg-run { 0% { offset-distance: 0%; opacity: 0; } 5% { opacity: 1; } 92% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
@keyframes lg-run-b { 0% { offset-distance: 0%; opacity: 0; } 6% { opacity: 1; } 45% { offset-distance: 100%; opacity: 1; } 52%, 100% { offset-distance: 100%; opacity: 0; } }
/* Logic chart, phone version: vertical flow */
.logic-v { display: none; }
@media (max-width: 640px) {
  .logic-scroll { display: none; }
  .logic-v { display: flex; flex-direction: column; align-items: stretch; gap: 22px; margin: 6px 0 10px; }
  .lv { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1.5px solid var(--line); animation: lg-lit 6s ease-in-out infinite; }
  .lv:nth-child(2) { animation-delay: .6s; } .lv:nth-child(3) { animation-delay: 1.2s; } .lv:nth-child(4) { animation-delay: 1.8s; } .lv:nth-child(5) { animation-delay: 2.4s; } .lv:nth-child(6) { animation-delay: 3s; }
  .lv b { font: 600 14px var(--sans); }
  .lv small { font: 500 11px var(--mono); color: var(--ink-3); }
  .lv:not(:last-child):not(.lv-mis)::after { content: ""; position: absolute; left: 50%; bottom: -21px; width: 2px; height: 18px; margin-left: -1px; background: repeating-linear-gradient(180deg, var(--accent) 0 4px, transparent 4px 8px); background-size: 2px 16px; animation: vflow .8s linear infinite; }
  @keyframes vflow { to { background-position: 0 16px; } }
  .lv-sys { background: var(--accent-soft); border-color: var(--accent); }
  .lv-dec { border-color: #2e6bd9; background: color-mix(in srgb, #2e6bd9 10%, var(--surface)); }
  .lv-no { font: 500 11.5px var(--mono); font-style: normal; color: #e8590c; }
  .lv-end { border-color: var(--good); background: color-mix(in srgb, var(--good) 12%, var(--surface)); }
  .lv-mis { background: transparent; border-style: dashed; text-align: center; animation: none; }
}

/* ───────── Operations wallpaper (fixed, very faint) ───────── */
:root { --wall-ink: #f1efe9; --wall-op: .06; --wall-glow-a: color-mix(in srgb, var(--accent) 10%, transparent); --wall-glow-b: color-mix(in srgb, #2e6bd9 6%, transparent); }
.wallpaper { position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 600px at 100% 0%, var(--wall-glow-a), transparent 60%),
    radial-gradient(800px 600px at 0% 100%, var(--wall-glow-b), transparent 60%); }
.wallpaper::before { content: ""; position: absolute; inset: -320px 0 0 0; opacity: var(--wall-op); background: var(--wall-ink);
  -webkit-mask: url("wallpaper.svg") 0 0 / 320px 320px repeat; mask: url("wallpaper.svg") 0 0 / 320px 320px repeat;
  animation: wall-drift 60s linear infinite; }
@keyframes wall-drift { to { transform: translateY(320px); } }
body { background-color: var(--bg); }
main, footer { position: relative; }
/* cards stay solid so the pattern never sits behind text */
.tile, .case-visual, .skill-group, .paper, .store, .tk-hub, .tk-panel, .logic, .beyond-card, .pipeline, .term { background-clip: padding-box; }

/* ───────── Back-to-top arrow ───────── */
.to-top { position: fixed; right: 26px; bottom: 92px; z-index: 69; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; box-shadow: 0 8px 22px rgb(0 0 0 / .14);
  opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; transition: opacity .25s ease-out, transform .25s ease-out, box-shadow .15s ease-out; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { box-shadow: 0 12px 28px rgb(0 0 0 / .2); transform: translateY(-2px); }
.to-top .tt-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.tt-ring circle { fill: none; stroke: var(--line); stroke-width: 3; }
.tt-ring .tt-prog { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .1s linear; }
.tt-arrow { position: relative; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.to-top:hover .tt-arrow { animation: tt-bounce .6s ease-out; }
@keyframes tt-bounce { 40% { transform: translateY(-3px); } }
body.building .to-top { opacity: 0; pointer-events: none; }
@media (max-width: 520px) { .to-top { right: 18px; bottom: 80px; width: 44px; height: 44px; } }

/* ───────── Menu: bold pill bar with icons + sliding active highlight ───────── */
.nav nav { position: relative; gap: 2px; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 85%, transparent); box-shadow: 0 4px 14px rgb(0 0 0 / .05); }
.nav nav a { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font: 650 13.5px/1 var(--sans); letter-spacing: -.005em; color: var(--ink-2); text-decoration: none; transition: color .2s ease-out, background-color .2s ease-out, transform .15s ease-out; }
.nav nav a .ic { width: 15px; height: 15px; color: var(--accent); transition: color .2s ease-out, transform .25s cubic-bezier(.16,1,.3,1); }
.nav nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--accent) 10%, transparent); transform: translateY(-1px); }
.nav nav a:hover .ic { transform: scale(1.18) rotate(-6deg); }
.nav nav a.active, .nav nav a.active:hover { color: #fff; background: transparent; }
.nav nav a.active .ic { color: #fff; }
.nav-ind { position: absolute; left: 0; top: 4px; bottom: 4px; width: 0; border-radius: 999px; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #b5502f)); box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 40%, transparent); opacity: 0; transition: transform .35s cubic-bezier(.16,1,.3,1), width .35s cubic-bezier(.16,1,.3,1), opacity .2s ease-out; }
@media (max-width: 1240px) { .nav nav a { padding: 7px 9px; font-size: 13px; } .nav nav a .ic { width: 14px; height: 14px; } }
@media (max-width: 1140px) { .nav nav a .ic { display: none; } }
@media (max-width: 1060px) { .nav nav { display: none; } .ops-btn { margin-left: auto; } }

/* ───────── Footer: centred CV download ───────── */
.footer { flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding-top: 40px; }
.footer > p { order: 2; }
.cv-foot { order: 1; padding: 15px 26px 15px 20px; font-size: 16px; border-radius: 16px; animation: cv-glow 2.8s ease-in-out infinite; }
@keyframes cv-glow { 0%, 100% { box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 30%, transparent); } 50% { box-shadow: 0 10px 34px color-mix(in srgb, var(--accent) 55%, transparent); } }

/* ───────── Toolkit: skills as icon tiles ───────── */
.tk-skills { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 6px 0 0; padding: 0; list-style: none; }
.tk-skills li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid transparent; font: 500 14px/1.25 var(--sans); color: var(--ink); animation: chip-in .4s ease-out backwards; animation-delay: calc(var(--i, 0) * 55ms); transition: transform .15s ease-out, border-color .15s ease-out, background-color .15s ease-out; }
.tk-skills li:hover { transform: translateY(-2px); border-color: var(--accent); background: var(--surface); }
.sk-ic { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); }
.sk-ic svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tk-skills li:hover .sk-ic { background: var(--accent); }
.tk-skills li:hover .sk-ic svg { stroke: #fff; }
.tk-bar { margin-top: auto; }

/* Glass.skin brand */
.brand-name { font-style: italic; background: linear-gradient(100deg, var(--accent) 0%, #e8a27c 35%, var(--accent) 55%, #b5502f 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: brand-shine 4s ease-in-out infinite; padding-right: .06em; }
@keyframes brand-shine { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.store-url b { font: 700 12.5px var(--sans); color: var(--ink); letter-spacing: -.01em; }
.store-url-sub { color: var(--ink-3); }
.jar-brand { font: italic 400 17px var(--serif); fill: #b5502f; text-anchor: middle; }
.tr-label { font-size: 11px; letter-spacing: .06em; }
/* 48hr -> 24hr: the "after" bar is half the length */
.in .runner.fast { width: 50%; }
.lane { grid-template-columns: 56px 1fr 70px; }
.tat-big { font-size: clamp(34px, 3.4vw, 44px); flex-wrap: nowrap; white-space: nowrap; }
/* cursor label flips to the left of the arrow near the right edge, so it is never cut off */
.sw-cursor { position: absolute; }
.sw-cursor .sw-tag { position: absolute; left: 12px; top: 0; margin: 18px 0 0; }

/* ───────── Hero: looking for ───────── */
.seeking { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.seek-lbl { display: inline-flex; align-items: center; gap: 6px; font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin-right: 2px; }
.seek-lbl .ic { width: 15px; height: 15px; }
.seek-chip { padding: 8px 14px; border-radius: 999px; font: 650 14px var(--sans); color: var(--ink); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); }
.seek-loc { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; font: 500 13px var(--sans); color: var(--ink-2); border: 1px dashed var(--line); }
.seek-loc .ic { width: 14px; height: 14px; color: var(--accent); }
.small-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ───────── Operational wins: root cause + new flows ───────── */
.case dt:nth-of-type(2) { color: #ffb347; }
.badge-neutral { display: inline-flex; padding: 4px 9px; border-radius: 999px; font: 600 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; background: color-mix(in srgb, #2e6bd9 22%, var(--surface)); color: #9cc0ff; border: 1px solid color-mix(in srgb, #2e6bd9 45%, transparent); }
.codflow, .rtoflow { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.codflow li, .rtoflow li { position: relative; display: flex; align-items: baseline; gap: 10px; padding: 11px 14px 11px 44px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); animation: flowstep 6s ease-in-out infinite; animation-delay: calc(var(--s) * .9s); }
.codflow li::before, .rtoflow li::before { content: counter(step); counter-increment: step; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 600 11px var(--mono); background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.codflow, .rtoflow { counter-reset: step; }
.codflow li:not(:last-child)::after, .rtoflow li:not(:last-child)::after { content: ""; position: absolute; left: 22px; bottom: -13px; width: 2px; height: 14px; background: repeating-linear-gradient(180deg, var(--accent) 0 3px, transparent 3px 6px); }
.codflow b, .rtoflow b { font: 600 14px var(--sans); }
.codflow small, .rtoflow small { font: 500 11.5px var(--mono); color: var(--ink-3); }
.cf-ok, .rf-ok { border-color: var(--good) !important; background: color-mix(in srgb, var(--good) 12%, var(--surface)) !important; }
.cf-ok::before, .rf-ok::before { content: "✓" !important; background: var(--good) !important; color: #0b2a12 !important; border-color: var(--good) !important; }
.rf-bad { border-color: #e8590c !important; background: color-mix(in srgb, #e8590c 12%, var(--surface)) !important; }
.rf-bad::before { content: "!" !important; background: #e8590c !important; color: #fff !important; border-color: #e8590c !important; }
@keyframes flowstep { 0%, 16%, 100% { box-shadow: none; transform: none; } 5%, 11% { box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 25%, transparent); transform: translateX(4px); } }

/* ───────── Education note, card link, Glass.skin journey ───────── */
.overlap-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 14px 16px; border-radius: 12px; border: 1px dashed var(--line); color: var(--ink-2); font-size: 14px; }
.overlap-note .ic { flex: none; width: 18px; height: 18px; color: var(--accent); margin-top: 2px; }
.card-link { margin-top: 6px; font: 600 14px var(--sans); color: var(--accent); text-decoration: none; }
.card-link:hover { text-decoration: underline; }
.gs-journey { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.gs-journey li { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); min-width: 170px; }
.gs-journey li:not(:last-child)::after { content: "→"; position: absolute; right: -10px; top: 50%; transform: translate(50%, -50%); color: var(--accent); font-weight: 700; z-index: 1; }
.gs-journey li .ic { width: 16px; height: 16px; color: var(--good); position: absolute; right: 10px; top: 10px; }
.gs-journey b { font: 600 14px var(--sans); }
.gs-journey small { font: 500 11.5px var(--mono); color: var(--ink-3); }
.gs-journey .gs-now { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.gs-journey .gs-now b { color: var(--accent); }
@media (max-width: 640px) { .gs-journey { flex-direction: column; } .gs-journey li:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -12px; transform: translateX(50%); } }
/* keep the hero buttons above the fold on laptops now that "Looking for" is there */
.hero { padding-top: 64px; }
.hero h1 { margin: 22px 0 22px; }
.seeking { margin-top: 18px; }
.hero .cta { margin-top: 22px; }
@media (min-width: 961px) {
  .hero-grid { grid-template-columns: 1.4fr 1fr; gap: 24px; }
  .hero-copy h1 { font-size: clamp(48px, 5.4vw, 80px); max-width: 15ch; }
  .hero .lede { font-size: 17px; line-height: 1.55; }
  .hero { padding-top: 48px; }
}
@media (min-width: 961px) { .hero { padding-top: 36px; } .hero h1 { margin: 18px 0 18px; } }
.wa-float.hide { visibility: hidden; transition: opacity .3s ease-out, visibility 0s linear .3s; }

/* ───────── Hero photo ───────── */
.hero-id { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.avatar-wrap { position: relative; flex: none; width: 64px; height: 64px; border-radius: 50%; padding: 3px; background: conic-gradient(from 210deg, var(--accent), #ffb37d, var(--accent), #b5502f, var(--accent)); box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 30%, transparent); animation: ring-spin 8s linear infinite; }
.avatar-wrap picture, .avatar { display: block; width: 100%; height: 100%; border-radius: 50%; }
.avatar { object-fit: cover; border: 3px solid var(--bg); animation: ring-spin 8s linear infinite reverse; transition: transform .25s ease-out; }
.avatar-wrap:hover .avatar { transform: scale(1.06); }
.avatar-dot { position: absolute; right: 1px; bottom: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--good); border: 3px solid var(--bg); animation: none; }
@keyframes ring-spin { to { transform: rotate(360deg); } }
@media (max-width: 520px) { .avatar-wrap { width: 56px; height: 56px; } }

/* ───────── COD before/after metric ───────── */
.cod-metric { display: grid; gap: 10px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px dashed var(--line); }
.cm-row { display: grid; grid-template-columns: 96px 1fr 48px; align-items: center; gap: 10px; font: 500 12.5px var(--mono); }
.cm-lbl { color: var(--ink-3); }
.cm-track { height: 12px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.cm-bar { height: 100%; width: 0; border-radius: 99px; transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.cm-before { background: #e8590c; }
.cm-after { background: var(--good); transition-delay: .5s; }
.in .cm-bar, .built .cm-bar, .cod-metric.in .cm-bar { width: var(--w); }
.cm-val { text-align: right; font-weight: 600; color: #ff9b6a; }
.cm-good { color: var(--good); }
.cm-cap { font: 400 11.5px var(--mono); color: var(--ink-3); }
@media (min-width: 961px) {
  .avatar-wrap { width: 54px; height: 54px; }
  .hero { padding-top: 28px; }
  .hero h1 { margin: 14px 0 16px; }
  .seeking { margin-top: 14px; }
  .hero .cta { margin-top: 18px; }
}
.cm-row { grid-template-columns: 112px 1fr 48px; }
/* photo stays still: no rotating ring */
.avatar-wrap, .avatar { animation: none !important; transform: none; }
.avatar-wrap:hover .avatar { transform: none; }

/* ───────── Education (redesigned, full width) ───────── */
.ed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .ed-grid { grid-template-columns: 1fr; } }
.ed-card { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 6px; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 9%, var(--surface)), var(--surface) 55%); transition: transform .15s ease-out, border-color .15s ease-out; }
.ed-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.ed-card.reveal.in:hover { transform: translateY(-3px); }
.ed-card::before { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); z-index: -1; }
.ed-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ed-ic { width: 48px; height: 48px; padding: 11px; border-radius: 14px; background: var(--accent-soft); fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ed-years { font: 600 13px var(--mono); color: var(--ink); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); }
.ed-level { font: 600 11.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.ed-card h3 { font: 400 clamp(26px, 2.6vw, 32px)/1.1 var(--serif); }
.ed-school { color: var(--ink-2); }
.ed-focus { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.ed-focus li { padding: 6px 12px; border-radius: 999px; font-size: 13px; background: var(--surface-2); color: var(--ink-2); }

.ed-timeline { margin: 14px 0 0; padding: 22px 24px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.ed-timeline figcaption { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); margin-bottom: 14px; }
.tl-axis { position: relative; height: 18px; margin-left: 70px; border-bottom: 1px solid var(--line); }
.tl-axis span { position: absolute; left: var(--l); transform: translateX(-50%); font: 500 11px var(--mono); color: var(--ink-3); }
.tl-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.tl-lbl { width: 60px; flex: none; font: 600 11.5px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.tl-track { position: relative; flex: 1; height: 30px; border-radius: 8px; background: repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 1px), var(--line) calc(12.5% - 1px) 12.5%); }
.tl-bar { position: absolute; top: 3px; bottom: 3px; left: var(--l); width: 0; display: flex; align-items: center; padding: 0 10px; border-radius: 6px; font: 600 12px var(--sans); white-space: nowrap; overflow: hidden; transition: width 1.1s cubic-bezier(.2,.8,.2,1); }
.in .tl-bar, .built .tl-bar, .ed-timeline.in .tl-bar { width: var(--w); }
.tl-study { background: color-mix(in srgb, #2e6bd9 55%, var(--surface)); color: #fff; }
.tl-work { background: color-mix(in srgb, var(--accent) 70%, var(--surface)); color: #1a0d05; }
.tl-row:nth-of-type(3) .tl-bar { transition-delay: .35s; }
.tl-now { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); animation: endpulse 2s ease-out 1.5s infinite; }
@media (max-width: 640px) { .ed-timeline { display: none; } }
.ed-timeline ~ .overlap-note { margin-top: 14px; }

/* ───────── Live date & time under "AK." ───────── */
.brand-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; line-height: 1; }
.brand-wrap .brand { line-height: 1; }
.live-clock { display: inline-flex; align-items: center; gap: 6px; font: 500 10.5px/1 var(--mono); color: var(--ink-2); letter-spacing: .01em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lc-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 60%, transparent); animation: pulse 2s infinite; }
@media (max-width: 1240px) and (min-width: 1061px) { .live-clock { font-size: 9.5px; } }
/* keep menu titles on one line now that the clock sits under "AK." */
.nav nav a { white-space: nowrap; }
@media (max-width: 1440px) and (min-width: 1061px) { .nav nav a .ic { display: none; } .nav nav a { padding: 7px 10px; } }
@media (max-width: 1180px) and (min-width: 1061px) { .nav nav a { padding: 7px 8px; font-size: 12.5px; } .live-clock { font-size: 9.5px; } }



/* ───────── Build effect, video style (swarm, Figma selection, caret, guides) ───────── */
.sw-tag { display: none !important; }
.sw-cursor { filter: drop-shadow(0 2px 4px rgb(0 0 0 / .5)); }
.sw-cursor .sw-beam { display: none; }
.sw-cursor.typing .sw-arrow { display: none; }
.sw-cursor.typing .sw-beam { display: block; margin: -8px 0 0 -4px; }
.sw-mini { transition: none !important; opacity: .95; }
.sw-mini .sw-arrow { width: 14px; height: 14px; }

.sw-box { border: 1px solid #4d8dff !important; background: rgba(77, 141, 255, .035) !important; border-radius: 1px !important; }
.sw-box::before, .sw-box::after { display: none !important; }
.sw-box .h { position: absolute; width: 6px; height: 6px; background: #fff; border: 1px solid #4d8dff; }
.sw-box .tl { left: -4px; top: -4px; } .sw-box .tr { right: -4px; top: -4px; } .sw-box .bl { left: -4px; bottom: -4px; } .sw-box .br { right: -4px; bottom: -4px; }
.sw-box .sw-dim { left: 50% !important; top: calc(100% + 6px) !important; transform: translateX(-50%); background: #3b82f6 !important; color: #fff; padding: 1px 6px !important; border-radius: 3px !important; font: 500 10px/1.5 var(--mono) !important; }

.sw-plus { position: absolute; transform: translate(-50%, -50%) scale(.3); font: 300 18px/1 var(--sans); pointer-events: none; animation: sw-plus .9s ease-out forwards; }
@keyframes sw-plus { 15% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 70% { opacity: .9; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(.8) rotate(45deg); } }

.sw-guide { position: absolute; pointer-events: none; opacity: 0; animation: sw-guide .65s ease-out forwards; }
.sw-guide-v { width: 1px; } .sw-guide-h { height: 1px; }
@keyframes sw-guide { 15%, 60% { opacity: 1; } 100% { opacity: 0; } }

.sw-ruler { position: fixed; left: 0; right: 0; top: 64px; height: 16px; z-index: 74; pointer-events: none; background: rgb(14 14 14 / .9); border-bottom: 1px solid #2e2d2a;
  background-image: repeating-linear-gradient(90deg, #4a4843 0 1px, transparent 1px 10px), repeating-linear-gradient(90deg, #6b6863 0 1px, transparent 1px 100px); background-size: 100% 5px, 100% 9px; background-position: 0 100%, 0 100%; background-repeat: repeat-x; }
.sw-ruler-mark { position: absolute; top: 0; height: 100%; background: rgb(77 141 255 / .35); border-left: 1px solid #4d8dff; border-right: 1px solid #4d8dff; font: 500 9px/16px var(--mono); color: #cfe0ff; text-align: center; transition: left .3s ease-out, width .3s ease-out; }

.sw-tbox { position: absolute; border: 1px solid #4d8dff; border-radius: 1px; pointer-events: none; transition: opacity .3s ease-out; }
.sw-caret { position: absolute; width: 1.5px; background: #fff; pointer-events: none; animation: sw-blink .5s steps(1) infinite; transition-property: transform, opacity; }
.sw-tbox.done, .sw-caret.done { opacity: 0; }
@keyframes sw-blink { 50% { background: transparent; } }
body.building .sw-pill { top: 88px; }
