/* ============================================================
   masp-group — theme: valmennus-drive (adapted, first use)
   Palette: slate #1C2026 · deep steel #2B313A · volt #C6FF00
   (volt = display/decorative accent; on slate it clears AA at
   ~13.9:1 anyway, but body text stays white/gray)
   Type: Saira italic 700–900 (display, uppercase, forward slant)
         Saira 400–600 (body) — self-hosted latin subsets
   Skeleton: S6 cinematic scroll — dark full-viewport frames,
   diagonal clip-path seams, one stat band between frames
   ============================================================ */

@font-face {
  font-family: 'Saira';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/saira-var-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Saira';
  font-style: italic;
  font-weight: 700 900;
  font-display: swap;
  src: url('assets/fonts/saira-italic-var-latin.woff2') format('woff2');
}

:root {
  --slate: #1C2026;
  --slate-deep: #14171C;
  --steel: #2B313A;
  --steel-line: #3A424E;
  --volt: #C6FF00;
  --volt-dim: rgba(198, 255, 0, 0.08);
  --text: #EDF0F2;      /* 13.6:1 on slate */
  --text-mute: #A9B1BB; /* 7.3:1 on slate, 5.6:1 on steel */
  --diag-h: 3.5rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Saira', system-ui, sans-serif;
  font-weight: 400;
  background: var(--slate);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------- utilities ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--volt);
  color: var(--slate);
  padding: 0.6rem 1rem;
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

.frame-inner {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- draft banner ---------- */

.draft-banner {
  display: block;
  background: var(--volt);
  color: var(--slate);
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  text-decoration: none;
}
.draft-banner:hover { text-decoration: underline; }

/* ---------- nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 23, 28, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--steel-line);
}
.nav-inner {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-mark {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: none;
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.02rem;
  white-space: nowrap;
}
.nav-tabs {
  display: flex;
  gap: 1.2rem;
  list-style: none;
  margin-left: auto;
}
.nav-tabs a {
  color: var(--text-mute);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.nav-tabs a:hover { color: var(--volt); }
.nav-phone {
  color: var(--volt);
  border: 1.5px solid var(--volt);
  padding: 0.3rem 0.85rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}
.nav-phone:hover { background: var(--volt-dim); }

/* ---------- frames (S6) ---------- */

.frame { padding: 5.5rem 0; }
.frame.steel { background: var(--steel); }

.hero {
  min-height: 82vh;
  display: flex;
  align-items: center;
  padding: 4rem 0 5rem;
}

.kicker {
  color: var(--volt);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.88rem;
  margin-bottom: 1.2rem;
}

/* signature move: italic uppercase headlines that bleed off the left edge */
h1.bleed, h2.bleed {
  font-style: italic;
  font-weight: 850;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin-left: -0.06em;
  transform: translateX(clamp(-1.25rem, -1.5vw, -0.25rem));
}
h1.bleed {
  font-size: clamp(3rem, 11vw, 7.5rem);
  margin-bottom: 1.6rem;
}
h2.bleed {
  font-size: clamp(2rem, 6vw, 3.6rem);
  margin-bottom: 1.4rem;
}
.volt { color: var(--volt); }

.lede {
  max-width: 34rem;
  font-size: 1.12rem;
  color: var(--text-mute);
  margin-bottom: 2.2rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.cta {
  display: inline-block;
  background: var(--volt);
  color: var(--slate);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.8rem 1.7rem;
  border: 2px solid var(--volt);
}
.cta:hover { background: transparent; color: var(--volt); }
.cta.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--steel-line);
}
.cta.ghost:hover { border-color: var(--volt); color: var(--volt); }

/* ---------- diagonal seams (signature move) ---------- */

.diag {
  height: var(--diag-h);
  background: var(--steel);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  margin-bottom: -1px;
}
.diag.flip {
  background: var(--steel);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  margin-top: -1px;
  margin-bottom: 0;
}

/* ---------- stat band (signature move: giant numerals) ---------- */

