/* =========================================================
   Wild Water Babie — Madeline Haylock
   Shared styles for every page
   ========================================================= */

:root {
  --abyss: #041820;
  --deep: #07303b;
  --ocean: #0d4f5c;
  --lagoon: #2f8f8a;
  --foam: #a9ddd3;
  --sand: #f5efe5;
  --sand-2: #ebe2d3;
  --ink: #12262c;
  --muted: #5b6f73;
  --coral: #e07a5f;
  --coral-dark: #c4613f;
  --white: #ffffff;

  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, Segoe UI, sans-serif;

  --radius: 18px;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(2.8rem, 8vw, 6.5rem); letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--lagoon);
  margin-bottom: 1rem;
  display: inline-block;
}
.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--muted); max-width: 640px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .95em 1.6em;
  border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: .02em;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--coral { background: var(--coral); color: var(--white); }
.btn--coral:hover { background: var(--coral-dark); }
.btn--ghost { border-color: currentColor; background: transparent; }
.btn--light { background: var(--sand); color: var(--abyss); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .35s ease, box-shadow .35s ease, color .35s ease;
  color: var(--white);
}
.nav.is-solid, .nav--light {
  background: rgba(245, 239, 229, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(18, 38, 44, .08);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; }
.nav__logo { font-family: var(--serif); font-size: 1.4rem; text-decoration: none; white-space: nowrap; }
.nav__logo span { color: var(--coral); }
.nav__links { display: flex; gap: clamp(1rem, 3vw, 2.4rem); list-style: none; margin: 0; padding: 0; }
.nav__links a {
  text-decoration: none; font-size: .9rem; font-weight: 500; letter-spacing: .04em;
  position: relative; padding: .3em 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--coral); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__toggle { display: none; background: none; border: 0; color: inherit; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; transition: .3s; }

@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--sand); color: var(--ink);
    padding: 1rem var(--gutter) 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,.12);
    transform: translateY(calc(-100% - var(--nav-h))); visibility: hidden; transition: transform .35s ease, visibility 0s .35s;
  }
  .nav__links a { display: block; padding: .9em 0; font-size: 1.1rem; border-bottom: 1px solid var(--sand-2); }
  .nav.is-open .nav__links { transform: translateY(0); visibility: visible; transition: transform .35s ease; }
  .nav.is-open { background: var(--sand); color: var(--ink); }
}

/* ---------- Placeholders (to be replaced with real media) ---------- */
.ph {
  position: relative;
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(169,221,211,.35), transparent 60%),
    linear-gradient(160deg, var(--lagoon), var(--deep) 70%);
  color: rgba(255,255,255,.85);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  padding: 1rem;
  overflow: hidden;
}
.ph::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, transparent 0 40px, rgba(255,255,255,.04) 40px 80px);
  animation: caustics 12s linear infinite;
}
.ph > span { position: relative; }
@keyframes caustics { to { background-position: 400px 0; } }

.todo {
  background: rgba(224,122,95,.12);
  border: 1.5px dashed var(--coral);
  border-radius: 8px;
  padding: .1em .45em;
  color: var(--coral-dark);
  font-weight: 500;
}

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  padding: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem)) 0 clamp(2.5rem, 6vw, 4.5rem);
  position: relative;
}
.page-hero h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); }
.page-hero .who { font-family: var(--serif); font-style: italic; color: var(--lagoon); font-size: 1.2rem; }

section { position: relative; }
.section { padding: clamp(3.5rem, 9vw, 7rem) 0; }
.section--tint { background: var(--sand-2); }
.section--deep { background: var(--deep); color: var(--sand); }
.section--deep .eyebrow { color: var(--foam); }
.section--deep .lead { color: rgba(245,239,229,.75); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.footer {
  background: var(--abyss); color: rgba(245,239,229,.7);
  padding: 3rem 0; font-size: .9rem;
}
.footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.footer__brand { font-family: var(--serif); font-size: 1.3rem; color: var(--sand); }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--foam); }
.footer__links { display: flex; gap: 1.4rem; flex-wrap: wrap; }

/* =========================================================
   HOME — the dive
   ========================================================= */
.home { background: var(--abyss); color: var(--sand); }

