/* ==========================================================================
   studio-tilia.de – main stylesheet
   Mobile-first. Breakpoints mirror the old Elementor site: 768px and 1025px.
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL OFL 1.1 – see assets/fonts/OFL-*.txt) ---------- */

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/playfair-display-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/playfair-display-500-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Playfair Display SC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/playfair-display-sc-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/montserrat-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/montserrat-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/montserrat-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/montserrat-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

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

@font-face {
  font-family: "Vidaloka";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/vidaloka-400-latin.woff2") format("woff2");
}

/* ---------- Design tokens ---------- */

:root {
  /* Colours from the original brand kit */
  --color-dark: #2b2d2f;
  --color-sage: #6b8065;
  --color-sage-deep: #3e4e3a; /* sage darkened for AA contrast on the gold card */
  --color-sage-dark: #5a6e54;  /* footer: sage darkened so white text reaches AA (5.5:1) */
  --color-gold: #e2c073;
  --color-ink: #1c241d;         /* darkest tone: image overlays */
  --color-gold-light: #ecd49c; /* button hover */
  --color-cream: #f6f4f0;
  --color-text: #484544;
  --color-light: #e7e7e7;
  --color-white: #fff;
  --color-placeholder-bg: #fff3b0;
  --color-error: #a12a1f;      /* form errors: 6.8:1 on cream, 7.5:1 on white */

  /* Typography */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-display-sc: "Playfair Display SC", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-accent: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --font-label: "Vidaloka", Georgia, serif;

  --text-body: 1rem;              /* 16px; old site went down to 14px, kept readable */
  --text-hero: 2.25rem;           /* 36px */
  --text-display: 2.25rem;        /* section headings: 36 → 65 → 90px */
  --text-quote: 2.25rem;          /* 36 → 65 → 80px */
  --text-card-title: 1.5rem;      /* 24px min so sage-on-cream counts as large text */
  --text-label: 1.5rem;           /* 24px min so cream-on-sage counts as large text */
  --text-caption: 1rem;           /* 16 → 18 → 22px */

  --tracking-wide: 0;
  --tracking-caption: 2px;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-s: 1rem;
  --space-m: 1.875rem;            /* 30px gaps from the original layout */
  --space-l: 3.125rem;            /* 50px */
  --space-xl: 5rem;               /* 80px */
  --gutter: 5vw;

  --radius-card: 33px;
  --border-media: 6px solid var(--color-sage);
  --content-max: 1680px;
  --prose-max: 70ch;

  --header-height: 4rem;
  --focus-ring: 3px solid var(--color-gold);
  --duration-slide: 2s;           /* Elementor "animated-slow" */
  --duration-header: 0.4s;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (min-width: 768px) {
  :root {
    --header-height: 5rem;
    --text-hero: 4.0625rem;
    --text-display: 4.0625rem;
    --text-quote: 4.0625rem;
    --text-caption: 1.125rem;
    --tracking-wide: 2px;
    --tracking-caption: 5px;
    --gutter: 8vw;
  }
}

@media (min-width: 1025px) {
  :root {
    --text-body: 1.125rem;
    --text-hero: 5rem;
    --text-display: 5.625rem;
    --text-quote: 5rem;
    --text-card-title: 2.125rem;
    --tracking-wide: 5px;
    --tracking-caption: 10px;
  }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-height); /* anchors are not hidden under the fixed header */
}

/* Column layout so the footer sits at the bottom of the screen on short pages. */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background-color: var(--color-dark);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.5;
}

