/* RARE53 — Direction A · Element */
/* Fonts: Instrument Serif (OFL), IBM Plex Sans & Mono (OFL) — self-hosted */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --ink: #0E1F33;
  --navy: #1E3A5F;
  --navy-line: #2E4F78;
  --brass: #C8A24A;
  --brass-deep: #8C6A1F;
  --paper: #F5F3EE;
  --paper-line: #D5D2C8;
  --stone: #E3E6EA;
  --white: #FFFFFF;
  --line: #E2E0D8;
  --text: #2A3340;
  --muted: #53606E;
  --on-dark: #D4DAE0;
  --on-dark-2: #B8C2CC;
  --on-dark-3: #8A97A3;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1248px;
  --gutter: 24px;
  --section: clamp(72px, 9vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brass-deep); }
a:hover { color: #6B5117; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; }
p { margin: 0; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--brass); color: var(--ink); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.s-ink { background: var(--ink); color: var(--white); }
.s-navy { background: var(--navy); color: var(--white); }
.s-paper { background: var(--paper); }
.s-white { background: var(--white); }
.s-white.bordered { border-top: 1px solid var(--line); }

em, .em { font-style: italic; color: var(--brass-deep); }
.s-ink em, .s-navy em, .hero em, .page-hero em, .cta em, .strip em { color: var(--brass); }

.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-deep); }
.s-ink .eyebrow, .s-navy .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .cta .eyebrow { color: var(--brass); }
.h1 { font-size: clamp(48px, 6.6vw, 92px); line-height: 0.98; color: var(--white); }
.h2 { font-size: clamp(38px, 4.4vw, 62px); line-height: 1.03; }
.lead { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.6; }
.s-ink .lead, .hero .lead, .page-hero .lead, .cta .lead { color: var(--on-dark-2); }
.s-navy .lead, .s-navy p { color: var(--on-dark); }
.s-paper .lead, .s-white .lead { color: var(--text); }
.mono { font-family: var(--mono); }
.source { font-family: var(--mono); font-size: 11px; line-height: 1.6; letter-spacing: 0.04em; color: var(--muted); }
.s-ink .source, .s-navy .source { color: var(--on-dark-3); }

.stack { display: flex; flex-direction: column; gap: 20px; }
.head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end; margin-bottom: clamp(40px, 5vw, 56px); }
.head > .stack { grid-column: span 7; }
.head > p { grid-column: 9 / span 4; }
.head.narrow > .stack { grid-column: span 9; }

/* Buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 600; font-size: 16px; padding: 17px 28px; border-radius: 2px; border: 1px solid transparent; line-height: 1.2; }
.btn-primary { background: var(--brass); color: var(--ink); }
.btn-primary:hover { background: #D6B25D; color: var(--ink); }
.btn-outline { border-color: var(--muted); color: var(--white); font-weight: 500; }
.btn-outline:hover { border-color: var(--white); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.more { display: inline-block; font-weight: 600; font-size: 16px; padding: 10px 0; text-decoration: none; border-bottom: 1px solid currentColor; color: var(--brass-deep); }
.s-ink .more, .s-navy .more { color: var(--brass); }

/* Monogram & element tiles */
.mono-tile { display: inline-flex; align-items: center; justify-content: center; gap: 1px; border: 1.5px solid var(--brass); flex-shrink: 0; }
.mono-tile .r { font-family: var(--serif); line-height: 1; color: var(--white); }
.mono-tile .n { font-family: var(--mono); line-height: 1; color: var(--brass); align-self: flex-end; }
.mono-tile.sm { width: 40px; height: 40px; } .mono-tile.sm .r { font-size: 26px; } .mono-tile.sm .n { font-size: 9px; margin-bottom: 8px; }
.mono-tile.xs { width: 28px; height: 28px; } .mono-tile.xs .r { font-size: 18px; } .mono-tile.xs .n { font-size: 7px; margin-bottom: 6px; }

.tile { background: var(--navy); color: var(--white); display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 1; padding: 8% 9%; }
.tile .num { font-family: var(--mono); color: var(--brass); font-size: clamp(11px, 1vw, 14px); }
.tile .sym { font-family: var(--serif); line-height: 0.75; font-size: clamp(48px, 5.6vw, 82px); }
.tile .name { font-family: var(--mono); color: var(--on-dark-2); font-size: clamp(9px, 0.8vw, 11px); }
.tile.outline { background: transparent; border: 1.5px solid var(--brass-deep); color: var(--ink); }
.tile.outline .num { color: var(--brass-deep); }
.tile.outline .name { color: var(--muted); }

