:root {
  --bg: #10243a;
  --bg-dark: #071521;
  --panel: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.14);
  --foam: #f6f4ee;
  --brass: #d0b26d;
  --harbour-blue: #2f6478;
}

html,
body {
  font-family: Manrope, sans-serif;
}

body {
  background:
    radial-gradient(circle at top left, rgba(208, 178, 109, 0.2), transparent 30%),
    radial-gradient(circle at 85% 12%, rgba(96, 168, 196, 0.22), transparent 24%),
    linear-gradient(180deg, #183655 0%, #10243a 42%, #071521 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.sea-backdrop {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 10%, rgba(208, 178, 109, 0.14), transparent 28%),
    radial-gradient(circle at 82% 22%, rgba(96, 168, 196, 0.2), transparent 30%),
    linear-gradient(180deg, rgba(9, 36, 58, 0.68), rgba(7, 21, 33, 0.92));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.82;
}

.sea-backdrop::before,
.sea-backdrop::after {
  content: "";
  position: absolute;
  inset: -18%;
  background-repeat: no-repeat;
  will-change: transform;
}

.sea-backdrop::before {
  background:
    radial-gradient(ellipse at 20% 28%, rgba(246, 244, 238, 0.12), transparent 30%),
    radial-gradient(ellipse at 72% 22%, rgba(96, 168, 196, 0.16), transparent 34%),
    linear-gradient(115deg, transparent 0 28%, rgba(246, 244, 238, 0.055) 30% 31%, transparent 34% 100%),
    linear-gradient(68deg, transparent 0 36%, rgba(96, 168, 196, 0.075) 39% 40%, transparent 43% 100%);
  background-size: 70rem 42rem, 62rem 34rem, 44rem 24rem, 52rem 28rem;
  background-position: 8% 14%, 88% 22%, 10% 68%, 82% 74%;
  animation: tide-drift 26s ease-in-out infinite alternate;
  opacity: 0.72;
}

.sea-backdrop::after {
  background:
    radial-gradient(ellipse at 50% 112%, rgba(246, 244, 238, 0.14), transparent 42%),
    linear-gradient(90deg, transparent, rgba(96, 168, 196, 0.08), transparent),
    linear-gradient(180deg, transparent 0 18%, rgba(255, 255, 255, 0.04) 22%, transparent 26% 100%);
  background-size: 92rem 40rem, 70rem 100%, 100% 18rem;
  background-position: center bottom, center, center 72%;
  animation: water-breathe 18s ease-in-out infinite alternate;
  mix-blend-mode: screen;
  opacity: 0.46;
}

.boat-badge {
  position: fixed;
  right: 1.1rem;
  top: 0.8rem;
  z-index: 8;
  pointer-events: none;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.34));
  animation: boat-bob 7s ease-in-out infinite;
}

.boat-badge img {
  display: block;
  width: clamp(5.2rem, 9vw, 8rem);
  height: auto;
}

.transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at center, rgba(208, 178, 109, 0.16), transparent 30%),
    rgba(7, 21, 33, 0.88);
  backdrop-filter: blur(10px);
}

.nav-shell,
.nav-mobile,
.hero-shell,
.card,
.signal-card,
.map-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 1.5rem;
  padding: 0.9rem 1rem;
  backdrop-filter: blur(18px);
}

.nav-mobile {
  margin-top: 0.75rem;
  border-radius: 1.25rem;
  padding: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--foam);
  text-decoration: none;
}

.brand-emblem {
  position: relative;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.22) 0 10%, transparent 11% 100%),
    conic-gradient(from 90deg, rgba(208, 178, 109, 0.9), rgba(255, 255, 255, 0.2), rgba(208, 178, 109, 0.9));
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.04);
}

.brand-title,
.brand-sub {
  display: block;
}

.brand-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  line-height: 1;
}

.brand-sub {
  color: rgba(246, 244, 238, 0.64);
  font-size: 0.85rem;
}

