:root {
  --abyss: #04141f;
  --deep: #0a2534;
  --ink: #0d1a20;
  --paper: #f6f4ef;
  --paper-2: #eceae3;
  --sea: #17b39a;
  --sea-bright: #7ce8d4;
  --muted: #5e6f75;
  --line: rgba(6, 32, 42, 0.14);
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --text: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fbfaf7;
  color: #14232a;
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(20px, 6vw, 72px);
}

:focus-visible {
  outline: 2px solid #6fe3c9;
  outline-offset: 4px;
  border-radius: 2px;
}

/* ---------- header ---------------------------------------------------- */

.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(20px, 4vw, 52px);
  color: #eaf6f4;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .01em;
}

.brand-mark { display: inline-flex; color: var(--sea-bright); }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  font-size: .9375rem;
}

.site-nav a {
  text-decoration: none;
  color: rgba(234, 246, 244, .82);
  transition: color .18s ease;
}

.site-nav a:hover { color: #fff; }

.nav-cta {
  padding: 9px 16px;
  border: 1px solid rgba(234, 246, 244, .38);
  border-radius: 999px;
  color: #eaf6f4 !important;
}

.nav-cta:hover { border-color: var(--sea-bright); background: rgba(124, 232, 212, .12); }

/* ---------- hero ------------------------------------------------------ */

.hero {
  position: relative;
  min-height: clamp(620px, 92svh, 880px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #f2fbfa;
  background: var(--abyss);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 44% 42%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(3, 18, 27, .86) 0%, rgba(4, 22, 32, .62) 42%, rgba(4, 24, 34, .18) 72%, rgba(4, 20, 30, .42) 100%),
    linear-gradient(to top, rgba(3, 16, 24, .92) 0%, rgba(3, 16, 24, .12) 46%, rgba(3, 16, 24, .34) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(120px, 16vh, 190px) clamp(20px, 6vw, 72px) clamp(72px, 12vh, 130px);
}

.hero-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.6rem, 7.2vw, 5.6rem);
  line-height: .98;
  letter-spacing: -.03em;
  margin: 0 0 26px;
  max-width: 15ch;
  text-wrap: balance;
}

.hero-title .line { display: block; }

.hero-lede {
  max-width: 46ch;
  margin: 0 0 34px;
  color: rgba(238, 250, 248, .84);
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  line-height: 1.6;
}

.button {
  display: inline-block;
  padding: 15px 28px;
  border-radius: 999px;
  background: var(--sea-bright);
  color: #052029;
  font-weight: 600;
  font-size: .9688rem;
  letter-spacing: .01em;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease;
}

.button:hover {
  background: #a1f2e2;
  transform: translateY(-1px);
}

.scroll-hint {
  position: absolute;
  right: clamp(20px, 3vw, 44px);
  bottom: clamp(24px, 4vh, 44px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: rgba(238, 250, 248, .66);
  font-size: .875rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.scroll-line {
  width: 44px;
  height: 1px;
  background: currentColor;
}

/* ---------- shared section bits --------------------------------------- */

.section-num {
  font-family: var(--display);
  font-size: .875rem;
  letter-spacing: .16em;
  color: var(--sea);
  margin: 0;
  font-variant-numeric: tabular-nums;
}

/* ---------- intro ----------------------------------------------------- */

.intro {
  background: #fbfaf7;
  padding: clamp(64px, 11vw, 128px) 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.intro-body { max-width: 40rem; }

.intro-proceed {
  margin: 22px 0 0;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  font-style: italic;
  font-weight: 700;
  color: #16292f;
}

.intro-proceed a {
  color: var(--sea);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.intro-proceed a:hover { color: #0f8f7c; }

.intro-start {
  display: inline-block;
  margin: 0 0 20px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--sea);
  font-family: var(--display);
  font-size: clamp(1rem, 1.7vw, 1.1875rem);
  font-weight: 600;
  letter-spacing: -.01em;
  color: #16292f;
}

.intro-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0 0 24px;
  max-width: 24ch;
  text-wrap: balance;
}

.intro-body p { margin: 0 0 18px; text-wrap: pretty; color: #2c3d44; }

.intro-body .lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: #16262d;
  line-height: 1.55;
}

.intro-body p:last-child { margin-bottom: 0; }

/* ---------- coaching -------------------------------------------------- */

.coaching {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(56px, 9vw, 104px) 0 clamp(64px, 10vw, 120px);
}

.coaching-head {
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 3vw, 28px);
  margin-bottom: clamp(30px, 5vw, 52px);
}

.section-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 0;
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 40px);
  border-top: 1px solid var(--line);
}

