:root {
  --paper: #f4efe6;
  --paper-strong: #fbf8f2;
  --ink: #12233d;
  --ink-soft: #4a5a71;
  --line: rgba(18, 35, 61, 0.14);
  --sea: #134d6e;
  --teal: #2f9a97;
  --cyan: #78d7e0;
  --coral: #e88361;
  --gold: #efbf69;
  --shadow: 0 30px 80px rgba(15, 30, 50, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 0% 10%, rgba(120, 215, 224, 0.14), transparent 24rem),
    radial-gradient(circle at 100% 12%, rgba(232, 131, 97, 0.14), transparent 26rem),
    linear-gradient(180deg, #f6f2e9 0%, #efe7da 44%, #efe8df 100%);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
}

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

.site-nav a,
.header-mail,
.hero-link,
.section-heading a,
.article-row h2 a,
.article-row h3 a,
.back-link,
.footer-mail {
  position: relative;
  display: inline-block;
}

canvas {
  display: block;
}

.site-backdrop {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.42), transparent 26rem),
    linear-gradient(120deg, rgba(255, 255, 255, 0.18), transparent 60%);
  pointer-events: none;
  z-index: -2;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  border-bottom: 1px solid rgba(18, 35, 61, 0.08);
  background: rgba(246, 242, 233, 0.72);
  backdrop-filter: blur(16px);
}

.header-rail,
.hero-grid,
.hero-side,
.metric-line,
.section-stack-inner,
.editorial-grid,
.page-hero,
.article-river-page,
.article-shell,
.footer-grid,
.footer-meta {
  width: 100%;
  padding-left: clamp(1rem, 3vw, 3.5rem);
  padding-right: clamp(1rem, 3vw, 3.5rem);
}

