/* ==========================================================================
   Essence Klinikk — styles.css
   --------------------------------------------------------------------------
   Pure HTML + CSS. No frameworks, no build step, no JavaScript.

   Scroll animations use native CSS scroll-driven animations
   (animation-timeline: scroll() / view()). They are progressive enhancement:
   browsers without support show every section fully, statically.
   All motion is switched off for visitors with "reduce motion" enabled.

   Sections
   01  Tokens
   02  Base / reset
   03  Utilities (container, type, buttons, links)
   04  Header + menu
   05  Hero (unchanged from current site)
   06  Shared layout (sections, split columns)
   07  Home: about + stats
   08  Home: ticker
   09  Home: treatments
   10  Home: experience
   11  Home: reviews
   12  Home: booking, FAQ, contact
   13  Footer + back-to-top
   14  Behandlinger overview
   15  Treatment pages
   16  Motion (scroll-driven animations)
   ========================================================================== */


/* 01  Tokens
   ========================================================================== */
:root {
  --ivory: #f7f2ea;
  --beige: #ebe2d7;
  --taupe: #cabeb1;
  --charcoal: #191715;
  --warm-black: #0e0c0b;
  --ink: #2f2c29;
  --brass: #7c6545;
  --card: #fbf7f2;

  --ink-soft: rgb(47 44 41 / .62);
  --ink-70: rgb(47 44 41 / .72);
  --ink-50: rgb(47 44 41 / .5);
  --ink-40: rgb(47 44 41 / .4);
  --border: #dcd6ce;
  --ivory-70: rgb(247 242 234 / .7);
  --ivory-50: rgb(247 242 234 / .5);
  --ivory-25: rgb(247 242 234 / .25);
  --ivory-15: rgb(247 242 234 / .15);
  --beige-soft: #f0e9e0; /* beige at ~60% on ivory */

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --gutter: 1.5rem;
  --max: 1500px;
  --header-h: 72px;
  --section-y: 7rem;
}

@media (min-width: 768px) {
  :root {
    --gutter: 3rem;
    --header-h: 88px;
    --section-y: 10rem;
  }
}
@media (min-width: 1024px) {
  :root { --section-y: clamp(6rem, 9vw, 8rem); }
}


/* 02  Base / reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* clip (not hidden) keeps position: sticky working */
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
address { font-style: normal; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-size: inherit;
  font-weight: 300;
  letter-spacing: -.015em;
}

::selection { background: var(--ink); color: var(--ivory); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

section[id], [id^="kategori-"] { scroll-margin-top: calc(var(--header-h) + 1rem); }
#about, #treatments, #experience, #reviews, #booking, #faq, #contact { scroll-margin-top: calc(var(--header-h) - 8px); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; left: 1rem; top: 1rem; z-index: 100;
  padding: .75rem 1.25rem;
  background: var(--ink); color: var(--ivory);
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
  transform: translateY(-200%);
  transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }


/* 03  Utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--sans);
  font-size: .6875rem;
  font-weight: 400;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.display {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -.025em;
  line-height: .95;
}

.h2 { font-size: clamp(2.25rem, 4.5vw, 4.25rem); }
.italic, .display em { font-style: italic; }

.body-copy {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-70);
}
.body-copy > * + * { margin-top: 1.5rem; }

.lead { font-size: 1.02rem; line-height: 1.8; color: rgb(47 44 41 / .78); }

/* underline that draws in from the left on hover */
.lux-link { position: relative; display: inline-block; }
.lux-link::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform .6s var(--ease);
}
.lux-link:hover::after,
.lux-link:focus-visible::after { transform: scaleX(1); transform-origin: 0 50%; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 3.5rem;
  padding: .5rem 2rem;
  border: 1px solid currentColor;
  font-family: var(--sans);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
}
.btn svg { width: 14px; height: 14px; flex: none; transition: transform .5s var(--ease); }
.btn:hover svg { transform: translate(2px, -2px); }

