:root {
  --ink: #07080a;
  --ink-soft: #0c0e11;
  --panel: #111419;
  --panel-2: #161a20;
  --paper: #f2f2f0;
  --muted: #969da5;
  --faint: #626a73;
  --line: rgba(255,255,255,.105);
  --red: #dc2434;
  --red-dark: #74131d;
  --white: #f5f5f2;
  --max: 1180px;
  --shadow: 0 28px 80px rgba(0,0,0,.42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--paper);
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px),
    var(--ink);
  background-size: 72px 72px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

a { color: inherit; }
.skip-link {
  position: fixed;
  z-index: 100;
  top: .75rem;
  left: .75rem;
  padding: .7rem 1rem;
  transform: translateY(-160%);
  color: var(--ink);
  background: var(--white);
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: absolute;
  z-index: 10;
  inset: 0 0 auto;
  width: min(calc(100% - 2rem), var(--max));
  height: 94px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  text-decoration: none;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.45);
  font: 850 .78rem ui-monospace, Consolas, monospace;
  letter-spacing: .08em;
}
.brand b, .brand small { display: block; }
.brand b { font-size: .72rem; text-transform: uppercase; letter-spacing: .13em; }
.brand small { color: var(--muted); font-size: .58rem; text-transform: uppercase; letter-spacing: .12em; }
.clearance {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: #c0c5ca;
  font: 700 .62rem ui-monospace, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.clearance i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 18px rgba(220,36,52,.75);
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 130px max(1rem, calc((100vw - var(--max)) / 2)) 70px;
  background:
    radial-gradient(circle at 73% 42%, rgba(220,36,52,.14), transparent 28rem),
    linear-gradient(120deg, rgba(255,255,255,.035), transparent 35%),
    var(--ink);
}
.hero::before {
  content: "PL";
  position: absolute;
  right: -2vw;
  bottom: -21vw;
  color: rgba(255,255,255,.018);
  font-size: min(48vw, 690px);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -.12em;
}
.flag-wash {
  position: absolute;
  inset: 0 0 0 auto;
  width: 43%;
  opacity: .12;
  background: linear-gradient(to bottom, var(--white) 0 50%, var(--red) 50% 100%);
  mask-image: linear-gradient(to right, transparent, #000 50%);
}
.hero-grid {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr);
  align-items: center;
  gap: clamp(3rem, 9vw, 8rem);
}
.eyebrow {
  margin: 0 0 1rem;
  color: #b7bdc3;
  font: 750 .66rem ui-monospace, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: .18em;
}
.eyebrow span { color: var(--red); }
.hero h1 {
  margin: 0;
  max-width: 800px;
  font-size: clamp(4rem, 10vw, 8.7rem);
  font-weight: 900;
  line-height: .78;
  letter-spacing: -.085em;
  text-transform: uppercase;
}
.hero h1 em {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.72);
  font-style: normal;
}
.hero-role {
  margin: 2rem 0 1rem;
  color: var(--red);
  font-size: .72rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .2em;
}
.hero-intro { max-width: 670px; margin: 0; color: #a9b0b7; font-size: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.4rem;
  border: 1px solid var(--line);
  font-size: .66rem;
  font-weight: 850;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .13em;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; border-color: var(--red); background: var(--red); }
.button-primary:hover { background: #ef3042; }
.button-quiet:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.045); }

