/* ---------- Tokens ---------- */
:root {
  --bg: #f4f1ea;
  --bg-2: #ebe6dc;
  --ink: #1a1a18;
  --ink-2: #4a4945;
  --ink-3: #8a877f;
  --line: rgba(26, 26, 24, 0.12);
  --accent: #2f4f3f;

  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;
  --nav-h: 80px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  /* keeps the full-bleed sections from adding a horizontal scrollbar */
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
p a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ink-3); }
p a:hover { text-decoration-color: var(--ink); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.02;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(50px, 7.2vw, 104px); }
h2 { font-size: clamp(38px, 4.6vw, 64px); }
h3 { font-size: 32px; margin-top: 20px; }
h2 sup { font-family: var(--sans); font-size: 0.35em; vertical-align: super; margin-left: 2px; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 18px;
  font-weight: 400;
}

.lede {
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--ink-2);
  max-width: 560px;
}

main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(72px, 10vw, 140px) 0; border-top: 1px solid var(--line); }
section:first-child { border-top: 0; }

/* Full-bleed tinted band: breaks out of the centred column, content stays aligned */
.band {
  border-top: 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  background: var(--bg-2);
}
.band + section { border-top: 0; }
/* matches the content width of the centred column in <main> */
.band-inner { max-width: calc(var(--max) - 2 * var(--gutter)); margin: 0 auto; }

.section-head { margin-bottom: clamp(40px, 5vw, 72px); max-width: 720px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 1px solid var(--ink);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px var(--gutter);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.3s ease, color 0.3s ease;
}
/* While the nav overlaps the hero photo it goes transparent with light type */
.nav.over-hero {
  background: linear-gradient(180deg, rgba(12, 12, 11, 0.42) 0%, rgba(12, 12, 11, 0) 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.nav.over-hero .brand-name { color: var(--bg); }
.nav.over-hero .brand-mark {
  background: var(--bg);
  box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 6px rgba(20, 20, 18, 0.9);
}
.nav.over-hero .nav-links a { color: rgba(244, 241, 234, 0.86); }
.nav.over-hero .nav-links a:hover { color: #fff; }
.nav.over-hero .brand-name,
.nav.over-hero .nav-links a { text-shadow: 0 1px 14px rgba(12, 12, 11, 0.65); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--ink);
  box-shadow: inset 0 0 0 4px var(--ink), inset 0 0 0 6px var(--bg);
}
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 25px; letter-spacing: 0.01em; }
.nav-links { display: flex; gap: 28px; font-size: 14px; white-space: nowrap; }
.nav-links a { color: var(--ink-2); transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 720px) { .nav-links { display: none; } }

/* ---------- Media ---------- */
.media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-2);
}
.media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.media-wide { aspect-ratio: 2 / 1; }
.media-wide img { object-position: center 30%; }
.media-screen {
  aspect-ratio: 3072 / 5504;
  border-radius: 10px;
  box-shadow: 0 24px 48px -24px rgba(26, 26, 24, 0.35);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  border-top: 0;
  margin-top: calc(-1 * var(--nav-h));
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: calc(var(--nav-h) + clamp(48px, 7vw, 88px)) var(--gutter) clamp(48px, 7vw, 88px);
  min-height: min(90vh, 820px);
  display: flex;
  align-items: center;
  background: var(--ink);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}
/* Darkens the image behind the copy without flattening the whole photo */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(16, 16, 15, 0.8) 0%, rgba(16, 16, 15, 0.55) 50%, rgba(16, 16, 15, 0.12) 100%),
    linear-gradient(180deg, rgba(16, 16, 15, 0.55) 0%, transparent 30%);
}
.hero-inner {
  width: 100%;
  max-width: calc(var(--max) - 2 * var(--gutter));
  margin: 0 auto;
}
.hero-copy { max-width: 620px; }
.hero .eyebrow { color: rgba(244, 241, 234, 0.72); }
.hero h1 { color: #fff; text-shadow: 0 2px 28px rgba(12, 12, 11, 0.5); }
.hero .lede { color: rgba(244, 241, 234, 0.88); text-shadow: 0 1px 16px rgba(12, 12, 11, 0.5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero .btn-primary { background: var(--bg); border-color: var(--bg); color: var(--ink); }
.hero .btn-primary:hover { background: #fff; border-color: #fff; color: var(--ink); }
.hero .btn-ghost { color: var(--bg); border-color: rgba(244, 241, 234, 0.55); }
.hero .btn-ghost:hover { background: var(--bg); border-color: var(--bg); color: var(--ink); }

@media (max-width: 860px) {
  .hero {
    min-height: min(88vh, 720px);
    align-items: flex-end;
  }
  .hero-bg { object-position: 62% center; }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(16, 16, 15, 0.55) 0%, rgba(16, 16, 15, 0.35) 35%, rgba(16, 16, 15, 0.88) 100%);
  }
}

/* ---------- Coaching cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(40px, 5vw, 72px);
}
.card h3 { margin-top: 0; padding-top: 20px; border-top: 1px solid var(--line); }
.card p { color: var(--ink-2); margin: 0; }
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .media-wide { aspect-ratio: 16 / 10; }
}

/* ---------- Product ---------- */
.product-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  margin-bottom: clamp(48px, 6vw, 96px);
}
.screens {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 32px);
  max-width: 1000px;
  margin: 0 auto;
  padding-bottom: clamp(20px, 4vw, 56px); /* room for the offset middle screen */
}
.screens .media:nth-child(2) { transform: translateY(clamp(20px, 4vw, 56px)); }
.feature-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 36px;
  border-top: 1px solid var(--line);
}
.feature-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 16px;
}
@media (max-width: 860px) {
  .product-head { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 600px) {
  .screens { grid-template-columns: 1fr 1fr; }
  .screens .media:nth-child(3) { display: none; }
}

/* ---------- Experience marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 34px 0;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; }
.logo {
  display: flex; align-items: center; justify-content: center;
  height: 40px;
  padding: 0 clamp(36px, 5vw, 72px);
  color: var(--ink-2);
  opacity: 0.85;
  white-space: nowrap;
}
.logo img { height: 28px; width: auto; filter: grayscale(1); opacity: 0.8; }
.logo:has(img) span { display: none; }
.logo span {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -0.005em;
}
.logo span .dot {
  display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: baseline;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-group[aria-hidden="true"] { display: none; }
}
.experience-note {
  margin: 28px 0 0;
  font-size: 14px;
  color: var(--ink-3);
  text-align: center;
}

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact .lede { margin: 0 auto 36px; }

/* ---------- Footer ---------- */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-2);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: var(--ink); }

.imprint {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-3);
}
.imprint-title {
  margin: 0 0 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px;
}
.imprint dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px 32px;
}
.imprint dt { font-weight: 400; color: var(--ink-3); }
.imprint dd { margin: 0; color: var(--ink-2); }

.copyright { margin: 32px 0 0; font-size: 12.5px; color: var(--ink-3); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