main {
  flex: 1 0 auto;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p,
blockquote,
figure {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
}

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

[hidden] {
  display: none !important; /* the attribute also wins over component display rules (e.g. .form) */
}

.skip-link {
  position: absolute;
  top: var(--space-xs);
  left: var(--space-xs);
  z-index: 100;
  padding: var(--space-xs) var(--space-s);
  background: var(--color-white);
  color: var(--color-dark);
  font-weight: 700;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* ---------- Button ---------- */

.button {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem; /* 44px touch target */
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  background-color: var(--color-gold);
  color: var(--color-dark);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.button:hover {
  background-color: var(--color-gold-light);
}

.button:focus-visible {
  outline-color: var(--color-white);
}

@media (min-width: 768px) {
  .button {
    font-size: 1rem;
  }
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-s);
  height: var(--header-height);
  padding-inline: var(--gutter);
  background-color: var(--color-dark);
  box-shadow: 0 2px 12px rgb(0 0 0 / 0.3);
  color: var(--color-white);
  transition:
    opacity var(--duration-header) ease,
    transform var(--duration-header) ease;
}

.site-header__brand {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
}

/* Text stand-in until the logo image is supplied (see OWNER-REVIEW.md). */
.site-header__wordmark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.site-header__logo {
  width: auto;
  height: calc(var(--header-height) - 1.5rem);
}

@media (min-width: 768px) {
  .site-header__wordmark {
    font-size: 1.5rem;
    letter-spacing: 3px;
  }
}

/* Home page: hidden while the hero video is on screen. main.js adds .is-revealed once the
   hero has been scrolled past. Without JavaScript (no .js class) the header always shows,
   and keyboard focus inside it always reveals it. */
.js .site-header[data-autohide]:not(.is-revealed):not(:focus-within) {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

/* Main navigation: plain links on wide screens, a native <details> menu on phones. */
.site-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.site-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__links {
  display: none;
  gap: var(--space-m);
}

.site-nav__links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 0.9375rem;
  text-decoration: none;
}

.site-nav__links a::after {
  content: "";
  position: absolute;
  inset: auto 0 0.5rem;
  height: 2px;
  background-color: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.site-nav__links a:hover::after,
.site-nav__links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav__menu summary {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  list-style: none;
  cursor: pointer;
}

.site-nav__menu summary::-webkit-details-marker {
  display: none;
}

/* Three bars drawn from one element. */
.site-nav__menu summary span {
  width: 1.375rem;
  height: 2px;
  background-color: var(--color-white);
  box-shadow: 0 -7px 0 var(--color-white), 0 7px 0 var(--color-white);
}

.site-nav__menu ul {
  position: fixed;
  inset: var(--header-height) 0 auto;
  padding: var(--space-xs) var(--gutter) var(--space-s);
  background-color: var(--color-dark);
  box-shadow: 0 12px 16px rgb(0 0 0 / 0.3);
}

.site-nav__menu a {
  display: flex;
  align-items: center;
  min-height: 3rem;
  text-decoration: none;
}

.site-nav__menu a[aria-current="page"] {
  color: var(--color-gold);
}

@media (max-width: 439px) {
  .site-header {
    gap: var(--space-xs);
  }

  .site-header__wordmark {
    font-size: 1rem;
    letter-spacing: 0.5px;
  }

  .site-header .button {
    padding-inline: 0.75rem;
    font-size: 0.8125rem;
    letter-spacing: 0;
  }
}

@media (min-width: 900px) {
  .site-nav {
    margin-inline: auto var(--space-m);
  }

  .site-nav__links {
    display: flex;
  }

  .site-nav__menu {
    display: none;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s) var(--space-m);
  align-items: center;
  justify-content: space-between;
  padding: var(--space-l) var(--gutter);
  border-top: 4px solid var(--color-gold);
  background-color: var(--color-sage-dark);
  color: var(--color-white);
  font-size: 0.875rem;
}

.site-footer :focus-visible {
  outline-color: var(--color-white); /* gold is too faint on the green */
}

.site-footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-m);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__nav a {
  display: inline-block;
  padding-block: var(--space-xs); /* comfortable touch target */
}

.site-footer__nav a:hover {
  text-decoration-thickness: 2px;
}

/* ---------- Media with pause control ---------- */

.motion {
  position: relative;
}

.motion__toggle {
  position: absolute;
  right: var(--space-s);
  bottom: var(--space-s);
  z-index: 2;
  padding: 0.375rem 0.75rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: rgb(43 45 47 / 0.75);
  color: var(--color-white);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

/* Invisible for mouse and touch; still in the tab order and announced by screen readers,
   and shown as soon as it receives keyboard focus (WCAG 2.2.2 pause mechanism). */
.motion__toggle:not(:focus-visible) {
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  align-content: end;
  justify-items: start;
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--header-height) var(--gutter) clamp(2.5rem, 8vh, 5rem);
  overflow: hidden;
  isolation: isolate;
  background-color: var(--color-dark);
}

.hero__media,
.hero__media video {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Darkening layer so the light heading keeps AA contrast on bright frames. */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(28 36 29 / 0.85), rgb(28 36 29 / 0.3) 65%);
}

.hero__title {
  color: var(--color-light);
  font-family: var(--font-display);
  font-size: clamp(3.5rem, min(18vw, 30vh), 15rem);
  font-weight: 500;
  line-height: 0.95;
  text-transform: uppercase;
}

/* Each line rises out of a mask once on load (plain CSS: visible without JavaScript too). */
.hero__line {
  display: block;
  overflow: hidden;
}

.hero__line > span {
  display: inline-block;
  animation: hero-rise 1.2s var(--ease-out) both;
}

.hero__line + .hero__line > span {
  animation-delay: 0.15s;
}

@keyframes hero-rise {
  from { transform: translateY(105%); }
  to { transform: none; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Second line of the h1 – carries the search term. */
.hero__tagline {
  display: block;
  margin-top: var(--space-s);
  font-family: var(--font-accent);
  font-size: var(--text-caption);
  font-style: italic;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: var(--tracking-caption);
  text-transform: none;
  animation: fade-in 1s 0.7s both;
}

.hero__cue {
  display: none;
}

@media (min-width: 768px) {
  .hero__cue {
    position: absolute;
    right: var(--gutter);
    bottom: clamp(2.5rem, 8vh, 5rem);
    display: inline-flex;
    align-items: center;
    gap: var(--space-s);
    min-height: 2.75rem;
    color: var(--color-light);
    font-size: 0.9375rem;
    text-decoration: none;
    animation: fade-in 1s 1s both;
  }

  .hero__cue::after {
    content: "";
    width: 3.5rem;
    height: 1px;
    background-color: currentColor;
    transition: width 0.3s var(--ease-out);
  }

  .hero__cue:hover::after {
    width: 5rem;
  }
}

/* Slight zoom gives parallax images room to move inside their frame. */
[data-parallax] {
  transform: translateY(var(--parallax, 0)) scale(1.14);
  will-change: transform;
}

/* ---------- Quote band ---------- */

.quote-band {
  position: relative;
  padding: clamp(6rem, 20vh, 13rem) var(--gutter);
  overflow: hidden;
  isolation: isolate;
  background-color: var(--color-sage-deep);
}

.quote-band__media,
.about__media,
.cta__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.quote-band__media img,
.about__media img,
.cta__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: rgb(38 50 36 / 0.87);
}

.quote-band__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  max-width: 62rem;
  margin-inline: auto;
  text-align: center;
}

.quote-band__quote {
  color: var(--color-gold);
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 5rem);
  line-height: 1.1;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

/* Words light up with scrolling (added by main.js). */
.quote-band__word {
  opacity: 0.3;
  transition: opacity 0.35s ease;
}

.quote-band__word.is-lit {
  opacity: 1;
}

.quote-band__source {
  color: var(--color-cream);
  font-family: var(--font-accent);
  font-size: var(--text-caption);
  font-style: italic;
  line-height: 1.2;
  letter-spacing: var(--tracking-caption);
}

/* ---------- Scroll-linked word bands (decorative) ---------- */

.marquee {
  padding-block: clamp(2rem, 5vw, 4.5rem) 0;
  overflow: hidden;
  background-color: var(--color-cream);
}

.marquee__line {
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 1.15;
  white-space: nowrap;
  text-transform: uppercase;
  transform: translateX(calc(-18% + var(--shift, 0%)));
  -webkit-text-stroke: 1px var(--color-sage);
  will-change: transform;
}

.marquee__line--filled {
  color: var(--color-sage-deep);
  -webkit-text-stroke: 0;
}

/* ---------- Services ---------- */

.services {
  display: grid;
  gap: clamp(4rem, 9vw, 8rem);
  padding: clamp(3rem, 7vw, 6rem) var(--gutter) clamp(4rem, 9vw, 8rem);
  background-color: var(--color-cream);
}

.services__title {
  color: var(--color-sage-deep);
  font-family: var(--font-accent);
  font-size: var(--text-caption);
  font-style: italic;
  font-weight: 400;
  letter-spacing: var(--tracking-caption);
}

.service {
  display: grid;
  gap: var(--space-m);
  align-items: center;
}

.service__media {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius-card);
}