.hero {
  min-height: 100vh; min-height: 100svh;
  position: relative; display: flex; align-items: flex-end;
  padding-bottom: clamp(3rem, 10vh, 7rem);
  overflow: hidden;
}
.hero__media, .hero__media .ph, .hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,24,32,.15) 0%, rgba(4,24,32,.35) 55%, var(--abyss) 100%);
}
.hero__content { position: relative; z-index: 2; }
.hero__brand { font-family: var(--serif); font-size: clamp(3.2rem, 11vw, 8.5rem); line-height: .95; margin: 0 0 1.2rem; }
.hero__brand em { color: var(--foam); font-style: italic; }
.hero__names { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; align-items: baseline; font-size: clamp(1rem, 2vw, 1.25rem); }
.hero__names strong { font-weight: 500; letter-spacing: .02em; }
.hero__names .handle { color: var(--coral); font-weight: 600; }
.hero__role { color: rgba(245,239,229,.85); margin-top: .4rem; font-size: clamp(1rem, 2vw, 1.25rem); }
.dive-cue {
  margin-top: 2.6rem; display: inline-flex; align-items: center; gap: .8rem;
  font-size: .8rem; letter-spacing: .25em; text-transform: uppercase; text-decoration: none; color: var(--foam);
}
.dive-cue i { width: 1px; height: 46px; background: linear-gradient(var(--foam), transparent); animation: sink 2.2s ease-in-out infinite; }
@keyframes sink { 0%,100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(10px); opacity: .4; } }

/* depth gauge */
.gauge {
  position: fixed; left: clamp(10px, 2vw, 28px); top: 50%; transform: translateY(-50%);
  z-index: 40; display: flex; flex-direction: column; align-items: center; gap: .6rem;
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--foam);
  opacity: 0; transition: opacity .5s ease; pointer-events: none;
}
.gauge.is-on { opacity: 1; }
.gauge__track { width: 2px; height: 160px; background: rgba(169,221,211,.2); position: relative; border-radius: 2px; }
.gauge__fill { position: absolute; top: 0; left: 0; width: 100%; background: var(--coral); border-radius: 2px; height: 0; }
.gauge__depth { font-family: var(--serif); font-size: 1.3rem; letter-spacing: 0; text-transform: none; color: var(--sand); }
@media (max-width: 820px) { .gauge { display: none; } }

/* bubbles */
.bubbles { position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.bubbles b {
  position: absolute; bottom: -20px; border-radius: 50%;
  border: 1px solid rgba(169,221,211,.35);
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), transparent 60%);
  animation: rise linear infinite;
}
@keyframes rise {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: .8; }
  50% { transform: translate(14px, -55vh); }
  100% { transform: translate(-8px, -110vh); opacity: 0; }
}

.chapter {
  min-height: 100vh; display: flex; align-items: center;
  padding: clamp(5rem, 12vh, 8rem) 0;
  position: relative; z-index: 2;
}
.chapter__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.chapter--flip .chapter__media { order: -1; }
.chapter__label { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.4rem; color: var(--foam); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600; }
.chapter__label .num { font-family: var(--serif); font-size: 2.4rem; letter-spacing: 0; color: var(--coral); line-height: 1; }
.chapter h2 { color: var(--sand); }
.chapter p { color: rgba(245,239,229,.82); }
.chapter .pull { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.35; color: var(--foam); margin: 1.6rem 0; }
.chapter__media { position: relative; }
.chapter__media .frame {
  border-radius: 200px 200px var(--radius) var(--radius);
  overflow: hidden; aspect-ratio: 4/5; box-shadow: 0 40px 80px rgba(0,0,0,.35);
}
.chapter__media .frame > * { width: 100%; height: 100%; object-fit: cover; }
.chapter__media .tag {
  position: absolute; bottom: -18px; right: -10px;
  background: var(--sand); color: var(--abyss);
  padding: .7rem 1.1rem; border-radius: 999px; font-size: .78rem; font-weight: 600; letter-spacing: .08em;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
@media (max-width: 820px) {
  .chapter { min-height: auto; }
  .chapter__grid { grid-template-columns: 1fr; }
  .chapter--flip .chapter__media { order: 0; }
  .chapter__media .frame { aspect-ratio: 4/4.4; max-width: 460px; }
}

.paths { padding: clamp(5rem, 12vh, 8rem) 0 clamp(4rem, 10vh, 7rem); position: relative; z-index: 2; text-align: center; }
.paths h2 { color: var(--sand); }
.paths__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-top: 3rem; text-align: left; }
.path {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 380px;
  display: flex; align-items: flex-end; padding: 2rem; text-decoration: none; color: var(--sand);
  isolation: isolate;
}
.path .ph { position: absolute; inset: 0; z-index: -2; transition: transform .8s ease; }
.path::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(4,24,32,.85)); }
.path:hover .ph { transform: scale(1.05); }
.path small { display: block; letter-spacing: .22em; text-transform: uppercase; font-size: .75rem; color: var(--foam); margin-bottom: .4rem; font-weight: 600; }
.path h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: .3rem; }
.path p { margin: 0; color: rgba(245,239,229,.8); }
.path .arrow { display: inline-block; margin-top: 1rem; color: var(--coral); font-weight: 600; }
@media (max-width: 720px) { .paths__grid { grid-template-columns: 1fr; } .path { min-height: 300px; } }

