/* lopenkorjaamo.fi landing v3: brändipassi 2026-09-02.
   Structural DNA "hallin ovi raollaan illalla" + tunnus "kaksi rengasta, yksi paikka".
   Koti tokeneille: tokens.css. Koti brändille: docs/BRAND.md. */

@font-face {
  font-family: "Alfa Slab One";
  src: url("../../assets/fonts/alfa-slab-one-latin-400.woff2?v=2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Familjen Grotesk";
  src: url("../../assets/fonts/familjen-grotesk-latin-wght.woff2?v=2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: block;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  min-width: 320px;
  background: var(--yomusta);
  color: var(--teksti);
  font-family: var(--fontti-leipa);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: clamp(0.75rem, 2vh, 1.4rem);
  padding: clamp(1rem, 2.8vh, 2rem) var(--reuna) clamp(0.75rem, 2vh, 1.35rem);
  background: var(--yomusta);
  color: var(--teksti);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

img,
picture,
svg {
  display: block;
}

address {
  font-style: normal;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--keltainen);
  color: var(--yomusta);
}

:focus-visible {
  outline: 3px solid var(--keltainen);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 20;
  padding: 0.65rem 0.9rem;
  background: var(--keltainen);
  color: var(--yomusta);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------------------------------------------------------------- näyttämö */

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--yomusta);
  pointer-events: none;
}

.scene picture,
.scene img {
  width: 100%;
  height: 100%;
}

.scene picture {
  position: absolute;
  inset: -3%;
  width: 106%;
  height: 106%;
}

.scene img {
  /* Kuva v3 (2.9.): 3:2, räikkä oikeassa alakulmassa renkaiden edessä. Leveällä
     ruudulla rajaus painottaa alaosaa niin että työkalu pysyy kuvassa; valaisimen
     hehkun kantaa .scene__glow. */
  object-fit: cover;
  object-position: 40% 74%;
  filter: saturate(0.92) contrast(1.05);
}

.scene__veil {
  position: absolute;
  inset: 0;
  /* Kevyt vasemmalla ylhäällä (työvalaisin), tumma alhaalla ja vasemmalla
     tekstin alla. Oikea puoli jätetään renkaille: ei enää paneelia niiden päällä. */
  background:
    linear-gradient(180deg, rgba(7, 7, 6, 0.4) 0%, rgba(8, 8, 7, 0.26) 40%, rgba(8, 7, 6, 0.6) 100%),
    linear-gradient(90deg, rgba(8, 8, 7, 0.7) 0%, rgba(8, 8, 7, 0.5) 42%, rgba(8, 8, 7, 0.16) 68%, rgba(8, 8, 7, 0.14) 100%);
}

/* Valokerroksen värit ovat rgba-arvoina (--valo #ffc86a, --yomusta #0d0c0a) eikä
   color-mix()-funktiona: Safari 16.0-16.1 ja Firefox < 113 hylkäisivät koko gradientin
   (Codex 2.9. KORJATTAVA 3). Jos tokenit muuttuvat, nämä päivitetään käsin.
   Työvalaisimen kartio on sivun ainoa liikkuva valo-objekti. Leveät
   gradienttisiirtymät ja maski sulauttavat reunat hallin pimeyteen. */
.scene__cone {
  position: absolute;
  inset: 0;
  opacity: 1;
  transform-origin: 7% 6%;
}

.scene__cone-light {
  position: absolute;
  inset: 0;
  background: conic-gradient(
    from 96deg at 7% 6%,
    transparent 0deg,
    rgba(255, 200, 106, 0.08) 9deg,
    rgba(255, 200, 106, 0.56) 23deg,
    rgba(255, 200, 106, 0.74) 30deg,
    rgba(255, 200, 106, 0.26) 47deg,
    transparent 61deg
  );
  -webkit-mask-image: radial-gradient(
    ellipse 108% 96% at 7% 6%,
    var(--yomusta) 0%,
    var(--yomusta) 28%,
    rgba(13, 12, 10, 0.74) 58%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 108% 96% at 7% 6%,
    var(--yomusta) 0%,
    var(--yomusta) 28%,
    rgba(13, 12, 10, 0.74) 58%,
    transparent 100%
  );
  mix-blend-mode: screen;
  opacity: 0.3;
}

/* Märän lattian kapea vastaheijastus. Muoto syntyy kahdesta epäsäännöllisestä
   vaaleasta ytimestä, jotta se ei piirry suoraksi valokaistaksi. */
.scene__reflect {
  position: absolute;
  left: -2vw;
  bottom: -9vh;
  width: 22vw;
  height: 54vh;
  background:
    radial-gradient(
      ellipse 18% 58% at 48% 48%,
      rgba(255, 200, 106, 0.68) 0%,
      rgba(255, 200, 106, 0.22) 38%,
      transparent 74%
    ),
    radial-gradient(
      ellipse 43% 19% at 53% 70%,
      rgba(255, 200, 106, 0.28) 0%,
      transparent 76%
    );
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 0%,
    rgba(13, 12, 10, 0.76) 20%,
    var(--yomusta) 48%,
    transparent 100%
  );
  mask-image: linear-gradient(
    180deg,
    transparent 0%,
    rgba(13, 12, 10, 0.76) 20%,
    var(--yomusta) 48%,
    transparent 100%
  );
  opacity: 0.6;
  transform-origin: 50% 100%;
}

