:root {
  --bg: #f1f5f9;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #0ea5e9;
  --accent-2: #06b6d4;
  --border: #e2e8f0;
  --tint-a: rgba(14, 165, 233, 0.1);
  --tint-b: rgba(6, 182, 212, 0.1);
  --card-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
  --img-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
  --overlay-text: #ffffff;
  --overlay-muted: #94a3b8;
}

:root[data-theme="dark"] {
  --bg: #0f172a;
  --surface: #1e293b;
  --text: #f1f5f9;
  --muted: #cbd5e1;
  --accent: #38bdf8;
  --accent-2: #22d3ee;
  --border: rgba(255, 255, 255, 0.1);
  --tint-a: rgba(14, 165, 233, 0.12);
  --tint-b: rgba(6, 182, 212, 0.12);
  --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  --img-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

:root[data-theme="light"] {
  color-scheme: light;
}

:root:not([data-theme]) {
  color-scheme: light dark;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: clamp(2.5rem, 7vw, 5rem) 1.25rem 6rem;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 18%, var(--tint-a) 0%, transparent 45%),
    radial-gradient(circle at 88% 82%, var(--tint-b) 0%, transparent 45%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  max-width: 46rem;
  margin: 0 auto;
}

/* ---------- Hero ---------- */

header {
  position: relative;
  overflow: hidden;
  margin: 0 0 3rem;
  padding: clamp(3.5rem, 9vw, 6rem) clamp(1.5rem, 5vw, 3rem);
  text-align: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  border-radius: 24px;
  box-shadow: var(--img-shadow);
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 40%, rgba(14, 165, 233, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 82% 85%, rgba(6, 182, 212, 0.18) 0%, transparent 50%);
  pointer-events: none;
}

header > * {
  position: relative;
}

h1 {
  position: relative;
  margin: 0.75rem 0 0;
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--overlay-text);
  background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-kicker {
  display: inline-block;
  margin: 0;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #e2e8f0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-tagline {
  margin: 1.75rem auto 0;
  max-width: 36rem;
  color: var(--overlay-muted);
  font-size: clamp(1.05rem, 2.6vw, 1.2rem);
  font-weight: 500;
  line-height: 1.65;
}

.hero-ribbon {
  display: block;
  width: 72px;
  height: 5px;
  margin: 2rem auto 1.75rem;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 0 auto;
  max-width: 40rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 600;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.35);
}

.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #e2e8f0;
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

/* ---------- Sections ---------- */

.section {
  margin-top: 3.25rem;
}

.section[id] {
  scroll-margin-top: 1.5rem;
}

.section-kicker {
  margin: 0 0 0.5rem;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.65rem, 4.5vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section h2::after {
  content: "";
  display: block;
  width: 52px;
  height: 4px;
  margin-top: 0.8rem;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
}

/* ---------- Paragraphs ---------- */

p {
  margin: 0 0 1.75rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.8;
}

.lead {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin: 0 0 1.75rem;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.7;
}

.quote p,
.feature-card p,
.journal p {
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
}

/* ---------- "On board" cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.6rem 1.5rem;
  box-shadow: var(--card-shadow);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  margin: 0 0 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--tint-a) 0%, var(--tint-b) 100%);
  color: var(--accent);
}

.card-icon svg {
  width: 20px;
  height: 20px;
}

.feature-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ---------- "Fishing" chips ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 1.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--tint-a) 0%, var(--tint-b) 100%);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- Quote ---------- */

.quote {
  position: relative;
  overflow: hidden;
  margin: 3.25rem 0 0;
  padding: clamp(2rem, 6vw, 3.25rem) clamp(1.5rem, 5vw, 3rem);
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  border-radius: 24px;
  box-shadow: var(--img-shadow);
}

.quote::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(14, 165, 233, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.18) 0%, transparent 50%);
  pointer-events: none;
}

.quote > * {
  position: relative;
}

.quote p {
  margin: 0;
  text-align: center;
  color: var(--overlay-text);
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 700;
  line-height: 1.5;
}

.quote-mark {
  display: block;
  width: 40px;
  height: 4px;
  margin: 1.5rem auto 0;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
}

