/* ==========================================================================
   ritari-smedberg — theme: hazard-grid (trades-industrial, skeleton S6
   cinematic scroll, dark variant), adapted from car-repair mood toward
   dramatic paint/restoration "reveal" — see README for adaptation notes.
   Palette: graphite #16181B (primary bg) · gunmetal #2A2E33 (secondary bg)
            safety yellow #FFD100 (accent + oversized numerals, decorative)
            light text #E8EAED
   Type:    Barlow Condensed (display, uppercase, tight) / Barlow (body)
   ========================================================================== */

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/barlow-condensed-500-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/barlow-condensed-600-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/barlow-condensed-700-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/barlow-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/barlow-500-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/barlow-600-latin.woff2") format("woff2");
}

:root {
  --graphite: #16181B;       /* primary background */
  --gunmetal: #2A2E33;       /* secondary section background */
  --gunmetal-line: #3A3F45;  /* hairline steel rules on dark */
  --yellow: #FFD100;         /* safety yellow — decorative / large numerals only */
  --text: #E8EAED;           /* light text — 14.76:1 on graphite, AA/AAA */
  --text-dim: #A7ACB3;       /* secondary text — 7.79:1 on graphite / 5.98:1 on gunmetal, AA */
  --focus: #FFD100;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --measure: 62ch;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

body {
  font-family: var(--body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--graphite);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--yellow); color: var(--graphite); }

a { color: var(--yellow); text-underline-offset: 3px; }
a:hover { color: #FFDE4D; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--yellow);
  color: var(--graphite);
  padding: 0.6rem 1rem;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.85rem;
}
.skip-link:focus-visible { left: 0.5rem; top: 0.5rem; }

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

.draft-banner {
  display: block;
  background: #000;
  color: var(--text);
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  padding: 0.55rem var(--pad);
  border-bottom: 1px solid var(--gunmetal-line);
}
.draft-banner strong { color: var(--yellow); font-weight: 700; }
.draft-banner:hover { color: var(--text); background: #1a1a1a; }

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--graphite);
  border-bottom: 2px solid var(--yellow);
}
.nav-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 3.6rem;
}
.nav-mark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.nav-mark svg { flex: none; }
.nav-tabs {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  overflow-x: auto;
}
.nav-tabs a {
  display: block;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-dim);
  white-space: nowrap;
}
.nav-tabs a:hover { color: var(--yellow); }
.nav-phone {
  display: flex;
  align-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--graphite);
  background: var(--yellow);
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  white-space: nowrap;
}
.nav-phone:hover { background: #FFDE4D; }

/* --------------------------------------------------------------- hero (S6) */

.hero {
  position: relative;
  background: var(--graphite);
  border-bottom: none;
  overflow: hidden;
}
.hero-inner {
  max-width: 60rem;
  margin: 0 auto;
  padding: clamp(4rem, 12vw, 8rem) var(--pad) clamp(3.5rem, 9vw, 6rem);
}

.kicker {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.1rem;
}
.kicker .ref { color: var(--yellow); }

.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 1.4rem;
}
.hero h1 .yellow { color: var(--yellow); }

.lede {
  max-width: 38rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.cta {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 0.95rem 1.8rem;
  border: 2px solid var(--yellow);
  background: var(--yellow);
  color: var(--graphite);
}
.cta:hover { background: #FFDE4D; border-color: #FFDE4D; }
.cta.ghost { background: transparent; color: var(--text); border-color: var(--text-dim); }
.cta.ghost:hover { border-color: var(--yellow); color: var(--yellow); }

.hero-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  border-top: 1px solid var(--gunmetal-line);
  padding-top: 1.8rem;
}
.hero-stats .num {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3rem);
  line-height: 1;
  color: var(--yellow);
}
.hero-stats .lbl {
  display: block;
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-top: 0.4rem;
}

/* ---------------------------------------- signature move: hazard divider */

.stripe-divider {
  height: 14px;
  background-color: var(--graphite);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 209, 0, 0.14) 0,
    rgba(255, 209, 0, 0.14) 10px,
    transparent 10px,
    transparent 20px
  );
}
.stripe-divider.dark {
  background-color: var(--gunmetal);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 209, 0, 0.10) 0,
    rgba(255, 209, 0, 0.10) 10px,
    transparent 10px,
    transparent 20px
  );
}

/* ------------------------------------------------------------ hard bands */

.band { background: var(--graphite); }
.band.dark { background: var(--gunmetal); }

section { scroll-margin-top: 5rem; }
.section-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--pad);
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

h2 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0.4rem 0 1.2rem;
}
h3 { color: var(--text); }
.section-note { color: var(--text-dim); max-width: 34rem; }
.split p { color: var(--text-dim); max-width: var(--measure); margin-bottom: 1rem; }
.split p:last-of-type { margin-bottom: 0; }

/* ---------------------------------- signature move: 01/02/03 pillar grid */

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
  margin-top: 2.2rem;
}
.pillar {
  border-top: 3px solid var(--yellow);
  background: rgba(255, 255, 255, 0.02);
  padding: 1.4rem 1.4rem 1.6rem;
}
.pillar-num {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  line-height: 1;
  color: var(--yellow);
  margin-bottom: 0.6rem;
}
.pillar h3 {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.pillar p { color: var(--text-dim); font-size: 0.96rem; margin: 0; }

.service-list {
  list-style: none;
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 2rem;
  border-top: 1px solid var(--gunmetal-line);
  padding-top: 1.6rem;
}
.service-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text);
  font-size: 0.98rem;
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  background: var(--yellow);
}

