/* ============ Theme ============ */
:root {
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --maxw: 960px;
  --nav-h: 44px;
  --reel-blue: #2b3cf2;
  --reel-orange: #f0511f;
  --reel-cream: #ece6dc;
  --reel-ink: #0b0b0d;
}
[data-theme="dark"] {
  --bg: #0f0e0d;
  --bg-2: #171513;
  --bg-3: #1e1b18;
  --fg: #efe8dc;
  --fg-2: #b9b0a3;
  --fg-3: #776f66;
  --line: rgba(239, 232, 220, 0.09);
  --line-2: rgba(239, 232, 220, 0.16);
  --accent: #d0643f;
  --letter: rgba(239, 232, 220, 0.035);
  --dot: 239, 232, 220;
  --nav-bg: rgba(15, 14, 13, 0.72);
}
[data-theme="light"] {
  --bg: #f2ece4;
  --bg-2: #ebe3d8;
  --bg-3: #e3d9cc;
  --fg: #1b1916;
  --fg-2: #4f4942;
  --fg-3: #8a8278;
  --line: rgba(27, 25, 22, 0.1);
  --line-2: rgba(27, 25, 22, 0.18);
  --accent: #b4502f;
  --letter: rgba(27, 25, 22, 0.045);
  --dot: 27, 25, 22;
  --nav-bg: rgba(242, 236, 228, 0.75);
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.5s ease, color 0.5s ease;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--bg); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
.mono { font-family: var(--mono); letter-spacing: 0.18em; text-transform: uppercase; }
.sans { font-family: var(--sans); letter-spacing: 0; text-transform: none; }
.small { font-size: 12px; }
.tiny { font-size: 10.5px; }
.muted { color: var(--fg-3); }
.accent { color: var(--accent); }
.right { text-align: right; }

/* ============ Background layers ============ */
#dots { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.monogram {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
.monogram span {
  font-family: var(--serif); font-weight: 400;
  font-size: min(78vh, 62vw); line-height: 1;
  color: var(--letter);
  transform: translateY(2vh);
  transition: opacity 0.45s ease, transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.monogram span.swap { opacity: 0; transform: translateY(5vh) scale(0.97); }

/* ============ Nav ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  background: var(--nav-bg);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--serif); font-size: 17px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.nav-links { display: flex; gap: 32px; font-size: 12.5px; color: var(--fg-2); }
.nav-links a { position: relative; padding: 4px 0; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--fg); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--accent);
}
.pill {
  font-size: 12.5px; padding: 5px 13px; border: 1px solid var(--line-2); border-radius: 999px;
  margin-right: 46px; transition: background .2s, border-color .2s;
}
.pill:hover { background: var(--bg-3); border-color: var(--fg-3); }

/* ============ Pull cord ============ */
.cord { position: fixed; top: 0; right: 22px; z-index: 60; width: 26px; display: flex; flex-direction: column; align-items: center; touch-action: none; }
.cord-line { width: 1px; height: 96px; background: var(--fg-3); transition: height .45s cubic-bezier(.3,1.6,.5,1); }
.cord-knob {
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--bg-2);
  display: grid; place-items: center; font-size: 11px; color: var(--fg-2);
  cursor: grab; user-select: none;
  transition: background .3s, transform .2s;
}
.cord-knob:hover { transform: scale(1.08); }
.cord.dragging .cord-line { transition: none; }
.cord.dragging .cord-knob { cursor: grabbing; }
[data-theme="dark"] .ico-moon, [data-theme="light"] .ico-sun { display: none; }

/* ============ Hero ============ */
.hero { min-height: 100vh; padding-top: calc(var(--nav-h) + 32px); display: flex; flex-direction: column; }
.hero-meta { display: flex; justify-content: space-between; line-height: 1.75; }
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-2); font-size: 11.5px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); position: relative; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(2.8); opacity: 0; } }

.hero-name {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(64px, 11.5vw, 156px); line-height: 0.92; letter-spacing: -0.015em;
  margin: 9vh 0 5vh;
}
.hero-name span, .hero-name em { display: block; }
.hero-name em { font-style: italic; font-weight: 300; color: var(--fg-2); margin-top: 0.04em; }
.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; }
.hero-pitch { max-width: 410px; margin: 0; color: var(--fg-2); font-size: 14.5px; line-height: 1.65; }
.terminal { width: 240px; flex-shrink: 0; }
.terminal .label { font-size: 9.5px; margin-bottom: 10px; }
.term-box {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 10px 9px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-2);
}
.term-box code { font-family: var(--mono); font-size: 11.5px; }
.copy { font-family: var(--mono); font-size: 9.5px; color: var(--fg-3); border: 1px solid var(--line); border-radius: 4px; padding: 2px 7px; transition: color .2s, border-color .2s; }
.copy:hover { color: var(--fg); border-color: var(--fg-3); }