.service__media picture {
  display: block;
  height: 100%;
}

.service__media img,
.service__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service__media--square {
  max-width: 34rem;
  aspect-ratio: 1;
  justify-self: center;
  background-color: var(--color-white);
}

.service__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-s);
}

.service__number {
  color: var(--color-sage);
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1;
}

.service__title {
  color: var(--color-sage-deep);
  font-family: var(--font-display-sc);
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  hyphens: auto;
}

@media (min-width: 1025px) {
  .service {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(3rem, 6vw, 6rem);
  }

  .service:nth-of-type(even) {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .service:nth-of-type(even) .service__media {
    order: 2;
  }
}

/* ---------- Text link (inside light sections) ---------- */

.text-link {
  color: var(--color-sage-deep);
  font-weight: 700;
  text-underline-offset: 0.2em;
}

.text-link::after {
  content: " →" / ""; /* decorative: empty alt text for screen readers */
}

.text-link:hover {
  text-decoration-thickness: 2px;
}

/* ---------- Framed photo ---------- */

.flyer__photo,
.flyer-teaser__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-card);
}

.flyer__photo picture,
.flyer-teaser__media picture {
  display: block;
  height: 100%;
}

.flyer__photo img,
.flyer-teaser__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Flyer distribution (page /flyerverteilung/ and home teaser) ---------- */

