/* GlobeBoost: Swiss-grid ledger, one signal colour, sans + mono. */

:root {
  --signal: #C23D14;
  --signal-deep: #9E300E;
  --plum: #211A33;
  --ground: #FFFFFF;
  --tint: #FBF1EC;
  --ink: #141317;
  --muted: #5E5A66;
  --rule: #E3DFE6;
  --on-plum: #F4F1F7;
  --on-plum-muted: #B9B2C6;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --gutter: 16px;
  --max: 1200px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--signal); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--signal-deep); }

:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }

main:focus { outline: none; }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.4rem, 7.5vw, 4.6rem); }
h2 { font-size: clamp(1.75rem, 4.4vw, 2.75rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; line-height: 1.25; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--plum); color: #fff; padding: 12px 16px; z-index: 50;
}
.skip:focus { left: 8px; }

.label, .idx {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}
.idx { color: var(--signal); }
.idx span { color: var(--muted); }

/* Header */
.top { border-bottom: 1px solid var(--rule); background: var(--ground); position: sticky; top: 0; z-index: 20; }
.top-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; flex-wrap: wrap; }

.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: 1.3rem; letter-spacing: -0.04em;
  min-height: 44px;
}
.wordmark:hover { color: var(--ink); }
.wordmark .mono { width: 30px; height: 30px; color: var(--plum); flex: none; }

.menu-btn {
  font: 500 0.85rem var(--mono); text-transform: uppercase; letter-spacing: 0.06em;
  background: none; border: 1px solid var(--ink); color: var(--ink);
  min-height: 44px; min-width: 44px; padding: 0 14px; cursor: pointer;
}

.primary { flex-basis: 100%; display: none; }
.top.open .primary { display: block; }
.primary ul { list-style: none; margin: 0; padding: 4px 0 16px; }
.primary a {
  display: flex; align-items: center; min-height: 48px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1.1rem;
  border-top: 1px solid var(--rule);
}
.primary a[aria-current="page"] { color: var(--signal); }
.primary a[aria-current="page"]::before {
  content: ""; width: 8px; height: 8px; background: var(--signal); margin-right: 10px;
}

