/* ==========================================================================
   Trackside Media Oy — yhden sivun sivusto
   Värit, typografia ja komponentit. Ei ulkoisia riippuvuuksia.
   ========================================================================== */

@font-face {
  font-family: "Bebas Neue";
  src: url("../assets/fonts/BebasNeue-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0b0c0b;
  --ink-2: #121412;
  --ink-3: #191c19;
  --bone: #efeae1;
  --bone-dim: #d8d3c8;
  --muted: #a5a198;
  --line: rgba(239, 234, 225, 0.14);
  --line-strong: rgba(239, 234, 225, 0.28);
  /* Brändin punainen logosta (#e62023) ja sitä vaaleampi sävy pienille
     teksteille, jotta kontrasti pysyy WCAG AA -tasolla. */
  --accent: #e62023;
  --accent-bright: #ff5c5e;
  --accent-ink: #000000;

  --display: "Bebas Neue", "Haettenschweiler", "Arial Narrow", Impact, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1240px;
  --pad: clamp(20px, 5vw, 48px);
  --section-y: clamp(64px, 9vw, 128px);
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Hienovarainen rakeisuus tummalla pinnalla. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  /* Bebas Nueven Ä/Ö-pisteet nousevat 0,87 em korkeuteen, joten riviväli
     pidetään riittävänä, jotta pisteet erottuvat eivätkä osu edelliseen riviin. */
  line-height: 1.12;
  letter-spacing: 0.005em;
  margin: 0;
}

p { margin: 0; }

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

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

.wrap {
  width: min(100% - 2 * var(--pad), var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10000;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 600 13px/1 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

/* --------------------------------------------------------------------------
   Otsikkopalkki
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 12, 11, 0.78);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  transition: min-height 0.3s ease;
}
.site-header.is-scrolled .site-header__inner { min-height: 62px; }

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--bone);
  flex: none;
}
/* Virallinen logo: valkoinen tausta poistettu, jotta se toimii tummalla. */
.brand__logo {
  display: block;
  height: 44px;
  width: auto;
}
@media (max-width: 900px) {
  .brand__logo { height: 34px; }
}
/* Puhelimessa CTA on herossa ja valikossa — otsikkopalkki pidetään kevyenä. */
@media (max-width: 560px) {
  .header-actions .btn { display: none; }
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
}
.nav__link {
  position: relative;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bone-dim);
  padding-block: 6px;
  transition: color 0.2s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right 0.28s ease;
}
.nav__link:hover,
.nav__link:focus-visible { color: var(--bone); }
.nav__link:hover::after,
.nav__link:focus-visible::after { right: 0; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: none;
}
.header-phone {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--bone-dim);
  transition: color 0.2s ease;
}
.header-phone:hover { color: var(--accent); }

/* Painikkeet */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
/* Hover tummenee: valkoinen teksti pysyy luettavana myös hoverissa. */
.btn--primary:hover { background: #c71b1e; border-color: #c71b1e; }
.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--bone);
}
.btn--ghost:hover { border-color: var(--bone); background: rgba(239, 234, 225, 0.06); }
.btn--small { padding: 12px 18px; font-size: 11px; }

/* Mobiilin valikko */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--bone);
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  content: "";
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before { position: absolute; top: -6px; }
.nav-toggle__bars::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(600px, 90svh, 900px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 45%;
  filter: saturate(0.8) contrast(1.06) brightness(0.82);
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 12, 11, 0.95) 0%, rgba(11, 12, 11, 0.82) 38%, rgba(11, 12, 11, 0.28) 72%, rgba(11, 12, 11, 0.55) 100%),
    linear-gradient(0deg, var(--ink) 2%, rgba(11, 12, 11, 0) 46%);
}

.hero__inner {
  width: min(100% - 2 * var(--pad), var(--wrap));
  margin-inline: auto;
  padding-block: clamp(56px, 9vw, 96px) clamp(28px, 4vw, 40px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  flex: none;
}

.hero h1 {
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 1.06;
  letter-spacing: 0.014em;
  max-width: 15ch;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--accent); }

