/* ==========================================================
   MedaliX — corporate one-page site
   Brand tokens per docs/MEDALIX_BRAND_GUIDE.md
   ========================================================== */

:root {
  --navy: #0A2E5C;
  --navy-deep: #071F42;
  --blue: #1D5BBF;
  --gold: #C8A24E;
  --sky: #E8F1FB;
  --ink: #1A2332;
  --slate: #5A6B82;
  --border: #E5EAF1;
  --bg: #F7F9FC;
  --success: #1E9E6A;
  --warning: #E8A13C;
  --danger: #D64545;

  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
          "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --shell: 1180px;
  --gut: clamp(20px, 5vw, 48px);
  --pad-y: clamp(84px, 10vw, 148px);
  --head-h: 74px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ── base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.75;
  letter-spacing: -.011em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.24; letter-spacing: -.028em; font-weight: 700; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
a { color: var(--blue); text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  border-radius: 3px;
}
.skip:focus { left: 16px; }

.paren { color: var(--slate); font-weight: 400; }

/* ── reveal on scroll ────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
}
.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity .8s var(--ease) var(--d, 0ms),
              transform .8s var(--ease) var(--d, 0ms);
}

/* ── header ──────────────────────────────────────────── */
.site-head {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--head-h);
  /* opaque white — a translucent bar let body copy ghost through behind the logo */
  background: #fff;
  /* Gold 1px edge + elevation. A neutral hairline reads inconsistently because
     sections alternate between #fff and cloud (#F7F9FC); gold holds on both.
     Drawn as a box-shadow so it never shifts layout. Counts as the guide's
     sanctioned "구분 장식" use of gold — 1px, well inside the 10% budget. */
  box-shadow: 0 1px 0 var(--gold);
  transition: box-shadow .35s var(--ease);
}
.site-head.is-solid {
  box-shadow: 0 1px 0 var(--gold),
              0 1px 2px rgba(10, 46, 92, .05),
              0 10px 26px -14px rgba(10, 46, 92, .22);
}

