@font-face {
  font-family: "Jost";
  src: url("assets/fonts/jost.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* Ludwig – Bauhaus theme. Palette from illustration/themes/bauhaus/theme.json. */
:root {
  --cobalt: #1557B0;
  --vermilion: #F04A2D;
  --mustard: #F3BE34;
  --navy: #171B23;
  --ivory: #F5EBD7;
  --gray: #D9D0BF;
  --paper: #F3E9D4;
  --max: 1200px;
  --font: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--navy);
  font: 400 18px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
h1, h2, h3 { font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 4.4vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: inherit; }

/* Navigation */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 48px);
  transition: background 0.3s, box-shadow 0.3s;
}
/* Transparent over the hero, solid once the page has scrolled. */
.nav.solid {
  background: color-mix(in srgb, var(--ivory) 92%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 0 var(--navy);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.3rem; text-decoration: none; }
.brand-mark {
  display: inline-block; width: 22px; height: 14px; vertical-align: -1px;
  background: var(--mustard); border-radius: 22px 22px 0 0; box-shadow: 0 4px 0 -1px var(--navy);
}
.nav nav { display: flex; gap: clamp(12px, 2.4vw, 32px); font-weight: 500; }
.nav nav a { text-decoration: none; }
.nav nav a:hover { color: var(--vermilion); }

/* Hero */
/* The hero keeps the illustration's own 16:9 frame, so the empty right third
   of the picture is always where the copy sits. */
.hero {
  position: relative;
  aspect-ratio: 1672 / 941;
  max-height: 100vh;
  overflow: hidden;
  background: var(--paper);
}
.hero-stage {
  position: absolute; inset: 0;
  perspective: 1200px;
}
.layer {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: left top;
  will-change: transform;
}
/* Overscan so the moving background never shows an edge. */
.layer-back { transform: scale(1.08); transform-origin: 30% 60%; }
/* A soft, short shadow; a hard offset one reads as a misprinted second copy. */
.layer-front { filter: drop-shadow(4px 6px 6px rgba(23, 27, 35, 0.12)); }
.hero-copy {
  position: absolute; z-index: 2;
  left: 62%; right: 4%; top: 50%;
  transform: translateY(-46%);
}
.hero-copy h1 { font-size: clamp(1.9rem, 3vw, 3.6rem); }
.hero-copy .lead { font-size: clamp(1rem, 1.15vw, 1.2rem); }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; font-weight: 500;
  color: var(--cobalt);
}
.lead { font-size: 1.15rem; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  display: inline-block; padding: 12px 22px; border: 2px solid var(--navy);
  text-decoration: none; font-weight: 500; border-radius: 999px;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--navy); color: var(--ivory); }
