/* ───────────────────────────────────────────────
   Homepage, index2 style
   White page, dark hero corridor, Bebas Neue display,
   DM Sans text, near-black ink, electric blue as the single accent.
   ─────────────────────────────────────────────── */

:root {
  --white: #ffffff;
  --black: #0d0d0d;
  --ink: #0d0d0d;
  --muted: #555555;           /* secondary text, 7.5:1 on white */
  --rule: #e0e0e0;
  --cream: #f5f3ee;
  --accent: #4C7DFF;          /* blue on dark backgrounds, 5.3:1 */
  --accent-ink: #1F4FFF;      /* blue for buttons and text on white, 5.8:1 */
  --error: #b3261e;           /* form errors only, 6.4:1 on white */

  --gutter: clamp(24px, 5vw, 62px);
  --max: 1440px;
  --section: clamp(96px, 10vw, 176px);

  --display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --text: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --z-behind: -2;
  --z-raised: 1;
  --z-menu: 99;
  --z-nav: 100;
  --z-skip: 200;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  background: var(--white);
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent-ink); color: var(--white); }

img { display: block; max-width: 100%; height: auto; }
p, li, dd, blockquote { text-wrap: pretty; }
a { color: inherit; }

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: var(--z-skip);
  background: var(--black);
  color: var(--white);
  padding: 12px 20px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 16px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Display voice: Bebas Neue, uppercase by nature */
.cut {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1;
  text-wrap: balance;
}

.arrow { width: .85em; height: .85em; flex: none; }

/* ─── Buttons and links ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 30px;
  font-family: var(--text);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s var(--ease-out);
}
.btn:active { transform: translateY(1px); }

/* The site's one primary button: blue, black on hover (white on the dark hero) */
.btn-red,
.btn-ink { background: var(--accent-ink); color: var(--white); }
.btn-red:hover,
.btn-ink:hover { background: var(--black); color: var(--white); }
.btn-ink[disabled] { background: #3b3b3b; color: var(--white); cursor: progress; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: color .2s;
}
.link:hover { color: var(--muted); }
.link .arrow { transition: transform .25s var(--ease-out); }
.link:hover .arrow { transform: translateX(3px); }
.hero-actions .link:hover .arrow { transform: translateY(3px); }

/* ─── Nav ─── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-nav);
  background: var(--white);
  transition: background-color .3s, box-shadow .3s;
}
.nav.scrolled,
.nav.menu-open { box-shadow: 0 1px 0 var(--rule); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 24px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; transition: color .3s; }
.nav-logo svg { width: auto; height: 28px; }
.nav-logo span {
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.nav-links { display: flex; align-items: center; gap: 40px; list-style: none; }
.nav-links a:not(.btn) {
  font-size: .875rem;
  color: var(--muted);
  text-decoration: none;
  padding-block: 8px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: color .2s, background-size .25s var(--ease-out);
}
.nav-links a:not(.btn):hover { color: var(--black); }
.nav-links a[aria-current='true'] { color: var(--black); background-size: 100% 1px; }
.nav-links .btn { min-height: 40px; padding: 10px 18px; font-size: .75rem; transition: opacity .3s, visibility .3s, background-color .2s, color .2s; }
.nav:not(.scrolled):not(.menu-open) .nav-links .btn { opacity: 0; visibility: hidden; }
.nav-call { display: none; }

/* Transparent over the dark hero until scrolled */
.nav:not(.scrolled):not(.menu-open) { background: transparent; }
.nav:not(.scrolled):not(.menu-open) .nav-logo { color: var(--white); }
.nav:not(.scrolled):not(.menu-open) .nav-links a:not(.btn) { color: rgba(255, 255, 255, .78); }
.nav:not(.scrolled):not(.menu-open) .nav-links a:not(.btn):hover { color: var(--white); }
.nav:not(.scrolled):not(.menu-open) .btn { background: var(--accent-ink); color: var(--white); }
.nav:not(.scrolled):not(.menu-open) .btn:hover { background: var(--white); color: var(--black); }
.nav:not(.scrolled):not(.menu-open) .hamburger span { background: var(--white); }

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}
.hamburger span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 1.5px;
  background: var(--black);
  transition: transform .25s var(--ease-out), opacity .2s, background-color .3s;
}
.hamburger span:nth-child(1) { top: 16px; }
.hamburger span:nth-child(2) { top: 21.5px; }
.hamburger span:nth-child(3) { top: 27px; }
.nav.menu-open .hamburger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav.menu-open .hamburger span:nth-child(2) { opacity: 0; }
.nav.menu-open .hamburger span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 72px 0 0;
  z-index: var(--z-menu);
  background: var(--white);
  padding: 32px var(--gutter) 48px;
  display: none;
  flex-direction: column;
  gap: 8px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a:not(.btn) {
  font-family: var(--display);
  font-size: clamp(2.5rem, 10vw, 4rem);
  line-height: 1.05;
  text-decoration: none;
  transition: color .2s;
}
.mobile-nav a:not(.btn):hover { color: var(--accent-ink); }
.mobile-nav .btn { margin-top: 24px; align-self: flex-start; }

