/* =========================================================
   Zach Francis — Propulsion / Aerospace Engineering
   Global + homepage styles. Colors & fonts live in :root.
   ========================================================= */

:root {
  --bg: #05070b;
  --bg-2: #080b11;
  --panel: #0b1018;
  --panel-2: #111824;
  --line: rgba(160, 180, 210, 0.10);
  --line-2: rgba(160, 180, 210, 0.22);
  --text: #e9eef5;
  --soft: #c3cbd8;
  --muted: #8b96a8;
  --dim: #5b6577;

  --hot: #ff6a2b;       /* combustion / exhaust */
  --hot-2: #ffb547;
  --cold: #5ad1ff;      /* freestream */
  --ok: #3ddc84;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 56px);
  --nav-h: 66px;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--hot); color: #000; }
:focus-visible { outline: 2px solid var(--cold); outline-offset: 3px; border-radius: 4px; }
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 200; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--font-mono); }
.hot { color: var(--hot); }
.cold { color: var(--cold); }

/* ---------- type ---------- */
.display {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 800;
  text-transform: uppercase; letter-spacing: -0.01em; line-height: .94; margin: 0;
}
.outline { color: transparent; -webkit-text-stroke: 1.5px var(--text); }
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted);
}
.kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.kicker b { color: var(--hot); font-weight: 500; }
.kicker::after { content: ""; flex: 0 0 60px; height: 1px; background: var(--line-2); }
.h2 { font-size: clamp(36px, 5.6vw, 80px); }
.lead { font-size: clamp(18px, 1.7vw, 23px); line-height: 1.55; color: var(--soft); max-width: 760px; }
.lead em { font-style: normal; color: var(--text); background: linear-gradient(90deg, rgba(90,209,255,.18), rgba(255,106,43,.22)); padding: 0 .2em; border-radius: 3px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  transition: background .3s var(--ease), border-color .3s, color .3s, transform .3s var(--ease);
}
.btn:hover { border-color: var(--text); transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--text); color: #000; border-color: var(--text); }
.btn-primary:hover { background: var(--hot); border-color: var(--hot); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 100;
  display: flex; align-items: center; border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s;
}
.nav.scrolled, .nav.solid {
  background: rgba(5, 7, 11, .74); border-bottom-color: var(--line);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; max-width: none; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 34px; width: auto; }
.brand span { font-family: var(--font-display); font-stretch: 125%; font-weight: 700; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a:not(.btn) {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); transition: color .2s; position: relative; white-space: nowrap;
}
.nav-links a:not(.btn):hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 1px; background: var(--hot); }
.nav-links .btn { height: 38px; padding: 0 16px; font-size: 11px; }
.menu-toggle { display: none; width: 40px; height: 40px; position: relative; }
.menu-toggle i { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease), top .3s; }
.menu-toggle i:nth-child(1) { top: 15px; }
.menu-toggle i:nth-child(2) { top: 24px; }
.nav.open .menu-toggle i:nth-child(1) { top: 19.5px; transform: rotate(45deg); }
.nav.open .menu-toggle i:nth-child(2) { top: 19.5px; transform: rotate(-45deg); }
@media (max-width: 1080px) and (min-width: 941px) { .brand span { display: none; } .nav-links { gap: 24px; } }
@media (max-width: 940px) {
  .menu-toggle { display: block; }
  .brand span { display: none; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0;
    background: rgba(5, 7, 11, .97); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
  }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav.open { background: rgba(5, 7, 11, .97); }
  .nav-links a:not(.btn) { padding: 16px 0; width: 100%; border-bottom: 1px solid var(--line); font-size: 13px; }
  .nav-links a.active::after { display: none; }
  .nav-links .btn { margin-top: 20px; }
}

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 300; background: var(--bg); display: grid; place-items: center; transition: opacity .6s var(--ease), visibility .6s; }
.loader.done { opacity: 0; visibility: hidden; }
.loader svg { width: 60px; height: auto; overflow: visible; }
.loader path { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1s var(--ease) forwards; }
.loader path:nth-child(2) { animation-delay: .25s; }
.loader path:nth-child(3) { animation-delay: .45s; }
.loader .ld-label { margin-top: 26px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .3em; color: var(--dim); text-align: center; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.no-loader .loader { display: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; overflow: hidden; isolation: isolate;
  background: radial-gradient(1100px 500px at 70% 75%, rgba(255,106,43,.06), transparent 70%), var(--bg);
}
#flow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 18% 30%, rgba(5,7,11,.82), rgba(5,7,11,.35) 60%, transparent 80%),
    linear-gradient(0deg, var(--bg) 0%, transparent 3%);
}
.hero-inner {
  position: relative; flex: 1;
  padding-top: calc(var(--nav-h) + clamp(16px, 4vh, 56px)); padding-bottom: clamp(24px, 4vh, 48px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 4vw, 64px); align-items: center;
}

