:root {
  --bg: #f5f4ef;
  --paper: #fbfaf7;
  --ink: #1c1f3a;
  --ink-2: #3b3e5a;
  --muted: #8b8a93;
  --line: rgba(28, 31, 58, .1);
  --soft: rgba(28, 31, 58, .05);

  --f1: #22254a;
  --f2: #4a4c68;
  --f3: #8d817d;
  --f4: #bfb3ab;
  --f5: #dcd5cb;
  --f6: #ebe8e1;

  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --pad: clamp(20px, 4vw, 64px);
  --r: 22px;
  --shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 30px 60px -30px rgba(28,31,58,.25), 0 8px 20px -12px rgba(28,31,58,.18);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255,255,255,.9), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(220,213,203,.5), transparent 60%);
}
main, .foot { position: relative; z-index: 1; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 999px; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  pointer-events: none;
}
.top > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.brand-name { transition: opacity .3s, transform .3s var(--ease); }
.scrolled .brand-name { opacity: 0; transform: translateX(-6px); pointer-events: none; }
.mono-badge {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  font: 700 13px/1 var(--sans); letter-spacing: -.02em;
  box-shadow: 0 6px 16px -6px rgba(28,31,58,.5);
}
.mono-badge.sm { width: 30px; height: 30px; font-size: 10px; }
.mono-badge.light { background: var(--paper); color: var(--ink); box-shadow: none; }

.pillnav {
  position: relative;
  display: flex; gap: 2px; padding: 5px;
  border-radius: 999px;
  background: rgba(251,250,247,.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 10px 30px -18px rgba(28,31,58,.35);
}
.pillnav a {
  position: relative; z-index: 1;
  padding: 8px 14px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  transition: color .3s;
}
.pillnav a.active { color: var(--paper); }
.pill-ind {
  position: absolute; top: 5px; left: 0; height: calc(100% - 10px); width: 0;
  border-radius: 999px; background: var(--ink);
  opacity: 0;
  transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: -.01em;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--paper); box-shadow: 0 12px 24px -12px rgba(28,31,58,.6); }
