:root {
  --ink: #1A1D1A;
  --ink-2: #3E443D;
  --muted: #5E655D;
  --faint: #8A9089;
  --sep: #B4B9B1;
  --line: #DADDD6;
  --ground: #F6F7F4;
  --tile: #E6E8E2;
  --accent: #1A1D1A;
  --gutter: clamp(1.5rem, 6vw, 6rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: 'Schibsted Grotesk', 'Helvetica Neue', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--muted); }
p, h1, h2, h3 { margin: 0; font-weight: 400; }

.wrap { max-width: 60rem; margin: 0 auto; }
.section { padding: clamp(6rem, 14vw, 12rem) var(--gutter); }
.ruled { border-top: 1px solid var(--line); padding-top: clamp(4rem, 9vw, 7rem); }

/* Header */
.site-header {
  padding: 2rem var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand span { font-size: 1rem; font-weight: 500; letter-spacing: 0.01em; }
.header-right { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.75rem; }
.nav { display: flex; flex-wrap: wrap; gap: 0 1.75rem; font-size: 1rem; }
.nav a { color: var(--muted); padding: 0.75rem 0; }
.nav a:hover { color: var(--ink); }

.lang { display: flex; align-items: center; gap: 0.25rem; font-size: 0.9rem; }
.lang button {
  min-width: 2.75rem; min-height: 2.75rem; padding: 0; border: 0; background: transparent;
  cursor: pointer; font: inherit; color: var(--muted); text-underline-offset: 0.3em;
}
.lang button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; }
.lang .slash { color: var(--sep); }

/* Text styles */
.eyebrow { font-size: 1rem; color: var(--muted); }
.statement { font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.3; letter-spacing: -0.015em; }
.body { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.6; color: var(--ink-2); }
.display { font-size: clamp(3.5rem, 10vw, 8rem); line-height: 1; letter-spacing: -0.04em; }
.h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -0.015em; }
.subline { margin-top: 1rem; font-size: 1.1rem; line-height: 1.6; color: var(--ink-2); }

.btn {
  display: inline-flex; align-items: center; min-height: 3.25rem; padding: 0 2rem;
  border-radius: 999px; background: var(--accent); color: var(--ground);
  font-size: 1rem; font-weight: 500;
  transition: padding .8s var(--ease);
}
.btn:hover { color: var(--ground); padding: 0 2.75rem; }

.link-strong { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: 1rem; font-weight: 500; }

/* Underline-on-hover links */
.ul-hover {
  text-decoration: underline; text-decoration-color: transparent;
  text-underline-offset: .35em; transition: text-decoration-color .5s ease;
}
.ul-hover:hover { text-decoration-color: currentColor; }

/* ---------- Start page ---------- */
/* Headern ligger ovanpå videon på startsidan. */
.site-header.over-video {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  color: #fff;
}
.over-video a, .over-video .nav a, .over-video .lang button { color: rgba(255,255,255,0.82); }
.over-video .brand, .over-video .lang button[aria-pressed="true"] { color: #fff; }
.over-video a:hover, .over-video .nav a:hover { color: #fff; }
.over-video .lang .slash { color: rgba(255,255,255,0.5); }

/* Fullskärmshero med video. */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 8rem var(--gutter) clamp(2.5rem, 7vh, 5rem);
  background: #2E332B; /* syns tills stillbilden har laddat */
  color: #fff;
}
.hero-bg { position: absolute; inset: 0; background: url(hero-poster.jpg) center / cover no-repeat; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Mörk slöja: tätare upptill (ljus himmel bakom headern) och nedtill (texten). */
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,17,13,0.55) 0%, rgba(14,17,13,0.18) 30%, rgba(14,17,13,0.28) 55%, rgba(14,17,13,0.7) 100%);
}
.hero .wrap { position: relative; width: 100%; text-shadow: 0 1px 20px rgba(0,0,0,0.25); }
/* Två rader, aldrig fler: storleken räknas fram ur skärmbredden och den
   längsta raden (sv ≈ 9,5 em, en ≈ 11,7 em). */
