/* =========================================================
   VATSAL.LOL — Portfolio
   Theme: Obsidian, Machined Steel & Tungsten Gold
   ========================================================= */

/* ---------------------------------------------------------
   LOCAL ASSET TITLE FONTS (Strict 5-Font Suite)
   All assets locally hosted in portfolio/assets/
   --------------------------------------------------------- */

/* 1. Oxanium */
@font-face {
  font-family: 'Oxanium';
  src: url('assets/Oxanium-VariableFont_wght.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* 2. JetBrains Mono */
@font-face {
  font-family: 'JetBrains Mono';
  src: url('assets/JetBrainsMono-Bold.woff2') format('woff2');
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
}

/* 3. Pixelify Sans */
@font-face {
  font-family: 'Pixelify Sans';
  src: url('assets/PixelifySans-VariableFont_wght%20(1).woff2') format('woff2'),
       url('assets/PixelifySans-VariableFont_wght (1).woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* 4. Syne */
@font-face {
  font-family: 'Syne';
  src: url('assets/Syne-VariableFont_wght.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

/* 5. Vatsal Logo Font */
@font-face {
  font-family: 'vatsallogofont';
  src: url('assets/vatsal-logo-font.woff2') format('woff2'),
       url('../assets/data/vatsal-logo-font.woff2') format('woff2'),
       url('/assets/data/vatsal-logo-font.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vatsal-logo';
  src: url('assets/vatsal-logo-font.woff2') format('woff2'),
       url('../assets/data/vatsal-logo-font.woff2') format('woff2'),
       url('/assets/data/vatsal-logo-font.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ---------------------------------------------------------
     OBSIDIAN & TUNGSTEN ACCENT PALETTE (Anti-Claude / Anti-Neon)
     --------------------------------------------------------- */
  --obsidian-black:   #090B0E;
  --steel-dark:       #11151B;
  --steel-border:     #1E2530;
  --titanium-white:   #EDEDF0;
  --slate-muted:      #818B99;
  --tungsten-gold:    #DDA135;
  --amber-glow:       rgba(221, 161, 53, 0.22);
  --steel-subtle:     #9CA5B4;

  /* ---------------------------------------------------------
     SEMANTIC COLOR TOKENS
     --------------------------------------------------------- */
  --bg:               var(--obsidian-black);
  --bg-alt:           var(--steel-dark);
  --bg-elevated:      #161B23;
  --card:             rgba(255, 255, 255, 0.025);
  --card-border:      rgba(255, 255, 255, 0.07);
  --border-hairline:  var(--steel-border);
  --text:             var(--titanium-white);
  --text-muted:       var(--slate-muted);
  --text-subtle:      var(--steel-subtle);
  --accent:           var(--tungsten-gold);

  /* Component stability aliases */
  --primary:          var(--tungsten-gold);
  --secondary:        var(--steel-subtle);
  --success:          #2ECC71;
  --gold:             var(--tungsten-gold);

  /* ---------------------------------------------------------
     TYPOGRAPHY FOUNDATIONS
     (Preserving editorial, mono, and body as established)
     --------------------------------------------------------- */
  --font-logo:        'vatsallogofont', 'Vatsal-logo', Didot, "Cinzel", Georgia, serif;
  --font-editorial:   Didot, "Bodoni MT", "Cinzel", "Playfair Display", Georgia, serif;
  --font-body:        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono:        ui-monospace, "SF Mono", "Cascadia Code", "Roboto Mono", Consolas, monospace;
  --font-display:     var(--font-mono);

  /* Fluid typography scale tokens */
  --fs-display:       clamp(3.5rem, 9vw, 8rem);
  --fs-h1:            clamp(2.4rem, 6vw, 4.4rem);
  --fs-h2:            clamp(1.8rem, 4vw, 3rem);
  --fs-h3:            clamp(1.2rem, 2.5vw, 1.8rem);
  --fs-body:          clamp(0.95rem, 1.1vw, 1.05rem);
  --fs-small:         clamp(0.8rem, 0.9vw, 0.875rem);
  --fs-meta:          clamp(0.7rem, 0.8vw, 0.75rem);

  /* ---------------------------------------------------------
     LAYOUT & TIMING
     --------------------------------------------------------- */
  --container:        1080px;
  --section-pad:      clamp(64px, 12vw, 140px);
  --ease:             cubic-bezier(0.16, 0.84, 0.36, 1);
  --ease-editorial:   cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- reset & base typography ---- */
*                { margin: 0; padding: 0; box-sizing: border-box; }
html             { scroll-behavior: smooth; }
body             {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img              { max-width: 100%; display: block; }
a                { color: inherit; }
::selection      { background: var(--tungsten-gold); color: #000; }
:focus-visible   { outline: 2px solid var(--tungsten-gold); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   SCROLL PROGRESS
   ========================================================= */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--steel-subtle), var(--tungsten-gold));
  z-index: 200; transition: width 0.1s linear;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.25s var(--ease-editorial), box-shadow 0.25s var(--ease-editorial), background 0.25s var(--ease-editorial), border-color 0.25s var(--ease-editorial), color 0.25s var(--ease-editorial);
}
.btn--primary {
  background: var(--tungsten-gold);
  color: #070809;
  border-color: var(--tungsten-gold);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px var(--amber-glow);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-hairline);
}
.btn--ghost:hover {
  border-color: var(--tungsten-gold);
  color: var(--tungsten-gold);
  transform: translateY(-2px);
}

/* =========================================================
   LAYOUT & REVEAL
   ========================================================= */
.section {
  position: relative; max-width: var(--container);
  margin: 0 auto; padding: var(--section-pad) 24px;
}
.section--alt { max-width: none; background: var(--bg-alt); }
.section--alt > * { max-width: var(--container); margin-left: auto; margin-right: auto; }

.eyebrow {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--steel-subtle); margin-bottom: 16px;
}
.eyebrow--center { text-align: center; }

.section__head h2 {
  font-family: var(--font-editorial);
  font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.1; color: var(--text);
}
.section__lede { margin-top: 16px; max-width: 56ch; color: var(--text-muted); font-size: 1.05rem; line-height: 1.65; }
.accent { color: var(--tungsten-gold); }

.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.8s var(--ease-editorial), transform 0.8s var(--ease-editorial);
  will-change: opacity, transform;
}
.reveal[data-reveal="left"]  { transform: translateX(-32px); }
.reveal[data-reveal="right"] { transform: translateX(32px); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   HERO — Focused Brand Title in vatsallogofont
   ========================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  padding: clamp(100px, 14vh, 160px) 24px clamp(64px, 8vh, 100px);
  background: radial-gradient(ellipse 70% 60% at 50% 25%, rgba(30, 37, 48, 0.5) 0%, var(--obsidian-black) 85%);
}

.hero__frame {
  position: absolute; inset: 24px; pointer-events: none;
  max-width: 1240px; margin: 0 auto;
}
.hero__frame-corner {
  position: absolute; font-family: var(--font-mono); font-size: 0.95rem;
  color: var(--border-hairline); line-height: 1; user-select: none;
}
.hero__frame-corner--tl { top: -6px; left: -6px; }
.hero__frame-corner--tr { top: -6px; right: -6px; }

.hero__inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  max-width: 880px; width: 100%;
}

/* Tactical Metadata Pill */
.hero__meta {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--steel-subtle);
  margin-bottom: clamp(24px, 4vh, 36px);
  padding: 6px 16px; border-radius: 999px;
  border: 1px solid var(--border-hairline); background: rgba(22, 27, 35, 0.45);
  animation: heroFade 0.9s var(--ease-editorial) both;
}
.hero__datum-sep { color: var(--border-hairline); }

/* =========================================================
   KINETIC MULTI-FONT TYPEWRITER TITLE
   ========================================================= */
.hero-name-typewriter {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.1;
  min-height: 1.2em; /* Keeps the line height stable so nothing jumps */
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px 0;
  text-transform: uppercase;
  animation: heroFade 0.9s var(--ease-editorial) 0.12s both;
}

/* Font 1: Oxanium */
.font-oxanium {
  font-family: 'Oxanium', sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #EDEDF0;
}

/* Font 2: JetBrains Mono */
.font-jetbrains {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #DDA135; /* Tungsten Amber */
}

/* Font 3: Pixelify Sans */
.font-pixelify {
  font-family: 'Pixelify Sans', sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #EDEDF0;
}

/* Font 4: Syne */
.font-syne {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #EDEDF0;
}

/* Font 5: vatsallogofont */
.font-vatsallogo {
  font-family: 'vatsallogofont', 'Vatsal-logo', sans-serif;
  font-weight: normal;
  letter-spacing: 0.04em;
  color: #EDEDF0;
}

/* Slim Amber Cursor */
.typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 0.9em;
  background-color: #DDA135;
  margin-left: 6px;
  animation: cursorBlink 0.8s steps(2, start) infinite;
}

@keyframes cursorBlink {
  to { visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .typewriter-cursor {
    animation: none;
  }
}

.hero__role {
  margin-top: clamp(24px, 3.5vh, 32px);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 38ch;
  animation: heroFade 0.9s var(--ease-editorial) 0.22s both;
}
.hero__sub {
  margin-top: 10px;
  font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.1em;
  color: var(--steel-subtle);
  animation: heroFade 0.9s var(--ease-editorial) 0.28s both;
}
.hero__sub .accent { color: var(--tungsten-gold); }

/* Precision Metrics Console */
.hero__stats {
  display: flex; align-items: center; gap: 32px;
  margin-top: clamp(32px, 5vh, 48px);
  padding: 16px 28px;
  border-radius: 12px;
  border: 1px solid var(--border-hairline);
  background: rgba(17, 21, 27, 0.5);
  animation: heroFade 0.9s var(--ease-editorial) 0.36s both;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat__num {
  font-family: var(--font-mono); font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700; color: var(--tungsten-gold); letter-spacing: -0.02em; line-height: 1;
}
.stat__label {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-muted);
}
.stat__divider { width: 1px; height: 36px; background: var(--border-hairline); }

.hero__actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
  margin-top: clamp(32px, 5vh, 44px);
  animation: heroFade 0.9s var(--ease-editorial) 0.44s both;
}

.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 36px; border: 1px solid var(--border-hairline);
  border-radius: 12px; z-index: 1; display: flex; justify-content: center; padding-top: 6px;
  transition: border-color 0.3s;
}
.hero__scroll:hover { border-color: var(--tungsten-gold); }
.hero__scroll-indicator {
  width: 3px; height: 8px; border-radius: 2px;
  background: var(--tungsten-gold);
  animation: scrollIndicator 2s ease-in-out infinite;
}
@keyframes scrollIndicator {
  0%   { transform: translateY(0); opacity: 1; }
  60%  { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}
@keyframes heroFade {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* =========================================================
   JOURNEY — Two-Column Precision Chronicle Layout
   ========================================================= */
.section--journey {
  max-width: none;
  background: var(--obsidian-black);
  padding: 0;
  display: grid;
  grid-template-columns: 320px 1fr;
  align-items: start;
  gap: 0;
  border-top: 1px solid var(--border-hairline);
}

.journey-map {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: clamp(48px, 8vw, 88px) 36px clamp(48px, 8vw, 88px) clamp(24px, 4vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--border-hairline);
  background: var(--obsidian-black);
  z-index: 10;
}
.journey-map__head { margin-bottom: 32px; }
.journey-map__head .eyebrow { margin-bottom: 6px; }
.journey-map__title {
  font-family: var(--font-editorial);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.jmap { display: flex; flex-direction: column; }

.jmap__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.3s;
}
.jmap__item:focus-visible {
  outline: 2px solid var(--tungsten-gold);
  outline-offset: 4px;
  border-radius: 4px;
}

.jmap__index {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--steel-subtle);
  margin-top: 4px;
  width: 18px;
  flex-shrink: 0;
}

.jmap__dot {
  flex-shrink: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid var(--border-hairline);
  background: transparent;
  margin-top: 5px;
  transition: border-color 0.4s var(--ease-editorial), background 0.4s var(--ease-editorial), box-shadow 0.4s var(--ease-editorial);
}

.jmap__meta { display: flex; flex-direction: column; }
.jmap__year {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.18em;
  color: var(--steel-subtle); margin-bottom: 2px; opacity: 0.5;
  transition: opacity 0.4s, color 0.4s;
}
.jmap__label {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em;
  color: var(--text-muted); line-height: 1.35;
  transition: color 0.4s var(--ease-editorial);
}

.jmap__line {
  width: 2px; height: 28px; margin-left: 34px;
  background: var(--border-hairline);
  position: relative; overflow: hidden;
}
.jmap__line::after {
  content: ""; position: absolute; inset: 0;
  background: var(--tungsten-gold);
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.5s var(--ease-editorial);
}

/* States */
.jmap__item[data-state="completed"] .jmap__dot {
  background: var(--steel-subtle);
  border-color: var(--steel-subtle);
}
.jmap__item[data-state="completed"] ~ .jmap__line::after { transform: scaleY(1); }
.jmap__item[data-state="completed"] .jmap__year { opacity: 0.8; color: var(--steel-subtle); }
.jmap__item[data-state="completed"] .jmap__label { color: var(--text-muted); }

.jmap__item[data-state="active"] .jmap__dot {
  background: var(--tungsten-gold);
  border-color: var(--tungsten-gold);
  box-shadow: 0 0 0 4px var(--amber-glow);
}
.jmap__item[data-state="active"] .jmap__year { opacity: 1; color: var(--tungsten-gold); }
.jmap__item[data-state="active"] .jmap__label { color: var(--text); font-weight: 600; }

.story {
  display: flex; flex-direction: column;
  padding: 0 clamp(24px, 6vw, 96px);
}

.story-panel {
  min-height: 85vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(60px, 10vh, 120px) 0;
  border-bottom: 1px solid var(--border-hairline);
  opacity: 0.35;
  transform: translateY(12px);
  transition: opacity 0.6s var(--ease-editorial), transform 0.6s var(--ease-editorial);
}
.story-panel:last-child { border-bottom: none; }
.story-panel.is-active { opacity: 1; transform: none; }

.story-panel__meta {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 20px;
}
.story-panel__step {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--steel-subtle);
}
.story-panel__year {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--tungsten-gold);
}
.story-panel__title {
  font-family: var(--font-editorial);
  font-size: clamp(2.2rem, 4.8vw, 4.2rem);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.08;
  max-width: 16ch; color: var(--text);
}
.story-panel__text {
  margin-top: 24px; max-width: 48ch;
  color: var(--text-muted); font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.7;
}

/* =========================================================
   CHIP GRID
   ========================================================= */
.chip-grid { list-style:none; display:flex; flex-wrap:wrap; gap:12px; margin-top:40px; }
.chip {
  font-family:var(--font-display); font-size:.8rem; letter-spacing:.04em;
  padding:10px 18px; border-radius:999px;
  background:var(--card); border:1px solid var(--card-border); color:var(--text-muted);
  transition:color .25s, border-color .25s;
}
.chip:hover { color:var(--tungsten-gold); border-color:rgba(221, 161, 53, 0.4); }

/* =========================================================
   TURNING POINT — Cinematic Transition
   ========================================================= */
.turning { position:relative; height:260vh; }

.section--turning {
  position:sticky; top:0;
  max-width:none; height:100vh;
  display:flex; align-items:center; justify-content:center; text-align:center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(221, 161, 53, 0.06), transparent 75%),
    var(--bg);
  overflow:hidden;
}

