/* Stillwater Aquatics Studio — editorial aquarium design */
:root {
  --sw-abyss: #090d16;
  --sw-depth: #111827;
  --sw-sand: #f4efe6;
  --sw-sand-alt: #ebe4d8;
  --sw-ink: #f9fafb;
  --sw-ink-dark: #0f172a;
  --sw-mute: #cbd5e1;
  --sw-mute-dark: #64748b;
  --sw-cyan: #38bdf8;
  --sw-teal: #0369a1;
  --sw-glass: #7dd3fc;
  --sw-border: #1f293d;
  --sw-border-light: #d4cfc4;
  --sw-focus: #38bdf8;
  --sw-max: 75rem;
  --sw-display: "Segoe UI", system-ui, -apple-system, sans-serif;
  --sw-body: system-ui, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--sw-sand);
  color: var(--sw-ink-dark);
  font: 1.125rem/1.65 var(--sw-body);
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--sw-teal); }
a:focus-visible,
button:focus-visible,
summary:focus-visible,
.sw-cta:focus-visible {
  outline: 3px solid var(--sw-focus);
  outline-offset: 3px;
}

.sw-footer a:focus-visible { outline-color: var(--sw-glass); }

.sw-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--sw-cyan);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

.sw-skip {
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.sw-skip:focus {
  width: auto;
  height: auto;
  clip: auto;
  z-index: 100;
  background: #fff;
  color: var(--sw-ink-dark);
  padding: 0.75rem 1rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.sw-utility {
  background: var(--sw-abyss);
  color: var(--sw-mute);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.5rem 1rem;
}

.sw-masthead {
  border-bottom: 1px solid var(--sw-border-light);
  padding: 0.85rem max(1rem, calc((100vw - var(--sw-max)) / 2));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--sw-sand);
}

.sw-brand {
  font-family: var(--sw-display);
  font-size: clamp(1.05rem, 3.8vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--sw-ink-dark);
  min-height: 44px;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  line-height: 1.15;
}

.sw-brand span {
  flex: 0 0 100%;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sw-mute-dark);
  margin-top: 0.22rem;
  line-height: 1.2;
}

.sw-nav-wrap { margin-left: auto; }

.sw-nav-mobile { position: relative; }

.sw-nav-mobile__summary {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--sw-border-light);
  background: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sw-nav-mobile__summary::-webkit-details-marker { display: none; }

.sw-nav-mobile__close { display: none; }
.sw-nav-mobile[open] .sw-nav-mobile__open { display: none; }
.sw-nav-mobile[open] .sw-nav-mobile__close { display: inline; }

.sw-nav-mobile__bars {
  width: 1.1rem;
  height: 2px;
  background: var(--sw-ink-dark);
  box-shadow: 0 6px 0 var(--sw-ink-dark), 0 -6px 0 var(--sw-ink-dark);
}

.sw-drawer {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 50;
  min-width: min(18rem, 92vw);
  background: #fff;
  border: 1px solid var(--sw-border-light);
  box-shadow: 0 12px 40px rgba(9, 13, 22, 0.18);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
}

.sw-drawer a {
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  text-decoration: none;
  color: var(--sw-ink-dark);
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--sw-sand-alt);
}

.sw-drawer a:last-child { border-bottom: 0; }

.sw-desktop-nav { display: none; }

@media (min-width: 960px) {
  .sw-nav-mobile { display: none; }
  .sw-desktop-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 0.55rem;
    justify-content: flex-end;
  }
  .sw-desktop-nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.5rem;
    text-decoration: none;
    color: var(--sw-ink-dark);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
  }
}

.sw-page > * + * { margin-top: 0; }

.sw-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sw-mute-dark);
  margin: 0 0 0.5rem;
}

.sw-lede {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--sw-mute-dark);
  max-width: 38rem;
}

.sw-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.sw-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--sw-cyan);
  color: var(--sw-abyss);
  border: 1px solid var(--sw-cyan);
}

.sw-cta--ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.sw-hero-home {
  background: linear-gradient(165deg, var(--sw-abyss) 0%, #0c1524 55%, var(--sw-depth) 100%);
  color: var(--sw-ink);
  padding: 0 0 2.5rem;
  position: relative;
  overflow: hidden;
}

.sw-hero-home__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: var(--sw-max);
  margin: 0 auto;
}

.sw-hero-home__copy {
  padding: 1.75rem max(1rem, calc((100vw - var(--sw-max)) / 2)) 1.25rem;
  position: relative;
  z-index: 2;
}

.sw-hero-home__copy .sw-label { color: var(--sw-glass); }
.sw-hero-home__copy .sw-lede { color: var(--sw-mute); }

.sw-hero-home h1 {
  font-family: var(--sw-display);
  font-size: clamp(2.1rem, 7vw, 3.65rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
  max-width: 14ch;
}

.sw-hero-home .sw-cta--ghost {
  color: var(--sw-ink);
  border-color: rgba(249, 250, 251, 0.45);
}

.sw-hero-visual {
  position: relative;
  min-height: 16.5rem;
}

.sw-hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 16.5rem;
  object-fit: cover;
  object-position: 42% 38%;
}

@media (min-width: 720px) {
  .sw-hero-home__grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    align-items: stretch;
    min-height: 26rem;
  }
  .sw-hero-home__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: 2.5rem;
  }
  .sw-hero-visual { min-height: 100%; }
  .sw-hero-visual img {
    min-height: 26rem;
    object-position: center 40%;
  }
}

