/* ════════════════════════════════════════════════════════════════
   STAR CHARTS · portfolio v12 design tokens
   ════════════════════════════════════════════════════════════════ */
:root {
  /* Space palette */
  --void:        #050814;
  --void-2:      #0A0F22;
  --panel:       #101736;
  --panel-2:     #18204A;
  --line:        rgba(244, 236, 214, 0.10);
  --line-strong: rgba(244, 236, 214, 0.20);

  /* Stars (text) */
  --star:        #F4ECD6;   /* warm parchment white, primary text */
  --star-dim:    #B6BAC7;
  --star-faint:  #6A7088;

  /* Signal accents */
  --amber:       #7AA8FF;   /* beacon · luminous cool blue (was amber) */
  --amber-soft:  rgba(122, 168, 255, 0.18);
  --amber-glow:  rgba(122, 168, 255, 0.50);
  --italic:      #9DD3F0;   /* editorial italic · pale cosmic cyan-blue, distinct from beacon */
  --red:         #E84855;
  --red-soft:    rgba(232, 72, 85, 0.18);
  --cyan:        #6FC3DF;

  /* Parchment surfaces (used by Future Questlines panel) */
  --parchment:   #F0EBD8;
  --parchment-2: #E4DCC0;
  --ink-dark:    #0A1525;
  --ink-dark-2:  #2A2E3A;

  /* Type stack */
  --display: "Archivo Black", system-ui, sans-serif;
  --editorial: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Bricolage Grotesque", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  /* Rhythm */
  --max: 1180px;
  --gutter: clamp(20px, 4vw, 64px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* Emphasis · bold display font in the cosmic blue (replaced italic, which was hard to read) */
em {
  font-family: var(--display);
  font-style: normal;
  font-weight: 400;
  font-size: 1.04em;
  letter-spacing: -0.005em;
  color: var(--italic);
}

body {
  background: var(--void);
  color: var(--star);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Star field · three layers, parallax-ish via background-attachment fixed */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(2px 2px at 14% 22%, rgba(244,236,214,0.55), transparent 60%),
    radial-gradient(1px 1px at 78% 14%, rgba(244,236,214,0.40), transparent 60%),
    radial-gradient(2px 2px at 52% 71%, rgba(244,236,214,0.36), transparent 60%),
    radial-gradient(1px 1px at 90% 56%, rgba(244,236,214,0.50), transparent 60%),
    radial-gradient(1.5px 1.5px at 32% 89%, rgba(244,236,214,0.30), transparent 60%),
    radial-gradient(1px 1px at 8% 64%, rgba(244,236,214,0.35), transparent 60%),
    radial-gradient(1px 1px at 64% 38%, rgba(244,236,214,0.42), transparent 60%),
    radial-gradient(1.5px 1.5px at 24% 50%, rgba(244,236,214,0.28), transparent 60%),
    radial-gradient(1px 1px at 96% 84%, rgba(244,236,214,0.30), transparent 60%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(122,168,255,0.12), transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 12%, rgba(111,195,223,0.08), transparent 60%),
    radial-gradient(ellipse 70% 60% at 50% 110%, rgba(232,72,85,0.10), transparent 60%);
}

/* ───── HUD strip (top) ───── */
.hud {
  position: relative;
  z-index: 2;
  background: rgba(5, 8, 20, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.hud-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--star-dim);
}
.hud-left { display: flex; align-items: center; gap: 14px; }
.hud-dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 0 12px var(--amber-glow);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.8); }
}
.hud-id { color: var(--star); font-weight: 700; }
.hud-nav { display: flex; align-items: center; gap: 18px; }
.hud-nav a {
  color: var(--star-dim);
  text-decoration: none;
  transition: color .18s ease;
}
.hud-nav a:hover { color: var(--amber); }
.hud-coord { color: var(--star-faint); }
@media (max-width: 640px) {
  .hud-coord { display: none; }
}

/* ─── MODE SWITCH · "Play Portfolio instead of Read?" ───
   Gold game-world accent so it pops against the cool-blue page,
   while still living inside the Star Charts aesthetic. */
.play-switch {
  --ps-gold:      #F4B942;
  --ps-gold-hi:   #FFD879;
  --ps-gold-deep: #8A5A19;
  position: relative;
  z-index: 3;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 20px);
  max-width: var(--max);
  margin: 14px auto 0;
  padding: clamp(14px, 2.2vw, 18px) clamp(16px, 3vw, 24px);
  text-decoration: none;
  color: var(--star);
  border: 1px solid rgba(244, 185, 66, 0.45);
  border-radius: 16px;
  background:
    radial-gradient(120% 180% at 0% 0%, rgba(244, 185, 66, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(20, 16, 8, 0.55), rgba(10, 15, 34, 0.65));
  box-shadow:
    0 1px 0 rgba(255, 216, 121, 0.18) inset,
    0 10px 30px rgba(0, 0, 0, 0.45),
    0 0 0 0 rgba(244, 185, 66, 0.45);
  overflow: hidden;
  transition: transform .2s cubic-bezier(.2,.7,.2,1), border-color .2s ease, box-shadow .3s ease;
  animation: ps-beacon 3.2s ease-in-out infinite;
}
@keyframes ps-beacon {
  0%, 100% { box-shadow: 0 1px 0 rgba(255,216,121,.18) inset, 0 10px 30px rgba(0,0,0,.45), 0 0 0 0 rgba(244,185,66,0); }
  50%      { box-shadow: 0 1px 0 rgba(255,216,121,.18) inset, 0 10px 30px rgba(0,0,0,.45), 0 0 26px 1px rgba(244,185,66,.28); }
}
/* sweeping sheen */
.play-switch__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 216, 121, 0.14) 47%, transparent 64%);
  background-size: 240% 100%;
  background-position: 140% 0;
  animation: ps-sweep 5.5s ease-in-out infinite;
}
@keyframes ps-sweep {
  0%, 18% { background-position: 140% 0; }
  55%, 100% { background-position: -40% 0; }
}
.play-switch:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 216, 121, 0.85);
  box-shadow:
    0 1px 0 rgba(255, 216, 121, 0.28) inset,
    0 16px 40px rgba(0, 0, 0, 0.5),
    0 0 34px 2px rgba(244, 185, 66, 0.4);
}
.play-switch:active { transform: translateY(0); }
.play-switch:focus-visible {
  outline: 2px solid var(--ps-gold-hi);
  outline-offset: 3px;
}

