/* =====================================================================
   THE ODYSSEY OF GEVORG — stylesheet
   Concept: a hero's journey through the craft of a 3D & motion artist.
   Palette: obsidian night + molten gold, defined in oklch().
   Fonts: Cinzel (monumental display) + Sora (modern body).
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --bg:            oklch(0.15 0.018 275);   /* obsidian night            */
  --bg-deep:       oklch(0.11 0.016 275);   /* deepest shadow            */
  --panel:         oklch(0.19 0.02 275);    /* raised surface            */
  --panel-2:       oklch(0.23 0.022 275);   /* hovered surface           */
  --line:          oklch(0.32 0.025 275);   /* hairlines                 */

  --gold:          oklch(0.83 0.14 86);     /* molten gold (primary)     */
  --gold-bright:   oklch(0.90 0.13 92);     /* highlight                 */
  --bronze:        oklch(0.68 0.11 70);     /* secondary metal           */
  --ember:         oklch(0.68 0.19 45);     /* ember orange-red          */

  --ink:           oklch(0.94 0.012 90);    /* marble text               */
  --ink-soft:      oklch(0.80 0.014 88);    /* body                      */
  --ink-mute:      oklch(0.62 0.014 86);    /* captions                  */

  --display: "Cinzel", "Times New Roman", serif;
  --body:    "Sora", system-ui, sans-serif;

  --rhythm: clamp(1.2rem, 4vw, 2.6rem);
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gold-glow: 0 0 24px oklch(0.83 0.14 86 / 0.35);
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body);
  color: var(--ink-soft);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* radial vignette + faint constellation wash painted behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(1200px 800px at 78% -8%, oklch(0.30 0.05 80 / 0.18), transparent 60%),
    radial-gradient(1000px 700px at 12% 108%, oklch(0.30 0.06 280 / 0.16), transparent 60%),
    var(--bg);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }

/* ---------- 3. Ember canvas ---------- */
#embers {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

/* ---------- 4. Custom cursor (fine pointers only) ---------- */
.cursor, .cursor-dot { display: none; }
@media (hover: hover) and (pointer: fine) {
  body.has-cursor { cursor: none; }
  body.has-cursor a, body.has-cursor button { cursor: none; }
  .cursor {
    display: block; position: fixed; top: 0; left: 0;
    width: 34px; height: 34px; margin: -17px 0 0 -17px;
    border: 1.5px solid var(--gold);
    border-radius: 50%;
    z-index: 9999; pointer-events: none;
    transition: width .2s var(--ease), height .2s var(--ease),
                margin .2s var(--ease), background-color .2s var(--ease),
                border-color .2s var(--ease);
    mix-blend-mode: screen;
  }
  .cursor-dot {
    display: block; position: fixed; top: 0; left: 0;
    width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px;
    background: var(--gold-bright); border-radius: 50%;
    z-index: 9999; pointer-events: none;
  }
  .cursor.is-active {
    width: 56px; height: 56px; margin: -28px 0 0 -28px;
    background: oklch(0.83 0.14 86 / 0.12);
    border-color: var(--gold-bright);
  }
}

/* ---------- 5. Shared layout ---------- */
.wrap { width: min(100% - 2.4rem, var(--maxw)); margin-inline: auto; }
.eyebrow {
  font-family: var(--display);
  font-size: 0.72rem; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
}
.section-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  line-height: 1.1; color: var(--ink);
  letter-spacing: 0.01em;
}
.lede { color: var(--ink-mute); max-width: 60ch; font-size: 1.02rem; }

