/* ==========================================================================
   Zakria · @aiandzakria — site styles
   ========================================================================== */

:root {
  --ink: #141414;
  --paper: #F6F5F0;
  --yellow: #FFD60A;
  --yellow-deep: #C9A700;
  --line: #DEDCD4;
  --link: #0B57D0;

  --bg: var(--paper);
  --bg-2: #EEECE4;
  --card: #FFFFFF;
  --text: var(--ink);
  --muted: #55534D;
  --border: var(--line);
  --edge: var(--ink);             /* the "extruded" 3D edge colour */
  --glass: rgba(255, 255, 255, .72);
  --code-bg: #EFEDE6;
  --shadow: 0 18px 40px -18px rgba(20, 20, 20, .28);

  --radius: 18px;
  --radius-sm: 12px;
  --max: 1180px;
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

:root[data-theme="dark"] {
  --bg: #0D0D0D;
  --bg-2: #151515;
  --card: #1B1B1A;
  --text: #F6F5F0;
  --muted: #B3B0A6;
  --border: #2F2E2B;
  --edge: #000000;
  --link: #8AB4FF;
  --glass: rgba(27, 27, 26, .72);
  --code-bg: #232321;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .8);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D0D0D;
    --bg-2: #151515;
    --card: #1B1B1A;
    --text: #F6F5F0;
    --muted: #B3B0A6;
    --border: #2F2E2B;
    --edge: #000000;
    --link: #8AB4FF;
    --glass: rgba(27, 27, 26, .72);
    --code-bg: #232321;
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, .8);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--font-body);
  overflow-x: hidden;
  transition: background .3s, color .3s;
}
img, svg, video, canvas { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-weight: 900; font-size: clamp(2.3rem, 6vw, 4.6rem); }
h2 { font-weight: 900; font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-weight: 800; font-size: 1.25rem; }
p { margin: 0 0 1em; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section.tight { padding: 56px 0; }
.alt { background: var(--bg-2); }
.center { text-align: center; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }

/* heading with thick yellow underline */
.h-line { display: inline-block; position: relative; z-index: 0; }
.h-line::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: .06em; height: .32em;
  background: var(--yellow); z-index: -1; border-radius: 3px; transform: skewX(-8deg);
}
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font: 800 .78rem/1 var(--font-head); letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.kicker::before { content: ""; width: 22px; height: 4px; background: var(--yellow); border-radius: 2px; }
.pill {
  display: inline-block; background: var(--yellow); color: var(--ink);
  padding: 0 .35em; border-radius: .3em; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 60ch; }

/* ---------- buttons (3D press) ---------- */
.btn {
  --btn-bg: var(--yellow); --btn-fg: var(--ink); --btn-edge: var(--yellow-deep);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 14px; border: 2px solid var(--ink);
  background: var(--btn-bg); color: var(--btn-fg);
  font: 800 .98rem/1.1 var(--font-head); text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 0 var(--ink); transform: translateY(0);
  transition: transform .12s ease, box-shadow .12s ease, background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--ink); text-decoration: none; }
.btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--ink); }
.btn.ghost { --btn-bg: transparent; --btn-fg: currentColor; border-color: currentColor; box-shadow: 0 6px 0 currentColor; }
.btn.dark { --btn-bg: var(--ink); --btn-fg: var(--paper); box-shadow: 0 6px 0 var(--yellow); border-color: var(--ink); }
.btn.small { min-height: 40px; padding: 8px 14px; font-size: .86rem; border-radius: 11px; box-shadow: 0 4px 0 var(--ink); }
.btn.small:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .btn.ghost, .dark-block .btn.ghost { color: var(--paper); }
.arrow { transition: transform .2s; }
a:hover .arrow, button:hover .arrow { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 18px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 900 1.12rem/1 var(--font-head); letter-spacing: -.02em; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; background: var(--yellow); color: var(--ink);
  display: grid; place-items: center; border: 2px solid var(--ink); box-shadow: 0 4px 0 var(--ink);
  font-weight: 900; transform: rotate(-6deg); transition: transform .3s;
}
.brand:hover .brand-mark { transform: rotate(6deg) scale(1.05); }
.brand small { display: block; font: 600 .72rem/1.2 var(--font-body); color: var(--muted); letter-spacing: 0; margin-top: 3px; }
.nav-links { display: flex; gap: 2px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a {
  display: block; padding: 9px 11px; border-radius: 10px; color: var(--text);
  text-decoration: none; font: 700 .9rem/1 var(--font-head);
}
.nav-links a:hover { background: var(--bg-2); }
.nav-links a[aria-current="page"] { background: var(--yellow); color: var(--ink); }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--border);
  background: var(--card); color: var(--text); display: grid; place-items: center; cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.icon-btn:hover { border-color: var(--text); transform: translateY(-1px); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
.menu-btn { display: none; }
.mobile-menu { display: none; }

@media (max-width: 1080px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: grid; }
  .nav-tools { margin-left: auto; }
  .mobile-menu {
    display: block; position: fixed; inset: 70px 0 0; z-index: 49; background: var(--bg);
    padding: 20px 16px 40px; overflow-y: auto;
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .25s;
  }
  .menu-open .mobile-menu { transform: none; opacity: 1; visibility: visible; }
  .mobile-menu a.m-link {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 4px; border-bottom: 1px solid var(--border);
    color: var(--text); text-decoration: none; font: 800 1.3rem/1.2 var(--font-head);
  }
  .mobile-menu a.m-link[aria-current="page"] { color: var(--ink); background: var(--yellow); padding-inline: 12px; border-radius: 10px; }
  .mobile-menu .btn { width: 100%; margin-top: 22px; }
  .mobile-menu .socials { margin-top: 24px; }
}