.play-switch__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  color: var(--ps-gold-hi);
  background: radial-gradient(80% 80% at 50% 30%, rgba(244,185,66,.22), rgba(244,185,66,.06));
  border: 1px solid rgba(244, 185, 66, 0.4);
}
.play-switch__icon svg { width: 26px; height: 26px; }

.play-switch__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.play-switch__lead {
  font-family: var(--editorial);
  font-size: clamp(17px, 2.4vw, 21px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--star);
}
.play-switch__lead em {
  font-family: var(--display);
  color: var(--ps-gold-hi);
  font-size: 0.92em;
}
.play-switch__sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.45;
  color: var(--star-dim);
}

.play-switch__cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ink-dark);
  background: linear-gradient(180deg, var(--ps-gold-hi), var(--ps-gold));
  border: 1px solid var(--ps-gold-deep);
  border-radius: 11px;
  padding: 11px 18px;
  box-shadow: 0 2px 0 var(--ps-gold-deep), 0 8px 18px rgba(244, 185, 66, 0.22);
}
.play-switch__cta .arrow { transition: transform .2s cubic-bezier(.2,.7,.2,1); }
.play-switch:hover .play-switch__cta .arrow { transform: translateX(4px); }

@media (max-width: 720px) {
  .play-switch { margin-top: 12px; border-radius: 14px; }
  .play-switch__sub { display: none; }
  .play-switch__cta { padding: 10px 14px; }
}
@media (max-width: 460px) {
  .play-switch { gap: 12px; padding: 13px 14px; }
  .play-switch__icon { width: 40px; height: 40px; }
  .play-switch__icon svg { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .play-switch,
  .play-switch__glow,
  .play-switch__cta .arrow { animation: none; transition: none; }
}

/* ───── Page container ───── */
main {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) 80px;
}

/* ───── HERO ───── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(72px, 11vw, 132px) 0 clamp(48px, 7vw, 96px);
  position: relative;
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 36px; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
}
.hero-eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--amber);
  display: inline-block;
}

.hero-greet {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--star-dim);
  margin-bottom: 10px;
  font-weight: 500;
  line-height: 1.1;
}

.hero-name {
  font-family: var(--display);
  font-size: clamp(54px, 9.6vw, 124px);
  line-height: 0.88;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin: 0;
  position: relative;
  background: linear-gradient(180deg, #FFFAEC 0%, #C9C3AF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(122, 168, 255, 0.18));
}

.hero-tag {
  margin: 20px 0 8px;
  max-width: 36ch;
  font-size: clamp(17px, 1.9vw, 21px);
  line-height: 1.45;
  color: var(--star);
}
.hero-tag em {
  font-weight: 400;
  color: var(--italic);
}

.hero-availability {
  margin: 6px 0 24px;
  max-width: 44ch;
  font-size: 14.5px;
  color: var(--star-dim);
  line-height: 1.55;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(244, 236, 214, 0.02);
  overflow: hidden;
}
.pill .lbl {
  padding: 8px 11px 7px;
  background: rgba(244, 236, 214, 0.06);
  color: var(--star-faint);
  border-right: 1px solid var(--line-strong);
}
.pill .val {
  padding: 8px 14px 7px;
  color: var(--star);
}
.pill.seeking .lbl { background: rgba(232, 72, 85, 0.16); color: var(--red); border-right-color: rgba(232, 72, 85, 0.30); }
.pill.seeking .val { color: var(--star); }

/* Hero portrait · orbital halo */
.portrait-wrap {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1;
  justify-self: end;
  margin: 0 auto;
}
@media (max-width: 860px) { .portrait-wrap { justify-self: start; max-width: 280px; } }

.portrait-glow {
  position: absolute;
  inset: -8%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(122, 168, 255, 0.32) 0%, rgba(122, 168, 255, 0.08) 32%, transparent 62%);
  filter: blur(8px);
  z-index: 0;
}

.portrait-orbit {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 999px;
  pointer-events: none;
}
.portrait-orbit::before,
.portrait-orbit::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px dashed rgba(244, 236, 214, 0.18);
  animation: spin 60s linear infinite;
}
.portrait-orbit::after {
  inset: -7%;
  border-style: solid;
  border-color: rgba(122, 168, 255, 0.22);
  animation-duration: 80s;
  animation-direction: reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

.portrait-mark {
  position: absolute;
  width: 10px; height: 10px;
  background: var(--amber);
  border-radius: 999px;
  box-shadow: 0 0 16px var(--amber-glow);
  z-index: 2;
}
.portrait-mark.m1 { top: -4px; left: 50%; transform: translateX(-50%); }
.portrait-mark.m2 { right: -10%; top: 50%; transform: translateY(-50%); background: var(--red); box-shadow: 0 0 16px rgba(232,72,85,0.5); }

.portrait {
  position: absolute;
  inset: 8%;
  z-index: 2;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(244, 236, 214, 0.22);
  background: var(--panel);
  display: grid;
  place-items: center;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;        /* scale any image to fill the circle, crop overflow */
  object-position: center;  /* crop from the center */
  display: block;
}
.portrait-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 84px;
  color: var(--star-faint);
  background: linear-gradient(135deg, var(--panel-2), var(--panel));
  letter-spacing: -0.04em;
}
.portrait-nameplate {
  position: absolute;
  bottom: -2%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  background: var(--void);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 14px 5px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--star);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.portrait-nameplate .v {
  color: var(--amber);
  font-weight: 700;
}