/* Header */
.site-header { background: var(--ink); border-bottom: 1px solid var(--navy); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .word { font-family: var(--serif); font-size: 28px; color: var(--white); line-height: 1; }
.brand .word span { color: var(--brass); }
.nav { display: flex; align-items: center; gap: 36px; font-size: 15px; }
.nav a { color: var(--on-dark); text-decoration: none; padding: 6px 0; }
.nav a:hover { color: var(--white); }
.nav a[aria-current="page"] { color: var(--brass); border-bottom: 1px solid var(--brass); }
.nav .btn { color: var(--ink); padding: 12px 22px; border-bottom: none; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; border: 1px solid var(--navy); display: flex; align-items: center; justify-content: center; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: 54px; background: var(--ink); border: 1px solid var(--navy); min-width: 240px; padding: 12px 20px 20px; display: flex; flex-direction: column; }
.menu-panel a { color: var(--white); text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--navy); font-size: 17px; }
.menu-panel .btn { margin-top: 16px; text-align: center; border-bottom: none; color: var(--ink); }

/* Hero */
.hero { background: var(--ink); color: var(--white); }
.hero .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; min-height: min(760px, calc(100vh - 80px)); padding-top: 72px; padding-bottom: 88px; }
.hero-copy { grid-column: span 7; display: flex; flex-direction: column; gap: 28px; }
.hero-copy .lead { max-width: 640px; }
.hero-art { grid-column: 9 / span 4; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-mark { grid-column: span 2; border: 1.5px solid var(--brass); padding: 20px 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; aspect-ratio: 354 / 244; }
.hero-mark .rn { display: flex; align-items: flex-end; gap: 6px; }
.hero-mark .r { font-family: var(--serif); font-size: clamp(110px, 11vw, 170px); line-height: 0.78; }
.hero-mark .n { font-family: var(--mono); font-size: clamp(22px, 2.3vw, 34px); color: var(--brass); line-height: 1; }
.hero-mark .cap { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; color: var(--brass); }

.page-hero { background: var(--ink); color: var(--white); padding: clamp(72px, 8vw, 104px) 0 clamp(80px, 9vw, 112px); }
.page-hero .wrap > .stack { max-width: 900px; gap: 26px; }

/* Stats */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.stat { border-top: 2px solid var(--ink); padding-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.stat .v { font-family: var(--serif); font-size: clamp(64px, 7vw, 96px); line-height: 0.9; }
.stat .l { font-size: 18px; line-height: 1.5; color: var(--text); }
.stat .source { border-top: 1px solid var(--paper-line); padding-top: 10px; }
.s-navy .stat, .s-ink .stat { border-top-color: var(--brass); }
.s-navy .stat .l, .s-ink .stat .l { color: var(--on-dark); }
.s-navy .stat .source, .s-ink .stat .source { border-top-color: var(--navy-line); }

/* Split layout */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.split > .left { grid-column: span 5; display: flex; flex-direction: column; gap: 26px; }
.split > .right { grid-column: 7 / span 6; }
.split.center { align-items: center; }

.rows { display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; padding: 26px 0; border-top: 1px solid var(--navy-line); }
.row:last-child { border-bottom: 1px solid var(--navy-line); }
.row .k { font-family: var(--mono); font-size: 14px; color: var(--brass); }
.row h3 { font-family: var(--sans); font-size: 21px; font-weight: 600; margin-bottom: 6px; }
.row p { font-size: 16px; }

/* Cards */
.obj { border-top: 3px solid var(--navy); padding-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.obj .k { font-family: var(--mono); font-size: 12px; color: var(--brass-deep); letter-spacing: 0.06em; }
.obj h3 { font-size: 32px; line-height: 1.08; }
.obj p { font-size: 16px; color: var(--muted); }

.gates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--paper-line); background: var(--white); }
.gates > div { padding: 36px 32px; display: flex; flex-direction: column; gap: 14px; }
.gates > div + div { border-left: 1px solid var(--paper-line); }
.gates .n { font-family: var(--serif); font-size: 64px; line-height: 0.9; color: var(--navy); }
.gates .t { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--brass-deep); text-transform: uppercase; }
.gates .q { font-family: var(--serif); font-size: 30px; font-style: italic; }