.turning__scene { position:relative; z-index:1; }

.turning__line {
  display:block;
  font-size:clamp(2rem,8vw,5rem);
  font-weight:800; letter-spacing:-.03em; line-height:1.25;
  transition:opacity .6s var(--ease),transform .6s var(--ease),filter .6s var(--ease);
}

.turning__line--1 {
  color:var(--text-muted);
  opacity:0; transform:translateY(32px); filter:blur(6px);
}
.turning__line--2 {
  background:linear-gradient(90deg, var(--tungsten-gold), var(--titanium-white));
  -webkit-background-clip:text; background-clip:text; color:transparent;
  opacity:0; transform:translateY(48px); filter:blur(10px);
  margin-top:8px;
}

.turning__line--1.t-show { opacity:1; transform:none; filter:blur(0); }
.turning__line--1.t-exit { opacity:0; transform:translateY(-24px); filter:blur(4px); }
.turning__line--2.t-show { opacity:1; transform:none; filter:blur(0); }

/* =========================================================
   SKILL TREE
   ========================================================= */
.skilltree { margin-top:56px; display:flex; flex-direction:column; align-items:center; }
.skilltree__node {
  display:flex; align-items:center; gap:14px;
  width:min(100%,420px); padding:18px 24px;
  border-radius:14px; background:var(--card); border:1px solid var(--card-border);
  font-family:var(--font-display); font-size:.9rem; letter-spacing:.04em; color:var(--text-muted);
  transition:color .5s var(--ease),border-color .5s var(--ease),background .5s var(--ease),box-shadow .5s var(--ease),transform .5s var(--ease);
}
.skilltree__icon { font-size:1.3rem; filter:grayscale(1) opacity(.4); transition:filter .5s var(--ease); }
.skilltree__node.is-active { 
  color:var(--text); 
  border-color:rgba(221, 161, 53, 0.4); 
  background:rgba(221, 161, 53, 0.04); 
  box-shadow:0 0 28px -12px var(--amber-glow); 
  transform:scale(1.02); 
}
.skilltree__node.is-active .skilltree__icon { filter:none; }
.skilltree__node--final.is-active { 
  border-color:rgba(255, 255, 255, 0.35); 
  background:rgba(255, 255, 255, 0.05); 
  box-shadow:0 0 32px -10px rgba(255, 255, 255, 0.15); 
}
.skilltree__link { width:1px; height:36px; background:var(--card-border); position:relative; overflow:hidden; }
.skilltree__link::after { 
  content:""; position:absolute; inset:0; 
  background:linear-gradient(to bottom, var(--tungsten-gold), var(--steel-subtle)); 
  transform:scaleY(0); transform-origin:top; transition:transform .6s var(--ease); 
}
.skilltree__link.is-active::after { transform:scaleY(1); }