.btn--ink { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.btn--ink:hover { background: transparent; color: var(--ink); }
.btn--line { color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn--ivory { background: var(--ivory); border-color: var(--ivory); color: var(--warm-black); }
.btn--ivory:hover { background: transparent; color: var(--ivory); }

/* uppercase text link with an underline and an arrow that nudges on hover */
.arrow-link {
  display: inline-block;
  padding-bottom: .4rem;
  border-bottom: 1px solid currentColor;
  font-family: var(--sans);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
}
.arrow-link span, .tx__all a span, .tmenu__all span, .card__more span, .rcard__more span {
  display: inline-block;
  transition: transform .5s var(--ease);
}
.arrow-link:hover span, .tx__all a:hover span, .tmenu__all:hover span { transform: translateX(5px); }


/* 04  Header + menu
   ========================================================================== */
/* --solid runs 0 → 1. On the homepage and treatment pages it is scroll-driven
   (see Motion); on the Behandlinger page the header is solid from the start. */
@property --solid {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

.site-header {
  --solid: 0;
  position: absolute; /* fallback: scrolls away with the hero */
  inset: 0 0 auto 0;
  z-index: 50;
  color: color-mix(in srgb, var(--ink) calc(var(--solid) * 100%), var(--ivory));
  background: rgb(247 242 234 / calc(var(--solid) * .9));
  box-shadow: 0 1px 0 rgb(47 44 41 / calc(var(--solid) * .1));
  -webkit-backdrop-filter: blur(calc(var(--solid) * 14px));
  backdrop-filter: blur(calc(var(--solid) * 14px));
}
.site-header--solid { --solid: 1; position: sticky; top: 0; }

.site-header__inner {
  position: relative;
  max-width: 1600px;
  margin-inline: auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding: calc(2rem - var(--solid) * 1rem) 1.75rem calc(1rem - var(--solid) * .25rem);
}
@media (min-width: 768px) {
  .site-header__inner {
    padding: calc(2.25rem - var(--solid) * 1.1rem) 3rem calc(1rem - var(--solid) * .1rem);
  }
}

.brand { position: relative; display: inline-flex; align-items: center; font-size: 16px; }
.brand img { height: 2.25em; width: auto; object-fit: contain; }
.brand__dark { position: absolute; left: 0; top: 0; opacity: var(--solid); }
.brand__light { opacity: calc(1 - var(--solid)); }
.site-header--overlay .brand__light { filter: drop-shadow(0 1px 8px rgb(14 12 11 / .3)); }

/* PC navigation + booking button (hidden below 1024px, where the menu button is used) */
.site-nav, .header-book { display: none; }

.burger {
  display: flex;
  width: 2.75rem;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding: .25rem;
}
.burger span {
  display: block;
  height: 2px;
  width: 1.95rem;
  background: currentColor;
  box-shadow: 0 1px 6px rgb(14 12 11 / calc((1 - var(--solid)) * .3));
  transition: width .5s var(--ease);
}
@media (min-width: 768px) {
  .burger { gap: 7px; }
  .burger span { height: 1px; width: 2.25rem; box-shadow: none; }
}
.burger:hover span:nth-child(2) { width: 1.6rem; }

@media (min-width: 1024px) {
  .site-header__inner { align-items: center; }
  .burger { display: none; }

  /* soft shade behind the header while it sits over a photo */
  .site-header--overlay::before {
    content: "";
    position: absolute; inset: 0 0 -3rem;
    z-index: -1;
    background: linear-gradient(to bottom, rgb(14 12 11 / .4), rgb(14 12 11 / 0));
    opacity: calc(1 - var(--solid));
    pointer-events: none;
  }

  .site-nav {
    display: flex;
    gap: clamp(1.5rem, 2.6vw, 2.75rem);
    margin-left: auto;
  }
  .site-nav a {
    position: relative;
    padding-block: .5rem;
    font-size: .6875rem;
    font-weight: 400;
    letter-spacing: .28em;
    text-transform: uppercase;
    text-shadow: 0 1px 10px rgb(14 12 11 / calc((1 - var(--solid)) * .25));
  }
  .site-nav a::after {
    content: "";
    position: absolute; left: 0; bottom: .15rem;
    width: 100%; height: 1px;
    background: currentColor;
    transform: scaleX(0); transform-origin: right;
    transition: transform .6s var(--ease);
  }
  .site-nav a:hover::after,
  .site-nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }

  .header-book {
    display: inline-flex; align-items: center;
    height: 2.9rem; padding-inline: 1.5rem;
    border: 1px solid currentColor;
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .28em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background-color .5s, color .5s;
  }
  .header-book:hover {
    background: color-mix(in srgb, var(--ink) calc(var(--solid) * 100%), var(--ivory));
    color: color-mix(in srgb, var(--ivory) calc(var(--solid) * 100%), var(--warm-black));
  }
}

/* Menu panel — native popover: Esc closes it, focus is handled by the browser */
.menu[popover], .tmenu[popover] {
  position: fixed;
  inset: 0 0 0 auto;
  width: 100%;
  max-width: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--beige);
  color: var(--ink);
  transition:
    transform .7s var(--ease),
    opacity .7s var(--ease),
    overlay .7s allow-discrete,
    display .7s allow-discrete;
}
.menu[popover] { opacity: 0; transform: translateX(100%); }
.menu[popover]:popover-open { opacity: 1; transform: none; }
@starting-style {
  .menu[popover]:popover-open { opacity: 0; transform: translateX(100%); }
}
.menu[popover]::backdrop {
  background: rgb(14 12 11 / 0);
  transition: background-color .7s var(--ease), overlay .7s allow-discrete, display .7s allow-discrete;
}
.menu[popover]:popover-open::backdrop { background: rgb(14 12 11 / .45); }
@starting-style {
  .menu[popover]:popover-open::backdrop { background: rgb(14 12 11 / 0); }
}
@media (min-width: 768px) {
  .menu[popover], .tmenu[popover] { width: min(520px, 100%); }
}

.menu__close, .tmenu__close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  padding: .5rem;
  color: var(--ink);
}
.menu__close svg, .tmenu__close svg { width: 26px; height: 26px; }

.menu__inner {
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 7rem 2rem 2.5rem;
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity .7s var(--ease) .15s, transform .7s var(--ease) .15s;
}
@media (min-width: 768px) { .menu__inner { padding-inline: 3.5rem; } }
.menu[popover]:popover-open .menu__inner { opacity: 1; transform: none; }
@starting-style {
  .menu[popover]:popover-open .menu__inner { opacity: 0; transform: translateY(1.5rem); }
}

.menu__primary { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.menu__primary a, .menu__more { font-family: var(--serif); font-size: 28px; line-height: 1.375; text-align: left; }
.menu__primary a[aria-current="page"] { font-style: italic; }
.menu__more { display: flex; align-items: baseline; gap: .6rem; }
.menu__more span { font-size: .6em; opacity: .5; transition: transform .5s var(--ease), opacity .5s; }
.menu__more:hover span { transform: translateX(4px); opacity: 1; }
.menu__contact { width: fit-content; color: var(--ink); }
.menu__label { margin-top: 2.5rem; color: var(--ink-50); }
.menu__label--first { margin-top: 0; }
.menu__rule { margin-block: 2rem; height: 1px; background: rgb(47 44 41 / .15); border: 0; }
.menu__serif { margin-top: .5rem; font-family: var(--serif); font-size: 1.25rem; }
.menu__news {
  margin-top: 1.25rem;
  display: inline-flex; align-items: center; gap: .75rem;
  width: fit-content;
  padding: .625rem 1.5rem;
  border: 1px solid rgb(47 44 41 / .7);
  font-size: .75rem; letter-spacing: .25em; text-transform: uppercase;
  transition: background-color .4s, color .4s;
}
.menu__news:hover { background: var(--ink); color: var(--ivory); }
.menu__social { margin-top: 1.25rem; display: flex; gap: 1.25rem; }
.menu__social a {
  display: flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem;
  border: 1px solid rgb(47 44 41 / .3);
  transition: background-color .4s, color .4s;
}
.menu__social a:hover { background: var(--ink); color: var(--ivory); }
.menu__social svg { width: 17px; height: 17px; }

/* Second panel: every treatment with its photo. Slides in over the menu. */
.tmenu[popover] { overflow-y: auto; overscroll-behavior: contain; transform: translateX(100%); }
.tmenu[popover]:popover-open { transform: none; }
@starting-style {
  .tmenu[popover]:popover-open { transform: translateX(100%); }
}
.tmenu[popover]::backdrop { background: transparent; }
.tmenu__head {
  position: sticky; top: 0; z-index: 1;
  height: 5.25rem;
  display: flex; align-items: center;
  padding-inline: 2rem;
  background: var(--beige);
}
@media (min-width: 768px) { .tmenu__head { padding-inline: 3.5rem; } }
.tmenu__close { top: 50%; transform: translateY(-50%); }
.tmenu__back {
  padding-block: .5rem;
  font-size: .6875rem; letter-spacing: .28em; text-transform: uppercase;
}
.tmenu__body { padding: .5rem 2rem 3rem; }
@media (min-width: 768px) { .tmenu__body { padding-inline: 3.5rem; } }
.tmenu__title { font-family: var(--serif); font-size: 2.4rem; line-height: 1; letter-spacing: -.02em; }
.tmenu__group { margin-top: 2.25rem; }
.tmenu__cat {
  padding-bottom: .75rem;
  border-bottom: 1px solid rgb(47 44 41 / .18);
  font-size: .625rem; letter-spacing: .28em; text-transform: uppercase;
  color: rgb(47 44 41 / .6);
}
.tmenu__group a {
  display: flex; align-items: center; gap: 1rem;
  padding-block: .6rem;
  border-bottom: 1px solid rgb(47 44 41 / .08);
  font-family: var(--serif); font-size: 1.3rem; line-height: 1.2;
  transition: background-color .4s;
}
.tmenu__group a:hover { background: rgb(247 242 234 / .45); }
.tmenu__group img {
  flex: none; width: 3rem; height: 3.75rem; object-fit: cover;
  background: rgb(47 44 41 / .08);
}
.tmenu__all {
  display: inline-block; margin-top: 2.25rem; padding-bottom: .4rem;
  border-bottom: 1px solid currentColor;
  font-size: .6875rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase;
}


/* 05  Hero — identical to the current essenceklinikk.no hero
   ========================================================================== */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  width: 100%;
  overflow: hidden;
  background: var(--warm-black);
  color: var(--ivory);
}