/* ─── Hero: corridor behind centred type ─── */
.hero {
  position: relative;
  min-height: max(100svh, 640px);
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--black);
  color: var(--white);
  padding: 112px var(--gutter) 80px;
}

.hs-stream {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: max(100%, 140svh);
  transform: translateX(-50%);
  z-index: var(--z-behind);
  overflow: hidden;
  container-type: inline-size;
  pointer-events: none;
}
.hs-view, .hs-stage { position: absolute; inset: 0; }
.hs-stage { transform-style: preserve-3d; }
.hs-card { position: absolute; left: 50%; overflow: hidden; backface-visibility: hidden; }
.hs-card img { width: 100%; height: 100%; object-fit: cover; }

/* Darkens the centre so the headline reads over the stream */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 62% 58% at 50% 52%, rgba(13, 13, 13, .94) 0%, rgba(13, 13, 13, .82) 50%, rgba(13, 13, 13, .2) 100%);
  pointer-events: none;
}

.hero-content {
  width: min(100%, 1100px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero h1 {
  font-size: clamp(3rem, 6.4vw, 5.75rem);
  line-height: .95;
  letter-spacing: -.01em;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.nowrap { white-space: nowrap; }
.hero-sub {
  margin-top: 32px;
  max-width: 36rem;
  margin-inline: auto;
  text-align: center;
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, .82);
}
.hero-sub strong { font-weight: 600; color: var(--white); }
.hero-sub span { display: block; }
.hero-actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 32px;
}
.hero .btn { background: var(--accent-ink); color: var(--white); }
.hero .btn:hover { background: var(--white); color: var(--black); }
.hero .link { color: var(--white); }
.hero .link:hover { color: rgba(255, 255, 255, .7); }
.hero :focus-visible { outline-color: var(--accent); }

.hero.is-idle .hs-card { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .hs-card { animation-play-state: paused !important; }
}

/* ─── Proof ─── */
.proof { padding-block: var(--section) calc(var(--section) * .6); }
.proof-line {
  font-size: clamp(1.5rem, 2.8vw, 2.375rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.015em;
  max-width: 28em;
}
.proof-line b { font-weight: 700; color: var(--accent-ink); }
.proof-line q { quotes: '“' '”'; }
.proof-src { margin-top: 24px; font-size: .9375rem; color: var(--muted); max-width: 72ch; }

/* ─── Section heads ─── */
.head {
  font-size: clamp(2.5rem, 4.6vw, 4rem);
  line-height: 1;
  max-width: 16em;
}
.head-note {
  margin-top: 20px;
  max-width: 38rem;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--muted);
}

/* ─── Work ─── */
.work { padding-block: calc(var(--section) * .6) var(--section); }
.sheets { list-style: none; margin-top: clamp(48px, 6vw, 80px); display: grid; gap: clamp(80px, 9vw, 128px); }

.sheet {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(24px, 3vw, 48px);
  row-gap: 24px;
  align-items: start;
}
.sheet-name {
  grid-column: 1 / -1;
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  text-decoration: none;
  width: fit-content;
  max-width: 100%;
  transition: color .2s;
}
.sheet-name:hover,
.sheet:has(.sheet-media:hover) .sheet-name { color: var(--muted); }

.sheet-media {
  grid-column: 1 / span 8;
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f0f0f0;
}
.sheet-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.sheet-media:hover img { transform: scale(1.03); }

.crop { position: absolute; inset: 0; overflow: hidden; }
.crop img { transform: scale(1.16); }
.sheet-media:hover .crop img { transform: scale(1.19); }

.sheet-facts {
  grid-column: 9 / -1;
  display: grid;
  gap: 24px;
  padding-top: 4px;
}
.sheet-result {
  font-family: var(--display);
  font-size: clamp(1.75rem, 2.4vw, 2.25rem);
  line-height: 1.05;
  color: var(--accent-ink);
}
.sheet-facts dl,
.sheet-compact dl { display: grid; gap: 16px; }
.fact dt {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.fact dd { margin-top: 4px; font-size: 1rem; line-height: 1.6; }
.sheet-facts .link { justify-self: start; }

/* Movement Medicine: strategy to sign */
.stages {
  grid-column: 1 / span 8;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.stages img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.stages span {
  display: block;
  margin-top: 10px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* The other four, two by two */
.compact-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(64px, 7vw, 96px) clamp(24px, 3vw, 48px);
}
.sheet-compact { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; row-gap: 16px; }
.sheet-compact .sheet-media { grid-column: auto; }
.sheet-compact .sheet-name { font-size: clamp(1.875rem, 2.8vw, 2.5rem); margin-top: 8px; }
.sheet-compact .link { justify-self: start; }

/* Gentle rise as each sheet arrives (JS and motion only) */
.apply-ready .sheet { opacity: 0; transform: translateY(28px); }
.apply-ready .sheet.applied {
  opacity: 1;
  transform: none;
  transition: opacity .8s ease, transform .9s var(--ease-out);
}

/* ─── How I work ─── */
.how {
  background: var(--cream);
  padding-block: var(--section);
}
.path {
  list-style: none;
  margin-top: clamp(48px, 6vw, 80px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 80px);
}
.step { position: relative; padding-top: 28px; border-top: 1px solid var(--black); }
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: -5px;
  right: calc(clamp(32px, 5vw, 80px) * -.5 - 4px);
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--black);
  border-radius: 50%;
  background: var(--cream);
}
.step h3 { font-size: clamp(2rem, 3vw, 2.75rem); }
.step p { margin-top: 12px; color: var(--muted); max-width: 34ch; }
.how-after {
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 24px;
  border-top: 1px solid #d9d4c7;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 64px);
  color: var(--muted);
}
.how-after strong { color: var(--black); font-weight: 600; }

/* ─── Testimonials ─── */
.voices { padding-block: var(--section); }
.quotes { list-style: none; margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--rule); }
.quotes > li { border-bottom: 1px solid var(--rule); padding-block: clamp(36px, 4vw, 56px); }
.quote { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 48px); row-gap: 20px; }
.quote-cut {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.05;
}
.quote-cut { text-indent: -.34em; } /* hang the opening mark so the letters align with the column */
.quote-cut::before { content: '“'; color: var(--accent-ink); }
.quote-cut::after { content: '”'; color: var(--accent-ink); }
.quote .quote-cut { grid-column: 1 / span 6; }
.quote-body { grid-column: 7 / -1; padding-top: 4px; }
.quote-pair .quote-cut { grid-column: 1 / span 6; }
.quote-pair .quote-body:nth-of-type(1) { grid-column: 1 / span 6; }
.quote-pair .quote-body:nth-of-type(2) { grid-column: 7 / -1; }
.quote blockquote p { font-size: .9375rem; line-height: 1.8; color: var(--muted); max-width: 34rem; }
.quote figcaption { margin-top: 14px; font-size: .875rem; }
.quote figcaption strong { font-weight: 600; }
.quote figcaption span { color: var(--muted); }

