/* Vonk Sauna Technics · prototype VSPR-0342 */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --night: #0c1120;
  --night-2: #131a2d;
  --line: #26304a;
  --text: #eef1f6;
  --mute: #a3aec2;
  --amber: #f0a23b;
  --magenta: #e0367f;
  --violet: #6a3fd4;
  --cyan: #29a8e8;
  --spectrum: linear-gradient(90deg, var(--amber), var(--magenta) 35%, var(--violet) 65%, var(--cyan));
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; max-width: 62ch; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Type: one family, two widths. Expanded for display, normal for reading. */
h1, h2, h3 {
  font-stretch: 125%;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 6.4vw, 84px); }
h2 { font-size: clamp(30px, 3.8vw, 50px); }
h3 { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.2; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: #d3daE6; max-width: 54ch; text-wrap: pretty; }
.mute { color: var(--mute); }

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

/* The one signature: the spectrum line, a light cue running across the page */
.cue {
  height: 3px;
  background: var(--spectrum);
  border: 0;
  margin: 0;
  transform-origin: left center;
}

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(12, 17, 32, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { flex-shrink: 0; }
.logo img { height: 58px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.nav a { text-decoration: none; color: var(--mute); padding: 6px 0; }
.nav a[aria-current="page"], .nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--amber); }
.menu-btn { display: none; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--text);
  color: var(--night);
  font-weight: 600;
  text-decoration: none;
  border: 0;
  font: inherit; font-weight: 600;
  cursor: pointer;
  transition: transform .15s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px #4a5675; }
.btn.small { padding: 9px 16px; font-size: 15px; }
@media (hover: hover) {
  .btn:hover { background: #fff; }
  .btn.ghost:hover { background: rgba(255,255,255,.06); }
}

/* Hero */
.hero { position: relative; min-height: min(86vh, 760px); display: grid; align-items: end; overflow: hidden; }
.hero picture, .hero > img { position: absolute; inset: 0; }
.hero > img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,17,32,.15) 0%, rgba(12,17,32,.55) 45%, var(--night) 96%);
}
.hero .wrap { position: relative; z-index: 1; padding-bottom: clamp(48px, 8vh, 88px); width: 100%; }
.hero h1 { max-width: 15ch; }
.hero .cue { width: min(420px, 60%); margin: 28px 0 26px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Proof line under the hero */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof .wrap { display: grid; grid-template-columns: 1.1fr 2fr; gap: 40px; padding-top: 34px; padding-bottom: 34px; align-items: center; }
.proof strong { font-stretch: 125%; font-size: 20px; line-height: 1.25; display: block; }
.venues { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; padding: 0; list-style: none; color: var(--mute); font-size: 15px; }
.venues b { color: var(--text); font-weight: 600; }

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section.alt { background: var(--night-2); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 48px; }
.section-head p { margin: 0; }

/* Services as rows, not cards */
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: 1.2fr 1.6fr 240px; gap: 36px; align-items: center;
  padding: 28px 0; border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.service h3 { margin: 0; }
.service p { margin: 0; color: var(--mute); }
.service img { width: 240px; height: 150px; object-fit: cover; border-radius: 6px; }
.service .more { display: inline-block; margin-top: 10px; color: var(--text); font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--amber); }
@media (hover: hover) {
  a.service:hover h3 { color: #fff; }
  a.service:hover .more { text-decoration-color: var(--text); }
}

/* Steps: a real sequence, so numbered, along the cue line */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 15px; height: 3px; background: var(--spectrum); }
.steps li { counter-increment: step; position: relative; padding-top: 52px; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 33px; height: 33px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--night); border: 2px solid var(--text);
  font-weight: 700; font-size: 15px;
}
.alt .steps li::before { background: var(--night-2); }
.steps h3 { font-size: 19px; margin-bottom: 8px; }
.steps p { color: var(--mute); font-size: 15px; margin: 0; }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.split.flip > :first-child { order: 2; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; }
.ticks li { padding: 12px 0 12px 30px; border-top: 1px solid var(--line); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 22px; width: 14px; height: 3px; background: var(--amber); }
.ticks strong { display: block; }
.ticks span { color: var(--mute); font-size: 15px; }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.project { position: relative; display: block; text-decoration: none; border-radius: 8px; overflow: hidden; background: var(--night-2); }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.project .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 22px 20px; background: linear-gradient(180deg, transparent, rgba(12,17,32,.92)); }
.project h3 { margin: 0 0 2px; }
.project .cap span { color: #c6cfdd; font-size: 15px; }
.p-a { grid-column: span 7; aspect-ratio: 16 / 10; }
.p-b { grid-column: span 5; }
.p-c { grid-column: span 5; aspect-ratio: 4 / 3; }
.p-d { grid-column: span 7; }
@media (hover: hover) { a.project:hover img { transform: scale(1.03); } }

/* Championships timeline */
.years { display: grid; grid-template-columns: 180px 1fr; gap: 0 32px; border-top: 1px solid var(--line); }
.years dt, .years dd { margin: 0; padding: 18px 0; border-bottom: 1px solid var(--line); }
.years dt { font-weight: 600; }
.years dd { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.yr { font-variant-numeric: tabular-nums; padding: 2px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px #3a4565; font-size: 15px; }

/* Training levels */
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.level { border-top: 3px solid var(--c); padding-top: 22px; }
.level img { width: 170px; height: auto; margin-bottom: 18px; filter: drop-shadow(0 8px 24px rgba(0,0,0,.45)); }
.level ul { padding-left: 18px; color: var(--mute); font-size: 15px; margin: 12px 0 0; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.facts div { border-left: 1px solid var(--line); padding-left: 18px; }
.facts strong { display: block; }
.facts span { color: var(--mute); font-size: 15px; }

/* Page intro for subpages */
.intro { padding: clamp(64px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); }
.intro .cue { width: 160px; margin-bottom: 28px; }
.band { width: 100%; height: clamp(160px, 24vw, 360px); object-fit: cover; }

/* Gallery + lightbox */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 28px; }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 6px; overflow: hidden; aspect-ratio: 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.case { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--line); scroll-margin-top: 72px; }
.case-head { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.case video { max-height: 640px; border-radius: 8px; margin-top: 28px; }
dialog.lightbox { padding: 0; border: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
dialog.lightbox::backdrop { background: rgba(6, 9, 18, .92); }
dialog.lightbox img { max-width: 94vw; max-height: 88vh; border-radius: 6px; }
dialog.lightbox button { position: fixed; top: 18px; right: 18px; }
dialog[open] { animation: pop .18s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.98); } }

/* Contact */
.contact { text-align: left; }
.contact .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; }
.contact-card { border-left: 3px solid; border-image: var(--spectrum) 1; padding-left: 24px; }
.contact-card a { font-size: 20px; font-weight: 600; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 40px 0; color: var(--mute); font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.foot img { width: 140px; height: auto; }
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

/* One orchestrated moment: the hero cue draws in on load */
@media (prefers-reduced-motion: no-preference) {
  .hero .cue { animation: draw 1.1s .25s var(--ease) both; }
  .hero h1, .hero .lead, .hero .actions { animation: rise .7s var(--ease) both; }
  .hero .lead { animation-delay: .1s; }
  .hero .actions { animation-delay: .18s; }
}
@keyframes draw { from { transform: scaleX(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* Responsive */
@media (max-width: 980px) {
  .service { grid-template-columns: 1fr 1.4fr; }
  .service img { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .steps::before { display: none; }
  .facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--night); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 17px; }
  .menu-btn { display: inline-flex; margin-left: auto; background: none; border: 1px solid #4a5675; color: var(--text); border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 15px; }
  .top .btn.small { display: none; }
  .proof .wrap, .section-head, .split, .contact .wrap, .case-head { grid-template-columns: 1fr; gap: 20px; }
  .split.flip > :first-child { order: 0; }
  .projects { grid-template-columns: 1fr; }
  .projects > * { grid-column: auto; aspect-ratio: 4 / 3; }
  .levels { grid-template-columns: 1fr; }
  .years { grid-template-columns: 1fr; }
  .years dt { border-bottom: 0; padding-bottom: 4px; }
}
@media (max-width: 560px) {
  .service { grid-template-columns: 1fr; gap: 8px; }
  .steps, .facts { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}

/* Light section: breaks up the dark page. Redefines the tokens, so components follow. */
.section.light {
  --text: #121a2c;
  --mute: #4a5468;
  --line: #c4cbd7;
  background: #dce1e9;
  color: var(--text);
}
.light .lead { color: #33405a; }
.light .btn { color: #fff; }
.light .btn.ghost { color: var(--text); box-shadow: inset 0 0 0 1px #9aa5b8; }
.light .steps li::before { background: #dce1e9; }
.light .ticks li::before { background: var(--magenta); }
.light a:focus-visible { outline-color: var(--violet); }
@media (hover: hover) {
  .light .btn:hover { background: #000; }
  .light .btn.ghost:hover { background: rgba(15,22,38,.06); }
  .light a.service:hover h3 { color: #000; }
}

/* Mobile: galleries in two columns, so a project doesn't become one endless column */
@media (max-width: 560px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .hero h1 { font-size: 34px; }
  .contact-card a { font-size: 18px; word-break: break-word; }
}