/* =========================================================
   SCUBA CV
   ========================================================= */
.cv-hero__grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 3rem; align-items: end; }
.cv-hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.cv-portrait { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; }
.cv-portrait > * { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) { .cv-hero__grid { grid-template-columns: 1fr; } .cv-portrait { max-width: 360px; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(245,239,229,.15); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--deep); padding: 2rem 1.4rem; text-align: center; }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--foam); line-height: 1; margin-bottom: .5rem; }
.stat span { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(245,239,229,.7); }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.two-col { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

.certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.cert {
  background: var(--white); border-radius: 14px; padding: 1.4rem 1.4rem 1.2rem;
  border-top: 4px solid var(--lagoon); box-shadow: 0 2px 0 rgba(18,38,44,.04);
}
.cert--pro { border-top-color: var(--coral); }
.cert h3 { font-size: 1.25rem; margin-bottom: .3rem; }
.cert p { margin: 0; color: var(--muted); font-size: .9rem; }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--sand-2); }
.timeline > li { position: relative; padding: 0 0 2.4rem 2rem; }
.timeline > li::before {
  content: ""; position: absolute; left: -8px; top: .45em; width: 14px; height: 14px; border-radius: 50%;
  background: var(--sand); border: 3px solid var(--lagoon);
}
.timeline .when { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--lagoon); font-weight: 600; }
.timeline h3 { margin: .2rem 0 .2rem; }
.timeline .where { font-style: italic; color: var(--muted); margin-bottom: .6rem; }
.timeline ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.section--tint .timeline { border-left-color: #d9cdb9; }
.section--tint .timeline > li::before { background: var(--sand-2); }

.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { padding: .55em 1.1em; border-radius: 999px; background: var(--white); border: 1px solid var(--sand-2); font-size: .9rem; }

.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.4rem; }
.quote {
  background: var(--white); border-radius: var(--radius); padding: 2rem; margin: 0;
  display: flex; flex-direction: column; justify-content: space-between;
}
.quote blockquote { margin: 0 0 1.4rem; font-family: var(--serif); font-size: 1.2rem; line-height: 1.45; }
.quote blockquote::before { content: "“"; display: block; font-size: 3.4rem; line-height: .6; color: var(--coral); margin-bottom: .4rem; }
.quote figcaption { font-size: .9rem; color: var(--muted); }
.quote figcaption b { color: var(--ink); display: block; }
.section--deep .quote { background: rgba(245,239,229,.06); border: 1px solid rgba(245,239,229,.12); }
.section--deep .quote blockquote { color: var(--sand); }
.section--deep .quote figcaption { color: rgba(245,239,229,.65); }
.section--deep .quote figcaption b { color: var(--sand); }

.cv-download {
  display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between;
  background: var(--abyss); color: var(--sand); border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.2rem);
}
.cv-download h2 { margin: 0; font-size: clamp(1.7rem, 3.5vw, 2.4rem); }