.card {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.card-num {
  display: block;
  font-family: var(--display);
  font-size: .875rem;
  letter-spacing: .16em;
  color: var(--sea);
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}

.card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -.01em;
  margin: 0 0 10px;
}

.card p {
  margin: 0;
  text-wrap: pretty;
  color: #3b4c53;
  font-size: .9875rem;
  line-height: 1.62;
}

/* ---------- featured course ------------------------------------------- */

.featured {
  background: #fbfaf7;
  padding: clamp(56px, 9vw, 104px) 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: start;
}

.featured-body { max-width: 46rem; }

.featured-detail {
  margin: 0 0 30px;
  font-size: .875rem;
  letter-spacing: .04em;
  color: var(--muted);
}

.featured-lede {
  font-size: clamp(1.0625rem, 1.7vw, 1.25rem);
  line-height: 1.6;
  color: #33474e;
  max-width: 44ch;
  margin: 0 0 28px;
  text-wrap: pretty;
}

.featured-facts {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  border-top: 1px solid var(--line);
}

.featured-facts li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: .9688rem;
}

.featured-facts span {
  flex: 0 0 5.5rem;
  font-size: 0.8125rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sea);
}

.featured-cta { margin-top: 4px; }

.featured-quote {
  margin: 0;
  padding: clamp(22px, 3vw, 34px);
  border-left: 2px solid var(--sea);
  background: rgba(23, 179, 154, .05);
  border-radius: 0 14px 14px 0;
}

.featured-quote blockquote {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: clamp(1.0625rem, 1.9vw, 1.3125rem);
  line-height: 1.45;
  letter-spacing: -.01em;
  color: #16292f;
  text-wrap: pretty;
}

.featured-quote figcaption {
  font-size: .8125rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 860px) {
  .featured-grid { grid-template-columns: 1fr; gap: 26px; }
}

/* ---------- contact --------------------------------------------------- */

.contact {
  background: var(--abyss);
  color: #eef8f6;
  padding: clamp(72px, 12vw, 140px) 0;
}

.contact-inner { max-width: 62rem; }

.contact .section-num { color: var(--sea-bright); }

.contact-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -.025em;
  margin: 0 0 22px;
  max-width: 20ch;
  text-wrap: balance;
}

.contact-lede {
  max-width: 46ch;
  margin: 0 0 40px;
  color: rgba(238, 248, 246, .74);
}

.mail {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 22px);
  padding: clamp(18px, 3vw, 26px) clamp(18px, 3vw, 32px);
  border: 1px solid rgba(124, 232, 212, .34);
  border-radius: 16px;
  text-decoration: none;
  background: rgba(124, 232, 212, .06);
  transition: background .2s ease, border-color .2s ease;
  max-width: 44rem;
}

.mail:hover {
  background: rgba(124, 232, 212, .12);
  border-color: rgba(124, 232, 212, .7);
}

.mail-label {
  font-size: .875rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(238, 248, 246, .6);
}

.mail-address {
  font-family: var(--display);
  font-size: clamp(1.0625rem, 2.6vw, 1.75rem);
  letter-spacing: -.01em;
  word-break: break-word;
  flex: 1 1 auto;
}

.mail-arrow {
  font-size: 1.4rem;
  color: var(--sea-bright);
}

/* ---------- footer ---------------------------------------------------- */