.head-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: block; flex: none; }
.brand img { height: 27px; width: auto; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav > a {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -.01em;
  transition: color .25s var(--ease);
}
.nav > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -7px;
  width: 100%; height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav > a:not(.nav-cta):hover::after,
.nav > a.active:not(.nav-cta)::after { transform: scaleX(1); }
.nav > a:hover { color: var(--blue); }

.nav-cta {
  padding: 9px 20px;
  border-radius: 2px;
  background: var(--blue);
  border: 1px solid var(--blue);
  color: #fff !important;
}
.nav-cta:hover { background: #164a9e; border-color: #164a9e; }

.burger {
  display: none;
  width: 44px; height: 44px;
  margin-right: -10px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.burger span {
  display: block;
  width: 22px; height: 1.5px;
  margin: 5px auto;
  background: var(--navy);
  transition: transform .3s var(--ease), opacity .2s var(--ease), background .3s var(--ease);
}

/* ── buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 15px 30px;
  border-radius: 2px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -.012em;
  transition: background .28s var(--ease), border-color .28s var(--ease),
              transform .28s var(--ease), color .28s var(--ease);
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #164a9e; transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .35);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .6); transform: translateY(-2px); }

/* ── dark surfaces ───────────────────────────────────── */
.dark {
  position: relative;
  isolation: isolate;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: #fff;
  overflow: clip;
}
.dark::after {   /* grain */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .3;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── hero ────────────────────────────────────────────── */
.hero {
  padding: calc(var(--head-h) + clamp(72px, 11vh, 120px)) 0 clamp(84px, 11vh, 128px);
  min-height: min(94svh, 900px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Oversized brand mark, centred in the hero and kept fully inside the frame —
   a symbol cropped mid-form reads as an accident rather than a watermark.
   Opacity is set so the headline stays clean where the two overlap. */
.watermark {
  position: absolute;
  z-index: -1;
  left: 50%;
  /* the hero box starts behind the fixed header, so half the header height is
     added back to centre the mark optically within the visible navy area */
  top: calc(50% + var(--head-h) / 2);
  translate: -50% -50%;
  opacity: .06;
  pointer-events: none;
}
.watermark svg { width: min(620px, 50vw); height: auto; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, .88fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 40px; height: 2px;
  background: var(--gold);
  flex: none;
}
.eyebrow.gold { color: var(--gold); }

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -.038em;
  line-height: 1.16;
}
.hero h1 .mark {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
}
.hero h1 .mark::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 4px;
  background: var(--gold);
  transform-origin: left;
  animation: swipe 1.1s var(--ease) .55s both;
}
@keyframes swipe { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero-lede {
  margin-top: 30px;
  max-width: 40ch;
  font-size: clamp(16.5px, 1.35vw, 18.5px);
  color: rgba(255, 255, 255, .78);
  line-height: 1.85;
}

.hero-btns { margin-top: 42px; display: flex; flex-wrap: wrap; gap: 12px; }

/* hero fade-in stagger */
.hero-copy > *, .spec {
  animation: rise .9s var(--ease) var(--d, 0ms) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* spec sheet */
.spec {
  border: 1px solid rgba(255, 255, 255, .16);
  border-top: 2px solid var(--gold);
  background: rgba(7, 31, 66, .34);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 26px 28px 8px;
}
.spec-cap {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  padding-bottom: 16px;
}
.spec dl > div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  align-items: baseline;
}
.spec dt {
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, .55);
  letter-spacing: -.005em;
}
.spec dd { font-size: 15px; font-weight: 600; color: #fff; }
.spec dd .mono { font-size: 13.5px; font-weight: 500; color: rgba(255, 255, 255, .72); }

.scroll-cue {
  margin: clamp(48px, 7vh, 84px) auto 0;
  text-align: center;
}
.scroll-cue span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .42);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-cue span::after {
  content: "";
  width: 1px; height: 40px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .38), transparent);
  animation: drop 2.4s var(--ease) infinite;
}
@keyframes drop {
  0%, 100% { transform: scaleY(.4); transform-origin: top; opacity: .4; }
  50%      { transform: scaleY(1);  transform-origin: top; opacity: 1; }
}

/* ── section frame ───────────────────────────────────── */
.sec { padding: var(--pad-y) 0; }
.sec-alt { background: #fff; border-block: 1px solid var(--border); }

.sec-head { margin-bottom: clamp(48px, 6vw, 76px); }
.sec-head .idx {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.sec-head .idx::after {
  content: "";
  height: 1px;
  flex: 1;
  max-width: 76px;
  background: var(--border);
}
.dark .sec-head .idx::after { background: rgba(255, 255, 255, .2); }

.sec-head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.65rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.034em;
}
.dark .sec-head h2 { color: #fff; }

.sec-head .sec-sub {
  margin-top: 14px;
  font-size: clamp(15.5px, 1.2vw, 17px);
  color: var(--slate);
}
.dark .sec-head .sec-sub { color: rgba(255, 255, 255, .66); }
.dark .paren { color: rgba(255, 255, 255, .55); }

/* ── prose ───────────────────────────────────────────── */
.prose {
  max-width: 68ch;
  display: grid;
  gap: 22px;
  font-size: clamp(16px, 1.25vw, 17.5px);
  color: #2c3a4e;
  line-height: 1.88;
}
/* a <p> carrying .prose must stay a normal text flow, not a grid container */
p.prose { display: block; }
.prose strong { font-weight: 600; color: var(--navy); }
.prose-dark { color: rgba(255, 255, 255, .76); max-width: 70ch; }
.prose-dark strong { color: #fff; font-weight: 600; }

/* ── pillars (01) ────────────────────────────────────── */
.pillars {
  margin-top: clamp(52px, 6vw, 80px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.pillar {
  position: relative;
  background: #fff;
  padding: clamp(28px, 3vw, 40px) clamp(24px, 2.6vw, 34px) clamp(32px, 3.4vw, 42px);
  transition: background .3s var(--ease);
}
.pillar::before {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  width: 100%; height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.pillar:hover::before { transform: scaleX(1); }
.pillar:hover { background: #fcfdff; }

.pillar-ico {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 3px;
  background: var(--sky);
  color: var(--navy);
  margin-bottom: 22px;
}
.pillar-ico svg { width: 23px; height: 23px; }
.pillar h3 { font-size: 18.5px; color: var(--navy); margin-bottom: 12px; letter-spacing: -.026em; }
.pillar p { font-size: 15.5px; color: var(--slate); line-height: 1.8; }

/* ── axes (02) ───────────────────────────────────────── */
.axes { display: grid; }
.axis {
  display: grid;
  grid-template-columns: clamp(96px, 13vw, 168px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(34px, 4vw, 52px) 0;
  border-top: 1px solid var(--border);
}
.axis:last-child { border-bottom: 1px solid var(--border); }

.axis-no {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  font-weight: 400;
  line-height: 1;
  color: var(--border);
  letter-spacing: -.03em;
  transition: color .4s var(--ease);
}
.axis:hover .axis-no { color: var(--gold); }

.axis-body { max-width: 62ch; }
.axis-body h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--navy);
  margin-bottom: 16px;
  letter-spacing: -.03em;
}
.axis-body p { color: #46556c; font-size: clamp(15.5px, 1.2vw, 17px); line-height: 1.85; }
.axis-body strong { font-weight: 600; color: var(--navy); }

.axis-tags {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.axis-tags span {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  background: var(--sky);
  padding: 6px 13px;
  border-radius: 2px;
  letter-spacing: -.01em;
}

/* ── HAIOS stack (03) ────────────────────────────────── */
.stack { margin: clamp(48px, 6vw, 72px) 0 clamp(44px, 5vw, 64px); }
.stack-cap {
  font-size: 12.5px;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 14px;
}
.stack-cap .mono { color: var(--gold); letter-spacing: .16em; font-weight: 600; }

.stack-box {
  border: 1px solid rgba(255, 255, 255, .18);
  padding: 12px;
  display: grid;
  gap: 10px;
  background: rgba(255, 255, 255, .03);
}
.layer {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 20px;
  padding: 20px clamp(18px, 2.4vw, 28px);
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .04);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.layer:hover { background: rgba(255, 255, 255, .07); }
.layer-owner {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  min-width: 104px;
}
.layer-name { font-size: clamp(15px, 1.5vw, 17.5px); font-weight: 600; color: #fff; letter-spacing: -.02em; }

.layer-key {
  background: rgba(200, 162, 78, .1);
  border-color: rgba(200, 162, 78, .5);
  border-left: 3px solid var(--gold);
}
.layer-key:hover { background: rgba(200, 162, 78, .15); }
.layer-key .layer-owner { color: var(--gold); }

.stack-note {
  margin-top: 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, .6);
}
.stack-note span { color: var(--gold); margin-right: 6px; }

/* roles */
.roles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 2.4vw, 28px);
}
.role {
  padding: clamp(26px, 3vw, 36px);
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .03);
}
.role-own { border-top: 2px solid var(--gold); background: rgba(255, 255, 255, .06); }
.role-tag {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  margin-bottom: 16px;
}
.role-own .role-tag { color: var(--gold); }
.role h3 {
  font-size: clamp(1.15rem, 1.9vw, 1.4rem);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 22px;
}
.role h3 span {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, .62);
  letter-spacing: -.012em;
}
.role ul { display: grid; gap: 13px; }
.role li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.78;
  color: rgba(255, 255, 255, .78);
}
.role li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 7px; height: 1.5px;
  background: var(--gold);
}

.haios-out {
  margin-top: clamp(40px, 5vw, 60px);
  padding-top: clamp(28px, 3vw, 38px);
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: clamp(16px, 1.5vw, 19px);
  color: rgba(255, 255, 255, .8);
  text-align: center;
  line-height: 1.8;
}
.haios-out strong { color: var(--gold); font-weight: 700; }

/* ── roadmap (04) ────────────────────────────────────── */
.rail-legend {
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--slate);
  margin-bottom: 26px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 26px);
}
.stage { position: relative; padding-top: 30px; }
.stage-rail {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--border);
}
.stage-rail .node {
  position: absolute;
  left: 0; top: 50%;
  translate: 0 -50%;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--slate);
}
.stage.is-now .stage-rail { background: var(--gold); }
.stage.is-now .stage-rail .node { border-color: var(--gold); background: var(--gold); }
.stage.is-now .stage-rail .node::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  opacity: 0;
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0%   { opacity: .9; transform: scale(.6); }
  70%  { opacity: 0;  transform: scale(1.5); }
  100% { opacity: 0;  transform: scale(1.5); }
}