.hero__media { position: absolute; inset: 0; }
.hero__media picture { display: block; width: 100%; height: 100%; }
/* Phones: portrait photo fills the whole screen, anchored at the bottom so the chair
   always sits just above the buttons (chair large, bottom-right) */
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }

/* Phones: soft shade at the top for logo + menu, light shade at the bottom for the buttons */
.hero__shade-x {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgb(14 12 11 / .2), rgb(14 12 11 / 0) 16%),
    linear-gradient(to right, rgb(14 12 11 / .3), rgb(14 12 11 / .1) 55%, rgb(14 12 11 / 0) 85%);
}
.hero__shade-y { display: none; position: absolute; inset: auto 0 0 0; }
@media (min-width: 768px) {
  .hero__shade-y { display: block; }
  .hero__shade-x { background: linear-gradient(to right, rgb(14 12 11 / .2), rgb(14 12 11 / .05), transparent); }
  /* Desktop loads a 2:1 widescreen version of the photo (see <picture> in index.html),
     so ceiling light and chair both fit. On ultra-wide screens keep the chair in frame. */
  .hero__media img { object-position: 50% 70%; }
  .hero__shade-y { height: 30%; background: linear-gradient(to bottom, transparent, rgb(14 12 11 / .55)); }
}

.hero__inner {
  position: relative;
  z-index: 10;
  height: 100%;
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: 1.75rem;
}
@media (min-width: 768px) { .hero__inner { padding-inline: 3rem; } }

.hero__kicker {
  position: absolute; left: 1.75rem; top: 4.75rem;
  font-family: var(--sans);
  font-size: .67rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ivory);
  text-shadow: 0 1px 8px rgb(14 12 11 / .35);
  animation: fadeIn 1.4s ease-out;
}
@media (min-width: 768px) { .hero__kicker { left: 3rem; top: 7.25rem; font-size: .75rem; } }

/* Phones: placed from the bottom, in step with the bottom-anchored photo, so the text
   always sits on the wall just below the ceiling light and beside the chair */
.hero__copy { position: absolute; left: 1.75rem; right: 1.75rem; bottom: calc(66vw + env(safe-area-inset-bottom)); max-width: 48rem; text-shadow: 0 1px 28px rgb(14 12 11 / .22); }
@media (min-width: 768px) { .hero__copy { left: 3rem; top: 31svh; bottom: auto; } }

.hero__title {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 12vw, 3.1rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: 0;
  color: var(--ivory);
}
@media (min-width: 768px) { .hero__title { font-size: clamp(5rem, 8vw, 7rem); } }
.hero__title span {
  display: block;
  opacity: 0;
  animation: heroLine 1.6s var(--ease) .2s forwards;
}
.hero__title span:nth-child(2) { font-style: italic; animation-delay: .5s; }
.hero__title span:nth-child(3) { animation-delay: .8s; }

.hero__lead {
  margin-top: 1.5rem;
  max-width: 28rem;
  font-size: .88rem;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0;
  color: rgb(247 242 234 / .92);
  opacity: 0;
  animation: fadeIn 1.2s ease-out 1.1s forwards;
}
@media (min-width: 768px) { .hero__lead { margin-top: 2rem; font-size: 1.125rem; line-height: 1.625; } }

.hero__ctas {
  position: absolute; bottom: calc(3.25rem + env(safe-area-inset-bottom)); left: 1.75rem; right: 1.75rem;
  display: flex; flex-direction: column; gap: .9rem;
  opacity: 0;
  animation: fadeIn 1.2s ease-out 1.3s forwards;
}
@media (min-width: 768px) { .hero__ctas { bottom: 3rem; left: auto; right: 3rem; width: 25rem; gap: .75rem; } .hero__copy { text-shadow: none; } }
@media (min-width: 1024px) { .hero__ctas { width: 22rem; } }

.hero-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 2.3rem;
  padding: .5rem 1.5rem;
  border: 1px solid var(--ivory);
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .15s cubic-bezier(.4, 0, .2, 1), background-color .15s cubic-bezier(.4, 0, .2, 1);
}
.hero-btn--solid { background: var(--ivory); color: var(--warm-black); font-weight: 500; }
.hero-btn--solid:hover { background: rgb(247 242 234 / .9); }
.hero-btn--ghost { background: transparent; color: var(--ivory); font-weight: 300; }
.hero-btn--ghost:hover { background: var(--ivory); color: var(--warm-black); }
.hero-btn--ghost { text-shadow: 0 1px 8px rgb(14 12 11 / .3); }
@media (min-width: 768px) {
  /* desktop keeps the original, taller buttons (must come after the base rule) */
  .hero-btn { height: 3.65rem; font-size: .76rem; letter-spacing: .25em; }
  .hero-btn--ghost { text-shadow: none; }
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes heroLine { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .hero__kicker, .hero__title span, .hero__lead, .hero__ctas { animation: none; opacity: 1; transform: none; }
}



/* 06  Shared layout
   Phones and tablets: one column. PC: 12-column split, the heading column
   stays in view (sticky) while the content beside it scrolls.
   ========================================================================== */
.split { display: grid; gap: 4rem; }
.split__head .display { margin-top: 1.5rem; }
.split__head .body-copy { margin-top: 2rem; max-width: 28rem; }

@media (min-width: 1024px) {
  .split {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(3rem, 6vw, 6rem);
  }
  .split__head { grid-column: span 5; position: sticky; top: 8rem; align-self: start; }
  .split__body { grid-column: 7 / span 6; }

  .split--booking .split__head, .split--faq .split__head { grid-column: span 4; }
  .split--booking .split__body, .split--faq .split__body { grid-column: span 8; }

  .split--contact { align-items: stretch; }
  .split--contact .split__head { position: static; grid-column: span 5; }
  .split--contact .split__body { grid-column: span 7; }
}


/* 07  Home: about + stats
   ========================================================================== */
.about { padding-block: var(--section-y); }
.about__media { overflow: hidden; aspect-ratio: 1086 / 1448; background: var(--beige); }
.about__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transition: transform 2s var(--ease); }
.about__media:hover img { transform: scale(1.03); }
@media (min-width: 768px) and (max-width: 1023px) { .about__media { aspect-ratio: auto; height: 70vh; } }
@media (min-width: 1024px) { .about__media { aspect-ratio: 4 / 3; } .about__media img { object-position: 50% 78%; } }