/* Renkaiden valonpuoleinen reuna ottaa vastaan saman lämpimän lähteen. */
.scene__rim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 4.6% 26% at 69% 29%,
      rgba(255, 200, 106, 0.70) 0%,
      rgba(255, 200, 106, 0.26) 38%,
      transparent 76%
    ),
    radial-gradient(
      ellipse 4.2% 19% at 59.5% 41%,
      rgba(255, 200, 106, 0.64) 0%,
      rgba(255, 200, 106, 0.22) 40%,
      transparent 78%
    ),
    /* Räikän paikallinen valo alaoikealla (Andy 2.9.: työkalu esiin). Sama lähde,
       sama sävy; leveä matala ellipsi lattian tasossa. */
    radial-gradient(
      ellipse 16% 9% at 84% 88%,
      rgba(255, 200, 106, 0.78) 0%,
      rgba(255, 200, 106, 0.30) 45%,
      transparent 80%
    );
  opacity: 0.22;
}

/* Valaisimen paikallinen hehku pysyy lähteessä. Pehmeys tulee gradientista,
   joten suureen kerrokseen ei tarvita jatkuvaa blur-suodatusta. */
.scene__glow {
  position: absolute;
  top: -13vh;
  left: -9vw;
  width: min(34rem, 48vw);
  height: min(32rem, 58vh);
  background: radial-gradient(
    ellipse at 31% 28%,
    rgba(255, 200, 106, 0.58) 0%,
    rgba(255, 200, 106, 0.24) 30%,
    rgba(255, 200, 106, 0.07) 52%,
    transparent 72%
  );
  opacity: 0.64;
  transform-origin: 31% 28%;
}

.dust {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.78;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.83' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.top,
.stage,
.contact,
.bottom {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maksimileveys);
  margin-inline: auto;
}

/* ---------------------------------------------------------------- ylätunniste */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: block;
  color: var(--paperi);
  text-decoration: none;
  --merkki-valo: 0;
}

.brand__lockup {
  width: auto;
  height: clamp(2.9rem, 4.6vw, 3.9rem);
  overflow: visible;
}

.brand__lockup .renkaat {
  fill: var(--paperi);
  transition: filter 500ms ease;
  filter: drop-shadow(0 0 calc(var(--merkki-valo) * 0.6rem) rgba(255, 200, 90, calc(var(--merkki-valo) * 0.55)));
}

.brand__lockup .maa {
  fill: var(--keltainen);
  transition: filter 500ms ease;
  filter: drop-shadow(0 0 calc(var(--merkki-valo) * 0.7rem) rgba(255, 210, 0, calc(var(--merkki-valo) * 0.7)));
}