.identity-card {
  position: relative;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,.18);
  border-top: 3px solid var(--red);
  background: rgba(13,15,18,.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.portrait {
  position: relative;
  aspect-ratio: 1.3;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background:
    linear-gradient(155deg, rgba(255,255,255,.08), transparent 45%),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(255,255,255,.025) 18px 19px),
    #0a0c0f;
}
.portrait::before, .portrait::after {
  content: "";
  position: absolute;
  width: 1px;
  height: 160%;
  background: rgba(220,36,52,.35);
  transform: rotate(45deg);
}
.portrait::after { transform: rotate(-45deg); }
.portrait strong { position: relative; z-index: 1; font-size: clamp(3.8rem, 7vw, 6.5rem); letter-spacing: -.08em; }
.portrait small { position: absolute; z-index: 1; bottom: .8rem; color: var(--faint); font: .56rem ui-monospace, Consolas, monospace; text-transform: uppercase; letter-spacing: .12em; }
.portrait-ring { position: absolute; width: 48%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; box-shadow: 0 0 0 24px rgba(255,255,255,.018), 0 0 0 52px rgba(255,255,255,.012); }
.identity-status { display: flex; align-items: center; justify-content: space-between; padding: 1rem .25rem; border-bottom: 1px solid var(--line); }
.identity-status span { color: var(--faint); font: .58rem ui-monospace, Consolas, monospace; text-transform: uppercase; letter-spacing: .1em; }
.identity-status b { color: #d7dadd; font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; }
.identity-card dl { margin: 0; }
.identity-card dl div { display: grid; grid-template-columns: 90px 1fr; gap: 1rem; padding: .85rem .25rem; border-bottom: 1px solid var(--line); }
.identity-card dt { color: var(--faint); font: .57rem ui-monospace, Consolas, monospace; text-transform: uppercase; letter-spacing: .1em; }
.identity-card dd { margin: 0; color: #cbd0d4; font-size: .75rem; text-align: right; }
.stamp { margin: 1rem 0 0; color: rgba(220,36,52,.65); font: 850 .68rem ui-monospace, Consolas, monospace; text-align: right; transform: rotate(-2deg); }
.scroll-cue { position: absolute; left: max(1rem, calc((100vw - var(--max)) / 2)); bottom: 1.8rem; display: flex; align-items: center; gap: .7rem; color: var(--faint); font: .58rem ui-monospace, Consolas, monospace; text-transform: uppercase; letter-spacing: .12em; }
.scroll-cue span { width: 36px; height: 1px; overflow: hidden; background: var(--line); }
.scroll-cue span::after { content: ""; display: block; width: 45%; height: 100%; background: var(--red); animation: scan 1.8s ease-in-out infinite; }

.section { width: min(calc(100% - 2rem), var(--max)); margin: auto; padding: clamp(5.5rem, 10vw, 9rem) 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; }
.section-heading h2, .ability h2 { margin: 0; font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: .95; letter-spacing: -.055em; text-transform: uppercase; }
.section-heading > p { max-width: 420px; margin: 0; color: var(--muted); font-size: .84rem; }

.facts { border-bottom: 1px solid var(--line); }
.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.fact-card { position: relative; min-height: 190px; padding: 1.35rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.012); }
.fact-card > span { position: absolute; top: 1rem; right: 1rem; color: #4e555d; font: .6rem ui-monospace, Consolas, monospace; }
.fact-card p { margin: 0 0 2.8rem; color: var(--faint); font: 700 .6rem ui-monospace, Consolas, monospace; text-transform: uppercase; letter-spacing: .13em; }
.fact-card strong { display: block; font-size: clamp(1.3rem, 2.5vw, 2.1rem); line-height: 1.05; letter-spacing: -.035em; }
.fact-card small { display: block; margin-top: .65rem; color: var(--muted); font-size: .66rem; }
.height-card::after { content: ""; position: absolute; inset: auto 1.35rem 1rem; height: 3px; background: linear-gradient(90deg, var(--red) 0 74%, rgba(255,255,255,.1) 74%); }

.history { padding-bottom: 0; }
.record-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 1rem; }
.record-card { display: grid; grid-template-columns: 54px 1fr; gap: 1.2rem; padding: clamp(1.5rem, 4vw, 2.6rem); border: 1px solid var(--line); background: var(--panel); }
.record-card.background { background: linear-gradient(135deg, rgba(220,36,52,.055), transparent 48%), var(--panel); }
.record-icon { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line); background: #0b0d10; font-size: 1.2rem; filter: grayscale(.15); }
.record-label { margin: 0 0 .8rem !important; color: var(--red) !important; font: 750 .58rem ui-monospace, Consolas, monospace !important; text-transform: uppercase; letter-spacing: .14em; }
.record-card h3 { margin: 0 0 1rem; font-size: 1.25rem; text-transform: uppercase; letter-spacing: -.02em; }
.record-card p { margin: 0; color: var(--muted); font-size: .86rem; }
.record-card p + p { margin-top: 1rem; }

.ability { width: 100%; max-width: none; padding-left: max(1rem, calc((100vw - var(--max)) / 2)); padding-right: max(1rem, calc((100vw - var(--max)) / 2)); }
.ability-shell { display: grid; grid-template-columns: 170px minmax(0, 1.25fr) minmax(300px, .75fr); border: 1px solid rgba(220,36,52,.35); border-top: 3px solid var(--red); background: linear-gradient(120deg, rgba(220,36,52,.08), transparent 45%), var(--panel); box-shadow: var(--shadow); }
.ability-index { min-height: 430px; display: flex; flex-direction: column; justify-content: space-between; padding: 1.5rem; border-right: 1px solid var(--line); background: rgba(0,0,0,.18); }
.ability-index span { color: var(--red); font: 750 .56rem ui-monospace, Consolas, monospace; letter-spacing: .13em; writing-mode: vertical-rl; }
.ability-index b { color: rgba(255,255,255,.12); font-size: 5rem; line-height: .8; letter-spacing: -.08em; }
.ability-copy { padding: clamp(2rem, 5vw, 4rem); }
.ability-copy > p:not(.eyebrow) { max-width: 700px; color: #aeb1b8; font-size: .92rem; }
.ability-copy small { display: inline-block; margin-top: 1.3rem; padding: .45rem .7rem; border-left: 2px solid var(--red); color: #c9cdd1; background: rgba(0,0,0,.18); font: italic .7rem ui-monospace, Consolas, monospace; }
.ability-cost { padding: clamp(2rem, 5vw, 3rem); border-left: 1px solid var(--line); background: rgba(0,0,0,.14); }
.ability-cost > p { margin: 0 0 1.2rem; color: var(--red); font: 750 .58rem ui-monospace, Consolas, monospace; text-transform: uppercase; letter-spacing: .14em; }
.ability-cost ul { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.ability-cost li { display: flex; align-items: center; gap: .7rem; color: #b7bdc2; font-size: .76rem; }
.ability-cost li span { width: 6px; height: 6px; border: 1px solid var(--red); transform: rotate(45deg); }
.duration { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.duration span, .duration b { display: block; }
.duration span { color: var(--faint); font: .56rem ui-monospace, Consolas, monospace; text-transform: uppercase; letter-spacing: .1em; }
.duration b { margin: .3rem 0 .8rem; font-size: .78rem; text-transform: uppercase; }
.duration i { display: block; width: 100%; height: 4px; background: linear-gradient(90deg, var(--red) 0 22%, rgba(255,255,255,.08) 22%); }

.notes { border-top: 1px solid var(--line); }
.notes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.note { min-height: 230px; padding: 1.6rem; border: 1px solid var(--line); border-top: 2px solid rgba(255,255,255,.22); background: var(--panel-2); transition: transform .25s ease, border-color .25s ease; }
.note:hover { transform: translateY(-5px); border-color: rgba(220,36,52,.5); }
.note span { color: var(--red); font: 750 .56rem ui-monospace, Consolas, monospace; letter-spacing: .13em; }
.note h3 { margin: 2.5rem 0 .7rem; font-size: 1rem; text-transform: uppercase; letter-spacing: .01em; }
.note p { margin: 0; color: var(--muted); font-size: .8rem; }

footer { width: min(calc(100% - 2rem), var(--max)); margin: auto; min-height: 130px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-top: 1px solid var(--line); color: var(--faint); font: .58rem ui-monospace, Consolas, monospace; text-transform: uppercase; letter-spacing: .1em; }
footer b { color: var(--paper); }

@keyframes scan { 0%, 100% { transform: translateX(-110%); } 50% { transform: translateX(245%); } }
@keyframes enter { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .identity-card { opacity: 0; animation: enter .7s cubic-bezier(.2,.7,.2,1) forwards; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .15s; }
  .hero-copy > :nth-child(4) { animation-delay: .22s; }
  .hero-copy > :nth-child(5) { animation-delay: .29s; }
  .identity-card { animation-delay: .2s; }
  @supports (animation-timeline: view()) {
    .reveal { opacity: 0; transform: translateY(28px); animation: enter linear both; animation-timeline: view(); animation-range: entry 8% cover 30%; }
  }
}

@media (max-width: 900px) {
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 3rem; }
  .identity-card { max-width: 560px; }
  .flag-wash { width: 70%; }
  .fact-grid { grid-template-columns: repeat(2, 1fr); }
  .record-layout { grid-template-columns: 1fr; }
  .ability-shell { grid-template-columns: 100px 1fr; }
  .ability-index { min-height: auto; }
  .ability-cost { grid-column: 1 / -1; border-top: 1px solid var(--line); border-left: 0; }
  .notes-grid { grid-template-columns: 1fr; }
  .note { min-height: auto; }
}

@media (max-width: 600px) {
  .site-header { height: 76px; }
  .clearance { font-size: 0; }
  .clearance::after { content: "B"; font-size: .66rem; }
  .brand small { display: none; }
  .hero { padding-top: 100px; }
  .hero h1 { font-size: clamp(3.3rem, 18vw, 5.2rem); }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .fact-grid { grid-template-columns: 1fr; }
  .record-card { grid-template-columns: 1fr; }
  .ability-shell { grid-template-columns: 1fr; }
  .ability-index { min-height: 90px; flex-direction: row; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); }
  .ability-index span { writing-mode: initial; }
  .ability-index b { font-size: 3rem; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: .35rem; }
  footer p { margin: 0; }
}

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