/* =========================================================
   Jessica Huber — Freie Rednerin
   Quiet editorial design system
   ========================================================= */

:root {
  /* ---- color ---- */
  --paper:      oklch(0.987 0.006 78);
  --paper-2:    oklch(0.962 0.009 76);
  --paper-3:    oklch(0.935 0.012 74);
  --ink:        oklch(0.215 0.012 58);
  --ink-soft:   oklch(0.44 0.012 58);
  --ink-faint:  oklch(0.6 0.01 58);
  --line:       oklch(0.215 0.012 58 / 0.16);
  --line-soft:  oklch(0.215 0.012 58 / 0.08);
  --black:      oklch(0.17 0.006 60);
  --on-black:   oklch(0.94 0.006 78);
  --accent:     oklch(0.54 0.105 30);
  --accent-deep:oklch(0.45 0.095 30);
  --accent-tint:oklch(0.93 0.026 44);

  /* ---- type ---- */
  --serif:   'Newsreader', Georgia, 'Times New Roman', serif;
  --display-font: 'Playfair Display', 'Didot', 'Bodoni MT', Georgia, serif;
  --script:  'Mrs Saint Delafield', 'Snell Roundhand', cursive;
  --sans:    'Hanken Grotesk', system-ui, -apple-system, sans-serif;

  /* ---- layout ---- */
  --container: 1240px;
  --gutter: clamp(1.4rem, 5vw, 5rem);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================
   reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--serif);
  font-optical-sizing: auto;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  font-size: 1.0625rem;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
::selection { background: var(--accent-tint); color: var(--ink); }

/* =========================================================
   page-transition fade
   ========================================================= */
body { opacity: 1; transition: opacity 0.5s var(--ease); }
body.pt-out { opacity: 0; }

/* =========================================================
   layout primitives
   ========================================================= */
.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 880px; }
.section { padding-block: clamp(4.5rem, 11vw, 10rem); }
.section--tight { padding-block: clamp(3rem, 7vw, 6rem); }
.bleed-2 { background: var(--paper-2); }
.bleed-3 { background: var(--paper-3); }
.bleed-black { background: var(--black); color: var(--on-black); }
.bleed-black .eyebrow { color: oklch(0.7 0.05 36); }
.bleed-black .rule { background: oklch(0.94 0.006 78 / 0.18); }

.col { max-width: 64ch; }
.measure { max-width: 56ch; }

/* =========================================================
   type
   ========================================================= */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-block;
}
.eyebrow--muted { color: var(--ink-faint); }

.display {
  font-family: var(--display-font);
  font-weight: 480;
  line-height: 1.02;
  letter-spacing: -0.012em;
  font-size: clamp(2.9rem, 8vw, 6.4rem);
  text-wrap: balance;
}
.h1 {
  font-family: var(--display-font);
  font-weight: 480;
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  text-wrap: balance;
}
.h2 {
  font-family: var(--display-font);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.008em;
  font-size: clamp(1.85rem, 4.2vw, 3.1rem);
  text-wrap: balance;
}
.h3 {
  font-family: var(--display-font);
  font-weight: 520;
  line-height: 1.18;
  font-size: clamp(1.3rem, 2.6vw, 1.85rem);
  letter-spacing: -0.004em;
}
.display em, .h1 em, .h2 em { font-style: italic; font-weight: 400; }
.lead {
  font-weight: 300;
  font-size: clamp(1.2rem, 2.3vw, 1.7rem);
  line-height: 1.5;
  letter-spacing: -0.006em;
  color: var(--ink);
}
.body-lg { font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.72; color: var(--ink-soft); }
.prose p { color: var(--ink-soft); }
.prose p + p { margin-top: 1.25em; }
em, .italic { font-style: italic; }
.serif-italic { font-style: italic; font-weight: 300; }
.accent { color: var(--accent-deep); }

/* ---- handwritten script accents (moodboard) ---- */
.script {
  font-family: var(--script);
  font-weight: 400;
  font-style: normal;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent);
  display: inline-block;
}
.script--lg { font-size: clamp(2.4rem, 4.5vw, 3.4rem); }
.script--xl { font-size: clamp(3.2rem, 6.5vw, 5.4rem); }
.script--tilt { transform: rotate(-5deg); }
.bleed-black .script { color: oklch(0.75 0.085 32); }