/* ---------- to-scale rocket lineup ---------- */
.lineup { margin: 0; position: relative; }
.lineup svg { display: block; height: min(calc(100svh - var(--nav-h) - 110px), 760px); width: auto; max-width: 100%; overflow: visible; }
.lineup figcaption { width: 0; min-width: 100%; margin-top: 10px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; color: var(--dim); text-align: right; }
.lu-grid { stroke: rgba(160,180,210,.07); stroke-width: .25; stroke-dasharray: 1.2 1.6; }
.lu-axis, .lu-tick { stroke: rgba(160,180,210,.35); stroke-width: .3; }
.lu-tick.major { stroke: rgba(160,180,210,.6); }
.lu-ground { stroke: rgba(160,180,210,.5); stroke-width: .45; }
.lu-ft { font-family: var(--font-mono); font-size: 4.6px; fill: var(--muted); text-anchor: end; }
.lu-ft.unit { fill: var(--hot); letter-spacing: .3px; }
.lu-name { font-family: var(--font-mono); font-size: 4.3px; font-weight: 500; letter-spacing: .35px; fill: var(--soft); text-anchor: middle; transition: fill .3s; }
.lu-sub { font-family: var(--font-mono); font-size: 3.5px; fill: var(--muted); text-anchor: middle; }
.lu-tag { font-family: var(--font-mono); font-size: 3.1px; letter-spacing: .25px; fill: var(--hot-2); text-anchor: middle; text-transform: uppercase; opacity: .85; }
.lu-mark line { stroke: var(--hot); stroke-width: .3; stroke-dasharray: 1 1; }
.lu-mark text { font-family: var(--font-mono); font-size: 3.8px; fill: var(--hot-2); }
.lu-mark { opacity: 0; transition: opacity .3s; }
.lu-r, .lu-person { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease) var(--d), transform 1.1s var(--ease) var(--d), filter .3s; }
.lineup.in .lu-r, .lineup.in .lu-person { opacity: 1; transform: none; }
.lu-r { cursor: pointer; }
.lu-r:hover { filter: brightness(1.18) drop-shadow(0 0 3px rgba(255,140,70,.45)); }
.lu-r:hover .lu-mark, .lu-r:focus-visible .lu-mark { opacity: 1; }
.lu-r:hover .lu-name { fill: var(--hot-2); }
.lu-g-track { stroke: rgba(160,180,210,.16); stroke-width: 1.3; stroke-linecap: round; }
.lu-g-fill { stroke-width: 1.3; stroke-linecap: round; filter: drop-shadow(0 0 1px rgba(255,140,70,.5));
  transform-box: fill-box; transform-origin: left center; transform: scaleX(0); transition: transform 1.2s var(--ease) var(--d); }
.lineup.in .lu-g-fill { transform: scaleX(1); }
.lu-g-m1 { stroke: rgba(233,238,245,.75); stroke-width: .35; }
.lu-g-val { font-family: var(--font-mono); font-size: 3.8px; font-weight: 500; fill: var(--text); text-anchor: middle; letter-spacing: .15px; }
.lu-g-note { fill: var(--muted); font-weight: 400; font-size: 3px; }
.lu-g-legend { font-family: var(--font-mono); font-size: 3.1px; fill: var(--dim); text-anchor: middle; }
.lu-r:hover .lu-g-val { fill: var(--hot-2); }
.lu-person .lu-helmet { fill: url(#lu-shell); stroke: rgba(233,238,245,.55); stroke-width: .3; }
.lu-person .lu-visor { fill: url(#lu-visor); stroke: rgba(255,181,71,.55); stroke-width: .25; }
.lu-person .lu-glint { fill: none; stroke: rgba(255,240,210,.9); stroke-width: .35; stroke-linecap: round; }
.lu-person .lu-neck { fill: #8b96a8; stroke: rgba(233,238,245,.4); stroke-width: .2; }
.lu-person circle, .lu-person path { fill: rgba(139,150,168,.16); stroke: rgba(160,180,210,.45); stroke-width: .3; }
.lu-glow { fill: rgba(255,106,43,.18); filter: blur(2px); }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .lineup { width: 100%; }
  .lineup svg { height: auto; width: 100%; max-height: 82svh; }
  .lineup figcaption { text-align: left; }
}

/* ---------- affiliation logos ---------- */
.affil { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); padding: 26px 0; }
.affil .wrap { display: flex; align-items: center; gap: 20px 40px; flex-wrap: wrap; }
.affil .eyebrow { font-size: 11px; white-space: nowrap; }
.affil ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; justify-content: space-between; gap: 22px 44px; flex: 1; flex-wrap: wrap; }
.affil li { display: flex; align-items: center; gap: 8px; }
.affil img { height: 30px; width: auto; opacity: .55; transition: opacity .3s, filter .3s; }
.affil img.tall { height: 44px; }
.affil a:hover img, .affil li:hover > img { opacity: 1; filter: drop-shadow(0 0 10px rgba(255,140,70,.35)); }
.affil-sub { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--muted); }
@media (max-width: 700px) {
  .affil ul { justify-content: flex-start; gap: 20px 28px; }
  .affil img { height: 24px; } .affil img.tall { height: 36px; }
}
.hero-copy { max-width: 680px; }
.hero .eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.hero .eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--hot); }
.hero h1 { font-size: clamp(52px, 6.6vw, 114px); }
.hero-statement { max-width: 620px; margin: 24px 0 28px; font-size: clamp(16px, 1.35vw, 19px); color: var(--soft); }
.hero-statement strong { color: var(--text); font-weight: 600; }
.hero-statement .hl { color: var(--hot-2); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.tag {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .05em;
  color: var(--muted); padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(8, 11, 17, .6);
}
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.hero-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }

/* space reserved for the canvas flowpath */
.flow-band { height: calc(min(50vw, 700px) * .37 + 26px); margin-top: auto; position: relative; pointer-events: none; }
@media (max-width: 859px) { .flow-band { height: calc(78vw * .34 + 46px); } }
.flow-caption {
  position: absolute; left: 0; bottom: 6px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; color: var(--dim);
}

.hud {
  position: absolute; top: calc(var(--nav-h) + clamp(24px, 6vh, 80px)); right: var(--gutter); width: 300px;
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 12px; background: rgba(5, 7, 11, .62);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 16px 18px;
}
.hud-title { display: flex; justify-content: space-between; letter-spacing: .14em; color: var(--dim); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.hud-title .live { color: var(--hot); }
.hud > *:not(.hud-title) { transition: opacity .25s, transform .25s var(--ease); }
.hud.swap > *:not(.hud-title):not(.pp-bar) { opacity: 0; transform: translateY(4px); }
.pp-name { margin: 14px 0 8px; font-family: var(--font-display); font-stretch: 115%; font-weight: 700; font-size: 21px; line-height: 1.15; color: var(--text); text-transform: none; letter-spacing: -.005em; }
.pp-tag { display: inline-block; font-size: 10.5px; letter-spacing: .06em; color: var(--hot-2); border: 1px solid rgba(255,181,71,.3); background: rgba(255,181,71,.06); padding: 4px 8px; border-radius: 6px; }
.pp-desc { margin: 12px 0 14px; font-family: var(--font-body); font-size: 12.5px; line-height: 1.55; color: var(--soft); letter-spacing: 0; }
.pp-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.pp-bar i { height: 2px; background: var(--line-2); border-radius: 2px; position: relative; overflow: hidden; }
.pp-bar i.on::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--cold), var(--hot)); transform-origin: left; transform: scaleX(var(--p, 0)); }
.pp-list { margin-top: 10px; color: var(--dim); font-size: 10px; letter-spacing: .08em; }
@media (max-width: 1180px) {
  .hud { position: relative; top: auto; right: auto; width: auto; margin-top: 6px; padding: 12px 14px; }
  .hud-title, .pp-desc, .pp-list { display: none; }
  .pp-name { margin: 0 0 8px; font-size: 17px; }
  .pp-tag { margin-bottom: 10px; }
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: clamp(90px, 12vw, 170px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.sec-head { display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: 30px 60px; align-items: end; margin-bottom: clamp(44px, 6vw, 80px); }
.sec-head p { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } }

/* ---------- Direction ---------- */
.vectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(50px, 6vw, 80px); }
.vector {
  position: relative; padding: 30px 28px 28px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), rgba(11,16,24,.3)); overflow: hidden;
  transition: border-color .4s, transform .5s var(--ease);
}
.vector:hover { border-color: var(--line-2); transform: translateY(-3px); }
.vector .num { font-family: var(--font-mono); font-size: 11px; color: var(--hot); letter-spacing: .14em; }
.vector svg { width: 100%; height: 92px; margin: 18px 0 20px; overflow: visible; }
.vector h3 { font-family: var(--font-display); font-stretch: 115%; font-weight: 700; font-size: 22px; line-height: 1.15; margin: 0 0 10px; }
.vector p { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; }
.vector .evidence { border-top: 1px solid var(--line); padding-top: 14px; font-family: var(--font-mono); font-size: 11px; color: var(--dim); letter-spacing: .04em; }
.vector .evidence a { color: var(--soft); border-bottom: 1px solid var(--line-2); }
.vector .evidence a:hover { color: var(--hot-2); border-color: var(--hot); }
.vector .next { color: var(--hot-2); }
.vector.future { border-style: dashed; border-color: rgba(255,106,43,.35); }
@media (max-width: 960px) { .vectors { grid-template-columns: 1fr; } }

