/* Pebbla – pebbla.dk
   Farver fra Pebblas visuelle identitet (Villads Pebbla_Colors) */

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-300-italic.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --brown: #3d2618;
  --wine: #4f0e1a;
  --cream: #f8f5ec;
  --sand: #ddd6cd;
  --mist: #dde0e5;
  --blue: #bac7cc;
  --stone: #bfb9b4;
  --grey: #bababa;

  --text: var(--brown);
  --text-soft: #6b5a4e;
  --bg: var(--cream);
  --line: rgba(61, 38, 24, .14);

  --display: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --sans: "Poppins", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(88px, 12vw, 168px);
  --ease: cubic-bezier(.22, .61, .36, 1);

  --pebble-a: 58% 42% 47% 53% / 52% 46% 54% 48%;
  --pebble-b: 46% 54% 41% 59% / 57% 49% 51% 43%;
  --pebble-c: 52% 48% 56% 44% / 46% 54% 46% 54%;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(15px, .9rem + .15vw, 17px);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
em { font-style: italic; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -.02em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); }
h3 { font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem); font-weight: 400; letter-spacing: -.01em; margin-bottom: .5em; }
p { margin: 0 0 1.1em; text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--brown); color: var(--cream);
  text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0 0 1.6rem;
}
.eyebrow--light { color: rgba(248, 245, 236, .82); }

.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--text-soft); max-width: 40em; }

/* ---------- Logo (PNG som maske, så farven kan skifte) ---------- */
.logo {
  display: block;
  position: relative;
  width: 118px;
  aspect-ratio: 1000 / 359;
  container-type: inline-size; /* ©-tegnet skalerer med logoet */
}
.logo::before {
  content: ""; position: absolute; inset: 0;
  background-color: currentColor;
  -webkit-mask: url("../img/logo.png") center / contain no-repeat;
          mask: url("../img/logo.png") center / contain no-repeat;
}
.logo::after {
  content: "©"; position: absolute; left: calc(100% + 1.5cqw); top: 4%;
  font: 400 max(14px, 5.5cqw)/1 var(--sans);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--cream);
  transition: background-color .5s var(--ease), color .5s var(--ease), box-shadow .5s var(--ease);
}
.site-header.is-solid {
  background: rgba(248, 245, 236, .92);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  color: var(--brown);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(20px, 3vw, 40px); }
.nav a {
  font-size: .8rem; font-weight: 400; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; position: relative; padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  align-items: center; gap: 12px;
  background: none; border: 0; padding: 8px 0; color: inherit; cursor: pointer;
  font: 400 .78rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
}
.menu-toggle-icon { position: relative; width: 22px; height: 8px; }
.menu-toggle-icon::before, .menu-toggle-icon::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.menu-toggle-icon::before { top: 0; }
.menu-toggle-icon::after { top: 7px; }