.about__copy { margin-top: 2.5rem; max-width: 36rem; }

.stats {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  row-gap: 2.5rem;
  column-gap: 1.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
@media (min-width: 640px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stats dt { font-family: var(--serif); font-size: 2.25rem; font-weight: 300; line-height: 1; }
@media (min-width: 768px) { .stats dt { font-size: 3rem; } }
.stats dd { margin-top: .75rem; }
.count__anim { display: none; }


/* 08  Home: ticker (scrolls sideways on its own, in an endless loop)
   Sits on the dark band that opens the treatments section.
   ========================================================================== */
.ticker {
  overflow: hidden;
  background: var(--warm-black);
  padding-top: clamp(4.5rem, 9vw, 8rem);
}
.ticker__row {
  display: flex;
  width: max-content;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(3.5rem, 11vw, 10.5rem);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--ivory);
  white-space: nowrap;
}
.ticker__group { display: flex; gap: .35em; padding-right: .35em; }
.ticker__group span:nth-child(even) { color: rgb(247 242 234 / .28); font-style: normal; }
@media (prefers-reduced-motion: no-preference) {
  .ticker__row { animation: ticker-loop 60s linear infinite; }
}
@keyframes ticker-loop { from { transform: translateX(0); } to { transform: translateX(-50%); } }


/* 09  Home: treatments — dark
   Phones: every treatment as a card in a sideways rail.
   Tablet/PC: the five categories as columns of links.
   ========================================================================== */
.tx {
  background: var(--warm-black);
  color: var(--ivory);
  padding-block: clamp(4rem, 8vw, 7rem) var(--section-y);
}
.tx .eyebrow { color: rgb(247 242 234 / .55); }
/* hairline that separates it from the (also dark) experience section below */
.tx > .container::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: clamp(6rem, 10vw, 9rem);
  background: var(--ivory-25);
}

.tx__head { display: flex; flex-direction: column; gap: 1.5rem; }
.tx__head .display { margin-top: 1.5rem; max-width: 42rem; }
@media (min-width: 768px) {
  .tx__head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 3rem; }
}
.tx__intro { max-width: 24rem; font-size: 15px; line-height: 1.625; color: rgb(247 242 234 / .68); }

.tx__hint, .tx-rail { display: none; }
.tx-cats { display: none; }

@media (max-width: 767px) {
  .tx__hint {
    display: flex; align-items: center; gap: .6rem;
    margin-top: 3rem;
    font-size: .625rem; letter-spacing: .28em; text-transform: uppercase;
    color: rgb(247 242 234 / .55);
  }
  .tx__hint::after { content: ""; width: 2.5rem; height: 1px; background: currentColor; }

  .tx-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 72%;
    gap: 1rem;
    margin: 1.25rem calc(var(--gutter) * -1) 0;
    padding: 0 var(--gutter) .5rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .tx-rail::-webkit-scrollbar { display: none; }
  .tx-rail > li { scroll-snap-align: start; }
}

.rcard { display: flex; flex-direction: column; height: 100%; color: var(--ivory); }
.rcard__img { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: #1a1715; }
.rcard__img img { width: 100%; height: 100%; object-fit: cover; }
.rcard__cat {
  margin-top: 1rem;
  font-size: .6rem; letter-spacing: .28em; text-transform: uppercase;
  color: rgb(247 242 234 / .5);
}
.rcard__name { margin-top: .4rem; font-family: var(--serif); font-size: 1.5rem; line-height: 1.12; letter-spacing: -.01em; }
.rcard__text {
  margin-top: .5rem;
  font-size: .84rem; font-weight: 300; line-height: 1.6;
  color: rgb(247 242 234 / .65);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.rcard__more {
  align-self: flex-start;
  margin-top: auto; padding-top: 1rem;
  font-size: .62rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase;
}
.rcard__more::after { content: ""; display: block; height: 1px; margin-top: .35rem; background: rgb(247 242 234 / .35); }

@media (min-width: 768px) {
  .tx-cats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem 2.5rem;
    margin-top: 4rem;
  }
}
@media (min-width: 1024px) {
  .tx-cats { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: clamp(1.5rem, 2.2vw, 2.5rem); }
  .tx-cat h3 { min-height: 2.3em; font-size: clamp(1.4rem, 1.7vw, 1.65rem); } /* two-line titles: keep all lists level */
}
.tx-cat { border-top: 1px solid rgb(247 242 234 / .28); padding-top: 1.5rem; }
.tx-cat h3 {
  margin-bottom: 1.1rem;
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.tx-cat li + li { margin-top: .15rem; }
.tx-cat a {
  display: inline-block;
  padding-block: .3rem;
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.5;
  opacity: .72;
  background: linear-gradient(currentColor, currentColor) left calc(100% - .2rem) / 0 1px no-repeat;
  transition: opacity .4s, background-size .6s var(--ease);
}
.tx-cat a:hover, .tx-cat a:focus-visible { opacity: 1; background-size: 100% 1px; }

.tx__all { margin-top: 3.5rem; }
@media (max-width: 767px) { .tx__all { margin-top: 2.5rem; } }
.tx__all a {
  display: inline-block;
  padding-bottom: .4rem;
  border-bottom: 1px solid currentColor;
  font-size: .6875rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase;
}


/* 10  Home: experience — dark, the room fading into black behind it
   ========================================================================== */
.xp {
  position: relative;
  overflow: hidden;
  background: var(--warm-black);
  color: var(--ivory);
  padding-block: var(--section-y);
}
.xp__bg {
  position: absolute; inset: 0 0 auto 0;
  width: 100%; height: 60%;
  object-fit: cover;
  opacity: .25;
}
.xp::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgb(14 12 11 / .4), var(--warm-black) 50%, var(--warm-black));
}
.xp__inner { position: relative; z-index: 2; }
.xp .eyebrow { color: rgb(247 242 234 / .6); }
.xp__head { max-width: 42rem; }
.xp__head .display { margin-top: 1.5rem; }
.xp__head .body-copy { margin-top: 2rem; max-width: 28rem; color: rgb(247 242 234 / .7); }

