/* Palette from the logo. The page is the paper a training manager reads at a desk;
   the deep green is the inside of the headset (the video lens, the offer).
   Orange means one thing: book 15 minutes. Text colours pass WCAG AA on their surface. */
:root {
  --green-900: #17271f;
  --green-700: #2c4a40;
  --green-500: #2f6b52;
  --cream: #f7f1ec;
  --band: #eee5da;
  --card: #fffcf9;
  --line: #e6dccf;
  --sand: #e9d2b3;
  --ink: #17271f;
  --ink-muted: #56645b;
  --orange: #b4582c;
  --orange-hover: #9e4c24;

  --font: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(1rem, 4vw, 3rem);
  --section: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --lift: 0 1px 2px rgba(23, 39, 31, 0.05), 0 14px 32px -18px rgba(23, 39, 31, 0.22);
}

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

html {
  color-scheme: light;
  background: var(--cream);
  scroll-behavior: smooth;
  scrollbar-color: #c9bcad var(--cream);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font: 400 1.0625rem/1.5 var(--font);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  accent-color: var(--green-700);
}

::selection { background: var(--green-700); color: var(--cream); }

h1, h2 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.06;
  text-wrap: balance;
}
h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); }

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--green-700);
  outline-offset: 3px;
  border-radius: 6px;
}

.icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap {
  width: 100%;
  max-width: 86rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---- buttons ---- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.005em;
  box-shadow: 0 8px 20px -10px rgba(180, 88, 44, 0.7);
  transition: background 160ms, transform 160ms var(--ease);
}
.button:hover { background: var(--orange-hover); }
.button:active { transform: translateY(1px); }

/* ---- top ---- */
.top { padding-block: 1rem 0.75rem; }
.mark { display: inline-block; }
.mark img { display: block; height: 48px; width: auto; }

/* ---- hero ---- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: start;
  padding-block: clamp(0.5rem, 1.5vw, 1.5rem) clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
}
.hero h1 {
  max-width: 15ch;
  font-size: clamp(2.25rem, 1rem + 2.5vw, 3.6rem);
}
.hero h1 em { font-style: normal; color: var(--green-500); }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2.25rem;
}
.mail {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  color: var(--green-700);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.25em;
  transition: text-decoration-color 160ms;
}
.mail:hover { text-decoration-color: currentColor; }

.soon {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  max-width: 34rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
}

.portrait {
  flex: none;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  background: var(--green-700);
}
.initials {
  display: grid;
  place-items: center;
  color: var(--cream);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.03em;
}
.me .initials { font-size: 1.375rem; }
/* the studio's initial beside the studio line */
.soon .initials { width: 2.75rem; height: 2.75rem; font-size: 1.125rem; letter-spacing: 0; }

/* the footage, as seen through the headset */
.headset { margin: 0; min-width: 0; }
.lens {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: var(--green-700);
  aspect-ratio: 16 / 10;
  box-shadow: 0 30px 60px -28px rgba(23, 39, 31, 0.55);
}
.lens::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 70px 6px rgba(23, 39, 31, 0.5);
  pointer-events: none;
}
.film { display: block; width: 100%; height: 100%; object-fit: cover; }

/* desktop: on a short screen the footage shrinks, so the numbers stay on the first screen.
   26rem is everything else on that screen: logo, caption, steps, and the numbers band. */
@media (min-width: 1081px) {
  .lens { width: min(100%, calc(max(18rem, 100svh - 26rem) * 1.6)); }
}

/* one authored moment on load: words, then the lens */
.hero h1, .actions, .soon, .lens { animation: rise 800ms var(--ease) both; }
.actions { animation-delay: 80ms; }
.soon { animation-delay: 160ms; }
.lens { animation-delay: 120ms; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---- the caption under the footage: what it is, the six steps ---- */
.steps { margin-top: 1.1rem; }
.what-it-is { color: var(--ink-muted); font-size: 0.9375rem; max-width: 70ch; }
.what-it-is strong { color: var(--ink); font-weight: 500; }
.steps ol {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 0.55rem 1.75rem;
  margin-top: 0.85rem;
  font-size: 0.9375rem;
}
.steps li { display: inline-flex; align-items: center; gap: 0.5rem; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: var(--green-700);
  color: var(--cream);
  font-size: 0.75rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* ---- the numbers ---- */
.numbers { background: var(--band); padding: clamp(1.25rem, 1rem + 1vw, 2rem) var(--gutter); }
.numbers > .wrap, .offer > .wrap { padding-inline: 0; }
.pair {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 1.5vw, 1.25rem);
}
.card {
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--lift);
  padding: 2rem;
}
.stat-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "src src" "stat what";
  align-items: center;
  gap: 0.25rem 1.25rem;
  padding: 1.25rem 1.5rem;
}
.stat {
  grid-area: stat;
  font-size: clamp(2.5rem, 1.5rem + 2.2vw, 3.75rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--green-900);
  font-variant-numeric: tabular-nums;
}
.what { grid-area: what; font-size: clamp(1rem, 0.9rem + 0.25vw, 1.125rem); line-height: 1.3; max-width: 30ch; }
.src {
  grid-area: src;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
}
.src:hover { color: var(--ink); text-decoration-color: currentColor; }
.src .icon { width: 0.95em; height: 0.95em; }

