/* ==========================================================================
   Epic 12 — Direction B "Cosmos"
   Pure HTML/CSS/JS, no framework.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --navy-900: #0A1828;
  --navy-800: #0B1B30;
  --navy-700: #11243F;
  --navy-600: #1A3050;
  --line:     rgba(241, 231, 209, 0.12);
  --line-soft:rgba(241, 231, 209, 0.06);

  --cream:    #F1E7D1;
  --cream-2:  #EFE6D2;
  --cream-3:  #E7DDC4;
  --cream-mute: rgba(241, 231, 209, 0.72);
  --cream-dim:  rgba(241, 231, 209, 0.55);
  --cream-faint:rgba(241, 231, 209, 0.35);

  --gold:     #D4A857;
  --gold-2:   #E4BC73;
  --gold-soft:rgba(212, 168, 87, 0.18);

  --font-display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif:   "Fraunces", "Iowan Old Style", "Georgia", serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --w-max: 1280px;
  --w-content: 1080px;
  --w-text: 760px;

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

  --header-h: 76px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy-800);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 300; letter-spacing: -0.01em; }
p { margin: 0; }
input, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--navy-900); }

/* ---------- utilities ---------- */
.container { max-width: var(--w-max); margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; }

.skip-link {
  position: absolute; top: 8px; left: 8px;
  padding: 10px 14px; background: var(--cream); color: var(--navy-800);
  border-radius: 6px; transform: translateY(-200%);
  transition: transform .25s var(--ease);
  z-index: 100;
}
.skip-link:focus { transform: translateY(0); outline: 2px solid var(--gold); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity .9s var(--ease-out),
    transform .9s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- buttons ---------- */
.btn {
  --bg: var(--gold);
  --fg: var(--navy-900);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  background: var(--bg); color: var(--fg);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: background .35s var(--ease), color .35s var(--ease), transform .25s var(--ease), box-shadow .35s var(--ease);
  white-space: nowrap;
}
.btn svg { transition: transform .35s var(--ease); }
.btn:hover { background: var(--gold-2); box-shadow: 0 10px 30px -10px rgba(212, 168, 87, 0.55); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }

.btn--ghost {
  --bg: transparent; --fg: var(--cream);
  border: 1px solid var(--line);
}
.btn--ghost:hover {
  background: rgba(241, 231, 209, 0.04);
  border-color: rgba(241, 231, 209, 0.28);
  box-shadow: none;
}

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  background: transparent;
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(10, 24, 40, 0.78);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom-color: var(--line-soft);
}
.header__inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  color: var(--cream);
  text-decoration: none;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 22px;
  letter-spacing: 0.01em;
  line-height: 1;
  transition: color .3s var(--ease);
}
.brand__name em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  color: var(--gold-2);
  font-size: 1.02em;
  margin-left: 1px;
}
.brand:hover .brand__name em { color: var(--gold); }

.nav ul {
  display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px);
}
.nav a {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--cream-mute);
  position: relative;
  padding: 6px 0;
  transition: color .25s var(--ease);
}
.nav a:hover { color: var(--cream); }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }

.nav a.nav__cta {
  padding: 10px 22px;
  margin-left: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cream);
  line-height: 1.2;
}
.nav a.nav__cta::after { display: none; }
.nav a.nav__cta:hover { border-color: var(--gold); background: var(--gold-soft); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; width: 18px; height: 1px; background: var(--cream);
  margin: 3px 0; transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  top: var(--header-h); left: 0; right: 0;
  background: rgba(10, 24, 40, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  z-index: 49;
}
.mobile-nav ul { padding: 14px 0; }
.mobile-nav a {
  display: block;
  padding: 16px clamp(20px, 5vw, 32px);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 300;
  color: var(--cream);
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav li:last-child a { border-bottom: 0; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--header-h) + 40px) 0 80px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
}
.hero__bg {
  position: absolute; inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1100px 700px at 75% 35%, rgba(212, 168, 87, 0.10), transparent 60%),
    radial-gradient(900px 600px at 0% 100%, rgba(26, 48, 80, 0.6), transparent 60%),
    linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
}

.hero__cosmos {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.cosmos__core {
  transform-origin: 900px 400px;
  transform-box: view-box;
  animation: coreGlowPulse 9s ease-in-out infinite;
}
@keyframes coreGlowPulse {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.07); }
}