.xp__steps { margin-top: 6rem; display: grid; gap: 3rem; }
@media (min-width: 768px) { .xp__steps { grid-template-columns: repeat(2, 1fr); row-gap: 3.5rem; column-gap: 2.5rem; } }
@media (min-width: 1024px) { .xp__steps { margin-top: 4.5rem; grid-template-columns: repeat(4, 1fr); } }
.xp__steps li { border-top: 1px solid var(--ivory-25); padding-top: 2rem; transition: border-color .6s; }
.xp__steps li:hover { border-top-color: rgb(247 242 234 / .7); }
.xp__num { font-family: var(--serif); font-size: 1.5rem; font-style: italic; color: rgb(247 242 234 / .4); }
.xp__steps h3 { margin-top: 1rem; font-size: 1.5rem; line-height: 1.2; }
@media (min-width: 768px) { .xp__steps h3 { font-size: 1.875rem; } }
.xp__steps p { margin-top: 1rem; font-size: 14px; line-height: 1.625; color: rgb(247 242 234 / .65); }


/* 11  Home: reviews — one quote at a time, centred
   ========================================================================== */
.reviews { background: var(--beige-soft); padding-block: var(--section-y); text-align: center; }
.reviews__inner { max-width: calc(56rem + var(--gutter) * 2); }
.reviews__stage { margin-top: 3rem; display: grid; gap: 2.5rem; align-items: center; }
.review p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.6rem, 3.2vw, 2.85rem);
  line-height: 1.2;
  letter-spacing: -.025em;
}
.reviews__meta { margin-top: 2.5rem; display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.reviews__meta p:last-child { font-size: .75rem; color: rgb(47 44 41 / .55); }
.reviews__dots { display: none; }


/* 12  Home: booking, FAQ, contact
   ========================================================================== */
.booking { padding-block: var(--section-y); }

.facts { margin-top: 3rem; border-top: 1px solid var(--border); padding-top: 2.5rem; display: grid; gap: 1.5rem; }
.facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; }
.facts dd { font-family: var(--serif); font-size: 1.25rem; text-align: right; }
@media (min-width: 1024px) {
  .split--booking .facts { padding: 1.75rem; background: var(--card); border: 1px solid var(--border); }
  .split--booking .facts div { flex-direction: column; gap: .35rem; }
  .split--booking .facts dd { text-align: left; }
}

.booking__frame { border: 1px solid var(--border); background: var(--card); overflow: hidden; }
.booking__frame iframe { width: 100%; min-height: 600px; border: 0; }
@media (min-width: 768px) { .booking__frame iframe { height: min(85vh, 900px); min-height: 700px; } }

.faq { padding-block: var(--section-y); }
.faq__title { font-size: clamp(2.25rem, 4vw, 3.75rem); }
.faq__list details { border-top: 1px solid var(--border); }
.faq__list details:last-child { border-bottom: 1px solid var(--border); }
.faq__list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-block: 1.75rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.3;
  transition: color .4s, background-color .4s;
}
@media (min-width: 768px) { .faq__list summary { font-size: 1.5rem; } }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary:hover { color: var(--ink-70); }
.faq__list summary::after {
  content: "+";
  flex: none;
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform .5s var(--ease);
}
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list details p { max-width: 42rem; padding-bottom: 2rem; font-size: 15px; line-height: 1.85; color: var(--ink-70); }
@media (min-width: 1024px) {
  /* the whole row reacts on hover */
  .faq__list summary { padding-inline: 1rem; margin-inline: -1rem; }
  .faq__list summary:hover { color: var(--ink); background: rgb(235 226 215 / .45); }
  .faq__list summary::after { font-family: var(--sans); font-weight: 200; font-size: 1.75rem; }
}

@supports selector(::details-content) {
  .faq__list { interpolate-size: allow-keywords; }
  .faq__list details::details-content {
    block-size: 0;
    overflow: clip;
    opacity: 0;
    transition: block-size .7s var(--ease), opacity .7s var(--ease), content-visibility .7s allow-discrete;
  }
  .faq__list details[open]::details-content { block-size: auto; opacity: 1; }
}

.visit { background: var(--beige-soft); padding-block: var(--section-y); }
.visit__info { margin-top: 3rem; display: grid; gap: 2.5rem; font-size: 15px; line-height: 1.625; }
.visit__info .eyebrow { margin-bottom: .75rem; }
.visit__addr { font-family: var(--serif); font-size: 1.5rem; }
.visit__muted { color: var(--ink-70); }
.hours { display: grid; gap: .25rem; max-width: 20rem; color: rgb(47 44 41 / .8); }
.hours li { display: flex; justify-content: space-between; }
.hours li.closed { color: var(--ink-50); }
.visit__direct { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; }
.visit__direct .eyebrow { margin-bottom: .25rem; }
.visit__direct a { font-family: var(--serif); font-size: 1.25rem; }
.visit__map { aspect-ratio: 4 / 5; border: 1px solid var(--border); overflow: hidden; background: #e6e2dc; }
@media (min-width: 768px) { .visit__map { aspect-ratio: 16 / 10; } }
@media (min-width: 1024px) { .visit__map { aspect-ratio: auto; height: 100%; min-height: 560px; } }
.visit__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(.95) saturate(.7); }


/* 13  Footer + back-to-top
   ========================================================================== */
.site-footer { background: var(--warm-black); color: var(--ivory); border-top: 1px solid rgb(247 242 234 / .08); }
.site-footer__inner { padding-block: 5rem 2rem; }
@media (min-width: 768px) { .site-footer__inner { padding-block: 7rem 2.5rem; } }

.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem 2rem; }
.footer-brand { grid-column: 1 / -1; }
@media (max-width: 767px) { .footer-hours { grid-column: 1 / -1; } }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(12, 1fr); }
  .footer-brand { grid-column: span 5; }
  .footer-nav { grid-column: span 2; }
  .footer-visit { grid-column: span 2; }
  .footer-hours { grid-column: span 3; }
}
.footer-brand img { height: 4.5rem; width: auto; }
@media (min-width: 768px) { .footer-brand img { height: 6.75rem; } }
.footer-brand p { margin-top: 1.5rem; max-width: 20rem; font-size: .875rem; line-height: 1.625; color: rgb(247 242 234 / .6); }
.site-footer .eyebrow { color: var(--ivory-50); }
.footer-nav ul, .footer-visit address, .footer-hours p:last-child {
  margin-top: 1.5rem;
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.7;
}
.footer-nav ul { display: grid; gap: .6rem; line-height: 1.3; }
.footer-hours p:last-child { color: rgb(247 242 234 / .8); }

