/* Brian Ho Knowledge Hub · Horatos Academy design system
   cream #f7f4ee · ink #0b0b0b · coral #ff6542 · lime #dfff52 · Inter Tight + Inter */
:root {
  --ink: #0b0b0b; --cream: #f7f4ee; --paper: #fffdf8; --sand: #efe9dc; --coral: #ff6542; --coral-d: #d9431f;
  --lime: #dfff52; --text-2: #2a2a28; --text-3: #5d5e58; --line: rgba(11,11,11,.13); --hair: #e9e3d6;
  --display: 'Inter Tight', system-ui, sans-serif; --body: 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { background: var(--cream); color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
html { scroll-behavior: smooth; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.font-display { font-family: var(--display); letter-spacing: -.02em; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(247,244,238,.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.site-nav { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 28px; }
.site-brand { display: inline-flex; align-items: center; gap: 11px; white-space: nowrap; }
.site-brand svg { width: 38px; height: 38px; flex: none; }
.site-brand svg circle { transition: transform .45s cubic-bezier(.3,1.6,.5,1); transform-box: fill-box; transform-origin: center; }
.site-brand:hover .d1 { transform: scale(1.12); } .site-brand:hover .d3 { transform: scale(.88); }
.site-brand:hover .d2, .site-brand:hover .d4 { transform: scale(1.18); }
.site-brand-title { font-family: var(--display); font-weight: 800; font-size: 1.12rem; letter-spacing: -.04em; }
.site-brand-title em { font-style: normal; color: var(--coral); }
.site-links { display: flex; gap: 4px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.site-links a { font-family: var(--display); font-weight: 700; font-size: .86rem; padding: 8px 13px; border-radius: 999px; color: var(--text-2); transition: background .15s, color .15s; }
.site-links a:hover { background: var(--sand); color: var(--ink); }
.site-links a.is-current { background: var(--ink); color: var(--lime); }
.header-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--cream) !important; padding: 9px 16px !important; border-radius: 999px; font-family: var(--display); font-weight: 800; }
.header-cta i { color: var(--lime); }
.header-cta:hover { background: var(--lime) !important; color: var(--ink) !important; }
.header-cta:hover i { color: var(--ink); }
.menu-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 12px; border: 1.5px solid var(--ink); background: transparent; }
@media (max-width: 960px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .site-links { display: none; position: absolute; left: 12px; right: 12px; top: 66px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 22px; padding: 12px; flex-direction: column; align-items: stretch; box-shadow: 0 20px 50px rgba(11,11,11,.15); }
  .site-links.open { display: flex; }
}
body.page-dark .site-header { background: rgba(11,11,11,.88); border-bottom-color: rgba(247,244,238,.12); }
body.page-dark .site-brand, body.page-dark .site-links a { color: var(--cream); }
body.page-dark .site-brand-title em { color: var(--lime); }
body.page-dark .site-links a:hover { background: rgba(247,244,238,.1); }
body.page-dark .site-links a.is-current { background: var(--lime); color: var(--ink); }
body.page-dark .header-cta { background: var(--lime); color: var(--ink) !important; }
body.page-dark .header-cta i { color: var(--ink); }
body.page-dark .menu-toggle { border-color: var(--cream); color: var(--cream); }
@media (max-width: 960px) { body.page-dark .site-links { background: var(--ink); border-color: rgba(247,244,238,.25); } }

/* ---------- Layout ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.bleed { width: 100vw; margin-left: calc(50% - 50vw); }
.hx-section { margin-top: clamp(56px, 8vw, 104px); }
.hx-head { display: grid; grid-template-columns: auto 1fr; gap: clamp(14px, 2.4vw, 24px); align-items: end; border-bottom: 3px solid var(--ink); padding-bottom: 14px; margin-bottom: 26px; }
.hx-head.plain { grid-template-columns: 1fr; }
.hx-num { font-family: var(--display); font-weight: 900; font-size: clamp(3.2rem, 2rem + 4.6vw, 5.4rem); line-height: .78; letter-spacing: -.06em; color: var(--coral); }
.hx-kicker { margin: 0 0 6px; font-family: var(--display); font-weight: 800; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--text-3); }
.hx-kicker.lime { color: var(--lime); }
.hx-h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.7rem); line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.hx-lede-dark { color: var(--text-3); max-width: 62ch; line-height: 1.7; }

/* ---------- Hero ---------- */
.hx-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--ink); color: var(--cream); }
.hx-hero-inner { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: clamp(56px, 8vw, 104px) 24px clamp(96px, 11vw, 140px); display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); gap: 32px 48px; align-items: center; }
.hx-hero.compact .hx-hero-inner { grid-template-columns: 1fr; padding: clamp(48px, 6vw, 80px) 24px clamp(64px, 8vw, 96px); }
.hx-blob { position: absolute; z-index: -1; width: clamp(320px, 44vw, 720px); aspect-ratio: 1; border-radius: 50%; background: var(--coral); top: clamp(-260px, -16vw, -110px); right: clamp(-260px, -12vw, -90px); animation: hxFloat 14s ease-in-out infinite; }
.hx-blob2 { position: absolute; z-index: -1; width: clamp(110px, 13vw, 210px); aspect-ratio: 1; border-radius: 50%; background: var(--lime); left: clamp(-80px, -4vw, -30px); top: 46%; animation: hxFloat 18s ease-in-out infinite reverse; }
.hx-ring { position: absolute; z-index: -1; width: clamp(110px, 14vw, 180px); aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(247,244,238,.3); border-top-color: var(--lime); right: clamp(30px, 8vw, 160px); bottom: clamp(70px, 10vw, 140px); animation: hxSpin 30s linear infinite; }
.hx-mega { position: absolute; z-index: -1; left: 50%; transform: translateX(-50%); bottom: -5vw; font-family: var(--display); font-weight: 900; font-size: clamp(9rem, 30vw, 30rem); line-height: .8; letter-spacing: -.07em; color: transparent; -webkit-text-stroke: 2px rgba(247,244,238,.09); pointer-events: none; white-space: nowrap; }
.hx-grid-bg { position: absolute; inset: 0; z-index: -2; background-image: radial-gradient(rgba(247,244,238,.09) 1.2px, transparent 1.2px); background-size: 28px 28px; mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); }
.hx-eyebrow { font-family: var(--display); font-weight: 800; letter-spacing: .3em; font-size: .72rem; text-transform: uppercase; color: var(--lime); margin: 0 0 18px; }
.hx-hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 1.2rem + 4.4vw, 4.8rem); line-height: 1.02; letter-spacing: -.04em; margin: 0; max-width: 15ch; text-wrap: balance; }
.hx-hero.compact h1 { max-width: 20ch; font-size: clamp(2.2rem, 1.2rem + 3.6vw, 4rem); }
.hx-hero h1 em { font-style: normal; color: var(--lime); }
.hx-lede { color: rgba(247,244,238,.78); font-size: clamp(1rem, .95rem + .3vw, 1.12rem); line-height: 1.75; max-width: 58ch; margin: 22px 0 0; }
.hx-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hx-pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 7px 15px; font-family: var(--display); font-weight: 700; font-size: .8rem; }
.hx-pill.coral { background: var(--coral); color: #fff; }
.hx-pill.lime { background: var(--lime); color: var(--ink); }
.hx-pill.ghost { border: 1.5px solid rgba(247,244,238,.45); color: var(--cream); }
.hx-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-family: var(--display); font-weight: 800; font-size: .96rem; border: 0; cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease; }
.hx-btn:hover { transform: translateY(-2px); }
.hx-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.hx-btn.lime { background: var(--lime); color: var(--ink); } .hx-btn.lime:hover { background: #fff; }
.hx-btn.ghost { border: 1.5px solid rgba(247,244,238,.5); color: var(--cream); background: transparent; } .hx-btn.ghost:hover { background: var(--cream); color: var(--ink); }
.hx-btn.ink { background: var(--ink); color: var(--lime); } .hx-btn.ink:hover { background: #262626; }
.hx-btn.coral { background: var(--coral); color: #fff; } .hx-btn.coral:hover { background: var(--coral-d); }
.hx-btn.outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); } .hx-btn.outline:hover { background: var(--ink); color: var(--cream); }
.hx-btn.sm { padding: 9px 16px; font-size: .84rem; }
.hx-portrait { justify-self: center; margin: 0; width: min(100%, 380px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 6px solid var(--lime); box-shadow: 0 24px 60px rgba(0,0,0,.45); position: relative; }
.hx-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.hx-badge { position: absolute; z-index: 3; right: max(24px, calc(50% - 560px)); top: clamp(60px, 9vw, 130px); width: 124px; aspect-ratio: 1; border-radius: 50%; background: var(--lime); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; transform: rotate(-10deg); box-shadow: 0 12px 30px rgba(0,0,0,.3); animation: hxBob 5s ease-in-out infinite; }
.hx-badge b { font-family: var(--display); font-weight: 900; font-size: 2.3rem; line-height: .9; letter-spacing: -.05em; }
.hx-badge span { font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; max-width: 10ch; line-height: 1.2; margin-top: 3px; }
@keyframes hxFloat { 0%,100% { transform: translate(0,0) } 50% { transform: translate(-18px, 22px) } }
@keyframes hxSpin { to { transform: rotate(360deg) } }
@keyframes hxBob { 0%,100% { transform: rotate(-10deg) translateY(0) } 50% { transform: rotate(-6deg) translateY(-8px) } }

/* ---------- Stats & ticker ---------- */
.hx-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-top: -54px; position: relative; z-index: 5; }
.hx-stat { border-radius: 24px; padding: 20px 22px; border: 1.5px solid var(--ink); background: var(--paper); min-width: 0; }
.hx-stat b { display: block; font-family: var(--display); font-weight: 900; font-size: clamp(2.2rem, 1.5rem + 2.2vw, 3.4rem); line-height: .95; letter-spacing: -.05em; }
.hx-stat span { display: block; margin-top: 8px; font-size: .88rem; line-height: 1.45; font-weight: 600; }
.hx-stat.lime { background: var(--lime); border-color: var(--lime); }
.hx-stat.ink { background: var(--ink); color: var(--cream); } .hx-stat.ink b { color: var(--lime); }
.hx-stat.coral { background: var(--coral); border-color: var(--coral); color: #fff; }
.hx-ticker { margin-top: 40px; background: var(--ink); color: var(--cream); overflow: hidden; padding: 15px 0; transform: rotate(-1.2deg); border-top: 3px solid var(--lime); border-bottom: 3px solid var(--lime); }
.hx-ticker-track { display: flex; gap: 22px; width: max-content; animation: hxTick 40s linear infinite; font-family: var(--display); font-weight: 800; font-size: clamp(1.05rem, 1rem + .5vw, 1.45rem); white-space: nowrap; }
.hx-ticker i { font-style: normal; color: var(--coral); }
@keyframes hxTick { to { transform: translateX(-50%) } }

/* ---------- Cards ---------- */
.hx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.hx-card { position: relative; display: flex; flex-direction: column; border-radius: 26px; padding: 22px 24px 20px; border: 1.5px solid var(--ink); background: var(--paper); transition: transform .25s ease, box-shadow .25s ease; min-width: 0; }
a.hx-card:hover, .hx-card.clickable:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(11,11,11,.12); cursor: pointer; }
.hx-card h3 { margin: 0 0 8px; font-family: var(--display); font-weight: 800; font-size: 1.24rem; line-height: 1.2; letter-spacing: -.02em; }
.hx-card p { margin: 0 0 14px; font-size: .93rem; line-height: 1.6; }
.hx-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.hx-card-num { font-family: var(--display); font-weight: 900; font-size: 2.8rem; line-height: .8; letter-spacing: -.06em; color: var(--coral); }
.hx-tag { font-family: var(--display); font-weight: 800; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; border-radius: 999px; padding: 5px 11px; background: var(--ink); color: var(--lime); white-space: nowrap; }
.hx-chips { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.hx-chips li, .chip { font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1.5px solid currentColor; opacity: .9; }
.hx-card-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px 14px; padding-top: 12px; border-top: 1px dashed currentColor; font-size: .78rem; font-weight: 700; opacity: .9; }
.hx-card.tone-coral { background: var(--coral); border-color: var(--coral); color: #fff; } .hx-card.tone-coral .hx-card-num { color: #fff; } .hx-card.tone-coral .hx-tag { background: #fff; color: var(--ink); }
.hx-card.tone-lime { background: var(--lime); border-color: var(--lime); } .hx-card.tone-lime .hx-card-num { color: var(--ink); }
.hx-card.tone-ink { background: var(--ink); color: var(--cream); } .hx-card.tone-ink .hx-card-num { color: var(--lime); } .hx-card.tone-ink .hx-tag { background: var(--lime); color: var(--ink); }
.hx-card.dashed { border-style: dashed; background: transparent; }
.panel { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 26px; padding: clamp(20px, 3vw, 30px); }
.panel.ink { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.panel.sand { background: var(--sand); border-color: var(--sand); }
.icon-tile { width: 44px; height: 44px; border-radius: 14px; display: inline-grid; place-items: center; background: var(--lime); color: var(--ink); font-size: 1.05rem; flex: none; }
.icon-tile.ink { background: var(--ink); color: var(--lime); } .icon-tile.coral { background: var(--coral); color: #fff; }

/* ---------- Steps / dark band ---------- */
.hx-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.hx-steps li { border-radius: 26px; padding: 24px; border: 1.5px solid var(--ink); position: relative; background: var(--paper); }
.hx-steps li > span { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; font-family: var(--display); font-weight: 900; font-size: 1.35rem; margin-bottom: 14px; }
.hx-steps h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 800; font-size: 1.22rem; }
.hx-steps p { margin: 0; font-size: .93rem; line-height: 1.6; }
.hx-steps li.coral > span { background: var(--coral); color: #fff; }
.hx-steps li.lime { background: var(--lime); border-color: var(--lime); } .hx-steps li.lime > span { background: var(--ink); color: var(--lime); }
.hx-steps li.ink { background: var(--ink); color: var(--cream); } .hx-steps li.ink > span { background: var(--lime); color: var(--ink); }
.hx-steps li:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 38px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; background: var(--cream); border: 1.5px solid var(--ink); display: grid; place-items: center; font-weight: 900; color: var(--coral); }
.hx-band { background: var(--ink); color: var(--cream); position: relative; overflow: hidden; }
.hx-band::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: var(--coral); left: -120px; bottom: -150px; }
.hx-band-inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) 24px; }
.hx-band h2 em { font-style: normal; color: var(--lime); }
.hx-final { position: relative; overflow: hidden; background: var(--coral); color: #fff; border-radius: 32px; padding: clamp(32px, 6vw, 68px); text-align: center; }
.hx-final h2 { margin: 0 auto; max-width: 22ch; font-family: var(--display); font-weight: 900; font-size: clamp(1.8rem, 1.2rem + 2.8vw, 3.2rem); line-height: 1.05; letter-spacing: -.04em; position: relative; z-index: 1; }
.hx-final p { position: relative; z-index: 1; margin: 14px auto 0; max-width: 58ch; }
.hx-final .hx-cta { justify-content: center; position: relative; z-index: 1; }
.hx-final-ring { position: absolute; width: 340px; height: 340px; border-radius: 50%; border: 48px solid var(--lime); left: -150px; bottom: -200px; }
.hx-final::after { content: ""; position: absolute; width: 170px; height: 170px; border-radius: 50%; background: var(--ink); right: -50px; top: -60px; }

/* ---------- Layer tower ---------- */
.tower { display: grid; gap: 6px; }
.tower-row { display: grid; grid-template-columns: 74px 1fr auto; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 16px; border: 1.5px solid rgba(247,244,238,.18); }
.tower-row b { font-family: var(--display); font-weight: 900; color: var(--lime); font-size: 1.05rem; }
.tower-row span { font-size: .9rem; }
.tower-row small { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(247,244,238,.55); }
.funnel { display: flex; flex-wrap: wrap; gap: 6px; }
.funnel span { flex: 1 1 110px; text-align: center; padding: 12px 8px; border-radius: 14px; font-family: var(--display); font-weight: 800; font-size: .88rem; background: rgba(247,244,238,.08); border: 1.5px solid rgba(247,244,238,.2); }
.funnel span:nth-child(n+4) { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.funnel span small { display: block; font-weight: 600; font-size: .68rem; opacity: .7; margin-top: 2px; }

/* ---------- Forms ---------- */
.field { width: 100%; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 14px; padding: 12px 16px; font-size: .95rem; font-family: var(--body); color: var(--ink); }
.field:focus { outline: none; box-shadow: 0 0 0 4px rgba(223,255,82,.7); }
.field.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .86rem; }
.label { display: block; font-family: var(--display); font-weight: 800; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.filter-pill { font-family: var(--display); font-weight: 700; font-size: .82rem; padding: 8px 15px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--paper); cursor: pointer; transition: background .15s, color .15s; }
.filter-pill:hover { background: var(--sand); }
.filter-pill.on { background: var(--ink); color: var(--lime); }
.notice { border-radius: 16px; padding: 12px 16px; font-size: .88rem; font-weight: 600; }
.notice.ok { background: var(--lime); color: var(--ink); } .notice.err { background: #ffe1d9; color: #8a2310; } .notice.warn { background: var(--sand); color: var(--ink); }

/* ---------- Code & prose ---------- */
.code { background: var(--ink); color: #f7f4ee; border-radius: 18px; padding: 18px 20px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .82rem; line-height: 1.6; overflow-x: auto; }
.inline-code { background: var(--sand); padding: 2px 7px; border-radius: 7px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .84em; }
.prose-skill { font-size: .98rem; line-height: 1.75; color: var(--text-2); }
.prose-skill h1 { font-family: var(--display); font-weight: 900; font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.5rem); letter-spacing: -.035em; line-height: 1.1; color: var(--ink); margin: 0 0 18px; }
.prose-skill h2 { font-family: var(--display); font-weight: 800; font-size: 1.45rem; letter-spacing: -.025em; color: var(--ink); margin: 40px 0 14px; padding-bottom: 8px; border-bottom: 3px solid var(--ink); }
.prose-skill h3 { font-family: var(--display); font-weight: 800; font-size: 1.12rem; color: var(--ink); margin: 26px 0 10px; }
.prose-skill p { margin: 0 0 14px; }
.prose-skill ul, .prose-skill ol { margin: 0 0 16px; padding-left: 22px; } .prose-skill li { margin: 4px 0; }
.prose-skill ul li::marker { color: var(--coral); } .prose-skill ol li::marker { color: var(--coral); font-weight: 800; }
.prose-skill strong { color: var(--ink); font-weight: 700; }
.prose-skill a { color: var(--coral-d); text-decoration: underline; text-underline-offset: 3px; }
.prose-skill code { background: var(--sand); padding: 1px 6px; border-radius: 6px; font-size: .86em; font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--ink); }
.prose-skill pre { background: var(--ink); color: #f7f4ee; border-radius: 18px; padding: 18px 20px; overflow-x: auto; margin: 0 0 18px; font-size: .8rem; line-height: 1.6; position: relative; }
.prose-skill pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.prose-skill table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: .86rem; display: block; overflow-x: auto; }
.prose-skill th { text-align: left; font-family: var(--display); font-weight: 800; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); padding: 10px 14px 10px 0; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.prose-skill td { padding: 10px 14px 10px 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
.prose-skill tbody tr:nth-child(even) { background: rgba(11,11,11,.025); }
.prose-skill blockquote { margin: 0 0 16px; padding: 14px 18px; background: var(--lime); border-radius: 16px; color: var(--ink); }
.copy-btn { position: absolute; top: 10px; right: 10px; background: rgba(247,244,238,.12); color: var(--cream); border: 0; border-radius: 9px; padding: 5px 10px; font-size: .72rem; font-weight: 700; cursor: pointer; }
.copy-btn:hover { background: var(--lime); color: var(--ink); }
.toc a { display: block; padding: 6px 10px; border-radius: 10px; font-size: .84rem; color: var(--text-2); border-left: 2px solid transparent; }
.toc a:hover { background: var(--sand); border-left-color: var(--coral); }
.locked-veil { position: relative; }
.locked-veil::after { content: ""; position: absolute; inset: auto 0 0 0; height: 120px; background: linear-gradient(180deg, rgba(255,253,248,0), var(--paper)); }

/* ---------- Data table ---------- */
.data-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.data-table th { text-align: left; font-family: var(--display); font-weight: 800; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); padding: 10px 14px 10px 0; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.data-table td { padding: 11px 14px 11px 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
.data-table tbody tr:hover { background: var(--cream); }
.prio-Critical { background: var(--coral); color: #fff; } .prio-High { background: var(--ink); color: var(--lime); } .prio-Medium { background: var(--lime); color: var(--ink); } .prio-Low { background: var(--sand); color: var(--text-2); }
.prio { font-family: var(--display); font-weight: 800; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: 3px 9px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--cream); position: relative; overflow: hidden; margin-top: clamp(64px, 9vw, 112px); }
.site-footer::before { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; background: var(--coral); right: -150px; top: -190px; }
.site-footer::after { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; background: var(--lime); right: 140px; top: -50px; }
.footer-inner { position: relative; z-index: 1; max-width: 1200px; margin: auto; padding: 64px 24px 40px; display: grid; grid-template-columns: minmax(0,2fr) 1fr 1fr; gap: 40px; }
.footer-intro { display: flex; gap: 16px; align-items: flex-start; }
.footer-intro svg { width: 54px; height: 54px; flex: none; }
.footer-intro strong { display: block; font-family: var(--display); font-size: 1.2rem; } .footer-intro strong em { font-style: normal; color: var(--lime); }
.footer-intro p { color: #c9cbc7; margin: 8px 0 0; font-size: .86rem; max-width: 34ch; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; font-size: .88rem; }
.footer-nav span { color: var(--lime); text-transform: uppercase; font-size: .72rem; font-weight: 800; letter-spacing: .12em; margin-bottom: 4px; }
.footer-nav a:hover { color: var(--lime); }
.footer-bottom { position: relative; z-index: 1; border-top: 1px solid #343735; max-width: 1152px; margin: auto; padding: 20px 0 26px; display: flex; justify-content: space-between; gap: 12px; color: #adb3ae; font-size: .78rem; flex-wrap: wrap; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(11,11,11,.55); backdrop-filter: blur(4px); padding: 16px; overflow-y: auto; }
.modal-card { max-width: 820px; margin: 40px auto; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 28px; padding: clamp(22px, 4vw, 40px); position: relative; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--paper); cursor: pointer; }
.modal-close:hover { background: var(--ink); color: var(--lime); }
.fade-in { animation: fadeIn .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px) } to { opacity: 1; transform: none } }

@media (max-width: 900px) {
  .hx-hero-inner { grid-template-columns: 1fr; }
  .hx-portrait { width: min(62vw, 250px); justify-self: start; grid-row: 1; }
  .hx-badge { width: 96px; } .hx-badge b { font-size: 1.8rem; }
  .hx-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hx-steps { grid-template-columns: 1fr; }
  .hx-steps li:not(:last-child)::after { content: "↓"; right: auto; left: 34px; top: auto; bottom: -15px; }
  .footer-inner { grid-template-columns: 1fr; }
  .tower-row { grid-template-columns: 56px 1fr; } .tower-row small { display: none; }
}
@media (max-width: 560px) { .hx-btn { width: 100%; } .hx-stat { padding: 16px; } .hx-final { border-radius: 24px; } }
@media (prefers-reduced-motion: reduce) { .hx-blob, .hx-blob2, .hx-ring, .hx-badge, .hx-ticker-track { animation: none !important; } }

/* ---------- Admin legacy utility mapping ---------- */
#admin-panel .card-shadow { background: var(--paper) !important; border: 1.5px solid var(--ink); border-radius: 22px !important; box-shadow: none; }
#admin-panel .bg-soft { background: var(--sand) !important; }
#admin-panel .text-accent { color: var(--coral-d) !important; }
#admin-panel .bg-accent { background: var(--ink) !important; color: var(--lime) !important; border-radius: 999px !important; }
#admin-panel .bg-blue-50 { background: var(--lime) !important; }
#admin-panel .bg-ink { background: var(--ink) !important; color: var(--lime) !important; }
#admin-panel .tab-btn { font-family: var(--display); font-weight: 700; border: 1.5px solid var(--ink) !important; cursor: pointer; }
#admin-panel input, #admin-panel select, #admin-panel textarea { border: 1.5px solid var(--ink); font-family: var(--body); }
#admin-panel button { cursor: pointer; }
#admin-panel table th { font-family: var(--display); }
.hidden { display: none !important; }

/* Link reset (Tailwind preflight is disabled) */
a { color: inherit; text-decoration: none; }
a.hx-card, a.hx-card * { color: inherit; text-decoration: none; }
.prose a, .skill-body a, p a { text-decoration: underline; text-underline-offset: 3px; }