.cosmos__orbit {
  transform-origin: 900px 400px;
  transform-box: view-box;
  animation-name: cosmosOrbit;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  will-change: transform;
}
.cosmos__orbit--inner { animation-duration: 120s; }
.cosmos__orbit--outer { animation-duration: 220s; animation-direction: reverse; }
@keyframes cosmosOrbit {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Two intertwined spirals: excellence (gold) × human (cream) */
.weave {
  transform-origin: 900px 400px;
  transform-box: view-box;
  animation-name: weaveSpin;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  will-change: transform;
}
.weave--gold  { animation-duration: 90s;  }
.weave--cream { animation-duration: 110s; animation-direction: reverse; }
@keyframes weaveSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Polar dots: subtle pulse */
.cosmos__pole {
  transform-origin: 900px 400px;
  transform-box: view-box;
  filter: drop-shadow(0 0 6px currentColor);
}
.cosmos__pole--gold  { color: #D4A857; animation: weaveSpin 90s linear infinite; }
.cosmos__pole--cream { color: #F1E7D1; animation: weaveSpin 110s linear infinite reverse; }

.cosmos__particle {
  position: absolute;
  left: var(--x); top: var(--y);
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(212, 168, 87, 0.7);
  opacity: 0;
  animation: cosmosParticle var(--t, 8s) ease-in-out infinite var(--d, 0s);
  pointer-events: none;
}
@keyframes cosmosParticle {
  0%, 100% { opacity: 0; transform: translateY(0); }
  30%, 70% { opacity: 0.8; }
  50%      { transform: translateY(-26px); }
}

@media (prefers-reduced-motion: reduce) {
  .cosmos__orbit, .cosmos__core, .cosmos__particle, .weave, .cosmos__pole { animation: none; }
}

.hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--w-content);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 28px;
}
.eyebrow__line {
  width: 36px; height: 1px; background: var(--gold);
  display: inline-block;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(34px, 5.4vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--cream);
  max-width: 18ch;
  margin-bottom: 56px;
}
.hero__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  color: var(--gold-2);
}

.hero__cta {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: 16px;
}

/* ---------- pillars: 3 atmospheric panels ---------- */
.pillars {
  background: var(--navy-900);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.panel {
  position: relative;
  min-height: clamp(420px, 62vh, 620px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.panel + .panel { border-top: 1px solid var(--line-soft); }

.panel__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.panel__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  mix-blend-mode: screen;
  transform-origin: 60% 50%;
  animation: kenBurns 32s ease-in-out infinite alternate;
  will-change: transform;
}
.panel__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 70% at 70% 50%, rgba(212, 168, 87, 0.10), transparent 70%),
    linear-gradient(90deg, rgba(10, 24, 40, 0.82) 0%, rgba(10, 24, 40, 0.32) 30%, rgba(10, 24, 40, 0.05) 60%, transparent 80%),
    linear-gradient(180deg, var(--navy-900) 0%, transparent 14%, transparent 86%, var(--navy-900) 100%);
  pointer-events: none;
}
.panel--1 .panel__bg img { transform-origin: 70% 50%; }
.panel--2 .panel__bg img { transform-origin: 30% 50%; animation-direction: alternate-reverse; }
.panel--3 .panel__bg img { transform-origin: 50% 50%; }

@keyframes kenBurns {
  0%   { transform: scale(1)     translateX(0);   }
  100% { transform: scale(1.08)  translateX(-2.5%); }
}

.panel__inner {
  position: relative;
  display: flex;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(60px, 10vw, 120px) 0;
}

.panel__rule {
  width: 1px;
  background: var(--gold);
  flex-shrink: 0;
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 1.4s var(--ease-out) .15s;
  align-self: stretch;
}
.panel.is-in .panel__rule { transform: scaleY(1); }

.panel__text {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(30px, 5.2vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--cream);
  max-width: 22ch;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 1.1s var(--ease-out) .35s,
    transform 1.1s var(--ease-out) .35s;
}
.panel.is-in .panel__text { opacity: 1; transform: none; }

.panel__text em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  color: var(--gold-2);
  letter-spacing: -0.015em;
}

@media (prefers-reduced-motion: reduce) {
  .panel__bg img { animation: none; }
  .panel__rule { transform: scaleY(1); transition: none; }
  .panel__text { opacity: 1; transform: none; transition: none; }
}

.hero__scroll {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-faint);
}
.hero__scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute; top: -10px; left: 0;
  width: 1px; height: 14px;
  background: var(--cream);
  animation: scrollLine 2.2s var(--ease-out) infinite;
}
@keyframes scrollLine {
  0%   { transform: translateY(0);    opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translateY(46px); opacity: 0; }
}