.stage-meta { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.stage-no { font-size: 13px; font-weight: 600; color: var(--navy); }
.stage.is-now .stage-no { color: var(--gold); }
.stage-when { font-size: 12.5px; color: var(--slate); }

.stage h3 {
  font-size: clamp(16.5px, 1.5vw, 19px);
  color: var(--navy);
  margin-bottom: 16px;
  letter-spacing: -.028em;
}
.stage ul { display: grid; gap: 11px; }
.stage li {
  position: relative;
  padding-left: 14px;
  font-size: 14.5px;
  line-height: 1.76;
  color: var(--slate);
}
.stage li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 5px; height: 1.5px;
  background: var(--blue);
}
.stage-badge {
  display: inline-block;
  margin-top: 18px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #7a5f1c;
  background: rgba(200, 162, 78, .18);
  border: 1px solid rgba(200, 162, 78, .45);
  padding: 4px 11px;
  border-radius: 2px;
}

/* ── closing band ────────────────────────────────────── */
.closing {
  background: var(--sky);
  padding: clamp(64px, 8vw, 104px) 0;
  border-block: 1px solid #d5e5f8;
}
.closing p {
  max-width: 44ch;
  margin-inline: auto;
  text-align: center;
  font-size: clamp(18px, 2.3vw, 27px);
  font-weight: 500;
  line-height: 1.62;
  letter-spacing: -.032em;
  color: var(--navy);
}
.closing strong { font-weight: 800; }