.person { display: flex; flex-direction: column; gap: 14px; }
.person img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 15%; background: var(--stone); }
.person h3 { font-size: 34px; line-height: 1; margin-top: 4px; }
.person .role { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--brass-deep); }
.person p { font-size: 16px; color: var(--muted); }
.person .brings { border-top: 1px solid var(--line); padding-top: 14px; }
.person .brings .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--brass-deep); }
.person .brings p { color: var(--ink); font-weight: 500; }
.team-foot { margin-top: 40px; }

/* CTA + footer */
.cta { background: var(--ink); color: var(--white); padding: var(--section) 0 40px; }
.cta-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end; }
.cta-grid > .stack { grid-column: span 8; gap: 24px; }
.cta-grid > .contact { grid-column: span 4; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cta .h2 { font-size: clamp(42px, 5vw, 72px); line-height: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0; padding: 0; }
.chips li { border: 1px solid var(--navy-line); padding: 11px 18px; font-size: 15px; }
.email { font-family: var(--mono); font-size: 14px; color: var(--on-dark-2); text-decoration: none; }
.site-footer { margin-top: clamp(64px, 8vw, 96px); border-top: 1px solid var(--navy); padding-top: 28px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; font-size: 13px; color: var(--on-dark-3); }
.site-footer .brand .word { font-size: 22px; }
.site-footer nav { display: flex; gap: 28px; }
.site-footer nav a { color: var(--on-dark-2); text-decoration: none; }

/* Market */
.uses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; }
.uses li { display: flex; gap: 12px; align-items: baseline; border-top: 1px solid var(--paper-line); padding-top: 12px; }
.uses li span { font-family: var(--mono); font-size: 12px; color: var(--brass-deep); }
ul.clean { list-style: none; margin: 0; padding: 0; }
.tiles-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 200px)); gap: 16px; justify-content: end; }

.bars { border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.bar { display: grid; grid-template-columns: 240px minmax(0, 1fr) 120px; gap: 24px; align-items: center; padding: 22px 0; border-top: 1px solid var(--line); }
.bar .label { font-size: 20px; font-weight: 500; }
.bar .track { height: 44px; background: #EEF0F2; }
.bar .fill { height: 100%; background: var(--navy); }
.bar .val { font-family: var(--serif); font-size: 56px; line-height: 1; text-align: right; }

.timeline { border-bottom: 1px solid var(--paper-line); margin-bottom: 20px; }
.event { display: grid; grid-template-columns: 180px 300px minmax(0, 1fr); gap: 32px; padding: 26px 0; border-top: 1px solid var(--paper-line); align-items: baseline; }
.event .d { font-family: var(--mono); font-size: 14px; letter-spacing: 0.08em; color: var(--brass-deep); }
.event h3 { font-size: 30px; line-height: 1.1; }
.event p { color: var(--muted); }

.fit h3 { font-size: 32px; line-height: 1.1; color: var(--white); margin-bottom: 12px; }
.fit > div { border-top: 1px solid var(--navy-line); padding-top: 22px; }
.fit p { font-size: 16px; color: var(--on-dark); }

.sources { background: var(--ink); color: var(--white); padding: 64px 0 0; }
.sources ol { list-style: none; margin: 20px 0 0; padding: 0; }
.sources li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 24px; padding: 14px 0; border-top: 1px solid var(--navy); font-size: 14px; }
.sources li span { font-family: var(--mono); color: var(--brass); }
.sources a { color: var(--white); text-decoration: none; border-bottom: 1px solid var(--navy-line); }
.sources a:hover { border-bottom-color: var(--brass); color: var(--white); }

/* Approach */
.split > .p-left { grid-column: span 3; }
.split > .p-right { grid-column: 4 / span 9; gap: 28px; }
.quote { font-family: var(--serif); font-size: clamp(44px, 5.4vw, 76px); line-height: 1.02; }
.stage { display: grid; grid-template-columns: 160px minmax(0, 1fr) 380px; gap: 40px; padding: 48px 0; border-top: 1px solid var(--line); }
.stages { border-bottom: 1px solid var(--line); }
.stage .n { font-family: var(--serif); font-size: 110px; line-height: 0.8; color: var(--navy); }
.stage .meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; }
.stage .meta .t { color: var(--brass-deep); }
.stage .meta .dur { color: var(--muted); }
.stage h3 { font-size: 40px; line-height: 1.05; font-style: italic; margin: 14px 0; }
.stage p { color: var(--muted); }
.stage .outs .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--brass-deep); padding-bottom: 8px; }
.stage .outs li { padding: 12px 0; border-top: 1px solid var(--line); }