/* ---------- sections (generic) ---------- */
.section {
  position: relative;
  padding: clamp(80px, 12vw, 160px) 0;
}
.section__head {
  margin-bottom: clamp(48px, 7vw, 88px);
  max-width: 900px;
}
.section__label {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.section__label::before {
  content: ""; width: 28px; height: 1px; background: var(--gold);
}
.section__title {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(28px, 4.2vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--cream);
}

/* ---------- companies / carousel ---------- */
.section--companies {
  background:
    linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
}
.carousel { position: relative; }
.carousel__viewport {
  overflow: hidden;
  margin: 0 -14px;
}
.carousel__track {
  display: flex;
  transition: transform .9s var(--ease-out);
}
.slide {
  flex: 0 0 100%;
  padding: 14px;
  box-sizing: border-box;
}
.testimonial {
  display: flex;
  flex-direction: column;
  gap: 28px;
  height: 100%;
  padding: clamp(28px, 3.5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    radial-gradient(700px 320px at 100% 0%, rgba(212, 168, 87, 0.05), transparent 60%),
    linear-gradient(180deg, rgba(241, 231, 209, 0.02), rgba(241, 231, 209, 0.005));
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.testimonial:hover {
  border-color: rgba(241, 231, 209, 0.22);
}
.testimonial__logo {
  height: 24px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  align-self: flex-start;
}
.testimonial__quote {
  flex: 1;
  position: relative;
  padding-top: 8px;
}
.testimonial__quote::before {
  content: "“";
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 56px;
  line-height: 0.6;
  color: var(--gold);
  opacity: 0.55;
  margin-bottom: 18px;
  height: 28px;
}
.testimonial__quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
  color: var(--cream);
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--navy-700);
  display: inline-block;
  position: relative;
  isolation: isolate;
}
.testimonial__avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(0.95);
}
.testimonial__avatar::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(212, 168, 87, 0.18), rgba(212, 168, 87, 0.18));
  mix-blend-mode: multiply;
  pointer-events: none;
}
.testimonial__person {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.testimonial__name {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--cream);
  font-size: 15px;
  letter-spacing: 0.01em;
}
.testimonial__role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

@media (min-width: 720px) {
  .slide { flex: 0 0 50%; }
}

/* logo utility classes — uniform monochrome treatment */
.logo--invert {
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.logo--screen {
  mix-blend-mode: lighten;
  filter: brightness(1.1);
}
.logo--white {
  opacity: 0.95;
}

.carousel__controls {
  display: flex; align-items: center; justify-content: center;
  gap: 24px;
  margin-top: 32px;
}
.carousel__btn {
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--cream);
  display: inline-grid; place-items: center;
  transition: border-color .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.carousel__btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-soft);
}
.carousel__dots {
  display: flex; gap: 10px; align-items: center;
}
.carousel__dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line);
  transition: background .3s var(--ease), transform .3s var(--ease), width .35s var(--ease);
  padding: 0;
}
.carousel__dots button[aria-selected="true"] {
  background: var(--gold);
  width: 24px; border-radius: 4px;
}

.logos-strip {
  margin-top: clamp(48px, 8vw, 80px);
  padding-top: clamp(36px, 5vw, 56px);
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  row-gap: 28px;
}
.logos-strip img {
  height: 26px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  opacity: 0.55;
  transition: opacity .35s var(--ease);
}
.logos-strip img:hover { opacity: 1; }

/* ---------- squad ---------- */
.section--squad {
  background: var(--navy-900);
  position: relative;
}
.section--squad::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 60%;
  height: 60%;
  background: radial-gradient(closest-side, rgba(212, 168, 87, 0.05), transparent 70%);
  pointer-events: none;
}
.squad {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(48px, 6vw, 88px) clamp(48px, 8vw, 120px);
  max-width: 1100px;
  margin: 0 auto;
}
.coach {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.coach__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
  background: var(--navy-700);
  max-width: 320px;
}
.coach__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(0.95);
  transition: transform 1.2s var(--ease-out), filter .6s var(--ease);
}
.coach__photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 27, 48, 0) 50%, rgba(11, 27, 48, 0.5) 100%),
              linear-gradient(0deg, rgba(212, 168, 87, 0.16), rgba(212, 168, 87, 0.16));
  mix-blend-mode: multiply;
  pointer-events: none;
  transition: opacity .6s var(--ease);
}
.coach:hover .coach__photo img {
  transform: scale(1.04);
  filter: grayscale(0.4) contrast(1.05) brightness(1);
}
.coach:hover .coach__photo::after { opacity: 0.6; }

.coach__name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(22px, 2.4vw, 30px);
  color: var(--cream);
  letter-spacing: -0.01em;
}
.coach__role {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 6px;
}
.coach__bio {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--cream-mute);
  max-width: 52ch;
}

/* ---------- the epic 12 way ---------- */
.section--way {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy-800);
}
.way__bg {
  position: absolute; inset: 0;
  z-index: -1;
  pointer-events: none;
}
.way__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.35;
  mix-blend-mode: screen;
}
.way__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--navy-800) 0%, transparent 25%, transparent 75%, var(--navy-800) 100%);
}