/* ─── About ─── */
.about { padding-block: 0 var(--section); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: center;
}
/* Cream frame; multiply turns the photo's white studio backdrop into the frame colour */
.about-photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--cream); }
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  mix-blend-mode: multiply;
}
.about-text p { margin-top: 24px; max-width: 60ch; font-size: 1.0625rem; line-height: 1.85; color: var(--muted); }
.about-text p + p { margin-top: 16px; }

/* ─── Contact ─── */
.contact { padding-block: var(--section); }
.contact,
.footer { position: relative; }
.contact::before,
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: min(calc(100% - var(--gutter) * 2), var(--max));
  height: 1px;
  background: var(--rule);
  transform: translateX(-50%);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(24px, 3vw, 48px);
  row-gap: 48px;
}
.contact-intro { grid-column: 1 / span 5; }
.next { list-style: none; margin-top: 40px; display: grid; gap: 20px; counter-reset: next; }
.next li {
  counter-increment: next;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 8px;
  color: var(--muted);
  max-width: 34rem;
}
.next li::before {
  content: counter(next, decimal-leading-zero);
  font-family: var(--display);
  font-size: 1.375rem;
  line-height: 1.2;
  color: var(--accent-ink);
}
.next strong { color: var(--black); font-weight: 600; }
.contact-mail { margin-top: 40px; color: var(--muted); }
.contact-mail a { color: var(--black); }