.header-rail {
  min-height: 5.5rem;
  display: grid;
  grid-template-columns: minmax(18rem, 1.15fr) minmax(22rem, 1.2fr) minmax(14rem, 0.8fr);
  gap: 1.5rem;
  align-items: center;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.brand-mark {
  position: relative;
  width: 3.2rem;
  height: 3.2rem;
}

.brand-mark-line,
.brand-mark-arc,
.brand-mark-dot {
  position: absolute;
  display: block;
}

.brand-mark-line {
  left: 0.1rem;
  right: 0.1rem;
  top: 1.55rem;
  height: 1px;
  background: rgba(18, 35, 61, 0.75);
}

.brand-mark-dot {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 999px;
  border: 1.5px solid rgba(18, 35, 61, 0.8);
  background: rgba(251, 248, 242, 0.82);
}

.brand-mark-dot-one {
  left: 0.35rem;
  top: 1.1rem;
}

.brand-mark-dot-two {
  right: 0.35rem;
  top: 0.32rem;
}

.brand-mark-arc {
  left: 0.55rem;
  top: 0.52rem;
  width: 2rem;
  height: 2rem;
  border: 1.5px solid rgba(18, 35, 61, 0.8);
  border-right-color: transparent;
  border-radius: 999px;
  transform: rotate(-30deg);
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy strong {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 2vw, 2.4rem);
  line-height: 0.9;
  letter-spacing: 0.08em;
  font-weight: 600;
  text-transform: uppercase;
}

.brand-copy small {
  max-width: 17rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.35;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.2rem;
}

.site-nav a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

.site-nav a::after,
.header-mail::after,
.hero-link::after,
.section-heading a::after,
.article-row h2 a::after,
.article-row h3 a::after,
.back-link::after,
.footer-mail::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.22rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.header-mail:hover::after,
.hero-link:hover::after,
.section-heading a:hover::after,
.article-row h2 a:hover::after,
.article-row h3 a:hover::after,
.back-link:hover::after,
.footer-mail:hover::after {
  transform: scaleX(1);
}

.header-contact {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 0.3rem;
}

.header-contact span {
  color: var(--ink-soft);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.header-mail {
  position: relative;
  font-weight: 800;
}

main,
.site-footer {
  width: 100%;
}

body[data-path="/"] .site-header {
  border-bottom-color: rgba(231, 239, 246, 0.08);
  background: rgba(6, 12, 20, 0.6);
}

body[data-path="/"] .brand-copy strong,
body[data-path="/"] .site-nav a,
body[data-path="/"] .header-mail {
  color: #f2f7fb;
}

body[data-path="/"] .brand-copy small,
body[data-path="/"] .header-contact span {
  color: rgba(212, 225, 237, 0.72);
}

body[data-path="/"] .brand-mark-line {
  background: rgba(242, 247, 251, 0.76);
}

body[data-path="/"] .brand-mark-dot {
  border-color: rgba(242, 247, 251, 0.78);
  background: rgba(255, 255, 255, 0.05);
}

body[data-path="/"] .brand-mark-arc {
  border-color: rgba(242, 247, 251, 0.78);
  border-right-color: transparent;
}

.hero {
  position: relative;
  padding-top: clamp(6.4rem, 8vw, 8rem);
  padding-bottom: 0;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, #060d15 0%, #09121d 48%, #0d1723 100%);
  color: #edf4fa;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 28%, rgba(58, 115, 159, 0.28), transparent 24rem),
    radial-gradient(circle at 62% 72%, rgba(94, 173, 108, 0.18), transparent 20rem),
    linear-gradient(120deg, rgba(6, 13, 21, 0.04), rgba(6, 13, 21, 0.5));
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 9rem;
  background: linear-gradient(180deg, rgba(13, 23, 35, 0), rgba(13, 23, 35, 0.96));
  pointer-events: none;
  z-index: 1;
}

.hero-shell {
  position: relative;
  min-height: clamp(42rem, 86vh, 58rem);
  overflow: hidden;
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: 0 34% 0 0;
  background: linear-gradient(90deg, rgba(6, 13, 21, 0.98) 0%, rgba(6, 13, 21, 0.94) 44%, rgba(6, 13, 21, 0.54) 74%, rgba(6, 13, 21, 0) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-image {
  position: absolute;
  top: clamp(3.5rem, 8vw, 6.25rem);
  right: clamp(-12rem, -8vw, 0rem);
  width: min(73vw, 78rem);
  max-width: none;
  opacity: 0.96;
  mix-blend-mode: screen;
  filter: drop-shadow(0 28px 80px rgba(0, 0, 0, 0.42));
  transform: rotate(-2deg);
}

.hero-grid {
  position: relative;
  z-index: 2;
  max-width: 104rem;
  min-height: clamp(30rem, 62vh, 42rem);
  margin: 0 auto;
}

.hero-copy {
  position: relative;
  isolation: isolate;
  max-width: 40rem;
  margin-top: clamp(4rem, 9vh, 7rem);
  padding: 0;
  text-align: left;
}

.hero-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -4rem;
  top: -3rem;
  width: 30rem;
  height: 24rem;
  background:
    radial-gradient(circle at 45% 42%, rgba(140, 202, 228, 0.16), transparent 58%),
    radial-gradient(circle at 22% 78%, rgba(255, 255, 255, 0.09), transparent 64%);
  filter: blur(24px);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--sea);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: rgba(142, 203, 231, 0.92);
}

.hero h1 {
  margin: 0;
  max-width: 7.4ch;
  color: #f5f8fb;
  font-family: "Manrope", sans-serif;
  font-size: clamp(3rem, 5vw, 5.2rem);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.page-hero h1,
.article-header h1,
.site-footer h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 4.85vw, 6rem);
  line-height: 0.92;
  font-weight: 600;
  max-width: 9ch;
}

.page-lead,
.article-summary {
  max-width: 40rem;
  margin: 1.5rem 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.76;
}

.hero-summary {
  max-width: 34rem;
  margin: 1.6rem 0 0;
  color: rgba(220, 231, 241, 0.78);
  font-size: 1.03rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1.25rem 2rem;
  margin-top: 2rem;
}

.hero .hero-link {
  color: rgba(236, 243, 249, 0.88);
}

.hero-link,
.section-heading a,
.back-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-link::before {
  content: "";
  display: block;
  width: 2.8rem;
  height: 1px;
  background: currentColor;
  opacity: 0.42;
}

.hero-link-primary {
  color: #8adcf0;
}

.hero-lead {
  max-width: 34rem;
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(232, 240, 246, 0.14);
  color: rgba(220, 231, 241, 0.72);
  line-height: 1.75;
}

.hero-side {
  position: relative;
  z-index: 2;
  max-width: 104rem;
  margin: 0 auto;
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.hero-side-label,
.hero-side-caption {
  color: rgba(209, 222, 234, 0.62);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-side-line {
  width: 100%;
  height: 1px;
  margin: 1rem 0 1.25rem;
  background: rgba(232, 240, 246, 0.12);
}

.hero-panels {
  counter-reset: signal;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2rem;
}

.signal-row {
  display: block;
  padding: 1rem 0 0;
  border-top: 1px solid rgba(232, 240, 246, 0.12);
  text-align: left;
}

.signal-row::before {
  counter-increment: signal;
  content: counter(signal, decimal-leading-zero);
  display: block;
  margin-bottom: 0.45rem;
  color: rgba(226, 235, 243, 0.42);
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  line-height: 0.95;
}

.signal-row h2,
.section-heading h2,
.story-row h2,
.article-row h2,
.article-row h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 0.96;
  font-weight: 600;
}

.signal-row h2 {
  color: #eef4fa;
  font-size: clamp(1.6rem, 2vw, 2.15rem);
}

.signal-row p,
.story-content p,
.article-row p,
.footer-note,
.article-body p {
  margin: 0.7rem 0 0;
  color: var(--ink-soft);
  line-height: 1.82;
}

.hero .signal-row p {
  color: rgba(214, 225, 236, 0.64);
}

.hero-side-caption {
  margin: 1.6rem 0 0;
}

.metric-line {
  position: relative;
  z-index: 2;
  max-width: 104rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0 auto;
  padding-top: 1.5rem;
  padding-bottom: 2.4rem;
}

.metric-item {
  padding-top: 1rem;
  border-top: 1px solid rgba(232, 240, 246, 0.12);
}

.metric-item strong {
  display: block;
  color: #8adcf0;
  font-size: clamp(1.8rem, 2.2vw, 2.4rem);
  font-weight: 800;
}

.metric-item span {
  display: block;
  margin-top: 0.35rem;
  color: #eef4fa;
  font-weight: 800;
}

.metric-item small {
  display: block;
  margin-top: 0.55rem;
  color: rgba(214, 225, 236, 0.62);
  line-height: 1.65;
}

.page-home .section-stack {
  padding-top: 4rem;
}

.section-stack,
.editorial-band {
  padding: 1rem 0 4rem;
}

.story-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2rem 4rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(18, 35, 61, 0.14);
}

.story-row:last-child,
.article-river-page .article-row:last-child,
.article-river .article-row:last-child {
  border-bottom: 1px solid rgba(18, 35, 61, 0.14);
}

.story-row h2 {
  max-width: 12ch;
}

.point-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.point-list li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--ink-soft);
  line-height: 1.72;
}