/* =========================================================
   VATSAL.LOL ORB
   ========================================================= */
.lol__grid { display:grid; grid-template-columns:1fr; gap:48px; align-items:center; }
.lol__text h2 { font-size:clamp(1.8rem,5vw,2.6rem); font-weight:700; line-height:1.25; margin-bottom:8px; }
.lol__visual { display:flex; align-items:center; justify-content:center; min-height:220px; }
.lol__orb { position:relative; width:200px; height:200px; display:flex; align-items:center; justify-content:center; }
.lol__orb-ring { position:absolute; inset:0; border-radius:50%; border:1px solid rgba(221, 161, 53, 0.25); }
.lol__orb-ring--1 { animation:orbitSpin 16s linear infinite; }
.lol__orb-ring--2 { inset:24px; border-color:rgba(156, 165, 180, 0.3); animation:orbitSpin 22s linear infinite reverse; }
.lol__orb-ring--3 { inset:48px; border-color:rgba(255, 255, 255, 0.12); animation:orbitSpin 30s linear infinite; }
.lol__orb-core { 
  font-family:var(--font-display); font-weight:700; font-size:1.4rem; letter-spacing:.04em; 
  background:linear-gradient(135deg, var(--tungsten-gold), var(--titanium-white)); 
  -webkit-background-clip:text; background-clip:text; color:transparent; 
}
@keyframes orbitSpin { to{transform:rotate(360deg)} }