/* ───── MISSION BRIEF / Stage 00 ───── */
.brief {
  margin: 24px 0 72px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(16, 23, 54, 0.55) 0%, rgba(10, 15, 34, 0.55) 100%);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.brief::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(244, 236, 214, 0.025) 1px, transparent 1px),
    linear-gradient(0deg, rgba(244, 236, 214, 0.020) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 80%);
}

.brief-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 8, 20, 0.4);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--star-dim);
}
.brief-head strong { color: var(--star); font-weight: 700; }
.brief-head .right { color: var(--amber); }

.brief-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}
@media (max-width: 720px) { .brief-grid { grid-template-columns: repeat(2, 1fr); } }
.brief-cell {
  padding: 22px 20px 20px;
  background: rgba(10, 15, 34, 0.55);
}
.brief-cell .num {
  display: block;
  font-family: var(--display);
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--star);
}
.brief-cell .num .unit {
  font-size: 0.55em;
  color: var(--amber);
  margin-left: 2px;
}
.brief-cell .lab {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--star-faint);
  line-height: 1.4;
}

.brief-foot {
  position: relative;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: rgba(5, 8, 20, 0.4);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--star-dim);
}
.brief-foot .lab { color: var(--amber); margin-right: 8px; }
.brief-foot .x { color: var(--star-faint); margin: 0 2px; }

/* ───── BIO ───── */
.bio {
  margin: 0 0 80px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 36px;
}
@media (max-width: 760px) { .bio { grid-template-columns: 1fr; gap: 16px; } }

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-top: 8px;
}
.section-label::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--amber);
  margin-top: 8px;
  flex-shrink: 0;
}

.bio-prose p {
  margin: 0 0 18px;
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--star);
}
.bio-prose p:last-child { margin-bottom: 0; }
.bio-prose em {
  font-weight: 400;
  font-size: 1.07em;
  color: var(--italic);
}
.bio-prose strong {
  color: var(--amber);
  font-weight: 700;
}

/* ───── DIVIDER ───── */
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 56px;
}
.divider .line {
  flex: 1;
  height: 1px;
  background: var(--line);
}
.divider .star {
  width: 12px; height: 12px;
  position: relative;
}
.divider .star::before,
.divider .star::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--amber);
}
.divider .star::before {
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}
.divider .star::after { display: none; }

/* ───── LOADOUT ───── */
.loadout {
  margin: 0 0 80px;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.section-head .left {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.section-head .stage {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  padding-top: 4px;
}
.section-head .ttl {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--star);
  line-height: 1;
}
.section-head .ttl em {
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--italic);
}
.section-head .right {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--star-faint);
}

.loadout-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 920px) { .loadout-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .loadout-grid { grid-template-columns: 1fr; } }

.load-card {
  border: 1px solid var(--line);
  background: rgba(16, 23, 54, 0.35);
  padding: 20px 18px 18px;
  position: relative;
  transition: border-color .22s ease, transform .22s ease, background .22s ease;
}
.load-card:hover {
  border-color: rgba(122, 168, 255, 0.36);
  background: rgba(16, 23, 54, 0.55);
  transform: translateY(-2px);
}
.load-card .lab {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}
.load-card .lab .idx {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  border: 1px solid var(--amber);
  color: var(--amber);
  font-family: var(--display);
  font-size: 11px;
}
.load-card h4 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--star);
  line-height: 1.05;
}
.load-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--star-dim);
}
.load-card p strong { color: var(--star); font-weight: 600; }

/* ───── MY DESIGNS ───── */
#designs { margin: 0 0 88px; }

.designs-intro {
  max-width: 64ch;
  margin: 0 0 28px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--star);
}
.designs-intro em {
  color: var(--italic);
}

.case-file {
  display: block;
  position: relative;
  border: 1px solid var(--line-strong);
  padding: 32px clamp(24px, 4vw, 44px) 30px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(122, 168, 255, 0.12), transparent 60%),
    radial-gradient(80% 60% at 100% 100%, rgba(232, 72, 85, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(24, 32, 74, 0.55) 0%, rgba(10, 15, 34, 0.55) 100%);
  text-decoration: none;
  color: var(--star);
  overflow: hidden;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
  isolation: isolate;
}
.case-file::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(244, 236, 214, 0.025) 1px, transparent 1px),
    linear-gradient(0deg, rgba(244, 236, 214, 0.02) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  mask-image: linear-gradient(135deg, rgba(0,0,0,0.55), transparent 70%);
}
.case-file::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 168, 255, 0.16) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.case-file:hover {
  border-color: rgba(122, 168, 255, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(122, 168, 255, 0.18);
}
.case-file:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

.case-file__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.case-file__num {
  color: var(--amber);
  font-weight: 700;
}
.case-file__num::before {
  content: "▸ ";
}
.case-file__tag {
  color: var(--star-faint);
}

.case-file__title {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 0.96;
  color: var(--star);
}
.case-file__title em {
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--italic);
  font-weight: 400;
}

.case-file__sub {
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--star-dim);
  line-height: 1.55;
}

.case-file__body {
  margin: 0 0 22px;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--star);
}
.case-file__body em {
  color: var(--italic);
}

.case-file__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--amber);
  background: rgba(122, 168, 255, 0.06);
  color: var(--amber);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  transition: background .2s ease, color .2s ease;
}
.case-file:hover .case-file__cta {
  background: var(--amber);
  color: var(--void);
}

.designs-footnote {
  margin: 22px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--star-faint);
}