/* =========================================================
   CONTENT CREATION
   ========================================================= */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.service {
  display: flex; flex-direction: column; gap: .4rem;
  padding: 1.8rem; border-radius: var(--radius); background: var(--white);
  text-decoration: none; transition: transform .3s ease, box-shadow .3s ease;
  border: 1px solid var(--sand-2);
}
.service:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(7,48,59,.1); }
.service .n { font-family: var(--serif); color: var(--coral); font-size: 1.5rem; }
.service h3 { font-size: 1.35rem; margin: 0; }
.service p { color: var(--muted); font-size: .95rem; margin: 0; flex: 1; }
.service .see { margin-top: .8rem; font-size: .85rem; font-weight: 600; color: var(--lagoon); }
@media (max-width: 900px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }

.cat-nav {
  position: sticky; top: var(--nav-h); z-index: 20;
  background: rgba(245,239,229,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sand-2);
}
.cat-nav .wrap { display: flex; gap: .5rem; overflow-x: auto; padding-top: .8rem; padding-bottom: .8rem; scrollbar-width: none; }
.cat-nav a {
  white-space: nowrap; text-decoration: none; padding: .55em 1.2em; border-radius: 999px;
  font-size: .88rem; font-weight: 500; border: 1px solid var(--sand-2); background: var(--white);
}
.cat-nav a.is-active { background: var(--deep); color: var(--sand); border-color: var(--deep); }

.cat-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 2.4rem; }
.cat-head h2 { margin: 0; }
.cat-head p { margin: 0; max-width: 460px; color: var(--muted); }

.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
@media (max-width: 900px) { .vgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .vgrid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; } }

.vcard { display: flex; flex-direction: column; scroll-margin-top: calc(var(--nav-h) + 80px); }
.vcard.is-flash .vcard__media { box-shadow: 0 0 0 4px var(--coral); }
.vcard__media {
  position: relative; aspect-ratio: 9/16; border-radius: var(--radius); overflow: hidden;
  background-size: cover; background-position: center; cursor: pointer;
  transition: box-shadow .4s ease;
}
.vcard--wide .vcard__media { aspect-ratio: 16/9; }
.vcard__media .ph { position: absolute; inset: 0; }
.vcard__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.vcard__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 74px; height: 74px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(245,239,229,.92); color: var(--abyss);
  display: grid; place-items: center; z-index: 2;
  box-shadow: 0 10px 30px rgba(0,0,0,.3); transition: transform .3s ease, background .3s ease;
}
.vcard__play svg { width: 26px; height: 26px; margin-left: 4px; }
.vcard__media:hover .vcard__play { transform: translate(-50%, -50%) scale(1.08); background: var(--white); }
.vcard__media.is-playing .vcard__play { display: none; }
.vcard__badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--coral); color: var(--white); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: .4em .8em; border-radius: 999px;
}
.vcard__media.is-playing .vcard__badge { display: none; }
.vcard__body { padding: 1.1rem .2rem 0; }
.vcard__body h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.vcard__body p { color: var(--muted); font-size: .92rem; margin-bottom: .8rem; }
.vcard__meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; font-size: .85rem; }
.vcard__meta .num b { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; color: var(--deep); }
.stats-btn {
  margin-left: auto; background: none; border: 1px solid var(--deep); color: var(--deep);
  border-radius: 999px; padding: .45em 1em; font: inherit; font-weight: 600; font-size: .8rem; cursor: pointer;
}
.stats-btn:hover { background: var(--deep); color: var(--sand); }
.vcard__soon {
  position: absolute; inset: auto 0 0 0; z-index: 3; padding: .8rem; text-align: center;
  background: rgba(4,24,32,.85); color: var(--sand); font-size: .85rem;
}

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center;
  background: rgba(4,24,32,.9); padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox__inner { max-width: 520px; width: 100%; max-height: 90vh; overflow: auto; border-radius: var(--radius); background: var(--sand); }