.site-footer {
  background: var(--abyss);
  border-top: 1px solid rgba(238, 248, 246, .12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  align-items: flex-start;
  padding: 30px clamp(20px, 6vw, 72px) 42px;
  font-size: .875rem;
  color: rgba(238, 248, 246, .5);
}

.site-footer p { margin: 0; }

.site-footer a { color: rgba(238, 248, 246, .74); text-decoration: none; }

.site-footer a:hover { color: var(--sea-bright); }

/* ---------- responsive ------------------------------------------------ */

@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .card { padding-top: 20px; }
  .card + .card { border-top: 1px solid var(--line); }
  .hero { min-height: clamp(560px, 90svh, 760px); }
  .hero-media img { object-position: 58% 38%; }
  .scroll-hint { display: none; }
}

@media (max-width: 620px) {
  .intro-grid { grid-template-columns: 1fr; gap: 14px; }
  .site-header { padding: 18px 20px; }
  .nav-cta { padding: 8px 14px; font-size: .875rem; }
  .site-nav { gap: 14px; }
  .mail { flex-wrap: wrap; }
  .mail-label { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .mail { transition: none; }
}

/* ---------- courses page ---------------------------------------------- */

.page-courses .site-header {
  position: relative;
  background: var(--abyss);
  padding-top: 22px;
  padding-bottom: 22px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--abyss);
  color: #f2fbfa;
  padding: clamp(52px, 8vw, 96px) 0 clamp(56px, 9vw, 104px);
}

.page-hero-media {
  position: absolute;
  inset: 0;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  opacity: .34;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(96deg, rgba(3, 18, 27, .95) 0%, rgba(3, 18, 27, .78) 48%, rgba(4, 24, 34, .48) 100%);
}

.page-hero-inner { position: relative; z-index: 2; }

.page-hero .section-num { color: var(--sea-bright); margin-bottom: 18px; }

.page-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.3rem, 6vw, 4.6rem);
  line-height: 1;
  letter-spacing: -.03em;
  margin: 0 0 26px;
  max-width: 18ch;
  text-wrap: balance;
}

.page-lede {
  max-width: 48ch;
  margin: 0 0 34px;
  color: rgba(238, 250, 248, .82);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
}

.course-list-section {
  background: #fbfaf7;
  padding: clamp(56px, 9vw, 110px) 0 clamp(64px, 10vw, 120px);
}

.course-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.course {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: clamp(14px, 4vw, 44px);
  padding: clamp(26px, 4vw, 40px) 0;
  border-bottom: 1px solid var(--line);
}

.course-num {
  font-family: var(--display);
  font-size: .875rem;
  letter-spacing: .16em;
  color: var(--sea);
  padding-top: 6px;
  font-variant-numeric: tabular-nums;
}

.course-body { max-width: 46rem; }

.course-body h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.4vw, 1.625rem);
  letter-spacing: -.015em;
  margin: 0 0 10px;
}

.course-body p {
  margin: 0 0 12px;
  color: #3b4c53;
  text-wrap: pretty;
}

.course-body .course-meta {
  margin: 0;
  font-size: .875rem;
  letter-spacing: .04em;
  color: var(--muted);
}

@media (max-width: 620px) {
  .course { grid-template-columns: 1fr; gap: 8px; }
  .page-hero-media img { object-position: 60% 40%; opacity: .28; }
}

/* ---------- gallery --------------------------------------------------- */

.gallery-section {
  background: #fbfaf7;
  padding: clamp(56px, 9vw, 110px) 0 clamp(64px, 10vw, 120px);
  border-bottom: 1px solid var(--line);
}

.gallery-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 18px);
}

.shot {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: var(--paper-2);
  aspect-ratio: 4 / 3;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.shot:hover img { transform: scale(1.03); }

.shot-wide { grid-column: span 2; aspect-ratio: 16 / 9; }

.shot-tall { grid-column: span 1; aspect-ratio: 3 / 4; }

@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .shot-wide, .shot-tall { grid-column: span 1; aspect-ratio: 4 / 3; }
}