/* ---------- 3D hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(1200px 600px at 75% 30%, #2a2508 0%, #141414 55%) , #141414;
  color: var(--paper);
  min-height: min(92vh, 860px); display: flex; align-items: center;
}
.hero.page-hero { min-height: 0; padding: 120px 0 90px; }
.hero canvas.three { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after { /* soft fade at the bottom */
  content: ""; position: absolute; inset: auto 0 0; height: 120px; z-index: -1;
  background: linear-gradient(transparent, rgba(20,20,20,.65));
}
.hero .wrap { position: relative; padding: 90px 0; }
.hero-copy { max-width: 720px; }
.hero h1 { color: var(--paper); text-shadow: 0 10px 40px rgba(0,0,0,.5); }
.hero h1 .y { color: var(--yellow); }
.hero .label {
  display: inline-flex; gap: 10px; align-items: center; padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 214, 10, .12); border: 1px solid rgba(255, 214, 10, .4); color: var(--yellow);
  font: 800 .74rem/1.2 var(--font-head); letter-spacing: .14em; margin-bottom: 26px;
}
.hero .label i { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 0 rgba(255,214,10,.7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(255,214,10,0); } 100% { box-shadow: 0 0 0 0 rgba(255,214,10,0); } }
.hero .tagline { font-size: clamp(1.05rem, 1.7vw, 1.28rem); color: #D9D6CC; max-width: 34em; margin: 22px 0 34px; }
.hero .tagline b { display: block; color: var(--yellow); font: 800 .95rem/1.6 var(--font-head); letter-spacing: .04em; margin-top: 8px; }
.hero-fallback { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-fallback span {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: drift 14s ease-in-out infinite alternate;
}
.hero-fallback span:nth-child(1) { width: 420px; height: 420px; background: #FFD60A; right: 6%; top: 12%; opacity: .25; }
.hero-fallback span:nth-child(2) { width: 300px; height: 300px; background: #0B57D0; right: 30%; bottom: -60px; opacity: .2; animation-delay: -5s; }
@keyframes drift { to { transform: translate(-40px, 30px) scale(1.1); } }
.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2;
  width: 28px; height: 46px; border: 2px solid rgba(246,245,240,.5); border-radius: 20px;
}
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 9px; width: 4px; height: 9px; margin-left: -2px; border-radius: 2px; background: var(--yellow); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
.page-hero .crumbs { font: 700 .82rem/1 var(--font-head); color: #BDB9AE; margin-bottom: 18px; letter-spacing: .04em; }
.page-hero .crumbs a { color: var(--yellow); text-decoration: none; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.8rem); }
.page-hero .lead { color: #D9D6CC; }

/* credibility strip */
.cred {
  background: var(--yellow); color: var(--ink); border-block: 2px solid var(--ink);
  overflow: hidden; white-space: nowrap; font: 800 .95rem/1 var(--font-head);
}
.cred-track { display: inline-flex; gap: 48px; padding: 18px 0; animation: marquee 38s linear infinite; }
.cred-track span::before { content: "✦"; margin-right: 48px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 3D tilt cards ---------- */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1000px) { .g4, .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4, .g5 { grid-template-columns: 1fr; } }

.tilt { perspective: 900px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 2px solid var(--edge); border-radius: var(--radius);
  padding: 26px; color: var(--text); text-decoration: none;
  box-shadow: 0 8px 0 var(--edge), var(--shadow);
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0));
  transition: transform .18s ease-out, box-shadow .2s;
  will-change: transform;
}
a.card:hover, .card.hoverable:hover { --lift: -6px; box-shadow: 0 14px 0 var(--edge), var(--shadow); text-decoration: none; }
.card > * { transform: translateZ(18px); }
.card .glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; transform: translateZ(1px);
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.35), transparent 55%);
  opacity: 0; transition: opacity .25s;
}
:root[data-theme="dark"] .card .glare { background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255,214,10,.14), transparent 55%); }
.card:hover .glare { opacity: 1; }
.card h3 { margin-top: 4px; }
.card p { color: var(--muted); margin-bottom: 0; }
.card .go { margin-top: auto; padding-top: 18px; font: 800 .92rem/1 var(--font-head); color: var(--text); display: flex; align-items: center; gap: 8px; }
.card .go svg { width: 22px; height: 22px; background: var(--yellow); border-radius: 50%; padding: 4px; border: 2px solid var(--ink); color: var(--ink); }
.ico3d {
  width: 64px; height: 64px; border-radius: 18px; margin-bottom: 18px;
  display: grid; place-items: center; font-size: 30px;
  background: linear-gradient(145deg, #FFE45C, #FFD60A 45%, #D9B400);
  border: 2px solid var(--ink); box-shadow: 0 6px 0 var(--ink), inset 0 -6px 10px rgba(0,0,0,.12), inset 0 6px 10px rgba(255,255,255,.5);
  transform: translateZ(40px) rotate(-4deg);
}
.ico3d svg { width: 30px; height: 30px; color: var(--ink); }
.tag {
  display: inline-block; align-self: flex-start; padding: 5px 10px; border-radius: 999px;
  font: 800 .7rem/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase;
  background: var(--bg-2); color: var(--muted); border: 1px solid var(--border);
}
.tag.y { background: var(--yellow); color: var(--ink); border-color: var(--ink); }
.tag.soon { background: transparent; border-style: dashed; }
.card.is-soon { cursor: default; opacity: .9; }

/* pillar cards */
.pillar { min-height: 250px; }
.pillar .num { position: absolute; right: 20px; top: 14px; font: 900 3.4rem/1 var(--font-head); color: var(--bg-2); transform: translateZ(8px); }
:root[data-theme="dark"] .pillar .num { color: #262624; }
.new-here { margin-top: 30px; font-weight: 600; }

/* ---------- featured guide block ---------- */
.feature {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 0; overflow: hidden;
  border: 2px solid var(--edge); border-radius: 26px; background: var(--card);
  box-shadow: 0 10px 0 var(--edge), var(--shadow);
}
.feature-copy { padding: clamp(28px, 4vw, 52px); }
.feature-art {
  position: relative; background: var(--ink); min-height: 320px; overflow: hidden;
  display: grid; place-items: center; perspective: 900px;
}
.book {
  width: 200px; height: 270px; position: relative; transform-style: preserve-3d;
  transform: rotateY(-28deg) rotateX(8deg); animation: bookfloat 6s ease-in-out infinite;
}
@keyframes bookfloat { 50% { transform: rotateY(-18deg) rotateX(4deg) translateY(-10px); } }
.book .front, .book .side, .book .back {
  position: absolute; inset: 0; border-radius: 4px 12px 12px 4px;
}
.book .front {
  background: linear-gradient(160deg, #FFE45C, #FFD60A 55%, #E6BE00); border: 2px solid var(--ink);
  padding: 22px 18px; color: var(--ink); transform: translateZ(18px);
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: inset 8px 0 0 rgba(0,0,0,.12);
}
.book .front b { font: 900 1.55rem/1.05 var(--font-head); letter-spacing: -.03em; }
.book .front small { font: 700 .72rem/1.3 var(--font-head); letter-spacing: .1em; text-transform: uppercase; }
.book .side { width: 36px; left: auto; right: -18px; background: #F2EFE3; transform: rotateY(90deg) translateZ(0); border: 2px solid var(--ink);
  background-image: repeating-linear-gradient(90deg, #E8E4D6 0 2px, #F6F5F0 2px 4px); }
.book .back { background: #B89A00; transform: translateZ(-18px); border: 2px solid var(--ink); }
.feature-art .ring { position: absolute; border: 2px dashed rgba(255,214,10,.3); border-radius: 50%; animation: spin 30s linear infinite; }
.feature-art .ring.r1 { width: 380px; height: 380px; }
.feature-art .ring.r2 { width: 520px; height: 520px; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.path-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 18px; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature-art { min-height: 300px; order: -1; } }

/* ---------- golden tip of the day ---------- */
.tip-card {
  display: flex; gap: 26px; align-items: center; padding: clamp(24px, 4vw, 40px);
  background: var(--card); border: 2px solid var(--edge); border-radius: 26px;
  box-shadow: 0 10px 0 var(--yellow), var(--shadow);
}
.tip-badge {
  flex: none; width: 88px; height: 88px; border-radius: 24px; display: grid; place-items: center; font-size: 42px;
  background: linear-gradient(145deg, #FFE45C, #FFD60A 45%, #D9B400); border: 2px solid var(--ink);
  box-shadow: 0 7px 0 var(--ink), inset 0 -8px 12px rgba(0,0,0,.12), inset 0 8px 12px rgba(255,255,255,.5);
  transform: rotate(-6deg); animation: tipbob 5s ease-in-out infinite;
}
@keyframes tipbob { 50% { transform: rotate(4deg) translateY(-6px); } }
.tip-text { font: 800 clamp(1.2rem, 2.4vw, 1.65rem)/1.35 var(--font-head); letter-spacing: -.01em; margin: 0 0 16px; }
.tip-foot { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-weight: 700; }
@media (max-width: 640px) { .tip-card { flex-direction: column; align-items: flex-start; } .tip-badge { width: 70px; height: 70px; font-size: 32px; } }

/* expertise cards */
.expert .big-num { font: 900 2.6rem/1 var(--font-head); color: var(--text); margin: 6px 0 4px; }

/* ---------- truths / callouts ---------- */
.callout {
  position: relative; padding: 34px 30px 30px; border-radius: var(--radius); border: 2px solid var(--ink);
  background: var(--yellow); color: var(--ink); box-shadow: 0 8px 0 var(--ink);
}
.callout .big { font: 900 4rem/0.8 var(--font-head); opacity: .25; position: absolute; right: 18px; top: 16px; }
.callout p { font: 800 clamp(1.15rem, 2vw, 1.45rem)/1.35 var(--font-head); margin: 0; letter-spacing: -.01em; }
.callout small { display: block; margin-top: 14px; font-weight: 600; }

/* dark statement block */
.dark-block {
  position: relative; overflow: hidden; background: var(--ink); color: var(--paper);
  border-radius: 28px; padding: clamp(36px, 6vw, 80px); isolation: isolate;
  border: 2px solid var(--ink); box-shadow: 0 10px 0 var(--yellow);
}
.dark-block blockquote { margin: 0 0 28px; font: 900 clamp(1.6rem, 3.6vw, 2.8rem)/1.15 var(--font-head); letter-spacing: -.02em; max-width: 22ch; }
.dark-block blockquote em { font-style: normal; color: var(--yellow); }
.dark-block .orb {
  position: absolute; right: -60px; top: -60px; width: 340px; height: 340px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle at 35% 30%, #FFF3A8, #FFD60A 35%, #8a7300 70%, #2a2400 100%);
  box-shadow: inset -30px -40px 80px rgba(0,0,0,.55), 0 0 120px rgba(255,214,10,.25);
  animation: orb 9s ease-in-out infinite alternate;
}
@keyframes orb { to { transform: translate(-20px, 30px) scale(1.06); } }
@media (max-width: 640px) { .dark-block .orb { width: 200px; height: 200px; right: -70px; top: -70px; opacity: .6; } }

/* ---------- quiz ---------- */
.quiz {
  max-width: 760px; margin: 0 auto; background: var(--card); border: 2px solid var(--edge);
  border-radius: 26px; box-shadow: 0 10px 0 var(--edge), var(--shadow); overflow: hidden;
}
.quiz-top { display: flex; justify-content: space-between; align-items: center; padding: 18px 26px; border-bottom: 2px solid var(--border); font: 800 .85rem/1 var(--font-head); }
.quiz-bar { height: 8px; background: var(--bg-2); }
.quiz-bar i { display: block; height: 100%; width: 0; background: var(--yellow); transition: width .35s ease; }
.quiz-body { padding: clamp(24px, 4vw, 42px); min-height: 300px; }
.quiz-step { animation: qin .35s ease; }
@keyframes qin { from { opacity: 0; transform: translateX(24px); } }
.quiz-step h3 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin-bottom: 22px; }
.opts { display: grid; gap: 12px; }
.opt {
  text-align: left; padding: 16px 20px; border-radius: 14px; border: 2px solid var(--border); background: var(--bg);
  color: var(--text); font: 700 1.02rem/1.3 var(--font-body); cursor: pointer; min-height: 56px;
  display: flex; align-items: center; gap: 14px; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.opt:hover { border-color: var(--text); transform: translateY(-2px); box-shadow: 0 5px 0 var(--edge); }
.opt .k { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--yellow); color: var(--ink); font: 900 .85rem/1 var(--font-head); border: 2px solid var(--ink); }
.result .box-badge {
  display: inline-block; background: var(--ink); color: var(--yellow); padding: 8px 14px; border-radius: 10px;
  font: 900 .85rem/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px;
}
:root[data-theme="dark"] .result .box-badge { background: var(--yellow); color: var(--ink); }
.result ol { padding-left: 1.2em; margin: 14px 0 24px; }
.result ol li { margin-bottom: 6px; }
.quiz-back { background: none; border: 0; color: var(--muted); font: 700 .85rem/1 var(--font-head); cursor: pointer; padding: 8px 0; }

/* ---------- videos ---------- */
.video-card { padding: 0; overflow: hidden; }
.video-card .thumb {
  position: relative; aspect-ratio: 9 / 14; background: #000; overflow: hidden; cursor: pointer; border: 0; padding: 0; width: 100%;
  border-bottom: 2px solid var(--edge); transform: translateZ(0);
}
.video-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.video-card:hover .thumb img { transform: scale(1.06); }
.video-card .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.75)); }
.video-card .play {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  background: var(--yellow); border: 2px solid var(--ink); box-shadow: 0 6px 0 var(--ink); display: grid; place-items: center; transition: transform .2s;
}
.video-card .play svg { width: 24px; height: 24px; color: var(--ink); margin-left: 3px; }
.video-card:hover .play { transform: scale(1.1); }
.video-card .vnum { position: absolute; left: 12px; top: 12px; z-index: 2; }
.video-card .vbody { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; transform: translateZ(12px); }
.video-card h3 { font-size: 1.02rem; line-height: 1.25; }
.video-card .vdesc { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.plat { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.plat a {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: var(--text);
  border: 2px solid var(--border); background: var(--bg); transition: .15s;
}
.plat a:hover { border-color: var(--ink); background: var(--yellow); color: var(--ink); transform: translateY(-2px); }
.plat svg { width: 18px; height: 18px; }
.videos-row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .videos-row { grid-auto-flow: column; grid-auto-columns: 240px; grid-template-columns: none; overflow-x: auto; padding: 4px 4px 22px; scroll-snap-type: x mandatory; } .videos-row > * { scroll-snap-align: start; } }
.vgrid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.modal {
  position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 16px;
  background: rgba(10,10,10,.82); backdrop-filter: blur(6px);
}
.modal.open { display: grid; }
.modal-inner { width: min(420px, 100%); position: relative; }
.modal-frame { aspect-ratio: 9 / 16; max-height: 82vh; width: 100%; border-radius: 18px; overflow: hidden; border: 2px solid var(--yellow); background: #000; margin-inline: auto; }
.modal-frame iframe { width: 100%; height: 100%; border: 0; }
.modal-close { position: absolute; top: -56px; right: 0; }

/* ---------- blog ---------- */
.post-card { padding: 0; overflow: hidden; }
.post-cover {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 2px solid var(--edge);
  background: var(--ink); display: grid; place-items: center; transform: translateZ(0);
}
.post-cover img { width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: transform .5s, opacity .3s; }
.post-card:hover .post-cover img { transform: scale(1.05); opacity: .7; }
.post-cover .cover-title {
  position: absolute; left: 18px; right: 18px; bottom: 16px; color: var(--paper);
  font: 900 1.1rem/1.15 var(--font-head); letter-spacing: -.01em; text-shadow: 0 2px 12px rgba(0,0,0,.7);
}
.post-cover .cover-title span { background: var(--yellow); color: var(--ink); padding: 0 .25em; box-decoration-break: clone; -webkit-box-decoration-break: clone; text-shadow: none; }
.post-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; transform: translateZ(12px); }
.post-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font: 700 .78rem/1 var(--font-head); color: var(--muted); margin-bottom: 12px; }
.post-body h3 { font-size: 1.2rem; }
.post-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; }
.post-featured .post-cover { aspect-ratio: auto; min-height: 320px; border-bottom: 0; border-right: 2px solid var(--edge); }
.post-featured .post-body { padding: 34px; justify-content: center; }
.post-featured h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
@media (max-width: 760px) { .post-featured { grid-template-columns: 1fr; } .post-featured .post-cover { min-height: 220px; border-right: 0; border-bottom: 2px solid var(--edge); } }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter {
  min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 2px solid var(--border); background: var(--card);
  color: var(--text); font: 800 .88rem/1 var(--font-head); cursor: pointer; transition: .15s;
}
.filter:hover { border-color: var(--text); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--yellow); border-color: var(--ink); }
:root[data-theme="dark"] .filter[aria-pressed="true"] { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
[data-cat].hidden { display: none !important; }

/* article */
.article-hero .post-meta { color: #BDB9AE; margin-top: 18px; }
.article { padding: 64px 0 90px; }
.article .wrap { display: grid; grid-template-columns: minmax(0, 720px) 280px; gap: 56px; justify-content: center; }
@media (max-width: 1000px) { .article .wrap { grid-template-columns: minmax(0, 1fr); } .article aside { display: none; } }
.prose { font-size: 1.1rem; line-height: 1.75; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-bottom: .45em; }
.prose blockquote {
  margin: 1.6em 0; padding: 22px 24px; border-left: 6px solid var(--yellow); background: var(--card);
  border-radius: 0 14px 14px 0; font: 800 1.25rem/1.4 var(--font-head); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); border-right: 1px solid var(--border);
}
.prose .lede { font-size: 1.3rem; line-height: 1.55; font-weight: 500; color: var(--muted); }
.embed-short {
  float: right; width: 260px; margin: 6px 0 20px 28px; border-radius: 18px; overflow: hidden; border: 2px solid var(--edge);
  box-shadow: 0 8px 0 var(--edge); background: #000; aspect-ratio: 9 / 16;
}
.embed-short iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 640px) { .embed-short { float: none; width: min(300px, 100%); margin: 10px auto 24px; } }
.watch-on { clear: both; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 28px 0; padding: 18px; border-radius: 14px; background: var(--bg-2); }
.watch-on b { font-family: var(--font-head); margin-right: 6px; }
.side-card { position: sticky; top: 96px; }
.side-card .card + .card { margin-top: 22px; }
.share { display: flex; gap: 8px; flex-wrap: wrap; }
.next-prev { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 50px; }
@media (max-width: 640px) { .next-prev { grid-template-columns: 1fr; } }
.next-prev .card small { font: 800 .74rem/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; display: block; }

/* ---------- job guide ---------- */
.progress { position: fixed; top: 0; left: 0; height: 5px; width: 0; background: var(--yellow); z-index: 60; box-shadow: 0 0 12px rgba(255,214,10,.8); }
.path-bar {
  position: sticky; top: 70px; z-index: 40; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.path-bar .wrap { display: flex; align-items: center; gap: 12px; padding: 12px 0; flex-wrap: wrap; }
.path-bar .lbl { font: 800 .82rem/1 var(--font-head); margin-right: 4px; }
.seg { display: inline-flex; background: var(--bg-2); border-radius: 14px; padding: 4px; border: 2px solid var(--border); flex-wrap: wrap; }
.seg button {
  min-height: 40px; padding: 8px 16px; border: 0; border-radius: 10px; background: transparent; color: var(--text);
  font: 800 .88rem/1 var(--font-head); cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--yellow); color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.guide { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; padding: 56px 0 100px; }
.toc { position: sticky; top: 150px; align-self: start; max-height: calc(100vh - 170px); overflow: auto; }
.toc h4 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--border); }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 600; line-height: 1.35; }
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--text); border-left-color: var(--yellow); font-weight: 800; }
.toc-btn { display: none; }
@media (max-width: 1000px) {
  .guide { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 30px; }
  .toc { display: none; position: fixed; inset: auto 0 0; top: auto; max-height: 70vh; z-index: 70; background: var(--card); padding: 24px 20px 90px; border-top: 2px solid var(--edge); border-radius: 22px 22px 0 0; box-shadow: 0 -20px 60px rgba(0,0,0,.35); }
  .toc.open { display: block; }
  .toc-btn { display: inline-flex; }
}
.note-box { padding: 20px 22px; border-radius: 16px; background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); box-shadow: 0 6px 0 var(--ink); font-weight: 700; margin-bottom: 18px; }
.guide-section { scroll-margin-top: 150px; padding-top: 20px; margin-bottom: 30px; }
.guide-section > h2 { display: flex; align-items: center; gap: 16px; }
.step-num {
  flex: none; width: 58px; height: 58px; border-radius: 50%; background: var(--yellow); color: var(--ink);
  display: grid; place-items: center; font: 900 1.5rem/1 var(--font-head); border: 2px solid var(--ink); box-shadow: 0 5px 0 var(--ink);
}
details.step {
  background: var(--card); border: 2px solid var(--edge); border-radius: 20px; margin-bottom: 22px;
  box-shadow: 0 7px 0 var(--edge); scroll-margin-top: 150px; overflow: hidden;
}
details.step > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 18px; padding: 22px 24px;
  font: 900 clamp(1.2rem, 2.4vw, 1.6rem)/1.2 var(--font-head); letter-spacing: -.02em;
}
details.step > summary::-webkit-details-marker { display: none; }
details.step > summary .chev { margin-left: auto; width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); transition: transform .25s; }
details.step[open] > summary .chev { transform: rotate(180deg); background: var(--yellow); color: var(--ink); }
details.step > summary small { display: block; font: 600 .92rem/1.4 var(--font-body); color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.step-body { padding: 0 26px 26px; border-top: 2px dashed var(--border); padding-top: 22px; }
.step-body h3 { margin-top: 1.4em; }
.step-body h3:first-child { margin-top: 0; }
.prompt {
  position: relative; background: var(--code-bg); border: 1px solid var(--border); border-radius: 14px;
  margin: 16px 0 22px; overflow: hidden;
}
.prompt-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--border); font: 800 .78rem/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.prompt pre { margin: 0; padding: 16px 18px; white-space: pre-wrap; word-break: break-word; font: 500 .9rem/1.6 var(--font-mono); color: var(--text); }
.copy-btn {
  min-height: 34px; padding: 6px 12px; border-radius: 9px; border: 2px solid var(--ink); background: var(--yellow); color: var(--ink);
  font: 800 .78rem/1 var(--font-head); cursor: pointer; box-shadow: 0 3px 0 var(--ink); text-transform: none; letter-spacing: 0;
}
.copy-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.copy-btn.done { background: #1E9E5A; color: #fff; }
.box-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
@media (max-width: 640px) { .box-grid { grid-template-columns: 1fr; } }
.box-tile { padding: 18px; border-radius: 14px; border: 2px solid var(--border); background: var(--bg); }
.box-tile b { font-family: var(--font-head); display: block; margin-bottom: 4px; }
.box-tile.hl { border-color: var(--ink); background: var(--yellow); color: var(--ink); box-shadow: 0 5px 0 var(--ink); }
.schedule { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 18px 0; }
@media (max-width: 640px) { .schedule { grid-template-columns: 1fr; } }
.schedule .card { box-shadow: 0 6px 0 var(--edge); }
.schedule ul { list-style: none; padding: 0; margin: 10px 0 0; }
.schedule li { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--border); color: var(--muted); }
.schedule li b { color: var(--text); min-width: 82px; font-family: var(--font-head); }
.tips-list { counter-reset: tip; list-style: none; padding: 0; display: grid; gap: 10px; }
.tips-list li { counter-increment: tip; display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); }
.tips-list li::before { content: counter(tip); flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: var(--ink); font: 900 .85rem/1 var(--font-head); border: 2px solid var(--ink); }
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding: 10px 0 10px 40px; border-bottom: 1px dashed var(--border); }
.check-list input { position: absolute; left: 0; top: 10px; width: 24px; height: 24px; accent-color: var(--yellow); cursor: pointer; }
.check-list label { cursor: pointer; }
.timeline-days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
@media (max-width: 760px) { .timeline-days { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.timeline-days div { padding: 16px; border-radius: 14px; background: var(--bg); border: 2px solid var(--border); }
.timeline-days b { display: block; font: 900 1.1rem/1 var(--font-head); margin-bottom: 8px; color: var(--text); }
.timeline-days b span { background: var(--yellow); color: var(--ink); padding: 2px 6px; border-radius: 5px; }
.path-block[data-path] { display: block; }
body[data-path="graduate"] .path-block:not([data-path~="graduate"]),
body[data-path="intermediate"] .path-block:not([data-path~="intermediate"]),
body[data-path="matric"] .path-block:not([data-path~="matric"]) { display: none; }
.path-card { border-left: 8px solid var(--yellow); }
details.acc { border: 2px solid var(--border); border-radius: 16px; margin-bottom: 14px; background: var(--card); overflow: hidden; }
details.acc > summary { list-style: none; cursor: pointer; padding: 18px 20px; font: 800 1.08rem/1.3 var(--font-head); display: flex; align-items: center; gap: 12px; min-height: 56px; }
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary::after { content: "+"; margin-left: auto; font: 900 1.4rem/1 var(--font-head); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); }
details.acc[open] > summary::after { content: "–"; background: var(--yellow); color: var(--ink); }
details.acc > .acc-body { padding: 0 20px 20px; }
.skill { padding: 16px 0; border-bottom: 1px dashed var(--border); }
.skill:last-child { border-bottom: 0; }
.skill h4 { font-size: 1.05rem; margin-bottom: 8px; }
.skill p { margin: 0 0 6px; font-size: .96rem; color: var(--muted); }
.skill p b { color: var(--text); }

/* flowchart */
.flow { padding: 30px 20px; border-radius: 22px; background: var(--ink); color: var(--paper); border: 2px solid var(--ink); box-shadow: 0 8px 0 var(--yellow); margin: 24px 0 8px; }
.flow-steps { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; counter-reset: fs; }
.flow-step {
  counter-increment: fs; position: relative; padding: 14px 16px 14px 46px; border-radius: 12px; background: #222220; border: 2px solid #3A3934;
  font: 800 .9rem/1.2 var(--font-head); min-width: 150px;
}
.flow-step::before { content: counter(fs); position: absolute; left: 10px; top: 50%; margin-top: -13px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: var(--ink); font-size: .8rem; }
.flow-arrow { color: var(--yellow); font: 900 1.2rem/1 var(--font-head); }
.flow-loop { text-align: center; margin-top: 16px; font: 700 .85rem/1.4 var(--font-head); color: #BDB9AE; }
.flow-loop b { color: var(--yellow); }
.figcap { text-align: center; font: 700 .9rem/1.4 var(--font-head); color: var(--muted); margin-bottom: 26px; }
.mobile-bar { display: none; }
@media (max-width: 1000px) {
  .mobile-bar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 65; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--glass); backdrop-filter: blur(14px); border-top: 1px solid var(--border); }
  .mobile-bar .btn { flex: 1; min-height: 46px; padding: 10px; font-size: .86rem; }
  .has-mobile-bar .site-footer { padding-bottom: 90px; }
}