/* meander (Greek key) divider drawn with gradients, not images */
.meander {
  height: 14px; width: 100%;
  background:
    repeating-linear-gradient(90deg,
      var(--gold) 0 2px, transparent 2px 10px),
    repeating-linear-gradient(90deg,
      transparent 0 6px, var(--gold) 6px 8px, transparent 8px 16px);
  opacity: 0.28; mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

/* ---------- 6. HUD (fixed game overlay) ---------- */
.hud {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  display: flex; align-items: center; gap: 1rem;
  padding: 0.7rem clamp(0.9rem, 3vw, 1.6rem);
  background: linear-gradient(var(--bg-deep), oklch(0.11 0.016 275 / 0));
  backdrop-filter: blur(6px);
  transform: translateY(-110%);
  transition: transform .5s var(--ease);
}
.hud.show { transform: translateY(0); }

.hud-crest {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--display); font-weight: 700; letter-spacing: 0.12em;
  color: var(--ink); white-space: nowrap;
}
.hud-crest .sigil {
  width: 30px; height: 30px; display: grid; place-items: center;
  border: 1.5px solid var(--gold); border-radius: 50%;
  color: var(--gold); font-size: 0.85rem; box-shadow: var(--gold-glow);
}
.hud-crest small { color: var(--ink-mute); font-family: var(--body); font-weight: 400; letter-spacing: 0; }

.xp { flex: 1; min-width: 0; display: flex; align-items: center; gap: 0.7rem; }
.xp-level {
  font-family: var(--display); font-size: 0.74rem; letter-spacing: 0.18em;
  color: var(--gold); white-space: nowrap;
}
.xp-track {
  position: relative; flex: 1; height: 8px; border-radius: 99px;
  background: var(--panel); border: 1px solid var(--line); overflow: hidden;
}
.xp-fill {
  position: absolute; inset: 0; right: auto; width: 0%;
  background: linear-gradient(90deg, var(--bronze), var(--gold), var(--gold-bright));
  box-shadow: 0 0 12px var(--gold);
  transition: width .9s var(--ease);
}
.xp-pct { font-size: 0.72rem; color: var(--ink-mute); width: 3.4ch; text-align: right; }