/* Pages without a hero start below the fixed header. */
.page-offset {
  padding-top: var(--header-height);
}

.flyer-teaser {
  display: grid;
  gap: var(--space-l);
  align-items: center;
  padding: clamp(4rem, 9vw, 8rem) var(--gutter);
  background-color: var(--color-sage-deep);
  color: var(--color-cream);
}

.flyer-teaser__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-m);
}

.flyer-teaser .flyer__title {
  font-size: clamp(2rem, 3.7vw, 4rem);
  hyphens: auto;
}

@media (min-width: 1025px) {
  .flyer-teaser {
    grid-template-columns: 7fr 5fr;
    gap: var(--space-xl);
  }
}

.flyer {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  padding: 20vw 5vw;
  background-color: var(--color-sage-deep);
  color: var(--color-cream);
}

.flyer :focus-visible {
  outline-color: var(--color-white);
}

.flyer__intro,
.flyer__split {
  display: grid;
  gap: var(--space-l);
  align-items: center;
}

.flyer__intro-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-m);
}

.flyer__eyebrow {
  color: var(--color-gold);
  font-family: var(--font-accent);
  font-size: var(--text-caption);
  font-style: italic;
  letter-spacing: var(--tracking-caption);
}

.flyer__title {
  color: var(--color-gold);
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.flyer__lead {
  max-width: 40rem;
  font-size: 1.125rem;
}

.flyer__heading {
  margin-bottom: var(--space-m);
  color: var(--color-gold);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.2;
}

.flyer h3 {
  margin: 0 0 var(--space-xs);
  font-size: 1.125rem;
  font-weight: 700;
}

.flyer p {
  margin: 0;
}

.flyer__split p + p,
.flyer__split p + ul {
  margin-top: var(--space-s);
}

/* Distribution types */
.flyer__cards {
  display: grid;
  gap: var(--space-m);
}

.flyer-card {
  padding: var(--space-m);
  border-radius: var(--radius-card);
  background-color: var(--color-cream);
  color: var(--color-text);
}

.flyer-card__title {
  color: var(--color-dark);
}

/* Design → print → distribution */
.flyer__chain {
  display: grid;
  gap: var(--space-s);
  margin: 0 0 var(--space-m);
}

.flyer__chain > div {
  padding-left: var(--space-s);
  border-left: 3px solid var(--color-gold);
}

.flyer__chain dt {
  font-weight: 700;
}

.flyer__chain dd {
  margin: 0;
}

/* Process steps with large numbers */
.flyer__steps {
  display: grid;
  gap: var(--space-l);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.flyer__steps li {
  counter-increment: step;
}

.flyer__steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: var(--space-xs);
  color: var(--color-gold);
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
}

/* Trust points */
.flyer__trust {
  display: grid;
  gap: var(--space-m);
  margin: 0;
  padding: 0;
  list-style: none;
}

.flyer__trust li {
  padding-top: var(--space-s);
  border-top: 3px solid var(--color-gold);
}

/* Price factors */
.flyer__factors {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin: 0;
  padding: 0;
  list-style: none;
}

.flyer__factors li {
  padding: 0.375rem 0.875rem;
  border: 1px solid rgb(246 244 240 / 0.6);
  border-radius: 999px;
  font-size: 0.875rem;
}

/* FAQ (native details/summary – works without JavaScript) */
.flyer__faq details {
  border-bottom: 1px solid rgb(246 244 240 / 0.4);
}

.flyer__faq summary {
  padding: var(--space-s) 0;
  font-weight: 700;
  cursor: pointer;
}

.flyer__faq details p {
  padding-bottom: var(--space-s);
}

.flyer__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-m);
  padding: var(--space-l) var(--space-m);
  border-radius: var(--radius-card);
  background-color: rgb(0 0 0 / 0.15);
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .flyer {
    padding: 8vw;
  }

  .flyer__cards,
  .flyer__steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .flyer__trust {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1025px) {
  .flyer {
    padding: 6vw 8vw;
  }

  .flyer__intro {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .flyer__intro .flyer__title {
    font-size: clamp(2.25rem, 4.1vw, 4.25rem);
  }

  .flyer__split {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
  }

  .flyer__steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.flyer__title--long {
  font-size: clamp(2.25rem, 5vw, 4.75rem);
  hyphens: auto;
}

.flyer__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-s) var(--space-m);
}