/* =========================================================
   GAME LIBRARY (Data & JS Untouched)
   ========================================================= */
.games-grid {
  margin-top:48px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}

.game-card {
  position:relative;
  aspect-ratio:16/9;
  border-radius:14px;
  overflow:hidden;
  background:var(--bg-elevated);
  border:1px solid var(--card-border);
  cursor:pointer;
  transition:transform .35s var(--ease),box-shadow .35s var(--ease),border-color .35s var(--ease);
  text-decoration:none;
  display:block;
}
.game-card:hover {
  transform:translateY(-6px) scale(1.02);
  box-shadow:0 20px 40px -16px var(--amber-glow);
  border-color:rgba(221, 161, 53, 0.4);
}
.game-card__thumb {
  width:100%; height:100%; object-fit:cover; display:block;
  transition:transform .4s var(--ease);
}
.game-card:hover .game-card__thumb { transform:scale(1.05); }

.game-card__fallback {
  width:100%; height:100%;
  background:linear-gradient(
    135deg,
    hsl(var(--hue, 45) 30% 20% / .8),
    hsl(calc(var(--hue, 45) + 30) 20% 12% / .9)
  );
  display:flex; align-items:center; justify-content:center;
  position:relative;
}
.game-card__fallback::after {
  content:"";
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);
  background-size:20px 20px;
}
.game-card__fallback-emoji { font-size:2.4rem; z-index:1; }