.hud-actions { display: flex; align-items: center; gap: 0.5rem; }
.hud-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.42rem 0.7rem; border: 1px solid var(--line); border-radius: 99px;
  font-size: 0.78rem; color: var(--ink-soft); white-space: nowrap;
  transition: border-color .2s, color .2s, background-color .2s;
}
.hud-btn:hover { border-color: var(--gold); color: var(--gold); }
.hud-btn .ico { width: 16px; height: 16px; display: inline-grid; place-items: center; }
.hud-btn[data-on="true"] { border-color: var(--gold); color: var(--gold); }
@media (max-width: 720px) { .hud-btn .label { display: none; } .hud-crest small { display: none; } }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding: 6rem 1.2rem 4rem;
  overflow: hidden;
}
.hero-aura {
  position: absolute; left: 50%; top: 42%; translate: -50% -50%;
  width: min(86vw, 720px); aspect-ratio: 1; z-index: -1;
  background: radial-gradient(circle, oklch(0.83 0.14 86 / 0.16), transparent 62%);
  filter: blur(8px);
}
.hero-aura::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid oklch(0.83 0.14 86 / 0.22);
  mask: radial-gradient(circle, transparent 58%, #000 60%);
}
.hero-inner { max-width: 920px; }
.hero .kicker {
  font-family: var(--display); letter-spacing: 0.5em; text-transform: uppercase;
  color: var(--bronze); font-size: clamp(0.62rem, 2.4vw, 0.82rem); margin-bottom: 1.4rem;
}
.hero h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.7rem, 9vw, 6.4rem); line-height: 0.96;
  color: var(--ink); letter-spacing: 0.02em;
  text-shadow: 0 0 40px oklch(0.83 0.14 86 / 0.18);
}
.hero h1 .gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 55%, var(--bronze));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .role {
  margin-top: 1.1rem; font-family: var(--display); font-weight: 600;
  letter-spacing: 0.26em; text-transform: uppercase;
  font-size: clamp(0.8rem, 2.6vw, 1.05rem); color: var(--gold);
}
.hero .pitch {
  margin: 1.5rem auto 0; max-width: 52ch; color: var(--ink-soft);
  font-size: clamp(1rem, 2.5vw, 1.18rem);
}
.hero-cta { margin-top: 2.4rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  --bw: 1.5px;
  position: relative; display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 1.7rem; border-radius: 99px;
  font-family: var(--display); font-weight: 600; letter-spacing: 0.1em;
  font-size: 0.92rem; text-transform: uppercase;
  transition: transform .25s var(--ease), box-shadow .25s, background-color .25s, color .25s;
  will-change: transform;
}
.btn-primary {
  color: var(--bg-deep);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  box-shadow: var(--gold-glow);
}
.btn-primary:hover { box-shadow: 0 0 34px oklch(0.83 0.14 86 / 0.55); }
.btn-ghost { color: var(--ink); border: var(--bw) solid var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.scroll-hint {
  position: absolute; bottom: 1.6rem; left: 50%; translate: -50% 0;
  font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-mute); display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.scroll-hint .bead {
  width: 1px; height: 38px;
  background: linear-gradient(var(--gold), transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .scroll-hint .bead { animation: drip 2.2s var(--ease) infinite; }
  @keyframes drip { 0% { opacity: 0; transform: scaleY(0.2); transform-origin: top; }
    40% { opacity: 1; } 100% { opacity: 0; transform: scaleY(1); transform-origin: top; } }
}

/* ---------- 8. Realm section frame ---------- */
.realm { position: relative; padding: clamp(4rem, 11vh, 8rem) 0; }
.realm-head { display: flex; align-items: baseline; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.realm-numeral {
  font-family: var(--display); font-weight: 700; color: var(--bronze);
  font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1; opacity: 0.7;
}
.realm-head .titles { display: flex; flex-direction: column; gap: 0.5rem; }

/* reveal-on-scroll: end state is the base; we animate FROM hidden only when motion allowed */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal[data-delay="1"] { transition-delay: .08s; }
  .reveal[data-delay="2"] { transition-delay: .16s; }
  .reveal[data-delay="3"] { transition-delay: .24s; }
}

/* ---------- 9. Origin summary ---------- */
.origin-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 820px) { .origin-grid { grid-template-columns: 1fr; } }
.origin-lede { font-size: clamp(1.1rem, 2.5vw, 1.4rem); color: var(--ink); line-height: 1.5; }
.origin-lede b { color: var(--gold); font-weight: 600; }
.pillars { display: grid; gap: 0.8rem; }
.pillar {
  display: flex; gap: 0.9rem; padding: 0.9rem 1rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  transition: border-color .25s, transform .25s var(--ease), background-color .25s;
}
.pillar:hover { border-color: var(--gold); transform: translateX(4px); background: var(--panel-2); }
.pillar .rune { color: var(--gold); font-family: var(--display); font-weight: 700; }
.pillar h4 { font-size: 0.96rem; color: var(--ink); font-weight: 600; }
.pillar p { font-size: 0.85rem; color: var(--ink-mute); }

/* ---------- 10. Arsenal (skill bars) ---------- */
.arsenal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 2.2rem; }
@media (max-width: 760px) { .arsenal { grid-template-columns: 1fr; } }
.skill { padding: 0.4rem 0; }
.skill-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 0.5rem; }
.skill-name { font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 1rem; }
.skill-tools { font-size: 0.78rem; color: var(--ink-mute); }
.bar { height: 9px; border-radius: 99px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.bar > span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--bronze), var(--gold));
  border-radius: 99px; transition: width 1.1s var(--ease);
  box-shadow: 0 0 10px oklch(0.83 0.14 86 / 0.4);
}

/* ---------- 11. Chronicle (quest log) ---------- */
.chronicle { position: relative; display: grid; gap: 1.2rem; }
.quest {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: 18px; padding: clamp(1.2rem, 3vw, 1.9rem);
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.quest::before {
  content: ""; position: absolute; left: 0; top: 1.6rem; bottom: 1.6rem; width: 3px;
  border-radius: 3px; background: linear-gradient(var(--gold), transparent);
  opacity: 0.6;
}
.quest:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 18px 40px oklch(0.11 0.016 275 / 0.6); }
.quest-top { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: baseline; padding-left: 1.1rem; }
.quest-role { font-family: var(--display); font-weight: 700; color: var(--ink); font-size: clamp(1.05rem, 2.6vw, 1.35rem); }
.quest-org { color: var(--gold); font-weight: 500; }
.quest-when {
  font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute); border: 1px solid var(--line); border-radius: 99px; padding: 0.3rem 0.7rem; white-space: nowrap;
}
.quest-badge {
  display: inline-block; margin: 0.8rem 0 0 1.1rem; font-size: 0.74rem; color: var(--gold);
  font-family: var(--display); letter-spacing: 0.08em;
}
.quest ul { list-style: none; padding: 0.7rem 0 0 1.1rem; display: grid; gap: 0.55rem; }
.quest li { position: relative; padding-left: 1.5rem; font-size: 0.94rem; color: var(--ink-soft); }
.quest li::before { content: "◈"; position: absolute; left: 0; color: var(--bronze); font-size: 0.8rem; top: 0.15rem; }
.quest li b { color: var(--ink); font-weight: 600; }