.flyer__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-underline-offset: 0.2em;
}

/* Light band that breaks up the long green pages. */
.flyer__block--light {
  margin-inline: calc(var(--gutter) * -1);
  padding: clamp(3rem, 6vw, 5rem) var(--gutter);
  background-color: var(--color-cream);
  color: var(--color-text);
}

.flyer__block--light .flyer__heading,
.flyer__block--light h3,
.flyer__block--light .flyer__steps li::before {
  color: var(--color-sage-deep);
}

.flyer__note {
  max-width: 44rem;
  margin-bottom: var(--space-m) !important;
}

@media (min-width: 1025px) {
  .flyer__cards--three {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Video & social media ---------- */

.feature {
  display: grid;
  gap: var(--space-l);
  align-items: center;
  padding: clamp(4rem, 9vw, 8rem) var(--gutter);
  background-color: var(--color-dark);
}

.feature__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
}

.feature .service__number {
  color: var(--color-gold);
}

.feature__title {
  color: var(--color-gold);
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  hyphens: auto;
}

.feature__text {
  max-width: 40rem;
  color: var(--color-cream);
}

.feature__media {
  justify-self: center;
  width: min(100%, 24rem);
  overflow: hidden;
  border-radius: var(--radius-card);
}

.feature__media video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

@media (min-width: 1025px) {
  .feature {
    grid-template-columns: 3fr 2fr;
    gap: var(--space-xl);
  }
}

/* ---------- Pillars ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-l) var(--space-s);
  margin: 0;
  padding: 20vw 5vw;
  list-style: none;
  background-color: var(--color-sage);
}

.pillars__item {
  align-self: center;
  color: var(--color-cream);
  font-family: var(--font-label);
  font-size: var(--text-label);
  line-height: 1.1;
  letter-spacing: 0.5px;
  text-align: center;
}

@media (min-width: 768px) {
  .pillars {
    grid-template-columns: repeat(4, 1fr);
    padding: 3vw 2vw;
  }

  .pillars__item {
    letter-spacing: 2px;
  }
}

@media (min-width: 1025px) {
  .pillars__item {
    letter-spacing: 5px;
  }
}

/* ---------- Example websites ---------- */

.showcase {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-m);
  padding: clamp(4rem, 9vw, 8rem) var(--gutter);
  overflow: hidden;
  background-color: var(--color-cream);
}

.showcase .flyer__eyebrow {
  color: var(--color-sage-deep);
}