/* ---- oversized editorial letter (behind content) ---- */
.bigletter {
  position: absolute; z-index: 0;
  font-family: var(--display-font); font-weight: 480;
  font-size: clamp(15rem, 32vw, 28rem); line-height: 0.72;
  color: var(--ink); opacity: 0.05;
  pointer-events: none; user-select: none;
}

.label {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  font-weight: 500;
  color: var(--ink-soft);
}
.num-label {
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

/* =========================================================
   rules / dividers
   ========================================================= */
.rule { height: 1px; background: var(--line); border: 0; width: 100%; }
.rule--soft { background: var(--line-soft); }
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); display: inline-block; vertical-align: middle; }

/* =========================================================
   header / nav
   ========================================================= */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease), backdrop-filter 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-head__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px;
}
.site-head.is-stuck {
  background: oklch(0.987 0.006 78 / 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line-soft);
}
.site-head.on-dark { color: var(--on-black); }
.site-head.on-dark.is-stuck { background: oklch(0.17 0.006 60 / 0.7); border-bottom-color: oklch(0.94 0.006 78 / 0.12); }

.brand { display: flex; align-items: center; gap: 0.8rem; line-height: 1; }
.brand__script {
  font-family: var(--script); font-size: 2.3rem; line-height: 0.5;
  color: var(--accent-deep); transform: rotate(-6deg) translateY(-3px); flex: none;
}
.site-head.on-dark .brand__script { color: oklch(0.75 0.085 32); }
.brand__stack { display: flex; flex-direction: column; gap: 0.32rem; }
.brand__mark { font-family: var(--display-font); font-size: 0.88rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; white-space: nowrap; }
.brand__sub {
  font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.22em;
  text-transform: uppercase; font-weight: 600; color: var(--accent-deep);
}
.site-head.on-dark .brand__sub { color: oklch(0.72 0.05 36); }

.nav { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.6rem); }
.nav a {
  font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.16em;
  text-transform: uppercase; font-weight: 500; color: inherit; white-space: nowrap;
  position: relative; padding-block: 0.4rem; opacity: 0.78;
  transition: opacity 0.3s var(--ease);
}
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease); opacity: 0.6;
}
.nav a:hover { opacity: 1; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { opacity: 1; }

.nav-toggle { display: none; }
.mobile-nav { display: none; }

@media (max-width: 940px) {
  .nav { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px; padding: 8px; margin-right: -8px;
  }
  .nav-toggle span { width: 24px; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease), opacity 0.3s; }
  .mobile-nav {
    display: flex !important;
    position: fixed; inset: 0; z-index: 55; background: var(--paper);
    flex-direction: column; justify-content: center; gap: 0.5rem;
    padding: var(--gutter); opacity: 0; pointer-events: none;
    transform: translateY(-8px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  }
  .mobile-nav.open { opacity: 1; pointer-events: auto; transform: none; }
  .mobile-nav a { font-family: var(--display-font); font-size: clamp(1.5rem, 5.5vw, 1.9rem); font-weight: 420; padding-block: 0.4rem; border-bottom: 1px solid var(--line-soft); }
  .mobile-nav a small { font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); display: block; }
}

/* =========================================================
   buttons
   ========================================================= */
.btn {
  font-family: var(--sans); font-size: 0.76rem; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 600;
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.95rem 1.7rem; border-radius: 0;
  background: var(--ink); color: var(--paper);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), gap 0.3s var(--ease);
}
.btn:hover { background: var(--accent-deep); gap: 1.1rem; }
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--accent-tint); color: var(--ink); }

.link-arrow {
  font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 600; display: inline-flex; align-items: center; gap: 0.6rem;
  padding-bottom: 0.3rem; border-bottom: 1px solid var(--line);
  transition: gap 0.3s var(--ease), border-color 0.3s var(--ease);
}
.link-arrow:hover { gap: 0.95rem; border-color: var(--ink); }

/* =========================================================
   image placeholders (tasteful stock-style)
   ========================================================= */
