/* marcpope.com v4 — obsidian design system. Custom properties, no framework. */

/* ------------------------------------------------------------------ tokens */
:root {
  --bg: #0B0F19;
  --bg-1: #0F1420;
  --bg-2: #131927;
  --bg-3: #182034;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);
  --fg: #E8EBF1;
  --fg-2: #A9B1C1;
  --fg-3: #6E7787;
  --green: #22C55E;
  --green-soft: rgba(34, 197, 94, .14);
  --cyan: #22D3EE;
  --cyan-soft: rgba(34, 211, 238, .14);
  --amber: #F59E0B;
  --amber-soft: rgba(245, 158, 11, .14);
  --red: #F87171;
  --sans: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 14px;
  --radius-sm: 8px;
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --out: cubic-bezier(.22, 1, .36, 1);
  --shadow-glow: 0 0 0 1px rgba(34, 211, 238, .25), 0 12px 48px -12px rgba(34, 211, 238, .35);
  --hdr-h: 64px;
  color-scheme: dark;
}

/* ------------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(34, 211, 238, .28); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ------------------------------------------------------------- background */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 500px at 15% -10%, rgba(34, 211, 238, .10), transparent 60%),
    radial-gradient(700px 400px at 90% 10%, rgba(34, 197, 94, .07), transparent 60%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, #000 20%, transparent 100%);
}

/* ------------------------------------------------------------- typography */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow.no-rule::before { display: none; }
.h-xl { font-size: clamp(40px, 6.4vw, 84px); line-height: .98; letter-spacing: -.035em; font-weight: 600; text-wrap: balance; }
.h-lg { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.04; letter-spacing: -.03em; font-weight: 600; text-wrap: balance; }
.h-md { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.12; letter-spacing: -.02em; font-weight: 600; text-wrap: balance; }
.h-sm { font-size: 20px; line-height: 1.25; letter-spacing: -.01em; font-weight: 600; }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--fg-2); max-width: 62ch; text-wrap: pretty; }
.muted { color: var(--fg-2); }
.dim { color: var(--fg-3); }
.mono { font-family: var(--mono); }
.readout { font-family: var(--mono); font-size: 12.5px; letter-spacing: .02em; color: var(--fg-3); }
.readout b { color: var(--fg-2); font-weight: 500; }
.accent { color: var(--cyan); }
.grad {
  background: linear-gradient(120deg, #fff 0%, #C7D2E4 45%, var(--cyan) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  font-weight: 500; font-size: 15px; letter-spacing: -.005em; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .45s var(--spring), box-shadow .3s ease, background .25s ease, border-color .25s ease, color .25s ease;
  will-change: transform;
}
.btn svg { width: 17px; height: 17px; transition: transform .35s var(--spring); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--fg); color: #0B0F19; }
.btn-primary:hover { background: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .3), 0 10px 40px -10px rgba(255, 255, 255, .45); }
.btn-ghost { background: rgba(255, 255, 255, .03); border-color: var(--line-2); color: var(--fg); }
.btn-ghost:hover { border-color: rgba(34, 211, 238, .6); box-shadow: var(--shadow-glow); background: rgba(34, 211, 238, .06); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-sm svg { width: 15px; height: 15px; }
.btn-block { width: 100%; }
.link {
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--fg);
  border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color .25s ease, color .25s ease;
}
.link svg { width: 15px; height: 15px; transition: transform .35s var(--spring); }
.link:hover { color: var(--cyan); border-color: var(--cyan); }
.link:hover svg { transform: translate(2px, -2px); }
.link-mono { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 13px; letter-spacing: .02em; color: var(--fg-2); white-space: nowrap; }
.link-mono svg { width: 14px; height: 14px; }
.link-mono:hover { color: var(--cyan); }

/* ------------------------------------------------------------------ chips */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .03em;
  padding: 4px 9px; border-radius: 6px;
  border: 1px solid var(--line); color: var(--fg-2); background: rgba(255, 255, 255, .02);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.tag::before { content: "#"; color: var(--fg-3); }