/* ───── RELEVANT WORK ───── */
#work { margin: 0 0 80px; }

.project {
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(16, 23, 54, 0.40) 0%, rgba(10, 15, 34, 0.40) 100%);
  margin: 0 0 32px;
  position: relative;
  overflow: hidden;
  transition: border-color .25s ease, transform .25s ease;
}
.project:hover { border-color: rgba(122, 168, 255, 0.32); }
.project::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(244, 236, 214, 0.02) 1px, transparent 1px),
    linear-gradient(0deg, rgba(244, 236, 214, 0.018) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  mask-image: linear-gradient(to bottom right, rgba(0,0,0,0.4), transparent 70%);
}

.project-head {
  display: block;
  padding: 28px 28px 0;
  position: relative;
  z-index: 1;
}

.project-stage {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}
.project-stage .num {
  font-family: var(--display);
  background: var(--red);
  color: var(--star);
  padding: 3px 8px 2px;
  letter-spacing: 0.04em;
}
.project h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 4.3vw, 48px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 0.96;
  color: var(--star);
}
.project h3 em {
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--italic);
}
.studio-line {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--star-dim);
}
.studio-line .red { color: var(--red); font-weight: 700; }
.role-line {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--star-dim);
}

.project-body {
  padding: 24px 28px 28px;
  position: relative;
  z-index: 1;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--star);
}
@media (max-width: 760px) { .project-body { padding: 22px; } }
.project-body p { margin: 0 0 14px; }
.project-body p:last-child { margin-bottom: 0; }
.project-body p strong { color: var(--amber); font-weight: 700; }
.project-body p em {
  font-weight: 400;
  color: var(--italic);
}

.beats {
  margin: 22px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
}
@media (max-width: 600px) { .beats { grid-template-columns: 1fr; gap: 6px; } }
.beats .lab {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  padding-top: 6px;
}
.beats ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.beats li {
  position: relative;
  padding: 6px 0 6px 26px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--star);
}
.beats li::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: 6px;
  color: var(--red);
  font-size: 14px;
}
.beats li strong { color: var(--amber); font-weight: 700; }

.meta {
  margin: 22px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px 18px;
  font-size: 14px;
}
@media (max-width: 600px) { .meta { grid-template-columns: 90px 1fr; } }
.meta dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--star-faint);
  padding-top: 3px;
}
.meta dd { margin: 0; color: var(--star); line-height: 1.5; }
.meta dd a { color: var(--cyan); text-decoration: none; border-bottom: 1px solid rgba(111, 195, 223, 0.4); }
.meta dd a:hover { color: var(--amber); border-color: var(--amber); }

/* ───── FUTURE QUESTLINES MODULE START ───── */
/* Module re-skinned for the dark Star Charts theme · surfaces are panels in the
   void, text is starlight cream, accents are the cool beacon-blue from the rest
   of the portfolio. Carousel + flip mechanics preserved from the original module. */
/* ════════════════════════════════════════════════════════════════ */

.future-questlines {
  /* Scoped overrides · the questlines panel now lives in the void with the rest. */
  --ink:       var(--star);
  --ink-2:     var(--star-dim);
  --bg:        var(--panel);
  --bg-soft:   var(--panel);
  --bg-warm:   var(--panel-2);

  --questlines-visible: 3;
  --questlines-gap: 14px;
  margin: 72px 0 80px;
  font-family: var(--body);
  color: var(--ink);
}

.questlines-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 12% 0%, rgba(122, 168, 255, 0.14), transparent 38%),
    radial-gradient(circle at 88% 8%, rgba(232, 72, 85, 0.08), transparent 34%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg-warm) 100%);
  padding: 32px 28px 30px;
  box-shadow:
    0 0 0 1px rgba(122, 168, 255, 0.10),
    0 30px 80px rgba(0, 0, 0, 0.55);
}

.questlines-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(244, 236, 214, 0.025) 1px, transparent 1px),
    linear-gradient(0deg, rgba(244, 236, 214, 0.02) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom right, rgba(0,0,0,0.45), transparent 70%);
}

.questlines-head,
.questlines-carousel {
  position: relative;
  z-index: 1;
}

.questlines-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.56fr);
  gap: 22px;
  align-items: end;
  margin-bottom: 24px;
}

.questlines-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}

.questlines-eyebrow::before {
  content: "▸";
  color: var(--amber);
}

.questlines-title {
  font-family: var(--display);
  font-size: clamp(32px, 5.6vw, 58px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 16px;
  color: var(--ink);
}

.questlines-intro {
  max-width: 58ch;
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 1.58;
  margin: 0;
}

.questlines-note {
  border: 1px solid rgba(244, 236, 214, 0.18);
  background: rgba(122, 168, 255, 0.06);
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.55;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0;
}

.questlines-note strong {
  color: var(--amber);
  font-weight: 700;
}

.questlines-carousel {
  border-top: 1px solid rgba(244, 236, 214, 0.18);
  padding-top: 20px;
}

.questlines-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.questlines-status {
  display: grid;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.questlines-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--ink-2);
}

.questlines-count {
  color: var(--amber);
  font-weight: 700;
}

.questlines-hint {
  color: var(--amber);
  font-weight: 700;
}

.questlines-progress {
  width: min(320px, 100%);
  height: 6px;
  border: 1px solid rgba(244, 236, 214, 0.18);
  background: rgba(122, 168, 255, 0.06);
  overflow: hidden;
}

.questlines-progress-bar {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--amber);
  box-shadow: 0 0 12px var(--amber-glow);
  transform-origin: left center;
  transition: width .24s ease;
}

.questlines-controls {
  display: inline-flex;
  gap: 8px;
  flex-shrink: 0;
}