.stat-band { background: var(--steel); padding: 3.5rem 0; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.stat .num {
  display: block;
  font-style: italic;
  font-weight: 900;
  font-size: clamp(3rem, 7vw, 5.2rem);
  color: var(--volt);
  line-height: 1;
}
.stat .lbl {
  display: block;
  margin-top: 0.5rem;
  color: var(--text-mute);
  font-size: 0.95rem;
  max-width: 16rem;
}

/* ---------- services table (signature move: dark table, volt highlights) ---------- */

.section-note { max-width: 36rem; color: var(--text-mute); margin-bottom: 2.2rem; }

.volt-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--volt);
  border-bottom: 2px solid var(--volt);
}
.volt-table th {
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  color: var(--text-mute);
  font-weight: 600;
  padding: 0.8rem 1rem 0.8rem 0;
}
.volt-table td {
  padding: 1rem 1rem 1rem 0;
  border-top: 1px solid var(--steel-line);
  vertical-align: top;
}
.volt-table td:nth-child(2) { font-weight: 600; font-size: 1.05rem; white-space: normal; }
.volt-table td:last-child { color: var(--text-mute); }
.cell-num {
  font-style: italic;
  font-weight: 900;
  color: var(--volt);
  font-size: 1.3rem;
  width: 3rem;
}
tr.hl { background: var(--volt-dim); box-shadow: inset 3px 0 0 var(--volt); }
tr.hl td { padding-left: 0.8rem; }
.tag {
  display: inline-block;
  border: 1px solid var(--volt);
  color: var(--volt);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.1rem 0.5rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}
.table-foot {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--text-mute);
}

/* ---------- splits & figures ---------- */

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}
.split.flipped { grid-template-columns: 0.85fr 1.15fr; }
.fig svg { width: 100%; height: auto; display: block; }

.check-list {
  list-style: none;
  margin-top: 1.4rem;
}
.check-list li {
  padding-left: 1.6rem;
  position: relative;
  margin-bottom: 0.55rem;
  color: var(--text);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 0.7rem;
  height: 0.35rem;
  border-left: 2.5px solid var(--volt);
  border-bottom: 2.5px solid var(--volt);
  transform: rotate(-45deg);
}

.frame p + p { margin-top: 1rem; }

.photo-note {
  margin-top: 1.8rem;
  border-left: 3px solid var(--volt);
  background: var(--volt-dim);
  padding: 1rem 1.2rem;
  font-size: 0.92rem;
  color: var(--text-mute);
}
.photo-note strong { color: var(--text); }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--volt);
  color: var(--slate);
  padding: 4rem 0;
  clip-path: polygon(0 0, 100% 2.5rem, 100% 100%, 0 100%);
  padding-top: 6rem;
}
.cta-inner { text-align: center; }
.cta-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}
.cta-band h2 {
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1;
  margin-bottom: 1.8rem;
}
.cta-big {
  background: var(--slate);
  color: var(--volt);
  border-color: var(--slate);
  font-size: 1.15rem;
}
.cta-big:hover { background: transparent; color: var(--slate); }

/* ---------- contact ---------- */

.visit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}
.visit-block h3 {
  font-style: italic;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--volt);
  margin-bottom: 0.5rem;
}
.small { font-size: 0.9rem; color: var(--text-mute); margin-top: 0.35rem; }
.text-link { color: var(--text); font-weight: 600; }
.text-link:hover { color: var(--volt); }

/* ---------- footer ---------- */

.footer {
  background: var(--slate-deep);
  border-top: 1px solid var(--steel-line);
  padding: 3rem 0 2rem;
}
.footer-inner {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1.4rem 2rem;
  margin-bottom: 2rem;
}
.footer-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mute);
}
.footer-value { color: var(--text); font-weight: 500; }
.footer-value a { color: var(--text); }
.footer-value a:hover { color: var(--volt); }
.footer-meta {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--text-mute);
  border-top: 1px solid var(--steel-line);
  padding-top: 1.2rem;
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .split, .split.flipped { grid-template-columns: 1fr; gap: 2.5rem; }
  .split.flipped .fig { order: 2; }
  .stats { grid-template-columns: 1fr; gap: 1.6rem; }
}

@media (max-width: 720px) {
  .nav-tabs { display: none; }
  .frame { padding: 4rem 0; }
  .hero { min-height: 70vh; }

  /* collapse the table into stacked rows */
  .volt-table thead { display: none; }
  .volt-table tr {
    display: block;
    border-top: 1px solid var(--steel-line);
    padding: 1rem 0;
  }
  .volt-table td { display: block; border: none; padding: 0.15rem 0; }
  .volt-table .cell-num { width: auto; font-size: 1rem; }
  .volt-table tr.hl { padding-left: 0.8rem; }
  .volt-table tr.hl td { padding-left: 0; }
}

/* ---------- motion ---------- */

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