.lightbox__inner img { width: 100%; height: auto; }
.lightbox__inner .ph { aspect-ratio: 9/16; }
.lightbox__close {
  position: absolute; top: 1rem; right: 1rem; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: var(--sand); color: var(--abyss); font-size: 1.6rem; cursor: pointer;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  min-height: 100vh; min-height: 100svh;
  background: linear-gradient(180deg, var(--sand) 0%, var(--foam) 55%, var(--lagoon) 100%);
  display: flex; flex-direction: column;
}
.contact__main { flex: 1; display: flex; align-items: center; padding: calc(var(--nav-h) + 4rem) 0 5rem; }
.contact__cta { text-align: center; max-width: 820px; margin: 0 auto; }
.contact__cta h1 { font-size: clamp(2.6rem, 8vw, 5.6rem); }
.contact__email {
  display: inline-block; font-family: var(--serif); font-size: clamp(1.3rem, 4vw, 2.2rem);
  color: var(--deep); text-decoration: none; border-bottom: 2px solid var(--coral); margin: .6rem 0 2.2rem;
  word-break: break-all;
}
.socials { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-top: 3.5rem; }
.social {
  display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.3rem; border-radius: 14px;
  background: rgba(255,255,255,.7); text-decoration: none; font-weight: 500;
  transition: transform .25s ease, background .25s ease;
}
.social:hover { transform: translateY(-3px); background: var(--white); }
.social svg { width: 22px; height: 22px; flex: none; color: var(--deep); }
.social small { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .bubbles { display: none; }
}