.ph {
  position: relative; overflow: hidden; border-radius: 2px;
  background:
    radial-gradient(120% 90% at 25% 15%, rgba(236,222,205,0.85), transparent 60%),
    linear-gradient(155deg, #d9cabb, #ab8a72);
}
.ph__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(1) contrast(1.04);
  transition: filter 0.9s var(--ease);
}
.ph--color .ph__img { filter: none; }
.svc:hover .svc__bg .ph__img { filter: grayscale(0) contrast(1); }
.ph::after {
  content: ''; position: absolute; inset: 0; background: var(--grain); z-index: 1;
  opacity: 0.06; mix-blend-mode: multiply; pointer-events: none;
}
.ph--warm {
  background:
    radial-gradient(120% 90% at 30% 12%, rgba(242,230,213,0.9), transparent 60%),
    linear-gradient(155deg, #e3d4c3, #c19f7d);
}
.ph--rose {
  background:
    radial-gradient(120% 90% at 30% 18%, rgba(243,224,216,0.88), transparent 62%),
    linear-gradient(155deg, #e4cdc2, #c4978b);
}
.ph--dark {
  background:
    radial-gradient(110% 90% at 28% 12%, rgba(92,86,77,0.7), transparent 60%),
    linear-gradient(155deg, #46423b, #232019);
}
.ph--muted {
  background:
    radial-gradient(120% 90% at 30% 15%, rgba(238,232,222,0.9), transparent 62%),
    linear-gradient(155deg, #ddd5ca, #b6ada0);
}
.ph__cap {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.82); font-weight: 500;
  padding: 0.75rem 0.9rem; text-shadow: 0 1px 8px rgba(0,0,0,0.28);
}

.ph-portrait { aspect-ratio: 3 / 4; }
.ph-square { aspect-ratio: 1 / 1; }
.ph-wide { aspect-ratio: 16 / 10; }
.ph-tall { aspect-ratio: 3 / 4.4; }

/* =========================================================
   reveal animation
   ========================================================= */
/* reveals only hide once JS is confirmed active, so content is never stuck hidden */
html.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
html.js [data-reveal].in { opacity: 1; transform: none; }
html.js [data-reveal-stagger] > * { opacity: 0; transform: translateY(20px); transition: opacity 0.9s var(--ease), transform 1s var(--ease); }
html.js [data-reveal-stagger].in > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  body.pt { animation: none; }
  html.js [data-reveal], html.js [data-reveal-stagger] > * { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   audio player ("Hör mal rein")
   ========================================================= */
.audio {
  display: flex; align-items: center; gap: 1.1rem;
  padding: 0.8rem 1.1rem 0.8rem 0.8rem; border: 1px solid var(--line);
  border-radius: 999px; background: var(--paper); max-width: 430px;
  transition: border-color 0.4s var(--ease), box-shadow 0.5s var(--ease);
}
.audio:hover { box-shadow: 0 14px 40px -28px oklch(0.2 0.01 60 / 0.5); }
.audio__btn {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: var(--paper); display: grid; place-items: center;
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
}
.audio__btn:hover { background: var(--accent-deep); transform: scale(1.05); }
.audio__btn svg { width: 16px; height: 16px; }
.audio__body { flex: 1; min-width: 0; }
.audio__top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem; }
.audio__label { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--ink); white-space: nowrap; }
.audio__time { font-family: var(--sans); font-size: 0.72rem; font-variant-numeric: tabular-nums; color: var(--ink-faint); }
.audio__wave { display: flex; align-items: center; gap: 2.5px; height: 26px; }
.audio__wave .bar {
  flex: 1; background: var(--line); border-radius: 2px; min-height: 3px;
  transition: background 0.2s linear; transform-origin: center;
}
.audio__wave .bar.on { background: var(--accent); }
.audio.dark { background: transparent; border-color: oklch(0.94 0.006 78 / 0.2); }
.audio.dark .audio__btn { background: var(--paper); color: var(--ink); }
.audio.dark .audio__label { color: var(--on-black); }
.audio.dark .audio__wave .bar { background: oklch(0.94 0.006 78 / 0.2); }
.audio.dark .audio__wave .bar.on { background: oklch(0.72 0.06 36); }

/* =========================================================
   stat / figure
   ========================================================= */
.stat__num { font-family: var(--display-font); font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 480; line-height: 1; letter-spacing: -0.01em; }
.stat__lab { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-top: 0.6rem; }

/* =========================================================
   process steps
   ========================================================= */
.steps { display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1.2rem, 4vw, 3.2rem);
  padding-block: clamp(1.8rem, 3.5vw, 2.6rem); border-top: 1px solid var(--line);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__n { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; color: var(--accent-deep); font-variant-numeric: tabular-nums; padding-top: 0.5rem; }
.step__t { margin-bottom: 0.5rem; }

/* =========================================================
   testimonial
   ========================================================= */
.stars { display: flex; gap: 4px; color: var(--accent); }
.stars svg { width: 18px; height: 18px; flex: none; }
.quote { font-family: var(--display-font); font-weight: 400; font-style: italic; line-height: 1.32; letter-spacing: 0; text-wrap: balance; }

/* =========================================================
   service cards (home)
   ========================================================= */
.svc {
  position: relative; display: block; overflow: hidden;
  border-radius: 3px; isolation: isolate; min-height: clamp(340px, 46vw, 540px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(1.6rem, 3vw, 2.6rem); color: var(--on-black);
}
.svc__bg { position: absolute; inset: 0; z-index: -2; transition: transform 1.1s var(--ease); }
.svc::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, oklch(0.16 0.006 60 / 0.78), oklch(0.16 0.006 60 / 0.12) 55%, transparent); }
.svc:hover .svc__bg { transform: scale(1.05); }
.svc__eyebrow { font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; opacity: 0.85; }
.svc__title { margin-top: 0.5rem; }
.svc__more { margin-top: 1.2rem; display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--sans); font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; transition: gap 0.3s var(--ease); }
.svc:hover .svc__more { gap: 1rem; }