.tag.no-hash::before { display: none; }
a.tag:hover, .tag.active { color: var(--cyan); border-color: rgba(34, 211, 238, .5); background: var(--cyan-soft); }
.tag-green { color: var(--green); border-color: rgba(34, 197, 94, .4); background: var(--green-soft); }
.tag-amber { color: var(--amber); border-color: rgba(245, 158, 11, .4); background: var(--amber-soft); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ------------------------------------------------------------------ cards */
.card {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .012)), var(--bg-1);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .3s ease, transform .5s var(--out), box-shadow .3s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(34, 211, 238, .11), transparent 45%);
  opacity: 0; transition: opacity .35s ease;
}
.card:hover { border-color: var(--line-2); }
.card:hover::before { opacity: 1; }
.card-pad { padding: 26px; }
.card-link { display: block; }
.card-link:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .8), 0 0 0 1px rgba(34, 211, 238, .18); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .015); }
.card-head .readout { display: inline-flex; align-items: center; gap: 8px; }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.dots i:nth-child(1) { background: #FF5F57; } .dots i:nth-child(2) { background: #FEBC2E; } .dots i:nth-child(3) { background: #28C840; }

/* status dot */
.dot { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--green); opacity: .7; animation: ping 1.8s ease-out infinite; }
.dot-cyan { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); } .dot-cyan::after { border-color: var(--cyan); }
.dot-amber { background: var(--amber); box-shadow: 0 0 10px var(--amber); } .dot-amber::after { border-color: var(--amber); }
@keyframes ping { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.9); opacity: 0; } }

/* ----------------------------------------------------------------- header */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--hdr-h);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease, backdrop-filter .3s ease;
}
.hdr.is-scrolled { background: rgba(11, 15, 25, .72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.hdr-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.01em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  font-family: var(--mono); font-size: 12px; font-weight: 600; color: #0B0F19;
  background: linear-gradient(135deg, #fff, var(--cyan)); box-shadow: 0 0 20px -4px rgba(34, 211, 238, .6);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text small { font-family: var(--mono); font-size: 10.5px; font-weight: 400; letter-spacing: .06em; color: var(--fg-3); text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; font-family: var(--mono); font-size: 13px; letter-spacing: .02em; color: var(--fg-2);
  padding: 8px 12px; border-radius: 8px; transition: color .2s ease, background .2s ease;
}
.nav a::before { content: "~/"; color: var(--fg-3); opacity: 0; margin-right: 1px; transition: opacity .2s ease; }
.nav a:hover { color: var(--fg); background: rgba(255, 255, 255, .04); }
.nav a.active { color: var(--fg); }
.nav a.active::before { opacity: 1; }
.hdr-actions { display: flex; align-items: center; gap: 12px; }
.sys { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 12px; color: var(--fg-3); padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .02); }
.sys b { color: var(--green); font-weight: 500; }
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); place-items: center; }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .ico-close { display: none; }
.progress { position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: linear-gradient(90deg, var(--cyan), var(--green)); transform-origin: 0 50%; transform: scaleX(0); }

/* --------------------------------------------------------------- sections */
main { padding-top: var(--hdr-h); }
.section { padding-block: clamp(56px, 7vw, 96px); }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head > div { display: flex; flex-direction: column; gap: 14px; }
.section-head .lead { margin-top: 4px; }
.section-idx { font-family: var(--mono); font-size: 12px; color: var(--fg-3); letter-spacing: .06em; white-space: nowrap; }
.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }

/* ------------------------------------------------------------------- hero */
.hero { position: relative; min-height: calc(100svh - var(--hdr-h)); display: grid; align-items: center; padding-block: clamp(48px, 8vw, 96px) clamp(48px, 6vw, 72px); overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; z-index: -1; opacity: .42; mask-image: linear-gradient(180deg, #000 55%, transparent 100%); -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
.hero-stack { display: flex; flex-direction: column; gap: 28px; }
.hero-title { font-size: clamp(38px, 7.2vw, 92px); }
.hero-title .line > span { white-space: nowrap; }
@media (max-width: 640px) { .hero-title .line > span { white-space: normal; } }
.hero-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: start; margin-top: 8px; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12.5px; color: var(--fg-2); padding: 6px 12px 6px 8px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .02); width: fit-content; }
.hero-kicker .dot { margin-left: 4px; }
.hero h1 { display: flex; flex-direction: column; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: block; transform: translateY(110%); animation: rise .9s var(--out) forwards; animation-delay: var(--d, 0s); }
.hero-sub { font-family: var(--mono); font-size: clamp(13px, 1.2vw, 15px); color: var(--fg-2); display: flex; align-items: center; gap: 8px; min-height: 1.6em; }
.hero-sub .prompt { color: var(--green); }
.caret { display: inline-block; width: 8px; height: 1.1em; background: var(--cyan); vertical-align: -2px; animation: blink 1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 20px 32px; padding-top: 8px; }
.hero-meta div { display: flex; flex-direction: column; gap: 3px; }
.hero-meta strong { font-size: 22px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hero-meta > div > span { font-family: var(--mono); font-size: 11.5px; color: var(--fg-3); letter-spacing: .04em; text-transform: uppercase; }

/* terminal */
.term { font-family: var(--mono); font-size: 13px; line-height: 1.7; background: rgba(11, 15, 25, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.term-body { padding: 18px 20px; min-height: 250px; color: var(--fg-2); }
.term-line { display: flex; gap: 10px; opacity: 0; transform: translateY(4px); }
.term-line.in { animation: term-in .35s var(--out) forwards; }
@keyframes term-in { to { opacity: 1; transform: none; } }
.term-line .p { color: var(--green); flex: none; }
.term-line .k { color: var(--cyan); }
.term-line .ok { color: var(--green); }
.term-line .warn { color: var(--amber); }
.term-line .c { color: var(--fg-3); }
.term-line .v { color: var(--fg); }
.term-bar { display: inline-block; height: 8px; width: 140px; border-radius: 4px; background: var(--line); overflow: hidden; vertical-align: middle; margin: 0 8px; }
.term-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--cyan), var(--green)); transition: width 1.4s var(--out); }
.term-line.in .term-bar i { width: var(--w, 90%); }

