:root {
  --ink: #17211f;
  --muted: #67736f;
  --paper: #f6f0e6;
  --warm: #fffaf1;
  --deep: #03111f;
  --deep-soft: #0e2730;
  --blue: #00a8ff;
  --green: #86b91a;
  --clay: #b96f44;
  --line: rgba(23, 33, 31, 0.16);
  --white-line: rgba(255, 255, 255, 0.22);
  --max: 1180px;
  --gutter: clamp(18px, 4vw, 48px);
  --display: "Fraunces", Georgia, serif;
  --body: "Inter", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.65;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px var(--gutter);
  color: #fff;
}

.site-header.light {
  position: relative;
  color: var(--ink);
  background: var(--warm);
  border-bottom: 1px solid var(--line);
}

.brand,
.footer-brand {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 650;
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(12px, 2vw, 28px);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.main-nav a {
  opacity: 0.82;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  opacity: 1;
  color: var(--blue);
}

.hero {
  position: relative;
  min-height: 0;
  aspect-ratio: 3 / 2;
  max-height: 82vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--deep);
  color: #fff;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  height: 100%;
}

.hero-image {
  object-fit: contain;
  object-position: center;
}

.hero-shade {
  background:
    linear-gradient(0deg, rgba(3, 17, 31, 0.08), rgba(3, 17, 31, 0));
  pointer-events: none;
}

.hero-hotspot {
  position: absolute;
  z-index: 3;
  display: block;
  border-radius: 6px;
}

.hero-hotspot:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
  background: rgba(0, 168, 255, 0.12);
}

.hotspot-marine {
  left: 0.4%;
  top: 51.2%;
  width: 34.7%;
  height: 48%;
}

.hotspot-plants {
  left: 35.6%;
  top: 51.2%;
  width: 28.7%;
  height: 48%;
}

.hotspot-aquarium {
  left: 64.6%;
  top: 51.2%;
  width: 35%;
  height: 48%;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(280px, 4fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: end;
  padding-block: clamp(46px, 7vw, 86px);
}

.kicker,
.section-label {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 10ch;
  font-size: clamp(3.4rem, 9vw, 8rem);
}

h2 {
  font-size: clamp(2.1rem, 4.8vw, 4.7rem);
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}

p {
  margin: 0;
}

.hero-lede {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.6vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 13px 20px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button-blue {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--deep);
}

.button-ghost {
  color: var(--ink);
  border-color: var(--line);
}

.button-dark {
  background: var(--ink);
  color: var(--warm);
  border-color: var(--ink);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(260px, 4fr);
  gap: clamp(32px, 7vw, 96px);
  padding-block: clamp(72px, 10vw, 132px);
}

.intro-text {
  align-self: end;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
}

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.services article {
  min-height: 280px;
  padding: clamp(26px, 4vw, 46px);
  border-right: 1px solid var(--line);
}

.services article:last-child {
  border-right: 0;
}

.services p,
.variants p,
.service-list p {
  margin-top: 16px;
  color: var(--muted);
}

.service-mark {
  display: block;
  width: 54px;
  height: 3px;
  margin-bottom: 26px;
  background: var(--blue);
}

.service-mark.green {
  background: var(--green);
}

.service-mark.clay {
  background: var(--clay);
}

.feature-split {
  display: grid;
  grid-template-columns: minmax(280px, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 82px);
  align-items: center;
  padding-block: clamp(78px, 11vw, 150px);
}

.feature-split.reverse {
  grid-template-columns: minmax(0, 6fr) minmax(280px, 5fr);
}

.context-frame {
  margin: 0;
}

.context-frame img {
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(3, 17, 31, 0.18);
}

.context-left img {
  object-position: 8% 58%;
}

.context-right img {
  object-position: 88% 48%;
}

figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.feature-copy p:not(.section-label) {
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1.03rem, 1.2vw, 1.18rem);
}

.blue-text {
  color: var(--blue);
}

.green-text {
  color: var(--green);
}