.showcase__head {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}

.showcase__title {
  color: var(--color-sage-deep);
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  hyphens: auto;
}

.showcase__note {
  max-width: 40rem;
}

.showcase__strip {
  display: flex;
  gap: var(--space-m);
  align-self: stretch;
  margin: 0 calc(var(--gutter) * -1);
  padding: var(--space-s) var(--gutter) var(--space-m);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  list-style: none;
  scrollbar-color: var(--color-sage) transparent;
}

.showcase__strip > .demo-card {
  flex: 0 0 min(82vw, 30rem);
  scroll-snap-align: start;
}

.demo-grid {
  display: grid;
  gap: var(--space-m);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .demo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .demo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.demo-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
  background-color: var(--color-white);
  box-shadow: 0 10px 28px rgb(28 36 29 / 0.16);
  color: var(--color-text);
  text-decoration: none;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.demo-card__link:hover {
  box-shadow: 0 18px 38px rgb(28 36 29 / 0.26);
  transform: translateY(-6px);
}

/* Small browser window bar above each screenshot. */
.demo-card__frame {
  display: flex;
  gap: 6px;
  padding: 0.625rem 0.875rem;
  background-color: var(--color-dark);
}

.demo-card__frame span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--color-sage);
}

.demo-card__frame span:nth-child(2) {
  background-color: var(--color-gold);
}

.demo-card__frame span:nth-child(3) {
  background-color: var(--color-cream);
}

.demo-card__media {
  display: block;
  overflow: hidden;
}

.demo-card__media img {
  width: 100%;
  transition: transform 0.6s var(--ease-out);
}

.demo-card__link:hover .demo-card__media img {
  transform: scale(1.04);
}

.demo-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-s) 1.25rem 1.25rem;
}

.demo-card__label {
  color: var(--color-sage-deep);
  font-size: 0.8125rem;
  font-weight: 700;
}

.demo-card__title {
  color: var(--color-dark);
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.15;
}

.demo-card__text {
  font-size: 0.9375rem;
}

/* ---------- About ---------- */

.about {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 90vh;
  min-height: 90svh;
  padding: clamp(5rem, 10vw, 9rem) var(--gutter);
  overflow: hidden;
  isolation: isolate;
  background-color: var(--color-dark);
}

.about::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: rgb(28 36 29 / 0.82);
}

.about__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  max-width: 46rem;
}

.about__title {
  color: var(--color-gold);
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  hyphens: auto;
}

.about__text {
  color: var(--color-cream);
}

@media (min-width: 1025px) {
  .about::before {
    background: linear-gradient(to right, rgb(28 36 29 / 0.92) 45%, rgb(28 36 29 / 0.25));
  }
}

/* ---------- Closing call to action ---------- */

.cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-m);
  padding: clamp(5rem, 12vw, 10rem) var(--gutter);
  overflow: hidden;
  isolation: isolate;
  background-color: var(--color-sage-deep);
  text-align: center;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: rgb(38 50 36 / 0.8);
}

.cta__title {
  max-width: 18em;
  color: var(--color-cream);
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 4.75rem);
  font-weight: 400;
  line-height: 1.1;
}

/* ---------- Leaf vein along the home page (decorative, drawn with scrolling) ---------- */

.home {
  position: relative;
}

.ader {
  display: none;
}

@media (min-width: 1200px) {
  .ader {
    position: absolute;
    top: 100vh;
    top: 100svh;
    left: calc(var(--gutter) / 2 - 20px);
    z-index: 5;
    display: block;
    width: 40px;
    height: calc(100% - 100vh);
    height: calc(100% - 100svh);
    fill: none;
    stroke: var(--color-gold);
    stroke-width: 2;
    pointer-events: none;
  }
}

/* ---------- Entrance animations ----------
   main.js adds .is-pending only to elements still below the viewport and removes it
   when they scroll into view, so content is never hidden without JavaScript. */

[data-animate] {
  transition:
    opacity var(--duration-slide) ease,
    transform var(--duration-slide) ease;
}

[data-animate="from-below"] {
  transition-duration: 1s;
}