.footer-legal {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ivory-15);
  display: flex; flex-direction: column; gap: 1rem;
  font-size: .75rem;
  color: rgb(247 242 234 / .4);
}
@media (min-width: 768px) { .footer-legal { flex-direction: row; justify-content: space-between; align-items: center; } }

/* Back to top: PC only, appears once the first screen has scrolled away (see Motion) */
.to-top { display: none; }


/* 14  Behandlinger overview
   ========================================================================== */
.bintro { padding-block: clamp(3rem, 9vw, 7rem) clamp(2.5rem, 6vw, 4.5rem); }
.bintro__foot { margin-top: 1.5rem; display: grid; gap: 2rem; }
.bintro .lead { max-width: 34rem; }
@media (min-width: 1024px) { .bintro__foot { grid-template-columns: 1fr 1fr; align-items: end; column-gap: 4rem; } }

/* Standards strip — hairline grid, clinical and quiet */
.standards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--border);
}
.standards li { display: grid; align-content: start; gap: .6rem; padding: 1.5rem 1.25rem 1.75rem 0; }
.standards li:nth-child(even) { padding-left: 1.25rem; border-left: 1px solid var(--border); }
.standards li:nth-child(n+3) { border-top: 1px solid var(--border); }
.std-num { font-size: .66rem; line-height: 1; letter-spacing: .24em; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.std-title { margin-top: .9rem; font-size: .72rem; font-weight: 500; line-height: 1.4; letter-spacing: .2em; text-transform: uppercase; }
.std-text { font-size: .86rem; line-height: 1.65; color: var(--ink-soft); }
@media (min-width: 1024px) {
  .standards { grid-template-columns: repeat(4, 1fr); }
  .standards li { padding: 2rem 2rem 2.25rem; border-top: 0 !important; }
  .standards li:first-child { padding-left: 0; }
  .standards li + li { border-left: 1px solid var(--border); }
  .std-title { margin-top: 2.5rem; }
}

/* Index — one column per category */
.cat-index { display: grid; gap: 2.5rem; padding-top: clamp(3.5rem, 8vw, 6rem); }
@media (min-width: 640px) { .cat-index { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.5rem; } }
@media (min-width: 1024px) {
  .cat-index { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: clamp(1.5rem, 2.2vw, 2.5rem); }
  .cat-col__title { min-height: 2.3em; font-size: clamp(1.35rem, 1.65vw, 1.6rem); }
}
.cat-col { border-top: 1px solid var(--ink); padding-top: 1.4rem; }
.cat-col__title { margin-bottom: 1rem; font-size: 1.6rem; font-weight: 400; line-height: 1.15; letter-spacing: -.01em; }
.cat-col a {
  display: inline-block;
  padding-block: .28rem;
  font-size: .9rem;
  line-height: 1.5;
  color: rgb(47 44 41 / .72);
  background: linear-gradient(currentColor, currentColor) left calc(100% - .2rem) / 0 1px no-repeat;
  transition: color .4s, background-size .6s var(--ease);
}
.cat-col a:hover, .cat-col a:focus-visible { color: var(--ink); background-size: 100% 1px; }

/* Cards — every treatment: portrait photo, category, name, excerpt, "Les mer" */
.cards-wrap { padding-block: clamp(4.5rem, 10vw, 8rem); }
.cards {
  display: grid;
  gap: 3rem 1.25rem;
  margin-top: 1.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
@media (min-width: 480px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3.5rem 1.5rem; } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4rem 1.75rem; } }
.card { display: grid; align-content: start; }
.card__img { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--beige); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card__cat { margin-top: 1.1rem; font-size: .62rem; }
.card__name { margin-top: .45rem; font-family: var(--serif); font-size: 1.55rem; font-weight: 400; line-height: 1.12; letter-spacing: -.01em; }
.card__excerpt {
  margin-top: .55rem;
  font-size: .86rem; line-height: 1.6; color: var(--ink-soft);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card__more {
  justify-self: start;
  margin-top: 1rem;
  padding-bottom: .3rem;
  border-bottom: 1px solid rgb(47 44 41 / .3);
  font-size: .64rem; font-weight: 500; line-height: 1; letter-spacing: .26em; text-transform: uppercase;
  transition: border-color .4s;
}
.card:hover .card__img img, .card:focus-visible .card__img img { transform: scale(1.05); }
.card:hover .card__more { border-color: var(--ink); }
.card:hover .card__more span { transform: translateX(4px); }

/* Dark call-to-action band (overview + treatment pages) */
.cta { background: var(--warm-black); color: var(--ivory); padding-block: clamp(4rem, 9vw, 7rem); }
.cta .eyebrow { color: rgb(247 242 234 / .6); }
.cta__inner { display: grid; gap: 2rem; }
.cta .display { margin-top: 1rem; font-size: clamp(2.5rem, 6vw, 4.5rem); }
.cta .btn { justify-self: start; }
@media (min-width: 1024px) { .cta__inner { grid-template-columns: 1fr auto; align-items: end; } }


/* 15  Treatment pages (/behandlinger/<behandling>/)
   ========================================================================== */
.t-hero {
  position: relative;
  min-height: 88svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--warm-black);
  color: var(--ivory);
}
.t-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.t-hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgb(14 12 11 / .45) 0%, rgb(14 12 11 / .05) 30%, rgb(14 12 11 / .25) 60%, rgb(14 12 11 / .85) 100%);
}
.t-hero__content { position: relative; padding-top: calc(var(--header-h) + 3rem); padding-bottom: clamp(2.5rem, 7vw, 5rem); }
.crumbs { display: flex; flex-wrap: wrap; gap: .6rem; font-size: .68rem; line-height: 1.5; letter-spacing: .26em; text-transform: uppercase; color: rgb(247 242 234 / .8); }
.crumbs a:hover { color: var(--ivory); }
.t-title { margin-top: 1.25rem; max-width: 14ch; font-size: clamp(3rem, 10vw, 7.5rem); font-weight: 400; line-height: .92; }
.t-excerpt { margin-top: 1.5rem; max-width: 32rem; font-size: 1.05rem; line-height: 1.7; color: rgb(247 242 234 / .88); }