@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; position: relative; z-index: 2; }
  .logo { position: relative; z-index: 2; width: 104px; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    background: var(--cream); color: var(--brown);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity .45s var(--ease), visibility 0s linear .45s;
  }
  .nav ul { flex-direction: column; align-items: center; gap: 18px; }
  .nav a {
    font-family: var(--display); font-size: 1.8rem; font-weight: 300;
    letter-spacing: 0; text-transform: none;
  }
  .menu-open .nav { opacity: 1; visibility: visible; transition: opacity .45s var(--ease); }
  /* backdrop-filter would trap the fixed overlay inside the header */
  .menu-open .site-header { color: var(--brown); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .menu-open .menu-toggle-icon::before { top: 4px; transform: rotate(45deg); }
  .menu-open .menu-toggle-icon::after { top: 4px; transform: rotate(-45deg); }
  .menu-open { overflow: hidden; }
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: 15px 28px;
  border: 1px solid currentColor; border-radius: 999px;
  font-size: .78rem; font-weight: 400; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.btn:hover { background: var(--brown); border-color: var(--brown); color: var(--cream); }
.btn--light { color: var(--cream); border-color: rgba(248, 245, 236, .7); }
.btn--light:hover { background: var(--cream); color: var(--brown); border-color: var(--cream); }

.link-light {
  color: rgba(248, 245, 236, .88); text-decoration: none;
  border-bottom: 1px solid rgba(248, 245, 236, .4); padding-bottom: 2px;
  transition: border-color .3s;
}
.link-light:hover { border-color: var(--cream); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--cream);
  overflow: hidden;
  background: #2b2a2a url("../img/hero-poster.jpg") center / cover no-repeat;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.hero-shade {
  pointer-events: none; /* clicks reach the video (e.g. Safari's own play overlay) */
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(28, 20, 15, .45) 0%, rgba(28, 20, 15, .08) 30%, rgba(28, 20, 15, .1) 55%, rgba(28, 20, 15, .62) 100%);
}
.hero-content {
  position: relative;
  padding-bottom: clamp(96px, 14vh, 150px);
  padding-top: 120px;
}
.hero h1 { margin: 0 0 1.4rem; }
.hero-title {
  display: block;
  font-size: clamp(2.5rem, 1.3rem + 5.2vw, 5.8rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -.035em;
}
.hero-title em { font-weight: 300; }
.hero-lead {
  max-width: 34em;
  font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem);
  color: rgba(248, 245, 236, .9);
  margin-bottom: 2.2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }

.hero .eyebrow, .hero-title, .hero-lead, .hero-actions {
  opacity: 0; transform: translateY(14px);
  animation: rise 1.4s var(--ease) forwards;
}
.hero-title { animation-delay: .15s; }
.hero-lead { animation-delay: .35s; }
.hero-actions { animation-delay: .55s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 1px; height: 54px; overflow: hidden;
}
.scroll-cue span {
  position: absolute; inset: 0; background: rgba(248, 245, 236, .75);
  transform-origin: top;
  animation: drift 3.2s var(--ease) infinite;
}
@keyframes drift {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Intro: logoet starter stort midt på videoen og glider op i headeren, når man scroller.
   Derefter toner menu og tekst frem, og siden scroller videre (kun med JS og bevægelse slået til). */
.intro .hero-track { height: calc(100vh + 100svh); }
.intro .hero { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; }
.intro .logo { flex-shrink: 0; }
.intro .nav ul, .intro .menu-toggle, .intro .hero-content { opacity: var(--reveal, 1); }
.intro .hero-content { transform: translateY(calc((1 - var(--reveal, 1)) * 24px)); }
.intro .hero .eyebrow, .intro .hero-title, .intro .hero-lead, .intro .hero-actions { animation: none; opacity: 1; transform: none; }
.intro.is-intro .nav ul, .intro.is-intro .menu-toggle, .intro.is-intro .hero-content { visibility: hidden; }
.intro .scroll-cue { opacity: calc(1 - var(--move, 0) * 3); }

/* Pause/afspil */
.video-toggle {
  position: absolute; right: var(--gutter); bottom: 28px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(248, 245, 236, .5); background: rgba(28, 20, 15, .15);
  color: var(--cream); cursor: pointer;
  display: grid; place-items: center;
  transition: background-color .3s, border-color .3s;
}
.video-toggle:hover { background: rgba(28, 20, 15, .35); border-color: var(--cream); }
.video-toggle[hidden] { display: none; }
.video-toggle span { width: 10px; height: 12px; position: relative; }
.video-toggle[data-state="playing"] span { border-left: 2px solid currentColor; border-right: 2px solid currentColor; width: 9px; }
.video-toggle[data-state="paused"] span {
  width: 0; height: 0; margin-left: 3px;
  border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section--tint { background: var(--sand); background: color-mix(in srgb, var(--sand) 55%, var(--cream)); }
.section--dark { background: var(--brown); color: var(--cream); }
.section--dark .lead { color: rgba(248, 245, 236, .78); }

.section-head { max-width: 760px; margin-bottom: clamp(48px, 7vw, 88px); }

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(48px, 7vw, 112px);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr .95fr; }
  .split--reverse .split-text { order: 2; }
  .split--reverse { grid-template-columns: .85fr 1.15fr; }
  .split--person { grid-template-columns: .85fr 1.15fr; align-items: start; }
  .split--video { grid-template-columns: 1.2fr .8fr; }
}
.split-text { max-width: 600px; }
.split-text p:not(.eyebrow):not(.role):not(.note) { color: var(--text-soft); }
figure { margin: 0; }

