@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Sora:wght@400;500;600;700&display=swap");

:root {
  --navy-950: #061722;
  --navy-900: #0a2638;
  --navy-800: #123a52;
  --teal-700: #0f5f6d;
  --teal-500: #1f8d98;
  --foam-200: #d8eceb;
  --sand-300: #d7bf90;
  --sun-400: #ca7a3f;
  --cream-100: #f7f3e7;
  --paper: #fffef9;
  --ink: #102838;
  --ink-soft: #385366;
  --line: #d7d9ce;
  --danger: #af3d28;
  --ok: #2f7a57;
  --shadow-soft: 0 14px 30px rgba(10, 27, 39, 0.12);
  --shadow-strong: 0 24px 52px rgba(4, 19, 27, 0.26);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Sora", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1100px 460px at -8% -14%, rgba(31, 141, 152, 0.24), transparent 58%),
    radial-gradient(900px 420px at 102% -8%, rgba(202, 122, 63, 0.16), transparent 56%),
    linear-gradient(180deg, #f9f6ed 0%, #f3efe4 58%, #f8f5eb 100%);
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: 0.02em;
  margin: 0 0 0.55rem;
}

h1 {
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.35rem, 2.3vw, 1.95rem);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--navy-800);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.site-header,
.admin-header {
  position: sticky;
  top: 0;
  z-index: 14;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(216, 236, 235, 0.26);
}

.site-header {
  background: linear-gradient(95deg, rgba(6, 23, 34, 0.94), rgba(17, 56, 78, 0.92));
  box-shadow: 0 16px 32px rgba(4, 18, 27, 0.28);
}

.admin-header {
  background: linear-gradient(95deg, rgba(8, 28, 42, 0.96), rgba(18, 58, 82, 0.94));
  box-shadow: 0 10px 22px rgba(5, 20, 30, 0.25);
}

.nav-shell,
.admin-nav-shell {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: #f6fcff;
  text-decoration: none;
}

.brand-mark {
  width: 122px;
  height: 78px;
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff, #eaf3f5);
  box-shadow: inset 0 0 0 1px rgba(7, 39, 56, 0.1), 0 8px 18px rgba(5, 17, 25, 0.35);
  padding: 0.4rem;
  display: grid;
  place-items: center;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.brand-text {
  display: grid;
  gap: 0.12rem;
}

.brand-name {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.1;
}

.brand-subline {
  font-size: 0.79rem;
  font-weight: 500;
  color: #b9d5de;
  letter-spacing: 0.03em;
}

.main-nav,
.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.main-nav a,
.admin-nav a {
  color: #eaf8fd;
  padding: 0.5rem 0.82rem;
  border-radius: 999px;
  font-size: 0.9rem;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.admin-nav a:hover {
  text-decoration: none;
  border-color: rgba(216, 236, 235, 0.36);
  background: rgba(216, 236, 235, 0.14);
  transform: translateY(-1px);
}

.hero {
  padding: 3rem 0 2.3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.15rem;
}

.hero-copy {
  background:
    linear-gradient(132deg, rgba(6, 26, 38, 0.95), rgba(16, 60, 81, 0.9)),
    radial-gradient(circle at 74% -10%, rgba(216, 236, 235, 0.2), transparent 48%);
  color: #eef8fc;
  border-radius: 24px;
  padding: clamp(1.35rem, 3vw, 2.3rem);
  border: 1px solid rgba(216, 236, 235, 0.18);
  box-shadow: var(--shadow-strong);
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  right: -130px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(202, 122, 63, 0.44), rgba(202, 122, 63, 0));
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(31, 141, 152, 0.2);
  border: 1px solid rgba(216, 236, 235, 0.3);
  color: #d9eff1;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.75rem;
  font-weight: 600;
}

.lead {
  color: #d4e7ef;
  font-size: 1.06rem;
  max-width: 64ch;
  margin-bottom: 1rem;
}

.fact-pills {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.fact-pills li {
  background: rgba(6, 23, 34, 0.62);
  color: #f0f9fc;
  border: 1px solid rgba(216, 236, 235, 0.28);
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  font-size: 0.84rem;
  font-weight: 600;
}

.hero-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.94), rgba(245, 249, 248, 0.92));
  border-radius: 24px;
  border: 1px solid #d6e0dc;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
}