.hero__lead {
  margin-top: clamp(20px, 2.6vw, 30px);
  max-width: 54ch;
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  line-height: 1.62;
  color: var(--bone-dim);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(28px, 3.4vw, 40px);
}

.hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero__tags li { display: flex; align-items: center; gap: 10px; }
.hero__tags li::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--accent);
  flex: none;
}
.hero__scroll {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero__scroll:hover { color: var(--bone); }

/* Animaatiot latautuessa */
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
.hero .eyebrow,
.hero h1,
.hero__lead,
.hero__actions,
.hero__foot {
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero h1 { animation-delay: 0.08s; }
.hero__lead { animation-delay: 0.16s; }
.hero__actions { animation-delay: 0.24s; }
.hero__foot { animation-delay: 0.34s; }

/* --------------------------------------------------------------------------
   Liikkuva nauha
   -------------------------------------------------------------------------- */
.ticker {
  background: var(--accent);
  color: var(--accent-ink);
  border-bottom: 1px solid var(--ink);
  overflow: hidden;
  padding-block: 10px;
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 38s linear infinite;
}
.ticker__group {
  display: flex;
  align-items: center;
  flex: none;
}
.ticker__item {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.2rem, 1.9vw, 1.65rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-inline: 18px;
}
.ticker__sep {
  width: 7px;
  height: 7px;
  background: var(--accent-ink);
  transform: rotate(45deg);
  flex: none;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker:hover .ticker__track { animation-play-state: paused; }

/* --------------------------------------------------------------------------
   Osiot
   -------------------------------------------------------------------------- */
.section {
  padding-block: var(--section-y);
  scroll-margin-top: 84px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.section--tight { padding-block: clamp(56px, 7vw, 92px); }
.section--surface { background: var(--ink-2); }

.section__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-bright);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}
.section__label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
  max-width: 120px;
}

.section h2 {
  font-size: clamp(2.15rem, 5.2vw, 4.3rem);
  line-height: 1.1;
  letter-spacing: 0.014em;
  max-width: 20ch;
  text-wrap: balance;
}
.section__lead {
  margin-top: 22px;
  max-width: 58ch;
  color: var(--bone-dim);
  font-size: clamp(1rem, 1.25vw, 1.08rem);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}
.split--middle { align-items: center; }

/* Kilpailutyypit */
.events {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.event {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: clamp(14px, 2.4vw, 28px);
  padding-block: clamp(24px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
}
.event__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent-bright);
  padding-top: 8px;
}
.event h3 {
  font-size: clamp(1.5rem, 2.3vw, 1.95rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
}
.event p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 48ch;
}

/* Kuvapari */
.band {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(10px, 1.4vw, 18px);
  margin-top: clamp(40px, 5vw, 64px);
  aspect-ratio: 16 / 7;
}
.band figure { margin: 0; position: relative; overflow: hidden; }
.band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.05);
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.5s ease;
}
.band figure { aspect-ratio: auto; height: 100%; }
.band figure:hover img { transform: scale(1.03); filter: saturate(1) contrast(1.05); }
.band figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 12px 16px;
  background: rgba(11, 12, 11, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

/* Palvelut */
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: clamp(40px, 5vw, 64px);
}
.service {
  background: var(--ink);
  padding: clamp(22px, 2.6vw, 34px);
  min-height: 196px;
  display: flex;
  flex-direction: column;
  transition: background 0.3s ease;
}
.service:hover { background: var(--ink-3); }
.service__num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--accent-bright);
}
.service h3 {
  font-size: clamp(1.3rem, 1.9vw, 1.6rem);
  line-height: 1.06;
  margin-top: 26px;
  letter-spacing: 0.015em;
}
.service p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.58;
}

/* Prosessi */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: clamp(40px, 5vw, 64px);
}
.step {
  background: var(--ink);
  padding: clamp(22px, 2.4vw, 32px);
  position: relative;
}
.step__num {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(239, 234, 225, 0.32);
  display: block;
  margin-bottom: 22px;
}
.step h3 {
  font-size: 1.32rem;
  line-height: 1.06;
  letter-spacing: 0.015em;
}
.step p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Periaatteet */
.principles {
  display: grid;
  gap: 26px;
  margin-top: 8px;
}
.principle {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.principle h3 {
  font-size: 1.36rem;
  line-height: 1.06;
  letter-spacing: 0.015em;
}
.principle p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.96rem;
  max-width: 46ch;
}