/* ── contact ─────────────────────────────────────────── */
.sec-contact { background: #fff; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.sec-contact .sec-head { margin-bottom: 0; }

.contact-list { border-top: 1px solid var(--border); }
.contact-list > div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.contact-list dt { font-size: 13.5px; font-weight: 600; color: var(--slate); }
.contact-list dd {
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -.02em;
}
.contact-list dd a { color: var(--navy); border-bottom: 1px solid transparent; transition: color .25s, border-color .25s; }
.contact-list dd a:hover { color: var(--blue); border-bottom-color: var(--blue); }

/* ── footer ──────────────────────────────────────────── */
.site-foot {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, .7);
  padding: clamp(52px, 6vw, 76px) 0 28px;
}
.foot-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: clamp(36px, 4vw, 52px);
}
.foot-brand img { height: 30px; width: auto; }
.foot-brand p { margin-top: 16px; font-size: 14.5px; color: rgba(255, 255, 255, .55); }
.foot-info { display: grid; gap: 8px; font-size: 14.5px; text-align: right; }
.foot-info a { color: rgba(255, 255, 255, .82); }
.foot-info a:hover { color: var(--gold); }
.foot-info .sep { margin: 0 9px; color: rgba(255, 255, 255, .3); }

.foot-base {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 12.5px;
  color: rgba(255, 255, 255, .42);
}
.to-top { color: rgba(255, 255, 255, .6); font-size: 13px; }
.to-top:hover { color: var(--gold); }

/* ── responsive ──────────────────────────────────────── */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .spec { max-width: 520px; }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
}

@media (max-width: 900px) {
  .rules i:nth-child(n+3) { display: none; }
  .pillars { grid-template-columns: 1fr; }
  .roles { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .foot-grid { flex-direction: column; }
  .foot-info { text-align: left; }
}

@media (max-width: 780px) {
  :root { --head-h: 64px; }
  .burger { display: block; }

  .nav {
    position: fixed;
    inset: var(--head-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gut) 22px;
    background: var(--navy-deep);
    /* the panel starts exactly on the header's gold edge and would cover it */
    border-top: 1px solid var(--gold);
    border-bottom: 1px solid rgba(255, 255, 255, .14);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
  }
  body.nav-open .nav { opacity: 1; transform: none; visibility: visible; }
  .nav > a,
  .site-head.is-solid .nav > a {
    color: rgba(255, 255, 255, .88);
    font-size: 16px;
    padding: 15px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }
  .nav > a:not(.nav-cta)::after { display: none; }
  .nav-cta,
  .site-head.is-solid .nav-cta {
    margin-top: 18px;
    text-align: center;
    background: var(--blue);
    border-color: var(--blue);
    padding: 15px 20px;
  }

  body.nav-open .burger span:first-child { transform: translateY(3.25px) rotate(45deg); }
  body.nav-open .burger span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  /* stays navy — the header bar is white even with the panel open */

  .watermark { display: none; }   /* too dominant at phone width */
  .axis { grid-template-columns: 1fr; gap: 4px; }
  .axis-no { font-size: 2rem; }
  .timeline { grid-template-columns: 1fr; }
  .stage { padding-top: 26px; }
  .layer { flex-direction: column; gap: 8px; }
  .layer-owner { min-width: 0; }
  .btn { width: 100%; justify-content: center; }
  .hero-btns { flex-direction: column; }
  .contact-list > div { grid-template-columns: 1fr; gap: 6px; }
}

/* ── a11y / print ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-head, .scroll-cue, .watermark, .to-top { display: none !important; }
  .dark, .site-foot { background: #fff !important; color: #000 !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