.pebble-frame {
  overflow: hidden;
  border-radius: var(--pebble-a);
  animation: breathe 22s ease-in-out infinite alternate;
  background: var(--sand);
}
.pebble-frame img { width: 100%; height: 100%; object-fit: cover; }
.pebble-frame--a { aspect-ratio: 1 / 1; }
.pebble-frame--b { aspect-ratio: 4 / 5; border-radius: var(--pebble-b); animation-name: breathe-b; max-width: 460px; margin-inline: auto; }
.pebble-frame--c { aspect-ratio: 4 / 5; border-radius: var(--pebble-c); animation-name: breathe-c; max-width: 440px; }
@keyframes breathe { to { border-radius: var(--pebble-b); } }
@keyframes breathe-b { to { border-radius: var(--pebble-c); } }
@keyframes breathe-c { to { border-radius: var(--pebble-a); } }

.pull {
  margin: 2.4rem 0 0; padding: 1.4rem 0 0;
  border-top: 1px solid var(--line);
  font-family: var(--display); font-style: italic; font-weight: 300;
  font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); line-height: 1.45;
}

/* Stats */
.stats {
  list-style: none; padding: 0; margin: clamp(64px, 9vw, 120px) 0 0;
  display: grid; grid-template-columns: 1fr; gap: 0;
  border-top: 1px solid var(--line);
}
.stats li { padding: 32px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) {
  .stats { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
  .stats li { padding: 40px 32px 40px 0; border-bottom: 0; }
  .stats li + li { padding-left: 32px; border-left: 1px solid var(--line); }
}
.stat-number {
  display: block;
  font-family: var(--display); font-weight: 300;
  font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); line-height: 1; letter-spacing: -.03em;
  margin-bottom: 14px;
}
.stat-text { display: block; color: var(--text-soft); max-width: 22em; }
.sources { margin-top: 18px; font-size: .78rem; color: var(--text-soft); opacity: .8; }

/* Values */
.values {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 0;
  counter-reset: v;
}
.values li {
  counter-increment: v;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.values li::before {
  content: "0" counter(v);
  display: block; margin-bottom: 22px;
  font-size: .75rem; letter-spacing: .2em; color: var(--text-soft);
}
.values p { color: var(--text-soft); margin: 0; }
@media (min-width: 700px) {
  .values { grid-template-columns: repeat(2, 1fr); column-gap: 56px; }
}
@media (min-width: 1100px) {
  .values { grid-template-columns: repeat(4, 1fr); column-gap: 40px; }
}

/* Image band */
.band {
  position: relative;
  height: clamp(380px, 62vw, 720px);
  overflow: hidden;
  display: grid; place-items: center;
}
.band img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 60%;
}
.band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(248, 245, 236, .35), rgba(248, 245, 236, 0) 45%);
}
.band-quote {
  position: relative; z-index: 1;
  align-self: start;
  margin: clamp(48px, 9vw, 120px) var(--gutter) 0;
  text-align: center;
  font-family: var(--display); font-style: italic; font-weight: 300;
  font-size: clamp(1.15rem, .95rem + 1vw, 1.8rem); line-height: 1.4;
  color: var(--brown);
}