.questlines-arrow {
  appearance: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(244, 236, 214, 0.28);
  background: rgba(122, 168, 255, 0.04);
  color: var(--ink);
  font-family: var(--display);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, color .16s ease, border-color .16s ease, opacity .16s ease;
}

.questlines-arrow:hover:not(:disabled) {
  transform: translate(-2px, -2px);
  background: var(--amber);
  color: var(--void);
  border-color: var(--amber);
}

.questlines-arrow:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.questlines-arrow:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.questlines-viewport {
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
}

.questlines-viewport:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 5px;
}

.questlines-viewport.questlines-is-dragging {
  cursor: grabbing;
}

.questlines-track {
  display: flex;
  gap: var(--questlines-gap);
  will-change: transform;
  transition: transform .32s cubic-bezier(.2, .8, .2, 1);
}

.quest-card {
  appearance: none;
  display: block;
  position: relative;
  flex: 0 0 calc((100% - ((var(--questlines-visible) - 1) * var(--questlines-gap))) / var(--questlines-visible));
  min-width: 0;
  min-height: 520px;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  perspective: 1200px;
  user-select: none;
  text-align: left;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

.quest-card:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

.quest-card__inner {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform .42s cubic-bezier(.2, .8, .2, 1);
}

.quest-card[aria-pressed="true"] .quest-card__inner {
  transform: rotateY(180deg);
}

.quest-card__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(244, 236, 214, 0.20);
  border-radius: 18px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(122, 168, 255, 0.10), transparent 60%),
    linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(122, 168, 255, 0.08),
    0 4px 10px rgba(0, 0, 0, 0.35),
    0 22px 48px rgba(0, 0, 0, 0.65),
    0 40px 80px rgba(0, 0, 0, 0.45);
}

.quest-card__front::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0%, transparent 42%, rgba(122, 168, 255, 0.20) 48%, transparent 56%, transparent 100%),
    radial-gradient(circle at 22% 16%, rgba(122, 168, 255, 0.18), transparent 24%);
  opacity: 0;
  transform: translateX(-22%);
  transition: opacity .22s ease, transform .36s ease;
  mix-blend-mode: screen;
}

.quest-card:hover .quest-card__front::after,
.quest-card:focus-visible .quest-card__front::after {
  opacity: 0.92;
  transform: translateX(18%);
}

.quest-card__front {
  transform: rotateY(0deg);
}

.quest-card__back {
  transform: rotateY(180deg);
  background:
    radial-gradient(circle at 18% 0%, rgba(122, 168, 255, 0.22), transparent 32%),
    radial-gradient(circle at 80% 90%, rgba(232, 72, 85, 0.10), transparent 40%),
    linear-gradient(180deg, var(--panel-2) 0%, var(--void-2) 100%);
  color: var(--star);
  box-shadow:
    inset 0 0 0 1px rgba(122, 168, 255, 0.12),
    0 4px 10px rgba(0, 0, 0, 0.35),
    0 22px 48px rgba(0, 0, 0, 0.70),
    0 40px 80px rgba(0, 0, 0, 0.50);
}

.quest-card__frame {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 14px;
  gap: 12px;
}

.quest-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.quest-card__back .quest-card__meta {
  color: rgba(240, 235, 216, 0.62);
}

.quest-card__art {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(244, 236, 214, 0.14);
  border-radius: 12px;
  overflow: hidden;
  background-color: rgba(10, 15, 34, 0.6);
  background-size: cover;
  background-position: center;
}

/* Optional photo layer. Drop images/Questline_01.jpg … Questline_08.jpg to fill
   a card; any size/shape conforms to the 4:3 frame. Missing → generated art shows. */
.quest-card__photo {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;        /* scale to fill the frame, crop overflow */
  object-position: center;  /* crop from the center */
  display: block;
}

.quest-card__art::before,
.quest-card__art::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.quest-card__art::before {
  inset: 8%;
  border: 1px solid rgba(244, 236, 214, 0.24);
  border-radius: 8px;
}

.quest-card__art::after {
  width: 44%;
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(122, 168, 255, 0.16);
  box-shadow: 0 0 42px rgba(122, 168, 255, 0.30);
}

.quest-card__art--training {
  background-image:
    linear-gradient(135deg, rgba(10,15,34,0.92), rgba(122,168,255,0.32)),
    radial-gradient(circle at 55% 42%, rgba(122,168,255,0.55), transparent 28%);
}

