/* Salon Paradise (Imatra) — teema vertical-reel, runko S9 reel stack
   Palette: char #131211 · bone #EFEAE3 · acid #C9F24D · smoke #A8A29A
   Text: bone on char 14.2:1 · smoke on char 7.2:1 · char on acid 14.0:1
   The living layer: every photo panel breathes (slow ken-burns) and the
   panels snap like a phone reel. Built mobile-first: on a phone this is a
   full-screen vertical feed, on desktop it relaxes into stacked frames. */

@font-face {
  font-family: "Epilogue";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/epilogue-variable-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/geist-variable-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

:root {
  --char: #131211;
  --char-2: #1D1B19;
  --bone: #EFEAE3;
  --acid: #C9F24D;
  --smoke: #A8A29A;
  --display: "Epilogue", "Helvetica Neue", sans-serif;
  --body: "Geist", "Segoe UI", sans-serif;
  /* wide-screen content shell: panel photos stay full-bleed, text does not */
  --shell: 78rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--bone);
  background: var(--char);
  overflow-x: hidden;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; }
img { display: block; max-width: 100%; }

/* ---- scroll progress (decorative; silently absent without support) ---- */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 20;
  pointer-events: none;
}
.progress span { display: block; height: 100%; width: 0; background: var(--acid); }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .progress span {
      width: 100%;
      transform-origin: 0 50%;
      animation: fill linear both;
      animation-timeline: scroll(root block);
    }
    @keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }
}

.demo-banner {
  display: block;
  background: var(--bone);
  color: var(--char);
  text-align: center;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
}

/* ---- sticky call button: thumb-reachable on a phone ---- */
.sticky-cta {
  position: fixed;
  z-index: 15;
  right: 1.25rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  background: var(--acid);
  color: var(--char);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.sticky-cta:hover { background: #D8FF63; }

/* ---- panels ---- */
.panel {
  position: relative;
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 4rem 1.25rem calc(5.5rem + env(safe-area-inset-bottom));
}
.panel-media { position: absolute; inset: 0; z-index: 0; background: var(--char); }
.panel-media picture, .panel-media img { display: block; width: 100%; height: 100%; }
.panel-media img {
  object-fit: cover;
  object-position: 50% 55%;
  transform-origin: 50% 50%;
  will-change: transform;
  animation: breathe 30s ease-in-out infinite alternate;
}
.panel--photo:nth-of-type(3) .panel-media img { animation-duration: 38s; transform-origin: 30% 60%; }
.panel--photo:nth-of-type(4) .panel-media img { animation-duration: 44s; transform-origin: 70% 40%; }
@keyframes breathe {
  from { transform: scale(1.03); }
  to   { transform: scale(1.16); }
}
.panel--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(19, 18, 17, 0.72) 0%, rgba(19, 18, 17, 0.15) 38%, rgba(19, 18, 17, 0.82) 88%);
}
.panel-body { position: relative; z-index: 2; max-width: 40rem; }
.panel--flat { background: var(--char-2); justify-content: center; }
/* the first panel must not snap past the banner on load */
#alku { scroll-snap-align: none; padding-bottom: calc(7.5rem + env(safe-area-inset-bottom)); }
#alku .panel-media img { object-position: 50% 72%; }

.eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--acid);
  margin-bottom: 1rem;
}
.panel h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(4rem, 22vw, 10rem);
  line-height: 0.86;
  letter-spacing: -0.045em;
  margin-bottom: 1.25rem;
}
.panel h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.125rem, 9vw, 4rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
}
.lede { color: var(--smoke); font-size: clamp(1rem, 3.6vw, 1.1875rem); max-width: 28rem; margin-bottom: 1.75rem; }
.fine { color: var(--smoke); font-size: 0.8125rem; }

.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--char);
  background: var(--bone);
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn:hover { background: var(--acid); transform: translateY(-2px); }

.swipe-hint {
  position: absolute;
  left: 1.25rem;
  bottom: calc(1.4rem + env(safe-area-inset-bottom));
  z-index: 2;
  font-size: 0.6875rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--smoke);
  animation: nudge 2.8s ease-in-out infinite;
}
@keyframes nudge {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50%      { transform: translateY(6px); opacity: 1; }
}

/* ---- price list ---- */
.price-list { list-style: none; max-width: 30rem; margin-bottom: 1.5rem; }
.price-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(239, 234, 227, 0.16);
  font-size: 1.0625rem;
}
.price-list b { font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; }
/* no verified hinnasto for this business: the list carries service names only,
   so the right-hand price column is dropped rather than filled with guesses */