/* =========================================================
   forms
   ========================================================= */
.form { display: grid; gap: 1.4rem; }
.form__row { display: grid; gap: 1.4rem; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 0.5rem; }
.field label { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; color: var(--ink-soft); }
.field input, .field textarea {
  font-family: var(--serif); font-size: 1.05rem; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 0.6rem 0; transition: border-color 0.4s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); opacity: 0.6; }
.form .btn { justify-self: start; margin-top: 0.6rem; }
.form-note { font-family: var(--sans); font-size: 0.74rem; color: var(--ink-faint); letter-spacing: 0.02em; }

/* =========================================================
   footer
   ========================================================= */
.foot { background: var(--black); color: var(--on-black); padding-block: clamp(3.5rem, 7vw, 6rem); }
.foot a { opacity: 0.7; transition: opacity 0.3s var(--ease); }
.foot a:hover { opacity: 1; }
.foot__grid { display: grid; gap: 2.5rem; grid-template-columns: 1.4fr 1fr 1fr; align-items: start; }
.foot__brand {
  font-family: var(--script); font-size: 2.9rem; font-weight: 400; line-height: 1;
  color: oklch(0.78 0.075 32); transform: rotate(-3deg); display: inline-block;
  padding-right: 0.4em;
}
.foot__sub { font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: oklch(0.72 0.05 36); margin-top: 0.4rem; }
.foot__h { font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: oklch(0.7 0.008 78 / 0.6); margin-bottom: 1.1rem; }
.foot__list { display: grid; gap: 0.7rem; font-size: 0.98rem; }
.foot__list a, .foot__list span { font-family: var(--sans); font-size: 0.86rem; letter-spacing: 0.02em; }
.foot__bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.6rem; border-top: 1px solid oklch(0.94 0.006 78 / 0.12); }
.foot__bottom, .foot__bottom a { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.04em; color: oklch(0.7 0.008 78 / 0.6); }

/* =========================================================
   hero variant switcher (design aid)
   ========================================================= */
.variant-switch {
  position: fixed; left: 1.1rem; bottom: 1.1rem; z-index: 80;
  display: flex; align-items: center; gap: 0.35rem; padding: 0.4rem;
  background: oklch(0.17 0.006 60 / 0.9); backdrop-filter: blur(10px);
  border-radius: 999px; box-shadow: 0 18px 50px -24px oklch(0.2 0.01 60 / 0.8);
}
.variant-switch__lab { font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: oklch(0.8 0.006 78 / 0.7); padding-inline: 0.6rem 0.3rem; }
.variant-switch button {
  width: 30px; height: 30px; border-radius: 50%; font-family: var(--sans);
  font-size: 0.74rem; font-weight: 600; color: oklch(0.8 0.006 78 / 0.7);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.variant-switch button.active { background: var(--paper); color: var(--ink); }

/* =========================================================
   utilities
   ========================================================= */
.mt-s { margin-top: 1rem; } .mt-m { margin-top: 2rem; } .mt-l { margin-top: 3.5rem; }
.flex { display: flex; } .between { justify-content: space-between; } .items-center { align-items: center; }
.items-end { align-items: flex-end; } .gap-s { gap: 1rem; } .gap-m { gap: 2rem; } .wrap-flex { flex-wrap: wrap; }
.grid { display: grid; }
.tar { text-align: right; }
.hide-mobile { }
@media (max-width: 760px) {
  .form__row { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; gap: 2rem; }
  .hide-mobile { display: none !important; }
}