@media (min-width: 900px) {
  .menu-btn { display: none; }
  .primary { display: block; flex-basis: auto; }
  .primary ul { display: flex; gap: 28px; padding: 0; align-items: center; }
  .primary a { border: 0; font-size: 0.98rem; min-height: 44px; }
  .primary a:hover { color: var(--signal); }
  .nav-contact a {
    background: var(--ink); color: #fff; padding: 0 18px;
  }
  .nav-contact a:hover, .nav-contact a[aria-current="page"] { background: var(--signal); color: #fff; }
  .nav-contact a[aria-current="page"]::before { display: none; }
}

/* Sections */
.band { padding: 56px 0; border-bottom: 1px solid var(--rule); }
.band.tint { background: var(--tint); border-bottom-color: #F1DDD3; }
.band.plum { background: var(--plum); color: var(--on-plum); border-bottom: 0; }
.band.plum a { color: #fff; }
.band.plum .label { color: var(--on-plum-muted); }
.band.plum .idx { color: #FF8A5C; }

@media (min-width: 900px) { .band { padding: 96px 0; } }

.grid { display: grid; gap: 28px; }
@media (min-width: 900px) {
  .grid.g-12 { grid-template-columns: repeat(12, 1fr); gap: 32px; }
  .span-4 { grid-column: span 4; }
  .span-5 { grid-column: span 5; }
  .span-6 { grid-column: span 6; }
  .span-7 { grid-column: span 7; }
  .span-8 { grid-column: span 8; }
  .start-6 { grid-column: 6 / span 7; }
}

.lead { font-size: clamp(1.15rem, 2.2vw, 1.35rem); line-height: 1.5; color: var(--ink); max-width: 38em; }
.muted { color: var(--muted); }

/* Hero */
.hero { padding: 48px 0 40px; border-bottom: 1px solid var(--rule); }
@media (min-width: 900px) { .hero { padding: 104px 0 72px; } }
.hero h1 { max-width: 13em; }

.build {
  font-family: var(--mono);
  font-size: clamp(0.95rem, 3.4vw, 1.6rem);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  margin: 28px 0 32px; padding: 18px 0;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink);
}
.build .part { background: var(--tint); padding: 4px 10px; color: var(--ink); }
.build .op { color: var(--muted); }
.build .tld { color: var(--signal); font-weight: 500; }
.build .cursor { width: 0.55em; height: 1.1em; background: var(--signal); display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .build .cursor { animation: blink 1.1s steps(1) infinite; }
}
@keyframes blink { 50% { opacity: 0; } }

.strap {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  font-family: var(--mono); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em;
}
.strap li { display: flex; align-items: center; gap: 10px; }
.strap li::before { content: ""; width: 8px; height: 8px; background: var(--signal); flex: none; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  font: 500 1rem var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid var(--signal); background: var(--signal); color: #fff;
}
.btn:hover { background: var(--plum); border-color: var(--plum); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.band.plum .btn.ghost { color: #fff; border-color: #fff; }
.band.plum .btn.ghost:hover { background: #fff; color: var(--plum); }

/* Square lists */
.sq { list-style: none; padding: 0; margin: 0 0 1em; }
.sq li { position: relative; padding-left: 22px; margin-bottom: 0.55em; }
.sq li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; background: var(--signal); }

/* Tiles */
.tiles { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.tile { padding: 24px 0; border-bottom: 1px solid var(--rule); }
.tile .num { font-family: var(--mono); color: var(--signal); font-size: 0.85rem; }
.tile h3 { margin-top: 10px; }
.tile p:last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tile { padding: 28px 28px 32px 0; border-bottom: 0; }
  .tile + .tile { padding-left: 28px; border-left: 1px solid var(--rule); }
}

/* Ledger tables */
.ledger { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); }
.ledger th, .ledger td { text-align: left; vertical-align: top; padding: 16px 12px 16px 0; border-bottom: 1px solid var(--rule); }
.ledger th { font: 500 0.75rem var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.ledger td.n { font-family: var(--mono); color: var(--signal); white-space: nowrap; width: 3.5rem; }
.ledger td.m { font-family: var(--mono); font-size: 0.92rem; white-space: nowrap; }
.ledger td strong { display: block; font-size: 1.1rem; letter-spacing: -0.01em; }

@media (max-width: 719px) {
  .ledger thead { position: absolute; left: -9999px; }
  .ledger, .ledger tbody, .ledger tr, .ledger td { display: block; width: 100%; }
  .ledger tr { border-bottom: 1px solid var(--rule); padding: 16px 0; }
  .ledger td { border: 0; padding: 3px 0; white-space: normal; }
  .ledger td.n { width: auto; }
  .ledger td[data-k]::before {
    content: attr(data-k); display: block;
    font: 500 0.7rem var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted);
  }
}

/* Figures (numbers that are terms, not claims) */
.figures { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--ink); }
.figure { padding: 22px 0; border-bottom: 1px solid var(--rule); }
.figure b { display: block; font: 500 clamp(2rem, 6vw, 3.2rem) var(--mono); letter-spacing: -0.04em; color: var(--ink); line-height: 1.1; }
.figure span { color: var(--muted); font-size: 0.95rem; }
@media (min-width: 720px) { .figures { grid-template-columns: repeat(3, 1fr); } .figure + .figure { padding-left: 24px; border-left: 1px solid var(--rule); } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-of-type { border-top: 1px solid var(--ink); }
.faq summary {
  list-style: none; cursor: pointer; min-height: 56px; padding: 16px 40px 16px 0;
  position: relative; font-weight: 500; font-size: 1.12rem; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 12px;
  font: 400 1.5rem var(--mono); color: var(--signal);
}
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 0 20px; max-width: 44em; }

/* About */
.portrait { position: relative; max-width: 440px; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.portrait figcaption { font: 0.8rem var(--mono); color: var(--muted); padding-top: 10px; border-top: 1px solid var(--ink); margin-top: 12px; }
.portrait::before { content: ""; position: absolute; left: -10px; top: -10px; width: 44px; height: 44px; background: var(--signal); z-index: -1; }

/* Contact */
.form { display: grid; gap: 18px; }
.field label { display: block; font: 500 0.78rem var(--mono); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.field .opt { color: var(--muted); text-transform: none; letter-spacing: 0; }
.field input, .field textarea, .field select {
  width: 100%; font: 400 1rem var(--sans); color: var(--ink);
  background: #fff; border: 1px solid #BDB7C4; border-radius: 0;
  min-height: 48px; padding: 10px 12px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--signal); outline-offset: 0; border-color: var(--signal); }
.form .two { display: grid; gap: 18px; }
@media (min-width: 720px) { .form .two { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: 0.9rem; color: var(--muted); }
.status { min-height: 1.5em; font-weight: 500; }
.status.ok { color: #1D6B3A; }
.status.err { color: var(--signal-deep); }
.cf-turnstile { min-height: 65px; }

.card-plain { border-top: 1px solid var(--ink); padding-top: 18px; }
.card-plain address { font-style: normal; }

/* Legal */
.legal { max-width: 46em; }
.legal h2 { font-size: 1.4rem; letter-spacing: -0.02em; margin-top: 2em; }

/* Footer */
.foot { background: var(--plum); color: var(--on-plum); padding: 56px 0 28px; }
.foot a { color: var(--on-plum); text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot .wordmark { color: #fff; }
.foot .wordmark .mono { color: #fff; }
.foot .label { color: var(--on-plum-muted); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li a { display: inline-flex; min-height: 40px; align-items: center; }
.foot address { font-style: normal; line-height: 1.9; }
.foot-grid { display: grid; gap: 32px; }
.foot-id p { color: var(--on-plum-muted); max-width: 26em; margin-top: 12px; }
.foot-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  margin-top: 40px; padding-top: 18px; border-top: 1px solid #3A3150;
  font: 0.8rem var(--mono); color: var(--on-plum-muted);
}
.foot address a { word-break: break-all; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 5fr 2fr 2fr 3fr; } }

/* 404 */
.nf { font: 500 clamp(5rem, 22vw, 12rem) var(--mono); color: var(--signal); letter-spacing: -0.06em; line-height: 1; margin: 0 0 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