.navlink,
.nav-cta,
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  color: rgba(246, 244, 238, 0.8);
  padding: 0.55rem 0.9rem;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.navlink:hover,
.nav-cta:hover,
.nav-toggle:hover,
.navlink-active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--foam);
}

.nav-cta {
  background: linear-gradient(135deg, rgba(208, 178, 109, 0.18), rgba(255, 255, 255, 0.06));
}

.nav-mobile .navlink {
  display: flex;
  justify-content: flex-start;
}

.hero-shell,
.card,
.signal-card,
.map-card {
  border-radius: 2rem;
}

.hero-shell {
  position: relative;
  background:
    linear-gradient(105deg, rgba(7, 21, 33, 0.92) 0 47%, rgba(7, 21, 33, 0.38) 70%),
    url("/static/img/connie-art/connie-canal-golden.png");
  background-size: cover;
  background-position: center;
}

.hero-shell::after {
  content: "";
  position: absolute;
  inset: auto 5% 0 5%;
  height: 130px;
  background:
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.05)),
    repeating-linear-gradient(0deg, rgba(246, 244, 238, 0.18) 0 1px, transparent 2px 18px);
  border-radius: 999px 999px 0 0;
  opacity: 0.42;
}

.eyebrow,
.card-kicker,
.signal-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  color: rgba(246, 244, 238, 0.6);
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 180ms ease, filter 180ms ease;
}