.hero-logo-panel {
  border-radius: 16px;
  border: 1px solid #e4e9de;
  background: #ffffff;
  padding: 0.65rem;
  min-height: 180px;
  display: grid;
  place-items: center;
}

.hero-logo-panel img {
  width: min(100%, 360px);
  max-height: 220px;
  object-fit: contain;
}

.hero-meta h2 {
  font-size: 1.18rem;
  color: var(--navy-800);
}

.hero-meta p {
  margin: 0 0 0.8rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.58rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.66rem 1.06rem;
  border-radius: 11px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(120deg, var(--teal-700), var(--teal-500));
  color: #f7ffff;
  box-shadow: 0 10px 18px rgba(16, 91, 105, 0.3);
}

.btn-secondary {
  background: #edf5f8;
  border-color: #cedbe2;
  color: var(--navy-800);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-small {
  padding: 0.38rem 0.66rem;
  font-size: 0.8rem;
}

.section {
  padding: 2rem 0;
}

.section-muted {
  background: linear-gradient(180deg, rgba(216, 236, 235, 0.34), rgba(247, 243, 231, 0.18));
  border-top: 1px solid rgba(18, 58, 82, 0.08);
  border-bottom: 1px solid rgba(18, 58, 82, 0.08);
}

.section-title {
  margin-bottom: 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.95rem;
}

.gallery-grid.compact {
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
}

.gallery-item {
  position: relative;
  padding: 0;
  text-align: left;
  cursor: pointer;
  background: var(--paper);
  border: 1px solid #dee4da;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 9px 18px rgba(14, 33, 45, 0.09);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 26px rgba(9, 30, 43, 0.18);
  text-decoration: none;
}

.gallery-item:focus-visible {
  outline: 3px solid rgba(14, 92, 145, 0.45);
  outline-offset: 3px;
}

.gallery-item img {
  width: 100%;
  height: 182px;
  object-fit: cover;
}

.page-public-gallery .filter-form {
  max-width: 560px;
}

.gallery-title {
  display: block;
  padding: 0.68rem 0.75rem;
  color: var(--ink);
  font-weight: 500;
}

.gallery-badge {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(8, 39, 68, 0.88);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.gallery-modal[hidden] {
  display: none !important;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.gallery-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 20, 34, 0.76);
  backdrop-filter: blur(4px);
}

.gallery-modal-dialog {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  width: min(94vw, 1180px);
  margin: min(5vh, 2rem) auto;
  padding: 1.25rem 1rem 1rem;
  border-radius: 24px;
  background: rgba(245, 246, 241, 0.97);
  box-shadow: 0 20px 48px rgba(5, 18, 32, 0.3);
}

.gallery-modal-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(72vh, 760px);
  background: linear-gradient(180deg, rgba(204, 228, 240, 0.58), rgba(221, 231, 225, 0.72));
  border-radius: 18px;
  overflow: hidden;
}

.gallery-modal-image,
.gallery-modal-video {
  width: 100%;
  max-height: min(72vh, 760px);
  object-fit: contain;
  display: block;
}

.gallery-modal-image[hidden],
.gallery-modal-video[hidden] {
  display: none;
}

.gallery-modal-video {
  background: #0b2746;
}

.gallery-modal-close,
.gallery-modal-nav {
  position: absolute;
  z-index: 2;
  border: 0;
  border-radius: 999px;
  background: rgba(8, 39, 68, 0.9);
  color: #fff;
  cursor: pointer;
}

.gallery-modal-close {
  top: 0.7rem;
  right: 0.7rem;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.6rem;
  line-height: 1;
}

.gallery-modal-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  font-size: 2rem;
  line-height: 1;
}

.gallery-modal-prev {
  left: 1.15rem;
}

.gallery-modal-next {
  right: 1.15rem;
}

.gallery-modal-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0.35rem 0.2rem;
}

.gallery-modal-caption h2,
.gallery-modal-caption p {
  margin: 0;
}

.gallery-modal-meta {
  display: grid;
  justify-items: end;
  gap: 0.18rem;
}

.gallery-modal-caption p {
  color: var(--ink-soft);
  font-weight: 600;
}

.gallery-modal-open {
  overflow: hidden;
}

.document-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.62rem;
}

.document-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  border: 1px solid #d9ddd3;
  border-radius: 13px;
  padding: 0.78rem 0.95rem;
  background: var(--paper);
}

