:root {
  --forest-950: #0b1710;
  --forest-900: #102219;
  --forest-850: #15281d;
  --forest-800: #1b3426;
  --moss-600: #4d6748;
  --moss-300: #a8b69a;
  --canvas: #f2eee4;
  --paper: #f8f5ee;
  --white: #fffdf8;
  --sand: #e4d7bd;
  --bark: #76553a;
  --bronze: #b27943;
  --blaze: #d6833f;
  --blaze-dark: #a95825;
  --ink: #17231b;
  --muted: #647069;
  --line: rgba(23, 35, 27, .14);
  --line-light: rgba(255, 255, 255, .14);
  --shadow: 0 24px 70px rgba(10, 25, 15, .13);
  --radius: 18px;
  --radius-sm: 12px;
  --shell: min(1220px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 108px; }
body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Aptos", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}
body.menu-open,
body.dialog-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button,
input { font: inherit; }
button { color: inherit; }
h1,
h2,
h3 { margin: 0; font-family: "Aptos Display", "Segoe UI", system-ui, sans-serif; line-height: 1.06; letter-spacing: -.038em; }
p { margin: 0 0 1rem; }
.shell { width: var(--shell); margin-inline: auto; }

.skip-link {
  position: fixed;
  left: 20px;
  top: -90px;
  z-index: 1000;
  padding: 11px 17px;
  border-radius: 8px;
  background: var(--forest-950);
  color: white;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blaze-dark);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--blaze); }
.eyebrow--light { color: #e9b27f; }

.topline { background: var(--forest-950); color: rgba(255, 255, 255, .71); font-size: .72rem; }
.topline__inner { min-height: 34px; display: flex; align-items: center; justify-content: center; gap: 35px; }
.topline__inner span + span { position: relative; }
.topline__inner span + span::before {
  content: "";
  position: absolute;
  left: -19px;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--blaze);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(242, 238, 228, .92);
  border-bottom: 1px solid rgba(23, 35, 27, .08);
  backdrop-filter: blur(16px);
}
.header-main { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 215px; }
.brand__mark {
  position: relative;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  opacity: .96;
}
.brand__mark::before,
.brand__mark::after {
  content: "";
  position: absolute;
  background: currentColor;
  opacity: .72;
}
.brand__mark::before { width: 1px; height: 48px; top: -6px; left: 18px; }
.brand__mark::after { width: 48px; height: 1px; top: 18px; left: -6px; }
.brand__mark i {
  position: absolute;
  z-index: 1;
  width: 10px;
  height: 10px;
  top: 13px;
  left: 13px;
  border: 3px solid var(--blaze);
  border-radius: 50%;
  background: var(--canvas);
}
.brand strong { display: block; font-weight: 850; font-size: 1.13rem; line-height: 1; letter-spacing: .13em; }
.brand small { display: block; margin-top: 5px; color: var(--muted); font-size: .62rem; letter-spacing: .035em; }
.desktop-nav { display: flex; justify-content: center; align-items: center; gap: clamp(16px, 2vw, 30px); font-size: .86rem; font-weight: 730; }
.desktop-nav a { position: relative; padding-block: 28px; }
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 19px;
  height: 2px;
  background: var(--blaze);
  transition: right .2s;
}
.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 9px; }
.icon-button,
.menu-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .46);
  cursor: pointer;
}
.icon-button { font-size: 1.45rem; }
.method-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 15px;
  border-radius: 999px;
  background: var(--forest-850);
  color: white;
  font-size: .76rem;
  font-weight: 800;
}
.method-pill span { color: #e9b27f; }
.menu-button { display: none; }
.menu-button span { width: 17px; height: 2px; margin: 2px auto; display: block; background: var(--ink); }
.mobile-nav { display: none; }

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 5%, rgba(255, 255, 255, .05), transparent 31%),
    linear-gradient(125deg, var(--forest-900), var(--forest-850) 56%, #1d3525);
  color: white;
}
.terrain-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .55;
  background:
    radial-gradient(ellipse at 91% -8%, transparent 0 92px, rgba(228, 215, 189, .12) 94px 95px, transparent 97px 135px, rgba(228, 215, 189, .09) 137px 138px, transparent 140px 183px, rgba(228, 215, 189, .08) 185px 186px, transparent 188px 235px, rgba(228, 215, 189, .06) 237px 238px, transparent 240px),
    radial-gradient(ellipse at 4% 112%, transparent 0 110px, rgba(228, 215, 189, .07) 112px 113px, transparent 115px 165px, rgba(228, 215, 189, .06) 167px 168px, transparent 170px);
}
.hero__grid {
  position: relative;
  z-index: 1;
  min-height: 625px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: clamp(48px, 7vw, 100px);
  padding-block: 76px;
}
.hero__copy { min-width: 0; }
.hero h1 { max-width: 770px; margin: 16px 0 23px; font-size: clamp(3.2rem, 6vw, 5.55rem); }
.hero h1 em { color: #e8aa72; font-style: normal; }
.hero__copy > p { max-width: 650px; color: rgba(255, 255, 255, .72); font-size: 1.08rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  min-height: 49px;
  padding: 0 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  transition: transform .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--blaze); color: white; box-shadow: 0 13px 30px rgba(214, 131, 63, .23); }