.brand__lockup .sana {
  fill: var(--paperi);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.35rem;
  padding: 0.55rem 0.95rem 0.55rem 0.8rem;
  border: 1px solid var(--viiva);
  border-radius: 99rem;
  background: rgba(12, 11, 9, 0.62);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
  color: var(--paperi);
  font-size: clamp(0.78rem, 0.95vw, 0.88rem);
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1.2;
  backdrop-filter: blur(10px);
}

.status-pill__dot {
  width: 0.5rem;
  height: 0.5rem;
  flex: none;
  border-radius: 50%;
  background: var(--keltainen);
  box-shadow: 0 0 0 0 rgba(255, 210, 0, 0.65);
  animation: status-pulse 2.5s ease-out infinite;
}

/* ---------------------------------------------------------------- näyttämön teksti */

.stage {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 46rem) minmax(0, 1fr);
  align-items: center;
  align-content: center;
}

.copy {
  width: 100%;
  max-width: 46rem;
}

/* V1-viesti: ei laatikkoa, vaan keltainen maaviiva (tunnuksen kaiku) ja lause, joka
   hehkuu kuin valaistu kyltti. V4 (Andy 2.9.): isompi ja selvästi erottuva. */
.soon {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  max-width: 100%;
  margin-bottom: clamp(1rem, 2.4vh, 1.6rem);
  color: var(--keltainen-vaalea);
  font-size: clamp(1.05rem, 1.45vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.3;
  text-shadow:
    0 0 0.4rem rgba(255, 224, 120, 0.55),
    0 0 1.4rem rgba(255, 200, 60, 0.4),
    0 0 3rem rgba(255, 180, 40, 0.22);
  animation: sign-glow 5.5s ease-in-out infinite;
}

.soon__maa {
  width: 2.8rem;
  height: 4px;
  flex: none;
  background: var(--keltainen);
  box-shadow: 0 0 1.2rem rgba(255, 210, 0, 0.7), 0 0 0.3rem rgba(255, 230, 140, 0.9);
  animation: sign-glow-bar 5.5s ease-in-out infinite;
}

/* Valaistun kyltin hehku: hidas hengitys ja harvakseltaan pieni hetkellinen
   välähdys, kuin loisteputkessa. Ei sykkivää vilkkua. */
@keyframes sign-glow {
  0%,
  100% {
    text-shadow:
      0 0 0.4rem rgba(255, 224, 120, 0.5),
      0 0 1.4rem rgba(255, 200, 60, 0.32),
      0 0 3rem rgba(255, 180, 40, 0.16);
  }

  46% {
    text-shadow:
      0 0 0.5rem rgba(255, 230, 140, 0.75),
      0 0 1.8rem rgba(255, 205, 70, 0.55),
      0 0 3.6rem rgba(255, 185, 45, 0.32);
  }

  52% {
    text-shadow:
      0 0 0.35rem rgba(255, 224, 120, 0.45),
      0 0 1.2rem rgba(255, 200, 60, 0.3),
      0 0 2.6rem rgba(255, 180, 40, 0.14);
  }

  55% {
    text-shadow:
      0 0 0.55rem rgba(255, 232, 150, 0.8),
      0 0 1.9rem rgba(255, 205, 70, 0.58),
      0 0 3.8rem rgba(255, 185, 45, 0.34);
  }
}

@keyframes sign-glow-bar {
  0%,
  100% {
    box-shadow: 0 0 1rem rgba(255, 210, 0, 0.55), 0 0 0.3rem rgba(255, 230, 140, 0.8);
  }

  50% {
    box-shadow: 0 0 1.8rem rgba(255, 210, 0, 0.9), 0 0 0.4rem rgba(255, 235, 160, 1);
  }
}

.headline {
  max-width: 13ch;
  color: var(--paperi);
  font-family: var(--fontti-kyltti);
  font-size: clamp(3.1rem, 5.1vw, 5rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.98;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 1.2rem 3.5rem rgba(0, 0, 0, 0.42);
}

.headline > span {
  display: block;
}

.headline__place {
  width: max-content;
  max-width: 30ch;
  margin-top: 0.4em;
  color: var(--keltainen);
  font-size: 0.4em;
  letter-spacing: 0.01em;
  line-height: 1.12;
  text-shadow: 0 0 2.5rem rgba(255, 204, 62, 0.22);
}

.lead {
  max-width: 42ch;
  margin-top: clamp(0.9rem, 2.2vh, 1.45rem);
  color: var(--paperi);
  opacity: 0.86;
  font-size: clamp(1rem, 1.2vw, 1.14rem);
  line-height: 1.5;
}

.actions {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 1.8vw, 1.35rem);
  margin-top: clamp(1.15rem, 2.8vh, 2rem);
}

/* Puhelinkilpi: sivun ainoa esine jolla on materiaali (sääntökirja §2.2). */
.plate {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  width: min(100%, 24rem);
  min-height: 5rem;
  align-content: center;
  padding: 0.8rem 2.6rem 0.85rem 1.2rem;
  border: 2px solid #0b0a08;
  border-radius: 5px;
  background: linear-gradient(180deg, var(--keltainen-vaalea), var(--keltainen));
  box-shadow:
    0 1.2rem 3rem rgba(0, 0, 0, 0.34),
    0 0 2.8rem rgba(255, 199, 50, 0.16),
    inset 0 1px rgba(255, 255, 255, 0.55);
  color: #0b0a08;
  text-decoration: none;
  transform-origin: center;
  transition: transform 180ms var(--ease-out), filter 180ms ease, box-shadow 180ms ease;
}

.plate::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 0.55rem 0.55rem, #3a352a 0 2px, rgba(255, 255, 255, 0.36) 2px 3px, transparent 3px),
    radial-gradient(circle at calc(100% - 0.55rem) 0.55rem, #3a352a 0 2px, rgba(255, 255, 255, 0.36) 2px 3px, transparent 3px),
    radial-gradient(circle at 0.55rem calc(100% - 0.55rem), #3a352a 0 2px, rgba(255, 255, 255, 0.36) 2px 3px, transparent 3px),
    radial-gradient(circle at calc(100% - 0.55rem) calc(100% - 0.55rem), #3a352a 0 2px, rgba(255, 255, 255, 0.36) 2px 3px, transparent 3px);
}

.plate__label {
  grid-column: 1 / -1;
  margin-bottom: 0.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
}

.plate__number {
  font-size: clamp(1.6rem, 2.3vw, 2.1rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
}

.plate__arrow {
  align-self: end;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 0.9;
}

.plate:hover {
  filter: brightness(1.05);
  transform: translateY(-3px);
  box-shadow:
    0 1.5rem 3.4rem rgba(0, 0, 0, 0.4),
    0 0 3.5rem rgba(255, 199, 50, 0.23),
    inset 0 1px rgba(255, 255, 255, 0.58);
}

.route-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding-block: 0.55rem;
  color: var(--paperi);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration-color: var(--keltainen);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3rem;
  transition: color 160ms ease;
}

.route-link:hover {
  color: var(--keltainen);
}

/* ---------------------------------------------------------------- yhteystiedot: ladonta, ei laatikko */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.5rem clamp(1.5rem, 4vw, 4rem);
  padding-top: clamp(0.9rem, 2vh, 1.3rem);
  border-top: 1px solid var(--viiva);
}

/* Kuva v3: räikkä on oikeassa alakulmassa. Leveällä ruudulla aukiolot ladotaan
   ensimmäiseksi ja ladonta jättää oikean neljänneksen kuvalle. DOM-järjestys
   (osoite, puhelin, aukiolot) säilyy ruudunlukijalle. */
@media (min-width: 901px) {
  .contact {
    max-width: min(100%, 56rem);
    margin-inline: 0 auto;
  }

  .contact__row:nth-child(3) {
    order: -1;
  }
}

.contact__row {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.28rem;
  padding-left: 1rem;
}

.contact__row::before {
  position: absolute;
  top: 0.35rem;
  left: 0;
  width: 3px;
  height: 1.1rem;
  content: "";
  background: var(--keltainen);
}

.contact__label {
  color: var(--teksti-himmea);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.25;
}

.contact__value {
  color: var(--paperi);
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
  font-weight: 600;
  line-height: 1.25;
}

.contact__value a {
  font-variant-numeric: tabular-nums;
  text-decoration-color: var(--keltainen);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25rem;
}

.contact__sub {
  color: var(--teksti-himmea);
  font-size: 0.92rem;
}

.hours {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.22rem 1rem;
  margin-top: 0.1rem;
  color: var(--paperi);
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

.hours dt {
  font-weight: 600;
  white-space: nowrap;
}

.hours dd {
  white-space: nowrap;
}

/* ---------------------------------------------------------------- alatunniste */

.bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 0.75rem 1.5rem;
  padding-top: clamp(0.65rem, 1.5vh, 1rem);
  border-top: 1px solid var(--viiva);
  color: var(--teksti-himmea);
  font-size: clamp(0.76rem, 0.85vw, 0.82rem);
  line-height: 1.45;
}

.bottom__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
}

.bottom__credit {
  white-space: nowrap;
}

.bottom__credit a {
  color: var(--paperi);
  text-underline-offset: 0.18rem;
}

.bottom__note {
  justify-self: end;
  color: var(--paperi);
  text-align: right;
}

/* ---------------------------------------------------------------- liike */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes status-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 210, 0, 0.6);
  }

  72% {
    box-shadow: 0 0 0 0.48rem rgba(255, 210, 0, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 210, 0, 0);
  }
}