.price-list--plain li { justify-content: flex-start; }
.price-list--plain span { position: relative; padding-left: 1.4rem; }
.price-list--plain span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--acid);
}

/* ---- yhteys ---- */
.yhteys-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 2rem; max-width: 42rem; }
/* two verified contact rows + the city: at phone width three columns squeeze
   the email into an unreadable ladder, so the rail stacks below 560 px */
@media (max-width: 560px) {
  .yhteys-grid { grid-template-columns: 1fr; gap: 1.25rem; }
}
.yhteys-grid dt {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--acid);
  margin-bottom: 0.4rem;
}
.yhteys-grid dd { font-size: 0.9375rem; overflow-wrap: anywhere; }
.yhteys-grid a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.yhteys-grid a:hover { color: var(--acid); }
.yhteys-grid .fine { display: block; margin-top: 0.35rem; }
.tool-shot { margin: 2.5rem 0 0; max-width: 20rem; }
.tool-shot picture { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 14px; }
.tool-shot img { width: 100%; height: 100%; object-fit: cover; }
.photo-note {
  margin-top: 1.5rem;
  max-width: 38rem;
  font-size: 0.875rem;
  color: var(--smoke);
  border-left: 2px solid var(--acid);
  padding: 0.8rem 1.1rem;
}
.photo-note strong { color: var(--bone); }
.footer { margin-top: 2rem; font-size: 0.8125rem; color: var(--smoke); }
.footer a { color: var(--bone); }
.footer .fine { margin-top: 0.3rem; }

/* ---- entrance ---- */
@media (prefers-reduced-motion: no-preference) {
  #alku .panel-body > * { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
  #alku .panel-body > :nth-child(2) { animation-delay: 0.08s; }
  #alku .panel-body > :nth-child(3) { animation-delay: 0.16s; }
  #alku .panel-body > :nth-child(4) { animation-delay: 0.24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- desktop: the reel relaxes into stacked frames, no snapping ---- */
@media (min-width: 900px) {
  html { scroll-snap-type: none; }
  .panel {
    min-height: 88vh;
    justify-content: center;
    padding: 5rem clamp(2rem, 7vw, 6rem) 6rem;
  }
  /* content rides a centered shell; the photo and the panel colour stay
     full-bleed, only the text column is capped and centred */
  .panel-body {
    max-width: none;
    width: min(100%, var(--shell));
    margin-inline: auto;
  }
  /* inside the shell the measure still rules: nothing runs the full 78rem */
  .panel h1, .panel h2 { max-width: 22ch; }
  .panel-body > .fine, .footer { max-width: 34rem; }
  .swipe-hint { left: max(clamp(2rem, 7vw, 6rem), calc((100% - var(--shell)) / 2)); }
  .sticky-cta { right: max(2rem, calc((100% - var(--shell)) / 2)); }
  /* the scrim follows the shell: dark under the text, photo clear to the
     right of it, plus a light top/bottom wash for the hint and the edges */
  .panel--photo::after {
    /* fallback for engines without math functions in gradient stops */
    background: linear-gradient(100deg, rgba(19, 18, 17, 0.92) 0%, rgba(19, 18, 17, 0.84) 62%, rgba(19, 18, 17, 0.22) 92%, rgba(19, 18, 17, 0.18) 100%);
    background:
      linear-gradient(180deg, rgba(19, 18, 17, 0.4) 0%, rgba(19, 18, 17, 0) 26%, rgba(19, 18, 17, 0) 66%, rgba(19, 18, 17, 0.6) 100%),
      linear-gradient(to right,
        rgba(19, 18, 17, 0.92) 0%,
        rgba(19, 18, 17, 0.84) min(62%, calc(50% + var(--shell) / 2 - 22rem)),
        rgba(19, 18, 17, 0.22) min(92%, calc(50% + var(--shell) / 2 + 6rem)),
        rgba(19, 18, 17, 0.18) 100%);
  }
}

/* --- Tekoälyilmoitus (EU AI Act 50 art.) — webpages/kit/ai-disclosure/ --- */
.ai-note {
  margin: 1.5rem auto 0;
  max-width: 62ch;
  padding: 0 1rem 2rem;
  font-size: 0.75rem;
  line-height: 1.55;
}
.ai-note strong { font-weight: 600; }