/* FAQ */
.faq {
  border-top: 1px solid var(--line);
  margin-top: clamp(32px, 4vw, 48px);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 22px;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--accent-bright);
  flex: none;
  line-height: 1;
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__answer {
  padding-bottom: 26px;
  color: var(--muted);
  max-width: 68ch;
  font-size: 0.98rem;
}
.faq__answer a { color: var(--bone-dim); }

/* Vastuunjako: järjestäjä ja promoottori */
.model {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: clamp(36px, 4vw, 56px);
}
.model__col {
  background: var(--ink-2);
  padding: clamp(22px, 2.8vw, 36px);
}
.model__col--us {
  background: #17130f;
  box-shadow: inset 3px 0 0 var(--accent);
}
.model__col h3 {
  font-size: clamp(1.35rem, 1.9vw, 1.6rem);
  letter-spacing: 0.015em;
  margin-bottom: 18px;
}
/* Oma sarake: yrityksen nimi logona tekstin sijaan */
.model__brand img {
  display: block;
  width: auto;
  height: clamp(32px, 3.6vw, 40px);
}
.model__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.model__col li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.5;
}
.model__col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 1px;
  background: var(--accent);
}
.model__note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--bone-dim);
  max-width: 42ch;
}

@media (max-width: 700px) {
  .model { grid-template-columns: 1fr; }
  .model__col--us { box-shadow: inset 0 3px 0 var(--accent); }
}

/* Palvelut: kolme pilaria */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: clamp(40px, 5vw, 64px);
}
.pillar {
  background: var(--ink);
  padding: clamp(24px, 2.8vw, 38px);
  display: flex;
  flex-direction: column;
  transition: background 0.3s ease;
}
.pillar:hover { background: var(--ink-3); }
.pillar__num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--accent-bright);
}
.pillar h3 {
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  letter-spacing: 0.015em;
  margin-top: 16px;
}
.pillar p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}
.pillar__list {
  list-style: none;
  margin: auto 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 9px;
  margin-top: 22px;
}
.pillar__list li {
  position: relative;
  padding-left: 17px;
  font-size: 0.9rem;
  color: var(--bone-dim);
  line-height: 1.45;
}
.pillar__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 1px;
  background: var(--accent);
}

/* Kuvagalleria */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 12px);
  margin-top: clamp(36px, 4.5vw, 60px);
}
.gallery__item {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: var(--ink-3);
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.86) contrast(1.04);
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.4s ease;
}
.gallery__item:hover img {
  transform: scale(1.03);
  filter: saturate(1) contrast(1.04);
}
.gallery__item--wide { grid-column: span 3; aspect-ratio: 16 / 9; }
.gallery__item--third { grid-column: span 2; aspect-ratio: 4 / 3; }
.gallery__item--square { grid-column: span 2; aspect-ratio: 1 / 1; }
.gallery__item--half { grid-column: span 4; aspect-ratio: 16 / 9; }

.gallery__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 40px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.gallery__credit {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 40ch;
  line-height: 1.7;
}
.gallery__facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 30px;
  font-size: 0.82rem;
  color: var(--muted);
}
.gallery__facts strong { color: var(--bone-dim); font-weight: 600; }