/* CSS-fallback kun GSAP ei lataudu: sama järjestys, ilman ovea ja pyyhkäisyä. */
.top,
.soon,
.headline,
.lead,
.actions,
.contact,
.bottom {
  /* Varasisääntulo alkaa vasta 3 s kohdalla: JS ehtii ottaa ohjat ennen sitä myös
     hitaalla yhteydellä (Andy 2.9.: tailnetin yli sivu näkyi ensin ilman tehosteita
     ja "latautui uudelleen"). Ilman JavaScriptiä noscript-tyyli näyttää sivun heti,
     ja motion-off (GSAP puuttuu tai reduced-motion) näyttää sen heti. */
  animation: rise 0.86s var(--ease-out) 3.2s both;
}

.soon {
  animation-delay: 3.26s;
}

.headline {
  animation-delay: 3.34s;
}

.lead {
  animation-delay: 3.42s;
}

.actions {
  animation-delay: 3.5s;
}

.contact {
  animation-delay: 3.58s;
}

.bottom {
  animation-delay: 3.66s;
}

.motion-off .top,
.motion-off .soon,
.motion-off .headline,
.motion-off .lead,
.motion-off .actions,
.motion-off .contact,
.motion-off .bottom {
  animation: none;
  opacity: 1;
}

.motion-off .scene picture {
  opacity: 1;
}