.text-link {
  display: inline-block;
  margin-top: 30px;
  border-bottom: 2px solid var(--blue);
  color: var(--ink);
  font-weight: 800;
}

.editorial-band {
  background: var(--deep-soft);
  color: #fff;
}

.band-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(28px, 7vw, 100px);
  align-items: end;
  padding-block: clamp(72px, 10vw, 120px);
}

.band-grid p:last-child {
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1.08rem, 1.45vw, 1.32rem);
}

.band-link {
  display: inline-block;
  margin-top: 24px;
  border-bottom: 2px solid var(--green);
  color: #fff;
  font-weight: 800;
}

.cta {
  padding-block: clamp(74px, 10vw, 128px);
  text-align: center;
}

.cta h2,
.cta p {
  max-width: 850px;
  margin-inline: auto;
}

.cta p:not(.section-label) {
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
}

.cta .button {
  margin-top: 32px;
}

.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--deep);
  color: #fff;
}

.footer-image,
.footer-shade {
  position: absolute;
  inset: 0;
  height: 100%;
}

.footer-image {
  object-fit: cover;
  object-position: center 14%;
  opacity: 0.42;
}

.footer-shade {
  background: linear-gradient(90deg, rgba(3, 17, 31, 0.96), rgba(3, 17, 31, 0.72));
}

.footer-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 32px;
  padding-block: 72px;
}

.site-footer.compact .footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 34px;
}

.copyright {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.86rem;
}

.footer-content p:not(.footer-brand) {
  max-width: 520px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.subhero {
  position: relative;
  min-height: 74vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--deep);
  color: #fff;
}

.subhero img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  object-position: 35% 46%;
  opacity: 0.82;
}

.green-hero img {
  object-position: 88% 48%;
}

.subhero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 17, 31, 0.82), rgba(3, 17, 31, 0.32)),
    linear-gradient(0deg, rgba(3, 17, 31, 0.92), transparent 62%);
}

.subhero-copy {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
  padding: 110px var(--gutter) 72px;
}

.subhero-copy h1 {
  max-width: 12ch;
}

.subhero-copy p:last-child {
  max-width: 620px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
}

.article {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 3vw, 36px);
  padding-block: clamp(70px, 9vw, 120px);
}

.article-main {
  grid-column: 2 / span 7;
}

.article-aside {
  grid-column: 10 / span 3;
  align-self: start;
  border-left: 1px solid var(--line);
  padding-left: 24px;
  color: var(--muted);
}

.lede {
  margin-bottom: 30px;
  color: var(--deep-soft);
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.4vw, 2.45rem);
  line-height: 1.22;
}

.article-main h2 {
  margin-top: 48px;
  font-size: clamp(2rem, 3.2vw, 3.4rem);
}

.article-main p:not(.lede) {
  margin-top: 18px;
  color: var(--muted);
}

.variants {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  padding-top: 0;
  padding-bottom: 0;
}

.variants article {
  min-height: 260px;
  padding: clamp(28px, 4vw, 48px);
  background: var(--warm);
}

.article-media {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(240px, 3fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: end;
  padding-block: clamp(76px, 10vw, 128px);
}

.article-media img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 9% 58%;
  border-radius: 8px;
}

.article-media.right-focus img {
  object-position: 88% 48%;
}

.article-media p {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--muted);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  padding-top: 0;
  padding-bottom: 0;
}

.service-list div {
  padding: clamp(24px, 3vw, 38px);
  background: var(--warm);
}

.service-list span {
  display: block;
  margin-bottom: 26px;
  color: var(--blue);
  font-weight: 800;
}

