/* bravendal.com/doug: the animated virtual card (HOD-2027).
   Same-origin stylesheet: the /doug CSP is style-src 'self', so the page carries no inline style.
   Motion is transform and opacity only. prefers-reduced-motion turns it into a calm, still page. */

:root {
  --ink: #050d1a;
  --navy: #0a1628;
  --navy-2: #0e1d33;
  --ivory: #f3ecdc;
  --ivory-dim: #c8c1b1;
  --muted: #9aa7ba;
  --gold: #dcae58;
  --gold-hi: #f0c977;
  --btc: #f7931a;
  --cyan: #5fe3ff;
  --violet: #b69cff;
  --rose: #ff8fc8;
  --green: #5ef0a8;
  --blue: #8ab8ff;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --math: "STIX Two Math", "STIX Two Text", "Cambria Math", "Latin Modern Math", "Iowan Old Style", "Palatino Linotype", "Noto Serif", "Times New Roman", serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ivory);
  background: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; border-radius: 6px; }

.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute; left: 12px; top: -64px; z-index: 60;
  padding: 10px 14px; border-radius: 8px;
  background: var(--gold); color: var(--ink); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- header */
.bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px 22px;
  background: linear-gradient(180deg, rgba(5, 13, 26, .9) 0%, rgba(5, 13, 26, .55) 60%, rgba(5, 13, 26, 0) 100%);
  pointer-events: none;
}
.bar > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ivory); text-decoration: none; }
.brand img { width: 46px; height: auto; display: block; }
.wordmark { font-family: var(--serif); font-size: .92rem; letter-spacing: .22em; text-transform: uppercase; line-height: 1.15; }
.wordmark span { display: block; font-size: .68em; letter-spacing: .34em; color: var(--ivory-dim); }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid rgba(243, 236, 220, .28);
  background: rgba(5, 13, 26, .66);
  color: var(--ivory); font-size: .8rem; font-weight: 600;
  cursor: pointer; user-select: none; -webkit-user-select: none;
}
.pill .ico { display: block; width: 9px; height: 10px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.when-calm { display: none; }
#calm:checked ~ .bar .when-run { display: none; }
#calm:checked ~ .bar .when-calm { display: inline; }
#calm:checked ~ .bar .pill .ico { width: 0; height: 0; border-right: 0; border-left: 9px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
#calm:focus-visible ~ .bar .calm-pill { outline: 3px solid var(--gold-hi); outline-offset: 3px; }

/* ---------------------------------------------------------------- stage and sky */
.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 92px 14px 104px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 70% at 50% 0%, #13294f 0%, rgba(19, 41, 79, 0) 60%),
    linear-gradient(180deg, var(--navy) 0%, #071225 60%, var(--ink) 100%);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.sky { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.aurora { position: absolute; width: 95vmax; height: 95vmax; border-radius: 50%; will-change: transform; }
.a1 { left: -38vmax; top: -42vmax; background: radial-gradient(closest-side, rgba(247, 147, 26, .42), rgba(247, 147, 26, 0)); animation: drift1 26s ease-in-out infinite alternate; }
.a2 { right: -40vmax; top: -30vmax; background: radial-gradient(closest-side, rgba(182, 120, 255, .40), rgba(182, 120, 255, 0)); animation: drift2 31s ease-in-out infinite alternate; }
.a3 { left: -20vmax; bottom: -55vmax; background: radial-gradient(closest-side, rgba(40, 200, 255, .30), rgba(40, 200, 255, 0)); animation: drift3 37s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate3d(22vmax, 14vmax, 0) scale(1.18); } }
@keyframes drift2 { to { transform: translate3d(-18vmax, 20vmax, 0) scale(.9); } }
@keyframes drift3 { to { transform: translate3d(26vmax, -10vmax, 0) scale(1.12); } }
.wire {
  position: absolute; left: 0; right: 0; bottom: 0; height: 66%; display: block; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 42%, #000 82%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 42%, #000 82%, rgba(0, 0, 0, 0) 100%);
}
.wire img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: 66% 30%;
  opacity: .5;
  transform-origin: 70% 55%;
  animation: pan 44s ease-in-out infinite alternate;
}
@keyframes pan { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.18) translate3d(-3%, -3%, 0); } }
.mesh { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sun {
  position: absolute; right: 6%; top: 34%;
  width: 44vmin; height: 44vmin; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 220, 150, .50), rgba(247, 147, 26, .16) 48%, rgba(247, 147, 26, 0));
  animation: breathe 9s ease-in-out infinite alternate;
}
@keyframes breathe { from { transform: scale(.9); opacity: .7; } to { transform: scale(1.08); opacity: 1; } }
.orbits { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(-14deg) scaleY(.44); }
.orbit { position: absolute; left: 0; top: 0; border-radius: 50%; border: 1.5px dashed rgba(240, 201, 119, .40); animation: orbit 46s linear infinite; }
.o1 { width: 820px; height: 820px; margin: -410px 0 0 -410px; }
.o2 { width: 1080px; height: 1080px; margin: -540px 0 0 -540px; border-color: rgba(95, 227, 255, .30); animation-duration: 70s; animation-direction: reverse; }
.o3 { width: 1380px; height: 1380px; margin: -690px 0 0 -690px; border-style: dotted; border-color: rgba(182, 156, 255, .34); animation-duration: 96s; }
.orbit i { position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 14px 4px rgba(240, 201, 119, .7); }
.o2 i { background: var(--cyan); box-shadow: 0 0 14px 4px rgba(95, 227, 255, .6); }
.o2 i + i { top: auto; bottom: -6px; background: var(--rose); box-shadow: 0 0 14px 4px rgba(255, 143, 200, .6); }
.o3 i { background: var(--violet); box-shadow: 0 0 14px 4px rgba(182, 156, 255, .6); }
@keyframes orbit { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- floating objects */
.field { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.fx {
  position: absolute; left: 0; top: 0;
  display: none;
  max-width: min(440px, calc(100vw - 28px));
  transform-origin: 50% 50%;
  contain: layout style;
  pointer-events: none;
}
html.js .fx.on { display: block; will-change: transform, opacity; }
.eq, .bio, .gfx {
  border-radius: 14px;
  padding: 9px 14px 11px;
  color: var(--ivory);
  background: linear-gradient(160deg, rgba(16, 32, 58, .94), rgba(6, 14, 28, .9));
  border: 1px solid rgba(243, 236, 220, .18);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .38);
}
.tag {
  display: block; margin: 0 0 5px;
  font: 700 .62rem/1.25 var(--sans);
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.planner {
  border-color: rgba(240, 201, 119, .62);
  background: linear-gradient(160deg, rgba(52, 38, 12, .95), rgba(10, 18, 34, .93));
  box-shadow: 0 0 0 1px rgba(240, 201, 119, .14), 0 14px 36px rgba(0, 0, 0, .42), 0 0 30px rgba(220, 174, 88, .26);
}
.planner .tag { color: var(--gold-hi); }
.planner .tag b { margin-right: 5px; padding: 1px 6px; border-radius: 4px; background: var(--gold); color: var(--ink); }
.planner .m { color: #fff3da; }
.classic.u1 { border-color: rgba(95, 227, 255, .45); } .classic.u1 .tag { color: var(--cyan); }
.classic.u2 { border-color: rgba(182, 156, 255, .5); } .classic.u2 .tag { color: var(--violet); }
.classic.u3 { border-color: rgba(255, 143, 200, .45); } .classic.u3 .tag { color: var(--rose); }
.classic.u4 { border-color: rgba(94, 240, 168, .42); } .classic.u4 .tag { color: var(--green); }
.classic.ai { border-color: rgba(182, 156, 255, .55); } .classic.ai .tag { color: var(--violet); }
.classic.btc { border-color: rgba(247, 147, 26, .6); background: linear-gradient(160deg, rgba(48, 26, 4, .95), rgba(10, 16, 30, .92)); } .classic.btc .tag { color: #ffb45e; }
.bio { --acc: var(--ivory-dim); max-width: min(300px, calc(100vw - 28px)); border-left: 3px solid var(--acc); }
.bio .tag { color: var(--acc); }
.bio .tx { display: block; font-family: var(--serif); font-size: 1.04rem; line-height: 1.3; }
.c-gold { --acc: var(--gold-hi); } .c-violet { --acc: var(--violet); } .c-cyan { --acc: var(--cyan); }
.c-rose { --acc: var(--rose); } .c-green { --acc: var(--green); } .c-blue { --acc: var(--blue); }
.c-btc { --acc: #ffb45e; } .c-ivory { --acc: var(--ivory); }
.gfx { padding: 9px 12px 10px; }
.gfx svg { display: block; max-width: 100%; height: auto; }
.g-coin, .g-helm, .g-mark { padding: 0; border: 0; background: none; box-shadow: none; }
.g-coin svg { width: 66px; height: 66px; }
.spin-y { display: block; animation: coin 3.8s linear infinite; }
@keyframes coin { to { transform: rotateY(360deg); } }
.g-helm .mini-helm { width: 64px; height: auto; }
.g-mark img { display: block; width: 104px; height: auto; }
.g-cap .big { display: block; font: 800 1.55rem/1.1 var(--sans); color: #ffb45e; letter-spacing: .01em; }
.g-hash .mono { display: block; max-width: 240px; font: .74rem/1.4 var(--mono); color: #ffcf8a; word-break: break-all; }
.g-times .tx { display: block; max-width: 250px; font-family: var(--serif); font-style: italic; line-height: 1.32; }
.g-logo { padding: 10px 14px 9px; text-align: center; }
.g-logo svg { width: 40px; height: 40px; margin: 0 auto 6px; }
.g-logo .lname { font: 700 1.02rem/1 var(--sans); letter-spacing: .04em; color: var(--ivory); white-space: nowrap; }
.l-tesla { border-color: rgba(232, 33, 39, .55); } .l-tesla .lname { color: #ff6b6f; }
.l-anthropic { border-color: rgba(217, 119, 87, .6); } .l-anthropic .lname { color: #f0a283; }
.l-ice { border-color: rgba(115, 199, 232, .55); } .l-ice .lname { color: #9fdcf2; }
.glyph { padding: 0; }
.glyph span {
  display: block; padding: 0 .06em;
  font: italic 400 4.2rem/1.05 var(--math);
  color: var(--gold-hi);
  background: linear-gradient(135deg, #ffe1a1 0%, #ff8fc8 48%, #8f7dff 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.fx::after {
  content: ""; position: absolute; inset: -5px; border-radius: 18px;
  pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 2px rgba(255, 246, 222, .9), 0 0 34px 10px rgba(240, 201, 119, .5);
}
.g-coin::after, .g-helm::after, .glyph::after, .g-mark::after { border-radius: 50%; box-shadow: 0 0 40px 16px rgba(240, 201, 119, .45); }
.fx.flash::after { animation: flash .8s ease-out 1; }
@keyframes flash { 0% { opacity: 0; } 20% { opacity: 1; } 100% { opacity: 0; } }
.fx.nudged { border-color: var(--gold-hi); }

.stage.over-fx { cursor: grab; }
.stage.grabbing { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.ripples { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; }
.ripple {
  position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%;
  border: 2px solid rgba(240, 201, 119, .9);
  box-shadow: 0 0 22px rgba(240, 201, 119, .5), inset 0 0 16px rgba(95, 227, 255, .4);
  animation: ripple .95s cubic-bezier(.1, .6, .3, 1) forwards;
}
.ripple.r2 { border-color: rgba(95, 227, 255, .8); animation-duration: 1.25s; }
@keyframes ripple { from { transform: scale(.15); opacity: 1; } to { transform: scale(9); opacity: 0; } }

/* ---------------------------------------------------------------- typeset math (HTML + CSS, no MathJax) */
.m {
  display: flex; flex-wrap: wrap; align-items: center;
  column-gap: 1.15em; row-gap: .2em;
  font-family: var(--math);
  font-size: 1.12rem;
  line-height: 1.5;
  white-space: nowrap;
}
.planner.hero .m { font-size: 1.34rem; }
.m .pt { display: inline-block; white-space: nowrap; }
.m i { font-style: italic; padding-right: .03em; }
.m .rm, .m .rm i { font-style: normal; }
.m .v { font-style: normal; font-weight: 700; }
.m .bi { font-style: italic; font-weight: 700; }
.m sub, .m sup { position: relative; font-size: .68em; line-height: 0; vertical-align: baseline; }
.m sup { top: -.52em; }
.m sub { top: .3em; }
.m sup sup { font-size: .82em; top: -.38em; }
/* An inline-flex box sits on its first item's baseline: lift the stack so its top line is a superscript
   and its bottom line falls to subscript depth (LaTeX's x^2_{t,i}). */
.m .ss { display: inline-flex; flex-direction: column; vertical-align: .6em; font-size: .68em; line-height: 1.02; margin-left: .03em; text-align: left; }
.m .ss sub, .m .ss sup { font-size: .82em; }
.m .fr { display: inline-flex; flex-direction: column; align-items: stretch; vertical-align: middle; margin: 0 .14em; font-size: .9em; text-align: center; }
.m .fr > span { display: block; padding: 0 .2em; line-height: 1.22; }
.m .fr > span:first-child { border-bottom: .07em solid currentColor; padding-bottom: .08em; }
.m .fr > span:last-child { padding-top: .1em; }
.m .fr .fr { font-size: .86em; }
.m .op { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; margin: 0 .14em; line-height: 1; }
.m .op .os { font-size: 1.5em; line-height: 1.02; }
.m .op .ol { font-size: .6em; line-height: 1.15; }
.m .op.ow .os { font-size: 1em; line-height: 1.25; font-style: normal; }
.m .opr { display: inline-flex; align-items: center; margin: 0 .1em; }
.m .opr .os { font-size: 1.5em; line-height: 1; }
.m .opr .ss { vertical-align: middle; font-size: .62em; }
.m .hat, .m .ovl { position: relative; display: inline-block; line-height: 1; }
.m .hat::before {
  content: "\02C6"; position: absolute; left: 58%; top: -.36em;
  transform: translateX(-50%); font-style: normal; font-size: .95em; line-height: 1;
}
.m .ovl::before { content: ""; position: absolute; left: .14em; right: .02em; top: .06em; border-top: .065em solid currentColor; }
.m .sq { display: inline-flex; align-items: flex-end; vertical-align: middle; }
.m .sq .rs { font-size: 1.12em; line-height: 1; margin-right: -.02em; font-style: normal; }
.m .sq .rc { border-top: .07em solid currentColor; padding: .06em .1em 0 .06em; line-height: 1.2; }
.m .sq.tall .rs { transform: scaleY(2.05); transform-origin: 50% 100%; margin-right: .04em; }
.m .bp { display: inline-block; transform: scaleY(1.3); margin: 0 .04em; font-style: normal; }
.m .bp.xl { transform: scaleY(1.9); margin: 0 .07em; }

/* ---------------------------------------------------------------- the card */
.card-wrap { position: relative; z-index: 5; width: min(724px, 100%); perspective: 1700px; }
.card { position: relative; transform-style: preserve-3d; transition: transform .45s var(--ease); }
.card-in { display: grid; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.3, .75, .25, 1.06); }
#flip:checked + .card .card-in { transform: rotateY(180deg); }
.face {
  grid-area: 1 / 1;
  position: relative;
  border-radius: 24px;
  padding: 3px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: visibility 0s linear .42s;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 60px rgba(220, 174, 88, .18);
}
.back { transform: rotateY(180deg); visibility: hidden; }
#flip:checked + .card .front { visibility: hidden; }
#flip:checked + .card .back { visibility: visible; }
.rim { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
.rim i {
  position: absolute; left: 50%; top: 50%;
  width: 320%; height: 0; padding-bottom: 320%;
  margin: -160% 0 0 -160%;
  background: conic-gradient(from 0deg, #dcae58, #f7931a, #ff8fc8, #b69cff, #5fe3ff, #5ef0a8, #f0c977, #dcae58);
  animation: rim 7s linear infinite;
}
@keyframes rim { to { transform: rotate(360deg); } }
.face-body {
  position: relative; height: 100%;
  border-radius: 22px;
  overflow: hidden;
  padding: 30px 32px 28px;
  background:
    radial-gradient(110% 90% at 0% 0%, rgba(240, 201, 119, .16), rgba(240, 201, 119, 0) 55%),
    radial-gradient(120% 120% at 100% 100%, rgba(182, 156, 255, .18), rgba(182, 156, 255, 0) 55%),
    linear-gradient(155deg, #11223e 0%, #0a1628 46%, #060f1f 100%);
}
.face-wire { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 48%; opacity: .55; pointer-events: none; }
.front .face-body { display: grid; grid-template-columns: 164px 1fr; align-items: center; align-content: center; gap: 12px 28px; cursor: pointer; }
.front .id { position: relative; }
.helm { position: relative; width: 160px; height: 196px; display: grid; place-items: center; }
.helmet { position: relative; z-index: 2; width: 122px; height: auto; display: block; animation: helmIn 1.9s cubic-bezier(.2, .8, .2, 1) .1s both; }
.helmet .hp { stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; animation: draw 1.5s ease-out .3s forwards, fillin .9s ease-out 1.2s forwards; }
@keyframes helmIn {
  0% { transform: perspective(700px) rotateY(-540deg) scale(.3); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: perspective(700px) rotateY(0) scale(1); opacity: 1; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillin { to { fill-opacity: 1; } }
.halo { position: absolute; inset: -6px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 214, 140, .62), rgba(247, 147, 26, .2) 55%, rgba(247, 147, 26, 0)); animation: halo 5s ease-in-out 1.8s infinite alternate; }
@keyframes halo { from { opacity: .5; transform: scale(.9); } to { opacity: 1; transform: scale(1.07); } }
.ring { position: absolute; border-radius: 50%; }
.ring.r1 { inset: 6px; border: 1.5px dashed rgba(240, 201, 119, .55); animation: orbit 20s linear infinite; }
.ring.r2 { inset: -10px; border: 2px solid rgba(95, 227, 255, .5); border-left-color: transparent; border-right-color: transparent; animation: orbit 9s linear infinite reverse; }
.kicker { margin: 0 0 6px; font-size: .72rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(1.95rem, 4.6vw, 2.7rem); line-height: 1.04; letter-spacing: .005em; }
h1 .cfa {
  display: inline-block; margin-left: .4em; padding: .3em .5em .26em;
  font: 800 .38em/1 var(--sans); letter-spacing: .16em;
  color: var(--ink); background: linear-gradient(135deg, var(--gold-hi), var(--gold));
  border-radius: 6px; vertical-align: .62em;
}
.role { margin: 12px 0 4px; font-family: var(--serif); font-size: 1.2rem; color: var(--gold-hi); }
.lede { margin: 0 0 14px; font-size: .96rem; color: var(--ivory-dim); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; }
.badges li { padding: 4px 9px; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; color: var(--gold-hi); background: rgba(240, 201, 119, .1); border: 1px solid rgba(240, 201, 119, .5); }
.badges li span { margin-left: .3em; font-weight: 500; letter-spacing: .02em; color: var(--ivory-dim); }
.badges li:nth-child(2) { color: var(--violet); background: rgba(182, 156, 255, .1); border-color: rgba(182, 156, 255, .5); }
.badges li:nth-child(3) { color: var(--cyan); background: rgba(95, 227, 255, .08); border-color: rgba(95, 227, 255, .45); }
.badges li:nth-child(4) { color: var(--rose); background: rgba(255, 143, 200, .08); border-color: rgba(255, 143, 200, .45); }
.flipper {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  font-size: .92rem; font-weight: 700;
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold-hi), var(--gold));
  box-shadow: 0 8px 24px rgba(220, 174, 88, .38);
  cursor: pointer; user-select: none; -webkit-user-select: none;
}
.flipper svg { width: 18px; height: 18px; display: block; }
.flipper:hover { background: linear-gradient(135deg, #ffe0a3, var(--gold-hi)); }
#flip:focus-visible + .card .front .flipper,
#flip:focus-visible + .card .back .back-flip { outline: 3px solid #fff; outline-offset: 3px; }

.back .face-body { display: grid; grid-template-columns: 1fr auto; align-items: center; align-content: center; gap: 16px 26px; }
.back h2 { margin: 0 0 6px; padding-right: 96px; font-family: var(--serif); font-weight: 400; font-size: 1.65rem; line-height: 1.15; }
.pitch { margin: 0 0 14px; font-size: .92rem; color: var(--ivory-dim); }
.cta {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 18px; border-radius: 999px;
  font-weight: 700; text-decoration: none;
  color: var(--ink); background: linear-gradient(135deg, var(--gold-hi), var(--gold));
  box-shadow: 0 8px 24px rgba(220, 174, 88, .35);
}
.cta svg { width: 18px; height: 18px; display: block; }
.links { display: grid; grid-template-columns: 1fr; gap: 2px; margin: 12px 0 12px; padding: 0; list-style: none; }
.lnk { display: flex; align-items: center; gap: 12px; padding: 5px 8px; border-radius: 10px; text-decoration: none; }
.lnk:hover { background: rgba(243, 236, 220, .07); }
.lnk svg { flex: none; width: 20px; height: 20px; display: block; color: var(--gold-hi); }
.lnk span { display: flex; flex-direction: column; min-width: 0; font-size: .92rem; line-height: 1.25; overflow-wrap: anywhere; }
.lnk small { font-size: .64rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(243, 236, 220, .32);
  background: rgba(243, 236, 220, .06);
  color: var(--ivory);
  font: inherit; font-size: .86rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: rgba(243, 236, 220, .12); }
.btn svg { width: 16px; height: 16px; display: block; }
.back-flip { position: absolute; top: 16px; right: 16px; z-index: 2; padding: 7px 12px; font-size: .82rem; color: var(--gold-hi); background: rgba(5, 13, 26, .55); box-shadow: none; border: 1px solid rgba(240, 201, 119, .55); }
.back-flip svg { width: 16px; height: 16px; }
.back-flip:hover { background: rgba(240, 201, 119, .1); }
.needs-js { display: none; }
html.js .needs-js { display: inline-flex; }
.qr { margin: 0; text-align: center; }
.qr-box { width: 132px; padding: 9px; border-radius: 12px; background: #fff; }
.qr-box svg { display: block; width: 114px; height: 114px; }
.qr figcaption { max-width: 132px; margin-top: 7px; font-size: .7rem; line-height: 1.3; color: var(--muted); }

.hint { position: absolute; left: 0; right: 0; bottom: 64px; z-index: 6; margin: 0; padding: 0 16px; text-align: center; pointer-events: none; transition: opacity .6s; }
.hint > span { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: .8rem; color: var(--ivory); background: rgba(5, 13, 26, .78); border: 1px solid rgba(243, 236, 220, .14); }
.hint .when-js { display: none; }
html.js .hint .when-js { display: inline-block; }
.stage.used .hint { opacity: 0; }
.down {
  position: absolute; left: 50%; bottom: 16px; z-index: 6;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  transform: translateX(-50%);
  font-size: .84rem; font-weight: 600; text-decoration: none;
  color: var(--gold-hi); background: rgba(5, 13, 26, .7);
  border: 1px solid rgba(240, 201, 119, .4);
}
.down svg { width: 16px; height: 16px; display: block; animation: bob 2.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(3px); } }

/* ---------------------------------------------------------------- plain version */
.plain { position: relative; z-index: 1; padding: 60px 18px 44px; border-top: 1px solid rgba(220, 174, 88, .2); background: linear-gradient(180deg, var(--ink) 0%, var(--navy) 45%, var(--ink) 100%); }
.wrap { max-width: 1040px; margin: 0 auto; }
.eyebrow { margin: 0 0 6px; font-size: .75rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-hi); }
.plain h2 { margin: 0 0 12px; font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.summary { max-width: 48rem; margin: 0 0 28px; font-family: var(--serif); font-size: clamp(1.12rem, 2.6vw, 1.42rem); line-height: 1.45; }
.cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px 52px; }
.plain h3 { margin: 18px 0 10px; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-hi); }
.plain p { margin: 0 0 12px; }
.career { margin: 0; padding: 0; list-style: none; border-left: 1px solid rgba(240, 201, 119, .35); }
.career li { position: relative; padding: 0 0 16px 18px; }
.career li::before { content: ""; position: absolute; left: -5px; top: .5em; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px rgba(240, 201, 119, .6); }
.career .yr { display: block; font-size: .76rem; letter-spacing: .08em; color: var(--muted); }
.career b { display: block; font-weight: 600; }
.career span:last-child { display: block; font-size: .93rem; color: var(--ivory-dim); }
.career i { font-style: normal; color: var(--gold-hi); }
.creds { margin: 0; padding: 0; list-style: none; }
.creds li { margin-bottom: 8px; }
.creds b { display: block; font-weight: 600; }
.creds span { display: block; font-size: .92rem; color: var(--ivory-dim); }
.figs { margin: 0; padding: 0; list-style: none; }
.figs li { margin-bottom: 8px; }
.figs b { display: block; font-weight: 600; color: var(--gold-hi); }
.figs span { display: block; font-size: .92rem; color: var(--ivory-dim); }
.figs + .note { margin-top: 4px; }
.plain-links { grid-template-columns: 1fr; margin-top: 0; }
.save { margin-top: 4px; }
.math { margin-top: 28px; padding: 12px 18px; border-radius: 12px; border: 1px solid rgba(243, 236, 220, .16); background: rgba(14, 29, 51, .55); }
.math summary { cursor: pointer; font-weight: 700; color: var(--gold-hi); }
.math p { margin: 12px 0 6px; color: var(--ivory-dim); font-size: .93rem; }
.cols3 { columns: 3 220px; column-gap: 28px; margin: 0 0 8px; padding-left: 1.1em; font-size: .9rem; color: var(--ivory); }
.cols3 li { break-inside: avoid; margin-bottom: 2px; }
.cols3 .sec { color: var(--gold-hi); }
.note { margin-top: 18px; font-size: .84rem; color: var(--muted); }
.foot { padding: 22px 18px 34px; text-align: center; font-size: .86rem; color: var(--ivory-dim); background: var(--ink); }
.foot p { max-width: 44rem; margin: 0 auto; }
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 70;
  padding: 9px 16px; border-radius: 999px;
  background: var(--ivory); color: var(--ink); font-weight: 700;
  opacity: 0; transform: translate(-50%, 18px);
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- without JavaScript: a CSS-only choreography of 12 pieces */
html:not(.js) .fx.cf { display: block; opacity: 0; animation: cf-a 24s linear infinite; }
html:not(.js) .fx.cf:nth-child(even) { animation-name: cf-b; }
html:not(.js) .s1 { left: 3%; top: 15%; animation-delay: 1s !important; }
html:not(.js) .s2 { left: 64%; top: 12%; animation-delay: 3s !important; }
html:not(.js) .s3 { left: 6%; top: 74%; animation-delay: 5s !important; }
html:not(.js) .s4 { left: 56%; top: 78%; animation-delay: 7s !important; }
html:not(.js) .s5 { left: 70%; top: 44%; animation-delay: 9s !important; }
html:not(.js) .s6 { left: 2%; top: 46%; animation-delay: 11s !important; }
html:not(.js) .s7 { left: 38%; top: 9%; animation-delay: 13s !important; }
html:not(.js) .s8 { left: 30%; top: 84%; animation-delay: 15s !important; }
html:not(.js) .s9 { left: 74%; top: 24%; animation-delay: 17s !important; }
html:not(.js) .s10 { left: 4%; top: 30%; animation-delay: 19s !important; }
html:not(.js) .s11 { left: 86%; top: 66%; animation-delay: 21s !important; }
html:not(.js) .s12 { left: 12%; top: 60%; animation-delay: 23s !important; }
@keyframes cf-a {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(.25) rotate(-30deg); }
  3% { opacity: 1; transform: translate3d(0, 0, 0) scale(1.08) rotate(4deg); }
  5% { transform: translate3d(0, -4px, 0) scale(1) rotate(0); }
  36% { opacity: 1; transform: translate3d(26px, -40px, 0) scale(1) rotate(5deg); }
  44% { opacity: 0; transform: translate3d(40px, -110px, 0) scale(.75) rotate(14deg); }
  100% { opacity: 0; transform: translate3d(40px, -110px, 0) scale(.75); }
}
@keyframes cf-b {
  0% { opacity: 0; transform: perspective(700px) rotateY(90deg); }
  3% { opacity: 1; transform: perspective(700px) rotateY(-14deg); }
  5% { transform: perspective(700px) rotateY(0); }
  36% { opacity: 1; transform: perspective(700px) translate3d(-24px, -30px, 0) rotate(-4deg); }
  44% { opacity: 0; transform: perspective(700px) translate3d(-30px, -64px, 0) rotateY(90deg); }
  100% { opacity: 0; transform: perspective(700px) rotateY(90deg); }
}

/* ---------------------------------------------------------------- pause (works with or without JavaScript) */
#calm:checked ~ main .stage *,
#calm:checked ~ main .stage *::before,
#calm:checked ~ main .stage *::after { animation-play-state: paused !important; }

/* ---------------------------------------------------------------- phones */
@media (max-width: 640px) {
  .stage { padding: 84px 12px 112px; }
  .bar { padding: 10px 12px; }
  .brand img { width: 40px; }
  .wordmark { font-size: .8rem; }
  .pill { padding: 6px 11px; font-size: .76rem; }
  .front .face-body { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 18px 16px 20px; gap: 0; }
  .helm { width: 100px; height: 112px; margin-bottom: 12px; }
  .helmet { width: 70px; }
  .halo { inset: 2px; }
  .kicker { margin: 0 0 4px; font-size: .66rem; letter-spacing: .2em; }
  h1 { font-size: 1.72rem; }
  .role { margin: 8px 0 2px; font-size: 1.04rem; }
  .lede { margin: 0 0 12px; font-size: .92rem; }
  .badges { justify-content: center; margin-bottom: 14px; }
  .face-wire { height: 36%; }
  .back .face-body { padding: 18px 16px 18px; }
  .back h2 { font-size: 1.4rem; padding-right: 84px; }
  .pitch { display: none; }
  .back h2 { margin-bottom: 12px; }
  .cta { padding: 9px 16px; }
  .links { margin: 8px 0 10px; }
  .lnk { padding: 4px 6px; }
  .back-flip { top: 14px; right: 12px; padding: 6px 10px; font-size: .78rem; }
  .hint > span { font-size: .76rem; }
  .hint .more { display: none; }
  .back .face-body { grid-template-columns: 1fr; padding: 22px 18px; }
  .links { grid-template-columns: 1fr; }
  .qr { display: none; }
  .m { font-size: .94rem; }
  .planner.hero .m { font-size: 1.02rem; }
  .eq, .bio, .gfx { padding: 7px 11px 9px; border-radius: 12px; }
  .tag { font-size: .56rem; margin-bottom: 4px; }
  .bio .tx { font-size: .9rem; }
  .bio { max-width: min(250px, calc(100vw - 28px)); }
  .glyph span { font-size: 2.9rem; }
  .g-coin svg { width: 54px; height: 54px; }
  .orbits { transform: rotate(-14deg) scaleY(.5) scale(.62); }
  .cols { grid-template-columns: 1fr; }
  html:not(.js) .s1 { left: 4%; top: 8%; } html:not(.js) .s2 { left: 40%; top: 11%; } html:not(.js) .s3 { left: 4%; top: 82%; } html:not(.js) .s4 { left: 34%; top: 86%; }
  html:not(.js) .s5 { left: 50%; top: 79%; } html:not(.js) .s6 { left: 6%; top: 13%; } html:not(.js) .s7 { left: 28%; top: 9%; } html:not(.js) .s8 { left: 8%; top: 84%; }
  html:not(.js) .s9 { left: 46%; top: 12%; } html:not(.js) .s10 { left: 12%; top: 80%; } html:not(.js) .s11 { left: 70%; top: 10%; } html:not(.js) .s12 { left: 72%; top: 84%; }
}

/* ---------------------------------------------------------------- reduced motion: a calm, still page */
@media (prefers-reduced-motion: reduce) {
  .aurora, .wire img, .sun, .orbit, .rim i, .halo, .ring.r1, .ring.r2, .spin-y, .down svg, .helmet { animation: none; }
  .helmet .hp { animation: none; stroke-dashoffset: 0; fill-opacity: 1; }
  .card, .card-in, .face, .toast, .hint { transition: none; }
  #flip:checked + .card .card-in { transform: none; }
  .back { transform: none; }
  html:not(.js) .fx.cf, html:not(.js) .fx.cf:nth-child(even) { animation: none; opacity: .9; }
  .fx.flash::after { animation: none; }
  .ripple { display: none; }
}