.motion-on .top,
.motion-on .soon,
.motion-on .headline,
.motion-on .lead,
.motion-on .actions,
.motion-on .contact,
.motion-on .bottom {
  animation: none;
}

/* Sisääntulon aikana nousevat rivit ja elementit ylittävät hetkeksi ruudun
   alareunan, jolloin vierityspalkki välähtää ja layout hyppää (Andy 2.9.: "sivu
   tiivistyy"). Sisääntulon ajaksi vieritys lukitaan ja otsikon rivit leikataan;
   luokka poistuu kun aikajana on valmis. Ei ole yhden ruudun pakottamista. */
.motion-on.entering {
  overflow: hidden;
}

.motion-on .headline {
  overflow: hidden;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}

/* Kuva on tumma jo ennen JavaScriptiä ja ensimmäistä GSAP-framea (ovi on kiinni
   kunnes valo syttyy). Kirkastus opacitylla, jotta liike pysyy komposiittorilla.
   motion-off ja noscript palauttavat täyden kirkkauden. */
.scene picture {
  opacity: 0.4;
}

/* Valokerrokset alkavat pimeinä jo CSS:ssä, ei vasta motion-on-luokasta: hitaasti
   latautuva JS ei ehdi näyttää lopputilan valoja (Codex 2.9. KORJATTAVA 4).
   motion-off, reduced-motion ja nojs.css palauttavat ne. */
