:root {
  color-scheme: light;
  --ink: #18201f;
  --ink-soft: #4f5b58;
  --muted: #6d7773;
  --paper: #f7f3ed;
  --paper-deep: #ece5da;
  --surface: #fffdf8;
  --line: rgba(24, 32, 31, 0.14);
  --teal: #23756f;
  --teal-deep: #164f4b;
  --coral: #e86f5d;
  --brass: #b48a42;
  --olive: #637247;
  --shadow: 0 24px 80px rgba(26, 33, 31, 0.16);
  --radius: 8px;
  --max: 1180px;
  --nav-h: 74px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.95), rgba(247, 243, 237, 0.92)),
    radial-gradient(circle at 8% 12%, rgba(232, 111, 93, 0.14), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(35, 117, 111, 0.14), transparent 28%);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(35, 117, 111, 0.55);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  border-radius: var(--radius);
  background: var(--ink);
  color: white;
  padding: 10px 14px;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--nav-h);
  border-bottom: 1px solid rgba(24, 32, 31, 0.1);
  background: rgba(247, 243, 237, 0.86);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 32px, var(--max));
  min-height: var(--nav-h);
  margin-inline: auto;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 760;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(24, 32, 31, 0.2);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(35, 117, 111, 0.94), rgba(232, 111, 93, 0.78)),
    var(--teal);
  color: white;
  font-weight: 820;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgba(35, 117, 111, 0.1);
  color: var(--teal-deep);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.76);
  color: var(--ink);
}

.nav-toggle span:not(.sr-only) {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(760px, 76svh);
  overflow: hidden;
  background: #202826;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(18, 25, 24, 0.86) 0%, rgba(18, 25, 24, 0.54) 42%, rgba(18, 25, 24, 0.16) 100%),
    linear-gradient(0deg, rgba(18, 25, 24, 0.34), rgba(18, 25, 24, 0.08));
}

.hero-content {
  position: relative;
  width: min(100% - 32px, var(--max));
  margin: auto;
  padding: 74px 0 66px;
  color: white;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffb2a4;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(4.3rem, 17vw, 10.5rem);
  font-weight: 850;
}

.hero-lede {
  max-width: 680px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.15rem, 2.8vw, 1.62rem);
  line-height: 1.35;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 780px;
  margin: 42px 0 0;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
}

.hero-facts div {
  min-width: 0;
  padding: 18px;
  background: rgba(20, 28, 27, 0.42);
}

.hero-facts dt {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.75rem;
  font-weight: 760;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 5px 0 0;
  color: white;
  font-weight: 720;
}

.section {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
  padding: clamp(58px, 9vw, 106px) 0;
}

.intro-section {
  padding-top: clamp(42px, 7vw, 78px);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.35fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
}

h2 {
  max-width: 780px;
  font-size: clamp(2rem, 5vw, 4.25rem);
  font-weight: 820;
}

h3 {
  font-size: clamp(1.18rem, 2vw, 1.48rem);
  font-weight: 760;
}

.prose {
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
}

.prose p {
  margin: 0 0 1.2em;
}

.tonal-band {
  width: 100%;
  max-width: none;
  padding-inline: max(16px, calc((100vw - var(--max)) / 2));
  background:
    linear-gradient(120deg, rgba(35, 117, 111, 0.12), rgba(232, 111, 93, 0.08)),
    var(--surface);
  border-block: 1px solid var(--line);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
  margin-bottom: clamp(28px, 5vw, 48px);
}

.section-heading.compact {
  display: block;
  max-width: 820px;
}

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

.feature-card,
.principles article {
  min-height: 270px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.82);
  padding: clamp(22px, 3vw, 30px);
  box-shadow: 0 14px 44px rgba(26, 33, 31, 0.08);
}

.card-number {
  display: inline-flex;
  margin-bottom: 54px;
  color: var(--teal);
  font-weight: 820;
}

.feature-card p,
.principles p,
.visual-copy p,
.image-frame figcaption,
.site-footer p {
  color: var(--ink-soft);
}

.visual-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.94fr) minmax(320px, 1.06fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
}

.visual-copy p {
  max-width: 620px;
  margin: 22px 0 0;
  font-size: 1.08rem;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-soft);
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--coral));
  transform: translateY(-50%);
}

.image-frame {
  margin: 0;
}

.image-frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-frame figcaption {
  margin-top: 12px;
  font-size: 0.92rem;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #17201e;
  color: white;
  padding: 48px max(16px, calc((100vw - var(--max)) / 2)) 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 0.8fr);
  gap: 48px;
}

