/* ==========================================================================
   Foghead Innovations — www.foghead.ca

   Palette, type and shapes are taken from the DiveCohorts sites
   (www.divecohorts.com css/landing.css) so the studio and the platforms
   it runs read as one family. No framework and no JavaScript. Fonts are
   self-hosted, so the page makes no third-party requests (Google Fonts
   served from Google's servers have been ruled a GDPR breach in Germany).
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/fraunces-600-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/fraunces-600-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --teal-900: #0e2a32;
  --teal-800: #0b4f5c;
  --teal-700: #0b6e7f;
  --teal-500: #14879a;
  --teal-300: #7fd0da;
  --teal-200: #a8ced4;
  --teal-100: #e3f0f1;
  --coral: #ff6f59;
  --coral-600: #e5573f;
  --slate: #5c7079;
  --mist: #f2f6f6;
  --border: #dce6e6;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 0.75rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  font: 400 1.0625rem/1.65 var(--sans);
  color: var(--teal-900);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: var(--teal-700); }
a:hover { color: var(--teal-900); }
h1, h2 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); max-width: 22ch; }
h3 { font-size: 1.1rem; font-weight: 600; margin: 0 0 0.4rem; }
p { margin: 0 0 1rem; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--coral); color: #fff; padding: .5rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; }

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

/* ---- Navbar ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--teal-900);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4rem;
}
.brand {
  display: flex; align-items: center; gap: .65rem;
  text-decoration: none; color: #fff;
  font: 600 1.3rem/1 var(--serif);
}
.brand:hover { color: #fff; }
.brand em { font-style: normal; color: var(--teal-300); }
.nav nav { display: flex; align-items: center; gap: 1.6rem; }
.nav nav a {
  color: rgba(255,255,255,.78); text-decoration: none;
  font-weight: 500; font-size: .95rem;
}
.nav nav a:hover { color: #fff; }
.nav nav .nav-cta {
  color: #fff; border: 1px solid rgba(255,255,255,.45);
  padding: .4rem .95rem; border-radius: 999px;
}
.nav nav .nav-cta:hover { background: rgba(255,255,255,.12); }
@media (max-width: 760px) {
  .nav nav a:not(.nav-cta) { display: none; }
  .brand { font-size: 1.1rem; }
}

/* The DiveCohorts "depth gauge" tick rule, carried over as the family mark. */
.depth-rule {
  height: 6px;
  background: repeating-linear-gradient(90deg,
    var(--teal-300) 0 2px, transparent 2px 10px);
  opacity: .35;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block; text-decoration: none;
  font-weight: 600; font-size: 1rem;
  padding: .75rem 1.4rem; border-radius: .6rem;
  border: 1px solid transparent;
  transition: background-color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--coral); border-color: var(--coral); color: #fff; }
.btn-accent:hover { background: var(--coral-600); border-color: var(--coral-600); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-lg { font-size: 1.2rem; padding: .95rem 1.9rem; }

/* ---- Hero ---- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 78% 20%, rgba(127,208,218,.18), transparent 70%),
    linear-gradient(160deg, var(--teal-900) 0%, var(--teal-800) 55%, var(--teal-700) 100%);
  color: #fff;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(5rem, 9vw, 7rem);
}
.hero h1 { color: #fff; }
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr .9fr;
  align-items: center; gap: 2rem;
}
.eyebrow {
  font-size: .82rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--teal-300);
}
.lead { font-size: 1.2rem; color: rgba(255,255,255,.85); max-width: 36ch; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-globes { width: 100%; max-width: 440px; justify-self: end; overflow: visible; }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-globes { max-width: 260px; justify-self: center; order: -1; }
}

/* A turning wire globe. Each meridian is a full circle squashed along x:
   scaleX running 1 → -1 → 1 with ease-in-out is close enough to cos(t)
   to read as rotation. Three meridians a sixth of a turn apart. */
.globe .m {
  transform-box: fill-box;
  transform-origin: center;
  animation: spin 18s ease-in-out infinite alternate;
}
.globe .m2 { animation-delay: -6s; }
.globe .m3 { animation-delay: -12s; }
@keyframes spin {
  from { transform: scaleX(1); }
  to   { transform: scaleX(-1); }
}

/* Rising bubbles. Nine of them, each with its own size, lane and pace. */
.bubbles { position: absolute; inset: 0; pointer-events: none; }
.bubbles i {
  position: absolute; bottom: -40px;
  width: var(--s, 10px); height: var(--s, 10px);
  left: var(--x, 50%);
  border-radius: 50%;
  border: 1.5px solid rgba(227,240,241,.45);
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.35), transparent 60%);
  animation: rise var(--d, 12s) linear infinite;
  animation-delay: var(--w, 0s);
  opacity: 0;
}
.bubbles i:nth-child(1) { --x: 6%;  --s: 8px;  --d: 11s; --w: -2s; }
.bubbles i:nth-child(2) { --x: 14%; --s: 14px; --d: 15s; --w: -9s; }
.bubbles i:nth-child(3) { --x: 27%; --s: 6px;  --d: 9s;  --w: -4s; }
.bubbles i:nth-child(4) { --x: 41%; --s: 11px; --d: 13s; --w: -11s; }
.bubbles i:nth-child(5) { --x: 52%; --s: 7px;  --d: 10s; --w: -6s; }
.bubbles i:nth-child(6) { --x: 63%; --s: 16px; --d: 17s; --w: -1s; }
.bubbles i:nth-child(7) { --x: 74%; --s: 9px;  --d: 12s; --w: -8s; }
.bubbles i:nth-child(8) { --x: 86%; --s: 12px; --d: 14s; --w: -5s; }
.bubbles i:nth-child(9) { --x: 94%; --s: 6px;  --d: 9s;  --w: -3s; }
@keyframes rise {
  0%   { transform: translate(0, 0); opacity: 0; }
  10%  { opacity: 1; }
  50%  { transform: translate(10px, -50vh); }
  90%  { opacity: .8; }
  100% { transform: translate(-6px, -100vh); opacity: 0; }
}