@media (max-width: 1040px) {
  .pillars { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery__item--wide,
  .gallery__item--half { grid-column: span 2; }
  .gallery__item--third { grid-column: span 1; aspect-ratio: 1 / 1; }
  .gallery__item--square { grid-column: span 1; }
}

/* --------------------------------------------------------------------------
   Yhteystiedot
   -------------------------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.contact__list {
  margin-top: clamp(28px, 3.4vw, 44px);
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.contact__row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.contact__key {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact__val {
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  text-decoration: none;
  color: var(--bone);
  transition: color 0.2s ease;
  overflow-wrap: anywhere;
}
a.contact__val:hover { color: var(--accent); }
.contact__line { display: block; }

.contact__note {
  margin-top: 26px;
  padding: 18px 20px;
  border-left: 2px solid var(--accent);
  background: rgba(255, 74, 28, 0.06);
  color: var(--bone-dim);
  font-size: 0.92rem;
  max-width: 44ch;
}

/* Lomake */
.contact-form {
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: clamp(22px, 3vw, 40px);
}
.form-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.15;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.form-intro {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 26px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--bone);
  font-family: var(--sans);
  font-size: 1rem;
  padding: 13px 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--ink-3);
}
.form-group textarea { resize: vertical; min-height: 132px; }

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-privacy {
  font-size: 0.8rem;
  color: var(--muted);
  margin-block: 16px 18px;
  line-height: 1.5;
}
.form-privacy a { color: var(--bone-dim); }

.form-submit { width: 100%; justify-content: center; }
.form-submit[aria-busy="true"] { opacity: 0.7; cursor: progress; }