.pillars__item:nth-child(2) { transition-delay: 100ms; }
.pillars__item:nth-child(3) { transition-delay: 200ms; }
.pillars__item:nth-child(4) { transition-delay: 300ms; }

[data-animate].is-pending {
  opacity: 0;
}

[data-animate="from-right"].is-pending {
  transform: translateX(100px);
}

[data-animate="from-left"].is-pending {
  transform: translateX(-100px);
}

[data-animate="from-below"].is-pending {
  transform: translateY(100px);
}

/* Media uncovers from top to bottom. The clip sits on the child: a fully clipped element
   itself would never count as visible for the IntersectionObserver in main.js. */
[data-animate="reveal"] {
  transition: opacity 0.2s linear;
}

[data-animate="reveal"] > * {
  transition: clip-path 1.2s var(--ease-out);
}

[data-animate="reveal"].is-pending > * {
  clip-path: inset(0 0 100% 0);
}

.services,
.pillars {
  overflow-x: clip; /* slide-ins must not create horizontal scrolling */
}

/* ---------- Legal / text pages ---------- */

.page {
  padding: calc(var(--header-height) + var(--space-l)) var(--gutter) var(--space-xl);
  background-color: var(--color-cream);
}

.prose {
  max-width: var(--prose-max);
  margin-inline: auto;
  overflow-wrap: break-word;
  hyphens: auto;
}

.prose h1 {
  margin-bottom: var(--space-m);
  color: var(--color-dark);
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
}

.prose h2 {
  margin: var(--space-l) 0 var(--space-s);
  color: var(--color-dark);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.2;
}

.prose h3 {
  margin: var(--space-m) 0 var(--space-xs);
  color: var(--color-dark);
  font-size: 1.125rem;
  font-weight: 700;
}

.prose p,
.prose ul {
  margin: 0 0 var(--space-s);
}

.prose a {
  color: var(--color-sage-deep);
  overflow-wrap: anywhere;
}

.placeholder {
  padding: 0 0.2em;
  background-color: var(--color-placeholder-bg);
  color: var(--color-dark);
}

.page--error .prose {
  text-align: center;
}

/* ---------- Contact form ---------- */

.form {
  display: grid;
  gap: var(--space-s);
  margin-top: var(--space-s);
}

.form__field {
  display: grid;
  gap: 0.25rem;
}

.form label {
  color: var(--color-dark);
  font-weight: 700;
}

.form input,
.form textarea {
  width: 100%;
  min-height: 2.75rem; /* 44px touch target */
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--color-text);
  border-radius: 6px;
  background-color: var(--color-white);
  color: var(--color-dark);
  font: inherit;
  font-size: max(1rem, 16px); /* below 16px, iOS zooms into the field */
}

.form textarea {
  resize: vertical;
}

.form input:focus-visible,
.form textarea:focus-visible {
  outline-offset: 0;
  border-color: var(--color-dark);
}

.form [aria-invalid="true"] {
  border: 2px solid var(--color-error);
}

.form p {
  margin: 0; /* spacing comes from the grid gap */
}

.form__hint,
.form__privacy {
  font-size: 0.875rem;
}

.form__error,
.form__status--error {
  color: var(--color-error);
  font-weight: 700;
}

.form__status:empty {
  display: none;
}

.form__submit {
  justify-self: start;
  border: 0;
  cursor: pointer;
}

.form__submit:focus-visible {
  outline-color: var(--color-dark);
}

.form[aria-busy="true"] .form__submit {
  cursor: progress;
  opacity: 0.8;
}

/* Spam trap: moved off screen rather than display:none, which many bots recognise. */
.form__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-success {
  margin-top: var(--space-s);
  padding: var(--space-s) var(--space-m);
  border-left: 6px solid var(--color-sage);
  background-color: var(--color-white);
}

.form-success:focus {
  outline: none; /* focused by script only, to announce the message */
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  [data-animate].is-pending {
    opacity: 1;
    transform: none;
  }

  [data-animate="reveal"].is-pending > * {
    clip-path: none;
  }

  [data-parallax] {
    transform: none;
  }

  .marquee__line {
    transform: translateX(-4%);
  }

  .demo-card__link:hover,
  .demo-card__link:hover .demo-card__media img {
    transform: none;
  }
}