.t-body { display: grid; gap: 3rem; padding-top: clamp(3rem, 8vw, 6rem); }
@media (min-width: 1024px) { .t-body { grid-template-columns: 8fr 4fr; gap: clamp(3rem, 7vw, 7rem); } }

.t-facts {
  display: grid; gap: 1.25rem; align-content: start;
  padding: 1.75rem;
  background: var(--card);
  border: 1px solid var(--border);
}
@media (min-width: 1024px) {
  .t-facts { order: 2; position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; padding: 2.25rem; }
  .t-article { order: 1; }
}
.t-facts dl { display: grid; gap: 1rem; }
.t-facts dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.t-facts dt { font-size: .66rem; line-height: 1.4; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-soft); }
.t-facts dd { font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; text-align: right; }
.t-facts .btn { width: 100%; }
.t-facts__phone { text-align: center; font-size: .85rem; color: var(--ink-soft); transition: color .4s; }
.t-facts__phone:hover { color: var(--ink); }

.t-about { display: grid; gap: 1.25rem; }
.t-about p { max-width: 40rem; font-size: 15px; line-height: 1.85; color: rgb(47 44 41 / .82); }
.t-about p:first-child { font-family: var(--serif); font-size: clamp(1.45rem, 3.4vw, 1.9rem); font-weight: 400; line-height: 1.4; color: var(--ink); letter-spacing: -.005em; }
.t-section { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: grid; gap: .9rem; }
.t-label { font-family: var(--sans); font-size: .6875rem; font-weight: 400; line-height: 1.5; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); }
.t-text { max-width: 40rem; font-size: 15px; line-height: 1.85; }
.t-notice { margin-top: 2.5rem; padding: 1.1rem 1.25rem; border-left: 1px solid var(--ink); background: rgb(235 226 215 / .5); font-size: .92rem; line-height: 1.7; }
.t-campaign { margin-bottom: .75rem; font-family: var(--serif); font-style: italic; font-size: 1.15rem; }
.price-list li {
  display: grid; grid-template-columns: 1fr auto; gap: .15rem 1rem;
  padding: .95rem 0;
  border-bottom: 1px solid var(--border);
}
.price-list li:first-child { border-top: 1px solid var(--border); }
.price-label { font-family: var(--serif); font-size: 1.2rem; line-height: 1.3; }
.price-label small { display: block; margin-top: .15rem; font-family: var(--sans); font-size: .82rem; font-weight: 300; line-height: 1.5; color: var(--ink-soft); }
.price-time { grid-row: 2; font-size: .8rem; color: var(--ink-soft); }
.price-amount { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 1.05rem; font-weight: 500; line-height: 1; white-space: nowrap; }

/* "Mer innen …": editorial rows */
.t-more { padding-top: clamp(4rem, 9vw, 7rem); }
.t-more .eyebrow { margin-bottom: 1.5rem; }
.rows { border-top: 1px solid var(--border); }
.row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 1.25rem;
  align-items: center;
  gap: 0 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.row__main { display: grid; gap: .35rem; }
.row__name { font-family: var(--serif); font-size: clamp(1.7rem, 4.5vw, 2.6rem); line-height: 1.08; letter-spacing: -.01em; }
.row__excerpt { max-width: 34rem; font-size: .9rem; line-height: 1.6; color: rgb(47 44 41 / .68); }
.row__meta { display: none; }
.row__arrow { justify-self: end; font-size: 1.1rem; transition: transform .5s var(--ease); }
.row__thumb {
  display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--beige);
  transform-origin: left center;
  transition: transform .7s var(--ease), box-shadow .7s var(--ease);
}
.row__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
@media (min-width: 640px) {
  .row { grid-template-columns: 104px minmax(0, 1fr) 7.5rem 2.75rem; gap: 0 2.5rem; padding: 1.75rem 0; }
  .row__meta { display: block; font-size: .66rem; line-height: 1; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }
  .row__arrow {
    width: 2.75rem; height: 2.75rem;
    display: grid; place-items: center;
    border: 1px solid var(--border); border-radius: 50%;
    font-size: .95rem;
    transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease);
  }
  .row:hover .row__arrow { background: var(--ink); color: var(--ivory); border-color: var(--ink); transform: rotate(-45deg); }
}
/* Row hover — only with a real pointer, so phones stay calm:
   a soft wash slides in, an ink hairline draws across, the other rows step back. */
@media (hover: hover) and (pointer: fine) {
  .row { position: relative; isolation: isolate; }
  .row::before {
    content: ""; position: absolute; inset: 0 calc(var(--gutter) * -.5); z-index: -1;
    background: var(--card);
    transform: scaleX(0); transform-origin: left center;
    transition: transform .7s var(--ease);
  }
  .row::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
    background: var(--ink);
    transform: scaleX(0); transform-origin: left center;
    transition: transform .8s var(--ease);
  }
  .row__main { transition: transform .6s var(--ease); }
  .row__excerpt, .row__meta { transition: color .4s; }
  .rows li { transition: opacity .5s var(--ease); }
  .rows:hover li:not(:hover) { opacity: .42; }
  .row:hover::before, .row:hover::after { transform: scaleX(1); }
  .row:hover .row__main { transform: translateX(.75rem); }
  .row:hover .row__excerpt, .row:hover .row__meta { color: var(--ink); }
  .row:hover .row__thumb { transform: scale(1.08); box-shadow: 0 18px 40px -22px rgb(14 12 11 / .45); }
  .row:hover .row__thumb img { transform: scale(1.06); }
}
.row:focus-visible .row__thumb { transform: scale(1.08); }

/* Previous / next */
.pager { display: grid; margin-top: clamp(4rem, 9vw, 7rem); border-top: 1px solid var(--border); }
.pager a { display: grid; gap: .5rem; padding: 2rem 0; border-bottom: 1px solid var(--border); }
.pager__name { font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.1; }
.pager a:hover .pager__name { font-style: italic; }
@media (min-width: 640px) {
  .pager { grid-template-columns: 1fr 1fr; }
  .pager a { padding: 2.5rem 0; }
  .pager__next { text-align: right; padding-left: 1.5rem !important; border-left: 1px solid var(--border); }
}
.page-treatment .cta { margin-top: clamp(4rem, 9vw, 7rem); }

/* Phones: booking always within reach once the photo has scrolled away (see Motion) */
.book-bar {
  position: fixed; inset: auto 0 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .75rem var(--gutter) calc(.75rem + env(safe-area-inset-bottom, 0px));
  background: var(--warm-black);
  color: var(--ivory);
}
.book-bar__price { font-family: var(--serif); font-size: 1.2rem; }
.book-bar .btn { min-height: 2.9rem; padding-inline: 1.5rem; }
.page-treatment .site-footer { padding-bottom: 4.5rem; }
@media (min-width: 1024px) {
  .book-bar { display: none; }
  .page-treatment .site-footer { padding-bottom: 0; }
}