@media (max-width: 900px) {
  .site-header,
  .site-header.light {
    position: relative;
    align-items: flex-start;
    background: var(--deep);
    color: #fff;
  }

  .site-header {
    flex-direction: column;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 0;
    max-height: none;
  }

  .intro,
  .hero-content,
  .feature-split,
  .feature-split.reverse,
  .band-grid,
  .footer-content,
  .article-media {
    grid-template-columns: 1fr;
  }

  .services,
  .variants,
  .service-list {
    grid-template-columns: 1fr;
  }

  .services article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .article-main,
  .article-aside {
    grid-column: 1;
  }

  .article-aside {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 18px;
  }

  .site-footer.compact .footer-content {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .hero-content,
  .subhero-copy {
    padding-bottom: 54px;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 4.7rem);
  }

  .button {
    width: 100%;
  }

  .context-frame img,
  .article-media img {
    aspect-ratio: 1 / 1;
  }
}

.admin-entry {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  padding: 10px 16px;
  background: rgba(3, 17, 31, 0.92);
  color: #fff;
  font: 800 0.78rem var(--body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 16px 44px rgba(3, 17, 31, 0.28);
  cursor: pointer;
}

.admin-entry.is-logged {
  border-color: rgba(134, 185, 26, 0.8);
  color: var(--green);
}

.admin-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(3, 17, 31, 0.68);
  backdrop-filter: blur(10px);
}

.admin-overlay.is-open {
  display: flex;
}

.admin-dialog {
  width: min(440px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 34px);
  background: var(--warm);
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(3, 17, 31, 0.4);
}

.admin-dialog h2 {
  font-size: clamp(2rem, 6vw, 3rem);
}

.admin-dialog p {
  margin-top: 12px;
  color: var(--muted);
}

.admin-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.admin-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font: 400 1rem var(--body);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.admin-actions button {
  min-height: 44px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--warm);
  font: 800 0.78rem var(--body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-actions .admin-secondary {
  background: transparent;
  color: var(--ink);
}

.admin-error {
  min-height: 22px;
  color: #9d2d1f;
  font-weight: 700;
}

.admin-panel {
  display: none;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.admin-panel.is-visible {
  display: block;
}

.admin-panel ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.admin-page {
  min-height: 100vh;
  background: var(--warm);
}

.admin-dashboard {
  padding-top: 150px;
  padding-bottom: 90px;
}

.admin-hero {
  max-width: 760px;
}

.admin-hero h1 {
  margin-top: 10px;
  font-size: clamp(3rem, 10vw, 6rem);
}

.admin-hero p:not(.section-label) {
  max-width: 620px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.admin-actions a.admin-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--warm);
  font: 800 0.78rem var(--body);
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 46px;
}

.admin-editor {
  margin-top: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 4vw, 30px);
  background: rgba(255, 255, 255, 0.54);
}

.admin-editor form {
  display: grid;
  gap: 18px;
}

.admin-editor-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.admin-editor-head h2 {
  margin-top: 6px;
  font-size: clamp(2rem, 5vw, 3rem);
}

#admin-save-status {
  min-height: 24px;
  color: var(--green);
  font-weight: 800;
}

.admin-editor label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-editor input,
.admin-editor textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px;
  background: #fff;
  color: var(--ink);
  font: 400 1rem var(--body);
  letter-spacing: 0;
  text-transform: none;
}

.admin-editor textarea {
  resize: vertical;
}

.admin-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.admin-toggle-list {
  display: grid;
  gap: 10px;
}

.admin-toggle {
  grid-template-columns: 20px 1fr;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.5);
  letter-spacing: 0;
  text-transform: none;
}

.admin-toggle input {
  width: 18px;
  height: 18px;
  padding: 0;
}

.admin-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.48);
}

.admin-grid span {
  display: block;
  color: var(--blue);
  font: 800 0.78rem var(--body);
  letter-spacing: 0.08em;
}

.admin-grid h2 {
  margin-top: 18px;
  font-size: 1.55rem;
}

.admin-grid p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.65;
}

.admin-grid a {
  display: inline-flex;
  margin-top: 22px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 800px) {
  .admin-dashboard {
    padding-top: 120px;
  }

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

  .admin-editor-head,
  .admin-field-grid {
    grid-template-columns: 1fr;
  }

  .admin-editor-head {
    display: grid;
  }
}