.fundamentals { display: grid; grid-template-columns: auto repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); margin-top: 16px; overflow: hidden; }
.fundamentals > div { padding: 22px 24px; border-left: 1px solid var(--line); }
.fundamentals > div:first-child { border-left: 0; display: flex; align-items: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; color: var(--dim); text-transform: uppercase; background: var(--bg-2); }
.fundamentals b { display: block; font-family: var(--font-display); font-stretch: 115%; font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.fundamentals span { color: var(--muted); font-size: 13.5px; }
@media (max-width: 860px) {
  .fundamentals { grid-template-columns: 1fr; }
  .fundamentals > div { border-left: 0; border-top: 1px solid var(--line); }
  .fundamentals > div:first-child { border-top: 0; }
}

.bio { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(30px, 5vw, 80px); margin-top: clamp(70px, 9vw, 120px); align-items: start; }
.bio p { margin: 0 0 18px; color: var(--soft); font-size: 16.5px; }
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); padding-top: 3px; }
.facts dd { margin: 0; font-size: 14.5px; }
.facts dd small { display: block; color: var(--muted); font-size: 13px; }
@media (max-width: 860px) { .bio { grid-template-columns: 1fr; } }

/* ---------- Work index ---------- */
.log { border-top: 1px solid var(--line); }
.log-row {
  position: relative; display: grid; grid-template-columns: 74px minmax(0, 1.6fr) minmax(0, 1fr) 190px 90px 34px;
  gap: 20px; align-items: center; padding: 26px 8px; border-bottom: 1px solid var(--line);
  transition: background .35s, padding .35s var(--ease);
}
.log-row::before { content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 2px; background: var(--hot); transform: scaleY(0); transition: transform .4s var(--ease); }
.log-row:hover { background: linear-gradient(90deg, rgba(255,106,43,.06), transparent 70%); padding-left: 18px; }
.log-row:hover::before { transform: scaleY(1); }
.log-row .c { font-family: var(--font-mono); font-size: 12px; color: var(--dim); }
.log-row:hover .c { color: var(--hot); }
.log-row h3 { margin: 0; font-family: var(--font-display); font-stretch: 112%; font-weight: 700; font-size: clamp(19px, 2vw, 26px); line-height: 1.15; }
.log-row p { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.log-row .disc { font-size: 13.5px; color: var(--soft); }
.log-row .reg { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); justify-self: start; padding: 5px 9px; border: 1px solid var(--line-2); border-radius: 6px; white-space: nowrap; }
.log-row .yr { font-family: var(--font-mono); font-size: 12px; color: var(--muted); text-align: right; }
.log-row .go { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); transition: background .3s, transform .4s var(--ease), border-color .3s; }
.log-row .go svg { width: 14px; height: 14px; }
.log-row:hover .go { background: var(--hot); border-color: var(--hot); color: #000; transform: rotate(-45deg); }
.log-row .thumb { display: none; }
.log-preview {
  position: fixed; left: 0; top: 0; z-index: 90; width: 340px; aspect-ratio: 4 / 3; pointer-events: none;
  border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: #0a0e14;
  opacity: 0; transform: translate(-50%, -50%) scale(.85); transition: opacity .25s, transform .35s var(--ease);
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.log-preview.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.log-preview img { width: 100%; height: 100%; object-fit: cover; }
.log-preview img.contain { object-fit: contain; background: #e9ecf0; padding: 10px; }
.log-preview .art svg { width: 100%; height: 100%; display: block; }
@media (max-width: 1060px) {
  .log-row { grid-template-columns: 58px minmax(0, 1fr) auto 34px; }
  .log-row .disc, .log-row .yr { display: none; }
}
@media (max-width: 640px), (hover: none) { .log-preview { display: none; } }
@media (max-width: 640px) {
  .log-row { grid-template-columns: 72px minmax(0, 1fr) 30px; gap: 14px; padding: 18px 0; }
  .log-row:hover { padding-left: 0; }
  .log-row .c, .log-row .reg { display: none; }
  .log-row .thumb { display: block; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: #0a0e14; border: 1px solid var(--line); }
  .log-row .thumb img, .log-row .thumb svg { width: 100%; height: 100%; object-fit: cover; display: block; }
  .log-row .go { width: 30px; height: 30px; }
}
.log-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 34px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }

/* ---------- Reel ---------- */
.reel-sec { padding: clamp(70px, 9vw, 120px) 0; border-top: 1px solid var(--line); overflow: hidden; }
.reel { display: flex; gap: 14px; width: max-content; animation: reel 70s linear infinite; }
.reel:hover { animation-play-state: paused; }
.reel figure { position: relative; margin: 0; height: clamp(220px, 28vw, 360px); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); flex: 0 0 auto; cursor: zoom-in; }
.reel img { height: 100%; width: auto; transition: transform .8s var(--ease); }
.reel figure:hover img { transform: scale(1.04); }
.reel figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .04em; color: #dfe5ee; background: linear-gradient(0deg, rgba(5,7,11,.92), transparent); }
@keyframes reel { to { transform: translateX(-50%); } }
.reel-head { margin-bottom: 40px; }

/* ---------- Trajectory ---------- */
.trajectory { position: relative; max-width: 960px; }
.trajectory::before { content: ""; position: absolute; left: 150px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(180deg, var(--cold), var(--hot) 70%, transparent); opacity: .5; }
.tl-item { display: grid; grid-template-columns: 150px 1fr; gap: 0 40px; padding: 0 0 36px; position: relative; }
.tl-date { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--muted); padding-top: 3px; text-align: right; padding-right: 26px; }
.tl-item::before { content: ""; position: absolute; left: 145px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--hot); }
.tl-item.done::before { background: var(--hot); box-shadow: 0 0 14px rgba(255,106,43,.6); }
.tl-item.future::before { border-style: dashed; border-color: var(--dim); }
.tl-item.future h4 { color: var(--muted); }
.tl-body h4 { margin: 0 0 4px; font-size: 17px; font-weight: 600; }
.tl-body h4 a { border-bottom: 1px solid var(--line-2); transition: border-color .2s, color .2s; }
.tl-body h4 a:hover { color: var(--hot-2); border-color: var(--hot); }
.tl-body p { margin: 0; color: var(--muted); font-size: 14.5px; }
.tl-body p a.ext { color: var(--hot-2); border-bottom: 1px solid rgba(255,106,43,.4); white-space: nowrap; }
.tl-body p a.ext:hover { color: var(--text); }
.tl-body .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--dim); text-transform: uppercase; }
@media (max-width: 640px) {
  .trajectory::before { left: 5px; }
  .tl-item { grid-template-columns: 1fr; padding-left: 30px; }
  .tl-item::before { left: 0; }
  .tl-date { text-align: left; padding: 0 0 4px; }
}