/* ---- about ---- */
.me {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
  gap: 1.5rem clamp(2rem, 4vw, 4.5rem);
  align-items: start;
  padding-top: var(--section);
}
.me .studio { max-width: 40rem; margin-bottom: 1.5rem; font-size: 1.125rem; }
.me .person { display: flex; gap: 1.25rem; align-items: flex-start; max-width: 40rem; }
.me .person p { color: var(--ink-muted); }
.me .person p + p { margin-top: 0.4rem; }
.me .name { color: var(--ink) !important; font-weight: 500; font-size: 1.125rem; }

/* ---- the offer: back inside the headset ---- */
.offer {
  background: var(--green-900);
  color: var(--cream);
  padding: var(--section) var(--gutter);
}
.offer ::selection { background: var(--sand); color: var(--ink); }
.offer a:focus-visible { outline-color: var(--sand); }
.offer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 2.5rem clamp(2rem, 6vw, 6rem);
  align-items: end;
}
.offer h2 { font-size: clamp(2rem, 1.2rem + 3vw, 3.5rem); color: #fff; max-width: 15ch; }
.offer ul { display: grid; gap: 0.7rem; margin-top: 1.75rem; max-width: 46ch; }
.offer li { position: relative; padding-left: 1.5rem; color: #e8e0d6; }
.offer li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.6rem;
  height: 2px;
  background: var(--sand);
}
/* both actions take the width of the wider one */
.offer-actions { display: grid; gap: 0.9rem; justify-items: stretch; width: fit-content; }
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.25rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(247, 241, 236, 0.35);
  color: var(--cream);
  font-weight: 500;
  transition: background 160ms, border-color 160ms;
}
.ghost:hover { background: rgba(247, 241, 236, 0.08); border-color: rgba(247, 241, 236, 0.6); }

/* ---- questions ---- */
.faq { max-width: 52rem; padding-block: var(--section) 0; }
.faq h2 { margin-bottom: 1.25rem; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 3.5rem;
  padding: 1.1rem 0;
  font-size: 1.125rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--green-500); }
summary::after {
  content: "";
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2px solid var(--ink-muted);
  border-bottom: 2px solid var(--ink-muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 200ms var(--ease);
}
details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
details p { max-width: 62ch; padding-bottom: 1.5rem; color: var(--ink-muted); }

/* ---- footer ---- */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: var(--section);
  padding-block: 2rem 7rem;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--ink-muted);
}
.foot a { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-color: transparent; }
.foot a:hover { color: var(--ink); text-decoration-color: currentColor; }

/* ---- sticky booking bar ---- */
.bar {
  position: fixed;
  left: 50%;
  bottom: calc(1.25rem + env(safe-area-inset-bottom));
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.45rem 0.45rem 0.45rem 1.4rem;
  border-radius: 999px;
  background: var(--green-900);
  color: var(--cream);
  box-shadow: 0 18px 40px -14px rgba(23, 39, 31, 0.6);
  transform: translate(-50%, 0);
  transition: transform 400ms var(--ease), opacity 300ms;
}
.bar[hidden] { display: flex; opacity: 0; transform: translate(-50%, 160%); pointer-events: none; }
.bar .button { white-space: nowrap; min-height: 2.9rem; box-shadow: none; }

/* ---- tablet: text above a full-width video ---- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; }
  .hero h1 { max-width: 18ch; }
  .pair { grid-template-columns: 1fr; }
  .me { grid-template-columns: 1fr; }
}

/* ---- phone: its own order, not a squeezed desktop ---- */
@media (max-width: 760px) {
  .top { padding-block: 1rem 0.25rem; }
  .mark img { height: 41px; }

  /* headline, then the footage, then the ask */
  .hero { grid-template-columns: 1fr; gap: 0; padding-block: 1.5rem 3rem; }
  .hero-text { display: contents; }
  .hero h1 { order: 1; max-width: 13ch; font-size: clamp(2.1rem, 1.2rem + 4.6vw, 2.9rem); }
  .headset { display: contents; }
  .lens { order: 2; margin-top: 1.75rem; }
  .actions { order: 3; }
  .steps { order: 4; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
  .soon { order: 5; }

  .lens { border-radius: 16px; aspect-ratio: 4 / 3; }

  .actions { flex-direction: column; align-items: stretch; gap: 0.5rem; margin-top: 1.5rem; }
  .actions .button { width: 100%; }
  .mail { justify-content: center; }

  .soon { margin-top: 1.25rem; padding-top: 1.25rem; font-size: 0.9375rem; }

  .steps ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 1rem; }

  .pair { grid-template-columns: 1fr; }
  .card { padding: 1.25rem; }
  .stat-card { gap: 0.15rem 1rem; }
  .stat { font-size: clamp(2.75rem, 2rem + 4vw, 3.5rem); }
  .what { font-size: 1rem; }

  .offer-grid { grid-template-columns: 1fr; }
  .offer-actions { justify-items: stretch; width: auto; }
  .offer-actions > * { width: 100%; }

  summary { font-size: 1.0625rem; }

  .foot { flex-direction: column; padding-bottom: 7.5rem; }

  /* the booking bar becomes a full-width bottom bar */
  .bar {
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
    padding: 0.4rem;
    transform: none;
    justify-content: stretch;
  }
  .bar[hidden] { transform: translateY(160%); }
  .bar span { display: none; }
  .bar .button { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