.sw-waterline {
  width: min(720px, 92%);
  margin: 1.25rem auto 0;
  opacity: 0.9;
}

.sw-band {
  padding: 2.5rem max(1rem, calc((100vw - var(--sw-max)) / 2));
  max-width: 100%;
}

.sw-band--dark {
  background: var(--sw-depth);
  color: var(--sw-ink);
}

.sw-band--dark .sw-lede,
.sw-band--dark p { color: var(--sw-mute); }

.sw-band--sand {
  background: var(--sw-sand-alt);
}

.sw-band h2,
.sw-editorial h2,
.sw-split h2 {
  font-family: var(--sw-display);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
}

.sw-editorial {
  padding: 2.75rem max(1rem, calc((100vw - var(--sw-max)) / 2));
  max-width: var(--sw-max);
  margin: 0 auto;
}

.sw-editorial--rule {
  border-top: 1px solid var(--sw-border-light);
}

.sw-lanes {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .sw-lanes { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .sw-lanes--4 { grid-template-columns: repeat(4, 1fr); }
}

.sw-lane {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1.1rem 1.15rem 1.2rem;
  border-left: 3px solid var(--sw-cyan);
  background: #fff;
  min-height: 44px;
  transition: transform 0.15s ease;
}

.sw-lane:hover { transform: translateY(-2px); }

.sw-lane__tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sw-teal);
  margin: 0 0 0.35rem;
}

.sw-lane h3 {
  font-family: var(--sw-display);
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}

.sw-lane p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--sw-mute-dark);
  line-height: 1.55;
}

.sw-split {
  display: grid;
  gap: 1.5rem;
  padding: 2.5rem max(1rem, calc((100vw - var(--sw-max)) / 2));
  max-width: var(--sw-max);
  margin: 0 auto;
  align-items: center;
}

@media (min-width: 800px) {
  .sw-split { grid-template-columns: 1fr 1.05fr; }
  .sw-split--flip .sw-split__art { order: -1; }
  .sw-split--offset { grid-template-columns: 1.05fr 1fr; }
}

.sw-split__art {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: var(--sw-abyss);
}

.sw-split__art img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.sw-crop-planted img { object-position: 55% 42%; }
.sw-crop-reef img { object-position: center 45%; }
.sw-crop-care img { object-position: 42% 35%; }
.sw-crop-hero img { object-position: 40% 38%; }

.sw-panorama {
  margin: 0;
  overflow: hidden;
  background: var(--sw-abyss);
}

.sw-panorama img {
  width: 100%;
  max-height: 22rem;
  object-fit: cover;
}

.sw-page-title {
  padding: 2rem max(1rem, calc((100vw - var(--sw-max)) / 2)) 1.5rem;
  max-width: var(--sw-max);
  margin: 0 auto;
  background: var(--sw-sand);
}

.sw-page-title h1 {
  font-family: var(--sw-display);
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  margin: 0 0 0.65rem;
}

.sw-list {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
  color: var(--sw-mute-dark);
}

.sw-list li { margin-bottom: 0.45rem; }

.sw-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0;
}

.sw-pill {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--sw-border-light);
  background: #fff;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.sw-gallery-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

@media (min-width: 720px) {
  .sw-gallery-grid { grid-template-columns: 1.2fr 0.8fr; }
  .sw-gallery-grid__tall { grid-row: span 2; }
}

.sw-gallery-grid figure {
  margin: 0;
  overflow: hidden;
  background: var(--sw-abyss);
}

.sw-gallery-grid img {
  width: 100%;
  height: 100%;
  min-height: 12rem;
  object-fit: cover;
}

.sw-steps {
  counter-reset: swstep;
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 1rem;
}

.sw-steps li {
  counter-increment: swstep;
  padding-left: 2.75rem;
  position: relative;
  min-height: 44px;
}

.sw-steps li::before {
  content: counter(swstep, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--sw-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--sw-cyan);
}

.sw-journal {
  display: grid;
  gap: 1.5rem;
  margin-top: 1rem;
}

.sw-journal article {
  border-left: 2px solid var(--sw-border-light);
  padding-left: 1rem;
}

.sw-journal__marker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sw-teal);
  margin: 0 0 0.35rem;
}

.sw-journal h3 {
  font-family: var(--sw-display);
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

.sw-glass-panel {
  padding: 1.5rem;
  background: rgba(17, 24, 39, 0.04);
  border: 1px solid var(--sw-border-light);
  backdrop-filter: blur(6px);
}

.sw-footer {
  background: var(--sw-abyss);
  color: var(--sw-mute);
  padding: 2rem max(1rem, calc((100vw - var(--sw-max)) / 2)) 2.5rem;
  margin-top: 2rem;
}

.sw-disclosure {
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 36rem;
  margin: 0 0 1.25rem;
  color: var(--sw-mute);
}

.sw-footer-nav__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  color: var(--sw-glass);
}

.sw-footer-nav__list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.sw-footer-nav a {
  color: var(--sw-ink);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 0.92rem;
}

.sw-colophon {
  margin: 0;
  font-size: 0.82rem;
  color: var(--sw-mute-dark);
}

body.sw-nav-open { overflow: hidden; }