.q-source {
  display: block;
  margin-top: 1rem;
  text-align: center;
  color: var(--overlay-muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Day journal ---------- */

.journal {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.journal li {
  position: relative;
  padding: 0 0 1.9rem 1.9rem;
  border-left: 2px solid var(--border);
}

.journal li:last-child {
  padding-bottom: 0.25rem;
}

.journal li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 0.3rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 0 0 4px var(--bg);
}

.journal h3 {
  margin: 0 0 0.3rem;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.journal p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* ---------- Photos ---------- */

figure {
  margin: 3.5rem 0 0;
  text-align: center;
}

figure img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--img-shadow);
}

figcaption {
  margin: 0.9rem auto 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

  /* ---------- Progress bar --- */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 30;
  background: transparent;
}

.progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.5);
}

/* --- Theme button --- */

.theme-toggle {
  position: fixed;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--card-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
}

.theme-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
}

.theme-toggle-icon {
  grid-area: 1 / 1;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.theme-sun { opacity: 0; transform: rotate(-30deg) scale(0.7); }
.theme-moon { opacity: 1; transform: none; }

:root[data-theme="light"] .theme-sun { opacity: 1; transform: none; }
:root[data-theme="light"] .theme-moon { opacity: 0; transform: rotate(30deg) scale(0.7); }

/* --- Dot navigation --- */

.dot-nav {
  position: fixed;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dot {
  position: relative;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: var(--muted);
  opacity: 0.5;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.dot:hover {
  opacity: 1;
  transform: scale(1.25);
}

.dot.is-active {
  opacity: 1;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 0 0 4px var(--bg);
  transform: scale(1.2);
}

/* --- Stats bar --- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.stat {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
}

.stat-number {
  display: block;
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  display: block;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* --- Gallery --- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.gallery-item {
  position: relative;
  margin: 0;
  padding: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover,
.gallery-item:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--img-shadow);
  outline: none;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.gallery-item figcaption {
  margin: 0.75rem 0.25rem 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* --- Videos --- */

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.video-card {
  position: relative;
  margin: 0;
  padding: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.video-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 14px;
  background: var(--surface);
}

.video-card figcaption {
  margin: 0.75rem 0.25rem 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* --- Viewer --- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(8, 15, 30, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s step-end;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease;
}

.lightbox-image {
  max-width: min(90vw, 42rem);
  max-height: 80vh;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.lightbox-caption {
  margin: 1rem auto 0;
  max-width: 40rem;
  text-align: center;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.08);
}

.lightbox-close {
  top: 1.1rem;
  right: 1.1rem;
  width: 2.6rem;
  height: 2.6rem;
  font-size: 1.5rem;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  width: 2.9rem;
  height: 2.9rem;
  font-size: 1.4rem;
  line-height: 1;
  transform: translateY(-50%);
}

.lightbox-prev { left: 1.1rem; }
.lightbox-next { right: 1.1rem; }

/* ---------- Footer ---------- */

footer {
  margin-top: 4rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin: 0 0 1rem;
}

.foot-nav a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.foot-nav a:hover {
  text-decoration: underline;
}

footer p {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  font-size: inherit;
}

/* ---------- Back to top ---------- */

.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 10;
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s step-end;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* ---------- Reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

::selection {
  background: var(--accent);
  color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .to-top,
  .theme-toggle,
  .gallery-item,
  .lightbox,
  .lightbox-close,
  .lightbox-nav {
    transition: none;
  }
}

@media (max-width: 480px) {
  body {
    padding: 2rem 1rem 3.5rem;
  }

  header {
    margin-bottom: 2.25rem;
    border-radius: 18px;
  }

  .btn {
    padding: 0.7rem 1.3rem;
    font-size: 0.9rem;
  }

  p {
    padding: 1.5rem 1.25rem;
    border-radius: 15px;
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.25rem;
  }

  .quote {
    margin-top: 2.25rem;
    border-radius: 18px;
  }

  .journal li {
    padding-left: 1.4rem;
  }

  figure {
    margin-top: 2.25rem;
  }

  figure img {
    border-radius: 15px;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    margin-top: 1.5rem;
  }

  .gallery {
    grid-template-columns: 1fr;
    margin-top: 1.25rem;
  }

  .dot-nav {
    display: none;
  }

  .theme-toggle {
    top: 0.6rem;
    right: 0.6rem;
    width: 2.4rem;
    height: 2.4rem;
  }

  .to-top {
    right: 0.6rem;
    bottom: 0.6rem;
    width: 2.6rem;
    height: 2.6rem;
  }

  .lightbox-nav {
    width: 2.5rem;
    height: 2.5rem;
  }
}