/* Goals */
.goals { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.goals li {
  display: grid; grid-template-columns: clamp(36px, 6vw, 64px) 1fr; gap: 8px 24px;
  padding: 36px 0; border-top: 1px solid var(--line);
}
.goals li:last-child { border-bottom: 1px solid var(--line); }
.goals h3 { margin-top: -.15em; }
.goals p { color: var(--text-soft); margin: 0; max-width: 38em; }
.goal-no {
  font-family: var(--display); font-style: italic; font-weight: 300; font-size: 1.1rem; line-height: 1.4;
  color: var(--text-soft);
}
@media (min-width: 900px) {
  .goals { grid-template-columns: repeat(2, 1fr); column-gap: 72px; }
  .goals li:nth-last-child(2) { border-bottom: 1px solid var(--line); }
}

/* Workshop video */
.phone {
  position: relative;
  width: min(100%, 360px);
  margin-inline: auto;
  aspect-ratio: 9 / 16;
  border-radius: 32px;
  overflow: hidden;
  background: var(--stone);
  box-shadow: 0 30px 60px -30px rgba(61, 38, 24, .45);
}
.phone video { width: 100%; height: 100%; object-fit: cover; }
.video-toggle--inline { right: 16px; bottom: 16px; }
.note {
  margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line);
  font-size: .95rem; color: var(--text-soft);
}
.note a { text-underline-offset: 3px; }

/* Line */
.role {
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-soft);
  margin-top: -.6rem; margin-bottom: 2rem;
}
.quote { margin: 0 0 2.4rem; }
.quote p {
  font-family: var(--display); font-style: italic; font-weight: 300;
  font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem); line-height: 1.6;
  color: var(--text) !important;
}
.cv { list-style: none; margin: 0 0 2.6rem; padding: 0; }
.cv li {
  display: grid; grid-template-columns: 1fr; gap: 2px;
  padding: 14px 0; border-top: 1px solid var(--line);
  color: var(--text-soft); font-size: .96rem;
}
.cv li:last-child { border-bottom: 1px solid var(--line); }
.cv span {
  font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--text);
}
@media (min-width: 560px) {
  .cv li { grid-template-columns: 120px 1fr; gap: 20px; }
  .cv span { padding-top: 4px; }
}

/* Kontakt */
.contact { text-align: center; max-width: 820px; }
.contact .lead { margin: 0 auto 2.6rem; }
.contact h2 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.8rem); }
.contact-mail {
  display: inline-block;
  font-family: var(--display); font-weight: 300;
  font-size: clamp(1.3rem, 1rem + 1.8vw, 2.2rem); letter-spacing: -.02em;
  text-decoration: none;
  border-bottom: 1px solid rgba(248, 245, 236, .35); padding-bottom: 4px;
  transition: border-color .4s var(--ease);
  word-break: break-word;
}
.contact-mail:hover { border-color: var(--cream); }

/* ---------- Footer ---------- */
.site-footer {
  background: #2f1d12;
  color: rgba(248, 245, 236, .72);
  font-size: .92rem;
  padding: 72px 0 32px;
}
.site-footer a { text-decoration: none; transition: color .3s; }
.site-footer a:hover { color: var(--cream); }
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 36px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(248, 245, 236, .12);
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-brand p { margin-top: 16px; font-family: var(--display); font-style: italic; font-size: .95rem; }
.logo--footer { color: var(--cream); width: 120px; }
.footer-col { font-style: normal; line-height: 1.9; }
.footer-col strong { font-weight: 500; color: var(--cream); }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding-top: 24px; font-size: .78rem; letter-spacing: .04em;
}
.footer-base p { margin: 0; }

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.values li.reveal:nth-child(2), .goals li.reveal:nth-child(2) { transition-delay: .08s; }
.values li.reveal:nth-child(3), .goals li.reveal:nth-child(3) { transition-delay: .16s; }
.values li.reveal:nth-child(4), .goals li.reveal:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero .eyebrow, .hero-title, .hero-lead, .hero-actions { opacity: 1; transform: none; }
  .js .reveal { opacity: 1; transform: none; }
  .scroll-cue { display: none; }
}