.game-card__overlay {
  position:absolute; inset:0;
  background:linear-gradient(to top, rgba(7, 9, 12, 0.95) 0%, rgba(7, 9, 12, 0.4) 50%, transparent 100%);
  display:flex; flex-direction:column; justify-content:flex-end;
  padding:16px;
  opacity:0;
  transition:opacity .3s var(--ease);
}
.game-card:hover .game-card__overlay,
.game-card:focus-visible .game-card__overlay { opacity:1; }

@media (hover:none) { .game-card__overlay { opacity:1; } }

.game-card__title {
  font-family:var(--font-display); font-size:.9rem; font-weight:700;
  letter-spacing:.04em; color:var(--text);
}

.games-more {
  margin-top:32px; display:flex; flex-direction:column; align-items:center; gap:16px;
  text-align:center; padding:32px 24px; border-radius:16px;
  background:var(--card); border:1px dashed var(--card-border);
}
.games-more__count {
  font-family:var(--font-display); font-size:1.1rem; font-weight:700; letter-spacing:.04em;
  background:linear-gradient(90deg, var(--tungsten-gold), var(--steel-subtle));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}

/* =========================================================
   ACHIEVEMENTS
   ========================================================= */
.achievements-grid {
  list-style:none; margin-top:48px;
  display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:16px;
}
.achievement {
  display:grid; grid-template-columns:72px 1fr; gap:16px; align-items:center;
  padding:22px 20px; border-radius:16px;
  background:var(--card); border:1px solid var(--card-border);
  position:relative; overflow:hidden;
  transition:transform .3s var(--ease),border-color .3s var(--ease),box-shadow .3s var(--ease);
}
.achievement::before {
  content:""; position:absolute; inset:0;
  background:linear-gradient(135deg, rgba(221, 161, 53, 0.04), transparent 60%);
  pointer-events:none;
}
.achievement:hover {
  transform:translateY(-3px);
  border-color:rgba(221, 161, 53, 0.35);
  box-shadow:0 12px 32px -16px var(--amber-glow);
}