.quest-card__art--space-games {
  background-image:
    radial-gradient(circle at 72% 24%, rgba(244,236,214,0.78), transparent 10%),
    radial-gradient(circle at 42% 48%, rgba(232,72,85,0.42), transparent 24%),
    linear-gradient(145deg, #08101D, #1B2A4A);
}

.quest-card__art--metaverse {
  background-image:
    linear-gradient(135deg, rgba(10,15,34,0.92), rgba(122,168,255,0.30)),
    repeating-linear-gradient(90deg, rgba(244,236,214,0.16) 0 2px, transparent 2px 16px);
}

.quest-card__art--combat {
  background-image:
    radial-gradient(circle at 50% 44%, rgba(232,72,85,0.62), transparent 26%),
    linear-gradient(135deg, #1B1424, #0A0F22 58%, #324C8E 160%);
}

.quest-card__art--xr {
  background-image:
    radial-gradient(circle at 52% 45%, rgba(122,168,255,0.62), transparent 28%),
    linear-gradient(135deg, #0A0F22, #2A3F66 100%);
}

.quest-card__art--physical-digital {
  background-image:
    linear-gradient(135deg, rgba(122,168,255,0.32), rgba(10,15,34,0.88)),
    repeating-linear-gradient(45deg, rgba(244,236,214,0.14) 0 3px, transparent 3px 18px);
}

.quest-card__art--coop-arpg {
  background-image:
    radial-gradient(circle at 50% 40%, rgba(122,168,255,0.52), transparent 26%),
    linear-gradient(135deg, #15183A, #0A0F22 68%, #2C4980 160%);
}

.quest-card__art--igaming {
  background-image:
    radial-gradient(circle at 50% 42%, rgba(244,236,214,0.50), transparent 22%),
    linear-gradient(135deg, #0A0F22, #4A2030 70%, #122560 140%);
}

.quest-card__title {
  font-family: var(--display);
  font-size: 23px;
  line-height: 1.02;
  letter-spacing: -0.012em;
  text-transform: uppercase;
}

.quest-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.quest-card__tag {
  display: inline-block;
  padding: 4px 7px 3px;
  border: 1px solid rgba(244, 236, 214, 0.24);
  background: rgba(122, 168, 255, 0.08);
  color: var(--star-dim);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quest-card__sentence {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.45;
}

.quest-card__inspect {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(244, 236, 214, 0.16);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}

.quest-card__back .quest-card__title {
  color: var(--star);
  font-size: 21px;
}

.quest-card__back-copy {
  color: rgba(244, 236, 214, 0.82);
  font-size: 14.5px;
  line-height: 1.54;
}

.quest-card__signals {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(244, 236, 214, 0.16);
}

.quest-card__signals-label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}

.quest-card__signals-text {
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.55;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(240, 235, 216, 0.68);
}

.quest-card__return {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}

.questlines-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 860px) {
  .future-questlines { --questlines-visible: 2; }
  .questlines-head { grid-template-columns: 1fr; align-items: start; }
  .questlines-note { max-width: 62ch; }
}

@media (max-width: 720px) {
  .future-questlines { margin-top: 54px; }
  .questlines-shell { padding: 24px 18px 22px; }
  .questlines-title { font-size: 36px; }
  .questlines-intro { font-size: 15.5px; }
  .questlines-toolbar { align-items: flex-end; }
  .questlines-progress { width: 100%; }
  .quest-card { min-height: 500px; }
  .quest-card__title { font-size: 21px; }
  .quest-card__back .quest-card__title { font-size: 20px; }
}

@media (max-width: 560px) {
  .future-questlines { --questlines-visible: 1; }
  .questlines-toolbar { flex-direction: column; align-items: stretch; }
  .questlines-controls { justify-content: flex-end; }
  .questlines-note { font-size: 10.5px; }
  .quest-card { min-height: 510px; }
  .quest-card__frame { padding: 13px; }
  .quest-card__back-copy { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .questlines-track,
  .questlines-progress-bar,
  .questlines-arrow,
  .quest-card__inner,
  .quest-card__front::after {
    transition: none !important;
  }

  .quest-card:hover .quest-card__front::after,
  .quest-card:focus-visible .quest-card__front::after {
    opacity: 0;
    transform: none;
  }
}
/* ════════════════════════════════════════════════════════════════ */
/* ───── FUTURE QUESTLINES MODULE END ───── */

/* ───── CONTACT ───── */
.contact {
  margin: 80px 0 0;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(ellipse 80% 70% at 80% 10%, rgba(122, 168, 255, 0.14), transparent 60%),
    radial-gradient(ellipse 60% 60% at 10% 110%, rgba(232, 72, 85, 0.10), transparent 60%),
    linear-gradient(180deg, rgba(16, 23, 54, 0.55), rgba(5, 8, 20, 0.85));
  padding: 36px 36px 32px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 600px) { .contact { padding: 28px 22px 24px; } }
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(244, 236, 214, 0.025) 1px, transparent 1px),
    linear-gradient(0deg, rgba(244, 236, 214, 0.018) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 80%);
}
.contact-head {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.contact-head .stage {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
}
.contact-head .ttl {
  font-family: var(--display);
  font-size: clamp(28px, 4.5vw, 48px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--star);
}
.contact-head .ttl em {
  font-weight: 400;
  text-transform: none;
  color: var(--italic);
}

.contact-body {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px 22px;
  font-size: 15.5px;
}
@media (max-width: 520px) { .contact-body { grid-template-columns: 90px 1fr; } }
.contact-body dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--star-faint);
  padding-top: 5px;
}
.contact-body dd { margin: 0; color: var(--star); }
.contact-body dd a {
  color: var(--star);
  text-decoration: none;
  border-bottom: 1px solid rgba(122, 168, 255, 0.35);
  transition: color .18s ease, border-color .18s ease;
}
.contact-body dd a:hover { color: var(--amber); border-color: var(--amber); }
.contact-note {
  position: relative;
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--star-dim);
  line-height: 1.55;
}

/* ───── FOOTER ───── */
footer {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 60px auto 0;
  padding: 24px var(--gutter) 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--star-faint);
}
footer a { color: var(--star-dim); text-decoration: none; }
footer a:hover { color: var(--amber); }

/* ───── Selection ───── */
::selection { background: var(--amber); color: var(--void); }


/* ════════════════════════════════════════════════════════════════
   DEEP DIVE PAGES · body.deep-dive
   Page-scoped overrides + deep-dive layout system (Portfolio_*.html)
   ════════════════════════════════════════════════════════════════ */

/* ─── Page-scoped design tokens + base ─── */
body.deep-dive {
  --max:         1080px;                         /* narrower content column */
  --line-strong: rgba(244, 236, 214, 0.18);      /* slightly softer dividers */
  line-height: 1.6;                              /* looser for long-form reading */
}

/* ─── Overrides for shared components on deep-dive pages ─── */
body.deep-dive .hud         { border-bottom-color: var(--line-strong); }
body.deep-dive .hud-inner   { gap: 16px; font-size: 11px; letter-spacing: 0.12em; }
body.deep-dive .hud-id      { display: inline-flex; align-items: center; gap: 10px; font-weight: 400; }
body.deep-dive main         { padding-bottom: 0; }
body.deep-dive footer {
  margin: 0 auto;
  padding: 24px var(--gutter) 40px;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.12em;
}
body.deep-dive footer .red  { color: var(--red); }

