/* ============================================================
   DEEPER — freediving & apnea school
   Concept: the page is a descent. Background darkens from
   sea-foam surface to abyss; a fixed depth gauge tracks you.
   Type: Cormorant Garamond (display serif) · Manrope (body)
         · JetBrains Mono (depth/data readouts)
   ============================================================ */

:root {
  --foam: #e9f4f4;
  --shallow: #2bb7c4;
  --mid: #0e6e8c;
  --deep: #073e5c;
  --abyss: #04243a;
  --abyss-2: #021726;
  --buoy: #ff7a4d;   /* warm oxygen/safety accent */
  --sand: #f2e6d0;
  --ink: #06222f;
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  /* descending gradient: foam -> abyss across the whole page */
  background: linear-gradient(
    180deg,
    var(--foam) 0%,
    #bfe6e8 9%,
    var(--shallow) 22%,
    var(--mid) 40%,
    var(--deep) 60%,
    var(--abyss) 80%,
    var(--abyss-2) 100%
  );
  background-repeat: no-repeat;
  color: var(--foam);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  line-height: 1.04;
  margin: 0;
  letter-spacing: 0.005em;
}
a { color: inherit; text-decoration: none; }
.mono { font-family: "JetBrains Mono", monospace; }

.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-weight: 500;
  margin: 0 0 1.6rem;
}

/* ---------- depth gauge ---------- */
.gauge {
  position: fixed;
  top: 50%;
  left: clamp(0.8rem, 2.5vw, 2.2rem);
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  mix-blend-mode: difference;
}
.gauge-line {
  position: relative;
  width: 2px;
  height: 46vh;
  background: rgba(233, 244, 244, 0.35);
}
.tick {
  position: absolute;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.tick i {
  width: 9px; height: 1px;
  background: rgba(233,244,244,0.6);
  display: block;
}
.tick b {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  font-weight: 400;
  color: rgba(233,244,244,0.7);
}
.diver {
  position: absolute;
  left: 50%;
  top: 0%;
  width: 11px; height: 11px;
  margin-left: -5.5px;
  margin-top: -5.5px;
  border-radius: 50%;
  background: var(--buoy);
  box-shadow: 0 0 0 4px rgba(255,122,77,0.25);
  transition: top 0.12s linear;
}
.gauge-read {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.gauge-read small { opacity: 0.6; margin-left: 2px; }

/* ---------- topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.2rem clamp(1.2rem, 5vw, 3.5rem);
}
.brand {
  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
  letter-spacing: 0.32em;
  font-size: 1.05rem;
  color: var(--ink);
}
.nav { display: flex; gap: 2rem; }
.nav a { font-size: 0.92rem; color: var(--ink); opacity: 0.75; transition: opacity 0.2s; }
.nav a:hover { opacity: 1; }
.cta-top {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border: 1.5px solid var(--ink);
  border-radius: 100px;
  color: var(--ink);
  transition: background 0.2s, color 0.2s;
}
.cta-top:hover { background: var(--ink); color: var(--foam); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 9vh, 7rem) clamp(1.2rem, 5vw, 3.5rem) clamp(4rem, 10vh, 8rem);
  color: var(--ink);
}
.ripple {
  position: absolute;
  inset: -20% -50% auto -50%;
  height: 120%;
  background:
    radial-gradient(60% 40% at 70% 20%, rgba(255,255,255,0.5), transparent 70%),
    radial-gradient(40% 30% at 20% 30%, rgba(255,255,255,0.35), transparent 70%);
  pointer-events: none;
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(0,0,0) scale(1); opacity: 0.8; }
  to { transform: translate3d(2%, 1%, 0) scale(1.06); opacity: 1; }
}
.hero h1 {
  position: relative;
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 1.8rem;
}
.hero-sub {
  position: relative;
  max-width: 40ch;
  font-size: 1.12rem;
  color: #0a3344;
  margin: 0 0 2.4rem;
}
.hero-actions { position: relative; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-block;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.9rem 1.7rem;
  border-radius: 100px;
  background: var(--ink);
  color: var(--foam);
  border: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); background: var(--deep); }
.btn-ghost {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 0.4rem;
  border-bottom: 1.5px solid currentColor;
  border-radius: 0;
  color: var(--ink);
}
.hero-stats {
  position: relative;
  display: flex;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  margin-top: 3.2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(6,34,47,0.18);
}
.hero-stats strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: 2.2rem;
  line-height: 1;
}
.hero-stats span { font-size: 0.82rem; color: #0a3344; opacity: 0.85; }
.scroll-hint {
  position: relative;
  display: inline-block;
  margin-top: 2.6rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #0a3344;
  opacity: 0.6;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(5px); opacity: 1; } }

/* ---------- zones ---------- */
.zone {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4rem, 12vh, 9rem) clamp(1.2rem, 5vw, 3.5rem);
}
.zone-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--buoy);
  margin-bottom: 2.4rem;
}
.zone-mark i { color: rgba(255,255,255,0.4); font-style: normal; }