/* ---------- resources ---------- */
.res-card .meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 18px; }
.res-card .btn { align-self: flex-start; margin-top: auto; }
.res-featured { grid-column: span 2; background: var(--ink); color: var(--paper); }
.res-featured p { color: #CFCBC0; }
.res-featured h3 { font-size: 1.7rem; color: var(--paper); }
@media (max-width: 640px) { .res-featured { grid-column: auto; } }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 3px; background: var(--border); border-radius: 2px; }
.timeline li { position: relative; padding: 0 0 22px 50px; font: 700 1.02rem/1.35 var(--font-head); }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 2px; width: 21px; height: 21px; border-radius: 50%; background: var(--card); border: 3px solid var(--text); }
.timeline li:last-child::before { background: var(--yellow); border-color: var(--ink); box-shadow: 0 0 0 6px rgba(255,214,10,.3); }
.timeline li span { display: block; font: 500 .86rem/1.4 var(--font-body); color: var(--muted); margin-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 9px 16px; border-radius: 999px; background: var(--card); border: 2px solid var(--border); font: 800 .9rem/1 var(--font-head); }
.avatar3d {
  aspect-ratio: 1; border-radius: 30px; background: var(--ink); position: relative; overflow: hidden; display: grid; place-items: center;
  border: 2px solid var(--ink); box-shadow: 0 10px 0 var(--yellow); perspective: 800px;
}
.avatar3d .z {
  font: 900 min(42vw, 230px)/1 var(--font-head); color: var(--yellow); transform: rotateY(-18deg) rotateX(10deg);
  text-shadow: 1px 1px 0 #C9A700, 2px 2px 0 #C9A700, 3px 3px 0 #B39400, 4px 4px 0 #B39400, 5px 5px 0 #9C8100, 6px 6px 0 #9C8100, 7px 7px 0 #856E00, 8px 8px 0 #856E00, 14px 20px 40px rgba(0,0,0,.6);
  animation: zfloat 7s ease-in-out infinite;
}
@keyframes zfloat { 50% { transform: rotateY(14deg) rotateX(-4deg) translateY(-8px); } }
.avatar3d .handle { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: var(--paper); font: 800 1rem/1 var(--font-head); }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form .row2 { grid-template-columns: 1fr; } }
.field label { display: block; font: 800 .86rem/1 var(--font-head); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--border);
  background: var(--bg); color: var(--text); font: 500 1rem/1.4 var(--font-body); transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255,214,10,.45); }