.achievement:last-child::before { background:linear-gradient(135deg, rgba(221, 161, 53, 0.08), transparent 60%); }
.achievement:last-child:hover { border-color:var(--tungsten-gold); box-shadow:0 12px 32px -16px var(--amber-glow); }

.achievement__badge {
  width:64px; height:64px; border-radius:14px;
  background:rgba(255, 255, 255, 0.03);
  border:1px solid rgba(255, 255, 255, 0.08);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.achievement__badge--gold {
  background:rgba(221, 161, 53, 0.08);
  border-color:rgba(221, 161, 53, 0.35);
  box-shadow:0 0 20px -8px var(--amber-glow);
}
.achievement__icon { font-size:1.8rem; }

.achievement__body { display:flex; flex-direction:column; gap:4px; }
.achievement__unlocked {
  font-family:var(--font-display); font-size:.65rem;
  letter-spacing:.2em; text-transform:uppercase; color:var(--tungsten-gold);
}
.achievement:last-child .achievement__unlocked { color:var(--tungsten-gold); }
.achievement__title { font-size:.95rem; font-weight:700; color:var(--text); }
.achievement__desc  { font-size:.82rem; color:var(--text-muted); line-height:1.4; }

/* =========================================================
   SKILLS DOSSIER
   ========================================================= */
.skills-dossier {
  margin-top: 36px;
  background: var(--obsidian-black);
  border: 1px solid var(--border-hairline);
  border-radius: 14px;
  padding: clamp(24px, 4vw, 36px) clamp(20px, 3.5vw, 32px);
}
.skills-dossier__head {
  margin-bottom: 24px;
}
.skills-dossier__badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tungsten-gold);
  display: block;
  margin-bottom: 6px;
}
.skills-dossier__title {
  font-family: var(--font-editorial);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.skill-card {
  background: rgba(17, 21, 27, 0.4);
  border: 1px solid var(--border-hairline);
  border-radius: 10px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.25s var(--ease-editorial), background 0.25s var(--ease-editorial);
}
.skill-card:hover {
  border-color: var(--steel-subtle);
  background: rgba(22, 27, 35, 0.55);
}
.skill-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.skill-card__icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--steel-subtle);
  flex-shrink: 0;
}
.skill-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.01em;
}
.skill-card__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 5px;
  background: rgba(9, 11, 14, 0.9);
  border: 1px solid var(--border-hairline);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text);
  line-height: 1;
}
.tech-badge svg {
  flex-shrink: 0;
}
.skill-card__items {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* =========================================================
   ACCORDION
   ========================================================= */
.accordion { margin-top:48px; display:flex; flex-direction:column; gap:12px; }
.accordion__item { border:1px solid var(--card-border); border-radius:14px; background:var(--card); overflow:hidden; }
.accordion__trigger {
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:20px 24px; background:none; border:none; color:var(--text);
  font-family:var(--font-display); font-size:.95rem; font-weight:700;
  letter-spacing:.04em; text-transform:uppercase; cursor:pointer; text-align:left;
}
.accordion__icon { position:relative; width:16px; height:16px; flex-shrink:0; }
.accordion__icon::before,.accordion__icon::after { content:""; position:absolute; background:var(--tungsten-gold); border-radius:1px; transition:transform .3s var(--ease); }
.accordion__icon::before { width:16px; height:2px; top:7px; left:0; }
.accordion__icon::after  { width:2px; height:16px; top:0;  left:7px; }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { transform:rotate(90deg); opacity:0; }
.accordion__panel { max-height:0; overflow:hidden; transition:max-height .4s var(--ease); }
.accordion__panel-inner { padding:0 24px 24px; display:flex; flex-direction:column; gap:20px; }
.accordion__entry h4 { font-size:1rem; font-weight:700; margin-bottom:4px; }
.accordion__meta { font-family:var(--font-display); font-size:.72rem; letter-spacing:.06em; color:var(--tungsten-gold); margin-bottom:6px; text-transform:uppercase; }
.accordion__entry p { color:var(--text-muted); font-size:.92rem; }

/* =========================================================
   PHILOSOPHY
   ========================================================= */
.section--philosophy {
  max-width:none; text-align:center;
  background:radial-gradient(ellipse 70% 50% at 50% 50%, rgba(221, 161, 53, 0.05), transparent 75%), var(--bg);
}
.philosophy { display:flex; flex-direction:column; gap:10px; }
.philosophy__line { font-size:clamp(1.3rem,5vw,2.1rem); font-weight:700; color:var(--text-muted); letter-spacing:-.01em; }
.philosophy__line:nth-child(2) { color:var(--text); }
.philosophy__line:nth-child(3) { 
  background:linear-gradient(90deg, var(--tungsten-gold), var(--titanium-white)); 
  -webkit-background-clip:text; background-clip:text; color:transparent; 
}

/* =========================================================
   FOOTER + CONNECT ICONS
   ========================================================= */
.footer { max-width:none; background:var(--bg-alt); border-top:1px solid var(--border-hairline); padding:var(--section-pad) 24px 48px; }
.footer__inner { max-width:var(--container); margin:0 auto; text-align:center; }
.footer__inner h2 { font-size:clamp(1.8rem,5vw,2.6rem); font-weight:700; margin-bottom:40px; }

.connect-icons { display:flex; align-items:center; justify-content:center; gap:16px; flex-wrap:wrap; }

.connect-btn {
  width:56px; height:56px; border-radius:50%;
  background:var(--card); border:1px solid var(--card-border);
  display:flex; align-items:center; justify-content:center;
  text-decoration:none; color:var(--text-muted);
  transition:color .25s,border-color .25s,transform .25s,box-shadow .25s;
}
.connect-btn svg { width:22px; height:22px; }
.connect-btn:hover {
  color:var(--tungsten-gold);
  border-color:rgba(221, 161, 53, 0.4);
  transform:translateY(-3px);
  box-shadow:0 0 20px -6px var(--amber-glow);
}

.footer__bottom { margin-top:56px; display:flex; flex-direction:column; align-items:center; gap:8px; }
.footer__home { 
  font-family:var(--font-display); font-weight:700; font-size:1rem; letter-spacing:.1em; text-decoration:none; 
  background:linear-gradient(90deg, var(--tungsten-gold), var(--steel-subtle)); 
  -webkit-background-clip:text; background-clip:text; color:transparent; 
}
.footer__copy { font-size:.8rem; color:var(--text-muted); }

/* =========================================================
   RESPONSIVE — MOBILE SPINE TIMELINE
   ========================================================= */
@media (min-width:760px) {
  .lol__grid { grid-template-columns:1.1fr 1fr; }
  .skilltree__node { font-size:1rem; padding:22px 32px; }
}

@media (max-width:900px) {
  /* Stack journey vertically as a single fluid section */
  .section--journey {
    display: flex;
    flex-direction: column;
    padding: clamp(48px, 8vw, 80px) 20px;
    border-top: 1px solid var(--border-hairline);
  }

  /* Compact section header */
  .journey-map {
    position: static;
    height: auto;
    padding: 0 0 32px 0;
    border-right: none;
    border-bottom: none;
    background: transparent;
  }
  .journey-map__head { margin-bottom: 0; }
  .journey-map__title { font-size: 1.8rem; line-height: 1.15; }
  
  /* Hide the desktop button column on mobile */
  .journey-map .jmap {
    display: none;
  }

  /* Connected Storyline Stream */
  .story {
    display: flex;
    flex-direction: column;
    padding: 0;
    position: relative;
    /* Continuous vertical line spine */
    border-left: 2px solid var(--border-hairline);
    margin-left: 12px;
  }

  .story-panel {
    min-height: auto;
    padding: 0 0 44px 28px;
    border-bottom: none;
    opacity: 0.4;
    transform: none;
    position: relative;
    transition: opacity 0.4s var(--ease-editorial);
  }

  .story-panel:last-child {
    padding-bottom: 0;
  }

  /* Glowing node bullet on the vertical spine */
  .story-panel::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--obsidian-black);
    border: 2px solid var(--border-hairline);
    transition: border-color 0.4s var(--ease-editorial), background 0.4s var(--ease-editorial), box-shadow 0.4s var(--ease-editorial);
  }

  /* Active panel state: highlights and illuminates node */
  .story-panel.is-active {
    opacity: 1;
  }

  .story-panel.is-active::before {
    background: var(--tungsten-gold);
    border-color: var(--tungsten-gold);
    box-shadow: 0 0 16px 2px var(--amber-glow);
  }

  .story-panel__meta {
    margin-bottom: 12px;
    gap: 12px;
  }

  .story-panel__step {
    font-size: 0.7rem;
    color: var(--steel-subtle);
  }

  .story-panel__year {
    font-size: 0.74rem;
    font-weight: 700;
  }

  .story-panel__title {
    font-size: clamp(1.4rem, 4.8vw, 1.9rem);
    line-height: 1.18;
    max-width: 100%;
  }

  .story-panel__text {
    margin-top: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 100%;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }
  .skills-dossier {
    padding: 24px 18px;
  }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width:540px) {
  .hero__meta { flex-wrap: wrap; justify-content: center; gap: 6px; font-size: 0.65rem; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; }
  .hero__stats { gap: 20px; padding: 14px 20px; }
  .story-panel__title { max-width: 100%; }
  .games-grid { grid-template-columns: 1fr; }
  .achievements-grid { grid-template-columns: 1fr; }
}