.wave {
  position: absolute; left: 0; right: 0; bottom: -1px;
  width: 100%; height: 56px; fill: var(--mist);
}

/* ---- Sections ---- */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section-alt { background: #fff; border-block: 1px solid var(--border); }
.kicker {
  font-size: .8rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--coral-600); margin-bottom: .6rem;
}
.intro { color: var(--slate); max-width: 60ch; margin-bottom: 0; }

.grid3, .grid2 { display: grid; gap: 1.25rem; margin-top: 2.2rem; }
.grid3 { grid-template-columns: repeat(3, 1fr); }
.grid2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid3, .grid2 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: 0 1px 2px rgba(14,42,50,.04);
}
.card p { color: var(--slate); margin: 0; }
.icon {
  width: 46px; height: 46px; border-radius: .65rem;
  background: var(--teal-100); color: var(--teal-700);
  display: grid; place-items: center; margin-bottom: 1rem;
}
.icon svg {
  width: 24px; height: 24px; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.platform {
  display: flex; gap: 1.2rem; align-items: flex-start;
  text-decoration: none; color: inherit; background: var(--mist);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.platform:hover {
  color: inherit; transform: translateY(-3px);
  border-color: var(--teal-200);
  box-shadow: 0 14px 30px rgba(14,42,50,.10);
}
.platform img { flex-shrink: 0; }
.platform .arrow { color: var(--coral); display: inline-block; transition: transform .2s; }
.platform:hover .arrow { transform: translateX(4px); }
.platform .url {
  display: inline-block; margin-top: .8rem;
  font-size: .85rem; font-weight: 600; color: var(--teal-700);
}

/* ---- Regions: the logo's echelon, read left to right ---- */
.regions {
  list-style: none; padding: 0; margin: 2.4rem 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
  counter-reset: region;
}
.region {
  position: relative;
  background: var(--teal-900); color: #fff;
  border-radius: var(--radius); padding: 1.8rem 1.6rem 1.6rem;
  overflow: hidden;
}
.region::after {           /* depth-gauge ticks along the bottom edge */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 10px);
  opacity: .25;
}
.region h3 { font: 600 1.45rem/1.2 var(--serif); margin-bottom: .3rem; }
.region p { color: rgba(255,255,255,.75); margin: 0; font-size: .98rem; }
.region .countries { color: var(--teal-300); font-weight: 600; margin-bottom: .8rem; font-size: .92rem; }
.mini {
  width: 54px; height: 54px; margin-bottom: 1.1rem;
  fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round;
  transform: rotate(-15deg);
}
.r1 .mini { color: var(--coral); }
.r2 .mini { color: var(--teal-100); }
.r3 .mini { color: var(--teal-200); }
.r1 { background: linear-gradient(160deg, var(--teal-900), #123a44); }
.r2 { background: linear-gradient(160deg, var(--teal-900), var(--teal-800)); }
.r3 {
  background: linear-gradient(160deg, var(--teal-800), var(--teal-700));
  border: 1px dashed rgba(127,208,218,.5);
}
.chip {
  display: inline-block; vertical-align: middle;
  font: 700 .68rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase;
  background: var(--coral); color: #fff;
  padding: .35rem .55rem; border-radius: 999px; margin-left: .3rem;
  position: relative; top: -2px;
}
@media (max-width: 900px) { .regions { grid-template-columns: 1fr; } }

/* ---- About ---- */
.about {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center;
}
.about p { color: var(--slate); max-width: 58ch; }
.facts { margin: 0; display: grid; gap: .9rem; }
.facts div {
  border-left: 4px solid var(--teal-500);
  background: var(--mist); border-radius: 0 .6rem .6rem 0;
  padding: .9rem 1.2rem;
}
.facts div:first-child { border-left-color: var(--coral); }
.facts dt {
  font-size: .75rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--slate);
}
.facts dd { margin: .15rem 0 0; font: 600 1.25rem/1.3 var(--serif); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 2rem; } }

/* ---- Contact ---- */
.contact {
  background: linear-gradient(160deg, var(--teal-700) 0%, var(--teal-900) 100%);
  color: #fff; text-align: center;
  padding: clamp(4rem, 8vw, 6rem) 0;
}
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact h2 { color: #fff; max-width: 24ch; }
.contact p { color: rgba(255,255,255,.82); font-size: 1.15rem; margin-bottom: 1.8rem; }

/* ---- Footer ---- */
.footer { background: var(--teal-900); color: rgba(255,255,255,.65); padding: 2rem 0; font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer p { margin: 0; }
.footer a { color: var(--teal-300); }
.footer a:hover { color: #fff; }
.footer .brand { font-size: 1.1rem; }

/* ---- Motion off for anyone who has asked for less ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .globe .m, .bubbles i { animation: none; }
  .bubbles { display: none; }
  .globe .m2 { transform: scaleX(.5); }
  .globe .m3 { transform: scaleX(-.5); }
  .btn, .platform, .platform .arrow { transition: none; }
}