.btn-dark:hover { box-shadow: 0 18px 30px -14px rgba(28,31,58,.7); }
.btn-ghost { background: rgba(251,250,247,.7); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* ---------- Section scaffolding ---------- */
.sec { padding: clamp(90px, 12vw, 160px) var(--pad); position: relative; }
.sec-label {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 18px;
  font: 500 11.5px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.sec-label span::after { content: ""; display: inline-block; width: 36px; height: 1px; margin-left: 14px; vertical-align: middle; background: currentColor; opacity: .5; }
.sec-title {
  margin: 0;
  font-size: clamp(44px, 6.6vw, 104px); font-weight: 700; line-height: .95; letter-spacing: -.05em;
}
.sec-title em { color: var(--f3); font-size: 1.04em; letter-spacing: -.02em; }
.sec-head { max-width: 900px; margin-bottom: clamp(36px, 5vw, 64px); }
.lead { font-size: clamp(16px, 1.35vw, 19px); line-height: 1.6; color: var(--ink-2); max-width: 560px; margin: 22px 0 0; }
.muted { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; }
.chips span {
  font-size: 12px; font-weight: 500; color: var(--ink-2);
  padding: 5px 11px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line);
}

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 110px var(--pad) 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  overflow: hidden;
}
.hero-word {
  position: absolute; left: 50%; top: 12%;
  transform: translateX(-50%);
  font-size: clamp(120px, 27vw, 520px); font-weight: 800; letter-spacing: -.06em; line-height: .8;
  color: transparent;
  background: linear-gradient(180deg, rgba(28,31,58,.07), rgba(28,31,58,.02));
  -webkit-background-clip: text; background-clip: text;
  white-space: nowrap; user-select: none;
  will-change: transform;
}
.hero-figure {
  position: absolute; left: 50%; bottom: 0; margin: 0;
  transform: translateX(-50%);
  width: min(380px, 27vw);
  display: flex; justify-content: center;
}
.hero-video { width: 100%; height: auto; display: block; }
.hero-portrait {
  position: relative;
  width: 100%; aspect-ratio: 4 / 5.2;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  background: linear-gradient(180deg, #e9e6df, #d9d3c9);
  box-shadow: 0 -30px 80px -40px rgba(28,31,58,.35);
  animation: rise 1.4s var(--ease) both .1s;
}
.hero-portrait img {
  position: absolute; inset: auto 0 0 0; width: 100%; height: 88%; object-fit: cover; object-position: 50% 20%;
  filter: grayscale(1) contrast(1.05);
  transition: filter .8s var(--ease), transform 1.2s var(--ease);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18%);
          mask-image: linear-gradient(180deg, transparent 0, #000 18%);
}
.hero-portrait:hover img { filter: grayscale(0); transform: scale(1.03); }
.hero-status {
  position: absolute; left: 50%; top: 9%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px; border-radius: 999px;
  background: rgba(251,250,247,.9); border: 1px solid var(--line);
  font-size: 12px; font-weight: 500; white-space: nowrap;
}
.hero-status i { width: 7px; height: 7px; border-radius: 50%; background: #34c46b; box-shadow: 0 0 0 0 rgba(52,196,107,.5); animation: ping 2s infinite; }
.hero-pause {
  position: absolute; right: -60px; top: 0;
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: var(--ink); color: var(--paper);
}
.hero-copy { position: relative; z-index: 2; max-width: 38vw; animation: rise 1.1s var(--ease) both .25s; }
.eyebrow { margin: 0 0 14px; font: 500 12px/1 var(--mono); letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
.hero-title {
  margin: 0;
  font-size: clamp(46px, 6vw, 112px); font-weight: 700; line-height: .9; letter-spacing: -.055em;
}
.hero-title span { display: block; }
.hero-title em { font-family: var(--sans); font-style: normal; color: var(--f4); }
.hero-sub { margin: 18px 0 0; color: var(--muted); font-size: clamp(14px, 1.2vw, 17px); }
.hero-cta {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  animation: rise 1.1s var(--ease) both .4s;
}
.hero-cta .btn-dark { padding: 15px 24px; font-size: 15px; }
.hero-cta-row { display: flex; gap: 8px; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 3;
  width: 22px; height: 34px; border-radius: 12px; border: 1.5px solid rgba(251,250,247,.8);
  display: none;
}
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--paper); animation: cue 1.8s infinite; }

@keyframes rise { from { opacity: 0; transform: translateY(40px); } }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(52,196,107,0); } 100% { box-shadow: 0 0 0 0 rgba(52,196,107,0); } }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }
.hero-figure .hero-portrait { animation-name: rise; }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .9fr) minmax(0, .95fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.about .sec-title em { font-size: 1.12em; }

.idcard-wrap { position: relative; display: flex; flex-direction: column; align-items: center; padding-top: 140px; perspective: 1400px; }
.lanyard {
  position: absolute; top: -40px; left: 50%;
  width: 26px; height: 196px; margin-left: -13px;
  background: linear-gradient(90deg, #2b2e52, var(--ink) 50%, #2b2e52);
  border-radius: 0 0 4px 4px;
  overflow: hidden;
  transform-origin: 50% 0;
  animation: sway 6s ease-in-out infinite;
}
.lanyard::after {
  content: ""; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%);
  width: 34px; height: 18px; border-radius: 6px; background: linear-gradient(#d9d6cf, #b8b3aa);
}
.lanyard span {
  position: absolute; top: 12px; left: 50%;
  writing-mode: vertical-rl;
  transform: translateX(-50%);
  font: 500 8px/1 var(--mono); letter-spacing: .3em; color: rgba(255,255,255,.55); white-space: nowrap;
}
.idcard {
  position: relative;
  width: 290px; height: 430px;
  border: 0; padding: 0; background: none; cursor: pointer;
  transform-origin: 50% -140px;
  animation: sway 6s ease-in-out infinite;
  transform-style: preserve-3d;
}
.idcard-inner {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transition: transform .9s cubic-bezier(.3, 1.4, .4, 1);
}
.idcard[aria-pressed="true"] .idcard-inner { transform: rotateY(180deg); }
.idface {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center;
  border-radius: 20px;
  background: linear-gradient(180deg, #fdfcf9, #f0eee8);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: var(--shadow), 0 50px 70px -40px rgba(28,31,58,.45);
  overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  text-align: center;
}
.idface::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 45%, transparent 60%);
  transform: translateX(var(--shine, -60%));
  transition: transform .2s;
}
.idback { transform: rotateY(180deg); }
.id-head {
  align-self: stretch;
  display: flex; align-items: center; gap: 10px;
  padding: 16px 18px;
  background: var(--ink); color: var(--paper);
  text-align: left;
}
.id-head b { display: block; font-size: 12.5px; letter-spacing: .14em; }
.id-head small { display: block; font-size: 10.5px; opacity: .6; }
.id-photo {
  width: 132px; height: 150px; margin-top: 24px;
  border-radius: 16px; overflow: hidden;
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 1px var(--line), 0 12px 24px -12px rgba(28,31,58,.5);
}
.id-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.85) contrast(1.05); }
.id-name { margin-top: 18px; font-weight: 700; font-size: 17px; letter-spacing: .04em; }
.id-role { font-size: 12px; color: var(--muted); margin-top: 2px; }
.id-meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  width: 100%; padding: 18px 20px 0;
  font-size: 12.5px; font-weight: 600;
}
.id-meta small { display: block; font: 500 8.5px/1.6 var(--mono); letter-spacing: .18em; color: var(--muted); }
.barcode {
  margin-top: auto; margin-bottom: 18px;
  width: 70%; height: 30px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px);
  opacity: .85;
}
.id-back-list { display: grid; gap: 0; width: 100%; padding: 14px 22px; }
.id-back-list span { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.id-back-list small { font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.id-back-list b { font-size: 22px; letter-spacing: -.03em; }
.id-sign { margin-top: auto; font: italic 30px/1 var(--serif); color: var(--ink-2); }
.id-foot { margin: 8px 0 20px; font: 500 9px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.idcard-hint { margin: 26px 0 0; font: 500 10.5px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

@keyframes sway { 0%, 100% { transform: rotate(-2.2deg); } 50% { transform: rotate(2.2deg); } }

.facts-label { margin: 0 0 8px; font: 500 11px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.facts dl { margin: 0; }
.facts dl div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; font-weight: 500; font-size: 14.5px; text-align: right; }
.facts blockquote { margin: 30px 0 0; font: italic clamp(24px, 2.2vw, 32px)/1.15 var(--serif); color: var(--ink-2); }

/* ---------- Periodic table ---------- */
.ptable-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.pf {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--paper);
  font-size: 13.5px; font-weight: 500;
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.pf i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.pf:hover { transform: translateY(-1px); }
.pf[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.ptable-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: start; }
.ptable { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.el {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 10px 11px;
  border-radius: 14px; border: 0; cursor: pointer; text-align: left;
  background: var(--c); color: var(--t);
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 10px 18px -14px rgba(28,31,58,.7);
  transition: transform .35s var(--ease), opacity .35s, filter .35s, box-shadow .35s;
}
.el:hover, .el:focus-visible, .el.on { transform: translateY(-6px) scale(1.04); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 22px 30px -18px rgba(28,31,58,.8); z-index: 2; }
.el .n { font: 500 10px/1 var(--mono); opacity: .65; }
.el .s { font-size: clamp(20px, 2.3vw, 34px); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.el .nm { font-size: 10.5px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptable.filtering .el:not(.lit) { opacity: .22; filter: grayscale(1); transform: scale(.96); }

.ptable-inspect {
  position: sticky; top: 100px;
  display: flex; flex-direction: column; align-items: flex-start;
  aspect-ratio: 1 / 1.15;
  padding: 24px;
  border-radius: 26px;
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.pi-num { font: 500 13px/1 var(--mono); color: var(--muted); }
.pi-sym {
  margin-top: auto;
  font-size: 108px; font-weight: 800; letter-spacing: -.07em; line-height: .85;
  color: var(--pc, var(--ink));
  transition: color .3s;
}
.pi-name { margin-top: 14px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.pi-fam { margin-top: 4px; font: 500 10.5px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.pi-note { margin-top: 14px; font-size: 13.5px; color: var(--ink-2); min-height: 2.8em; }
.ptable-inspect.bump .pi-sym { animation: bump .45s var(--ease); }
@keyframes bump { from { opacity: 0; transform: translateY(10px) scale(.95); } }

/* ---------- Work slats ---------- */
.slats { display: flex; gap: 12px; height: clamp(560px, 70vh, 680px); }
.slat {
  position: relative;
  flex: 0 0 84px;
  border-radius: 28px;
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: flex .8s var(--ease), background .4s;
}
.slat.is-open { flex: 1 1 auto; }
.slat-tab {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 22px 0;
  border: 0; background: none; cursor: pointer;
  transition: opacity .3s;
}
.slat.is-open .slat-tab { opacity: 0; pointer-events: none; }
.slat-no { font: 500 11px/1 var(--mono); color: var(--muted); }
.slat-vt { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 20px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.slat-plus {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: var(--paper); font-size: 18px; font-weight: 400;
  transition: transform .3s var(--ease);
}
.slat-tab:hover .slat-plus { transform: rotate(90deg); }
.slat-body {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: minmax(340px, 1fr) minmax(0, .9fr);
  gap: 24px;
  padding: clamp(24px, 3vw, 44px);
  min-width: 760px;
  opacity: 0; transform: translateX(20px);
  transition: opacity .4s, transform .6s var(--ease);
  pointer-events: none;
}
.slat.is-open .slat-body { opacity: 1; transform: none; transition-delay: .25s; pointer-events: auto; }
.slat-text { display: flex; flex-direction: column; justify-content: center; }
.slat-tags { margin: 0; font: 500 11px/1.6 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.slat-tags span { margin-right: 14px; }
.slat h3 { margin: 16px 0 0; font-size: clamp(32px, 3.4vw, 50px); font-weight: 700; line-height: 1; letter-spacing: -.045em; }
.slat-text > p:not([class]) { margin: 16px 0 0; color: var(--ink-2); font-size: 16px; max-width: 460px; }
.slat ul { margin: 18px 0 0; padding: 0 0 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; font-size: 14px; color: var(--ink-2); }
.slat-text .btn { align-self: flex-start; margin-top: 26px; }
.slat-visual {
  position: relative;
  display: grid; place-items: center;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 40%, rgba(255,255,255,.9), transparent 60%),
    repeating-linear-gradient(0deg, var(--soft) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, var(--soft) 0 1px, transparent 1px 28px),
    #efede7;
  overflow: hidden;
}
.phone {
  width: min(230px, 62%); aspect-ratio: 9 / 18.5;
  border-radius: 34px; padding: 8px;
  background: #15172b;
  box-shadow: 0 40px 60px -30px rgba(28,31,58,.6), 0 0 0 1px rgba(255,255,255,.08) inset;
  transform: rotate(-4deg) translateY(10px);
  transition: transform .9s var(--ease);
}
.slat.is-open .phone { transform: rotate(-4deg) translateY(0); }
.slat-visual:hover .phone { transform: rotate(0) translateY(-6px); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 27px; }
.phone-icon { display: grid; place-items: center; background: linear-gradient(180deg, #1c1f3a, #2c2f55); }
.phone-icon img { width: 56%; height: auto; border-radius: 24px; box-shadow: 0 20px 40px -20px #000; }
.badge-ring {
  position: absolute; right: 22px; bottom: 22px;
  display: grid; place-items: center; align-content: center;
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  font-size: 26px; font-weight: 700; letter-spacing: -.04em; line-height: 1;
  box-shadow: 0 0 0 6px rgba(28,31,58,.08), 0 18px 30px -14px rgba(28,31,58,.7);
}
.badge-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 2px solid rgba(255,255,255,.18); border-top-color: var(--paper); }
.badge-ring small { font: 500 8.5px/1 var(--mono); letter-spacing: .2em; opacity: .65; margin-bottom: 4px; }

/* ---------- Rails ---------- */
.rails { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(30px, 5vw, 80px); align-items: start; }
.rails-intro { position: sticky; top: 120px; }
.rails .sec-title em { display: block; font-size: 1.1em; }
.rails-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rails-list li {
  position: relative;
  display: grid; grid-template-columns: 48px 1fr; gap: 2px 0;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  transition: color .35s, padding .45s var(--ease);
}
.rails-list li::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink); border-radius: 4px;
  transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform .45s var(--ease);
}
.rails-list li::after { content: "↗"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); opacity: 0; transition: opacity .3s; }
.rails-list li:hover { color: var(--paper); padding-left: 36px; }
.rails-list li:hover::before { transform: scaleY(1); }
.rails-list li:hover::after { opacity: 1; }
.rails-list span { grid-row: span 2; font: 500 12px/1.9 var(--mono); color: var(--muted); }
.rails-list b { font-size: clamp(18px, 1.7vw, 24px); font-weight: 600; letter-spacing: -.025em; }
.rails-list small { font-size: 13px; color: var(--muted); }
.rails-list li:hover small, .rails-list li:hover span { color: rgba(251,250,247,.6); }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 1180px; margin: 0 auto; }
.tl-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--line); border-radius: 2px; }
.tl-line i { position: absolute; inset: 0 0 auto 0; height: calc(var(--p, 0) * 100%); background: var(--ink); border-radius: 2px; }
.tl-item { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding: 34px 0; }
.tl-item::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--ink);
  transition: background .4s, transform .4s var(--ease);
}
.tl-item.in::before { background: var(--ink); transform: scale(1.2); }
.tl-year {
  justify-self: end;
  font-size: clamp(64px, 8.4vw, 132px); font-weight: 800; letter-spacing: -.06em; line-height: .9;
  color: var(--ink-2);
  text-shadow: 1px 1px 0 #c9c4bb, 2px 2px 0 #c2bdb3, 3px 3px 0 #bab4aa, 4px 4px 0 #b2aca1, 5px 5px 0 #aaa398, 6px 6px 0 #a29b8f, 10px 14px 24px rgba(28,31,58,.25);
  opacity: 0; transform: translateX(-40px) rotate(-2deg);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.tl-card {
  padding: 28px 30px; border-radius: var(--r);
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0; transform: translateX(40px);
  transition: opacity .9s var(--ease) .1s, transform .9s var(--ease) .1s;
}
.tl-item:nth-child(odd) .tl-year { order: 2; justify-self: start; transform: translateX(40px) rotate(2deg); }
.tl-item:nth-child(odd) .tl-card { order: 1; transform: translateX(-40px); }
.tl-item.in .tl-year, .tl-item.in .tl-card { opacity: 1; transform: none; }
.tl-meta { display: flex; justify-content: space-between; align-items: center; margin: 0 0 14px; font: 500 11.5px/1 var(--mono); color: var(--muted); }
.tag { padding: 6px 10px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 500 10px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; }
.tag-light { background: var(--f5); color: var(--ink); }
.tl-card h3 { margin: 0; font-size: clamp(22px, 2vw, 28px); letter-spacing: -.03em; line-height: 1.1; }
.tl-org { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.tl-card ul { margin: 14px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14.5px; }

/* ---------- Achievements ---------- */
.ach { position: relative; height: var(--ach-h, 300vh); }
.ach-sticky {
  position: sticky; top: 0;
  height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  padding: 90px 0 40px;
}
.ach-head { display: flex; justify-content: space-between; align-items: flex-end; padding: 0 var(--pad); margin-bottom: clamp(30px, 5vh, 56px); }
.ach-progress { width: 160px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; margin-bottom: 18px; }
.ach-progress i { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--ap, 0)); }
.ach-track { display: flex; gap: 22px; padding: 0 var(--pad); width: max-content; will-change: transform; }
.acard {
  position: relative;
  flex: 0 0 auto;
  width: clamp(280px, 30vw, 400px); height: clamp(300px, 46vh, 400px);
  display: flex; flex-direction: column;
  padding: 26px;
  border-radius: 26px;
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .5s var(--ease);
}
.acard:hover { transform: translateY(-8px) rotate(-.6deg); }
.acard-idx { position: absolute; right: 24px; top: 24px; font: 500 11px/1 var(--mono); color: var(--muted); }
.acard-ico {
  width: 62px; height: 62px; border-radius: 18px; overflow: hidden;
  display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--line);
  box-shadow: 0 12px 20px -14px rgba(28,31,58,.6);
}
.acard-ico img { width: 100%; height: 100%; object-fit: cover; }
.acard-ico-txt { font-size: 24px; font-weight: 800; letter-spacing: -.04em; }
.acard h3 { margin: 22px 0 0; font-size: 20px; letter-spacing: -.02em; }
.acard-k { margin: 6px 0 0; font: 500 10.5px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.acard-d { margin: 10px 0 0; font-size: 14px; color: var(--muted); max-width: 240px; }
.acard-num { margin: auto 0 0; align-self: flex-end; display: flex; align-items: baseline; gap: 4px; font-size: clamp(56px, 6vw, 88px); font-weight: 800; letter-spacing: -.06em; line-height: .9; }
.acard-num span, .acard-num small { color: var(--f4); }
.acard-num small { font-size: .42em; letter-spacing: -.02em; }
.acard-num span { font-size: .7em; }
.acard-end {
  width: auto; padding: 0 30px; background: none; border: 0; box-shadow: none;
  flex-direction: row; align-items: center; gap: 20px;
  font: italic clamp(34px, 3.4vw, 54px)/1 var(--serif); color: var(--ink-2);
}
.acard-end i { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 400 22px/1 var(--sans); }

/* ---------- Contact ---------- */
.contact { padding-bottom: 80px; }
.big-cta {
  margin: 0;
  font-size: clamp(64px, 13.5vw, 236px); font-weight: 800; line-height: .88; letter-spacing: -.065em;
}
.big-cta em { display: block; color: var(--f3); letter-spacing: -.03em; font-size: 1.02em; }
.split { display: inline-block; }
.split .ch {
  display: inline-block;
  transform: translateY(105%) rotate(6deg);
  opacity: 0;
  transition: transform 1s var(--ease), opacity .6s;
  transition-delay: calc(var(--i) * 32ms);
}
.split-mask { display: inline-block; overflow: hidden; padding: 0 .02em .08em; margin-bottom: -.08em; vertical-align: bottom; }
.big-cta.in .ch { transform: none; opacity: 1; }
.contact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 46px; }
.ccard {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between; gap: 34px;
  min-height: 150px; padding: 22px;
  border-radius: var(--r);
  background: var(--paper); border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.ccard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ccard small { font: 500 10.5px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.ccard b { font-size: clamp(15px, 1.3vw, 19px); font-weight: 600; letter-spacing: -.02em; word-break: break-word; }
.ccard i { position: absolute; right: 20px; top: 18px; font-style: normal; transition: transform .3s var(--ease); }
.ccard:hover i { transform: translate(3px, -3px); }
.ccard-dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ccard-dark small { color: rgba(251,250,247,.6); }

.foot {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 28px var(--pad) 36px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.foot a:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .about { grid-template-columns: 1fr 1fr; }
  .about-intro { grid-column: 1 / -1; }
  .ptable { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .pillnav { display: none; }
  .scrolled .brand-name { opacity: 1; transform: none; }
  .top { padding-top: 12px; padding-bottom: 12px; transition: background .3s; }
  .scrolled .top { background: rgba(245,244,239,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }

  .hero { grid-template-columns: 1fr; align-content: end; gap: 26px; padding-top: 90px; }
  .hero-word { top: 16%; font-size: 38vw; }
  .hero-figure { position: relative; left: auto; transform: none; width: min(300px, 78vw); justify-self: center; order: -1; }
  .hero-copy { max-width: none; }
  .hero-cta { align-items: flex-start; }

  .about { grid-template-columns: 1fr; }
  .idcard-wrap { order: 2; }
  .facts { order: 3; }

  .ptable-layout { grid-template-columns: 1fr; }
  .ptable { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ptable-inspect { display: none; }

  .slats { flex-direction: column; height: auto; }
  .slat { flex: 0 0 auto; height: 76px; transition: height .7s var(--ease); }
  .slat.is-open { height: auto; flex: 0 0 auto; }
  .slat-tab { flex-direction: row; padding: 0 22px; gap: 14px; }
  .slat-vt { writing-mode: horizontal-tb; transform: none; margin-right: auto; font-size: 18px; }
  .slat-body { position: relative; min-width: 0; grid-template-columns: 1fr; display: none; }
  .slat.is-open .slat-body { display: grid; }
  .slat-visual { height: 340px; }
  .slat ul { grid-template-columns: 1fr; }

  .rails { grid-template-columns: 1fr; }
  .rails-intro { position: static; }

  .tl-line { left: 8px; }
  .tl-item { grid-template-columns: 1fr; gap: 10px; padding: 22px 0 22px 34px; }
  .tl-item::before { left: 9px; top: 54px; }
  .tl-item .tl-year, .tl-item:nth-child(odd) .tl-year { order: 0; justify-self: start; font-size: 64px; }
  .tl-item .tl-card, .tl-item:nth-child(odd) .tl-card { order: 1; }

  .ach { height: auto; }
  .ach-sticky { position: relative; height: auto; padding: 100px 0 60px; }
  .ach-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .ach-track::-webkit-scrollbar { display: none; }
  .acard { scroll-snap-align: start; width: 78vw; height: 340px; }
  .ach-progress { display: none; }
}

@media (max-width: 560px) {
  .ptable { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .el { padding: 7px 8px; border-radius: 10px; }
  .el .nm { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .ccard { min-height: 110px; }
  .idcard { transform: scale(.92); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .reveal, .tl-year, .tl-card, .split .ch { opacity: 1 !important; transform: none !important; }
  .ach { height: auto; }
  .ach-sticky { position: relative; height: auto; }
  .ach-track { width: auto; overflow-x: auto; }
}