.form-status {
  margin-top: 14px;
  font-size: 0.9rem;
  min-height: 1.2em;
}
.form-status--success { color: #7ed99a; }
.form-status--error { color: #ff8f7a; }

/* --------------------------------------------------------------------------
   Alatunniste
   -------------------------------------------------------------------------- */
.site-footer {
  padding-block: clamp(48px, 6vw, 80px) 28px;
  background: var(--ink);
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: clamp(28px, 5vw, 64px);
  padding-bottom: clamp(36px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}
.footer-brand .brand__logo { height: 54px; }
.site-footer__tagline {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 32ch;
}
.footer-col h2 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.footer-col a,
.footer-col .linklike {
  font-size: 0.94rem;
  color: var(--bone-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-col a:hover,
.footer-col .linklike:hover { color: var(--accent); }

.linklike {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 22px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* 404: footer alas, vaikka sisältö on lyhyt */
.page-404 { display: flex; flex-direction: column; min-height: 100svh; }
.page-404 main { flex: 1 0 auto; }

/* Tekijämerkintä footerissa */
.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.footer-credit a {
  display: inline-flex;
  align-items: center;
  padding-block: 8px;
}
.footer-credit img {
  display: block;
  width: auto;
  height: 10px;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}
.footer-credit a:hover img,
.footer-credit a:focus-visible img { opacity: 1; }

@media (max-width: 620px) {
  .footer-credit { gap: 8px; }
}

/* --------------------------------------------------------------------------
   Sisältösivut (tietosuojaseloste, laskutustiedot)
   -------------------------------------------------------------------------- */
.legal {
  width: min(100% - 2 * var(--pad), 780px);
  margin-inline: auto;
  padding-block: clamp(48px, 7vw, 96px) clamp(64px, 8vw, 110px);
}
.legal h1 {
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.06;
  margin-bottom: 18px;
}
.legal h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.6rem);
  margin-top: 42px;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.legal p,
.legal li {
  color: var(--bone-dim);
  font-size: 0.98rem;
}
.legal ul { padding-left: 20px; margin-block: 12px; }
.legal li { margin-bottom: 7px; }
.legal a { color: var(--bone); text-decoration-color: var(--accent); }
.legal > p:first-of-type { color: var(--muted); font-size: 0.9rem; }
.legal__lead { max-width: 52ch; margin-block: 14px 24px; }
.legal .btn { margin-bottom: 8px; }
.legal p > a { overflow-wrap: anywhere; }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 0.88rem;
}
.legal th,
.legal td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--bone-dim);
}
.legal th {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.billing { display: grid; gap: 0; margin: 0; }
.billing dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 14px;
}
.billing dd {
  margin: 2px 0 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--bone);
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   Vastaanottavuus
   -------------------------------------------------------------------------- */
@media (max-width: 1040px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__link {
    padding-block: 15px;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
  }
  .nav__link::after { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-phone { display: none; }
  .site-header__inner { gap: 14px; }

  .split,
  .contact { grid-template-columns: minmax(0, 1fr); }
  .split--middle { align-items: start; }
  .band { grid-template-columns: 1fr; aspect-ratio: auto; }
  .band figure { aspect-ratio: 16 / 10; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .hero h1 { max-width: 18ch; }
}

@media (max-width: 700px) {
  /* Kapealla näytöllä kuva rajautuu voimakkaammin: tummennetaan alaosa,
     jotta otsikko erottuu pyörän yksityiskohdista. */
  .hero__scrim {
    background:
      linear-gradient(0deg, var(--ink) 6%, rgba(11, 12, 11, 0.92) 44%, rgba(11, 12, 11, 0.5) 78%, rgba(11, 12, 11, 0.55) 100%);
  }
  /* Kapealla näytöllä hero rajautuu pystyyn: kypärä pysyy kuvassa. */
  .hero__media img { object-position: 50% 22%; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .eyebrow {
    font-size: 9.5px;
    letter-spacing: 0.14em;
    gap: 9px;
  }
  .eyebrow::before { width: 18px; }
  .hero__tags { display: none; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
  .services { grid-template-columns: minmax(0, 1fr); }
  .service { min-height: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .event { grid-template-columns: 34px minmax(0, 1fr); }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .hero { min-height: 92svh; }
  .contact__row { grid-template-columns: 1fr; gap: 4px; }
  .site-footer__bottom { flex-direction: column; }
  .hero__foot { margin-top: 36px; }
}

/* Lomakkeen apuviestit */
.form-hint {
  margin-top: 8px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
}
.form-noscript {
  margin-bottom: 18px;
  padding: 12px 14px;
  border-left: 2px solid var(--accent);
  background: rgba(230, 32, 35, 0.08);
  color: var(--bone-dim);
  font-size: 0.9rem;
  line-height: 1.55;
}
.form-fallback {
  margin-top: 14px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}
.form-fallback a { color: var(--bone-dim); }

/* Puhelin: kosketuskoot, lomake ja turva-alueet */
@media (max-width: 620px) {
  .form-group input,
  .form-group select,
  .form-group textarea {
    min-height: 48px;
    padding: 14px;
  }
  .form-group textarea { min-height: 150px; }
  .form-submit { min-height: 52px; }
  .contact-form { padding: 22px 18px 24px; }
  .contact__key { margin-bottom: 4px; }
  .contact__val { overflow-wrap: anywhere; }

  .faq summary { padding-block: 18px; min-height: 56px; }
  .gallery__facts { gap: 6px 18px; }
  .site-footer { padding-bottom: calc(30px + env(safe-area-inset-bottom, 0px)); }
  .footer-links { gap: 4px 18px; }
  .footer-links a,
  .footer-links .linklike { display: inline-block; padding-block: 8px; }
}

/* Kosketuskohteiden vähimmäiskoko */
.site-header .brand { min-height: 44px; }
.hero__scroll { padding-block: 12px; display: inline-flex; align-items: center; }
.contact__val { padding-block: 6px; }

/* Matala näyttö (puhelin vaakatasossa): hero ei saa viedä kahta ruutua */
@media (max-height: 560px) and (orientation: landscape) {
  .hero { min-height: auto; }
  .hero__inner { padding-block: 72px 26px; }
  .hero h1 { font-size: clamp(2.1rem, 5vw, 2.9rem); }
  .hero__lead { font-size: 0.95rem; margin-top: 12px; }
  .hero__actions { margin-top: 20px; }
  .hero__foot { margin-top: 16px; }
  .hero__tags { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .ticker__track { animation: none; }
}

@media print {
  .site-header,
  .ticker,
  .hero__media,
  .hero__scrim,
  .contact-form,
  .site-footer { display: none; }
  body { background: #fff; color: #000; }
}

/* Yksittäinen kuva tekstin rinnalla */
.shot {
  margin: 0;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.04);
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.shot:hover img { transform: scale(1.03); }
.shot figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 12px 16px;
  background: rgba(11, 12, 11, 0.78);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

/* Alatunnisteen juridiset linkit */
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.footer-links a,
.footer-links .linklike {
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.12em;
}
.footer-links a:hover,
.footer-links .linklike:hover { color: var(--bone); text-decoration: underline; }
.footer-links .linklike {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .shot { aspect-ratio: 16 / 10; }
}