/* ---------- 12. Hall of Creations (gallery) ---------- */
.reel {
  position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-deep); margin-bottom: 1.4rem;
}
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }
.tile {
  position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: var(--panel);
  display: flex; transition: border-color .3s, transform .3s var(--ease);
}
.tile:hover { border-color: var(--gold); transform: scale(1.015); }
.tile.wide { grid-column: span 2; aspect-ratio: 8 / 3; }
@media (max-width: 560px) { .tile.wide { grid-column: span 1; aspect-ratio: 4 / 3; } }

/* placeholder skin — clearly marked, never fake art */
.placeholder {
  flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0.55rem;
  text-align: center; padding: 1rem;
  background:
    repeating-linear-gradient(45deg, oklch(0.23 0.022 275 / 0.5) 0 10px, transparent 10px 20px);
  color: var(--ink-mute);
}
.placeholder .ph-ico { color: var(--bronze); }
.placeholder .ph-slot {
  font-family: var(--display); font-size: 0.74rem; letter-spacing: 0.12em; color: var(--gold);
  border: 1px dashed oklch(0.83 0.14 86 / 0.5); border-radius: 99px; padding: 0.2rem 0.6rem;
}
.placeholder .ph-desc { font-size: 0.82rem; max-width: 26ch; }
.placeholder .ph-hint { font-size: 0.7rem; color: var(--ink-mute); opacity: 0.8; }
.reel .placeholder .ph-slot { font-size: 0.82rem; }

/* --- live gallery tiles (real ArtStation / YouTube thumbnails) --- */
.tile {
  /* fallback bed shown if a remote thumbnail fails to load */
  background:
    radial-gradient(120% 90% at 50% 0%, oklch(0.26 0.03 275), var(--panel));
}
.tile-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform .5s var(--ease), filter .4s;
  filter: saturate(0.96) contrast(1.02);
}
.tile:hover .tile-img { transform: scale(1.07); filter: saturate(1.08) contrast(1.05); }
.tile-cap {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  display: flex; flex-direction: column; gap: 0.3rem;
  padding: 1.5rem 0.9rem 0.85rem;
  background: linear-gradient(oklch(0.11 0.016 275 / 0), oklch(0.10 0.016 275 / 0.55) 42%, oklch(0.08 0.014 275 / 0.9));
}
.tile-badge {
  align-self: flex-start;
  font-family: var(--display); font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
  border: 1px solid oklch(0.83 0.14 86 / 0.45); border-radius: 99px;
  padding: 0.15rem 0.55rem; background: oklch(0.11 0.016 275 / 0.5);
}
.tile-title {
  font-family: var(--display); font-weight: 600; font-size: 0.98rem;
  line-height: 1.15; color: var(--ink);
}
.tile-src {
  font-size: 0.68rem; letter-spacing: 0.06em; color: var(--ink-mute);
  opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s var(--ease);
}
.tile:hover .tile-src, .tile:focus-visible .tile-src { opacity: 1; transform: translateY(0); color: var(--gold); }