/* ─── HUD additions specific to deep-dive (back arrow + coords variant) ─── */
.deep-dive .hud-coords      { color: var(--star-faint); }
.deep-dive .hud-back a {
  color: var(--amber);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity .2s ease;
}
.deep-dive .hud-back a:hover { opacity: 0.7; }

/* ─── Generic link default on deep-dive pages ─── */
.deep-dive a       { color: var(--amber); }
.deep-dive a:hover { opacity: 0.75; }

/* ─── HERO ─── */
.deep-dive .dd-hero {
  padding: 80px 0 56px;
  border-bottom: 1px solid var(--line);
}
.deep-dive .dd-eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}
.deep-dive .dd-eyebrow::before { content: "▸ "; }
.deep-dive .dd-greet {
  display: block;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--star-faint);
  margin-bottom: 12px;
}
.deep-dive .dd-title {
  margin: 0 0 24px;
  font-family: var(--display);
  font-size: clamp(40px, 7vw, 84px);
  letter-spacing: -0.025em;
  text-transform: uppercase;
  line-height: 0.92;
  color: var(--star);
}
.deep-dive .dd-title em {
  text-transform: none;
  letter-spacing: -0.015em;
  font-size: 0.95em;
  font-weight: 400;
}
.deep-dive .dd-sub {
  max-width: 60ch;
  font-size: 19px;
  line-height: 1.55;
  color: var(--star);
}
.deep-dive .dd-sub em { color: var(--italic); }

.deep-dive .dd-pills {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.deep-dive .dd-pill {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line-strong);
  background: rgba(122, 168, 255, 0.04);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.deep-dive .dd-pill .lbl {
  background: rgba(122, 168, 255, 0.10);
  color: var(--amber);
  padding: 6px 10px 5px;
  border-right: 1px solid var(--line-strong);
  font-weight: 700;
}
.deep-dive .dd-pill .val {
  padding: 6px 12px 5px;
  color: var(--star);
}

/* ─── METADATA / TIMELINE ─── */
.deep-dive .dd-meta {
  padding: 40px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 760px) {
  .deep-dive .dd-meta { grid-template-columns: 1fr; gap: 28px; }
}
.deep-dive .dd-meta h4 {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}
.deep-dive .dd-meta h4::before { content: "▸ "; }
.deep-dive .dd-meta dl {
  margin: 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 18px;
  row-gap: 8px;
  font-size: 14.5px;
}
.deep-dive .dd-meta dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--star-faint);
  padding-top: 3px;
}
.deep-dive .dd-meta dd { margin: 0; color: var(--star); }

.deep-dive .dd-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.deep-dive .dd-timeline li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  padding-left: 18px;
  position: relative;
}
.deep-dive .dd-timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber-glow);
  border-radius: 50%;
}
.deep-dive .dd-timeline .year {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--star-faint);
  padding-top: 2px;
}
.deep-dive .dd-timeline .role {
  font-size: 14.5px;
  color: var(--star);
  font-weight: 500;
}

/* ─── CONTEXT PARAGRAPHS ─── */
.deep-dive .dd-context {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--line);
  max-width: 64ch;
}
.deep-dive .dd-context p {
  margin: 0 0 18px;
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--star);
}
.deep-dive .dd-context p:last-child { margin-bottom: 0; }

/* ─── SECTION HEADER (deep-dive variant — overrides the index .section-head) ─── */
.deep-dive .section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin: 72px 0 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-strong);
}
.deep-dive .section-head .left {
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
}
.deep-dive .section-head .stage {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}
.deep-dive .section-head .stage::before { content: "▸ "; }
.deep-dive .section-head .ttl {
  font-family: var(--display);
  font-size: clamp(28px, 4.5vw, 44px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--star);
}
.deep-dive .section-head .ttl em {
  text-transform: none;
  letter-spacing: -0.01em;
  font-weight: 400;
}
.deep-dive .section-head .right {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--star-faint);
  white-space: nowrap;
}

/* ─── INDEX OF HIGHLIGHTS ─── */
.deep-dive .dd-index {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 0 0 56px;
}
@media (max-width: 560px) { .deep-dive .dd-index { grid-template-columns: 1fr; } }
.deep-dive .dd-index a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  background: rgba(16, 23, 54, 0.40);
  color: var(--star);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.deep-dive .dd-index a:hover {
  border-color: var(--amber);
  background: rgba(122, 168, 255, 0.08);
  transform: translateY(-1px);
  opacity: 1;
}
.deep-dive .dd-index a .num {
  font-family: var(--display);
  font-size: 13px;
  background: var(--red);
  color: var(--star);
  padding: 3px 8px 2px;
  letter-spacing: 0.04em;
}
.deep-dive .dd-index a .ttl { color: var(--star); }

/* ─── HIGHLIGHT ARTICLE ─── */
.deep-dive .highlight {
  margin: 0 0 48px;
  padding: 36px clamp(22px, 4vw, 44px);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(16, 23, 54, 0.45) 0%, rgba(10, 15, 34, 0.45) 100%);
  position: relative;
  overflow: hidden;
}
.deep-dive .highlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(244, 236, 214, 0.02) 1px, transparent 1px),
    linear-gradient(0deg, rgba(244, 236, 214, 0.018) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  mask-image: linear-gradient(to bottom right, rgba(0,0,0,0.4), transparent 70%);
}
.deep-dive .highlight > * { position: relative; z-index: 1; }

.deep-dive .h-num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
}
.deep-dive .h-num::before { content: "▸ "; }