.hp { position: absolute; left: -9999px; }
.signup { display: flex; gap: 12px; flex-wrap: wrap; max-width: 560px; margin: 26px auto 0; }
.signup input { flex: 1 1 240px; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 2px solid var(--ink); background: var(--card); color: var(--text); font: 500 1rem var(--font-body); }
.signup-box {
  position: relative; overflow: hidden; text-align: center; padding: clamp(40px, 6vw, 72px) 24px; border-radius: 28px;
  background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); box-shadow: 0 10px 0 var(--ink);
}
.signup-box h2 { color: var(--ink); }
.signup-box .cube { position: absolute; width: 90px; height: 90px; border: 3px solid rgba(20,20,20,.18); border-radius: 18px; animation: spin 22s linear infinite; }
.signup-box .cube.c1 { left: 6%; top: 18%; }
.signup-box .cube.c2 { right: 8%; bottom: 14%; width: 130px; height: 130px; animation-direction: reverse; }

/* ---------- socials ---------- */
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.soc {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 16px; border-radius: 13px;
  border: 2px solid var(--border); background: var(--card); color: var(--text); text-decoration: none; font: 800 .9rem/1 var(--font-head); transition: .15s;
}
.soc:hover { border-color: var(--ink); background: var(--yellow); color: var(--ink); transform: translateY(-2px); box-shadow: 0 4px 0 var(--ink); text-decoration: none; }
.soc svg { width: 18px; height: 18px; }
.socials.icons .soc { padding: 0; width: 46px; justify-content: center; }
.socials.icons .soc span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #CFCBC0; padding: 80px 0 36px; margin-top: 0; }
.site-footer a { color: var(--paper); }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 46px; border-bottom: 1px solid #2E2D2A; }
@media (max-width: 860px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-top > :first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot-top { grid-template-columns: 1fr; } }
.site-footer .brand { color: var(--paper); }
.site-footer .brand small { color: #9E9A90; }
.foot-tag { margin: 18px 0 22px; max-width: 34ch; }
.foot-col h4 { color: var(--paper); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin-bottom: 10px; }
.foot-col a { text-decoration: none; color: #CFCBC0; }
.foot-col a:hover { color: var(--yellow); }
.site-footer .soc { background: #1E1E1C; border-color: #34332F; color: var(--paper); }
.site-footer .soc:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); box-shadow: 0 4px 0 #000; }
.foot-bottom { padding-top: 26px; font-size: .9rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.fine { font-size: 11px; color: #6E6B64; margin-top: 8px; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px) scale(.98); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head p { margin: 0; }

/* 404 */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 16px; }
.nf .big { font: 900 clamp(7rem, 22vw, 14rem)/1 var(--font-head); color: var(--yellow); -webkit-text-stroke: 3px var(--ink); text-shadow: 10px 10px 0 var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .site-footer, .path-bar, .mobile-bar, .toc, .progress, .hero canvas { display: none !important; }
  details.step, details.acc { box-shadow: none; }
}