/* --- showreel: click-to-play facade --- */
.reel-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; display: block; }
.reel-poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .6s var(--ease), filter .4s;
  filter: saturate(0.94) contrast(1.03) brightness(0.82);
}
.reel-play:hover .reel-poster { transform: scale(1.04); filter: saturate(1.05) contrast(1.05) brightness(0.9); }
.reel-badge {
  position: absolute; top: 1rem; left: 1rem; z-index: 3;
  font-family: var(--display); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
  border: 1px solid oklch(0.83 0.14 86 / 0.5); border-radius: 99px;
  padding: 0.3rem 0.8rem; background: oklch(0.11 0.016 275 / 0.55); backdrop-filter: blur(4px);
}
.reel-cta {
  position: absolute; top: 50%; left: 50%; z-index: 3; transform: translate(-50%, -50%);
  width: clamp(64px, 9vw, 92px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--gold); color: var(--gold);
  background: oklch(0.11 0.016 275 / 0.4); box-shadow: var(--gold-glow);
  transition: transform .3s var(--ease), background-color .3s, color .3s;
}
.reel-ico { font-size: clamp(1.3rem, 3vw, 1.9rem); margin-left: 0.18em; }
.reel-play:hover .reel-cta { transform: translate(-50%, -50%) scale(1.08); background: oklch(0.83 0.14 86 / 0.16); color: var(--gold-bright); }
.reel-cap {
  position: absolute; inset: auto 0 0 0; z-index: 3;
  padding: 2.2rem 1.1rem 1rem; text-align: left;
  font-size: 0.86rem; color: var(--ink-soft);
  background: linear-gradient(oklch(0.10 0.016 275 / 0), oklch(0.08 0.014 275 / 0.85));
}
.reel iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (prefers-reduced-motion: no-preference) {
  .reel-cta { animation: reelPulse 2.6s var(--ease) infinite; }
  @keyframes reelPulse {
    0%, 100% { box-shadow: 0 0 0 0 oklch(0.83 0.14 86 / 0.4); }
    50% { box-shadow: 0 0 0 14px oklch(0.83 0.14 86 / 0); }
  }
}

/* ---------- 13. Trials & Lore ---------- */
.lore-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.4rem, 4vw, 2.6rem); }
@media (max-width: 820px) { .lore-grid { grid-template-columns: 1fr; } }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(1.3rem, 3vw, 1.9rem);
}
.card h3 { font-family: var(--display); color: var(--ink); font-size: 1.15rem; margin-bottom: 1rem; font-weight: 700; }
.degree { font-family: var(--display); color: var(--ink); font-size: 1.2rem; font-weight: 600; }
.degree-org { color: var(--gold); margin-top: 0.2rem; }
.degree-meta { color: var(--ink-mute); font-size: 0.86rem; margin-top: 0.3rem; }
.scholar {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1rem;
  font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.06em; color: var(--gold);
  border: 1px solid oklch(0.83 0.14 86 / 0.4); border-radius: 99px; padding: 0.4rem 0.9rem;
}
.lang { display: grid; gap: 0.9rem; }
.lang-row { display: grid; grid-template-columns: 7rem 1fr auto; align-items: center; gap: 0.8rem; }
.lang-row .lname { font-weight: 600; color: var(--ink); }
.lang-row .ldot { font-size: 0.78rem; color: var(--ink-mute); white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.4rem; }
.chip {
  font-size: 0.82rem; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 99px; padding: 0.42rem 0.9rem;
  transition: border-color .25s, color .25s, transform .25s var(--ease);
}
.chip:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* ---------- 14. Summon (contact) ---------- */
.summon { text-align: center; padding: clamp(4rem, 12vh, 9rem) 0; }
.summon h2 { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 7vw, 4rem); color: var(--ink); }
.summon .pitch { max-width: 54ch; margin: 1.2rem auto 0; color: var(--ink-soft); font-size: 1.08rem; }
.contact-row { display: flex; flex-wrap: wrap; gap: 1.4rem; justify-content: center; margin-top: 1.8rem; }
.contact-row a, .contact-row span {
  display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink-soft); font-size: 0.96rem;
}
.contact-row a:hover { color: var(--gold); }
.links { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-top: 2rem; }
.link-btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.8rem 1.3rem; border-radius: 99px; border: 1.5px solid var(--line);
  font-weight: 500; letter-spacing: 0.02em; transition: border-color .25s, color .25s, background-color .25s, transform .25s var(--ease);
}
.link-btn:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }
.link-btn[data-placeholder="true"] { border-style: dashed; color: var(--ink-mute); }
.link-btn[data-placeholder="true"]::after {
  content: "add link"; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); border: 1px solid oklch(0.83 0.14 86 / 0.5); border-radius: 99px; padding: 0.05rem 0.4rem;
}