.ticker-wrap { margin-top: auto; padding: 8vh 0 0; position: relative; }
.scroll-hint { text-align: center; margin-bottom: 6px; font-size: 9.5px; }
.ticker {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 10px 0;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker-track { display: flex; width: max-content; gap: 0; font-size: 10px; color: var(--fg-3); animation: ticker 45s linear infinite; }
.ticker-track span { padding: 0 22px; white-space: nowrap; }
.ticker-track .sep { color: var(--accent); padding: 0; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* entrance */
.reveal { opacity: 0; transform: translateY(18px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.d1 { animation-delay: .12s; } .d2 { animation-delay: .28s; } .d3 { animation-delay: .4s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ============ Sections ============ */
.section { padding: 130px 24px 40px; }
.section-head {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line); padding-top: 22px; margin-bottom: 30px;
}
.section-head h2 { font-family: var(--serif); font-weight: 500; font-size: 23px; margin: 0; display: flex; align-items: center; gap: 12px; }
.sub { line-height: 1.9; margin: -6px 0 22px; font-size: 10px; }
.in-view { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.pre-view { opacity: 0; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 260px; gap: 70px; }
.about-text { font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 2.45vw, 30.5px); line-height: 1.24; margin: 0; letter-spacing: -0.005em; }
.exploring ul { margin-top: 14px; }
.exploring li { font-size: 13px; color: var(--fg-2); padding: 3px 0; }
.exploring li::before { content: "→"; color: var(--accent); margin-right: 10px; }

/* Work */
.intro { max-width: 460px; font-size: 12.5px; line-height: 1.7; margin: 0 0 36px; }
.work-list { border-top: 1px solid var(--line); }
.work-item { border-bottom: 1px solid var(--line); }
.work-row {
  width: 100%; text-align: left;
  display: grid; grid-template-columns: 80px 1fr auto 60px; align-items: start; gap: 20px;
  padding: 30px 0 26px;
}
.num, .year { padding-top: 14px; }
.year { text-align: right; }
.work-title { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 3vw, 36px); line-height: 1.08; transition: color .25s; }
.work-sub { display: block; font-size: 13px; color: var(--fg-2); margin-top: 6px; }
.work-row:hover .work-title, .work-item.open .work-title { color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; max-width: 300px; padding-top: 10px; }
.tags i { font-style: normal; font-size: 10.5px; color: var(--fg-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.work-detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.2,.7,.2,1); }
.work-detail > ul { overflow: hidden; padding-left: 100px; max-width: 640px; }
.work-item.open .work-detail { grid-template-rows: 1fr; }
.work-item.open .work-detail > ul { padding-bottom: 30px; }
.work-detail li { font-size: 12.5px; color: var(--fg-3); line-height: 1.65; padding: 3px 0 3px 16px; position: relative; }
.work-detail li::before { content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 1px; background: var(--accent); }

/* Experience */
.exp { display: grid; grid-template-columns: 270px 1fr; gap: 50px; padding: 30px 0 34px; border-top: 1px solid var(--line); }
.exp h3 { font-family: var(--serif); font-weight: 500; font-size: 20px; margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.badge { font-size: 8.5px; color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); padding: 2px 6px; border-radius: 3px; }
.exp-role { font-size: 13px; color: var(--fg-2); margin: 2px 0 12px; }
.exp-left .mono { margin-bottom: 2px; font-size: 9.5px; }
.bullets li { position: relative; padding: 0 0 12px 18px; font-size: 13.5px; color: var(--fg-2); line-height: 1.6; }
.bullets li::before { content: ""; position: absolute; left: 0; top: 9px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.stack { margin-top: 4px; letter-spacing: 0.08em; text-transform: none; font-size: 10.5px; word-spacing: 4px; }
.sublabel { margin: 26px 0 0; padding-top: 26px; border-top: 1px solid var(--line); }
.certs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 50px; margin-top: 12px; }
.certs li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }

/* Toolkit */
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 24px; }
.tool-col { border-top: 1px solid var(--line); padding: 16px 0 30px; }
.tool-col ul { margin-top: 16px; }
.tool-col li { font-size: 14px; color: var(--fg-2); padding: 3.5px 0; transition: color .2s, transform .2s; }
.tool-col li:hover { color: var(--fg); transform: translateX(3px); }
.tool-grid .tool-col:nth-child(-n+3) { border-top: 0; }

/* Contact */
#contact { padding-bottom: 0; }
.lets-talk {
  display: inline-block; font-family: var(--serif); font-weight: 400;
  font-size: clamp(64px, 9vw, 110px); line-height: 1; letter-spacing: -0.02em;
  margin: 22px 0 26px; cursor: pointer; transition: color .3s;
}
.lets-talk:hover { color: var(--accent); }
.email-link { display: table; font-size: 14px; color: var(--fg-2); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.email-link:hover { color: var(--fg); border-color: var(--accent); }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 60px; padding: 22px 0 34px; border-top: 1px solid var(--line); }
.json { font-size: 10px; letter-spacing: .02em; text-transform: none; border-bottom: 1px dotted var(--fg-3); }
.foot-links { display: flex; gap: 18px; color: var(--fg-2); }
.foot-links a:hover, .json:hover { color: var(--accent); }

/* ============ Command palette ============ */
.k-hint {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  font-size: 9.5px; letter-spacing: .1em; color: var(--fg-3);
  border: 1px solid var(--line-2); border-radius: 6px; padding: 5px 9px; background: var(--bg-2);
  transition: color .2s;
}
.k-hint:hover { color: var(--accent); }
.palette { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.55); backdrop-filter: blur(3px); display: flex; justify-content: center; padding-top: 11vh; }
.palette[hidden] { display: none; }
.palette-box { width: min(350px, 92vw); max-height: 380px; display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.45); overflow: hidden; animation: pop .18s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.palette-input { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.palette-input input { flex: 1; background: none; border: 0; outline: 0; color: var(--fg); font-family: var(--mono); font-size: 11.5px; }
.kbd { font-size: 8.5px; border: 1px solid var(--line-2); border-radius: 3px; padding: 1px 5px; }
#palette-list { overflow-y: auto; padding: 6px 0; }
#palette-list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 14px; font-size: 12px; color: var(--fg-2); cursor: pointer; }
#palette-list li .hint { font-family: var(--mono); font-size: 9.5px; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#palette-list li.sel { background: var(--bg-3); color: var(--fg); }
#palette-list li.empty { color: var(--fg-3); cursor: default; }
.palette-foot { padding: 8px 14px; border-top: 1px solid var(--line); font-size: 8.5px; letter-spacing: .08em; }

.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 120; transform: translate(-50%, 20px);
  font-size: 10px; background: var(--fg); color: var(--bg); padding: 8px 14px; border-radius: 6px;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============ Showreel ============ */
.reel { position: relative; border-radius: 4px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.reel-stage { position: relative; aspect-ratio: 16 / 9; container-type: inline-size; overflow: hidden; color: var(--reel-cream); }
.reel:fullscreen { display: flex; flex-direction: column; justify-content: center; border: 0; }
.reel:fullscreen .reel-stage { width: min(100vw, 177.78vh); margin: 0 auto; }

.corner { position: absolute; z-index: 5; width: 2.2cqw; height: 2.2cqw; border-color: rgba(236,230,220,.7); border-style: solid; }
.corner.tl { top: 2cqw; left: 2cqw; border-width: 1px 0 0 1px; }
.corner.tr { top: 2cqw; right: 2cqw; border-width: 1px 1px 0 0; }
.reel-tag, .reel-tc { position: absolute; z-index: 5; top: 2.9cqw; font-size: 0.95cqw; color: rgba(236,230,220,.8); }
.reel-tag { left: 3.1cqw; }
.reel-tc { right: 3.1cqw; }

.scene { position: absolute; inset: 0; padding: 7.5cqw 7.5cqw 0; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s; }
.scene.active { opacity: 1; visibility: visible; }
.scene.blue { background: radial-gradient(120% 90% at 30% 20%, #3446ff 0%, var(--reel-blue) 45%, #1f2bd0 100%); }
.scene.dark {
  background:
    radial-gradient(rgba(236,230,220,.13) 1px, transparent 1.4px) 0 0 / 1.6cqw 1.6cqw,
    radial-gradient(80% 70% at 50% 40%, #1a1917, #0a0a0a);
}
.scene.blue::after { /* subtle grain */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence baseFrequency='.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* timed elements */
[data-at] { opacity: 0; transform: translateY(1.2cqw); transition: opacity .45s ease, transform .55s cubic-bezier(.2,.8,.2,1); }
[data-at].on { opacity: 1; transform: none; }

.headline { font-family: var(--display); font-size: 7.4cqw; line-height: .95; letter-spacing: .005em; display: flex; flex-wrap: wrap; gap: 0 1.8cqw; }
.cream { color: var(--reel-cream); }
.ink { color: var(--reel-ink); }
.orange { color: var(--reel-orange); }
.dim { color: rgba(236,230,220,.55); }

/* scene 1 flow */
.flow { position: relative; margin-top: 9.5cqw; }
.flow-row { display: flex; align-items: center; justify-content: space-between; }
.node {
  width: 13.2cqw; height: 5.4cqw; border-radius: .5cqw; position: relative;
  background: var(--reel-cream); color: var(--reel-ink);
  display: grid; place-items: center;
  font-family: var(--display); font-size: 2.3cqw; letter-spacing: .02em;
  transition: opacity .45s, transform .55s cubic-bezier(.2,.8,.2,1), background .3s, color .3s, box-shadow .3s;
}
.node { z-index: 3; }
.node b { font-weight: 400; }
.node i { position: absolute; left: .2cqw; top: 6cqw; font-style: normal; font-family: var(--mono); font-size: 1cqw; color: rgba(236,230,220,.8); letter-spacing: .1em; }
.node.hot { background: var(--reel-orange); box-shadow: 0 0 0 .25cqw rgba(240,81,31,.25), 0 1cqw 3cqw rgba(0,0,0,.25); transform: translateY(-.3cqw); }
.arrow { flex: 1; height: 1px; background: rgba(236,230,220,.8); margin: 0 1cqw; position: relative; }
.arrow::after { content: ""; position: absolute; right: -1px; top: -.35cqw; border: .35cqw solid transparent; border-left: .6cqw solid rgba(236,230,220,.9); border-right: 0; }
.packet { position: absolute; top: 2.7cqw; width: 1.2cqw; height: 1.2cqw; margin: -.6cqw 0 0 -.6cqw; border-radius: 50%; background: var(--reel-orange); box-shadow: 0 0 1.5cqw var(--reel-orange); opacity: 0; transition: opacity .3s; z-index: 2; }
.packet.on { opacity: 1; }
.stamp { position: absolute; right: 0; top: -5.8cqw; background: var(--reel-orange); color: var(--reel-ink); font-family: var(--display); font-size: 2.3cqw; padding: .5cqw 1.6cqw; border-radius: .3cqw; }
.schematic { position: absolute; right: 0; top: 7.6cqw; font-size: 1cqw; color: rgba(236,230,220,.65); }
.stat { position: absolute; left: 7.5cqw; bottom: 8.5cqw; display: flex; align-items: flex-end; gap: 1.6cqw; }
.big { font-family: var(--display); font-size: 9cqw; line-height: .8; }
.stat-txt { display: flex; flex-direction: column; gap: .6cqw; font-size: 1.15cqw; letter-spacing: .14em; padding-bottom: .4cqw; }

/* scene 2 gates */
.gates { position: relative; height: 22cqw; margin-top: 3cqw; }
.track { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(236,230,220,.7);
  -webkit-mask: none; }
.track::before { content: ""; position: absolute; inset: -.4cqw 0; background: repeating-linear-gradient(90deg, rgba(236,230,220,.55) 0 1px, transparent 1px 3cqw); height: .8cqw; }
.gate { position: absolute; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; }
.g-ring { width: 9cqw; height: 9cqw; border-radius: 50%; display: grid; place-items: center; border: .25cqw dashed rgba(236,230,220,.55); background: rgba(16,24,160,.35); transition: all .45s cubic-bezier(.3,1.5,.5,1); }
.g-ring svg { width: 4cqw; height: 4cqw; fill: none; stroke: var(--reel-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.5); transition: all .4s .1s; }
.g-status, .g-label { position: absolute; white-space: nowrap; font-size: 1.15cqw; letter-spacing: .14em; color: var(--reel-cream); }
.g-status { bottom: calc(100% + 1.4cqw); opacity: 0; transition: opacity .3s .15s; }
.g-label { top: calc(100% + 1.6cqw); }
.gate.pass .g-ring { background: var(--reel-orange); border: .2cqw solid var(--reel-cream); transform: scale(1.04); }
.gate.pass svg, .gate.pass .g-status { opacity: 1; transform: none; }
.gate.fail.pass .g-ring { background: var(--reel-ink); border: .45cqw solid var(--reel-orange); width: 13cqw; height: 13cqw; }
.gate.fail svg { stroke: var(--reel-orange); }
.gate.fail.pass .g-status { color: var(--reel-orange); }
.end-dot { position: absolute; right: -.8cqw; top: 50%; width: 1.6cqw; height: 1.6cqw; margin-top: -.8cqw; border-radius: 50%; background: var(--reel-cream); box-shadow: inset 0 0 0 .45cqw var(--reel-cream), inset 0 0 0 .8cqw var(--reel-orange); }
.end-dot.on { transform: none; }
.packet.sm { top: 50%; }
.caption { position: absolute; left: 7.5cqw; bottom: 7cqw; font-size: 1.25cqw; letter-spacing: .16em; color: rgba(236,230,220,.75); }

/* scene 3 recon */
.recon { display: flex; align-items: center; margin-top: 5cqw; gap: 0; }
.recon .arrow { flex: 0 0 6cqw; }
.col { display: flex; flex-direction: column; gap: 1.2cqw; }
.chip { font-family: var(--mono); font-size: 1.15cqw; letter-spacing: .12em; border: 1px solid rgba(236,230,220,.4); border-radius: .4cqw; padding: 1cqw 1.4cqw; color: var(--reel-cream); background: rgba(236,230,220,.04); }
.center { align-items: center; }
.recon-box { font-family: var(--display); font-size: 3cqw; background: var(--reel-orange); color: var(--reel-ink); padding: 1.1cqw 2.6cqw; border-radius: .4cqw; box-shadow: 0 0 4cqw rgba(240,81,31,.35); }
.checks { font-size: .95cqw; letter-spacing: .14em; text-align: center; line-height: 1.8; color: rgba(236,230,220,.6); }
.star { align-items: center; gap: 1cqw; }
.fact { font-family: var(--display); font-size: 2.4cqw; background: var(--reel-cream); color: var(--reel-ink); padding: 1cqw 2.4cqw; border-radius: .4cqw; }
.dim-box { font-family: var(--mono); font-size: 1.05cqw; letter-spacing: .12em; border: 1px solid rgba(236,230,220,.4); padding: .8cqw 1.2cqw; border-radius: .4cqw; }
.dim-box em { font-style: normal; color: var(--reel-orange); margin-left: .6cqw; }

/* controls */
.reel-ui { position: absolute; left: 0; right: 0; bottom: 0; z-index: 10; padding: 2.4cqw 1.2cqw 1cqw; background: linear-gradient(transparent, rgba(0,0,0,.55)); opacity: 1; transition: opacity .3s; }
.reel-ui { container-type: normal; }
.reel.idle .reel-ui { opacity: 0; }
.scrub { position: relative; height: 14px; cursor: pointer; display: flex; align-items: center; }
.scrub::before { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: rgba(236,230,220,.3); border-radius: 2px; }
.scrub-fill { position: absolute; left: 0; height: 2px; background: #f39a7a; border-radius: 2px; width: 0; }
.scrub-head { position: absolute; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #fff; left: 0; }
.reel-row { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; color: #ece6dc; }
.reel-left { display: flex; align-items: center; gap: 10px; }
.rbtn { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(236,230,220,.3); display: grid; place-items: center; font-size: 9px; color: #ece6dc; background: rgba(0,0,0,.25); transition: border-color .2s; }
.rbtn:hover { border-color: #ece6dc; }
.reel-row .tiny { font-size: 9px; letter-spacing: .12em; }
.dimmed { opacity: .55; }

/* ============ Responsive ============ */
@media (max-width: 860px) {
  .nav { padding: 0 18px; }
  .nav-links { display: none; }
  .cord-line { height: 52px; }
  .cord { right: 12px; }
  .pill { margin-right: 40px; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 30px; }
  .about-grid, .exp { grid-template-columns: 1fr; gap: 28px; }
  .work-row { grid-template-columns: 34px 1fr; }
  .work-row .tags { grid-column: 2; justify-content: flex-start; padding-top: 0; }
  .work-row .year { display: none; }
  .work-detail > ul { padding-left: 54px; }
  .tool-grid { grid-template-columns: 1fr 1fr; }
  .tool-grid .tool-col:nth-child(3) { border-top: 1px solid var(--line); }
  .certs { grid-template-columns: 1fr; }
  .section { padding-top: 90px; }
  .reel-row .dimmed { display: none; }
}
@media (max-width: 520px) {
  .hero-meta .right { display: none; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-grid .tool-col:nth-child(2) { border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