.contact-form-wrap { grid-column: 7 / -1; }
.contact-form { display: grid; gap: 32px; }
.field { display: grid; gap: 6px; }
.field label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.field label span { font-weight: 400; letter-spacing: .04em; text-transform: none; color: var(--muted); }
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1.0625rem;
  color: var(--black);
  background: transparent;
  border: 0;
  border-bottom: 1px solid #8a8a8a;
  border-radius: 0;
  padding: 10px 0 12px;
  min-height: 48px;
  transition: border-color .2s;
}
.field textarea { min-height: 128px; resize: vertical; line-height: 1.6; }
.field input::placeholder,
.field textarea::placeholder { color: #707070; }
.field input:focus,
.field textarea:focus { outline: none; border-bottom: 2px solid var(--black); padding-bottom: 11px; }
.field-error { display: none; font-size: .875rem; font-weight: 500; color: var(--error); }
.field.has-error .field-error { display: block; }
.field.has-error input,
.field.has-error textarea { border-bottom-color: var(--error); }
.field input:user-invalid,
.field textarea:user-invalid { border-bottom-color: var(--error); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-foot p { font-size: .9375rem; color: var(--muted); }

.contact-feedback:empty { display: none; }
.contact-feedback { padding-block: 8px; }
.contact-form + .contact-feedback { margin-top: 24px; }
.contact-feedback .cut { font-size: clamp(2rem, 3vw, 2.5rem); }
.contact-feedback p + p { margin-top: 12px; color: var(--muted); }
.contact-feedback.is-error { padding: 20px 24px; background: #fbeae9; color: var(--black); }

/* ─── Footer ─── */
.footer { padding-block: 32px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px 32px;
  font-size: .8125rem;
  color: var(--muted);
}
.footer-inner .link { color: var(--black); padding-block: 11px; }
.footer-start { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; }
.footer-copy { justify-self: end; }
.footer-mark { display: inline-flex; color: var(--black); padding: 11px; margin: -11px; }
.footer-mark svg { width: auto; height: 22px; }

/* ─── 404 ─── */
.missing {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding-block: 128px 96px;
}
.missing-code {
  font-family: var(--display);
  font-size: clamp(7rem, 24vw, 20rem);
  line-height: .85;
  color: var(--accent-ink);
}
.missing-title { margin-top: 24px; font-size: clamp(2.5rem, 4.6vw, 4rem); max-width: 14em; }
.missing-note { margin-top: 20px; max-width: 38rem; font-size: 1.0625rem; color: var(--muted); }
.missing-actions { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }

/* ─── Tablet ─── */
@media (max-width: 1024px) {
  .sheet-media,
  .sheet-facts,
  .stages { grid-column: 1 / -1; }
  .sheet-full .sheet-name { order: 0; }
  .sheet-full .sheet-media { order: 1; }
  .sheet-full .stages { order: 2; }
  .sheet-full .sheet-facts { order: 3; }
  .contact-intro, .contact-form-wrap { grid-column: 1 / -1; }
  .about-grid { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); }
}

@media (max-width: 480px) {
  .nav-logo span { display: none; }
}

/* ─── Phone ─── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .nav-inner { height: 72px; gap: 12px; }
  .nav-call { display: inline-flex; margin-left: auto; min-height: 44px; padding: 10px 14px; font-size: .75rem; letter-spacing: .08em; white-space: nowrap; }
  .nav .nav-inner > .btn { min-height: 44px; padding: 10px 14px; font-size: .75rem; letter-spacing: .08em; }
  .footer-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-start { justify-content: center; }
  .footer-copy { justify-self: center; }

  .hero { min-height: max(100svh, 600px); padding-top: 104px; }
  .hero::after { background: radial-gradient(ellipse 100% 62% at 50% 52%, rgba(13, 13, 13, .96) 0%, rgba(13, 13, 13, .88) 60%, rgba(13, 13, 13, .35) 100%); }
  .hero-actions { flex-direction: column; gap: 20px; }

  .stages { gap: 8px; }
  .compact-grid { grid-template-columns: 1fr; }

  .path { grid-template-columns: 1fr; gap: 48px; }
  .step:not(:last-child)::after { display: none; }
  .how-after { grid-template-columns: 1fr; }

  .quote .quote-cut, .quote-body, .quote-pair .quote-body:nth-of-type(n) { grid-column: 1 / -1; }

  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 360px; }

  .form-foot .btn { width: 100%; justify-content: center; }
}