.point-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
}

.accent-teal .point-list li::before {
  background: var(--teal);
}

.accent-coral .point-list li::before {
  background: var(--coral);
}

.accent-gold .point-list li::before {
  background: var(--gold);
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 5rem);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.article-river {
  border-top: 1px solid rgba(18, 35, 61, 0.14);
}

.article-row {
  padding: 1.3rem 0 1.45rem;
  border-top: 1px solid rgba(18, 35, 61, 0.14);
}

.article-river > .article-row:first-child,
.article-river-page > .article-row:first-child {
  border-top: 0;
}

.article-row:hover h2 a,
.article-row:hover h3 a {
  color: var(--sea);
}

.card-tag {
  display: inline-flex;
  color: var(--sea);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1rem;
  color: rgba(18, 35, 61, 0.62);
  font-size: 0.88rem;
  font-weight: 700;
}

.inner-page,
.article-page {
  padding-top: 8rem;
  padding-bottom: 4rem;
}

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

.page-hero h1,
.article-header h1 {
  max-width: 12ch;
}

.article-river-page {
  padding-bottom: 2rem;
}

.article-shell {
  padding-top: 2rem;
}

.article-header {
  max-width: 62rem;
}

.article-body {
  max-width: 54rem;
  margin-top: 1.75rem;
}

.article-body p {
  margin-bottom: 1.15rem;
  font-size: 1.05rem;
}

.back-link {
  margin-top: 0.6rem;
}

.site-footer {
  margin-top: 2rem;
  padding-top: 2rem;
  padding-bottom: 3rem;
  border-top: 1px solid rgba(18, 35, 61, 0.14);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  gap: 2rem 4rem;
}

.footer-label {
  margin: 0 0 0.7rem;
  color: var(--sea);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-mail {
  position: relative;
  display: inline-flex;
  margin-top: 0.25rem;
  font-size: 1.15rem;
  font-weight: 800;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(18, 35, 61, 0.14);
  color: rgba(18, 35, 61, 0.7);
}

@media (max-width: 1100px) {
  .header-rail,
  .story-row,
  .editorial-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .header-contact {
    align-items: start;
  }

  .hero-shell::before {
    inset: 0 20% 0 0;
  }

  .hero-image {
    right: -10rem;
    width: min(82vw, 60rem);
  }

  .hero-side {
    padding-top: 1rem;
  }

  .hero-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
  }

  .hero,
  .inner-page,
  .article-page {
    padding-top: 2rem;
  }

  .header-rail,
  .metric-line,
  .editorial-grid,
  .story-row,
  .footer-grid,
  .section-heading,
  .footer-meta {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: start;
  }

  .site-nav {
    justify-content: start;
  }

  .hero-shell {
    min-height: 44rem;
  }

  .hero-shell::before {
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 13, 21, 0.92) 0%, rgba(6, 13, 21, 0.78) 38%, rgba(6, 13, 21, 0.52) 70%, rgba(6, 13, 21, 0.92) 100%);
  }

  .hero-image {
    top: 8rem;
    right: -8rem;
    width: min(122vw, 42rem);
    opacity: 0.7;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 11vw, 4rem);
    max-width: 10ch;
  }

  .page-hero h1,
  .article-header h1,
  .site-footer h2 {
    font-size: clamp(2.65rem, 12vw, 4.5rem);
  }

  .hero-copy {
    margin-top: 2rem;
  }

  .hero-copy::before {
    width: 100%;
    height: 18rem;
    left: -1rem;
    top: -1.5rem;
  }

  .hero-panels {
    grid-template-columns: 1fr;
  }

  .section-heading {
    margin-bottom: 0.9rem;
  }
}