.deep-dive .highlight h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(28px, 4.2vw, 44px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 0.96;
  color: var(--star);
}
.deep-dive .highlight h2 em {
  text-transform: none;
  letter-spacing: -0.01em;
  font-weight: 400;
}

.deep-dive .h-meta {
  margin: 0 0 24px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--star-dim);
  text-transform: uppercase;
}
.deep-dive .h-meta strong { color: var(--amber); font-weight: 700; }

.deep-dive .h-opener {
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--star);
  max-width: 64ch;
}

/* ─── IMAGE SLOTS (two-up per story) ─── */
.deep-dive .dd-figs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 0 0 28px;
}
@media (max-width: 600px) { .deep-dive .dd-figs { grid-template-columns: 1fr; } }
.deep-dive .dd-fig {
  margin: 0;
  border: 1px solid var(--line-strong);
  background: rgba(10, 15, 34, 0.5);
  overflow: hidden;
  position: relative;
}
.deep-dive .dd-fig img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;        /* any source size/shape conforms to the 16:10 frame */
  object-position: center;  /* crop from the center */
  display: block;
}
.deep-dive .dd-fig figcaption {
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--star-faint);
  border-top: 1px solid var(--line);
  background: rgba(10, 15, 34, 0.7);
}
.deep-dive .dd-fig--empty img { display: none; }
.deep-dive .dd-fig--empty::before {
  content: "▸ Add image";
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--star-faint);
  background:
    repeating-linear-gradient(45deg, rgba(244, 236, 214, 0.025) 0 8px, transparent 8px 16px);
}

/* ─── STORY BLOCKS (Problem → Goal → Hard Call → Concrete Move → Surprise) ─── */
.deep-dive .story-block {
  margin: 0 0 22px;
  padding-left: 18px;
  border-left: 1px solid var(--line-strong);
  max-width: 68ch;
}
.deep-dive .story-block .lbl {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
}
.deep-dive .story-block p {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--star);
}
.deep-dive .story-block p:last-child { margin-bottom: 0; }
.deep-dive .story-block strong { color: var(--star); font-weight: 600; }

/* ─── SUB-HIGHLIGHT CARDS (inside Engine Tools) ─── */
.deep-dive .sub-highlight {
  margin: 24px 0 0;
  padding: 22px clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  background: rgba(10, 15, 34, 0.5);
}
.deep-dive .sub-highlight .sh-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
}
.deep-dive .sub-highlight .sh-tag::before { content: "▸ "; }
.deep-dive .sub-highlight h3 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--star);
}

/* ─── OUTCOME CALLOUT ─── */
.deep-dive .outcome-callout {
  margin: 18px 0 0;
  padding: 16px 18px;
  border: 1px solid rgba(122, 168, 255, 0.30);
  background: rgba(122, 168, 255, 0.06);
}
.deep-dive .outcome-callout .head {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
}
.deep-dive .outcome-callout .head::before { content: "▸ "; }
.deep-dive .outcome-callout p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--star);
}
.deep-dive .outcome-callout strong { color: var(--italic); font-weight: 600; }

/* ─── OUTCOMES GRID ─── */
.deep-dive .outcomes {
  margin: 56px 0 0;
  padding: 40px clamp(22px, 4vw, 44px);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(122, 168, 255, 0.10), transparent 60%),
    linear-gradient(180deg, rgba(24, 32, 74, 0.50) 0%, rgba(10, 15, 34, 0.50) 100%);
}
.deep-dive .outcomes-head { margin-bottom: 28px; }
.deep-dive .outcomes-head .lab {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}
.deep-dive .outcomes-head .lab::before { content: "▸ "; }
.deep-dive .outcomes-head h2 {
  margin: 8px 0 4px;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--star);
}
.deep-dive .outcomes-head .sub {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--star-faint);
}
.deep-dive .outcomes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
}
@media (max-width: 760px) { .deep-dive .outcomes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .deep-dive .outcomes-grid { grid-template-columns: 1fr; } }
.deep-dive .outcomes-cell {
  background: var(--void-2);
  padding: 22px 18px;
}
.deep-dive .outcomes-cell .num {
  font-family: var(--display);
  font-size: clamp(26px, 3.6vw, 36px);
  letter-spacing: -0.02em;
  color: var(--star);
  line-height: 1;
  margin-bottom: 8px;
}
.deep-dive .outcomes-cell .num small {
  font-size: 0.5em;
  color: var(--amber);
  margin-left: 2px;
}
.deep-dive .outcomes-cell .lbl {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--star-faint);
  line-height: 1.4;
}

/* ─── BACK CTA ─── */
.deep-dive .back-cta {
  margin: 56px 0 32px;
  padding: 28px clamp(22px, 4vw, 36px);
  border: 1px solid var(--line-strong);
  background: rgba(16, 23, 54, 0.50);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.deep-dive .back-cta-text { flex: 1; min-width: 240px; }
.deep-dive .back-cta .label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
}
.deep-dive .back-cta .label::before { content: "▸ "; }
.deep-dive .back-cta h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(22px, 2.8vw, 28px);
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--star);
}
.deep-dive .back-cta a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--amber);
  background: rgba(122, 168, 255, 0.06);
  color: var(--amber);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.deep-dive .back-cta a:hover {
  background: var(--amber);
  color: var(--void);
  opacity: 1;
}

/* ─── RESPONSIVE (deep-dive) ─── */
@media (max-width: 600px) {
  .deep-dive .dd-hero       { padding: 56px 0 40px; }
  .deep-dive .dd-meta       { padding: 28px 0; }
  .deep-dive .highlight     { padding: 24px 18px; }
  .deep-dive .section-head  { margin: 56px 0 22px; }
  .deep-dive .back-cta      { flex-direction: column; align-items: flex-start; }
  .deep-dive .dd-timeline li{ grid-template-columns: 1fr; gap: 4px; }
}