.document-list.large li {
  align-items: flex-start;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.24rem 0.58rem;
  background: #dfefef;
  color: #154f5a;
  font-size: 0.8rem;
  font-weight: 700;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.card,
.contact-card,
.login-form,
.admin-form,
.admin-grid-form,
.table-wrap {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.card,
.contact-card,
.admin-form,
.admin-grid-form,
.login-form {
  padding: 1rem;
}

.card dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 0.8rem;
}

.card dt {
  font-weight: 700;
}

.card dd {
  margin: 0;
  color: var(--ink-soft);
}

.richtext p {
  margin: 0 0 0.85rem;
}

.filter-form {
  display: flex;
  align-items: center;
  gap: 0.58rem;
  margin: 1rem 0;
}

.filter-form select,
.filter-form input,
.contact-form input,
.contact-form textarea,
.admin-form input,
.admin-form textarea,
.admin-grid-form input,
.admin-grid-form textarea,
.admin-grid-form select,
.login-form input {
  width: 100%;
  border: 1px solid #bdc7cb;
  border-radius: 10px;
  padding: 0.54rem 0.66rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.admin-grid-form {
  display: grid;
  gap: 0.62rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.contact-form {
  margin-top: 1rem;
}

.contact-form-grid {
  display: grid;
  gap: 0.7rem;
}

.contact-form-copy p {
  margin: 0 0 0.75rem;
}

.contact-note {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.contact-form textarea {
  resize: vertical;
  min-height: 9rem;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.checkbox input {
  width: auto;
}

.admin-main {
  padding: 1.25rem 0 2rem;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.82rem;
  margin-bottom: 1rem;
}

.admin-stats p {
  margin: 0;
  font-size: 1.72rem;
  font-weight: 700;
  color: var(--teal-700);
}

.admin-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.92rem;
}

.link-list,
.audit-list {
  margin: 0;
  padding-left: 1rem;
}

.table-wrap {
  overflow-x: auto;
  padding: 0.25rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.5rem;
  border-bottom: 1px solid #e2e4da;
  vertical-align: top;
}

.inline-form {
  display: inline;
}

.actions-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem;
}

.admin-form.compact {
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}

.thumb-preview {
  width: 134px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #d2d8da;
}

.site-footer {
  margin-top: 2rem;
  padding: 1.6rem 0 1rem;
  color: #ecf8fd;
  background:
    linear-gradient(170deg, var(--navy-900), #124763 55%, #15566c),
    radial-gradient(circle at 12% 0, rgba(216, 236, 235, 0.28), transparent 45%);
}

.site-footer a {
  color: #dff3fa;
  display: block;
  margin-bottom: 0.26rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.footer-bottom {
  margin-top: 1rem;
  padding-top: 0.82rem;
  border-top: 1px solid rgba(223, 243, 250, 0.24);
  font-size: 0.9rem;
}

.flash-stack {
  margin-top: 0.72rem;
  display: grid;
  gap: 0.44rem;
}

.flash {
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 0.62rem 0.84rem;
}

.flash-success {
  background: #e2f3e9;
  color: #1f6548;
  border-color: #b9dcc8;
}

.flash-danger {
  background: #fde7e3;
  color: #7f2f22;
  border-color: #f1c5bb;
}

.flash-warning {
  background: #fff1d8;
  color: #775118;
  border-color: #e9cf9e;
}

.flash-info {
  background: #e1edf4;
  color: #1f4f67;
  border-color: #bfd8e7;
}

.empty-state {
  color: var(--ink-soft);
  font-style: italic;
}

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #f4f0e4, #e7f1f0);
}

.login-shell {
  width: min(430px, 92vw);
}

.login-form {
  display: grid;
  gap: 0.7rem;
}

.narrow {
  width: min(760px, 92vw);
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero,
.section,
.card,
.gallery-item,
.hero-copy,
.hero-card {
  animation: reveal 0.48s ease both;
}

@media (max-width: 980px) {

  .hero-grid,
  .footer-grid,
  .admin-columns,
  .admin-stats {
    grid-template-columns: 1fr;
  }

  .nav-shell,
  .admin-nav-shell {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 0.72rem 0;
  }

  .main-nav,
  .admin-nav {
    justify-content: center;
  }

  .brand {
    justify-content: center;
  }

  .brand-mark {
    width: 110px;
    height: 72px;
  }

  .brand-text {
    text-align: center;
  }

  .logout-form {
    align-self: flex-end;
  }

  .hero {
    padding-top: 2rem;
  }
}

/* Requested landing layout: sky top, deep-blue bottom, wave separator, logo top-right */
.site-body {
  min-height: 100vh;
  background: #8fd6ff;
  color: #0c2d4a;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: relative;
  top: auto;
  backdrop-filter: none;
  border-bottom: none;
  box-shadow: none;
  background: transparent;
  z-index: 4;
}

.nav-shell {
  min-height: auto;
  align-items: flex-start;
  padding: 1.2rem 0 0.7rem;
}

.masthead-copy {
  max-width: 62ch;
}

.brand-title {
  display: inline-block;
  color: #09355e;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand-title:hover {
  text-decoration: none;
}

.masthead-subline {
  margin: 0.2rem 0 0;
  color: #1f567f;
  font-size: 1rem;
  font-weight: 500;
}

.masthead-logo {
  margin-left: auto;
  width: clamp(210px, 24vw, 340px);
  height: clamp(130px, 16vw, 220px);
  object-fit: contain;
  border-radius: 14px;
  padding: 0.45rem;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(9, 53, 94, 0.18);
  box-shadow: 0 16px 30px rgba(12, 45, 74, 0.2);
}

.site-body main {
  flex: 1;
  position: relative;
  padding-bottom: 108px;
}

.site-body main::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 108px;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 180' preserveAspectRatio='none'%3E%3Cpath d='M0,85 C120,15 240,15 360,85 C480,155 600,155 720,85 C840,15 960,15 1080,85 C1140,120 1200,120 1200,120 L1200,180 L0,180 Z' fill='%23092f61'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center bottom;
  background-size: 620px 108px;
}

.site-footer {
  margin-top: 0;
  min-height: 15vh;
  background: #092f61;
  color: #d9e9ff;
  padding: 1.2rem 0 0.8rem;
  display: flex;
  align-items: flex-end;
}

.site-footer a {
  color: #dbeeff;
}

.home-stage {
  padding: 0.6rem 0 2rem;
}

.home-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1rem;
}

.home-copy {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(13, 61, 96, 0.16);
  border-radius: 20px;
  box-shadow: 0 12px 26px rgba(8, 50, 83, 0.12);
  padding: clamp(1rem, 2.2vw, 1.7rem);
}

.home-copy .lead {
  color: #1d4f75;
}

.home-card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(9, 53, 94, 0.18);
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(11, 45, 74, 0.12);
  padding: 1rem 1.1rem;
}

.home-card h2 {
  color: #0d3f69;
  margin-bottom: 0.5rem;
}

.home-card p {
  margin: 0 0 0.45rem;
  color: #1d4f75;
}

.home-note {
  margin-top: 1rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: #2b5f85;
}

@media (max-width: 980px) {
  .nav-shell {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .masthead-logo {
    margin-left: auto;
    margin-right: 0;
    width: min(76vw, 300px);
    height: auto;
  }

  .home-grid {
    grid-template-columns: 1fr;
  }

  .site-body main {
    padding-bottom: 96px;
  }

  .site-body main::after {
    height: 96px;
    background-size: 520px 96px;
  }
}

/* Minimal public layout requested by user */
.site-body {
  min-height: 100vh !important;
  margin: 0 !important;
  background: #86c3e7 !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
}

.sea-header {
  position: relative;
  z-index: 100;
  padding: 1.25rem 1.25rem 0;
  min-height: 220px;
}

.sea-logo {
  width: clamp(180px, 22vw, 320px);
  height: auto;
  display: block;
  object-fit: contain;
  position: relative;
  z-index: 20;
  pointer-events: auto;
}

.sea-links {
  margin-top: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.sea-links a {
  display: inline-block;
  padding: 0.5rem 0.92rem;
  border-radius: 999px;
  border: 1px solid rgba(9, 34, 75, 0.45);
  background: rgba(255, 255, 255, 0.92);
  color: #082857;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(9, 40, 87, 0.16);
}

.sea-links a:hover {
  background: #ffffff;
}

.sea-gull {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  width: clamp(140px, 18vw, 270px);
  height: auto;
  object-fit: contain;
  pointer-events: none;
}

.sea-main {
  flex: 1;
  min-height: 85vh;
  position: relative;
  z-index: 2;
}

/* disable older decorative wave layer */
.sea-main::after {
  display: none !important;
  content: none !important;
}

.sea-bottom {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 15vh;
  min-height: 110px;
  background: #0a2f66;
  z-index: 1;
  overflow: visible;
}

/* smoother wave crest */
.sea-bottom::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -72px;
  height: 72px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 72' preserveAspectRatio='none'%3E%3Cpath fill='%230a2f66' d='M0 50 C30 34 60 34 90 50 C120 66 150 66 180 50 C210 34 240 34 270 50 C300 66 330 66 360 50 L360 72 L0 72 Z'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 360px 72px;
  background-position: left top;
}

.sea-comic {
  position: fixed;
  left: 50%;
  top: auto;
  bottom: calc(15vh - 34px);
  transform: translate(-50%, var(--sea-comic-shift-y, 0px));
  width: clamp(270px, 42vw, 630px);
  height: auto;
  object-fit: contain;
  pointer-events: none;
  z-index: 2;
}

.page-public-home .sea-main {
  display: flex;
  align-items: flex-start;
}

.page-public-home .section {
  width: 100%;
  padding-top: 0;
  padding-bottom: calc(18vh + 2rem);
}

.home-hero .container {
  display: grid;
  align-items: start;
  margin-top: -12.5rem;
  padding-left: clamp(15rem, 24vw, 22rem);
}

.home-copy {
  max-width: min(760px, 92vw);
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #111111;
  text-shadow: none;
}

.home-kicker {
  margin: 0 0 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #111111;
}

.home-copy h1 {
  max-width: 12ch;
  margin-bottom: 0.65rem;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.96;
  color: #111111;
}

.home-copy .lead {
  margin-bottom: 1rem;
  max-width: 34ch;
  color: #111111;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.2rem, 2.3vw, 1.65rem);
  font-style: italic;
  line-height: 1.28;
}

.home-copy .richtext {
  max-width: 58ch;
  font-size: 1.02rem;
  color: #111111;
}

.home-copy .richtext p {
  margin: 0;
}

.home-accent {
  color: #b33122;
}

.page-public-boat .sea-header,
.page-public-gallery .sea-header,
.page-public-documents .sea-header,
.page-public-contact .sea-header,
.page-public-imprint .sea-header,
.page-public-privacy .sea-header {
  padding-top: 0.35rem;
  min-height: 118px;
}

.page-public-boat .sea-logo,
.page-public-gallery .sea-logo,
.page-public-documents .sea-logo,
.page-public-contact .sea-logo,
.page-public-imprint .sea-logo,
.page-public-privacy .sea-logo {
  width: clamp(150px, 17vw, 245px);
}

.page-public-boat .sea-links,
.page-public-gallery .sea-links,
.page-public-documents .sea-links,
.page-public-contact .sea-links,
.page-public-imprint .sea-links,
.page-public-privacy .sea-links {
  margin-top: 0.2rem;
}

.page-public-boat .section,
.page-public-gallery .section,
.page-public-documents .section,
.page-public-contact .section,
.page-public-imprint .section,
.page-public-privacy .section {
  padding-top: 0;
  margin-top: -6.25rem;
}

@media (max-width: 900px) {
  .sea-header {
    padding: 1rem 0 0 1rem;
    min-height: 182px;
  }

  .sea-logo {
    width: min(62vw, 250px);
  }

  .sea-gull {
    top: 0.65rem;
    right: 0.8rem;
    width: min(38vw, 190px);
  }

  .sea-links {
    margin-top: 0.5rem;
    gap: 0.45rem;
    max-width: calc(100vw - 2rem);
  }

  .sea-links a {
    font-size: 0.95rem;
    padding: 0.38rem 0.72rem;
  }

  .page-public-boat .sea-header,
  .page-public-gallery .sea-header,
  .page-public-documents .sea-header,
  .page-public-contact .sea-header,
  .page-public-imprint .sea-header,
  .page-public-privacy .sea-header {
    min-height: 120px;
  }

  .page-public-boat .sea-logo,
  .page-public-gallery .sea-logo,
  .page-public-documents .sea-logo,
  .page-public-contact .sea-logo,
  .page-public-imprint .sea-logo,
  .page-public-privacy .sea-logo {
    width: min(52vw, 210px);
  }

  .page-public-boat .section,
  .page-public-gallery .section,
  .page-public-documents .section,
  .page-public-contact .section,
  .page-public-imprint .section,
  .page-public-privacy .section {
    padding-top: 0;
    margin-top: -2.25rem;
  }

  .sea-bottom {
    min-height: 96px;
  }

  .sea-bottom::before {
    top: -56px;
    height: 56px;
    background-size: 280px 56px;
  }

  .sea-comic {
    width: min(87vw, 480px);
    bottom: calc(15vh - 32px);
  }

  .page-public-home .section {
    padding-top: 0;
    padding-bottom: calc(18vh + 1.5rem);
  }

  .home-hero .container {
    margin-top: -8.5rem;
    padding-left: min(52vw, 13rem);
  }

  .home-copy h1 {
    max-width: 100%;
  }

  .gallery-modal-dialog {
    width: min(96vw, 980px);
    margin-top: 1.2rem;
  }

  .gallery-modal-nav {
    width: 2.55rem;
    height: 2.55rem;
  }

  .page-public-gallery .filter-form {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

/* ====== 
   MOBILE FIRST ENHANCEMENTS: (< 480px viewports) 
   Targeting standard and smaller smartphones 
   to prevent horizontal overflow and squeezed text 
   ====== */
@media (max-width: 480px) {

  /* Give the body more breathing space */
  .container {
    width: 95vw;
  }

  /* Compress the header area more aggressively */
  .sea-header,
  .page-public-boat .sea-header,
  .page-public-gallery .sea-header,
  .page-public-documents .sea-header,
  .page-public-contact .sea-header,
  .page-public-imprint .sea-header,
  .page-public-privacy .sea-header {
    padding: 0.5rem 0.5rem 0;
    min-height: 120px;
  }

  /* Keep the logo small enough so the nav fits below or next to it */
  .sea-logo,
  .page-public-boat .sea-logo,
  .page-public-gallery .sea-logo,
  .page-public-documents .sea-logo,
  .page-public-contact .sea-logo,
  .page-public-imprint .sea-logo,
  .page-public-privacy .sea-logo {
    width: min(80vw, 200px);
  }

  /* Stack main nav links and reduce their size */
  .sea-links {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-top: 0.8rem;
  }

  .sea-links a {
    text-align: center;
    padding: 0.6rem 0.4rem;
    font-size: 0.95rem;
  }

  .gallery-modal-dialog {
    width: 97vw;
    padding: 0.9rem 0.75rem 0.8rem;
    margin: 0.5rem auto;
    border-radius: 18px;
  }

  .gallery-modal-stage {
    min-height: 42vh;
  }

  .gallery-modal-caption {
    display: grid;
    gap: 0.2rem;
  }

  .gallery-modal-meta {
    justify-items: start;
  }

  .gallery-modal-nav {
    top: auto;
    bottom: 4.9rem;
    transform: none;
  }

  .gallery-modal-prev {
    left: 0.9rem;
  }

  .gallery-modal-next {
    right: 0.9rem;
  }

  .home-hero .container {
    margin-top: 0;
    padding-left: 0;
  }

  .home-kicker {
    letter-spacing: 0.16em;
  }

  .home-copy .lead {
    font-size: 1.08rem;
  }

  /* Make sure spec grids and others are strictly 1-column */
  .spec-grid,
  .gallery-grid,
  .document-list {
    grid-template-columns: 1fr;
  }

  .gallery-item img {
    height: 210px;
  }

  /* Adjust typography in Hero Areas to prevent overflowing */
  h1 {
    font-size: clamp(1.8rem, 8vw, 2.2rem);
  }

  h2 {
    font-size: clamp(1.2rem, 6vw, 1.5rem);
  }

  /* Minimize padding inside cards */
  .card,
  .home-card,
  .hero-copy {
    padding: 0.8rem;
  }

  .home-copy {
    border-radius: 12px;
  }

  .home-note {
    font-size: 0.85rem;
  }

  /* Tweak document list items */
  .document-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  /* Shrink comic illustration on very small screens to prevent overlap */
  .sea-comic {
    width: min(90vw, 300px);
    bottom: calc(15vh - 30px);
  }
}

/* Fix for logo link area */
header.sea-header>a {
  display: block;
  position: relative;
  z-index: 105;
  pointer-events: auto;
  width: max-content;
}
