/* GRBBN — gothic edition. Classical tokens (Cormorant Garamond / Lora, gold as stroke)
   set on a deep colophon ground. One stylesheet, no build step. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("fonts/lora-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("fonts/lora-italic-latin.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ink: #171614;
  --ink-2: #1d1b19;
  --mat: #232120;
  --paper: #f3f2f2;
  --paper-60: rgba(243, 242, 242, 0.62);
  --paper-40: rgba(243, 242, 242, 0.42);
  --gold: #b68235;
  --gold-lt: #e1ad66;
  --gold-15: rgba(182, 130, 53, 0.15);
  --gold-35: rgba(182, 130, 53, 0.35);
  --rule: rgba(243, 242, 242, 0.14);

  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Lora", Georgia, serif;

  --space-1: 4.6px;
  --space-2: 9.2px;
  --space-3: 13.8px;
  --space-4: 18.4px;
  --space-6: 27.6px;
  --space-8: 36.8px;
  --radius: 4px;

  --pad-x: clamp(20px, 5vw, 80px);
  --pad-y: clamp(56px, 7vw, 112px);
  --max: 1360px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 78px; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
figure { margin: 0; }
::selection { background: rgba(182, 130, 53, 0.32); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0;
}

a { color: var(--gold-lt); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: #facb8d; text-decoration: underline; }

p { margin: 0 0 var(--space-3); }
p:last-child { margin-bottom: 0; }

.wrap { max-width: var(--max); margin: 0 auto; }
.section { padding: var(--pad-y) var(--pad-x); position: relative; overflow: hidden; }
.section--alt { background: var(--ink-2); }

/* — kicker + tracery — */
.kicker {
  display: flex; align-items: center; gap: 16px;
  font-size: 11.5px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold-lt); font-variant-numeric: tabular-nums;
}
.kicker::before { content: ""; width: clamp(28px, 4vw, 64px); height: 1px; background: var(--gold); }

.tracery { display: flex; align-items: center; gap: 18px; margin: clamp(36px, 4.5vw, 68px) 0; }
.tracery span { width: 9px; height: 9px; border: 1px solid var(--gold); transform: rotate(45deg); }
.tracery span.sm { width: 5px; height: 5px; border-color: var(--gold-35); }
.tracery::before, .tracery::after { content: ""; flex: 1; height: 1px; }
.tracery::before { background: linear-gradient(to right, rgba(182,130,53,0), var(--gold-35)); }
.tracery::after { background: linear-gradient(to left, rgba(182,130,53,0), var(--gold-35)); }

.rule { height: 1px; background: linear-gradient(to right, rgba(182,130,53,0.5), rgba(182,130,53,0.14)); border: 0; margin: 0; }

.ghost {
  position: absolute; top: -0.3em; right: -0.04em;
  font-family: var(--font-heading); font-weight: 300;
  font-size: clamp(200px, 24vw, 400px); line-height: 0.8; letter-spacing: -0.04em;
  color: rgba(182, 130, 53, 0.055); pointer-events: none; user-select: none;
}

.lede {
  font-size: 15.5px; line-height: 1.75; text-align: justify; hyphens: auto;
  color: var(--paper-60); max-width: 54ch;
}
.dropcap::first-letter {
  font-family: var(--font-heading); font-weight: 300; font-size: 66px;
  line-height: 0.7; float: left; margin: 8px 12px 0 0; color: var(--gold);
}
.muted { color: var(--paper-40); font-size: 12.5px; line-height: 1.7; }

/* — buttons — */
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: var(--font-heading); font-weight: 600; font-size: 15px; letter-spacing: 0.04em;
  color: var(--gold-lt); background: transparent;
  border: 1px solid var(--gold); border-radius: var(--radius);
  padding: 11px 22px; white-space: nowrap; transition: background 0.3s ease, color 0.3s ease;
}
.btn:hover { background: rgba(182, 130, 53, 0.14); text-decoration: none; color: var(--gold-lt); }
.btn:active { background: rgba(182, 130, 53, 0.24); }
.btn--quiet { border-color: var(--rule); color: var(--paper-60); }
.btn--quiet:hover { background: rgba(243, 242, 242, 0.06); color: var(--paper); }