.btn--primary:hover { background: var(--blaze-dark); }
.btn--secondary { border-color: rgba(255, 255, 255, .34); color: white; }
.btn--secondary:hover { border-color: rgba(255, 255, 255, .72); }

.finder-card {
  position: relative;
  padding: 31px;
  border: 1px solid rgba(255, 255, 255, .66);
  border-radius: 22px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.finder-card::before {
  content: "N 58°";
  position: absolute;
  right: 23px;
  top: 18px;
  color: rgba(23, 35, 27, .12);
  font-size: .73rem;
  font-weight: 850;
  letter-spacing: .13em;
}
.finder-card h2 { margin: 9px 0 7px; font-size: 1.65rem; }
.finder-card > p { color: var(--muted); font-size: .88rem; }
.finder-step { margin-top: 22px; }
.finder-label { display: block; margin-bottom: 10px; font-size: .69rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.choice-row { display: flex; flex-wrap: wrap; gap: 7px; }
.choice {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ece7dc;
  font-size: .78rem;
  cursor: pointer;
}
.choice:hover { border-color: var(--moss-600); }
.choice.is-active { border-color: var(--forest-850); background: #dbe2d5; font-weight: 800; }
.finder-result {
  margin-top: 24px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 13px;
  background: var(--forest-850);
  color: white;
}
.finder-result > div { min-width: 0; }
.finder-result span { display: block; color: rgba(255, 255, 255, .58); font-size: .69rem; }
.finder-result strong { display: block; margin-top: 2px; font-size: .98rem; }
.finder-result p { margin: 4px 0 0; color: rgba(255, 255, 255, .67); font-size: .72rem; line-height: 1.38; }
.finder-result a { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: 50%; background: var(--blaze); }

.proof-bar { border-bottom: 1px solid var(--line); background: var(--white); }
.proof-grid { min-height: 96px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: stretch; }
.proof-item { padding: 19px 28px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
.proof-item:first-child { padding-left: 0; }
.proof-item:last-child { border-right: 0; }
.proof-item strong { display: block; font-size: .92rem; }
.proof-item strong i { margin-right: 6px; color: var(--blaze-dark); font-style: normal; }
.proof-item span { color: var(--muted); font-size: .74rem; }

.section { padding-block: clamp(75px, 9vw, 118px); }
.section--white { background: var(--white); }
.section-head { margin-bottom: 29px; display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.section-head h2 { margin-top: 9px; font-size: clamp(1.9rem, 3vw, 2.75rem); }
.section-head p { max-width: 570px; margin: 0; color: var(--muted); }

.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.category-card {
  position: relative;
  min-height: 275px;
  overflow: hidden;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.category-card:nth-child(2),
.category-card:nth-child(5) { background: #dfe4d9; }
.category-card:nth-child(3),
.category-card:nth-child(6) { background: #e8dfcf; }
.category-card:hover,
.category-card.is-search-hit { transform: translateY(-4px); border-color: rgba(118, 85, 58, .4); box-shadow: var(--shadow); }
.category-card .num { color: var(--blaze-dark); font-size: .68rem; font-weight: 850; letter-spacing: .14em; }
.category-symbol {
  position: absolute;
  right: 20px;
  top: 14px;
  color: rgba(23, 35, 27, .12);
  font-size: 4.5rem;
  line-height: 1;
}
.category-card h3 { margin: 19px 0 9px; font-size: 1.42rem; }
.category-card p { max-width: 315px; color: var(--muted); font-size: .85rem; }
.category-tags { position: absolute; left: 25px; right: 25px; bottom: 23px; display: flex; flex-wrap: wrap; gap: 6px; }
.category-tags span { padding: 5px 8px; border: 1px solid rgba(23, 35, 27, .12); border-radius: 999px; color: var(--moss-600); font-size: .63rem; font-weight: 750; }

.situation-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.situation-card {
  min-height: 155px;
  padding: 25px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr auto;
  gap: 7px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.situation-card > span { grid-row: 1 / span 2; color: var(--blaze-dark); font-size: .72rem; font-weight: 850; letter-spacing: .12em; }
.situation-card h3 { margin-bottom: 7px; font-size: 1.18rem; }
.situation-card p { margin: 0; color: var(--muted); font-size: .83rem; }
.situation-card > strong { grid-column: 2; color: var(--bark); font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; }

.decision-section { background: #e6e0d4; }
.decision-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(50px, 8vw, 105px); align-items: center; }
.decision-grid h2 { margin: 12px 0 17px; font-size: clamp(2.2rem, 4vw, 3.65rem); }
.decision-grid > div:first-child p { max-width: 580px; color: var(--muted); }
.decision-table { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.decision-table > div { padding: 18px 21px; display: grid; grid-template-columns: .78fr 1.22fr; gap: 20px; border-bottom: 1px solid var(--line); }
.decision-table > div:last-child { border-bottom: 0; }
.decision-table span { color: var(--bark); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.decision-table strong { font-size: .82rem; }

.method { background: var(--forest-850); color: white; }
.method-grid { display: grid; grid-template-columns: .83fr 1.17fr; gap: clamp(50px, 7vw, 90px); align-items: center; }
.method-copy h2 { margin: 14px 0 18px; font-size: clamp(2.35rem, 4vw, 4rem); }
.method-copy p { max-width: 540px; color: rgba(255, 255, 255, .65); }
.method-copy .btn { margin-top: 14px; }
.method-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255, 255, 255, .12); }
.method-step { min-height: 168px; padding: 27px; background: var(--forest-850); }
.method-step span { color: #e9b27f; font-size: .71rem; font-weight: 850; }
.method-step h3 { margin: 12px 0 8px; font-size: 1.03rem; }
.method-step p { margin: 0; color: rgba(255, 255, 255, .57); font-size: .78rem; }

.site-footer { padding: 64px 0 24px; background: var(--forest-950); color: white; }
.footer-grid { display: grid; grid-template-columns: 1.45fr .75fr .8fr 1fr; gap: 50px; }
.brand--footer { min-width: 0; color: white; }
.brand--footer .brand__mark i { background: var(--forest-950); }
.brand--footer small { color: rgba(255, 255, 255, .48); }
.footer-grid > div:first-child > p { max-width: 340px; margin-top: 20px; color: rgba(255, 255, 255, .55); font-size: .8rem; }
.footer-grid h2 { margin-bottom: 16px; font-size: .78rem; letter-spacing: .03em; }
.footer-grid > div:not(:first-child) a { display: block; margin: 9px 0; color: rgba(255, 255, 255, .62); font-size: .76rem; }
.footer-grid > div:not(:first-child) a:hover { color: white; }
.footer-grid > div:last-child p { color: rgba(255, 255, 255, .6); font-size: .76rem; }
.footer-bottom { margin-top: 49px; padding-top: 20px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .42); font-size: .67rem; }

.search-dialog {
  width: min(650px, calc(100vw - 30px));
  padding: 37px;
  border: 0;
  border-radius: 22px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 100px rgba(0, 0, 0, .34);
}
.search-dialog::backdrop { background: rgba(5, 15, 9, .72); backdrop-filter: blur(4px); }
.search-dialog h2 { margin: 10px 0 23px; font-size: 2rem; }
.dialog-close { position: absolute; right: 20px; top: 16px; border: 0; background: transparent; font-size: 1.8rem; cursor: pointer; }
.search-field { padding: 14px 16px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-results { margin-top: 13px; display: grid; gap: 7px; }
.search-hit { padding: 13px 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-radius: 10px; background: #e8e4da; }
.search-hit strong { font-size: .84rem; }
.search-hit span { color: var(--muted); font-size: .72rem; }
.search-empty { padding: 18px 4px; color: var(--muted); font-size: .82rem; }
.toast { position: fixed; z-index: 300; left: 50%; bottom: 25px; padding: 12px 17px; border-radius: 999px; background: var(--forest-950); color: white; font-size: .78rem; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translate(-50%, 15px); transition: opacity .2s, transform .2s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.empty-state { position: relative; min-height: 650px; display: grid; place-items: center; overflow: hidden; background: var(--forest-850); color: white; }
.empty-state__inner { position: relative; z-index: 1; width: min(690px, calc(100vw - 40px)); text-align: center; }
.empty-state .eyebrow { justify-content: center; }
.empty-state h1 { margin: 15px 0 17px; font-size: clamp(3rem, 7vw, 5.5rem); }
.empty-state p { max-width: 560px; margin: 0 auto 28px; color: rgba(255, 255, 255, .66); }

:focus-visible { outline: 3px solid #f1a35e; outline-offset: 3px; }

@media (max-width: 1040px) {
  .desktop-nav { display: none; }
  .menu-button { display: block; }
  .mobile-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 78px;
    padding: 12px max(20px, calc((100vw - 1220px) / 2));
    border-bottom: 1px solid var(--line);
    background: var(--canvas);
    box-shadow: 0 18px 45px rgba(10, 25, 15, .12);
  }
  .mobile-nav.is-open { display: grid; }
  .mobile-nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); font-weight: 750; }
  .mobile-nav a:last-child { border-bottom: 0; }
  .hero__grid { grid-template-columns: 1fr 1fr; gap: 38px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  :root { --shell: min(1220px, calc(100vw - 30px)); }
  .topline__inner span:nth-child(2) { display: none; }
  .topline__inner span:nth-child(3)::before { display: none; }
  .hero__grid,
  .decision-grid,
  .method-grid { grid-template-columns: 1fr; }
  .hero__grid { padding: 66px 0 58px; }
  .hero h1 { font-size: clamp(3rem, 12vw, 5rem); }
  .finder-card { width: 100%; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-item:nth-child(2) { border-right: 0; }
  .proof-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .proof-item:first-child { padding-left: 22px; }
  .section-head { align-items: start; flex-direction: column; }
  .decision-grid { gap: 38px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child,
  .footer-grid > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 580px) {
  html { scroll-padding-top: 80px; }
  .topline__inner { justify-content: flex-start; overflow: hidden; white-space: nowrap; }
  .topline__inner span:nth-child(3) { display: none; }
  .header-main { height: 68px; }
  .brand { min-width: 0; }
  .brand__mark { width: 33px; height: 33px; flex-basis: 33px; }
  .brand__mark::before { height: 41px; left: 15px; top: -5px; }
  .brand__mark::after { width: 41px; top: 15px; left: -5px; }
  .brand__mark i { width: 9px; height: 9px; top: 11px; left: 11px; }
  .brand strong { font-size: .96rem; }
  .brand small { display: none; }
  .method-pill { display: none; }
  .mobile-nav { top: 68px; }
  .hero__grid { min-height: auto; }
  .hero h1 { max-width: 100%; overflow-wrap: anywhere; font-size: clamp(2.65rem, 13vw, 3.5rem); }
  .hero__copy > p { font-size: .97rem; }
  .hero__actions { display: grid; }
  .btn { width: 100%; }
  .finder-card { padding: 23px 19px; }
  .choice { padding: 8px 10px; }
  .proof-grid,
  .category-grid,
  .situation-grid,
  .method-steps,
  .footer-grid { grid-template-columns: 1fr; }
  .proof-item { min-height: 82px; padding: 15px 20px !important; border-right: 0; border-bottom: 1px solid var(--line); }
  .proof-item:last-child { border-bottom: 0; }
  .category-card { min-height: 255px; }
  .situation-card { grid-template-columns: auto 1fr; }
  .decision-table > div { grid-template-columns: 1fr; gap: 5px; }
  .method-step { min-height: 145px; }
  .footer-grid > div:first-child,
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .search-dialog { padding: 31px 20px 23px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