.btn-primary {
  color: #10243a;
  background: linear-gradient(135deg, #f6f4ee, #d0b26d);
}

.btn-secondary {
  color: var(--foam);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-primary:hover,
.btn-secondary:hover,
.card-hover:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.card {
  padding: 1.4rem;
  backdrop-filter: blur(14px);
}

.card-title {
  margin-top: 0.5rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  line-height: 1.05;
}

.card-copy,
.text-link,
.contact-link {
  color: rgba(246, 244, 238, 0.78);
}

.text-link,
.contact-link {
  text-decoration: none;
}

.text-link:hover,
.contact-link:hover {
  color: var(--foam);
}

.signal-card {
  padding: 1.5rem;
  background:
    radial-gradient(circle at top right, rgba(208, 178, 109, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
}

.systems-card {
  padding: 1.5rem;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.36rem 0.72rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-dot-live {
  background: rgba(96, 168, 196, 0.18);
  color: #bfe6ee;
}

.status-dot-warn {
  background: rgba(208, 178, 109, 0.16);
  color: var(--brass);
}

.system-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.055);
  padding: 0.9rem 1rem;
  color: rgba(246, 244, 238, 0.72);
}

.system-copy {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.system-copy span {
  color: var(--foam);
  font-weight: 600;
}

.system-copy small {
  color: rgba(246, 244, 238, 0.56);
  line-height: 1.35;
}

.system-row strong {
  color: var(--foam);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  line-height: 1;
  white-space: nowrap;
}

.alarm-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.alarm-chip {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.4rem 0.62rem;
  color: rgba(246, 244, 238, 0.76);
  font-size: 0.78rem;
}

.alarm-chip-clear {
  border-color: rgba(96, 168, 196, 0.38);
}

.alarm-chip-active {
  border-color: rgba(248, 113, 113, 0.58);
  background: rgba(248, 113, 113, 0.1);
}

.alarm-chip-unknown {
  border-color: rgba(208, 178, 109, 0.42);
}

.photo-frame {
  width: 100%;
  height: 20rem;
  object-fit: cover;
  border-radius: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.meter-track {
  height: 0.8rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.meter-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f6f4ee, #d0b26d 45%, #2f6478 100%);
  box-shadow: 0 0 28px rgba(208, 178, 109, 0.22);
}

.helm-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.boat-game {
  overflow: hidden;
}

.boat-game-canvas {
  display: block;
  width: 100%;
  aspect-ratio: 36 / 19;
  border-radius: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, #8bc0cf, #2f6478 55%, #183655);
  box-shadow: inset 0 0 60px rgba(7, 21, 33, 0.28);
}

.game-score,
.game-control {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(246, 244, 238, 0.82);
}

.game-score {
  padding: 0.55rem 0.85rem;
  font-size: 0.9rem;
}

.game-control {
  padding: 0.65rem 0.9rem;
  cursor: pointer;
}

.game-control:active {
  transform: translateY(1px);
}

.timeline-row {
  display: grid;
  gap: 1.5rem;
}

.timeline-year {
  font-family: "Cormorant Garamond", serif;
  font-size: 3rem;
  line-height: 1;
  color: var(--brass);
}

.page-head {
  padding-top: 2rem;
}

.map-card {
  position: relative;
  overflow: hidden;
  min-height: 30rem;
  padding: 1.75rem;
}

.map-grid,
.map-rings,
.map-pin {
  position: absolute;
}

.map-grid {
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.35;
}

.map-rings {
  left: 50%;
  top: 48%;
  width: 18rem;
  height: 18rem;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 0 0 60px rgba(255, 255, 255, 0.03),
    0 0 0 120px rgba(255, 255, 255, 0.02);
}

.map-pin {
  left: 50%;
  top: 48%;
  width: 1.2rem;
  height: 1.2rem;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: var(--brass);
  box-shadow: 0 0 0 18px rgba(208, 178, 109, 0.12);
}

.checkpoint,
.contact-tile {
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  padding: 1rem;
}

.source-row {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  padding: 1rem;
}

.source-title {
  color: var(--foam);
  font-weight: 600;
}

.source-date {
  margin-top: 0.25rem;
  color: rgba(246, 244, 238, 0.6);
  font-size: 0.92rem;
}

.source-link {
  color: var(--brass);
  text-decoration: none;
}

.source-link:hover {
  color: var(--foam);
}

.gauge {
  position: relative;
  display: grid;
  place-items: center;
  width: 6rem;
  height: 6rem;
  border-radius: 999px;
  background:
    radial-gradient(circle, #10243a 0 54%, transparent 55% 100%),
    conic-gradient(#d0b26d 0 var(--level), rgba(255, 255, 255, 0.08) var(--level) 100%);
}

.gauge-core {
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 999px;
  background: rgba(7, 29, 24, 0.95);
  color: var(--foam);
  font-size: 0.9rem;
  font-weight: 700;
}

.status-value {
  min-width: 6rem;
  text-align: right;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--brass);
}

.status-warning {
  border-color: rgba(208, 178, 109, 0.34);
}

.alarm-card {
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 1rem;
}

.alarm-active {
  border-color: rgba(248, 113, 113, 0.55);
  background: rgba(248, 113, 113, 0.08);
}

.alarm-clear {
  border-color: rgba(42, 115, 98, 0.75);
}

.alarm-unknown {
  border-color: rgba(208, 178, 109, 0.42);
}

.alarm-pill {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.28rem 0.7rem;
  color: rgba(246, 244, 238, 0.78);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.alarm-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.045);
  padding: 0.65rem 0.75rem;
  color: rgba(246, 244, 238, 0.72);
  font-size: 0.9rem;
}

@keyframes tide-drift {
  0%,
  100% {
    transform: translate3d(-1.6%, -0.8%, 0) scale(1.02);
  }
  50% {
    transform: translate3d(1.4%, 1%, 0) scale(1.06);
  }
}

@keyframes water-breathe {
  0%,
  100% {
    transform: translate3d(0, -1.2%, 0) scale(1.03);
  }
  50% {
    transform: translate3d(0, 1.6%, 0) scale(1.07);
  }
}

@keyframes boat-bob {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(0.45rem) rotate(2deg);
  }
}

@media (min-width: 768px) {
  .timeline-row {
    grid-template-columns: 9rem 1fr;
    align-items: start;
  }

  .source-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 767px) {
  .boat-badge {
    right: -0.5rem;
    top: 0.9rem;
    opacity: 0.8;
  }

  .photo-frame {
    height: 16rem;
  }
}