/* ---------- Real media ---------- */
.path__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s ease; }
.path:hover .path__img { transform: scale(1.05); }
.hero__media video { object-position: center 40%; }
.cv-portrait img { object-position: center 30%; }
.contact { position: relative; isolation: isolate; }
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../media/contact-bg.jpg") center 35% / cover no-repeat;
  opacity: .22; mix-blend-mode: multiply;
}
.quote__stars { color: #e8b04b; letter-spacing: .15em; margin-bottom: .6rem; font-size: 1rem; }
.cert .meta { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--lagoon); font-weight: 600; margin-top: .5rem; }
.stat b.small { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.skill-groups { display: grid; gap: 1.8rem; }
.skill-groups h3 { margin-bottom: .5rem; }
.skill-groups p { margin: 0; color: var(--muted); }
.skill-groups b { color: var(--ink); font-weight: 600; }
.specs-card { grid-column: 1 / -1; }
.cv-download__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Round 2 tweaks ---------- */
.nav__logo { color: var(--foam); }
.nav__logo .at, .footer__brand .at { color: var(--coral); }
.nav.is-solid .nav__logo, .nav--light .nav__logo, .nav.is-open .nav__logo { color: var(--lagoon); }
.footer__brand { color: var(--foam); }

.hero__brand { color: var(--foam); }
.hero__roles {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; align-items: baseline;
  font-size: clamp(1rem, 2vw, 1.25rem); font-weight: 500; letter-spacing: .02em; color: var(--sand);
}
.hero__roles li { position: relative; }
.hero__roles li + li::before { content: "·"; position: absolute; left: -.85rem; color: var(--coral); }
@media (max-width: 600px) {
  .hero__roles { flex-direction: column; gap: .25rem; }
  .hero__roles li + li::before { display: none; }
}

.chapter__icon { width: 2.6rem; height: 2.6rem; color: var(--coral); flex: none; }

/* path cards: keep both text blocks level */
.path p { min-height: 3.4em; }

/* little sea creatures drifting with the bubbles */
.sealife { position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.critter { position: absolute; left: 0; color: var(--foam); opacity: .38; animation: swim linear infinite; }
.critter svg { display: block; width: 100%; height: auto; animation: bob 4s ease-in-out infinite; }
.critter--rev { animation-name: swim-rev; }
.critter--rev svg { transform: scaleX(-1); }
.critter--jelly { animation-name: drift-up; left: auto; }
.critter--jelly svg { animation: pulse 3s ease-in-out infinite; }
@keyframes swim { from { transform: translateX(-12vw); } to { transform: translateX(112vw); } }
@keyframes swim-rev { from { transform: translateX(112vw); } to { transform: translateX(-12vw); } }
@keyframes drift-up { from { transform: translateY(110vh); } to { transform: translateY(-20vh); } }
@keyframes bob { 0%,100% { translate: 0 0; } 50% { translate: 0 8px; } }
@keyframes pulse { 0%,100% { scale: 1 1; } 50% { scale: 1.08 .9; } }
@media (prefers-reduced-motion: reduce) { .sealife { display: none; } }
.hero__media video { object-position: center 38%; }
.path[href="scuba.html"] .path__img { object-position: center 22%; }
.cv-portrait img { object-position: center 35%; }

/* Hero: portrait video sits on the right on wide screens so it stays sharp */
@media (min-width: 900px) {
  .hero { background: var(--abyss); }
  .hero__media { left: auto; width: 52%; }
  .hero__media video { object-position: center 40%; }
  .hero__media::after {
    background:
      linear-gradient(90deg, var(--abyss) 0%, rgba(4,24,32,.55) 22%, rgba(4,24,32,0) 50%),
      linear-gradient(180deg, rgba(4,24,32,0) 60%, var(--abyss) 100%);
  }
  .hero__content { position: relative; z-index: 2; }
  .hero__brand { max-width: 9ch; }
}

/* ---------- Round 3 ---------- */
.hero__brand { font-size: clamp(2.3rem, 7vw, 6.4rem); white-space: nowrap; max-width: none !important; }
.critter svg { transform: scaleX(-1); }            /* fish face the way they swim */
.critter--jelly svg { transform: none; }
.critter--horse svg { animation: bob 3.5s ease-in-out infinite; }

/* =========================================================
   SCUBA — interactive CV on the ocean
   ========================================================= */
.ocean-page { background: linear-gradient(180deg, #06364a 0%, #052a3a 40%, #041820 100%) fixed; color: var(--ink); }
.cvsheet-wrap { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; padding: calc(var(--nav-h) + 2.2rem) var(--gutter) 4rem; }
.cv-actions { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.cv-actions .hint { color: var(--foam); font-size: .85rem; letter-spacing: .06em; }
.cvsheet { display: grid; grid-template-columns: 290px 1fr; background: var(--white); border-radius: 6px; overflow: hidden; box-shadow: 0 40px 90px rgba(0,0,0,.45); font-size: .92rem; line-height: 1.55; }
.cvside { background: var(--deep); color: var(--sand); padding: 2.4rem 1.6rem 2rem 1.9rem; }
.cvside h1 { font-size: 2.3rem; line-height: 1.02; margin: 0 0 .7rem; color: var(--sand); }
.cvside .title { color: var(--foam); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.cvside .title b { color: var(--coral); }
.cvside .facts { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1.2rem; }
.cvside .facts b { display: block; font-family: var(--serif); font-weight: 400; font-size: 2rem; color: var(--coral); line-height: 1; }
.cvside .facts span { display: block; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(245,239,229,.65); margin-top: .3rem; }
.cvside h2 { font-family: var(--sans); font-size: .7rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--foam); margin: 1.6rem 0 .7rem; padding-bottom: .45rem; border-bottom: 1px solid rgba(169,221,211,.25); }
.cvside ul { list-style: none; margin: 0; padding: 0; }
.cvside li { margin-bottom: .45rem; }
.cvside li small { display: block; color: rgba(245,239,229,.6); font-size: .72rem; }
.cvside a { color: var(--sand); text-decoration: none; word-break: break-word; }
.cvside a:hover { color: var(--foam); }
.cvside .sk { margin-bottom: .8rem; }
.cvside .sk small { display: block; color: var(--coral); font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .3rem; }
.cvside .sk li { position: relative; padding-left: .9rem; margin-bottom: .2rem; font-size: .84rem; line-height: 1.4; }
.cvside .sk li::before { content: ""; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: var(--foam); }

.cvmain { padding: 2.2rem 2.2rem 2rem 2rem; }
.cvmain section { margin-bottom: 1.8rem; }
.cvmain h2 { font-size: 1.55rem; color: var(--deep); margin: 0 0 .9rem; display: flex; align-items: center; gap: .9rem; }
.cvmain h2::after { content: ""; flex: 1; height: 1px; background: #d9cdb9; }
.qcerts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem 1rem; }
.qcert { border-left: 3px solid var(--lagoon); padding-left: .7rem; }
.qcert.pro { border-left-color: var(--coral); grid-column: 1 / -1; }
.qcert b { display: block; font-size: .92rem; }
.qcert span { color: var(--muted); font-size: .84rem; }
.qspecs { margin-top: .9rem; padding: .8rem 1rem; background: var(--sand); border-radius: 8px; font-size: .88rem; }
.qspecs b { color: var(--deep); }

.stampwrap { float: right; margin: -1.4rem -.6rem .8rem 1.2rem; filter: drop-shadow(0 3px 6px rgba(0,0,0,.22)); }
.stamp { width: 112px; height: 136px; transform: rotate(4deg); padding: 9px;
  background: radial-gradient(circle, transparent 3.6px, #fbf8f2 3.9px) -6px -6px / 12px 12px; }
.stamp img, .stamp .ph { width: 100%; height: 100%; object-fit: cover; display: block; background: linear-gradient(160deg, var(--lagoon), var(--deep)); }

.xjob { border-bottom: 1px solid var(--sand-2); }
.xjob summary { list-style: none; cursor: pointer; padding: .75rem 0 .7rem; display: block; }
.xjob summary::-webkit-details-marker { display: none; }
.xjob .when { display: block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--lagoon); font-weight: 700; }
.xjob .t { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-weight: 700; font-size: 1rem; }
.xjob .where { display: block; font-style: italic; color: var(--muted); font-size: .88rem; }
.xjob p { margin: 0 0 1rem; color: #33464b; font-size: .92rem; animation: drop .35s ease; }
.xjob summary:hover .t { color: var(--lagoon); }
.chev { width: 20px; height: 20px; flex: none; color: var(--coral); transition: transform .3s ease; }
details[open] > summary .chev { transform: rotate(180deg); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.proof { display: grid; gap: .8rem; }
.xdrop { background: var(--sand); border-radius: 10px; }
.xdrop summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; color: var(--deep); font-size: .95rem; }
.xdrop summary::-webkit-details-marker { display: none; }
.xdrop summary b { font-weight: 700; }
.xdrop .shots, .xdrop .soon { padding: 0 1.1rem 1.1rem; animation: drop .35s ease; }
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.shot { padding: 0; border: 1px solid var(--sand-2); border-radius: 8px; overflow: hidden; background: #fff; cursor: zoom-in; transition: transform .25s ease, box-shadow .25s ease; }
.shot:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(7,48,59,.15); }
.shot img { width: 100%; height: auto; display: block; }
.soon { color: var(--muted); margin: 0; }
.lightbox__inner img { background: #fff; }

@media (max-width: 760px) {
  .cvsheet { grid-template-columns: 1fr; }
  .cvmain { padding: 1.6rem 1.2rem; }
  .cvside { padding: 1.8rem 1.4rem; }
  .qcerts { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: 1fr; }
  .stamp { width: 90px; height: 110px; }
}
@media (max-width: 420px) { .qcerts { grid-template-columns: 1fr; } }
.ocean-page { background: #052a3a linear-gradient(180deg, #06364a 0%, #052a3a 45%, #041820 100%); }
.cvmain { position: relative; }
.stampwrap { position: absolute; float: none; top: 1.1rem; right: 1.4rem; margin: 0; z-index: 1; }
.cvmain > section:first-child > h2,
.cvmain > section:first-child .qcert.pro { margin-right: 120px; }
.xdrop summary > span { flex: 1; }
@media (max-width: 760px) {
  .stampwrap { top: .9rem; right: .9rem; }
  .cvmain > section:first-child > h2,
  .cvmain > section:first-child .qcert.pro { margin-right: 96px; }
  .cvmain > section:first-child > h2 { font-size: 1.35rem; }
}
.shotgroup h4 { margin: 0; padding: .2rem 1.1rem .6rem; font-family: var(--sans); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--lagoon); }
.shotgroup + .shotgroup { margin-top: .4rem; }
.shots { align-items: start; }
.path[href="scuba.html"] .path__img { object-position: center 95%; }

/* Hero back to full width on every screen size */
@media (min-width: 900px) {
  .hero__media { left: 0; width: 100%; }
  .hero__media video { object-position: center 30%; }
  .hero__media::after {
    background:
      linear-gradient(90deg, rgba(4,24,32,.6) 0%, rgba(4,24,32,.15) 55%, rgba(4,24,32,0) 100%),
      linear-gradient(180deg, rgba(4,24,32,.1) 0%, rgba(4,24,32,.3) 60%, var(--abyss) 100%);
  }
}