.scene__cone {
  opacity: 0;
  transform: rotate(-8deg);
}

.scene__reflect,
.scene__rim,
.scene__glow {
  opacity: 0;
}

.motion-off .scene__cone {
  opacity: 1;
  transform: none;
}

.motion-off .scene__reflect {
  opacity: 0.6;
}

.motion-off .scene__rim {
  opacity: 0.22;
}

.motion-off .scene__glow {
  opacity: 0.64;
}

/* Valokerroksen jälkeen sivulla liikkuvat vain valo, materiaalivasteet, pöly ja
   V1-rivin kylttihehku (Andyn pyyntö). Status-pillin syke poistuu: kaksi sykettä
   samalla ruudulla kilpailee. */
.status-pill__dot {
  animation: none;
}

/* ---------------------------------------------------------------- kapea */

@media (max-width: 900px) {
  body {
    gap: 0.9rem;
  }

  .stage {
    grid-template-columns: 1fr;
  }

  .copy {
    max-width: 100%;
  }

  .scene img {
    /* Codex-katselmus 2026-09-02 (KORJATTAVA 1): kapea rajaus (540 x 941), jossa
       molemmat renkaat mahtuvat ruutuun, ja kevyempi veil niiden kohdalla. */
    object-position: 55% 30%;
    filter: saturate(0.95) contrast(1.04) brightness(1.04);
  }

  .scene__veil {
    background:
      linear-gradient(180deg, rgba(7, 7, 6, 0.14) 0%, rgba(8, 8, 7, 0.3) 46%, rgba(8, 7, 6, 0.9) 100%),
      linear-gradient(90deg, rgba(8, 8, 7, 0.5) 0%, rgba(8, 8, 7, 0.16) 50%, rgba(8, 8, 7, 0.08) 100%);
  }

  .headline {
    text-shadow: 0 0.6rem 2rem rgba(0, 0, 0, 0.6), 0 0 0.6rem rgba(0, 0, 0, 0.45);
  }

  .contact {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.5rem;
  }

  .contact__row:last-child {
    grid-column: 1 / -1;
  }

  .hours {
    grid-template-columns: auto 1fr auto 1fr;
  }
}