/* Old addresses (/behandlinger/botox/ etc.) — shown only for a moment before redirecting */
.moved { padding-block: calc(var(--header-h) + 6rem) 6rem; display: grid; gap: 1.5rem; justify-items: start; }
.moved .display { font-size: clamp(2.5rem, 7vw, 5rem); }


/* 16  Motion
   Time-based: page intros, treatment hero photo, the review carousel.
   Scroll-driven: everything inside @supports (animation-timeline: view()).
   Nothing here runs for visitors who have asked for reduced motion,
   except the two scroll-linked helpers at the very end (no movement, only visibility).
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* Above-the-fold content on inner pages: plays once on load */
  .intro {
    animation: fadeIn 1.2s var(--ease) both;
    animation-delay: calc(.1s + var(--d, 0) * .12s);
  }
  .t-hero__img { animation: settle 1.8s var(--ease) both; }
  @keyframes settle { from { transform: scale(1.06); opacity: .6; } to { transform: none; opacity: 1; } }

  /* Reviews: one quote at a time, a new one every 7 s, paused while hovered */
  .reviews__stage { gap: 0; }
  .review { grid-area: 1 / 1; animation: review-turn 21s var(--ease) infinite; }
  .reviews__dots { display: flex; justify-content: center; gap: .75rem; margin-top: 2.5rem; }
  .reviews__dots span {
    display: block; width: 1.25rem; height: 1px;
    background: rgb(47 44 41 / .3);
    animation: dot-turn 21s var(--ease) infinite;
  }
  .review:nth-child(2), .reviews__dots span:nth-child(2) { animation-delay: -14s; }
  .review:nth-child(3), .reviews__dots span:nth-child(3) { animation-delay: -7s; }
  .reviews__inner:hover :is(.review, .reviews__dots span) { animation-play-state: paused; }
  @keyframes review-turn {
    0%, 27%     { opacity: 1; }
    33.34%, 94% { opacity: 0; }
    100%        { opacity: 1; }
  }
  @keyframes dot-turn {
    0%, 27%     { width: 2.5rem; background: var(--ink); }
    33.34%, 94% { width: 1.25rem; background: rgb(47 44 41 / .3); }
    100%        { width: 2.5rem; background: var(--ink); }
  }
}

@property --num {
  syntax: "<integer>";
  inherits: false;
  initial-value: 0;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {

    /* Header turns solid as the hero scrolls away (homepage) */
    .site-header--overlay {
      position: fixed;
      animation: header-solid linear both;
      animation-timeline: scroll(root);
      animation-range: calc(100svh - 200px) calc(100svh - 90px);
    }
    /* …and as the treatment photo scrolls away (treatment pages) */
    .site-header--photo { animation-range: calc(88svh - 200px) calc(88svh - 90px); }
    @keyframes header-solid { from { --solid: 0; } to { --solid: 1; } }

    /* Hero: gentle parallax + fade as you leave it */
    .hero__media img {
      animation: hero-drift linear both;
      animation-timeline: scroll(root);
      animation-range: 0 100svh;
    }
    .hero__inner {
      animation: hero-leave linear both;
      animation-timeline: scroll(root);
      animation-range: 0 90svh;
    }
    @keyframes hero-drift { to { transform: translateY(14%) scale(1.06); } }
    @keyframes hero-leave { to { opacity: 0; transform: translateY(-6vh); } }

    /* Treatment page photo drifts a little slower than the page */
    .t-hero__content {
      animation: hero-leave linear both;
      animation-timeline: scroll(root);
      animation-range: 0 80svh;
    }

    /* Generic reveal: fade + rise. --d staggers siblings. */
    .rv {
      animation: rv-up var(--ease) both;
      animation-timeline: view();
      animation-range: entry calc(var(--d, 0) * 36px) entry calc(280px + var(--d, 0) * 36px);
    }
    @keyframes rv-up {
      from { opacity: 0; transform: translateY(48px); }
      to   { opacity: 1; transform: none; }
    }

    /* Image curtain: clip opens upward, photo settles from a slight zoom */
    .reveal-img {
      view-timeline: --img;
      animation: clip-up var(--ease) both;
      animation-timeline: --img;
      animation-range: entry calc(var(--d, 0) * 36px) entry calc(360px + var(--d, 0) * 36px);
    }
    .reveal-img img {
      animation: img-settle linear both;
      animation-timeline: --img;
      animation-range: entry 0% cover 100%;
    }
    @keyframes clip-up { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
    @keyframes img-settle { from { scale: 1.18; translate: 0 -3%; } to { scale: 1.02; translate: 0 3%; } }

    /* Numbers count up when they scroll into view */
    .count__static { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .count__anim {
      display: inline;
      counter-reset: num var(--num);
      animation: count-up var(--ease) both;
      animation-timeline: view();
      animation-range: entry 20% cover 45%;
    }
    .count__anim::before { content: counter(num); }
    @keyframes count-up { from { --num: 0; } to { --num: var(--to); } }

    /* Experience: the room drifts behind the text */
    .xp__bg {
      animation: xp-drift linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
    @keyframes xp-drift { from { transform: translateY(-10%) scale(1.12); } to { transform: translateY(10%) scale(1.12); } }
  }
}

/* Scroll-linked helpers (visibility only, so they also run with reduced motion) */
@supports (animation-timeline: scroll()) {
  @media (min-width: 1024px) {
    .to-top {
      display: grid; place-items: center;
      position: fixed; right: 2rem; bottom: 2rem; z-index: 40;
      width: 3rem; height: 3rem;
      background: var(--ink); color: var(--ivory);
      border: 1px solid var(--ink);
      transition: background-color .4s, color .4s;
      animation: show-late linear both;
      animation-timeline: scroll(root);
      animation-range: 70svh 90svh;
    }
    .to-top svg { width: 18px; height: 18px; }
    .to-top:hover { background: var(--ivory); color: var(--ink); }
  }
  @keyframes show-late { from { opacity: 0; visibility: hidden; } to { opacity: 1; visibility: visible; } }

  /* Treatment pages, phones: booking bar slides up once the photo is gone */
  .book-bar {
    animation: bar-up linear both;
    animation-timeline: scroll(root);
    animation-range: calc(88svh - 160px) calc(88svh - 60px);
  }
  @keyframes bar-up { from { transform: translateY(110%); visibility: hidden; } to { transform: none; visibility: visible; } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