.gate-card { border: 1px solid var(--navy-line); padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; }
.gate-card.key { border: 1.5px solid var(--brass); }
.gate-card .k { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--brass); }
.gate-card h3 { font-size: 30px; line-height: 1.1; }
.gate-card p { font-size: 16px; }

.ws { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ws > div { background: var(--white); padding: 28px; display: flex; gap: 20px; align-items: flex-start; }
.sym-box { width: 64px; height: 64px; flex-shrink: 0; background: var(--navy); padding: 6px 8px; display: flex; flex-direction: column; justify-content: space-between; }
.sym-box .num { font-family: var(--mono); font-size: 9px; color: var(--brass); }
.sym-box .s { font-family: var(--serif); font-size: 28px; line-height: 0.8; color: var(--white); }
.ws h3 { font-size: 26px; line-height: 1.1; margin-bottom: 8px; }
.ws p { font-size: 16px; color: var(--muted); }

.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.col { display: flex; flex-direction: column; gap: 12px; border-top: 2px solid var(--ink); padding-top: 22px; }
.col h3 { font-size: 32px; line-height: 1.08; }
.col p { color: var(--muted); }
.col .k { font-family: var(--mono); font-size: 13px; color: var(--brass-deep); }
.s-paper .col { border-top: 1px solid var(--paper-line); }

.strip { background: var(--navy); color: var(--white); padding: 44px 0; }
.strip .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; }
.strip .t { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 34px); }
.strip .t span { color: var(--brass); }

.pw { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pw > div { background: var(--white); border: 1px solid var(--line); padding: 24px; display: flex; gap: 18px; align-items: center; }
.pw .s { width: 56px; height: 56px; flex-shrink: 0; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 26px; }
.pw h3 { font-size: 26px; line-height: 1.1; }

/* 404 */
.nf { min-height: 70vh; display: flex; align-items: center; }

/* Responsive */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws, .pw { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage { grid-template-columns: 120px minmax(0, 1fr); }
  .stage .outs { grid-column: 2; }
  .event { grid-template-columns: 150px minmax(0, 1fr); }
  .event p { grid-column: 2; }
  .hero-art { grid-column: 8 / span 5; }
}
@media (max-width: 900px) {
  :root { --gutter: 16px; }
  .nav { display: none; }
  .menu { display: block; }
  .site-header .wrap { height: 64px; }
  .brand .word { font-size: 24px; }
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; padding-top: 48px; padding-bottom: 64px; gap: 40px; }
  .hero-copy, .hero-art { grid-column: 1 / -1; }
  .hero-art { max-width: 380px; }
  .head, .split, .cta-grid { grid-template-columns: 1fr; }
  .head > .stack, .head > p, .head.narrow > .stack, .split > .left, .split > .right, .split > .p-left, .split > .p-right, .cta-grid > .stack, .cta-grid > .contact { grid-column: 1 / -1; }
  .head { gap: 20px; }
  .split { gap: 40px; }
  .grid-3, .cols-3, .gates { grid-template-columns: 1fr; }
  .gates > div + div { border-left: none; border-top: 1px solid var(--paper-line); }
  .tiles-2 { justify-content: start; grid-template-columns: repeat(2, minmax(0, 160px)); }
  .bar { grid-template-columns: 1fr auto; gap: 10px 16px; }
  .bar .track { grid-column: 1 / -1; grid-row: 2; height: 28px; }
  .bar .val { font-size: 40px; }
}
@media (max-width: 640px) {
  .grid-4, .ws, .pw, .uses { grid-template-columns: 1fr; }
  .stage { grid-template-columns: 1fr; gap: 16px; padding: 36px 0; }
  .stage .n { font-size: 72px; }
  .stage .outs { grid-column: 1; }
  .event { grid-template-columns: 1fr; gap: 8px; }
  .event p { grid-column: 1; }
  .btn-row .btn { width: 100%; text-align: center; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