@media (max-width: 640px) {
  body {
    padding: 0.85rem 1rem 0.7rem;
    gap: 0.7rem;
  }

  .scene__cone-light {
    -webkit-mask-image: radial-gradient(
      ellipse 96% 70% at 7% 6%,
      var(--yomusta) 0%,
      var(--yomusta) 24%,
      rgba(13, 12, 10, 0.68) 50%,
      transparent 88%
    );
    mask-image: radial-gradient(
      ellipse 96% 70% at 7% 6%,
      var(--yomusta) 0%,
      var(--yomusta) 24%,
      rgba(13, 12, 10, 0.68) 50%,
      transparent 88%
    );
    opacity: 0.18;
  }

  .scene__reflect {
    left: -8vw;
    bottom: -4vh;
    width: 36vw;
    height: 38vh;
    opacity: 0.52;
  }

  .scene__rim {
    background:
      radial-gradient(
        ellipse 7% 22% at 56% 31%,
        rgba(255, 200, 106, 0.66) 0%,
        rgba(255, 200, 106, 0.23) 38%,
        transparent 76%
      ),
      radial-gradient(
        ellipse 6% 17% at 52% 43%,
        rgba(255, 200, 106, 0.58) 0%,
        rgba(255, 200, 106, 0.20) 40%,
        transparent 78%
      );
    opacity: 0.16;
  }

  .scene__glow {
    top: -6vh;
    left: -18vw;
    width: 76vw;
    height: 34vh;
    opacity: 0.52;
  }

  .brand__lockup {
    height: 2.55rem;
  }

  .status-pill {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 11.5rem;
    min-height: 2rem;
    padding: 0.42rem 0.7rem 0.42rem 0.6rem;
    gap: 0.45rem;
    font-size: 0.72rem;
    line-height: 1.15;
  }

  .status-pill__dot {
    width: 0.42rem;
    height: 0.42rem;
  }

  .soon {
    margin-bottom: 0.8rem;
    gap: 0.6rem;
    font-size: 0.8rem;
  }

  .soon__maa {
    width: 1.6rem;
  }

  .headline {
    max-width: 100%;
    font-size: clamp(2.4rem, 11.4vw, 3.1rem);
    line-height: 0.98;
  }

  .headline__place {
    width: auto;
    max-width: 100%;
    font-size: 0.42em;
    white-space: normal;
  }

  .lead {
    margin-top: 0.7rem;
    font-size: 0.92rem;
    line-height: 1.4;
  }

  .actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    margin-top: 0.85rem;
  }

  .plate {
    width: 100%;
    min-height: 4.4rem;
    padding: 0.65rem 2.25rem 0.7rem 1rem;
  }

  .plate__label {
    font-size: 0.72rem;
  }

  .plate__number {
    font-size: 1.7rem;
  }

  .route-link {
    align-self: flex-start;
    font-size: 0.84rem;
  }

  .contact {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    padding-top: 0.75rem;
  }

  .contact__row {
    grid-template-columns: auto 1fr;
    align-items: baseline;
    gap: 0.1rem 0.7rem;
  }

  .contact__row:last-child {
    grid-template-columns: 1fr;
  }

  .contact__label {
    font-size: 0.74rem;
  }

  .contact__value {
    font-size: 0.98rem;
  }

  .contact__sub {
    grid-column: 2;
    font-size: 0.82rem;
  }

  .hours {
    grid-template-columns: auto 1fr auto 1fr;
    gap: 0.2rem 0.6rem;
    font-size: 0.84rem;
  }

  .bottom {
    grid-template-columns: 1fr;
    gap: 0.3rem;
    padding-top: 0.6rem;
    font-size: 0.78rem;
  }

  .bottom__legal {
    justify-content: flex-start;
    gap: 0.25rem 0.9rem;
  }

  .bottom__note {
    justify-self: start;
    text-align: left;
  }
}

/* ---------------------------------------------------------------- matala */

@media (max-height: 760px) {
  body {
    gap: 0.55rem;
    padding-top: 0.6rem;
    padding-bottom: 0.55rem;
  }

  .brand__lockup {
    height: 2.5rem;
  }

  .soon {
    margin-bottom: 0.55rem;
  }

  .headline {
    font-size: clamp(2.3rem, 7.4vh, 3.4rem);
  }

  .headline__place {
    margin-top: 0.3em;
  }

  .lead {
    display: none;
  }

  .actions {
    margin-top: 0.65rem;
  }

  .plate {
    min-height: 3.8rem;
  }

  .contact {
    padding-top: 0.5rem;
    gap: 0.6rem 2rem;
  }

  .hours {
    grid-template-columns: auto 1fr auto 1fr;
  }

  .bottom {
    padding-top: 0.4rem;
  }
}

@media (max-height: 660px) {
  .status-pill {
    min-height: 1.8rem;
  }

  .headline {
    font-size: clamp(2.1rem, 7vh, 3rem);
  }

  .plate {
    min-height: 3.45rem;
  }

  .route-link {
    padding-block: 0.3rem;
  }

  .contact__row:nth-child(2) {
    display: none;
  }

  .bottom {
    padding-top: 0.3rem;
    font-size: 0.7rem;
    line-height: 1.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .dust {
    display: none;
  }

  .scene picture {
    opacity: 1;
  }

  .scene__cone,
  .scene__reflect,
  .scene__rim,
  .scene__glow {
    opacity: 1;
    transform: none !important;
  }
}