/* ------------------------------------------ signature move: reveal split */

.reveal-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  margin-top: 2.2rem;
  background: var(--gunmetal-line);
}
.reveal-frame {
  margin: 0;
  background: var(--graphite);
}
.reveal-frame svg { display: block; width: 100%; height: auto; }
.reveal-frame figcaption {
  padding: 0.8rem 1rem;
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-top: 1px solid var(--gunmetal-line);
}
.reveal-after figcaption { color: var(--yellow); }
.reveal-note {
  margin-top: 1.2rem;
  font-size: 0.88rem;
  color: var(--text-dim);
}

/* ------------------------------------ signature move: spec-sheet table */

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2.2rem;
}
.spec-table thead th {
  text-align: left;
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0 0 0.7rem;
  border-bottom: 2px solid var(--yellow);
}
.spec-table thead .cell-num { color: transparent; }
.spec-table tbody td {
  padding: 1.1rem 0.6rem 1.1rem 0;
  border-bottom: 1px solid var(--gunmetal-line);
  vertical-align: baseline;
}
.spec-table tbody tr:last-child td { border-bottom: 2px solid var(--yellow); }
.spec-table td:nth-child(2) {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text);
  width: 12rem;
}
.spec-table td:nth-child(3) { color: var(--text-dim); font-size: 0.98rem; }
/* huge numbered process steps in safety yellow — decorative large text, non-body */
.cell-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1;
  color: var(--yellow);
  width: 3.5rem;
}
.table-foot {
  margin-top: 1.4rem;
  font-size: 0.88rem;
  color: var(--text-dim);
}

/* ------------------------------------------------------------- figures */

.brush-figure { display: flex; justify-content: center; }
.brush-figure svg { width: 100%; max-width: 320px; height: auto; }

/* -------------------------------------------------------------- photo note */

.photo-note {
  margin-top: 1.8rem;
  max-width: 46rem;
  border-left: 3px solid var(--yellow);
  background: var(--graphite);
  padding: 0.9rem 1.2rem;
  font-size: 0.95rem;
  color: var(--text-dim);
}
.photo-note strong { color: var(--text); }

/* -------------------------------------- signature move: yellow CTA band */

.cta-band {
  background: var(--yellow);
  color: var(--graphite);
}
.cta-inner {
  text-align: center;
  padding-top: clamp(3rem, 7vw, 5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}
.cta-kicker {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}
.cta-band h2 {
  color: var(--graphite);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  margin-bottom: 1.8rem;
}
.cta-big {
  background: var(--graphite);
  color: var(--text);
  border-color: var(--graphite);
  font-size: 1.15rem;
  padding: 1.1rem 2.2rem;
}
.cta-big:hover { background: #000; border-color: #000; color: var(--text); }

/* ----------------------------------------------------------- yhteystiedot */

.visit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 2.2rem;
}
.visit-block {
  border-top: 3px solid var(--yellow);
  background: rgba(255, 255, 255, 0.02);
  padding: 1.1rem 1.25rem 1.25rem;
}
.visit-block h3 {
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.6rem;
}
.visit-block p { font-size: 0.98rem; color: var(--text); }
.visit-block .small { font-size: 0.88rem; color: var(--text-dim); margin-top: 0.4rem; }
.visit-block .unverified-note { color: #C9A400; } /* darker-than-yellow amber note, 7.45:1 on graphite / 5.72:1 on gunmetal — see README */
.text-link { font-weight: 500; }

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

.footer { border-top: 2px solid var(--yellow); background: var(--graphite); }
.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--pad);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem 1.6rem;
  margin: 2.4rem 0;
}
.footer-cell { min-width: 0; }
.footer-label {
  display: block;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.2rem;
}
.footer-value { font-size: 0.95rem; color: var(--text); overflow-wrap: break-word; }
.footer-value .tag {
  display: inline-block;
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--graphite);
  background: var(--text-dim);
  padding: 0.1rem 0.4rem;
  margin-left: 0.3rem;
  vertical-align: middle;
}
.footer-meta {
  padding-bottom: 2rem;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--text-dim);
  text-align: center;
  border-top: 1px solid var(--gunmetal-line);
  padding-top: 1.4rem;
}

/* ------------------------------------------------------------ animation */

@media (prefers-reduced-motion: no-preference) {
  .cta, .nav-tabs a, .nav-phone, a { transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

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

@media (max-width: 60rem) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .visit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 44rem) {
  .nav-mark span { display: none; }
  .nav-tabs { gap: 1rem; }
  .hero-stats { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .visit-grid { grid-template-columns: minmax(0, 1fr); }
  .pillar-grid { grid-template-columns: minmax(0, 1fr); }
  .service-list { grid-template-columns: minmax(0, 1fr); }
  .reveal-split { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-table td:nth-child(2) { width: auto; }
  .spec-table { font-size: 0.92rem; }
  .spec-table td:nth-child(3) { display: block; padding-top: 0.3rem; }
}

@media (max-width: 26rem) {
  .hero-actions .cta { width: 100%; text-align: center; }
}