.way__inner { position: relative; }
.way__body {
  max-width: var(--w-text);
  margin: 0 auto;
  display: flex; flex-direction: column;
  gap: clamp(28px, 4vw, 44px);
}
.way__para {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.6;
  color: var(--cream-mute);
}
.way__para em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  color: var(--cream);
}
.way__para--final em {
  color: var(--gold-2);
}

/* Lifted pivot sentence — breaks to its own block, larger, brighter */
.way__pivot {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--cream);
  margin: 0.55em 0;
  padding-left: clamp(16px, 2vw, 28px);
  border-left: 1px solid var(--gold);
}

/* Three pillar words: bigger, gold, with a soft underline */
.way__pillar {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.18em;
  color: var(--gold-2);
  letter-spacing: 0.005em;
  background-image: linear-gradient(90deg, rgba(212, 168, 87, 0) 0%, rgba(212, 168, 87, 0.55) 15%, rgba(212, 168, 87, 0.55) 85%, rgba(212, 168, 87, 0) 100%);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 2px;
}

/* ---------- contact ---------- */
.section--contact {
  background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
}
.contact-form {
  max-width: var(--w-text);
  margin: 0 auto;
}
.contact-form__sentence {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.7;
  color: var(--cream-mute);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
}
.contact-form__sentence > span:first-child {
  color: var(--cream);
}
.contact-form__row {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.contact-form input[type="text"],
.contact-form input[type="email"] {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: inherit;
  color: var(--gold-2);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 4px 4px 6px;
  min-width: 8ch;
  width: clamp(8ch, 28vw, 24ch);
  outline: none;
  transition: border-color .3s var(--ease), color .3s var(--ease);
  caret-color: var(--gold);
}
.contact-form input::placeholder {
  color: var(--cream-faint);
  font-style: italic;
}
.contact-form input:focus {
  border-bottom-color: var(--gold);
  color: var(--cream);
}
.contact-form input:invalid:not(:placeholder-shown) {
  border-bottom-color: rgba(220, 95, 85, 0.7);
}

/* Message textarea */
.contact-form__row--msg {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-form textarea {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: inherit;
  color: var(--gold-2);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 4px 4px 10px;
  width: 100%;
  min-height: 90px;
  outline: none;
  resize: vertical;
  line-height: 1.6;
  transition: border-color .3s var(--ease), color .3s var(--ease);
  caret-color: var(--gold);
}
.contact-form textarea::placeholder {
  color: var(--cream-faint);
  font-style: italic;
}
.contact-form textarea:focus {
  border-bottom-color: var(--gold);
  color: var(--cream);
}

.contact-form__actions {
  margin-top: clamp(36px, 5vw, 56px);
}
.contact-form__status {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--cream-mute);
  min-height: 1.2em;
}
.contact-form__status.is-success { color: var(--gold-2); }
.contact-form__status.is-error   { color: #E69086; }

.contact-form.is-sent .contact-form__sentence,
.contact-form.is-sent .contact-form__actions { opacity: 0.35; pointer-events: none; transition: opacity .5s var(--ease); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy-900);
  padding: 32px 0;
  border-top: 1px solid var(--line-soft);
}
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer__brand {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--cream);
}
.site-footer__copy {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--cream-dim);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 960px) {
  .squad { grid-template-columns: 1fr 1fr; gap: 48px 32px; }
  .pillar {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: clamp(36px, 7vw, 56px) 0;
  }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }

  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.is-scrolled,
  .site-header.is-menu-open { background: rgba(10, 24, 40, 0.92); backdrop-filter: blur(12px); border-bottom-color: var(--line-soft); }

  .hero { padding-top: calc(var(--header-h) + 32px); padding-bottom: 100px; }
  .hero__title { margin-bottom: 32px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }
  .hero__scroll { display: none; }

  .squad { grid-template-columns: 1fr; gap: 56px; }
  .coach { max-width: 480px; }

  .slide { padding: 8px; }
  .testimonial { padding: 24px 22px; }
  .testimonial__quote::before { font-size: 44px; margin-bottom: 12px; height: 22px; }
  .testimonial__quote p { font-size: 16px; }

  .logos-strip { justify-content: center; gap: 28px 36px; }
  .logos-strip img { height: 22px; }

  .contact-form__sentence { font-size: clamp(15px, 4vw, 18px); }
  .contact-form input[type="text"],
  .contact-form input[type="email"] { width: 100%; min-width: 0; }
  .contact-form__row { width: 100%; }

  .pillar__num { font-size: clamp(80px, 22vw, 140px); }
  .pillar__text { font-size: clamp(22px, 5.5vw, 30px); }
}

@media (max-width: 420px) {
  .container { padding: 0 18px; }
}