.button.primary:hover { background: var(--cobalt); border-color: var(--cobalt); }
.scroll-hint {
  position: absolute; left: 50%; bottom: 24px; z-index: 2;
  width: 22px; height: 36px; margin-left: -11px; border: 2px solid var(--navy); border-radius: 12px;
}
.scroll-hint::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px;
  background: var(--vermilion); border-radius: 2px; animation: hint 1.8s infinite;
}
@keyframes hint { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* Section titles with a Bauhaus mark */
.section-title { display: flex; align-items: center; gap: 16px; }
.shape { display: inline-block; flex: none; }
.shape.circle { width: 28px; height: 28px; border-radius: 50%; background: var(--cobalt); }
.shape.circle.red { background: var(--vermilion); }
.shape.square { width: 30px; height: 30px; background: var(--cobalt); }
.shape.triangle { width: 0; height: 0; border-left: 17px solid transparent; border-right: 17px solid transparent; border-bottom: 30px solid var(--vermilion); }
.shape.half { width: 34px; height: 17px; border-radius: 34px 34px 0 0; background: var(--mustard); margin-top: 13px; }

/* Services */
.services, .steps { max-width: var(--max); margin: 0 auto; padding: 120px clamp(16px, 4vw, 48px) 60px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; margin-top: 40px; }
.card { background: #fff8ea; border: 2px solid var(--navy); padding: 24px; position: relative; }
.card:nth-child(odd) { transform: translateY(18px); }
.spot { height: 150px; margin: -24px -24px 20px; border-bottom: 2px solid var(--navy); background: var(--gray) center / contain no-repeat; position: relative; overflow: hidden; }
.spot.has-image { background-color: var(--ivory); }
/* Geometric stand-ins until the spot illustrations exist (see illustration prompts). */
.spot:not(.has-image)::before, .spot:not(.has-image)::after { content: ""; position: absolute; }
.spot-mail:not(.has-image)::before { left: 28%; top: 28%; width: 44%; height: 46%; background: var(--ivory); border: 2px solid var(--navy); }
.spot-mail:not(.has-image)::after { left: 28%; top: 28%; width: 0; height: 0; border-left: 22% solid transparent; border-right: 22% solid transparent; border-left-width: calc(22% + 1px); border-top: 34px solid var(--vermilion); }
.spot-calendar:not(.has-image)::before { left: 32%; top: 24%; width: 36%; height: 56%; background: var(--ivory); border: 2px solid var(--navy); border-top: 18px solid var(--vermilion); }
.spot-calendar:not(.has-image)::after { left: 54%; top: 56%; width: 10%; height: 14%; background: var(--cobalt); }
.spot-photos:not(.has-image)::before { left: 24%; top: 22%; width: 52%; height: 58%; background: var(--cobalt); border: 2px solid var(--navy); }
.spot-photos:not(.has-image)::after { left: 40%; top: 32%; width: 20%; aspect-ratio: 1; border-radius: 50%; background: var(--mustard); }
.spot-todos:not(.has-image)::before { left: 30%; top: 26%; width: 40%; height: 52%; background: repeating-linear-gradient(var(--ivory) 0 18px, var(--navy) 18px 20px); border: 2px solid var(--navy); }
.spot-todos:not(.has-image)::after { left: 24%; top: 30%; width: 12%; aspect-ratio: 1; border-radius: 50%; background: var(--vermilion); }

/* A band the butler walks through while scrolling */
.walk { height: 320px; position: relative; overflow: hidden; }
.walk-track { position: absolute; inset: 0; }
.walk-line { position: absolute; left: 0; right: 0; bottom: 38px; height: 2px; background: var(--navy); }
.walk-line::before { content: ""; position: absolute; right: 12%; bottom: 0; width: 120px; height: 60px; background: var(--mustard); border-radius: 120px 120px 0 0; }
.walker { position: absolute; bottom: 30px; left: 0; height: 290px; width: auto; will-change: transform; }

/* Feature rows with poses */
.feature {
  max-width: var(--max); margin: 0 auto; padding: 80px clamp(16px, 4vw, 48px);
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 6vw, 80px); align-items: center;
}
.feature.reverse { grid-template-columns: 7fr 5fr; }
.feature.reverse .feature-figure { order: 2; }
.feature-figure { position: relative; min-height: 460px; display: grid; place-items: end center; will-change: transform; }
.feature-figure img { position: relative; height: 480px; width: auto; }
.backdrop { position: absolute; bottom: 0; width: 82%; aspect-ratio: 1; border-radius: 50% 50% 0 0; }
.backdrop-blue { background: var(--cobalt); }
.backdrop-mustard { background: var(--mustard); }
.ticks { list-style: none; padding: 0; margin: 1.4em 0 0; }
.ticks li { padding-left: 34px; position: relative; margin-bottom: 0.6em; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 16px; height: 16px; background: var(--vermilion); border-radius: 50%; }
.small { font-size: 0.95rem; opacity: 0.75; }

/* Privacy */
.privacy { background: var(--navy); color: var(--ivory); padding: 110px clamp(16px, 4vw, 48px); position: relative; overflow: hidden; }
.privacy::before { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: var(--cobalt); opacity: 0.55; }
.privacy-inner { max-width: var(--max); margin: 0 auto; position: relative; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 36px; margin-top: 40px; }
.fact h3 { margin-top: 18px; }
.fact p { opacity: 0.85; }

/* Steps */
.step-list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.step-list li { border-top: 2px solid var(--navy); padding-top: 18px; }
.step-no { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--mustard); font-weight: 700; margin-bottom: 14px; }
/* Ivory gloves vanish against the ivory page, so every pose stands before a colored arch. */
.finale { position: relative; display: grid; place-items: end center; margin-top: 40px; min-height: 400px; }
.finale .backdrop { width: min(420px, 80%); }
.finale img { position: relative; height: 400px; width: auto; }
.backdrop-red { background: var(--vermilion); }

.footer { border-top: 2px solid var(--navy); padding: 28px clamp(16px, 4vw, 48px); font-size: 0.95rem; }
.footer .brand-mark { margin-right: 10px; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer p { margin: 0; }
.footer-links a { color: inherit; }

/* Reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-reveal].visible { opacity: 1; transform: none; }
.card[data-reveal].visible:nth-child(odd) { transform: translateY(18px); }

/* Phones: picture first, copy below */
@media (max-width: 820px) {
  .nav nav { display: none; }
  .hero { aspect-ratio: auto; max-height: none; padding-top: 64px; }
  .hero-stage { position: relative; aspect-ratio: 1672 / 941; }
  .hero-copy { position: static; transform: none; padding: 28px 16px 64px; }
  .scroll-hint { display: none; }
  .layer-front { filter: none; }
  .feature, .feature.reverse { grid-template-columns: 1fr; }
  .feature.reverse .feature-figure { order: 0; }
  .feature-figure { min-height: 360px; }
  .feature-figure img { height: 380px; }
  .card:nth-child(odd), .card[data-reveal].visible:nth-child(odd) { transform: none; }
}

/* Respect "Reduce motion": everything static. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .scroll-hint::after { animation: none; }
}