/* about */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
  margin-bottom: 4rem;
}
.about h2 {
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  font-weight: 400;
  color: var(--ink);
}
.about-body p { color: #0c3c4e; margin: 0 0 1.2rem; }
.about-body em { font-style: italic; color: var(--mid); }
.pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.pillars li {
  border-top: 1.5px solid rgba(6,34,47,0.2);
  padding-top: 1rem;
}
.p-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: var(--buoy);
}
.pillars h3 { font-size: 1.5rem; margin: 0.4rem 0 0.5rem; color: var(--ink); }
.pillars p { font-size: 0.9rem; color: #0c3c4e; margin: 0; }

/* courses */
.courses-title { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 400; }
.courses-lede { color: #d6eef0; opacity: 0.85; margin: 0.6rem 0 3rem; max-width: 44ch; }
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  align-items: stretch;
}
.course {
  background: rgba(233, 244, 244, 0.07);
  border: 1px solid rgba(233,244,244,0.16);
  border-radius: 16px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(6px);
}
.course.featured {
  background: var(--foam);
  color: var(--ink);
  border-color: var(--foam);
  transform: translateY(-12px);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
}
.c-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; }
.c-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.3rem 0.6rem;
  border-radius: 100px;
  background: rgba(255,122,77,0.18);
  color: var(--buoy);
}
.course.featured .c-tag { background: var(--buoy); color: #fff; }
.c-depth { font-size: 0.8rem; opacity: 0.7; }
.course h3 { font-size: 1.9rem; font-weight: 500; margin-bottom: 0.6rem; }
.course > p { font-size: 0.95rem; opacity: 0.88; margin: 0 0 1.4rem; }
.course.featured > p { opacity: 1; color: #0c3c4e; }
.c-list { list-style: none; margin: 0 0 1.6rem; padding: 0; flex: 1; }
.c-list li {
  font-size: 0.88rem;
  padding: 0.45rem 0 0.45rem 1.3rem;
  position: relative;
  border-bottom: 1px solid rgba(233,244,244,0.12);
}
.course.featured .c-list li { border-color: rgba(6,34,47,0.12); }
.c-list li::before {
  content: "◦";
  position: absolute; left: 0;
  color: var(--buoy);
}
.c-foot { display: flex; align-items: center; justify-content: space-between; }
.price { font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 2rem; }
.c-link { font-weight: 600; font-size: 0.92rem; color: var(--buoy); }
.course.featured .c-link { color: var(--mid); }

/* philosophy / freefall */
.deep {
  text-align: center;
  background-image:
    linear-gradient(rgba(3,32,49,0.74), rgba(2,18,30,0.88)),
    url("images/deeper-hero.webp");
  background-size: cover;
  background-position: center;
  border-radius: 22px;
}
.freefall {
  max-width: 24ch;
  margin: 0 auto;
}
.freefall p {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  line-height: 1.22;
  margin: 0 0 1.8rem;
}
.freefall em { color: var(--buoy); font-style: italic; }
.freefall cite {
  font-family: "JetBrains Mono", monospace;
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

/* crew */
.crew h2 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 400; }
.crew-lede { opacity: 0.8; margin: 0.6rem 0 3rem; }
.crew-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.member { }
.m-photo {
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  margin-bottom: 1.1rem;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.m-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(43,183,196,0.12), rgba(4,36,58,0.32));
}
.m1 { background-image: url("images/crew-nora.webp"); }
.m2 { background-image: url("images/crew-marco.webp"); }
.m3 { background-image: url("images/crew-yuki.webp"); }
.member h3 { font-size: 1.7rem; font-weight: 500; }
.m-role { font-family: "JetBrains Mono", monospace; font-size: 0.74rem; color: var(--buoy); margin: 0.2rem 0 0.7rem; }
.member p { font-size: 0.92rem; opacity: 0.85; margin: 0; }

/* book */
.book {
  background: var(--abyss-2);
  padding: clamp(4rem, 10vh, 7rem) clamp(1.2rem, 5vw, 3.5rem);
}
.book-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.eyebrow.light { color: var(--buoy); }
.book h2 { font-size: clamp(2.4rem, 7vw, 4.4rem); font-weight: 400; margin-bottom: 1rem; }
.book-sub { opacity: 0.8; margin: 0 auto 2.6rem; max-width: 46ch; }
.book-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  text-align: left;
}
.book-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9fc4cf;
}
.book-form label:nth-child(3) { grid-column: 1 / -1; }
.book-form input, .book-form select {
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(233,244,244,0.2);
  background: rgba(233,244,244,0.05);
  color: var(--foam);
}
.book-form input::placeholder { color: #6f93a0; }
.book-form input:focus, .book-form select:focus {
  outline: none;
  border-color: var(--buoy);
}
.btn.wide { grid-column: 1 / -1; background: var(--buoy); color: #06222f; font-size: 1.02rem; }
.btn.wide:hover { background: #ff8e66; }
.book-fine { font-size: 0.8rem; opacity: 0.6; margin: 1.4rem 0 0; }

/* footer */
.footer {
  background: var(--abyss-2);
  padding: 3rem clamp(1.2rem, 5vw, 3.5rem) 2.4rem;
  border-top: 1px solid rgba(233,244,244,0.1);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
}
.foot-brand {
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.3em;
  font-size: 1.1rem;
}
.foot-cols { display: flex; gap: clamp(2rem, 6vw, 5rem); flex-wrap: wrap; justify-content: flex-end; }
.foot-cols > div { display: flex; flex-direction: column; gap: 0.5rem; }
.foot-cols span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--buoy);
  margin-bottom: 0.3rem;
}
.foot-cols a { font-size: 0.9rem; opacity: 0.78; }
.foot-cols a:hover { opacity: 1; }
.foot-fine { grid-column: 1 / -1; font-size: 0.78rem; opacity: 0.45; margin: 1.5rem 0 0; }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .gauge { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .course-grid { grid-template-columns: 1fr; }
  .course.featured { transform: none; }
  .crew-grid { grid-template-columns: 1fr; max-width: 360px; }
  .footer { grid-template-columns: 1fr; }
  .foot-cols { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .nav { display: none; }
  .pillars { grid-template-columns: 1fr; }
  .book-form { grid-template-columns: 1fr; }
  .book-form label:nth-child(3) { grid-column: auto; }
  .hero-stats { flex-wrap: wrap; gap: 1.4rem; }
}

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

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--buoy);
  outline-offset: 3px;
  border-radius: 6px;
}