/* ------------------------------------------------------------------ bento */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
.bento .card { display: flex; flex-direction: column; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat strong { font-size: clamp(30px, 3.4vw, 44px); line-height: 1; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat > span { font-family: var(--mono); font-size: 12px; color: var(--fg-3); letter-spacing: .04em; text-transform: uppercase; }
.stat p { color: var(--fg-2); font-size: 14.5px; margin-top: 8px; }
.icon-box { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--cyan); }
.icon-box svg { width: 18px; height: 18px; }
.list-lines { display: flex; flex-direction: column; }
.list-lines > * { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.list-lines > *:first-child { border-top: 0; padding-top: 0; }
.list-lines .k { font-family: var(--mono); font-size: 12.5px; color: var(--fg-3); }
.list-lines .v { color: var(--fg); text-align: right; display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; }
.list-lines .v svg { flex: none; color: var(--fg-3); }
a.list-lines, .list-lines a:hover .v { color: var(--cyan); }

/* leadership */
.lead-card .icon-box { color: var(--green); }
.outcomes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.outcome { padding: 20px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.outcome:nth-child(3n) { border-right: 0; }
.outcome:nth-last-child(-n+3) { border-bottom: 0; }
.outcome strong { font-size: 26px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.outcome > span { font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--cyan); }
.outcome p { color: var(--fg-2); font-size: 14px; margin-top: 6px; }
@media (max-width: 960px) { .outcomes { grid-template-columns: repeat(2, minmax(0, 1fr)); } .outcome:nth-child(3n) { border-right: 1px solid var(--line); } .outcome:nth-child(2n) { border-right: 0; } .outcome:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); } .outcome:nth-last-child(-n+2) { border-bottom: 0; } }
@media (max-width: 560px) { .outcomes { grid-template-columns: 1fr; } .outcome { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; } .outcome:last-child { border-bottom: 0 !important; } }

/* ---------------------------------------------------------- plane cards */
.planes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.plane { display: grid; grid-template-rows: auto auto 1fr auto; }
.plane-diagram { position: relative; padding: 20px 20px 4px; }
.plane-diagram svg { width: 100%; height: auto; }
.plane-body { padding: 18px 24px 22px; display: flex; flex-direction: column; gap: 14px; }
.plane-body h3 { font-size: 24px; letter-spacing: -.02em; font-weight: 600; }
.plane-body p { color: var(--fg-2); font-size: 15px; }
.plane-role { font-family: var(--mono); font-size: 12px; color: var(--cyan); letter-spacing: .04em; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.metric { padding: 14px 16px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.metric:last-child { border-right: 0; }
.metric strong { font-family: var(--mono); font-size: 18px; font-weight: 500; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.metric span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); }
.metric strong.live::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-left: 6px; vertical-align: 3px; box-shadow: 0 0 8px var(--green); }
.plane-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }

.plane-media { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); background: #070A12; }
.plane-media video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* diagram svg (v4_diagram) */
.dg2 { width: 100%; height: auto; display: block; }
.dg2 .dg-n { fill: rgba(255, 255, 255, .035); stroke: rgba(255, 255, 255, .16); stroke-width: 1; }
.dg2 .dg-node.ok .dg-n { stroke: rgba(34, 197, 94, .45); }
.dg2 .dg-node.warn .dg-n { stroke: rgba(245, 158, 11, .5); }
.dg2 .dg-badge { fill: rgba(34, 211, 238, .10); stroke: rgba(34, 211, 238, .45); stroke-width: 1; }
.dg2 .dg-node.ok .dg-badge { fill: rgba(34, 197, 94, .10); stroke: rgba(34, 197, 94, .5); }
.dg2 .dg-node.warn .dg-badge { fill: rgba(245, 158, 11, .10); stroke: rgba(245, 158, 11, .55); }
.dg2 .dg-i { fill: none; stroke: #22D3EE; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; color: #22D3EE; }
.dg2 .dg-node.ok .dg-i { stroke: #4ADE80; color: #4ADE80; }
.dg2 .dg-node.warn .dg-i { stroke: #FBBF24; color: #FBBF24; }
.dg2 .dg-i-hub { stroke: #0B0F19; stroke-width: 2; }
.dg2 .dg-i-pill { stroke: #22D3EE; stroke-width: 2.2; }
.dg2 .dg-t { font-family: var(--sans); font-size: 14px; font-weight: 600; fill: #E8EBF1; letter-spacing: -.01em; }
.dg2 .dg-t-hub { font-size: 16px; }
.dg2 .dg-s { font-family: var(--mono); font-size: 10px; fill: #8A93A5; letter-spacing: 0; }
.dg2 .dg-p { font-family: var(--mono); font-size: 10px; fill: #C7E9F0; letter-spacing: .03em; }
.dg2 .dg-hub { stroke: rgba(34, 211, 238, .8); stroke-width: 1.2; }
.dg2 .dg-hub-ring { fill: none; stroke: rgba(34, 211, 238, .35); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: dg-ring 3.2s ease-in-out infinite; }
.dg2 .dg-hub-badge { fill: #22D3EE; filter: drop-shadow(0 0 10px rgba(34, 211, 238, .8)); }
.dg2 .dg-pill { fill: rgba(11, 15, 25, .6); stroke: rgba(34, 211, 238, .35); }
.dg2 .dg-e { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 1.4; }
.dg2 .dg-f { fill: none; stroke-width: 1.6; stroke-dasharray: 5 13; stroke-linecap: round; animation: flow 2.4s linear infinite; opacity: .55; }
.dg2 .dg-f.c { stroke: #22D3EE; } .dg2 .dg-f.g { stroke: #22C55E; } .dg2 .dg-f.a { stroke: #F59E0B; }
.dg2 .dg-pk { offset-rotate: 0deg; animation: dg-travel var(--dur, 3.4s) linear infinite; animation-delay: var(--dl, 0s); }
.dg2 .dg-pk.c { fill: #22D3EE; filter: drop-shadow(0 0 5px #22D3EE); }
.dg2 .dg-pk.g { fill: #4ADE80; filter: drop-shadow(0 0 5px #22C55E); }
.dg2 .dg-pk.a { fill: #FBBF24; filter: drop-shadow(0 0 5px #F59E0B); }
.dg2 .dg-lbg { fill: #0F1420; stroke: rgba(255, 255, 255, .12); }
.dg2 .dg-l { font-family: var(--mono); font-size: 10.5px; fill: #B7C0D0; letter-spacing: .02em; }
@keyframes flow { to { stroke-dashoffset: -36; } }
@keyframes dg-travel { 0% { offset-distance: 0%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
@keyframes dg-ring { 0%, 100% { opacity: .35; transform: scale(1); } 50% { opacity: .9; transform: scale(1.025); } }
@supports not (offset-path: path("M0 0")) { .dg2 .dg-pk { display: none; } }

/* ------------------------------------------------------------ projects */
.proj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.proj { display: flex; flex-direction: column; }
.proj-media { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg-2); position: relative; }
.proj-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .8s var(--out), filter .4s ease; filter: saturate(.85); }
.proj:hover .proj-media img { transform: scale(1.04); filter: saturate(1); }
.proj-media-empty { height: 100%; display: grid; place-items: center; color: var(--fg-3); }
.proj-media-empty svg { width: 36px; height: 36px; }
.proj-num { position: absolute; top: 12px; left: 12px; font-family: var(--mono); font-size: 11px; color: var(--fg-2); padding: 3px 8px; background: rgba(11, 15, 25, .7); border: 1px solid var(--line); border-radius: 6px; backdrop-filter: blur(6px); }
.proj-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.proj-body h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.proj-body p { color: var(--fg-2); font-size: 14.5px; }
.proj-foot { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.arrow-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background .25s ease, color .25s ease, border-color .25s ease, transform .4s var(--spring); flex: none; }
.arrow-btn svg { width: 16px; height: 16px; }
.proj:hover .arrow-btn, .row:hover .arrow-btn { background: var(--fg); color: #0B0F19; border-color: var(--fg); transform: rotate(-45deg); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters .tag { padding: 7px 12px; font-size: 12px; }
.filters .tag small { color: var(--fg-3); }

/* project single */
.proj-hero { padding-top: clamp(40px, 6vw, 72px); display: flex; flex-direction: column; gap: 22px; max-width: 900px; }
.proj-hero .back { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12.5px; color: var(--fg-3); }
.proj-hero .back:hover { color: var(--cyan); }
.proj-hero .back svg { width: 14px; height: 14px; }
.proj-hero-foot { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.proj-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.gallery { margin-top: clamp(28px, 4vw, 44px); }
.slides { position: relative; aspect-ratio: 16 / 9; background: var(--bg-2); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.slide.active { opacity: 1; }
.slide img, .slide video { width: 100%; height: 100%; object-fit: contain; }
.slide video { object-fit: cover; background: #070A12; }
.slide-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(11, 15, 25, .7); backdrop-filter: blur(6px); display: grid; place-items: center; z-index: 2; transition: background .2s ease, border-color .2s ease; }
.slide-nav:hover { background: var(--fg); color: #0B0F19; border-color: var(--fg); }
.slide-nav svg { width: 18px; height: 18px; }
.slide-prev { left: 14px; } .slide-next { right: 14px; }
.slide-counter { position: absolute; right: 14px; bottom: 12px; font-family: var(--mono); font-size: 11.5px; color: var(--fg-2); padding: 4px 9px; border-radius: 6px; background: rgba(11, 15, 25, .7); border: 1px solid var(--line); z-index: 2; }
.slide-caption { padding: 12px 16px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12.5px; color: var(--fg-3); min-height: 42px; }
.proj-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(28px, 4vw, 56px); align-items: start; padding-block: clamp(40px, 6vw, 72px); }
.brief { position: sticky; top: calc(var(--hdr-h) + 20px); display: flex; flex-direction: column; gap: 20px; }
.brief-sec { display: flex; flex-direction: column; gap: 10px; }
.brief-sec > span:first-child { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.brief h2 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.brief p { color: var(--fg-2); font-size: 14.5px; }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.proof { padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255, 255, 255, .02); display: flex; flex-direction: column; gap: 3px; }
.proof strong { font-family: var(--mono); font-size: 16px; font-weight: 500; }
.proof span { font-family: var(--mono); font-size: 10.5px; color: var(--fg-3); letter-spacing: .04em; text-transform: uppercase; }
.scope { display: flex; flex-wrap: wrap; gap: 6px; }
.scope span { font-size: 12.5px; padding: 4px 9px; border-radius: 6px; border: 1px solid var(--line); color: var(--fg-2); }
.stack { display: flex; flex-wrap: wrap; gap: 6px; }
.stack span { font-family: var(--mono); font-size: 11.5px; padding: 3px 8px; border-radius: 5px; background: rgba(255, 255, 255, .04); color: var(--fg-2); }

/* --------------------------------------------------------------- timeline */
.tl-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.tl { position: relative; padding-left: 40px; }
.tl::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.tl::after { content: ""; position: absolute; left: 11px; top: 8px; width: 1px; height: calc((100% - 16px) * var(--tl, 0)); background: linear-gradient(180deg, var(--cyan), var(--green)); box-shadow: 0 0 12px rgba(34, 211, 238, .5); transition: height .15s linear; }
.tl-item { position: relative; padding-bottom: clamp(36px, 5vw, 56px); }
.tl-item:last-child { padding-bottom: 0; }
.tl-node { position: absolute; left: -40px; top: 6px; width: 23px; height: 23px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--bg); display: grid; place-items: center; transition: border-color .3s ease, box-shadow .3s ease; }
.tl-node i { width: 7px; height: 7px; border-radius: 50%; background: var(--fg-3); transition: background .3s ease, transform .4s var(--spring); }
.tl-item.lit .tl-node { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(34, 211, 238, .12), 0 0 18px rgba(34, 211, 238, .45); }
.tl-item.lit .tl-node i { background: var(--cyan); transform: scale(1.25); }
.tl-item.now .tl-node i { background: var(--green); }
.tl-item.lit.now .tl-node { border-color: var(--green); box-shadow: 0 0 0 4px rgba(34, 197, 94, .12), 0 0 18px rgba(34, 197, 94, .45); }
.tl-year { font-family: var(--mono); font-size: 12.5px; color: var(--cyan); letter-spacing: .06em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tl-year .era { color: var(--fg-3); }
.tl-card { margin-top: 10px; }
.tl-card .card-pad { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px; }
.tl-card h3 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.tl-card .org { font-family: var(--mono); font-size: 12.5px; color: var(--fg-2); }
.tl-card .org b { color: var(--fg); font-weight: 500; }
.tl-card p { color: var(--fg-2); font-size: 15px; }
.tl-card ul { display: flex; flex-direction: column; gap: 6px; padding-left: 2px; }
.tl-card li { position: relative; padding-left: 18px; color: var(--fg-2); font-size: 14.5px; }
.tl-card li::before { content: "▸"; position: absolute; left: 0; color: var(--cyan); font-size: 12px; top: 3px; }
.tl-side { position: sticky; top: calc(var(--hdr-h) + 24px); display: flex; flex-direction: column; gap: 14px; }
.about-portrait { position: relative; aspect-ratio: 1; overflow: hidden; }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: saturate(.9) contrast(1.05); }
.about-portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11, 15, 25, .9)); }
.about-portrait .cap { position: absolute; left: 16px; bottom: 14px; z-index: 1; font-family: var(--mono); font-size: 12px; color: var(--fg-2); display: flex; align-items: center; gap: 8px; }

/* ------------------------------------------------------------------- feed */
.feed-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.feed-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .02); font-family: var(--mono); font-size: 13px; color: var(--fg-2); transition: border-color .2s ease, box-shadow .2s ease; min-width: 240px; }
.search:focus-within { border-color: rgba(34, 211, 238, .6); box-shadow: 0 0 0 3px rgba(34, 211, 238, .12); }
.search svg { width: 15px; height: 15px; color: var(--fg-3); flex: none; }
.search input { flex: 1; background: none; border: 0; outline: 0; color: var(--fg); font: inherit; min-width: 0; }
.search kbd { font-family: var(--mono); font-size: 10.5px; color: var(--fg-3); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
.feed { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 128px minmax(0, 1fr) auto; gap: 12px 24px; align-items: center;
  padding: 20px 8px; border-bottom: 1px solid var(--line); position: relative; isolation: isolate;
  transition: background .2s ease;
}
.row::before { content: ""; position: absolute; inset: 0 -8px; z-index: -1; border-radius: 10px; background: rgba(255, 255, 255, .03); opacity: 0; transition: opacity .2s ease; }
.row:hover::before { opacity: 1; }
.row-date { font-family: var(--mono); font-size: 12.5px; color: var(--fg-3); display: flex; flex-direction: column; gap: 3px; }
.row-date b { color: var(--fg-2); font-weight: 500; }
.row-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.row-title { font-size: 18px; font-weight: 600; letter-spacing: -.012em; line-height: 1.3; transition: color .2s ease; }
.row:hover .row-title { color: var(--cyan); }
.row-ex { color: var(--fg-2); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-meta { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-top: 2px; }
.row-side { display: flex; align-items: center; gap: 16px; }
.row-time { font-family: var(--mono); font-size: 12px; color: var(--fg-3); white-space: nowrap; }
.row.hidden { display: none; }
.feed-empty { padding: 48px 8px; text-align: center; color: var(--fg-2); font-family: var(--mono); font-size: 13.5px; }
.feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); margin-bottom: 28px; }
.feature-media { aspect-ratio: 16 / 9; overflow: hidden; border-right: 1px solid var(--line); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--out); }
.feature:hover .feature-media img { transform: scale(1.03); }
.feature-body { padding: 28px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.feature-body h2 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.02em; line-height: 1.15; }
.feature-body p { color: var(--fg-2); font-size: 15px; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.page { min-width: 38px; height: 38px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); border-radius: 8px; font-family: var(--mono); font-size: 13px; color: var(--fg-2); transition: border-color .2s ease, color .2s ease; }
.page svg { width: 14px; height: 14px; }
a.page:hover { border-color: var(--cyan); color: var(--cyan); }
.page.active { background: var(--fg); color: #0B0F19; border-color: var(--fg); }
.page.gap { border-color: transparent; }
.side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: calc(var(--hdr-h) + 24px); }
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.topics { display: flex; flex-direction: column; }
.topics a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--fg-2); transition: color .2s ease; }
.topics a:first-child { border-top: 0; padding-top: 0; }
.topics a:hover, .topics a.active { color: var(--cyan); }
.topics a span:last-child { font-family: var(--mono); font-size: 12px; color: var(--fg-3); }

/* home feed: date block + thumbnail */
.row-home { grid-template-columns: 84px 148px minmax(0, 1fr) auto; }
.datebox { display: flex; flex-direction: column; width: 84px; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; font-family: var(--mono); background: rgba(255, 255, 255, .02); transition: border-color .25s ease, box-shadow .25s ease; }
.datebox-top { display: flex; align-items: stretch; justify-content: center; }
.datebox-top b { flex: 1; text-align: center; font-size: 18px; font-weight: 500; line-height: 1; padding: 11px 0 9px; color: var(--fg); font-variant-numeric: tabular-nums; }
.datebox-top i { width: 1px; background: var(--line-2); }
.datebox-year { text-align: center; font-size: 11px; letter-spacing: .08em; color: var(--fg-3); padding: 5px 0 6px; border-top: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); }
.row-home:hover .datebox { border-color: rgba(34, 211, 238, .55); box-shadow: 0 0 0 3px rgba(34, 211, 238, .08); }
.row-home:hover .datebox-year { color: var(--cyan); }
.row-thumb { aspect-ratio: 16 / 9; width: 148px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); flex: none; }
.row-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--out); }
.row-home:hover .row-thumb img { transform: scale(1.05); }
@media (max-width: 640px) {
  .row-home { grid-template-columns: 72px minmax(0, 1fr); grid-template-areas: "date main" "thumb thumb"; }
  .row-home .datebox { grid-area: date; width: 72px; }
  .row-home .datebox-top b { font-size: 15px; padding: 9px 0 7px; }
  .row-home .row-main { grid-area: main; }
  .row-home .row-thumb { grid-area: thumb; width: 100%; }
}

/* ---------------------------------------------------------------- article */
.article-head { max-width: 860px; margin: 0 auto; padding-top: clamp(40px, 6vw, 72px); display: flex; flex-direction: column; gap: 20px; }
.article-head h1 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -.03em; font-weight: 600; text-wrap: balance; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-family: var(--mono); font-size: 12.5px; color: var(--fg-3); }
.article-meta .sep { color: var(--fg-3); }
.article-media { max-width: var(--wrap); margin: clamp(28px, 4vw, 48px) auto 0; }
.article-media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.article-body { max-width: 760px; margin: clamp(32px, 5vw, 56px) auto 0; }
.article-foot { max-width: 760px; margin: 48px auto 0; display: flex; flex-direction: column; gap: 24px; padding-top: 28px; border-top: 1px solid var(--line); }
.share { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.share .readout { margin-right: 6px; }
.share-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; font-family: var(--mono); font-size: 12.5px; color: var(--fg-2); transition: border-color .2s ease, color .2s ease, background .2s ease; }
.share-btn svg { width: 14px; height: 14px; }
.share-btn:hover { color: var(--cyan); border-color: rgba(34, 211, 238, .5); background: var(--cyan-soft); }
.mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mini { display: flex; flex-direction: column; }
.mini-media { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.mini-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--out); }
.mini:hover .mini-media img { transform: scale(1.04); }
.mini-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.mini-body h3 { font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }

/* prose (blog + project content from the database) */
.prose { font-size: 17.5px; line-height: 1.7; color: #CBD2DE; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1.3em; }
.prose p { text-wrap: pretty; }
.prose p:empty, .prose p:has(> br:only-child) { display: none; }
.prose h2, .prose h3, .prose h4 { color: var(--fg); line-height: 1.2; margin-top: 2.2em; margin-bottom: .6em; letter-spacing: -.02em; }
.prose h2 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 600; }
.prose h3 { font-size: 21px; font-weight: 600; }
.prose h4 { font-size: 17px; font-weight: 600; font-family: var(--mono); letter-spacing: 0; }
.prose a { color: var(--fg); text-decoration: underline; text-decoration-color: rgba(34, 211, 238, .55); text-underline-offset: 3px; text-decoration-thickness: 1.5px; transition: color .2s ease, text-decoration-color .2s ease; }
.prose a:hover { color: var(--cyan); text-decoration-color: var(--cyan); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li { margin: .45em 0; }
.prose li::marker { color: var(--cyan); }
.prose strong { color: var(--fg); font-weight: 600; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--cyan); color: var(--fg-2); font-size: 1.05em; }
.prose blockquote p { margin: 0; }
.prose img { border-radius: var(--radius-sm); border: 1px solid var(--line); margin: 1.6em auto; }
.prose pre { background: #070A12; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; overflow-x: auto; font-size: 13.5px; line-height: 1.6; }
.prose code { font-family: var(--mono); font-size: .9em; background: rgba(255, 255, 255, .06); padding: .12em .38em; border-radius: 4px; color: #DCE3EE; }
.prose pre code { background: none; padding: 0; font-size: inherit; color: #D7DEE9; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: rgba(255, 255, 255, .04); color: var(--fg); font-weight: 600; }
.prose iframe { max-width: 100%; }

/* ---------------------------------------------------------------- contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 80px); align-items: start; padding-block: clamp(48px, 7vw, 96px); }
.contact-copy { display: flex; flex-direction: column; gap: 22px; }
.facts { display: flex; flex-direction: column; gap: 14px; }
.fact { display: flex; gap: 14px; align-items: flex-start; }
.fact div { display: flex; flex-direction: column; gap: 2px; }
.fact .k { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.fact .v { font-size: 15px; color: var(--fg); }
.form { display: flex; flex-direction: column; gap: 16px; padding: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); }
.field input, .field select, .field textarea {
  width: 100%; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 10px; color: var(--fg);
  font: inherit; font-size: 15px; padding: 12px 14px; outline: 0; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23A9B1C1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field select option { background: var(--bg-2); }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-3); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(34, 211, 238, .6); box-shadow: 0 0 0 3px rgba(34, 211, 238, .12); background: rgba(255, 255, 255, .04); }
.form-note { font-family: var(--mono); font-size: 12px; color: var(--fg-3); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* flash */
.flash { position: sticky; top: var(--hdr-h); z-index: 40; }
.flash-inner { max-width: var(--wrap); margin: 12px auto 0; padding: 12px 16px; border-radius: 10px; display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; border: 1px solid; }
.flash-success .flash-inner { background: var(--green-soft); border-color: rgba(34, 197, 94, .4); color: #BBF7D0; }
.flash-error .flash-inner { background: rgba(248, 113, 113, .12); border-color: rgba(248, 113, 113, .4); color: #FECACA; }
.flash-close { font-size: 20px; line-height: 1; opacity: .7; }

/* -------------------------------------------------------------------- cta */
.cta { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; }
.cta::after { content: ""; position: absolute; inset: auto -10% -60% auto; width: 60%; aspect-ratio: 1; background: radial-gradient(circle, rgba(34, 211, 238, .18), transparent 60%); pointer-events: none; }
.cta h2 { font-size: clamp(26px, 3.4vw, 42px); letter-spacing: -.025em; line-height: 1.08; }
.cta p { color: var(--fg-2); margin-top: 10px; max-width: 56ch; }

/* ----------------------------------------------------------------- footer */
.ftr { border-top: 1px solid var(--line); margin-top: clamp(48px, 7vw, 96px); background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .015)); }
.ftr-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; padding-block: 48px 32px; }
.ftr-brand { display: flex; flex-direction: column; gap: 14px; }
.ftr-brand p { color: var(--fg-2); font-size: 14.5px; max-width: 40ch; }
.ftr-col { display: flex; flex-direction: column; gap: 10px; }
.ftr-col span.k { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 6px; }
.ftr-col a { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--fg-2); transition: color .2s ease; width: fit-content; }
.ftr-col a:hover { color: var(--cyan); }
.ftr-col a svg { width: 15px; height: 15px; color: var(--fg-3); }
.ftr-bottom { border-top: 1px solid var(--line); padding-block: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 12px; color: var(--fg-3); }
.ftr-bottom .r { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.ftr-bottom img { height: 20px; opacity: .8; }

/* ----------------------------------------------------------------- 404 */
.nf { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 64px; }
.nf > div { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.nf-code { font-family: var(--mono); font-size: clamp(64px, 14vw, 140px); line-height: 1; font-weight: 500; color: transparent; -webkit-text-stroke: 1px var(--line-2); }

/* ---------------------------------------------------------------- motion */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--out), transform .9s var(--spring); transition-delay: var(--rd, 0s); }
[data-reveal="in"] { opacity: 1; transform: none; }
@keyframes rise { to { transform: none; } }
[data-magnet] { transition: transform .5s var(--spring); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero h1 .line > span { transform: none; }
  .term-line { opacity: 1; transform: none; }
  .term-line .term-bar i { width: var(--w, 90%); }
  .caret { animation: none; }
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .span-3 { grid-column: span 6; } .span-4 { grid-column: span 6; } .span-5 { grid-column: span 6; }
  .span-7, .span-8 { grid-column: span 12; }
  .proj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero-row { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .planes { grid-template-columns: 1fr; }
  .tl-wrap, .proj-layout, .blog-layout, .contact { grid-template-columns: 1fr; }
  .tl-side, .brief, .side { position: static; }
  .tl-side { order: -1; }
  .about-portrait { max-width: 360px; }
  .feature { grid-template-columns: 1fr; }
  .feature-media { border-right: 0; border-bottom: 1px solid var(--line); }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .cta { grid-template-columns: 1fr; }
  .nav, .sys { display: none; }
  .nav-toggle { display: grid; }
  .hdr.nav-open { background: rgba(11, 15, 25, .96); border-color: var(--line); }
  .hdr.nav-open .nav { display: flex; flex-direction: column; align-items: stretch; position: absolute; left: 0; right: 0; top: var(--hdr-h); padding: 12px var(--gutter) 20px; background: rgba(11, 15, 25, .96); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); gap: 2px; }
  .hdr.nav-open .nav a { font-size: 15px; padding: 12px 10px; }
  .hdr.nav-open .ico-menu { display: none; } .hdr.nav-open .ico-close { display: block; }
  .hdr-cta { display: none; }
}
@media (max-width: 640px) {
  .span-3, .span-4, .span-5, .span-6 { grid-column: span 12; }
  .proj-grid, .mini-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .row { grid-template-columns: 1fr; gap: 8px; }
  .row-date { flex-direction: row; gap: 10px; }
  .row-side { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .ftr-grid { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .hero-meta { gap: 16px 24px; }
  .term-body { min-height: 0; }
  .search { min-width: 0; width: 100%; }
}