.footer-brand {
  color: white;
}

.site-footer p {
  max-width: 520px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 22px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration-color: rgba(255, 255, 255, 0.32);
  text-underline-offset: 4px;
}

.site-footer a:hover {
  color: white;
}

.footer-note {
  padding-top: 34px;
  font-size: 0.92rem;
}

.legal-main {
  width: min(100% - 32px, 900px);
  margin-inline: auto;
  padding: clamp(58px, 9vw, 98px) 0;
}

.legal-document {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.86);
  padding: clamp(26px, 5vw, 62px);
  box-shadow: 0 20px 70px rgba(26, 33, 31, 0.1);
}

.legal-document h1 {
  max-width: 760px;
  color: var(--ink);
  font-size: clamp(2.8rem, 9vw, 5.8rem);
}

.document-meta {
  margin: 18px 0 44px;
  color: var(--muted);
}

.legal-document section + section {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.legal-document h2 {
  font-size: clamp(1.42rem, 3vw, 2.1rem);
}

.legal-document p,
.legal-document li {
  color: var(--ink-soft);
}

.legal-document code {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(35, 117, 111, 0.08);
  padding: 0.15em 0.35em;
  color: var(--teal-deep);
  font-size: 0.92em;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: white;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 15px;
  text-align: left;
  vertical-align: top;
}

th {
  background: rgba(35, 117, 111, 0.1);
  color: var(--teal-deep);
}

tr:last-child td {
  border-bottom: 0;
}

.text-link {
  color: var(--teal-deep);
  font-weight: 760;
  text-underline-offset: 4px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
}

.button.solid {
  background: var(--teal-deep);
  color: white;
}

.button.muted {
  border-color: rgba(24, 32, 31, 0.16);
  background: rgba(255, 253, 248, 0.78);
  color: var(--ink);
}

.button.ghost {
  border-color: rgba(35, 117, 111, 0.24);
  background: rgba(35, 117, 111, 0.08);
  color: var(--teal-deep);
}

.inline-control {
  margin-top: 8px;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  width: min(calc(100vw - 36px), 840px);
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(23, 32, 30, 0.94);
  color: white;
  box-shadow: var(--shadow);
  padding: 18px;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner h2 {
  font-size: 1.08rem;
}

.cookie-banner p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

.cookie-dialog {
  width: min(calc(100vw - 28px), 620px);
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  padding: 0;
}

.cookie-dialog::backdrop {
  background: rgba(11, 17, 16, 0.46);
}

.cookie-dialog form {
  margin: 0;
  padding: 24px;
}

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

.dialog-head h2 {
  font-size: clamp(1.5rem, 4vw, 2.3rem);
}

.preference-list {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.preference-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 16px;
}

.preference-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.preference-row input {
  width: 24px;
  height: 24px;
  accent-color: var(--teal);
  flex: 0 0 auto;
}

.preference-row.is-disabled {
  background: rgba(35, 117, 111, 0.06);
}

.dialog-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.not-found {
  display: grid;
  width: min(100% - 32px, 760px);
  min-height: 100svh;
  align-content: center;
  margin-inline: auto;
  padding: 42px 0;
}

.not-found h1 {
  color: var(--ink);
  font-size: clamp(3rem, 12vw, 7rem);
}

@media (max-width: 980px) {
  .feature-grid,
  .principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .visual-section,
  .section-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --nav-h: 66px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    right: 16px;
    left: 16px;
    display: none;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 253, 248, 0.98);
    box-shadow: 0 18px 48px rgba(26, 33, 31, 0.14);
    padding: 8px;
  }

  .nav-links.is-open {
    display: grid;
  }

  .nav-links a {
    border-radius: 6px;
    padding: 12px;
  }

  .hero {
    min-height: 78svh;
  }

  .hero-media {
    object-position: 58% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(18, 25, 24, 0.9), rgba(18, 25, 24, 0.46)),
      linear-gradient(0deg, rgba(18, 25, 24, 0.36), rgba(18, 25, 24, 0.1));
  }

  .hero-facts,
  .feature-grid,
  .principles,
  .site-footer nav {
    grid-template-columns: 1fr;
  }

  .hero-facts div {
    padding: 14px;
  }

  .section-heading {
    display: block;
  }

  .cookie-banner {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    grid-template-columns: 1fr;
  }

  .cookie-actions,
  .dialog-actions {
    justify-content: stretch;
  }

  .cookie-actions .button,
  .dialog-actions .button {
    flex: 1 1 160px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