/* — nav — */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px var(--pad-x);
  background: rgba(23, 22, 20, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav-brand {
  font-family: var(--font-heading); font-size: 21px; letter-spacing: 0.22em;
  color: var(--paper); text-transform: uppercase;
}
.nav-brand:hover { color: var(--gold-lt); text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2vw, 32px); }
.nav-links a {
  font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--paper-60); white-space: nowrap;
}
.nav-links a:hover { color: var(--gold-lt); text-decoration: none; }
.nav-lang { border-left: 1px solid var(--rule); padding-left: clamp(14px, 2vw, 24px); }
.locale-menu { position: relative; color: var(--paper-60); }
.locale-menu summary {
  list-style: none; cursor: pointer; min-width: 36px; padding: 6px 9px;
  border: 1px solid var(--rule); border-radius: var(--radius);
  font-size: 11px; letter-spacing: 0.14em; text-align: center;
}
.locale-menu summary::-webkit-details-marker { display: none; }
.locale-menu[open] summary { color: var(--gold-lt); border-color: var(--gold); }
.locale-options {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 132px;
  padding: 7px; background: var(--ink-2); border: 1px solid var(--rule);
  box-shadow: 0 16px 42px rgba(10, 9, 8, 0.34);
}
.locale-options a { display: block; width: 100%; padding: 8px 10px; }
.locale-options a[aria-current="page"] { color: var(--gold-lt); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--rule); border-radius: var(--radius);
  color: var(--paper); font-size: 16px; line-height: 1; padding: 9px 12px; cursor: pointer;
}

/* — hero — */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(46px, 7vw, 104px); line-height: 0.98; margin: clamp(20px, 2.5vw, 34px) 0 0; }
.hero h1 em { font-weight: 300; color: var(--gold-lt); }
.hero-sub { margin-top: clamp(18px, 2vw, 28px); font-size: 16px; line-height: 1.7; color: var(--paper-60); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(24px, 3vw, 38px); }
.hero-plates { display: flex; gap: clamp(14px, 2vw, 28px); align-items: flex-end; }

/* — arch plates — */
.arch {
  position: relative; display: block; width: 100%; aspect-ratio: 0.6;
  background: var(--mat); padding: 7px; border: 0;
  clip-path: url(#grbbnArch);
  transition: background 0.3s ease;
}
button.arch { cursor: zoom-in; }
.arch:hover { background: #302c26; }
.arch img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  clip-path: url(#grbbnArch);
  filter: sepia(0.18) saturate(0.8) contrast(1.06) brightness(0.96);
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.6s ease;
}
.arch:hover img { transform: scale(1.05); filter: sepia(0.1) saturate(0.9) contrast(1.08) brightness(1.02); }
.arch svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.arch--empty {
  display: grid; place-items: center; aspect-ratio: 0.72;
  background: linear-gradient(180deg, #211f1d, #1a1917);
  color: var(--paper-40); font-family: var(--font-heading); font-size: 15px; letter-spacing: 0.1em;
  text-align: center; padding: 24px;
}

/* — the arcade — */
.arcade { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: clamp(12px, 1.8vw, 30px); align-items: stretch; }
.arcade figure { display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; }
.arcade .arch { max-width: 300px; margin: 0 auto; }
.arcade figcaption { height: 138px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--gold-35); }
.plate-num { font-size: 10.5px; letter-spacing: 0.26em; color: var(--gold); font-variant-numeric: tabular-nums; }
.plate-title { font-family: var(--font-heading); font-size: 20px; line-height: 1.15; margin-top: 7px; color: var(--paper); }
.plate-line { font-style: italic; font-size: 12.5px; line-height: 1.5; margin-top: 6px; color: rgba(243, 242, 242, 0.5); }

/* — two-column editorial head — */
.head-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(28px, 4vw, 72px); align-items: end; }
.display { font-size: clamp(38px, 5.4vw, 82px); }
.display em { font-weight: 300; color: var(--gold-lt); }

/* — capability ledger — */
.ledger { border-top: 1px solid var(--rule); }
.ledger-row {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(12px, 2vw, 32px); align-items: baseline;
  padding: 20px 4px; border-bottom: 1px solid var(--rule);
}
.ledger-row span:first-child { font-size: 11px; letter-spacing: 0.18em; color: var(--gold); font-variant-numeric: tabular-nums; }
.ledger-row h4 { font-size: 22px; }
.ledger-row p { font-size: 13.5px; color: var(--paper-60); margin: 0; }

/* — cards / grids — */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(20px, 2.6vw, 40px); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(24px, 3vw, 56px) clamp(32px, 4vw, 72px); }
.card { border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(20px, 2.4vw, 30px); }
.card h4 { font-size: 22px; margin-bottom: 10px; }
.card p { font-size: 13.5px; color: var(--paper-60); }
.card-kicker { font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }

.detail h4 { font-size: 25px; margin-bottom: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--gold-35); }
.detail p { font-size: 14px; color: var(--paper-60); }

/* — privacy — */
.legal-body { display: none; max-width: 78ch; }
.legal-body[data-active="true"] { display: block; }
.legal-body h4 { font-size: 20px; margin: var(--space-6) 0 var(--space-2); }
.legal-body p { font-size: 14px; color: var(--paper-60); text-align: justify; hyphens: auto; }
.legal-date { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper-40); }

/* — contact — */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(20px, 3vw, 48px); margin-top: clamp(28px, 3.5vw, 48px); }
.contact-item { border-top: 1px solid var(--gold-35); padding-top: 14px; }
.contact-item dt { font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.contact-item dd { margin: 8px 0 0; font-size: 15px; color: var(--paper-60); }

/* — footer — */
.footer { padding: clamp(40px, 5vw, 72px) var(--pad-x) clamp(28px, 3vw, 40px); border-top: 1px solid var(--rule); background: #131210; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(160px, 1fr)); gap: clamp(24px, 3vw, 56px); }
.footer h5 { font-family: var(--font-heading); font-weight: 600; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper); margin: 0 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer a { font-size: 13.5px; color: var(--paper-60); }
.footer a:hover { color: var(--gold-lt); text-decoration: none; }
.colophon { margin-top: clamp(32px, 4vw, 56px); padding-top: 18px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }

/* — lightbox — */
.lightbox {
  position: fixed; inset: 0; z-index: 60; display: none;
  align-items: center; justify-content: center; padding: clamp(24px, 5vw, 72px);
  background: rgba(11, 10, 9, 0.94); cursor: zoom-out;
}
.lightbox[data-open="true"] { display: flex; animation: veil 0.35s ease both; }
.lightbox-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(24px, 4vw, 64px); max-width: 1100px; }
.lightbox .arch { width: min(46vw, 400px); cursor: default; }
.lightbox-copy { max-width: 36ch; }
.lightbox-copy h3 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 300; margin-top: 14px; }
.lightbox-copy .rule-sm { width: 56px; height: 1px; background: var(--gold); margin: 20px 0; }
.lightbox-copy p { font-size: 14.5px; color: var(--paper-60); }
.lightbox-hint { margin-top: 26px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--paper-40); }

@keyframes veil { from { opacity: 0; } to { opacity: 1; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; }
.reveal.in { animation: riseIn 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; }
  .ledger-row { grid-template-columns: 32px 1fr; }
  .ledger-row p { grid-column: 2; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--ink-2); border-bottom: 1px solid var(--rule); padding: 8px var(--pad-x) 18px;
  }
  .nav-links[data-open="true"] { display: flex; }
  .nav-links a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--rule); }
  .nav-lang { border-left: 0; padding-left: 0; }
  .locale-menu { width: 100%; padding-top: 10px; }
  .locale-menu summary { width: 100%; text-align: left; padding: 11px 0; border-width: 0 0 1px; }
  .locale-options { position: static; min-width: 0; padding: 4px 0 0 14px; border: 0; box-shadow: none; background: transparent; }
  .nav-toggle { display: block; }
  .arcade { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
  .arcade figcaption { height: auto; min-height: 116px; }
  .lightbox .arch { width: min(70vw, 320px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.in { animation: none; opacity: 1; }
  .arch img, .arch { transition: none; }
}