/* ---------- 15. Achievement toast ---------- */
.toast-stack {
  position: fixed; right: clamp(0.8rem, 3vw, 1.6rem); bottom: clamp(0.8rem, 3vw, 1.6rem);
  z-index: 300; display: flex; flex-direction: column; gap: 0.6rem; pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 0.8rem;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--gold); border-radius: 14px; padding: 0.7rem 1rem;
  box-shadow: 0 14px 36px oklch(0.11 0.016 275 / 0.7), var(--gold-glow);
  transform: translateX(130%); opacity: 0; transition: transform .5s var(--ease), opacity .5s;
  min-width: 240px; max-width: 86vw;
}
.toast.show { transform: none; opacity: 1; }
.toast .medal {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center;
  border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold);
  font-family: var(--display); box-shadow: var(--gold-glow);
}
.toast .t-label { font-family: var(--display); font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.toast .t-name { color: var(--ink); font-weight: 600; font-size: 0.95rem; }

/* ---------- 16. Recruiter résumé overlay ---------- */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 400; background: oklch(0.08 0.01 275 / 0.78);
  backdrop-filter: blur(8px); display: grid; place-items: center; padding: 1.2rem;
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.sheet-backdrop.open { opacity: 1; visibility: visible; }
.sheet {
  width: min(760px, 100%); max-height: 88vh; overflow-y: auto;
  background: var(--bg); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(1.5rem, 4vw, 2.6rem); box-shadow: 0 30px 80px oklch(0.05 0.01 275 / 0.8);
  transform: translateY(16px) scale(0.98); transition: transform .35s var(--ease);
}
.sheet-backdrop.open .sheet { transform: none; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; margin-bottom: 1.2rem; }
.sheet-head h2 { font-family: var(--display); font-size: 1.7rem; color: var(--ink); }
.sheet-head .sub { color: var(--gold); font-size: 0.9rem; letter-spacing: 0.04em; }
.sheet-close { width: 40px; height: 40px; flex: none; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; transition: border-color .2s, color .2s; }
.sheet-close:hover { border-color: var(--gold); color: var(--gold); }
.sheet h4 { font-family: var(--display); color: var(--gold); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; margin: 1.4rem 0 0.6rem; }
.sheet p, .sheet li { color: var(--ink-soft); font-size: 0.92rem; }
.sheet ul { padding-left: 1.1rem; display: grid; gap: 0.3rem; }
.sheet .row { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.sheet .job { margin-bottom: 0.8rem; }
.sheet .job b { color: var(--ink); }
.sheet .job .meta { color: var(--ink-mute); font-size: 0.82rem; }

/* ---------- 17. Footer ---------- */
.foot { text-align: center; padding: 2.6rem 1rem 3.4rem; color: var(--ink-mute); font-size: 0.8rem; }
.foot .egg-hint { opacity: 0.55; font-size: 0.72rem; margin-top: 0.5rem; letter-spacing: 0.04em; }

/* Pandora's box — hidden gold sigil easter egg */
.pandora {
  position: fixed; bottom: 0.7rem; left: 0.8rem; z-index: 210;
  width: 26px; height: 26px; border-radius: 6px; opacity: 0.18;
  border: 1px solid var(--bronze); display: grid; place-items: center; color: var(--bronze);
  transition: opacity .3s, transform .3s var(--ease), color .3s;
}
.pandora:hover { opacity: 1; color: var(--gold); transform: rotate(-8deg) scale(1.1); }

/* gold rain canvas for Konami easter egg */
#goldrain { position: fixed; inset: 0; z-index: 350; pointer-events: none; }

/* utility */
.center { text-align: center; }
.mt-s { margin-top: 0.6rem; } .mt-m { margin-top: 1.2rem; } .mt-l { margin-top: 2.2rem; }
[hidden] { display: none !important; }