/* ---------- Contact ---------- */
.contact { overflow: hidden; }
.contact::before { content: ""; position: absolute; right: -10%; bottom: -40%; width: 1100px; height: 700px; background: radial-gradient(closest-side, rgba(255,106,43,.15), transparent); pointer-events: none; }
.contact h2 { font-size: clamp(42px, 8vw, 124px); }
.contact p { color: var(--muted); max-width: 520px; margin: 28px 0 38px; font-size: 17px; }
.contact-links { display: flex; gap: 12px; flex-wrap: wrap; position: relative; }
.mail { display: inline-block; margin-top: 46px; font-family: var(--font-mono); font-size: clamp(14px, 1.6vw, 18px); color: var(--soft); border-bottom: 1px solid var(--line-2); padding-bottom: 4px; }
.mail:hover { color: var(--hot-2); border-color: var(--hot); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 30px 0; }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--dim); text-transform: uppercase; }
.footer img { height: 26px; width: auto; }
.footer a:hover { color: var(--text); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 250; background: rgba(3, 4, 7, .94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 70px 40px;
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 160px); object-fit: contain; border-radius: 8px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox figcaption { margin-top: 18px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .04em; text-align: center; }
.lb-btn { position: absolute; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; background: rgba(12,17,25,.8); transition: background .2s, border-color .2s; }
.lb-btn:hover { background: var(--hot); border-color: var(--hot); color: #000; }
.lb-btn svg { width: 18px; height: 18px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox { padding: 64px 12px 24px; } .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .reel { animation: none; }
}
