/* page.css — the swiss page: the base, the visible 12-column grid, the buttons, the specs
   (one ruled table), the call to action, the contacts, the footer and the legal pages.
   Colours and fonts come from tokens.css (var(--name)); the one primary is the swiss red. */

/* ---- the page's base ---- */
html { box-sizing: border-box; -webkit-text-size-adjust: 100%; background: var(--ground); }
*, *::before, *::after { box-sizing: inherit; }
html, body { overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  position: relative;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--ground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.0; letter-spacing: -0.02em; margin: 0; text-transform: uppercase; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- the visible 12-column grid (strict-columns): element hairlines, edge to edge of the wrap ---- */
.page-grid {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, 100%);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  pointer-events: none;
  z-index: 0;
}
.page-grid i { border-right: 1px solid var(--line); }
.page-grid i:first-child { border-left: 1px solid var(--line); }

/* the content wrap: flush left on the grid */
.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: max(20px, env(safe-area-inset-left), env(safe-area-inset-right));
}

/* a section: a hairline on top, the big numeral, the heading */
.section { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: clamp(56px, 9vw, 112px) 0; }
.section-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.5rem, 11vw, 8rem);
  line-height: 0.86;
  letter-spacing: -0.03em;
  color: var(--accent);
  margin: 0 0 clamp(20px, 3vw, 32px);
}
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.2rem); margin: 0 0 12px; }
.section-note { color: var(--ink-soft); font-size: 15px; max-width: 56ch; }

/* ---- the buttons: the swiss red in a big flat area ---- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 30px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  touch-action: manipulation;
  background: var(--accent);
  color: var(--ink);
  border: 1px solid var(--accent);
  transition: background-color .2s ease-out, color .2s ease-out, border-color .2s ease-out;
}
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--ink); color: var(--ground); border-color: var(--ink); }
}
.button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.button-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
@media (hover: hover) and (pointer: fine) {
  .button-ghost:hover { background: var(--ink); color: var(--ground); }
}

/* ---- #specs: one plain ruled specification table, the values as big numerals ---- */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table caption { caption-side: top; text-align: left; font-size: 12px; letter-spacing: 0.1em; color: var(--ink-soft); text-transform: uppercase; padding-bottom: 14px; }
.spec-table th, .spec-table td { text-align: left; padding: 16px 0; border-top: 1px solid var(--line); vertical-align: baseline; }
.spec-table thead th { font-size: 12px; font-weight: 500; letter-spacing: 0.1em; color: var(--ink-soft); text-transform: uppercase; }
.spec-table tbody th { font-size: 14px; font-weight: 500; letter-spacing: 0.04em; color: var(--ink); text-transform: uppercase; }
.spec-table tbody td {
  text-align: right;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 1rem + 2.4vw, 2.6rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.spec-table tbody td .unit { font-size: 0.42em; font-weight: 500; letter-spacing: 0.02em; color: var(--ink-soft); margin-left: 6px; }
.spec-table .spec-sub th { font-size: 12px; font-weight: 500; letter-spacing: 0.1em; color: var(--ink-soft); text-transform: uppercase; padding-top: 34px; }

/* the scroll reveal (hand-driven: the rows enter as the scroll brings them in) */
.js .spec-table tbody tr { opacity: 0; translate: 0 14px; transition: opacity .5s ease-out, translate .5s ease-out; }
.js .spec-table tbody tr.seen { opacity: 1; translate: none; }

/* ---- #cta: the call to action ---- */
.cta-statement { font-size: clamp(2.4rem, 1.4rem + 6vw, 6rem); line-height: 0.94; letter-spacing: -0.03em; margin: 0 0 clamp(28px, 4vw, 44px); max-width: 16ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---- #contacts: the synthetic contacts (SymyOn's block), ruled rows ---- */
.contact-list { width: 100%; border-collapse: collapse; }
.contact-list a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 22px 0; border-top: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
  transition: color .2s ease-out;
}
.contact-list a:last-child { border-bottom: 1px solid var(--line); }
.contact-list .kicker { font-size: 12px; letter-spacing: 0.1em; color: var(--ink-soft); text-transform: uppercase; }
.contact-list .value { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem, 1rem + 1.6vw, 1.9rem); letter-spacing: -0.01em; }
@media (hover: hover) and (pointer: fine) {
  .contact-list a:hover { color: var(--accent); }
  .contact-list a:hover .kicker { color: var(--accent); }
}

/* ---- #footer ---- */
.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 44px 0 60px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: auto 1fr auto; align-items: baseline; } }
.footer-brand { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: 0.14em; }
.footer-legal { display: flex; flex-wrap: wrap; }
.footer-legal a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px;
  font-size: 12px; letter-spacing: 0.08em;
  color: var(--ink-soft); text-decoration: none;
  border-left: 1px solid var(--line);
  transition: color .2s ease-out;
}
.footer-legal a:first-child { border-left: 0; padding-left: 0; }
@media (hover: hover) and (pointer: fine) { .footer-legal a:hover { color: var(--accent); } }
.footer-note { color: var(--ink-soft); font-size: 12px; max-width: 52ch; }

/* ---- the legal placeholder pages ---- */
.legal-page {
  position: relative; z-index: 1;
  max-width: 760px; margin: 0 auto;
  padding: clamp(56px, 9vw, 110px) max(20px, env(safe-area-inset-left), env(safe-area-inset-right)) 96px;
}
.legal-kicker { font-size: 12px; letter-spacing: 0.1em; color: var(--ink-soft); text-transform: uppercase; margin: 0 0 14px; }
.legal-page h1 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); margin: 0 0 24px; }
.legal-page p { color: var(--ink-soft); font-size: 15px; max-width: 62ch; margin: 0 0 14px; }
.legal-back {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; margin-top: 24px;
  border: 1px solid var(--ink);
  font-size: 12px; letter-spacing: 0.08em;
  color: var(--ink); text-decoration: none;
  transition: background-color .2s ease-out, color .2s ease-out;
}
@media (hover: hover) and (pointer: fine) { .legal-back:hover { background: var(--ink); color: #fff; } }

/* ---- less motion when the person asks for it ---- */
@media (prefers-reduced-motion: reduce) {
  .button, .button-ghost, .contact-list a, .footer-legal a, .legal-back { transition: none; }
  .js .spec-table tbody tr { opacity: 1; translate: none; transition: none; }
}