.hero h1 {
  --line-em: 10.1;
  font-size: min(4.75rem, calc((100vw - 2 * var(--gutter)) / var(--line-em)));
  line-height: 1.2; letter-spacing: -0.025em;
}
.hero h1 span { display: block; white-space: nowrap; }
/* Första raden bär rubriken, andra svarar lågmält under. */
.hero h1 .mr-l1 { font-weight: 500; }
.hero h1 .quiet { margin-top: 0.12em; color: rgba(255,255,255,0.62); }
.hero-space { max-width: 34em; margin-top: clamp(2.25rem, 5vw, 3.5rem); font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.6; color: rgba(255,255,255,0.88); }
.hero-space > span { display: block; }
.hero-space-after { margin-top: 1em; }
.nobr { white-space: nowrap; }
.mr-word { display: inline-block; }
.hero-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: clamp(2.5rem, 7vh, 5rem);
}
.cue {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 2.75rem; font-size: 0.95rem;
}
.hero .cue, .hero .cue:hover { color: rgba(255,255,255,0.88); }
.hero .cue:hover { color: #fff; }
.cue .arrow { display: inline-block; }

.lang button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

#mellanrum .statement { margin-top: 1.5rem; max-width: 44rem; }
#mellanrum .body { max-width: 34rem; }
#mellanrum .body.first { margin-top: clamp(2rem, 4vw, 3rem); }
#mellanrum .body.mid { margin-top: 1.25rem; }
#mellanrum .body.last { margin-top: 1.25rem; }

.offer-section { padding-top: 0; }
.offer-section .eyebrow { font-weight: 400; }
.offers { margin-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.offer {
  display: grid; grid-template-columns: minmax(8rem, 14rem) 1fr; gap: 0.4rem 2rem; align-items: baseline;
  padding: clamp(1.25rem, 2.5vw, 1.75rem) 0; border-bottom: 1px solid var(--line);
}
.offer-name { font-size: clamp(1.3rem, 2.2vw, 1.6rem); letter-spacing: -0.01em; }
.offer-text { max-width: 34rem; font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.55; color: var(--ink-2); }
.offer-body { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.offer-facts { font-size: 0.95rem; color: var(--muted); }
.offer-link { gap: 0.35em; margin-top: -0.25rem; }
@media (max-width: 40rem) { .offer { grid-template-columns: 1fr; } }

#andrum .display { margin-top: 1.5rem; }
#andrum .body { margin-top: clamp(2rem, 4vw, 3rem); max-width: 30rem; }
#andrum .cta { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

.question { padding: clamp(10rem, 22vw, 18rem) var(--gutter) clamp(8rem, 16vw, 13rem); text-align: center; }
.question .statement { margin: 0 auto; max-width: 40rem; }

.site-footer { padding: 2.5rem var(--gutter) 3rem; }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 1rem 2rem; font-size: 0.95rem; color: var(--muted);
}
.site-footer a { color: var(--muted); padding: 0.75rem 0; }
.site-footer a:hover { color: var(--ink); }

/* ---------- Andrum page ---------- */
.a-hero { padding: clamp(7rem, 16vw, 13rem) var(--gutter) clamp(5rem, 11vw, 9rem); }
.a-hero .lead { margin-top: clamp(2rem, 4vw, 3rem); max-width: 36rem; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.35; letter-spacing: -0.01em; }
.a-hero .sub { margin-top: 1.5rem; max-width: 32rem; font-size: 1.05rem; line-height: 1.6; color: var(--muted); }

.a-section { padding: clamp(5rem, 11vw, 9rem) var(--gutter); }
#schema { padding-top: clamp(4rem, 9vw, 7rem); padding-bottom: clamp(4rem, 9vw, 7rem); }
.list { margin-top: 2.5rem; border-top: 1px solid var(--line); }

.row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 2rem;
  padding: 1.5rem 0; border-bottom: 1px solid var(--line); font-size: 1rem;
}
.row .day { flex: 0 0 8rem; font-weight: 500; }
.row .time { flex: 0 0 7rem; color: var(--muted); }
.row .name { flex: 1 1 12rem; font-size: 1.1rem; }
.row .teacher { flex: 0 1 10rem; color: var(--muted); }

.events { margin-top: 2.5rem; display: flex; flex-direction: column; gap: clamp(2.5rem, 5vw, 3.5rem); }
.event { display: flex; flex-wrap: wrap; gap: 0.75rem 3rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.event .date { flex: 0 0 10rem; font-size: 1rem; color: var(--muted); }
.event .info { flex: 1 1 20rem; display: flex; flex-direction: column; gap: 0.75rem; }
.event .name { font-size: clamp(1.3rem, 2.2vw, 1.6rem); letter-spacing: -0.01em; }
.event .text { max-width: 32rem; font-size: 1.05rem; line-height: 1.6; color: var(--ink-2); }

.treatment {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 2rem;
  padding: 1.75rem 0; border-bottom: 1px solid var(--line);
}
.treatment .info { flex: 1 1 18rem; display: flex; flex-direction: column; gap: 0.5rem; }
.treatment .name { font-size: 1.15rem; }
.treatment .text { font-size: 1rem; line-height: 1.55; color: var(--muted); }
.treatment .meta { flex: 0 0 6rem; font-size: 1rem; color: var(--muted); }
.treatments-cta { margin-top: 1.5rem; }

.teachers { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 3rem 2rem; }
.teacher-card { display: flex; flex-direction: column; gap: 1rem; }
.portrait {
  aspect-ratio: 4 / 5; background: var(--tile); display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: var(--muted); overflow: hidden;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.teacher-card .name { font-size: 1.15rem; }
.teacher-card .text { font-size: 1rem; line-height: 1.55; color: var(--muted); }
.teacher-card .email { align-self: flex-start; padding: 0.75rem 0; margin: -0.75rem 0; font-size: 1rem; color: var(--ink-2); }
@media (max-width: 40rem) {
  .teachers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1rem; }
  .teacher-card { gap: 0.75rem; }
  .teacher-card .email { font-size: 0.9rem; overflow-wrap: anywhere; }
}

.a-footer { padding: clamp(6rem, 12vw, 10rem) var(--gutter) 3rem; }
.a-footer .wrap { border-top: 1px solid var(--line); padding-top: 2rem; }

/* ---------- Motion ---------- */
/* Scroll-animationer: main.js lägger till .is-in när ett block kommer in i bild.
   De spelas en gång, mjukt utklingande, och fungerar i alla webbläsare. */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  @keyframes mr-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes mr-fade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes mr-focus { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: blur(0); } }
  @keyframes mr-breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
  @keyframes mr-settle { from { opacity: 0; letter-spacing: 0.02em; } to { opacity: 1; letter-spacing: -0.04em; } }

  /* Startsidans hero, vid sidladdning. */
  .mr-l1 { animation: mr-in 1.3s var(--ease-out) .2s both; }
  .mr-l2 { animation: mr-in 1.3s var(--ease-out) .9s both; }
  .mr-l3 { animation: mr-fade 1.4s ease 1.7s both; }
  .mr-word { animation: mr-focus 1.8s var(--ease-out) 2.1s both; }
  .mr-l4 { animation: mr-in 1.3s var(--ease-out) 2.8s both; }
  .mr-cue { animation: mr-fade 1.2s ease 3.5s both; }
  .mr-arrow { animation: mr-breathe 3.6s ease-in-out 4.5s infinite; }

  /* Andrum-sidans topp, vid sidladdning. */
  .mr-h { animation: mr-settle 1.8s var(--ease-out) .1s both; }
  .mr-lead { animation: mr-in 1.3s var(--ease-out) .7s both; }
  .mr-sub { animation: mr-fade 1.2s ease 1.3s both; }

  /* Vid scroll. Döljs bara om JS körs (klassen .js sätts i <head>). */
  .js .mr-reveal, .js .mr-reveal-slow, .js .mr-settle { opacity: 0; will-change: opacity, transform; }
  .js .mr-reveal { transform: translateY(22px); }
  .js .mr-reveal.is-in {
    opacity: 1; transform: none;
    transition: opacity 1s ease var(--d, 0s), transform 1.4s var(--ease-out) var(--d, 0s);
  }
  .js .mr-reveal-slow.is-in { opacity: 1; transition: opacity 2.2s ease var(--d, 0s); }
  .js .mr-settle { letter-spacing: 0.02em; }
  .js .mr-settle.is-in {
    opacity: 1; letter-spacing: -0.04em;
    transition: opacity 1.2s ease var(--d, 0s), letter-spacing 2s var(--ease-out) var(--d, 0s);
  }
}
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }

/* ---------- Kontakt ---------- */
.contact-hero { padding-bottom: clamp(2rem, 5vw, 4rem); }
.contact-section { padding-top: 0; }
.contact-form { max-width: 36rem; display: flex; flex-direction: column; gap: 1.75rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-size: 0.95rem; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--sep); border-radius: 0;
  padding: 0.7rem 0; min-height: 2.75rem;
  transition: border-color .3s ease;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; line-height: 1.55; }
.field select {
  cursor: pointer; padding-right: 1.75rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235E655D' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 0.25rem center / 12px 8px no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { box-shadow: 0 1px 0 0 var(--ink); }
.field [aria-invalid="true"] { border-bottom-color: #9B3B2E; }
.field .error { font-size: 0.9rem; color: #9B3B2E; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 0.5rem; }
.contact-form button.btn { border: 0; cursor: pointer; font: inherit; font-weight: 500; }
.contact-form button.btn:disabled { opacity: 0.55; cursor: progress; }
.form-status { font-size: 1rem; color: var(--ink-2); }
.form-status.is-error { color: #9B3B2E; }
.contact-sent { max-width: 36rem; font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.4; letter-spacing: -0.01em; }
.contact-alt { margin-top: clamp(3rem, 6vw, 4.5rem); font-size: 1rem; color: var(--muted); }
.contact-alt a { color: var(--ink-2); }
.nav a[aria-current="page"] { color: var(--ink); }

/* ---------- Undersidor: Salongen och Ventures ---------- */
.a-section .h2 + .steps, .thesis-body + .steps { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 2rem;
}
.step { display: flex; flex-direction: column; gap: 0.6rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.step-num { font-size: 0.95rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.step-name { font-size: clamp(1.3rem, 2.2vw, 1.6rem); letter-spacing: -0.01em; }
.step-text { font-size: 1.05rem; line-height: 1.55; color: var(--ink-2); }
@media (max-width: 48rem) { .steps { grid-template-columns: 1fr; } }

.evenings { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.evenings-empty { padding: 1.75rem 0; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.6; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.evening-list { list-style: none; margin: 0; padding: 0; }
.evening {
  display: grid; grid-template-columns: minmax(8rem, 14rem) 1fr; gap: 0.5rem 2rem; align-items: baseline;
  padding: clamp(1.5rem, 3vw, 2rem) 0; border-bottom: 1px solid var(--line);
}
.evening-date { font-size: 1rem; color: var(--muted); }
.evening-info { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.evening-question { font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.3; letter-spacing: -0.01em; }
.evening-meta { font-size: 0.95rem; color: var(--muted); }
@media (max-width: 40rem) { .evening { grid-template-columns: 1fr; } }

.thesis-line { margin-top: 1.5rem; max-width: 44rem; }
.thesis-body { margin-top: clamp(1.5rem, 3vw, 2rem); max-width: 34rem; }
.never-text { margin-top: 1rem; max-width: 34rem; }

.closing { padding: clamp(7rem, 16vw, 13rem) var(--gutter) clamp(2rem, 6vw, 4rem); text-align: center; }
.closing .statement { margin: 0 auto; max-width: 40rem; }
.closing-sub { margin: 1rem auto 0; max-width: 34rem; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.6; color: var(--muted); }
.closing-cta { margin-top: clamp(2rem, 4vw, 3rem); }
