/* ============================================================
   RIMON MIKHAEL — cobloc edition
   Paper, ink, hairlines. Serif statements. Masked reveals.
   Architecture-studio calm applied to infrastructure work.
   ============================================================ */

:root {
  --paper: #f2f0eb;
  --paper-2: #eae7e0;
  --ink: #161512;
  --gray: #8b877c;
  --line: #d9d5cb;
  --accent: #b06a1e;          /* used sparingly: hovers, markers */
  --serif: "Gambetta", Georgia, serif;
  --sans: "General Sans", -apple-system, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --max: 1320px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[hidden] { display: none !important; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
::selection { background: var(--ink); color: var(--paper); }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; }
img { display: block; }

/* ============ INTRO (Bonjour.) ============ */
.intro {
  position: fixed; inset: 0; z-index: 100;
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.9s var(--ease);
}
.intro.done { transform: translateY(-100%); }
.intro__stage {
  text-align: center;
  padding: 0 var(--pad);
  max-width: 900px;
}
.intro__line {
  font-family: var(--serif);
  font-size: clamp(30px, 5.6vw, 64px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.intro__line.on { opacity: 1; transform: none; }
.intro__line.off { opacity: 0; transform: translateY(-20px); }
.intro__skip {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  background: none;
  border: none;
  border-bottom: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
  padding: 0 2px 3px;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s;
}
.intro__skip:hover { color: var(--accent); border-color: var(--accent); }

/* ============ MASKED LINE REVEAL ============ */
.rline { display: block; overflow: hidden; }
.rline__in { display: block; }
html.js .rline__in {
  transform: translateY(115%);
  transition: transform 1s var(--ease);
}
html.js .rline.go .rline__in { transform: none; }
.rline.go .rline__in { transform: none; }

html.js .fade { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
html.js .fade.go { opacity: 1; transform: none; }

/* image clip reveal — only when JS is confirmed running */
html.js .cliprev { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease); }
html.js .cliprev.go { clip-path: inset(0 0 0 0); }

/* ============ HEADER ============ */
.hd {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--pad);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.hd.scrolled { border-color: var(--line); }
.hd__logo {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: -0.01em;
}
.hd__logo sup { font-size: 10px; color: var(--gray); }
.hd__menu { display: flex; gap: 26px; font-size: 14px; }
.hd__menu a { position: relative; color: var(--gray); transition: color 0.25s; }
.hd__menu a::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.hd__menu a:hover { color: var(--ink); }
.hd__menu a:hover::after { transform: scaleX(1); }
.hd__cta {
  font-size: 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 9px 20px;
  transition: background 0.3s, color 0.3s;
}
.hd__cta:hover { background: var(--ink); color: var(--paper); }

/* ============ HERO ============ */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px var(--pad) 90px;
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
}
.hero__hello {
  font-size: clamp(84px, 17vw, 260px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin-bottom: clamp(28px, 5vw, 56px);
}
.hero__intro {
  font-family: var(--serif);
  font-size: clamp(24px, 3.6vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.hero__sub {
  font-size: clamp(15px, 1.7vw, 18px);
  color: var(--gray);
  max-width: 520px;
  line-height: 1.7;
}
.hero__scroll {
  position: absolute;
  bottom: 34px; left: var(--pad);
  font-size: 13px;
  color: var(--gray);
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: color 0.25s, border-color 0.25s;
}
.hero__scroll:hover { color: var(--ink); border-color: var(--ink); }

/* ============ LABELS ============ */
.lbl {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: clamp(24px, 4vw, 40px);
}

/* ============ CATEGORY INDEX ============ */
.cindex {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(70px, 10vw, 130px) var(--pad) 0;
}
.cindex__list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.cindex__list a {
  font-family: var(--serif);
  font-size: clamp(30px, 5.4vw, 64px);
  letter-spacing: -0.015em;
  line-height: 1.15;
  padding: clamp(12px, 2vw, 20px) 0;
  border-bottom: 1px solid var(--line);
  color: var(--gray);
  display: flex; align-items: baseline; gap: 18px;
  transition: color 0.35s, padding-left 0.45s var(--ease);
}
.cindex__list a::before {
  content: "→";
  font-family: var(--sans);
  font-size: 0.45em;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s, transform 0.4s var(--ease);
}
.cindex__list a:hover { color: var(--ink); padding-left: 10px; }
.cindex__list a:hover::before { opacity: 1; transform: none; }

/* ============ MANIFESTO ============ */
.manif {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(90px, 13vw, 170px) var(--pad) 0;
}
.manif__text {
  font-family: var(--serif);
  font-size: clamp(26px, 4.4vw, 52px);
  line-height: 1.25;
  letter-spacing: -0.012em;
  max-width: 24ch;
}

/* ============ IMAGE BAND ============ */
.band {
  margin: clamp(90px, 13vw, 170px) 0 0;
  position: relative;
}
.band img {
  width: 100%;
  height: clamp(320px, 62vh, 640px);
  object-fit: cover;
  filter: grayscale(1) contrast(1.02);
}
.band figcaption {
  position: absolute;
  left: var(--pad); bottom: 18px;
  font-size: 12.5px;
  color: var(--paper);
  letter-spacing: 0.03em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

/* ============ PROJECTS ============ */
.projects {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(90px, 13vw, 170px) var(--pad) 0;
}
.proj { padding: clamp(46px, 7vw, 80px) 0; border-top: 1px solid var(--line); }
.proj:first-of-type { border-top: 0; padding-top: 0; }
.proj__head {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(20px, 4vw, 60px);
  align-items: end;
  margin-bottom: clamp(24px, 4vw, 40px);
}
.proj h2 {
  font-size: clamp(30px, 4.8vw, 58px);
  letter-spacing: -0.015em;
}
.proj__meta p {
  display: flex; gap: 16px;
  font-size: 13.5px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.proj__meta p:first-child { border-top: 1px solid var(--line); }
.proj__meta span {
  min-width: 84px;
  color: var(--gray);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.1em;
  padding-top: 2px;
}
.proj__body {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: start;
}
.proj__text p { color: #4c4a43; margin-bottom: 14px; max-width: 52ch; }
.proj__panel {
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: clamp(26px, 5vw, 54px) clamp(16px, 3vw, 36px);
}
.pipe svg { width: 100%; height: auto; display: block; }
.pipe-node { fill: var(--paper); stroke: var(--ink); stroke-width: 1; }
.pipe-node--end { stroke: var(--accent); }
.pipe-label { fill: var(--ink); font-family: var(--sans); font-size: 11px; letter-spacing: 0.02em; }
.pipe-link { stroke: var(--gray); stroke-width: 1; stroke-dasharray: 4 6; animation: dashflow 1.2s linear infinite; }
@keyframes dashflow { to { stroke-dashoffset: -10; } }
.pipe-packet { fill: var(--accent); }
.pipe-glow { fill: rgba(176, 106, 30, 0.22); }

/* ============ CODE INDEX ============ */
.code {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(90px, 13vw, 170px) var(--pad) 0;
}
.code__list { border-top: 1px solid var(--line); }
.crow {
  display: flex; align-items: baseline; gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.4s var(--ease);
}
.crow h3 {
  font-family: var(--serif);
  font-size: clamp(19px, 2.6vw, 28px);
  font-weight: 500;
  color: var(--ink);
}
.crow span { margin-left: auto; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray); white-space: nowrap; }
.crow i { font-style: normal; color: var(--accent); opacity: 0; transform: translateX(-8px); transition: opacity 0.3s, transform 0.35s var(--ease); }
.crow:hover { padding-left: 10px; }
.crow:hover i { opacity: 1; transform: none; }

/* ============ THE ENGINEER ============ */
.studio {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(90px, 13vw, 170px) var(--pad) 0;
}
.studio__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}
.studio__photo { border: 1px solid var(--line); }
.studio__photo img { width: 100%; height: auto; filter: grayscale(1) contrast(1.02); }
.studio__text p { color: #4c4a43; margin-bottom: 16px; max-width: 50ch; font-size: clamp(16px, 1.9vw, 19px); line-height: 1.75; }
.studio__sig {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  color: var(--ink) !important;
  margin-top: 26px;
}

/* ============ BIG END ============ */
.bigend {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(110px, 16vw, 210px) var(--pad) clamp(80px, 10vw, 130px);
}
.bigend h2 {
  font-size: clamp(52px, 10.5vw, 150px);
  letter-spacing: -0.02em;
  line-height: 0.98;
}
.bigend__loc {
  margin-top: 24px;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--gray);
  line-height: 1.5;
}

/* ============ FOOTER ============ */
.ft {
  border-top: 1px solid var(--line);
  padding: 26px var(--pad) 22px;
}
.ft__row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 34px;
  font-size: 14px;
}
.ft__row > a:first-child { color: var(--gray); transition: color 0.25s; }
.ft__row > a:first-child:hover { color: var(--ink); }
.ft__social { color: var(--gray); }
.ft__social a { border-bottom: 1px solid var(--line); transition: color 0.25s, border-color 0.25s; }
.ft__social a:hover { color: var(--ink); border-color: var(--ink); }
.ft__cta {
  margin-left: auto;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 9px 20px;
  transition: background 0.3s, color 0.3s;
}
.ft__cta:hover { background: var(--ink); color: var(--paper); }
.ft__fine { margin-top: 20px; font-size: 12px; color: var(--gray); }

/* ============ RESPONSIVE ============ */
@media (max-width: 860px) {
  .proj__head, .proj__body, .studio__grid { grid-template-columns: 1fr; }
  .hd__menu { display: none; }
  .crow span { display: none; }
}

/* ============ ACCESSIBILITY ============ */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro { display: none; }
  body.locked { overflow: auto; }
  .rline__in { transform: none; transition: none; }
  .fade { opacity: 1; transform: none; transition: none; }
  .cliprev { clip-path: none; transition: none; }
  .pipe-link { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ============================================================
   ADDITIONS: 3D server-room background + animated cursor
   ============================================================ */

/* ---- background scene sits behind everything ---- */
.bg3d {
  position: fixed; inset: 0; z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}
.bg3d canvas { width: 100%; height: 100%; display: block; }
.hd, main, .ft, .intro { position: relative; z-index: 1; }
/* solid panels get a breath of paper so text stays crisp over the scene */
.proj__panel, .studio__photo { background: var(--paper-2); }
.hero, .manif, .projects, .code, .studio, .cindex, .bigend {
  background: color-mix(in srgb, var(--paper) 55%, transparent);
}

/* ---- animated cursor (enabled via html.has-cur) ---- */
html.has-cur, html.has-cur * { cursor: none !important; }

.cur, .cur-dot { display: none; }
html.has-cur .cur {
  display: flex;
  align-items: center; justify-content: center;
  position: fixed; z-index: 98;
  width: 26px; height: 26px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background: transparent;
  transition: width 0.35s var(--ease), height 0.35s var(--ease),
              border-color 0.3s, background 0.3s;
}
html.has-cur .cur::before {
  content: "";
  position: absolute; inset: -1px;
  border: 1px dashed var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: curspin 5s linear infinite;
  transition: opacity 0.3s;
}
html.has-cur .cur.bloom {
  width: 66px; height: 66px;
  border-color: transparent;
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  backdrop-filter: blur(2px);
}
html.has-cur .cur.bloom::before { opacity: 1; }
.cur__label {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.25s, transform 0.3s var(--ease);
  white-space: nowrap;
}
html.has-cur .cur.bloom .cur__label { opacity: 1; transform: none; }
.cur__caret {
  display: inline-block;
  width: 6px; height: 11px;
  background: var(--accent);
  animation: caretblink 1s steps(1) infinite;
}
html.has-cur .cur-dot {
  display: block;
  position: fixed; z-index: 98;
  width: 4px; height: 4px;
  background: var(--ink);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
@keyframes curspin { to { transform: rotate(360deg); } }
@keyframes caretblink { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .bg3d { display: none; }
  html.has-cur .cur::before, .cur__caret { animation: none; }
}

/* ============================================================
   ADDITIONS v3: boot loading screen (paper-themed) +
   live terminal object (matches the 3D scene's monitors)
   ============================================================ */

:root { --mono: "JetBrains Mono", ui-monospace, monospace; }

/* ---- boot screen ---- */
.boot {
  position: fixed; inset: 0; z-index: 100;
  background: var(--paper);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--pad);
  transition: transform 0.9s var(--ease);
}
.boot.done { transform: translateY(-100%); }
.boot__log {
  font-family: var(--mono);
  font-size: clamp(12px, 1.6vw, 14px);
  line-height: 2;
  color: var(--gray);
  white-space: pre-wrap;
  max-width: 620px;
  margin: 0 auto;
  width: 100%;
  min-height: 12em;
}
.boot__log .ok { color: var(--accent); }
.boot__bar {
  max-width: 620px; width: 100%;
  margin: 18px auto 0;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.boot__bar span {
  display: block; height: 100%; width: 0%;
  background: var(--accent);
  transition: width 0.2s linear;
}
.boot__skip {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  background: none; border: none;
  border-bottom: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
  padding: 0 2px 3px;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s;
}
.boot__skip:hover { color: var(--accent); border-color: var(--accent); }

/* ---- the terminal: a dark framed object on the paper page,
        same tones as the monitors in the 3D scene ---- */
.studio__grid { align-items: start; }
.term {
  margin: 30px 0 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #191712;
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(22, 21, 18, 0.16);
}
.term__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px;
  background: #221f18;
  border-bottom: 1px solid rgba(242, 240, 235, 0.08);
}
.term__dot { width: 11px; height: 11px; border-radius: 50%; }
.term__dot--r { background: #c0604d; }
.term__dot--y { background: #b06a1e; }
.term__dot--g { background: #7d9464; }
.term__title {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: #a39a86;
}
.term__body {
  padding: 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.85;
  min-height: 225px;
  white-space: pre-wrap;
  color: #d8d1c0;
}
.term__body .p { color: #d99a4e; }
.term__body .o { color: #a39a86; }
.term__body .cur-c {
  display: inline-block;
  width: 8px; height: 14px;
  background: #d99a4e;
  vertical-align: -2px;
  animation: caretblink 1s steps(1) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .boot { display: none; }
  .term__body .cur-c { animation: none; }
}

/* ============================================================
   ADDITIONS v4: multilingual hello + its transitions
   ============================================================ */
.hello-mask { display: block; overflow: hidden; }
.hello-word {
  display: block;
  transform: translateY(115%);
  transition: transform 0.65s var(--ease);
  white-space: nowrap;
}
.hello-word.go { transform: none; }
.hello-word.out { transform: translateY(-115%); }
.hero__hello.mid { font-size: clamp(60px, 12vw, 180px); }
.hero__hello.long { font-size: clamp(44px, 8.5vw, 128px); }
.hero__lang {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
  margin: 10px 0 clamp(20px, 4vw, 44px);
  transition: opacity 0.4s;
  min-height: 1.2em;
}
.hero__lang.dim { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .hello-word { transform: none; transition: none; }
}

/* ============================================================
   ADDITIONS v5: the portrait lives in color, with an animated
   hover — slow cinematic zoom + a sheen of light sweeping across
   ============================================================ */
.studio__photo { position: relative; overflow: hidden; }
.studio__photo img {
  filter: none;                          /* full color, always */
  transform: scale(1);
  transition: transform 1.15s var(--ease), filter 0.8s ease;
  will-change: transform;
}
.studio__photo:hover img {
  transform: scale(1.055);
  filter: contrast(1.05) saturate(1.08);
}
/* the passing light */
.studio__photo::after {
  content: "";
  position: absolute;
  top: -4%; bottom: -4%; left: 0;
  width: 34%;
  background: linear-gradient(105deg,
    transparent 0%,
    rgba(242, 240, 235, 0.38) 50%,
    transparent 100%);
  transform: skewX(-14deg) translateX(-150%);
  transition: transform 1.05s var(--ease);
  pointer-events: none;
}
.studio__photo:hover::after {
  transform: skewX(-14deg) translateX(440%);
}
/* the frame itself lifts a touch */
.studio__photo {
  transition: box-shadow 0.6s ease, transform 0.9s var(--ease);
}
.studio__photo:hover {
  box-shadow: 0 30px 70px rgba(22, 21, 18, 0.18);
  transform: translateY(-4px);
}

/* ============================================================
   ADDITIONS v6: both photos rest in grayscale and bloom into
   color on hover — animated zoom + light sweep on each
   ============================================================ */

/* portrait: grayscale at rest, color on hover */
.studio__photo img { filter: grayscale(1) contrast(1.03); }
.studio__photo:hover img {
  filter: grayscale(0) contrast(1.05) saturate(1.08);
  transform: scale(1.055);
}

/* full-bleed photo band: same treatment */
.band { overflow: hidden; }
.band img {
  filter: grayscale(1) contrast(1.02);
  transform: scale(1);
  transition: filter 0.9s ease, transform 1.4s var(--ease);
  will-change: transform;
}
.band:hover img {
  filter: grayscale(0) saturate(1.06);
  transform: scale(1.035);
}
.band::after {
  content: "";
  position: absolute;
  top: -4%; bottom: -4%; left: 0;
  width: 22%;
  background: linear-gradient(105deg,
    transparent 0%,
    rgba(242, 240, 235, 0.30) 50%,
    transparent 100%);
  transform: skewX(-14deg) translateX(-160%);
  transition: transform 1.3s var(--ease);
  pointer-events: none;
}
.band:hover::after { transform: skewX(-14deg) translateX(620%); }
.band figcaption { z-index: 1; }

/* ============================================================
   ADDITIONS v7: the band is now a living video — same
   grayscale-to-color hover, zoom, and light sweep as the photo
   ============================================================ */
.band video {
  display: block;
  width: 100%;
  height: clamp(320px, 62vh, 640px);
  object-fit: cover;
  filter: grayscale(1) contrast(1.02);
  transform: scale(1);
  transition: filter 0.9s ease, transform 1.4s var(--ease);
  will-change: transform;
}
.band:hover video {
  filter: grayscale(0) saturate(1.06);
  transform: scale(1.035);
}

/* ============================================================
   ADDITIONS v8: the band video is a vertical clip, mounted
   like a framed print on the paper band — no absurd crops
   ============================================================ */
.band {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(40px, 6vw, 72px) var(--pad);
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.band video {
  width: auto;
  max-width: min(88vw, 540px);
  height: clamp(380px, 66vh, 640px);
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 26px 60px rgba(22, 21, 18, 0.14);
}
.band figcaption {
  color: var(--ink);
  text-shadow: none;
  bottom: 14px;
}

/* ============================================================
   ADDITIONS v9: the band returns to a full-bleed photograph —
   wide as before, grayscale at rest, color + zoom + light
   sweep on hover
   ============================================================ */
.band {
  display: block;
  padding: 0;
  background: transparent;
  border-top: 0;
  border-bottom: 0;
}
.band img {
  display: block;
  width: 100%;
  height: clamp(320px, 62vh, 640px);
  object-fit: cover;
  object-position: 50% 42%;   /* keep the bridge and the face in frame */
  border: 0;
  box-shadow: none;
}
.band figcaption {
  color: var(--paper);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  bottom: 18px;
}

/* ============================================================
   ADDITIONS v10: hover reveals the WHOLE photograph —
   the band rests as a wide crop, then animates a zoom-out
   to the full frame while blooming into color
   ============================================================ */
.band {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--paper-2);
}
.band img {
  width: auto;
  height: clamp(320px, 62vh, 640px);
  object-fit: unset;
  /* --bs is computed in JS: how much to scale up so the image
     covers the full band width at rest */
  transform: scale(var(--bs, 1));
  transform-origin: 50% 42%;
  transition: transform 1.3s var(--ease), filter 0.9s ease;
}
.band:hover img {
  transform: scale(1);        /* zoom out to the whole picture */
}
/* caption readable over both the photo and the paper sides */
.band figcaption {
  color: var(--ink);
  text-shadow: none;
  background: rgba(242, 240, 235, 0.88);
  border: 1px solid var(--line);
  padding: 6px 11px;
  backdrop-filter: blur(4px);
}

/* ============================================================
   ADDITIONS v11: mobile & older-browser fixes
   - photos bloom to color when scrolled into view on touch
     devices (no hover exists there)
   - -webkit- prefixes for iOS Safari
   - solid-color fallbacks where color-mix() is unsupported
   ============================================================ */

/* fallback first, modern second — older browsers keep the rgba */
.hd {
  background: rgba(242, 240, 235, 0.9);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: blur(10px);
}
.hero, .manif, .projects, .code, .studio, .cindex, .bigend {
  background: rgba(242, 240, 235, 0.55);
  background: color-mix(in srgb, var(--paper) 55%, transparent);
}
.band figcaption { -webkit-backdrop-filter: blur(4px); }
html.has-cur .cur.bloom { -webkit-backdrop-filter: blur(2px); }

/* touch devices: no hover — the photos bloom into color (and the
   band reveals its full frame) as they scroll into view */
@media (hover: none) {
  .studio__photo.lit img {
    filter: grayscale(0) contrast(1.05) saturate(1.08);
  }
  .band.lit img {
    filter: grayscale(0) saturate(1.06);
    transform: scale(1);          /* whole photo, like desktop hover */
  }
}

/* v12: viewport-unit fallback for older Android browsers */
.hero { min-height: 100vh; min-height: 100svh; }

/* ============================================================
   ADDITIONS v13: GPU-safe band reveal (fixes blank images on
   Samsung/Android Chrome). No giant scaled layers — the reveal
   now animates the band's height from the wide crop to the
   photo's full frame, with object-fit doing the cropping.
   ============================================================ */
.band img {
  width: 100%;
  height: clamp(320px, 62vh, 640px);
  object-fit: cover;
  object-position: 50% 42%;
  transform: none !important;      /* kill the scale approach */
  will-change: auto;
  transition: height 1.25s var(--ease), filter 0.9s ease;
}
.band:hover img,
.band.lit img {
  height: var(--fullh, 80vh);      /* grows until the whole photo fits */
}
@media (hover: none) {
  .band.lit img { transform: none !important; }
}

/* ============================================================
   ADDITIONS v14: split the reveal by device class
   - Desktop (hover + fine pointer): the original clip-path
     curtain reveal — proven there.
   - Touch devices (phones/tablets): clip-path transitions hit
     GPU bugs on Android Chrome, so they get a safe
     opacity + slide fade instead. Same feel, zero risk.
   ============================================================ */
@media (hover: hover) and (pointer: fine) {
  html.js .cliprev { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease); }
  html.js .cliprev.go { clip-path: inset(0 0 0 0); }
}
@media (hover: none), (pointer: coarse) {
  html.js .cliprev {
    clip-path: none !important;           /* never clip on touch */
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  }
  html.js .cliprev.go {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   ADDITIONS v15: Personal projects — the Daisy suite
   List rows with a cursor-chasing screenshot preview (desktop)
   and a paper-styled modal with the baked README on click.
   ============================================================ */
.daisy { max-width: var(--max); margin: 0 auto; padding: clamp(90px, 13vw, 170px) var(--pad) 0; }
.daisy__intro { color: #4c4a43; max-width: 56ch; margin: -10px 0 clamp(24px, 4vw, 40px); }
.daisy__list { border-top: 1px solid var(--line); }
.drow {
  display: flex; align-items: baseline; gap: 18px;
  width: 100%; text-align: left;
  background: none; border: 0; border-bottom: 1px solid var(--line);
  padding: 16px 0; cursor: pointer;
  font-family: var(--sans); color: var(--ink);
  transition: padding-left 0.4s var(--ease);
}
.drow h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(20px, 2.8vw, 30px); }
.drow .drow__tag { margin-left: auto; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray); white-space: nowrap; }
.drow .drow__go { font-size: 13px; color: var(--accent); opacity: 0; transform: translateX(-8px); transition: opacity 0.3s, transform 0.35s var(--ease); }
.drow:hover { padding-left: 10px; }
.drow:hover .drow__go { opacity: 1; transform: none; }

/* floating screenshot preview (desktop only) */
.dpreview {
  position: fixed; z-index: 55;
  width: 300px;
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 0 26px 60px rgba(22, 21, 18, 0.22);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -108%) rotate(-2deg) scale(0.94);
  transition: opacity 0.2s, transform 0.3s var(--ease);
}
.dpreview.on { opacity: 1; transform: translate(-50%, -108%) rotate(-2deg) scale(1); }
.dpreview img { display: block; width: 100%; height: 180px; object-fit: cover; object-position: top; background: var(--paper-2); }
.dpreview__cap { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray); padding: 8px 12px; border-top: 1px solid var(--line); }
@media (hover: none), (pointer: coarse) { .dpreview { display: none; } }

/* modal */
.dmodal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: var(--pad); }
.dmodal__backdrop { position: absolute; inset: 0; background: rgba(22, 21, 18, 0.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dmodal__win {
  position: relative;
  width: min(720px, 100%);
  max-height: min(84svh, 800px);
  max-height: 84vh;
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 0 40px 120px rgba(22, 21, 18, 0.35);
  display: flex; flex-direction: column;
  animation: dmIn 0.4s var(--ease);
}
@keyframes dmIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.dmodal__close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  background: var(--paper); border: 1px solid var(--line);
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.06em;
  padding: 7px 13px; cursor: pointer; color: var(--ink);
  transition: color 0.25s, border-color 0.25s;
}
.dmodal__close:hover { color: var(--accent); border-color: var(--accent); }
.dmodal__scroll { overflow-y: auto; padding: clamp(22px, 4vw, 40px); }
.dmodal__scroll h2 { font-size: clamp(28px, 4.4vw, 44px); letter-spacing: -0.015em; margin: 4px 0 16px; }
.dmodal__shot { border: 1px solid var(--line); background: var(--paper-2); margin-bottom: 18px; }
.dmodal__shot img { display: block; width: 100%; max-height: 340px; object-fit: cover; object-position: top; }
.dmodal__body h4 { font-family: var(--sans); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 20px 0 8px; }
.dmodal__body p { color: #4c4a43; margin-bottom: 10px; }
.dmodal__body ul { margin: 0 0 12px 18px; color: #4c4a43; }
.dmodal__body li { margin-bottom: 5px; }
.dmodal__body pre {
  background: #191712; color: #d8d1c0;
  font-family: var(--mono); font-size: 12px; line-height: 1.7;
  padding: 14px; overflow-x: auto; margin: 10px 0 14px;
}
.dmodal__body code { font-family: var(--mono); font-size: 0.9em; background: var(--paper-2); padding: 1px 5px; }
.dmodal__body pre code { background: none; padding: 0; }
.dmodal__meta { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--gray); }
.dmodal__meta a { border-bottom: 1px solid var(--line); }
.dmodal__meta a:hover { color: var(--accent); border-color: var(--accent); }

/* ============================================================
   ADDITIONS v16: "Currently" — CHOP Research Institute block
   under the big name and locations
   ============================================================ */
.bigend__work {
  margin-top: clamp(40px, 6vw, 70px);
  padding-top: clamp(24px, 4vw, 40px);
  border-top: 1px solid var(--line);
  max-width: 760px;
}
.bigend__work h3 {
  font-size: clamp(22px, 3.2vw, 34px);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-bottom: 8px;
}
.bigend__role {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.bigend__text p {
  color: #4c4a43;
  margin-bottom: 14px;
  max-width: 62ch;
}

/* v17: "Looking ahead" goal block */
.bigend__goal {
  margin-top: clamp(28px, 4vw, 44px);
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--paper-2);
  max-width: 680px;
}
.bigend__goaltext {
  font-family: var(--serif);
  font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.55;
  color: var(--ink);
}
.bigend__goaltext b { color: var(--accent); font-weight: 600; }

/* ============================================================
   ADDITIONS v18: layout-shift fixes + resume button + vRO list
   ============================================================ */

/* FIX 1: the multilingual hello swaps font sizes — lock the block
   height so the page below never moves */
.hero__hello {
  height: clamp(88px, 16vw, 250px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hello-mask { width: 100%; }

/* FIX 2: the terminal types forever — fixed height, inner scroll,
   so it never grows the page */
.term__body {
  height: 250px;
  min-height: 0;
  overflow-y: auto;
}

/* resume button in the header — highlighted */
.hd__resume {
  font-size: 13px;
  font-weight: 600;
  background: var(--accent);
  color: var(--paper);
  border-radius: 999px;
  padding: 9px 18px;
  white-space: nowrap;
  transition: background 0.3s, transform 0.25s;
}
.hd__resume:hover { background: #8f5314; transform: translateY(-1px); }

/* bullet lists inside project descriptions */
.proj__text ul { list-style: none; margin: 4px 0 14px; }
.proj__text li {
  position: relative;
  padding-left: 18px;
  color: #4c4a43;
  margin-bottom: 7px;
}
.proj__text li::before {
  content: "—";
  position: absolute; left: 0;
  color: var(--accent);
}

/* v19: resume + contact grouped as one unit in the header */
.hd__actions { display: flex; align-items: center; gap: 10px; }

/* v20: cursor bloom grows to fit its label */
html.has-cur .cur.bloom { width: var(--d, 66px); height: var(--d, 66px); }
.proj__text p b { color: var(--ink); font-weight: 600; }

/* ============================================================
   ADDITIONS v21: the vRO request catalog — indexed rows in the
   site's editorial style instead of a plain list
   ============================================================ */
.catalog { border-top: 1px solid var(--line); margin: 6px 0 16px; }
.catalog__row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.35s var(--ease), background 0.35s;
}
.catalog__row:hover { padding-left: 10px; background: color-mix(in srgb, var(--paper-2) 60%, transparent); }
.catalog__num {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
  min-width: 24px;
}
.catalog__t {
  font-family: var(--serif);
  font-size: clamp(16px, 1.9vw, 19px);
  color: var(--ink);
}
.catalog__d {
  margin-left: auto;
  font-size: 12px;
  color: var(--gray);
  text-align: right;
}
@media (max-width: 560px) {
  .catalog__row { flex-wrap: wrap; }
  .catalog__d { margin-left: 38px; width: 100%; text-align: left; }
}

/* ============================================================
   ADDITIONS v22: header smiley (googly eyes) + arcade window
   ============================================================ */
.hd__id { display: flex; align-items: center; gap: 8px; }
.hd__smiley { width: 22px; height: 22px; display: inline-block; }
.hd__smiley svg { width: 100%; height: 100%; display: block; overflow: visible; }
.sm__face { fill: var(--paper-2); stroke: var(--ink); stroke-width: 1.6; }
.sm__white { fill: #fff; stroke: var(--ink); stroke-width: 1; }
.sm__pupil { fill: var(--ink); transition: transform 0.08s linear; }
.sm__mouth {
  fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round;
  transform-origin: 20px 27px;
  animation: smpulse 4.5s ease-in-out infinite;
}
.sm__eyes { transform-origin: 20px 16px; animation: smblink 5.5s steps(1) infinite; }
@keyframes smpulse { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.3); } }
@keyframes smblink { 0%, 91%, 96%, 100% { transform: scaleY(1); } 93% { transform: scaleY(0.08); } }

.gwin {
  position: fixed; z-index: 95;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(-0.4deg);
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 0 40px 110px rgba(22, 21, 18, 0.4);
  width: min(92vw, 364px);
  animation: dmIn 0.35s var(--ease);
}
.gwin__bar {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.gwin__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.gwin__title { font-family: var(--mono); font-size: 11px; color: var(--gray); }
.gwin__close {
  margin-left: auto;
  background: none; border: 1px solid var(--line);
  font-size: 12px; color: var(--ink);
  width: 24px; height: 24px; cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.gwin__close:hover { color: var(--accent); border-color: var(--accent); }
.gwin canvas { display: block; margin: 12px auto 8px; background: #191712; border: 1px solid var(--line); max-width: calc(100% - 24px); }
.gwin__ctl { display: flex; justify-content: center; gap: 10px; padding: 2px 0 6px; }
.gwin__ctl button {
  font-family: var(--mono); font-size: 13px;
  background: var(--paper); border: 1px solid var(--ink);
  padding: 8px 18px; cursor: pointer;
  transition: background 0.2s, color 0.2s;
  touch-action: none;
}
.gwin__ctl button:active { background: var(--ink); color: var(--paper); }
.gwin__hint { text-align: center; font-family: var(--mono); font-size: 10px; color: var(--gray); padding-bottom: 12px; }

/* v23: arcade — key caps + scoreboard */
.gwin__keys {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-family: var(--mono); font-size: 10.5px; color: var(--gray);
  padding: 4px 0 13px;
}
.gwin__keys span { color: var(--line); }
.gwin__keys kbd {
  font-family: var(--mono); font-size: 10px;
  background: var(--paper-2);
  border: 1px solid var(--ink);
  border-bottom-width: 2.5px;
  border-radius: 4px;
  padding: 3px 7px;
  color: var(--ink);
  text-transform: uppercase;
}
.gwin__scores {
  text-align: center;
  font-family: var(--mono); font-size: 10.5px; color: var(--gray);
  padding: 2px 12px 6px;
  min-height: 1.4em;
}
.gwin__scores b { color: var(--accent); font-weight: 600; }
.gwin__scores span { color: var(--line); }

/* ============================================================
   v24: uniform transparency — every section now lets the
   server room show through, matching the Daisy section
   ============================================================ */
.hero, .manif, .projects, .code, .studio, .cindex, .bigend {
  background: transparent;
}

/* ============================================================
   v25: a whisper of paper behind the text — 75% transparent —
   so type stays crisp over the server room
   ============================================================ */
.hero, .manif, .projects, .code, .studio, .cindex, .bigend, .daisy {
  background: rgba(242, 240, 235, 0.25);
  background: color-mix(in srgb, var(--paper) 25%, transparent);
}

/* ============================================================
   v26: legibility pass — sharper rendering, bolder weights,
   darker grays. Nothing on this page should whisper.
   ============================================================ */
:root { --gray: #6d695e; }
body {
  -webkit-font-smoothing: auto;      /* subpixel rendering = sharper, fuller type */
  -moz-osx-font-smoothing: auto;
  font-weight: 500;
  color: #131210;
}
h1, h2, h3 { font-weight: 700; }
.crow h3, .drow h3 { font-weight: 700; }

/* the big category lines: ink-adjacent by default, full ink on hover */
.cindex__list a { color: #55524a; }
.cindex__list a:hover { color: var(--ink); }

/* body copy across the site: darker, fuller */
.proj__text p, .studio__text p, .bigend__text p,
.daisy__intro, .manif__text,
.dmodal__body p, .dmodal__body ul, .dmodal__body li {
  color: #37352f;
}
.proj__text li { color: #37352f; }
.hero__sub { color: #57534a; }
.bigend__loc { color: #57534a; }

/* labels and meta: darker + a touch bolder */
.lbl { color: #6d695e; font-weight: 600; }
.proj__meta span, .crow span, .drow .drow__tag,
.catalog__d, .ft__social, .ft__fine, .hero__lang {
  color: #6d695e;
}

/* ============================================================
   v27: depth pop — text arrives from behind the glass and
   settles toward the reader; headings carry a soft emboss
   ============================================================ */
.fade {
  transform: translateY(24px) perspective(700px) translateZ(-26px);
}
.fade.go {
  transform: translateY(0) perspective(700px) translateZ(0);
}
h1, h2, .cindex__list a, .bigend__work h3 {
  text-shadow:
    0 1px 0 rgba(22, 21, 18, 0.14),
    0 3px 5px rgba(22, 21, 18, 0.12);
}
.hero__hello .word {
  text-shadow:
    0 2px 0 rgba(22, 21, 18, 0.12),
    0 6px 12px rgba(22, 21, 18, 0.14);
}

/* ============================================================
   v28: 1776 — the screen cracks, light pours through,
   and the Declaration speaks
   ============================================================ */
.usa {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(12, 9, 5, 0);
  transition: background 0.8s ease;
  overflow: hidden;
}
.usa.on { background: rgba(12, 9, 5, 0.82); }
.usa__cracks {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.usa__cracks path {
  fill: none;
  stroke: #fff3d8;
  stroke-width: 0.3;
  stroke-linecap: round;
  filter: drop-shadow(0 0 2px rgba(255, 226, 160, 0.9));
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
}
.usa.on .usa__cracks path {
  animation: crackDraw 0.7s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}
.usa.on .usa__cracks path:nth-child(2) { animation-delay: 0.06s; }
.usa.on .usa__cracks path:nth-child(3) { animation-delay: 0.12s; }
.usa.on .usa__cracks path:nth-child(4) { animation-delay: 0.16s; }
.usa.on .usa__cracks path:nth-child(5) { animation-delay: 0.2s; }
.usa.on .usa__cracks path:nth-child(6) { animation-delay: 0.26s; }
.usa.on .usa__cracks path:nth-child(7) { animation-delay: 0.3s; }
.usa.on .usa__cracks path:nth-child(8) { animation-delay: 0.34s; }
@keyframes crackDraw { to { stroke-dashoffset: 0; } }

.usa__light {
  position: absolute; left: 50%; top: 50%;
  width: 140vmax; height: 140vmax;
  transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle,
    rgba(255, 248, 224, 0.95) 0%,
    rgba(255, 216, 140, 0.45) 22%,
    rgba(255, 190, 100, 0.15) 45%,
    transparent 65%);
  border-radius: 50%;
}
.usa.on .usa__light { animation: lightBurst 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards; }
@keyframes lightBurst {
  0% { transform: translate(-50%, -50%) scale(0); }
  100% { transform: translate(-50%, -50%) scale(1); }
}
.usa__rays {
  position: absolute; left: 50%; top: 50%;
  width: 160vmax; height: 160vmax;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(
    rgba(255, 232, 170, 0.14) 0deg 7deg,
    transparent 7deg 22deg);
  -webkit-mask-image: radial-gradient(circle, black 0%, transparent 60%);
  mask-image: radial-gradient(circle, black 0%, transparent 60%);
  opacity: 0;
  animation: raysSpin 30s linear infinite;
}
.usa.on .usa__rays { transition: opacity 1.2s ease 0.5s; opacity: 1; }
@keyframes raysSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.usa__stage {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 0 8vw;
}
.usa__q {
  font-family: var(--serif);
  font-size: clamp(20px, 3.4vw, 34px);
  line-height: 1.5;
  color: #fff6e0;
  max-width: 22em;
  text-shadow: 0 0 24px rgba(255, 214, 140, 0.55), 0 2px 6px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.9s ease;
}
.usa__attr {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(255, 236, 190, 0.75);
  opacity: 0;
  transition: opacity 1.2s ease 0.6s;
}
.usa.on .usa__attr { opacity: 1; }
.usa__close {
  position: absolute; top: 20px; right: 22px;
  width: 38px; height: 38px;
  background: none;
  border: 1px solid rgba(255, 240, 200, 0.5);
  color: #fff3d8;
  font-size: 15px;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}
.usa__close:hover { border-color: #fff3d8; transform: rotate(90deg); }

/* ============================================================
   v29: 1776 rebuilt — real fracture, volumetric light, dust
   ============================================================ */
.usa__flash {
  position: absolute; inset: 0;
  background: #fff8e8;
  opacity: 0;
  pointer-events: none;
}
.usa.on .usa__flash { animation: usaFlash 1.3s ease-out forwards; }
@keyframes usaFlash {
  0% { opacity: 0; }
  6% { opacity: 0.95; }
  30% { opacity: 0.25; }
  100% { opacity: 0; }
}
.usa__fx { position: absolute; inset: 0; width: 100%; height: 100%; }
.usa__fx .crack {
  fill: none;
  stroke: #fff3d8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 1.2px rgba(255, 236, 180, 0.95));
}
.usa__fx .crack--under {
  stroke: rgba(40, 28, 12, 0.55);
  filter: none;
}
.usa__fx .shard {
  fill: rgba(255, 240, 205, 0.05);
  stroke: rgba(255, 240, 205, 0.28);
  stroke-width: 0.08;
}
.usa__fx .ray {
  opacity: 0;
  mix-blend-mode: screen;
}
.usa.on .usa__fx .ray { animation-name: rayFlicker; animation-iteration-count: infinite; animation-timing-function: ease-in-out; }
@keyframes rayFlicker {
  0%, 100% { opacity: var(--rmin, 0.15); }
  50% { opacity: var(--rmax, 0.5); }
}
.usa__fx .raygroup { animation: raysDrift 70s linear infinite; transform-origin: 50px 46px; }
@keyframes raysDrift { to { transform: rotate(360deg); } }
.usa__hot {
  position: absolute; left: 50%; top: 46%;
  width: 30vmax; height: 30vmax;
  transform: translate(-50%, -50%) scale(0);
  background: radial-gradient(circle,
    rgba(255, 253, 245, 1) 0%,
    rgba(255, 240, 200, 0.85) 12%,
    rgba(255, 214, 140, 0.35) 34%,
    transparent 62%);
  border-radius: 50%;
  filter: blur(2px);
}
.usa.on .usa__hot { animation: hotGrow 2s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards, hotBreathe 5s ease-in-out 2.3s infinite; }
@keyframes hotGrow { to { transform: translate(-50%, -50%) scale(1); } }
@keyframes hotBreathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.07); }
}
.usa__motes { position: absolute; inset: 0; pointer-events: none; }
.usa__motes span {
  position: absolute;
  background: #fff6dd;
  border-radius: 50%;
  filter: blur(0.7px);
  opacity: 0;
  animation-name: moteDrift;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}
@keyframes moteDrift {
  0% { transform: translate(0, 12px); opacity: 0; }
  20% { opacity: var(--mo, 0.7); }
  80% { opacity: var(--mo, 0.7); }
  100% { transform: translate(var(--mx, 6px), -26px); opacity: 0; }
}

/* ============================================================
   v32: calm mode + credits
   ============================================================ */
.calmbtn {
  position: fixed; left: 12px; bottom: 12px; z-index: 60;
  padding: 6px 11px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  cursor: pointer;
  opacity: 0.72;
  box-shadow: 2px 2px 0 rgba(22, 21, 18, 0.2);
  transition: opacity 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.calmbtn:hover { opacity: 1; transform: translate(-1px, -1px); box-shadow: 3px 3px 0 rgba(22, 21, 18, 0.28); }
@media (max-width: 720px) { .calmbtn { font-size: 10px; padding: 5px 9px; opacity: 0.6; } }
.calmbtn.war { background: var(--ink); color: var(--paper); }
.cmodal {
  position: fixed; inset: 0; z-index: 140;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(22, 21, 18, 0.55);
  padding: 20px;
}
.cmodal.on { display: flex; }
.cmodal__card {
  max-width: 400px;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 rgba(22, 21, 18, 0.35);
  padding: 26px 26px 22px;
  text-align: center;
}
.cmodal__q { font-size: 17px; line-height: 1.5; font-weight: 600; }
.cmodal__q strong { letter-spacing: 0.04em; }
.cmodal__sub { margin-top: 10px; font-size: 12.5px; color: var(--gray); font-style: italic; }
.cmodal__row { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; justify-content: center; }
.cmodal__row button {
  padding: 10px 14px;
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: transform 0.12s ease;
}
.cmodal__row button:hover { transform: translateY(-2px); }
.cmodal__row .cmodal__yes {
  background: #f2f0eb;
  color: #161512;
  border-color: #161512;
}
.cmodal__row .cmodal__no {
  background: #b06a1e;
  color: #fff8ec;
  border-color: #8a5417;
  font-size: 12.5px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}
.cmodal__row button { line-height: 1.45; white-space: normal; max-width: 100%; }
.ft__credits {
  margin-top: 10px;
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--gray);
  opacity: 0.85;
}
.ft__credits a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* v33: the native cursor returns inside calm-mode UI */
html.has-cur .cmodal, html.has-cur .cmodal * { cursor: auto !important; }
html.has-cur .cmodal__row button, html.has-cur .calmbtn { cursor: pointer !important; }

/* v34: the red button's real click target */
.scenebtn {
  position: fixed;
  width: 68px; height: 68px;
  margin: -34px 0 0 -34px;
  border-radius: 50%;
  background: transparent;
  z-index: 4;
  cursor: pointer;
  display: none;
}

/* v35: version badge + easter egg legend */
.vtag {
  font-family: var(--mono);
  font-size: 0.32em;
  font-weight: 700;
  color: var(--ochre);
  margin-left: 0.35em;
  letter-spacing: 0.04em;
  vertical-align: super;
}
.eggbtn {
  position: fixed; right: 14px; bottom: 14px; z-index: 60;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  font-family: var(--mono); font-size: 14px; font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  opacity: 0.72;
  box-shadow: 2px 2px 0 rgba(22, 21, 18, 0.2);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.eggbtn:hover { opacity: 1; transform: translate(-1px, -1px); }
.eggpanel {
  position: fixed; right: 14px; bottom: 52px; z-index: 61;
  max-width: 330px;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 rgba(22, 21, 18, 0.3);
  padding: 14px 16px;
}
.eggpanel__title {
  font-family: var(--mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gray);
  text-align: center;
}
.eggpanel__list {
  list-style: none; margin: 10px 0 0; padding: 0;
}
.eggpanel__list li {
  font-size: 12.5px; line-height: 1.5;
  padding: 4px 0;
  border-top: 1px dashed rgba(22, 21, 18, 0.15);
}
.eggpanel__list li:first-child { border-top: 0; }
html.has-cur .eggbtn, html.has-cur .eggpanel { cursor: auto !important; }
html.has-cur .eggbtn { cursor: pointer !important; }

/* v36: footer version line */
.ft__ver {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ochre);
}

/* v37: mech command — weapon panel */
.mechui {
  position: fixed;
  display: none;
  transform: translate(-50%, -100%);
  gap: 6px;
  z-index: 5;
  padding: 5px 7px;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 rgba(22, 21, 18, 0.3);
}
.mechui button {
  width: 36px; height: 36px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.1s ease;
}
.mechui button:hover { transform: translateY(-1px); }
.mechui .mechui__w.sel { background: var(--ochre); border-color: var(--ochre); }
.mechui .mechui__x { font-size: 13px; font-weight: 700; width: 26px; height: 36px; border: 0; background: transparent; }
html.has-cur .mechui, html.has-cur .mechui * { cursor: pointer !important; }

/* ============================================================
   v38: dimensional type — headers cut from layered cardstock
   ============================================================ */
.hero__hello,
main h2,
main h3 {
  text-shadow:
    0.014em 0.014em 0 #dcd8cf,
    0.028em 0.028em 0 #d2cec4,
    0.042em 0.042em 0 #c6c2b7,
    0.056em 0.056em 0 #b9b5aa,
    0.070em 0.070em 0 #a8a499,
    0.105em 0.125em 0.16em rgba(22, 21, 18, 0.30);
}
/* let the trail escape the reveal-animation clip boxes */
.hero__hello .rline {
  padding: 0 0.18em 0.16em 0;
  margin: 0 -0.18em -0.16em 0;
}

/* v9.3: self-hosted visit counter */
.ft__visits {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 7px 10px;
  border: 1px solid rgba(22, 21, 18, 0.34);
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 2px 2px 0 rgba(22, 21, 18, 0.12);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}
.ft__visits-prompt {
  color: var(--ochre);
  font-weight: 800;
}
.ft__visits-prompt::before {
  content: "> ";
  color: var(--ink);
}
.ft__visits strong {
  min-width: 3ch;
  color: var(--ink);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.ft__visits.is-error { opacity: 0.55; }
@media (max-width: 560px) {
  .ft__visits { gap: 6px; padding: 6px 8px; font-size: 9px; }
  .ft__visits strong { font-size: 12px; }
}


/* v9.4: CHOP Azure portal showcase — Daisy-style hover preview */
.azure-feature {
  display: flex;
  align-items: baseline;
  gap: 14px;
  width: 100%;
  margin-top: 28px;
  padding: 15px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--ink);
  font-family: var(--sans);
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  transition: padding-left 0.4s var(--ease), color 0.25s;
}
.azure-feature:hover,
.azure-feature:focus-visible { padding-left: 10px; color: var(--accent); }
.azure-feature__num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
}
.azure-feature__title {
  font-family: var(--serif);
  font-size: clamp(18px, 2.2vw, 25px);
  font-weight: 600;
}
.azure-feature__tag {
  margin-left: auto;
  color: var(--gray);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.azure-feature__go {
  color: var(--accent);
  font-size: 11px;
  opacity: 0;
  transform: translateX(-7px);
  transition: opacity 0.3s, transform 0.35s var(--ease);
}
.azure-feature:hover .azure-feature__go,
.azure-feature:focus-visible .azure-feature__go { opacity: 1; transform: none; }
@media (max-width: 700px) {
  .azure-feature { align-items: flex-start; flex-wrap: wrap; }
  .azure-feature__tag { width: 100%; margin-left: 30px; }
}
