@font-face {
  font-family: "Yexi Serif";
  src: url("../fonts/yexi-serif.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1d2c22;
  --ink-soft: #526055;
  --forest: #1e362a;
  --forest-deep: #14271d;
  --forest-2: #2b4838;
  --moss: #6b8260;
  --moss-deep: #53694b;
  --sage: #a9ba9c;
  --sage-light: #dbe3d2;
  --paper: #f3efe4;
  --paper-deep: #e9e3d4;
  --cream: #fbf7ec;
  --gold: #cfaa66;
  --gold-soft: #e7d2a3;
  --clay: #b26b4d;
  --line: rgba(29, 44, 34, 0.14);
  --line-strong: rgba(29, 44, 34, 0.24);
  --line-light: rgba(251, 247, 236, 0.16);
  --gutter: clamp(1.25rem, 4.3vw, 5.5rem);
  --max: 1540px;
  --serif: "Yexi Serif", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 300px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

h1,
h2,
h3,
p,
figure,
blockquote,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

img {
  height: auto;
}

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

button {
  color: inherit;
  font: inherit;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}

button:disabled {
  cursor: default;
}

::selection {
  background: var(--gold-soft);
  color: var(--forest);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 3000;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("../img/noise.svg");
  background-size: 220px 220px;
  mix-blend-mode: multiply;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 5000;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--forest);
  font-size: 0.8rem;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

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

.container {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(5.5rem, 9.5vw, 10rem);
}

.section-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  margin-bottom: clamp(3.5rem, 6.5vw, 6.5rem);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.section-label > span {
  color: var(--moss);
}

.section-label.light {
  color: rgba(251, 247, 236, 0.58);
}

.section-label.light > span {
  color: var(--gold);
}

.section-side {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.9rem, 5.6vw, 6.2rem);
  line-height: 1.07;
  letter-spacing: -0.035em;
}

h2 em,
h1 em {
  font-style: normal;
  color: var(--moss);
}

.section-top.light + h2 em,
.rx h2 em,
.site-footer h2 em {
  color: var(--gold-soft);
}

p {
  line-height: 1.9;
}

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1s var(--ease),
    transform 1s var(--ease);
  transition-delay: var(--delay, 0s);
}

.reveal-ready [data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 50px;
  padding: 0.85rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  transition:
    transform 0.4s var(--ease),
    background-color 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease;
}

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

.button .icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.35s var(--ease);
}

.button:hover .icon {
  transform: translateX(3px);
}

.button-cream {
  background: var(--cream);
  color: var(--forest);
}

.button-cream:hover {
  background: #ffffff;
}

.button-ghost {
  color: var(--cream);
  border-color: rgba(251, 247, 236, 0.32);
  background: rgba(251, 247, 236, 0.03);
  backdrop-filter: blur(4px);
}

.button-ghost:hover {
  border-color: rgba(251, 247, 236, 0.7);
  background: rgba(251, 247, 236, 0.08);
}

.button-outline {
  color: var(--ink);
  border-color: var(--line-strong);
  background: transparent;
}

.button-outline:hover {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--cream);
}

.button-dark {
  background: var(--forest);
  color: var(--cream);
}

.button-dark:hover {
  background: var(--forest-2);
}

.text-button {
  font-size: 0.78rem;
  color: var(--moss-deep);
  transition: color 0.2s ease;
}

.text-button:hover {
  color: var(--forest);
}

.text-button:disabled {
  opacity: 0.3;
}

.live-dot {
  position: relative;
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b7cf9c;
  box-shadow: 0 0 0 0 rgba(183, 207, 156, 0.5);
  animation: livePulse 3.2s ease-out infinite;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(183, 207, 156, 0.45); }
  65% { box-shadow: 0 0 0 7px rgba(183, 207, 156, 0); }
  100% { box-shadow: 0 0 0 0 rgba(183, 207, 156, 0); }
}

/* ------------------------------------------------------------
   Header
------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  padding: 24px var(--gutter);
  color: var(--cream);
  transition:
    padding 0.45s var(--ease),
    background-color 0.45s ease,
    color 0.45s ease,
    border-color 0.45s ease,
    backdrop-filter 0.45s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  padding-block: 13px;
  background: rgba(243, 239, 228, 0.9);
  border-color: var(--line);
  color: var(--ink);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(var(--max), 100%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  color: currentColor;
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.brand-text strong {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.brand-text small {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.54rem;
  letter-spacing: 0.14em;
  opacity: 0.65;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 2.6vw, 2.8rem);
  margin-left: auto;
  margin-right: clamp(1rem, 2vw, 2.3rem);
}

.desktop-nav a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.38rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  opacity: 0.78;
  transition: opacity 0.25s ease;
}

.desktop-nav a span {
  font-family: Georgia, serif;
  font-size: 0.52rem;
  color: var(--gold);
  opacity: 0.9;
}

.site-header.is-scrolled .desktop-nav a span {
  color: var(--moss);
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  opacity: 1;
}

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {
  transform: scaleX(1);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.weather-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 36px;
  padding: 0 0.85rem;
  border: 1px solid rgba(251, 247, 236, 0.2);
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: rgba(251, 247, 236, 0.8);
  white-space: nowrap;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.site-header.is-scrolled .weather-pill {
  border-color: var(--line);
  color: var(--ink-soft);
}

.weather-pill:hover {
  border-color: currentColor;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 38px;
  padding: 0 1rem;
  border-radius: 999px;
  background: var(--cream);
  color: var(--forest);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.header-cta .icon {
  width: 0.95rem;
  height: 0.95rem;
}

.site-header.is-scrolled .header-cta {
  background: var(--forest);
  color: var(--cream);
}

.header-cta:hover {
  background: var(--gold-soft);
  color: var(--forest);
}

.menu-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.8;
}

.menu-toggle span {
  position: absolute;
  left: 12px;
  width: 17px;
  height: 1px;
  background: currentColor;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}

.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 23px; }

.menu-toggle[aria-expanded="true"] span:first-child {
  top: 20px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  top: 20px;
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  padding: 7rem var(--gutter) 2rem;
  background:
    radial-gradient(circle at 82% 12%, rgba(207, 170, 102, 0.16), transparent 36%),
    var(--forest-deep);
  color: var(--cream);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}

.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
}

.mobile-menu-inner {
  width: 100%;
}

.mobile-menu-kicker {
  margin-bottom: 2.2rem;
  font-family: Georgia, serif;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: rgba(251, 247, 236, 0.45);
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
}

.mobile-menu nav a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-light);
  font-family: var(--serif);
  font-size: clamp(2.35rem, 9vw, 4.2rem);
  line-height: 1.15;
  transform: translateY(18px);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}

.mobile-menu.is-open nav a {
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu.is-open nav a:nth-child(2) { transition-delay: 0.06s; }
.mobile-menu.is-open nav a:nth-child(3) { transition-delay: 0.12s; }
.mobile-menu.is-open nav a:nth-child(4) { transition-delay: 0.18s; }

.mobile-menu nav a span {
  font-family: Georgia, serif;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.mobile-menu-foot {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 3rem;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: rgba(251, 247, 236, 0.45);
}

body.menu-open .site-header {
  color: var(--cream);
  background: transparent;
  border-color: transparent;
  backdrop-filter: none;
}

body.menu-open .site-header .header-cta {
  background: var(--cream);
  color: var(--forest);
}

/* ------------------------------------------------------------
   Hero
------------------------------------------------------------ */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: max(720px, 100svh);
  padding: 0 var(--gutter);
  overflow: hidden;
  background: var(--forest);
  color: var(--cream);
  isolation: isolate;
}

.hero-media,
.hero-wash {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% center;
  animation: heroZoom 28s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.045); }
}

.hero-wash {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(15, 29, 21, 0.92) 0%, rgba(15, 29, 21, 0.76) 28%, rgba(15, 29, 21, 0.3) 57%, rgba(15, 29, 21, 0.02) 78%),
    linear-gradient(0deg, rgba(12, 25, 17, 0.86) 0%, rgba(12, 25, 17, 0.1) 34%, transparent 55%),
    linear-gradient(180deg, rgba(12, 25, 17, 0.55) 0%, transparent 18%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px;
  align-items: center;
  width: min(var(--max), 100%);
  margin-inline: auto;
  flex: 1;
  padding-top: clamp(7.5rem, 15vh, 10rem);
  padding-bottom: clamp(6rem, 11vh, 8.5rem);
}

.hero-copy {
  max-width: 780px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: clamp(1.6rem, 3vh, 2.5rem);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  color: rgba(251, 247, 236, 0.6);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.15s forwards;
}

.eyebrow-line {
  display: inline-block;
  width: 34px;
  height: 1px;
  background: rgba(251, 247, 236, 0.4);
}

.hero h1 {
  max-width: 9.2em;
  font-family: var(--serif);
  font-size: clamp(4.2rem, 9.3vw, 10.6rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
  text-shadow: 0 2px 40px rgba(8, 18, 11, 0.25);
}

.title-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}

.title-line > span {
  display: block;
  transform: translateY(110%);
  animation: lineUp 1.15s var(--ease) 0.22s forwards;
}

.title-line:nth-child(2) > span {
  animation-delay: 0.35s;
}

.hero h1 em {
  position: relative;
  color: var(--gold-soft);
  font-weight: 400;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0.03em;
  right: 0.07em;
  bottom: 0.02em;
  height: 0.07em;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(231, 210, 163, 0.5), rgba(231, 210, 163, 0));
}

.hero-lede {
  max-width: 40rem;
  margin-top: clamp(1.7rem, 3.5vh, 2.6rem);
  font-size: clamp(0.94rem, 1.15vw, 1.08rem);
  line-height: 2;
  color: rgba(251, 247, 236, 0.74);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.62s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(1.8rem, 3.8vh, 2.8rem);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.74s forwards;
}

.hero-now {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: clamp(1.8rem, 3.2vh, 2.5rem);
  padding-top: 1rem;
  max-width: 30rem;
  border-top: 1px solid rgba(251, 247, 236, 0.16);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: rgba(251, 247, 236, 0.55);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease) 0.88s forwards;
}

.hero-side {
  align-self: center;
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: rgba(251, 247, 236, 0.46);
  opacity: 0;
  animation: fadeIn 1.2s ease 1s forwards;
}

.vertical-note {
  margin: 0;
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  line-height: 1.9;
}

.hero-side-rule {
  width: 1px;
  height: 70px;
  background: linear-gradient(180deg, rgba(251, 247, 236, 0.34), transparent);
}

.hero-coords {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 0.52rem;
  line-height: 1.8;
  letter-spacing: 0.13em;
  text-align: center;
}

.hero-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: min(var(--max), 100%);
  margin-inline: auto;
  padding: 1.3rem 0 1.5rem;
  border-top: 1px solid rgba(251, 247, 236, 0.16);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  color: rgba(251, 247, 236, 0.46);
  opacity: 0;
  animation: fadeIn 1.2s ease 1.1s forwards;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(251, 247, 236, 0.65);
  letter-spacing: 0.12em;
  transition: color 0.25s ease;
}

.scroll-cue:hover {
  color: var(--cream);
}

.scroll-line {
  position: relative;
  display: block;
  width: 1px;
  height: 30px;
  background: rgba(251, 247, 236, 0.24);
  overflow: hidden;
}

.scroll-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 1px;
  height: 100%;
  background: var(--cream);
  animation: scrollLine 2.4s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { top: -100%; }
  55%, 100% { top: 100%; }
}

@keyframes lineUp {
  to { transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* ------------------------------------------------------------
   Marquee
------------------------------------------------------------ */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper-deep);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  width: max-content;
  animation: marqueeMove 34s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-track > span {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  letter-spacing: 0.16em;
  color: var(--ink);
  white-space: nowrap;
}

.marquee-leaf {
  width: 14px;
  height: 14px;
  color: var(--moss);
  opacity: 0.55;
}

@keyframes marqueeMove {
  to { transform: translateX(-50%); }
}

/* ------------------------------------------------------------
   Intro
------------------------------------------------------------ */
.intro {
  background:
    radial-gradient(circle at 92% 12%, rgba(207, 170, 102, 0.1), transparent 28%),
    var(--paper);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.intro-heading {
  position: relative;
}

.intro-heading h2 {
  max-width: 8.4em;
}

.seal {
  position: absolute;
  right: clamp(0rem, 3vw, 3rem);
  bottom: -3.8rem;
  width: clamp(100px, 9vw, 142px);
  color: var(--moss);
  opacity: 0.72;
  transform: rotate(-13deg);
}

.seal svg {
  width: 100%;
  height: auto;
  animation: sealSpin 48s linear infinite;
}

.seal text {
  font-family: Georgia, serif;
  font-size: 7.3px;
  letter-spacing: 2.2px;
  fill: currentColor;
}

@keyframes sealSpin {
  to { transform: rotate(360deg); }
}

.intro-text {
  justify-self: end;
  max-width: 35rem;
  padding-top: 0.6rem;
}

.intro-text p {
  margin-bottom: 1.25rem;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.intro-text p strong {
  color: var(--ink);
  font-weight: 500;
}

.intro-lead {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.7rem) !important;
  line-height: 1.75 !important;
  color: var(--ink) !important;
  letter-spacing: -0.01em;
}

.intro-text blockquote {
  position: relative;
  margin-top: 2.2rem;
  padding: 1.2rem 0 0.4rem 1.5rem;
  border-left: 1px solid var(--gold);
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.55vw, 1.32rem);
  line-height: 1.8;
  color: var(--forest-2);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(4.5rem, 8vw, 7.5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 2rem clamp(1rem, 2.5vw, 2.4rem) 1.8rem;
  border-left: 1px solid var(--line);
}

.stat:first-child {
  border-left: 0;
  padding-left: 0;
}

.stat strong {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 4.1rem);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.04em;
  color: var(--forest);
}

.stat span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.microclimate {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(190px, 0.8fr) auto;
  align-items: center;
  gap: clamp(1.4rem, 3vw, 3rem);
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  padding: 1.5rem clamp(1.25rem, 2.5vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 94% 10%, rgba(207, 170, 102, 0.2), transparent 26%),
    rgba(229, 223, 207, 0.58);
  overflow: hidden;
}

.micro-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

.micro-live {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border: 1px solid rgba(107, 130, 96, 0.35);
  border-radius: 999px;
  font-family: Georgia, serif;
  font-size: 0.48rem;
  letter-spacing: 0.08em;
  color: var(--moss-deep);
}

.micro-read {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}

.micro-temp {
  display: flex;
  align-items: flex-start;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 4.2vw, 4.2rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--forest);
}

.micro-deg {
  margin-top: 0.2rem;
  margin-left: 0.1rem;
  font-family: Georgia, serif;
  font-size: 0.7rem;
  letter-spacing: 0;
  color: var(--moss);
}

.micro-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.micro-copy strong {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
}

.micro-copy span {
  font-size: 0.68rem;
  color: var(--ink-soft);
}

.micro-tip {
  max-width: 34ch;
  padding-left: clamp(1rem, 2vw, 2rem);
  border-left: 1px solid var(--line);
  font-size: 0.75rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.micro-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  white-space: nowrap;
  color: var(--moss-deep);
  border-bottom: 1px solid rgba(107, 130, 96, 0.4);
  padding-bottom: 0.15rem;
}

.micro-link .icon {
  width: 0.9rem;
  height: 0.9rem;
  transition: transform 0.3s var(--ease);
}

.micro-link:hover .icon {
  transform: translateX(3px);
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-top: clamp(3.5rem, 6vw, 5.5rem);
}

.principle {
  position: relative;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.principle-num {
  position: absolute;
  top: 1.4rem;
  right: 0;
  font-family: Georgia, serif;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--moss);
}

.principle-icon {
  width: 30px;
  height: 30px;
  margin-top: 1.7rem;
  color: var(--moss);
  stroke-width: 1.2;
}

.principle h3 {
  margin-top: 1.4rem;
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.principle p {
  max-width: 31ch;
  margin-top: 0.55rem;
  font-size: 0.82rem;
  line-height: 1.85;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------
   Prescription
------------------------------------------------------------ */
.rx {
  position: relative;
  margin: 0 clamp(0px, 1.2vw, 18px);
  padding-block: clamp(5.5rem, 9vw, 9.5rem);
  border-radius: clamp(0px, 2vw, 36px);
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 6%, rgba(207, 170, 102, 0.17), transparent 31%),
    radial-gradient(circle at 8% 92%, rgba(169, 186, 156, 0.1), transparent 27%),
    var(--forest);
  color: var(--cream);
}

.rx-texture {
  position: absolute;
  inset: 0;
  background-image: url("../img/contours.svg");
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  pointer-events: none;
}

.rx::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 39, 29, 0) 60%, rgba(20, 39, 29, 0.5));
}

.rx-inner {
  position: relative;
  z-index: 2;
}

.rx .section-top {
  border-color: var(--line-light);
}

.rx .section-side {
  color: rgba(251, 247, 236, 0.46);
}

.rx-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(3rem, 6.5vw, 7rem);
  align-items: start;
}

.rx-copy {
  position: sticky;
  top: 7.5rem;
}

.rx h2 {
  max-width: 8em;
  font-size: clamp(3.2rem, 5.5vw, 6rem);
}

.rx-lead {
  max-width: 42ch;
  margin-top: 1.9rem;
  font-size: 0.93rem;
  line-height: 1.95;
  color: rgba(251, 247, 236, 0.66);
}

.rx-jump {
  display: none;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  margin-top: 1.25rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid rgba(251, 247, 236, 0.28);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--gold-soft);
}

.rx-jump span {
  transition: transform 0.3s var(--ease);
}

.rx-jump:hover span {
  transform: translateY(3px);
}

.algorithm-note {
  max-width: 36rem;
  margin-top: clamp(2.5rem, 4vw, 3.6rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-light);
}

.algorithm-label {
  margin-bottom: 0.8rem;
  font-family: Georgia, serif;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.weight-list li {
  display: grid;
  grid-template-columns: 3.7rem 1fr;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(251, 247, 236, 0.09);
}

.weight-list li > span {
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.5;
  color: var(--gold-soft);
}

.weight-list li p {
  font-size: 0.76rem;
  line-height: 1.75;
  color: rgba(251, 247, 236, 0.5);
}

.weight-list li strong {
  display: inline-block;
  margin-right: 0.45rem;
  font-weight: 500;
  color: rgba(251, 247, 236, 0.92);
}

.privacy-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.8rem;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: rgba(251, 247, 236, 0.38);
}

.privacy-note .icon {
  width: 0.9rem;
  height: 0.9rem;
}

.rx-card {
  position: relative;
  scroll-margin-top: 6rem;
  display: flex;
  flex-direction: column;
  min-height: 660px;
  padding: clamp(1.35rem, 3vw, 2.75rem);
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0%, rgba(207, 170, 102, 0.14), transparent 28%),
    #f7f2e6;
  color: var(--ink);
  box-shadow:
    0 40px 100px rgba(4, 15, 9, 0.32),
    0 1px 0 rgba(255, 255, 255, 0.35) inset;
  overflow: hidden;
}

.rx-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(29, 44, 34, 0.06);
  border-radius: 18px;
  pointer-events: none;
}

.quiz,
.rx-loading,
.rx-result {
  position: relative;
  z-index: 1;
}

.quiz {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 600px;
}

.quiz-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
  font-family: Georgia, serif;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: var(--moss-deep);
}

.quiz-progress {
  height: 2px;
  margin-top: -1px;
  background: rgba(29, 44, 34, 0.1);
  overflow: hidden;
}

.quiz-progress span {
  display: block;
  width: 16.666%;
  height: 100%;
  background: var(--moss);
  transition: width 0.55s var(--ease);
}

.quiz-body {
  flex: 1;
  padding-top: clamp(1.7rem, 4vw, 2.8rem);
}

.quiz-body.is-entering {
  animation: quizIn 0.45s var(--ease);
}

@keyframes quizIn {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

.quiz-kicker {
  font-family: Georgia, serif;
  font-size: 0.58rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: #94764b;
}

.quiz-body h3 {
  max-width: 15em;
  margin-top: 0.6rem;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.55vw, 2.4rem);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -0.025em;
}

.quiz-hint {
  margin-top: 0.6rem;
  font-size: 0.74rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.quiz-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: clamp(1.6rem, 3vw, 2.2rem);
}

.quiz-option {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(251, 247, 236, 0.28);
  text-align: left;
  transition:
    transform 0.3s var(--ease),
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.quiz-option:hover {
  border-color: rgba(107, 130, 96, 0.7);
  background: #fffaf0;
  transform: translateY(-2px);
}

.quiz-option.is-selected {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--cream);
}

.quiz-options > .quiz-option:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.quiz-option-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(107, 130, 96, 0.13);
  color: var(--moss-deep);
  transition: background-color 0.25s ease, color 0.25s ease;
}

.quiz-option-icon .icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.35;
}

.quiz-option.is-selected .quiz-option-icon {
  background: rgba(251, 247, 236, 0.12);
  color: var(--gold-soft);
}

.quiz-option strong {
  display: block;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.quiz-option small {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.64rem;
  line-height: 1.5;
  color: var(--ink-soft);
  transition: color 0.25s ease;
}

.quiz-option.is-selected small {
  color: rgba(251, 247, 236, 0.58);
}

.quiz-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.8rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.65rem;
  color: var(--ink-soft);
}

.rx-loading {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  text-align: center;
}

.loading-orbit {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 2.2rem;
}

.loading-orbit span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(107, 130, 96, 0.28);
  border-radius: 50%;
  animation: orbitPulse 2.4s var(--ease) infinite;
}

.loading-orbit span:nth-child(2) {
  inset: 14px;
  animation-delay: 0.25s;
}

.loading-orbit span:nth-child(3) {
  inset: 28px;
  animation-delay: 0.5s;
}

@keyframes orbitPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.3; }
  50% { transform: scale(1.04); opacity: 1; }
}

.rx-loading p {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.8;
  color: var(--forest-2);
}

.rx-result {
  flex: 1;
  animation: resultIn 0.7s var(--ease);
}

@keyframes resultIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.result-label {
  font-family: Georgia, serif;
  font-size: 0.55rem;
  letter-spacing: 0.17em;
  color: var(--moss-deep);
}

.result-head h3 {
  margin-top: 0.45rem;
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3vw, 2.7rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.result-en {
  margin-top: 0.35rem;
  font-family: Georgia, serif;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

.score-wrap {
  flex: none;
  width: 106px;
  text-align: center;
}

.score-ring {
  position: relative;
  width: 100px;
  height: 100px;
  margin-inline: auto;
}

.score-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-ring circle {
  fill: none;
  stroke-width: 2.5;
}

.score-track {
  stroke: rgba(29, 44, 34, 0.1);
}

.score-value {
  stroke: var(--moss);
  stroke-linecap: round;
  stroke-dasharray: var(--score) 100;
  animation: scoreDraw 1.2s var(--ease) both;
}

@keyframes scoreDraw {
  from { stroke-dasharray: 0 100; }
}

.score-number {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
  font-family: var(--serif);
  color: var(--forest);
}

.score-number strong {
  font-size: 1.95rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.score-number span {
  align-self: flex-end;
  margin-bottom: 0.55rem;
  font-family: Georgia, serif;
  font-size: 0.55rem;
  color: var(--moss);
}

.score-caption {
  margin-top: 0.35rem;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  white-space: nowrap;
}

.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 1.1rem;
}

.result-tags span,
.pack-list span {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.result-banner {
  position: relative;
  margin-top: 1.25rem;
  border-radius: 15px;
  overflow: hidden;
}

.result-banner img {
  width: 100%;
  aspect-ratio: 2.15 / 1;
  object-fit: cover;
}

.result-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20, 39, 29, 0.55), transparent 55%);
  pointer-events: none;
}

.result-banner p {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.8rem;
  z-index: 1;
  font-family: var(--serif);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--cream);
}

.result-weather {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 0.9rem;
  padding: 0.65rem 0.75rem;
  border: 1px dashed rgba(148, 118, 75, 0.38);
  border-radius: 9px;
  background: rgba(207, 170, 102, 0.09);
  font-size: 0.66rem;
  line-height: 1.65;
  color: #72583a;
}

.result-weather .icon {
  width: 0.95rem;
  height: 0.95rem;
  margin-top: 0.12rem;
  flex: none;
}

.result-section {
  margin-top: 1.5rem;
}

.result-section-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: Georgia, serif;
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss-deep);
}

.result-section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.why-list {
  margin-top: 0.6rem;
}

.breakdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.42rem 1.1rem;
  margin-top: 0.8rem;
}

.breakdown-row {
  display: grid;
  grid-template-columns: 2.4rem 1fr 1.7rem;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.6rem;
  color: var(--ink-soft);
}

.breakdown-bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(29, 44, 34, 0.08);
  overflow: hidden;
}

.breakdown-bar i {
  display: block;
  width: calc(var(--v, 0) * 1%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--moss), var(--gold));
  animation: barIn 0.9s var(--ease) both;
}

.breakdown-row b {
  font-family: Georgia, serif;
  font-size: 0.56rem;
  font-weight: 400;
  text-align: right;
  color: var(--moss-deep);
}

@keyframes barIn {
  from { width: 0; }
}

.why-list li {
  display: grid;
  grid-template-columns: 1.7rem 1fr;
  gap: 0.65rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(29, 44, 34, 0.08);
}

.why-list li:last-child {
  border-bottom: 0;
}

.why-index {
  font-family: Georgia, serif;
  font-size: 0.58rem;
  line-height: 1.9;
  color: var(--moss);
}

.why-list strong {
  display: inline-block;
  min-width: 2.6rem;
  margin-right: 0.45rem;
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--ink);
}

.why-list p {
  display: inline;
  font-size: 0.72rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.7rem;
}

.plan-step {
  min-height: 7.2rem;
  padding: 0.8rem;
  border-radius: 11px;
  background: rgba(107, 130, 96, 0.08);
}

.plan-step > span {
  font-family: Georgia, serif;
  font-size: 0.52rem;
  letter-spacing: 0.08em;
  color: var(--moss);
}

.plan-step strong {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--serif);
  font-size: 0.88rem;
  font-weight: 500;
}

.plan-step p {
  margin-top: 0.3rem;
  font-size: 0.62rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.result-pack {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.2rem;
}

.pack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.result-pack > span:first-child {
  margin-right: 0.2rem;
  font-family: Georgia, serif;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  color: var(--moss-deep);
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.result-actions .button {
  min-height: 42px;
  padding: 0.65rem 1rem;
  font-size: 0.72rem;
}

.result-actions .text-button {
  margin-left: 0.2rem;
  font-size: 0.7rem;
}

.result-alts {
  margin-top: 1.7rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.result-alts > p {
  margin-bottom: 0.55rem;
  font-family: Georgia, serif;
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  color: var(--moss-deep);
}

.alt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.alt-card {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(251, 247, 236, 0.4);
  text-align: left;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.alt-card:hover {
  background: #fffaf0;
  border-color: var(--moss);
}

.alt-card img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
}

.alt-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
}

.alt-card small {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.58rem;
  color: var(--ink-soft);
}

.alt-card > span {
  padding-right: 0.3rem;
  font-family: Georgia, serif;
  font-size: 0.72rem;
  color: var(--moss-deep);
}

.alt-card > .alt-copy {
  padding-right: 0;
  min-width: 0;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.alt-score {
  font-family: Georgia, serif;
  font-size: 0.68rem;
  color: var(--moss-deep);
}

.result-footnote {
  margin-top: 1.2rem;
  font-size: 0.6rem;
  line-height: 1.65;
  color: rgba(82, 96, 85, 0.75);
}

.shared-note {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(107, 130, 96, 0.12);
  font-size: 0.58rem;
  color: var(--moss-deep);
}

/* ------------------------------------------------------------
   Library
------------------------------------------------------------ */
.library {
  background: var(--paper);
}

.library-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: clamp(2.5rem, 8vw, 8rem);
  align-items: end;
}

.library-head h2 {
  max-width: 8em;
}

.library-head p {
  max-width: 37ch;
  justify-self: end;
  font-size: 0.88rem;
  line-height: 1.9;
  color: var(--ink-soft);
}

.filter-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: clamp(3rem, 5vw, 4.5rem);
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.filter-chip span {
  font-family: Georgia, serif;
  font-size: 0.56rem;
  opacity: 0.6;
}

.filter-chip:hover {
  border-color: var(--moss);
  color: var(--forest);
}

.filter-chip.is-active {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--cream);
}

.filter-count {
  flex: none;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  white-space: nowrap;
}

.filter-count span {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--forest);
}

.trail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2.2rem, 4vw, 3.8rem) clamp(1.1rem, 2.2vw, 2rem);
  margin-top: clamp(2rem, 3.5vw, 3rem);
}

.trail-card {
  display: block;
  width: 100%;
  text-align: left;
  animation: cardIn 0.55s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.trail-art {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 15px;
  overflow: hidden;
  background: var(--paper-deep);
}

.trail-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 39, 29, 0.28), transparent 32%, transparent 72%, rgba(20, 39, 29, 0.25));
  pointer-events: none;
}

.trail-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.trail-card:hover .trail-art img {
  transform: scale(1.045);
}

.trail-district,
.trail-index {
  position: absolute;
  z-index: 2;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.trail-district {
  top: 0.7rem;
  left: 0.7rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(251, 247, 236, 0.84);
  color: var(--forest);
  backdrop-filter: blur(6px);
}

.trail-index {
  top: 0.8rem;
  right: 0.8rem;
  font-family: Georgia, serif;
  color: rgba(251, 247, 236, 0.75);
}

.trail-view {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(251, 247, 236, 0.5);
  border-radius: 50%;
  color: var(--cream);
  background: rgba(20, 39, 29, 0.25);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  backdrop-filter: blur(5px);
}

.trail-view .icon {
  width: 13px;
  height: 13px;
}

.trail-card:hover .trail-view,
.trail-card:focus-visible .trail-view {
  opacity: 1;
  transform: translateY(0);
}

.trail-body {
  display: block;
  padding-top: 0.95rem;
}

.trail-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  min-width: 0;
}

.trail-name {
  min-width: 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.7vw, 1.52rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.015em;
  transition: color 0.25s ease;
}

.trail-card:hover .trail-name {
  color: var(--moss-deep);
}

.trail-en {
  max-width: 45%;
  overflow: hidden;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.46rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trail-summary {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.76rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.trail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
  margin-top: 0.75rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.57rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

.trail-meta span {
  position: relative;
  padding-right: 0.8rem;
}

.trail-meta span::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--line-strong);
}

.trail-meta span:last-child {
  padding-right: 0;
}

.trail-meta span:last-child::after {
  display: none;
}

.trail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.trail-tags span {
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  color: var(--moss-deep);
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.nojs-note {
  margin-top: 2rem;
  padding: 1rem;
  border: 1px dashed var(--line);
  font-size: 0.8rem;
}

/* ------------------------------------------------------------
   Map
------------------------------------------------------------ */
.map-section {
  background:
    radial-gradient(circle at 10% 10%, rgba(107, 130, 96, 0.09), transparent 30%),
    #eae5d7;
}

.map-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: clamp(2.5rem, 8vw, 8rem);
  align-items: end;
}

.map-head h2 {
  max-width: 9em;
}

.map-head p {
  max-width: 35ch;
  justify-self: end;
  font-size: 0.88rem;
  line-height: 1.9;
  color: var(--ink-soft);
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.17fr) minmax(300px, 0.83fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
  margin-top: clamp(3rem, 5vw, 4.5rem);
}

.map-card {
  padding: clamp(0.8rem, 1.6vw, 1.3rem);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(247, 242, 230, 0.72);
  box-shadow: 0 20px 60px rgba(45, 57, 43, 0.06);
}

.map-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.2rem 0.2rem 0.9rem;
}

.map-title {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--serif);
  font-size: 0.86rem;
  color: var(--forest);
}

.map-title span {
  font-family: Georgia, serif;
  font-size: 0.5rem;
  letter-spacing: 0.13em;
  color: var(--moss-deep);
}

.map-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
}

.map-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  font-size: 0.62rem;
  color: var(--ink-soft);
  transition: background-color 0.25s ease, color 0.25s ease;
}

.map-tabs button:hover {
  color: var(--forest);
  background: rgba(29, 44, 34, 0.05);
}

.map-tabs button.is-active {
  background: var(--forest);
  color: var(--cream);
}

.region-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex: none;
}

.region-dot.center { background: #5f7c5b; }
.region-dot.south { background: #b48547; }
.region-dot.east { background: #a8674c; }
.region-dot.north { background: #5f7879; }

.map-tabs button.is-active .region-dot {
  background: var(--cream);
}

.map-stage {
  position: relative;
  width: min(100%, 700px);
  margin-inline: auto;
  aspect-ratio: 1000 / 1120;
  border-radius: 12px;
  overflow: hidden;
  background: #f1ecdf;
}

.map-stage > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.map-markers {
  position: absolute;
  inset: 0;
}

.map-marker {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  padding: 0;
  border: 1.5px solid rgba(251, 247, 236, 0.92);
  border-radius: 50%;
  background: var(--marker-color, var(--moss));
  color: var(--cream);
  font-family: Georgia, serif;
  font-size: 0.48rem;
  line-height: 1;
  box-shadow: 0 3px 10px rgba(20, 39, 29, 0.22);
  transform: translate(-50%, -50%);
  transition:
    opacity 0.3s ease,
    transform 0.3s var(--ease),
    box-shadow 0.3s ease;
}

.map-marker.region-center { --marker-color: #5f7c5b; }
.map-marker.region-south { --marker-color: #b48547; }
.map-marker.region-east { --marker-color: #a8674c; }
.map-marker.region-north { --marker-color: #5f7879; }

.map-marker:hover,
.map-marker:focus-visible,
.map-marker.is-hover {
  z-index: 5;
  transform: translate(-50%, -50%) scale(1.25);
  box-shadow: 0 5px 16px rgba(20, 39, 29, 0.3);
}

.map-marker.is-dim {
  opacity: 0.2;
}

.marker-label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 7px);
  transform: translateX(-50%) translateY(3px);
  padding: 0.28rem 0.5rem;
  border-radius: 5px;
  background: var(--forest);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.56rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.marker-label::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--forest);
}

.map-marker:hover .marker-label,
.map-marker:focus-visible .marker-label,
.map-marker.is-hover .marker-label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.map-legend {
  position: absolute;
  left: 0.7rem;
  bottom: 0.7rem;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(29, 44, 34, 0.08);
  border-radius: 6px;
  background: rgba(247, 242, 230, 0.82);
  backdrop-filter: blur(5px);
  font-size: 0.52rem;
  color: var(--ink-soft);
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.map-coords {
  position: absolute;
  right: 0.7rem;
  bottom: 0.65rem;
  z-index: 3;
  font-family: Georgia, serif;
  font-size: 0.45rem;
  letter-spacing: 0.09em;
  color: rgba(82, 96, 85, 0.62);
}

.map-caption {
  padding: 0.85rem 0.2rem 0.1rem;
  font-size: 0.6rem;
  line-height: 1.6;
  color: rgba(82, 96, 85, 0.75);
}

.map-side {
  position: sticky;
  top: 6.5rem;
  min-height: 300px;
}

.map-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
  font-family: Georgia, serif;
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  color: var(--moss-deep);
}

.map-side-head b {
  font-family: var(--serif);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--forest);
}

.map-list {
  max-height: min(730px, 66vh);
  overflow-y: auto;
  padding-right: 0.4rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(107, 130, 96, 0.4) transparent;
}

.map-list::-webkit-scrollbar {
  width: 4px;
}

.map-list::-webkit-scrollbar-thumb {
  background: rgba(107, 130, 96, 0.4);
  border-radius: 999px;
}

.map-list-item {
  display: grid;
  grid-template-columns: 1.5rem 1fr auto;
  gap: 0.65rem;
  align-items: center;
  width: 100%;
  padding: 0.72rem 0.2rem;
  border-bottom: 1px solid rgba(29, 44, 34, 0.09);
  text-align: left;
  transition: background-color 0.2s ease, padding-left 0.25s var(--ease);
}

.map-list-item:hover,
.map-list-item.is-hover {
  padding-left: 0.5rem;
  background: rgba(247, 242, 230, 0.5);
}

.map-item-num {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 0.46rem;
  color: var(--moss-deep);
}

.map-item-main strong {
  display: block;
  font-family: var(--serif);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
}

.map-item-main small {
  display: block;
  margin-top: 0.08rem;
  font-size: 0.58rem;
  color: var(--ink-soft);
}

.map-item-meta {
  font-family: Georgia, serif;
  font-size: 0.52rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  white-space: nowrap;
}

.map-list-empty {
  padding: 2rem 0;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------
   Nearby / out of town
------------------------------------------------------------ */
.nearby {
  position: relative;
  background:
    radial-gradient(circle at 82% 12%, rgba(207, 170, 102, 0.13), transparent 28%),
    radial-gradient(circle at 12% 88%, rgba(107, 130, 96, 0.2), transparent 28%),
    var(--forest-deep);
  color: var(--cream);
  overflow: hidden;
}

.nearby .container {
  position: relative;
  z-index: 1;
}

.nearby .section-top {
  border-color: var(--line-light);
}

.nearby-contours {
  position: absolute;
  inset: -18% -12%;
  background: url("../img/contours.svg") center / cover no-repeat;
  opacity: 0.16;
  pointer-events: none;
  transform: rotate(-7deg);
}

.nearby-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: clamp(2.5rem, 8vw, 8rem);
  align-items: end;
}

.nearby-intro h2 {
  max-width: 8em;
  color: var(--cream);
  font-size: clamp(3rem, 5.7vw, 6.4rem);
}

.nearby-intro h2 em {
  color: var(--gold-soft);
}

.nearby-copy p {
  max-width: 39ch;
  font-size: 0.88rem;
  line-height: 1.9;
  color: rgba(251, 247, 236, 0.58);
}

.nearby-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.25rem;
}

.nearby-cities span {
  padding: 0.26rem 0.62rem;
  border: 1px solid rgba(251, 247, 236, 0.18);
  border-radius: 999px;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: rgba(251, 247, 236, 0.62);
}

.nearby-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2.2rem, 4vw, 3.4rem) clamp(1.1rem, 2.2vw, 2rem);
  margin-top: clamp(3rem, 5vw, 4.5rem);
}

.nearby-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  color: var(--cream);
  text-align: left;
}

.nearby-art {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 15px;
  overflow: hidden;
  background: var(--forest-2);
}

.nearby-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 20, 13, 0.46), transparent 38%, transparent 66%, rgba(8, 20, 13, 0.55));
  pointer-events: none;
}

.nearby-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.nearby-card:hover .nearby-art img {
  transform: scale(1.045);
}

.nearby-city,
.nearby-drive {
  position: absolute;
  z-index: 2;
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  line-height: 1.2;
  backdrop-filter: blur(6px);
}

.nearby-city {
  top: 0.7rem;
  left: 0.7rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid rgba(251, 247, 236, 0.3);
  border-radius: 999px;
  background: rgba(10, 24, 16, 0.35);
  color: var(--cream);
}

.nearby-drive {
  right: 0.7rem;
  bottom: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: 5px;
  background: rgba(10, 24, 16, 0.46);
  color: rgba(251, 247, 236, 0.76);
}

.nearby-body {
  display: block;
  padding-top: 0.95rem;
}

.nearby-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: Georgia, serif;
  font-size: 0.5rem;
  letter-spacing: 0.13em;
  color: rgba(251, 247, 236, 0.38);
}

.nearby-kicker span:last-child {
  max-width: 55%;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nearby-name {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--cream);
  transition: color 0.25s ease;
}

.nearby-card:hover .nearby-name {
  color: var(--gold-soft);
}

.nearby-summary {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.76rem;
  line-height: 1.7;
  color: rgba(251, 247, 236, 0.51);
}

.nearby-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.8rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(251, 247, 236, 0.12);
  font-family: Georgia, serif;
  font-size: 0.55rem;
  letter-spacing: 0.03em;
  color: rgba(251, 247, 236, 0.42);
}

.nearby-meta .icon {
  width: 13px;
  height: 13px;
  color: var(--gold-soft);
  transform: translateX(0);
  transition: transform 0.3s var(--ease);
}

.nearby-card:hover .nearby-meta .icon {
  transform: translateX(4px);
}

.nearby-note {
  max-width: 58ch;
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  padding-top: 1rem;
  border-top: 1px solid rgba(251, 247, 236, 0.12);
  font-size: 0.62rem;
  line-height: 1.8;
  color: rgba(251, 247, 236, 0.34);
}

/* ------------------------------------------------------------
   Breathe
------------------------------------------------------------ */
.breathe {
  background:
    radial-gradient(circle at 78% 58%, rgba(207, 170, 102, 0.22), transparent 22%),
    radial-gradient(circle at 14% 12%, rgba(255, 255, 255, 0.22), transparent 28%),
    #dfe5d6;
  overflow: hidden;
}

.breathe .section-top {
  border-color: rgba(29, 44, 34, 0.18);
}

.breathe-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}

.breathe-copy h2 {
  font-size: clamp(3.2rem, 5.8vw, 6.5rem);
}

.breathe-copy h2 em {
  color: var(--moss-deep);
}

.breathe-copy > p {
  max-width: 34ch;
  margin-top: 1.8rem;
  font-size: 0.92rem;
  line-height: 1.95;
  color: var(--ink-soft);
}

.breathe-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.breathe-actions > span {
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.breathe-btn-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-soft);
  animation: breatheDot 4s ease-in-out infinite;
}

@keyframes breatheDot {
  0%, 100% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.25); opacity: 1; }
}

.breathe-quote {
  max-width: 26ch;
  margin-top: 2.2rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(83, 105, 75, 0.5);
  font-family: var(--serif);
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--moss-deep);
}

.breathe-stage {
  position: relative;
  width: min(100%, 480px);
  aspect-ratio: 1;
  margin-inline: auto;
  display: grid;
  place-items: center;
}

.breath-progress {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.breath-track {
  stroke: rgba(30, 54, 42, 0.13);
}

.breath-value {
  stroke: var(--moss-deep);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.15s linear;
}

.breath-ring {
  position: absolute;
  border: 1px solid rgba(30, 54, 42, 0.12);
  border-radius: 50%;
  transition: transform 1.2s var(--ease), opacity 1s ease;
}

.breath-ring-1 {
  width: 76%;
  height: 76%;
}

.breath-ring-2 {
  width: 57%;
  height: 57%;
}

.breath-blob {
  position: absolute;
  width: 48%;
  height: 48%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.83), transparent 35%),
    radial-gradient(circle at 62% 72%, rgba(207, 170, 102, 0.58), transparent 43%),
    linear-gradient(145deg, #f7efdb, #ccd8be 60%, #a9ba9c);
  box-shadow:
    0 25px 70px rgba(60, 82, 54, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.38) inset;
  transform: scale(0.86);
  will-change: transform;
}

.breathe-stage.is-running .breath-ring-1 {
  transform: scale(1.05);
  opacity: 0.8;
}

.breathe-stage.is-running .breath-ring-2 {
  transform: scale(1.11);
  opacity: 0.55;
}

.breath-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  pointer-events: none;
}

.breath-phase {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.2;
  letter-spacing: 0.14em;
  color: var(--forest);
  transition: opacity 0.25s ease;
}

.breath-center small {
  font-family: Georgia, serif;
  font-size: 0.56rem;
  letter-spacing: 0.1em;
  color: var(--moss-deep);
}

.breathe-stage.is-complete .breath-blob {
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.9), transparent 35%),
    radial-gradient(circle at 60% 70%, rgba(231, 210, 163, 0.76), transparent 45%),
    linear-gradient(145deg, #f8efd8, #e2c88e);
}

/* ------------------------------------------------------------
   Footer
------------------------------------------------------------ */
.site-footer {
  position: relative;
  padding-block: clamp(5rem, 9vw, 9rem) 2rem;
  background:
    radial-gradient(circle at 85% 8%, rgba(207, 170, 102, 0.13), transparent 30%),
    var(--forest-deep);
  color: var(--cream);
  overflow: hidden;
}

.footer-hero {
  padding-bottom: clamp(4rem, 8vw, 8rem);
  border-bottom: 1px solid var(--line-light);
}

.footer-hero .section-label {
  margin-bottom: 1.8rem;
}

.footer-hero h2 {
  font-size: clamp(3.2rem, 7.2vw, 8rem);
}

.footer-hero h2 em {
  color: var(--gold-soft);
}

.footer-hero .button {
  margin-top: 2.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(150px, 0.4fr) minmax(280px, 0.75fr);
  gap: clamp(2.5rem, 7vw, 8rem);
  padding: clamp(3rem, 5vw, 4.5rem) 0;
  border-bottom: 1px solid var(--line-light);
}

.footer-brand {
  margin-bottom: 1.4rem;
}

.footer-about > p {
  max-width: 31ch;
  font-size: 0.8rem;
  line-height: 1.9;
  color: rgba(251, 247, 236, 0.54);
}

.footer-small {
  margin-top: 0.9rem;
  font-size: 0.6rem !important;
  letter-spacing: 0.05em;
  color: rgba(251, 247, 236, 0.32) !important;
}

.footer-col h3 {
  margin-bottom: 1rem;
  font-family: Georgia, serif;
  font-size: 0.56rem;
  font-weight: 400;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-col a {
  display: block;
  width: fit-content;
  padding: 0.28rem 0;
  font-size: 0.78rem;
  color: rgba(251, 247, 236, 0.66);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--cream);
}

.footer-info p {
  max-width: 44ch;
  margin-bottom: 0.8rem;
  font-size: 0.68rem;
  line-height: 1.8;
  color: rgba(251, 247, 236, 0.4);
}

.footer-info a {
  display: inline;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: inherit;
  color: rgba(251, 247, 236, 0.6);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.8rem;
  font-family: Georgia, serif;
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  color: rgba(251, 247, 236, 0.35);
}

.footer-motto {
  font-family: var(--serif);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: rgba(251, 247, 236, 0.46);
}

.footer-bottom-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.footer-bottom-actions button,
.footer-bottom-actions a {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: rgba(251, 247, 236, 0.48);
  transition: color 0.2s ease;
}

.footer-bottom-actions button:hover,
.footer-bottom-actions a:hover {
  color: var(--cream);
}

/* ------------------------------------------------------------
   Trail dialog
------------------------------------------------------------ */
.trail-dialog {
  width: min(1020px, calc(100vw - 2rem));
  max-width: none;
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}

.trail-dialog::backdrop {
  background: rgba(10, 22, 15, 0.72);
  backdrop-filter: blur(8px);
}

.trail-dialog[open] {
  animation: dialogIn 0.45s var(--ease);
}

@keyframes dialogIn {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dialog-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: 92vh;
  border-radius: 22px;
  background: var(--paper);
  overflow: hidden;
}

.dialog-hero {
  position: relative;
  flex: none;
}

.dialog-hero img {
  width: 100%;
  height: clamp(210px, 28vw, 340px);
  object-fit: cover;
}

.dialog-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11, 25, 16, 0.75), transparent 60%);
  pointer-events: none;
}

.dialog-hero-copy {
  position: absolute;
  left: clamp(1.2rem, 3vw, 2.6rem);
  bottom: clamp(1.1rem, 2.5vw, 2rem);
  right: 4rem;
  z-index: 2;
  color: var(--cream);
}

.dialog-hero-copy > span {
  font-family: Georgia, serif;
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  color: rgba(251, 247, 236, 0.66);
}

.dialog-hero-copy h2 {
  margin-top: 0.3rem;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.15;
}

.dialog-hero-copy p {
  margin-top: 0.25rem;
  font-family: Georgia, serif;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  color: rgba(251, 247, 236, 0.6);
}

.dialog-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(251, 247, 236, 0.45);
  border-radius: 50%;
  background: rgba(20, 39, 29, 0.35);
  color: var(--cream);
  backdrop-filter: blur(6px);
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.dialog-close:hover {
  background: var(--forest);
  transform: rotate(5deg);
}

.dialog-close .icon {
  width: 16px;
  height: 16px;
}

.dialog-content {
  overflow-y: auto;
  padding: clamp(1.3rem, 3vw, 2.6rem);
  overscroll-behavior: contain;
}

.dialog-lead {
  max-width: 58ch;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.9;
  color: var(--forest-2);
}

.dialog-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin-top: 1.6rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.dialog-stat {
  padding: 0.8rem 0.75rem;
  border-left: 1px solid var(--line);
}

.dialog-stat:first-child {
  border-left: 0;
  padding-left: 0;
}

.dialog-stat span {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.dialog-stat strong {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.4;
}

.dialog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: 1.8rem;
}

.dialog-block h3 {
  margin-bottom: 0.7rem;
  font-family: Georgia, serif;
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--moss-deep);
}

.dialog-block p {
  margin-bottom: 0.7rem;
  font-size: 0.78rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

.highlight-list li {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(29, 44, 34, 0.08);
  font-size: 0.78rem;
  color: var(--ink);
}

.highlight-list li span {
  font-family: Georgia, serif;
  font-size: 0.52rem;
  color: var(--moss);
}

.route-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.2rem;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  background: rgba(107, 130, 96, 0.09);
  font-size: 0.72rem;
  color: var(--forest-2);
}

.route-line span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.route-line i {
  width: 12px;
  height: 1px;
  background: rgba(107, 130, 96, 0.5);
}

.dialog-tip {
  margin-top: 1.6rem;
  padding: 0.9rem 1rem;
  border-left: 2px solid var(--gold);
  background: rgba(207, 170, 102, 0.09);
  font-size: 0.74rem;
  line-height: 1.8;
  color: #6e583b;
}

.dialog-tip strong {
  font-weight: 500;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.dialog-actions .button {
  min-height: 42px;
  padding: 0.7rem 1.1rem;
  font-size: 0.72rem;
}

.dialog-actions .text-button {
  margin-left: auto;
  font-size: 0.7rem;
}

/* ------------------------------------------------------------
   Toast
------------------------------------------------------------ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.6rem;
  z-index: 5000;
  padding: 0.75rem 1.1rem;
  border: 1px solid rgba(251, 247, 236, 0.14);
  border-radius: 999px;
  background: var(--forest);
  color: var(--cream);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 35px rgba(10, 22, 15, 0.25);
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ------------------------------------------------------------
   Responsive
------------------------------------------------------------ */
@media (max-width: 1180px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .rx-copy {
    position: static;
  }

  .rx-jump {
    display: inline-flex;
  }

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

  .microclimate {
    grid-template-columns: auto 1fr auto;
  }

  .micro-tip {
    grid-column: 2 / -1;
    max-width: none;
    padding-left: 0;
    padding-top: 0.8rem;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .map-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  }
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-side {
    display: none;
  }

  .hero h1 {
    font-size: clamp(4rem, 12.2vw, 7.6rem);
  }

  .intro-grid,
  .library-head,
  .map-head,
  .breathe-grid {
    grid-template-columns: 1fr;
  }

  .intro-text,
  .library-head p,
  .map-head p {
    justify-self: start;
    max-width: 46rem;
  }

  .seal {
    right: 2rem;
    bottom: -2.5rem;
  }

  .stat-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(3) {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
  }

  .stat:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .principles {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .principle p {
    max-width: 50ch;
  }

  .rx-layout {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .rx h2 {
    max-width: 10em;
  }

  .rx-card {
    min-height: 0;
  }

  .quiz {
    min-height: 560px;
  }

  .rx-loading {
    min-height: 560px;
  }

  .map-layout {
    grid-template-columns: 1fr;
  }

  .map-side {
    position: static;
  }

  .map-list {
    max-height: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.5rem;
  }

  .map-list-item:nth-child(odd) {
    border-right: 1px solid rgba(29, 44, 34, 0.08);
    padding-right: 0.7rem;
  }

  .breathe-grid {
    gap: 3rem;
  }

  .breathe-copy {
    max-width: 42rem;
  }

  .breathe-stage {
    width: min(100%, 420px);
  }

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

  .footer-about {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-wrap: wrap;
  }

  .footer-motto {
    order: 3;
    width: 100%;
  }

  .dialog-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .dialog-stat:nth-child(4) {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
  }

  .dialog-stat:nth-child(5),
  .dialog-stat:nth-child(6) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 1.15rem;
  }

  .section {
    padding-block: 5rem;
  }

  .section-top {
    align-items: flex-start;
    margin-bottom: 3.3rem;
  }

  .section-side {
    max-width: 12rem;
    text-align: right;
    line-height: 1.6;
  }

  .site-header {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .weather-pill {
    display: none;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .brand-text strong {
    font-size: 1.2rem;
  }

  .header-cta {
    display: none;
  }

  .hero {
    min-height: max(700px, 100svh);
  }

  .hero-inner {
    padding-top: 8rem;
    padding-bottom: 6.5rem;
  }

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

  .hero-wash {
    background:
      linear-gradient(90deg, rgba(15, 29, 21, 0.9), rgba(15, 29, 21, 0.38) 62%, rgba(15, 29, 21, 0.08)),
      linear-gradient(0deg, rgba(12, 25, 17, 0.85), transparent 46%),
      linear-gradient(180deg, rgba(12, 25, 17, 0.6), transparent 20%);
  }

  .hero h1 {
    font-size: clamp(3.55rem, 17vw, 6rem);
    letter-spacing: -0.065em;
  }

  .hero-lede {
    max-width: 32rem;
    font-size: 0.9rem;
    line-height: 1.95;
  }

  .desktop-break {
    display: none;
  }

  .hero-actions {
    gap: 0.55rem;
  }

  .hero-actions .button {
    min-height: 46px;
    padding: 0.75rem 1.05rem;
    font-size: 0.76rem;
  }

  .hero-footer {
    font-size: 0.48rem;
    letter-spacing: 0.1em;
  }

  .hero-footer > span:last-child {
    display: none;
  }

  .scroll-cue {
    gap: 0.5rem;
    font-size: 0.5rem;
  }

  .scroll-line {
    height: 22px;
  }

  .hero-now {
    font-size: 0.64rem;
    max-width: 22rem;
  }

  .marquee-track > span {
    font-size: 1rem;
  }

  .intro-text p {
    font-size: 0.9rem;
  }

  .intro-lead {
    font-size: 1.25rem !important;
  }

  .seal {
    position: static;
    width: 110px;
    margin-top: 1.8rem;
    transform: rotate(-10deg);
  }

  .stat {
    padding: 1.4rem 1rem 1.2rem;
  }

  .stat:nth-child(odd) {
    padding-left: 0;
  }

  .stat strong {
    font-size: 2.7rem;
  }

  .stat span {
    font-size: 0.65rem;
  }

  .microclimate {
    grid-template-columns: 1fr auto;
    gap: 0.9rem 1rem;
    padding: 1.15rem;
  }

  .micro-label {
    grid-column: 1 / -1;
  }

  .micro-read {
    justify-content: flex-start;
  }

  .micro-temp {
    font-size: 3rem;
  }

  .micro-tip {
    grid-column: 1 / -1;
    font-size: 0.7rem;
  }

  .micro-link {
    grid-column: 1 / -1;
    width: fit-content;
    margin-top: 0.2rem;
  }

  .rx {
    margin: 0;
    border-radius: 0;
  }

  .rx-card {
    padding: 1.1rem;
    border-radius: 18px;
  }

  .rx-card::after {
    inset: 7px;
    border-radius: 13px;
  }

  .quiz {
    min-height: 0;
  }

  .quiz-options {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .quiz-option {
    padding: 0.72rem;
  }

  .quiz-body h3 {
    font-size: 1.65rem;
  }

  .quiz-foot > span {
    display: none;
  }

  .quiz-foot {
    justify-content: flex-start;
  }

  .rx-loading {
    min-height: 480px;
  }

  .result-head {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .score-wrap {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: auto;
  }

  .score-ring {
    width: 72px;
    height: 72px;
    margin: 0;
  }

  .score-number strong {
    font-size: 1.45rem;
  }

  .score-number span {
    margin-bottom: 0.38rem;
  }

  .score-caption {
    max-width: 5rem;
    margin: 0;
    text-align: left;
    white-space: normal;
  }

  .result-banner img {
    aspect-ratio: 1.7 / 1;
  }

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

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

  .plan-step {
    min-height: 0;
  }

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

  .result-actions .text-button {
    margin-left: 0;
  }

  .library-head p,
  .map-head p {
    font-size: 0.82rem;
  }

  .filter-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
  }

  .filter-count {
    align-self: flex-end;
  }

  .trail-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .trail-art {
    aspect-ratio: 4 / 3;
  }

  .trail-en {
    display: none;
  }

  .trail-name {
    font-size: 1.35rem;
  }

  .map-card {
    padding: 0.6rem;
    border-radius: 16px;
  }

  .map-card-head {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 0.6rem;
  }

  .map-tabs {
    gap: 0;
  }

  .map-tabs button {
    padding: 0.3rem 0.45rem;
    font-size: 0.58rem;
  }

  .map-stage {
    width: 100%;
  }

  .map-list {
    grid-template-columns: 1fr;
  }

  .map-list-item:nth-child(odd) {
    border-right: 0;
    padding-right: 0;
  }

  .map-coords {
    display: none;
  }

  .breathe-stage {
    width: min(100%, 330px);
  }

  .breathe-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.6rem;
  }

  .breathe-quote {
    margin-top: 1.6rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

  .footer-about {
    grid-column: auto;
  }

  .footer-hero .button {
    width: 100%;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }

  .footer-motto {
    order: 2;
  }

  .footer-bottom-actions {
    order: 3;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .trail-dialog {
    width: 100vw;
    max-height: 100dvh;
    border-radius: 0;
  }

  .dialog-shell {
    max-height: 100dvh;
    border-radius: 0;
  }

  .dialog-hero img {
    height: 210px;
  }

  .dialog-hero-copy h2 {
    font-size: 2rem;
  }

  .dialog-content {
    padding: 1.2rem;
  }

  .dialog-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .dialog-stat:nth-child(3),
  .dialog-stat:nth-child(5) {
    border-left: 0;
    padding-left: 0;
  }

  .dialog-stat:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .dialog-stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .dialog-grid {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .dialog-actions .text-button {
    margin-left: 0;
  }

  .mobile-menu {
    align-items: flex-start;
    padding-top: 6.5rem;
  }
}

@media (max-width: 430px) {
  .hero h1 {
    font-size: clamp(3.15rem, 16.8vw, 4.8rem);
  }

  .hero-eyebrow {
    font-size: 0.52rem;
    letter-spacing: 0.18em;
  }

  .hero-lede {
    font-size: 0.85rem;
  }

  .button {
    font-size: 0.76rem;
  }

  .section-top {
    gap: 1rem;
  }

  .section-side {
    font-size: 0.62rem;
    max-width: 10rem;
  }

  .micro-read {
    gap: 0.7rem;
  }

  .micro-copy strong {
    font-size: 0.9rem;
  }

  .micro-copy span {
    font-size: 0.6rem;
  }

  .result-actions .button {
    width: 100%;
  }

  .result-actions .text-button {
    padding: 0.4rem 0;
  }

  .alt-card {
    grid-template-columns: 44px 1fr auto;
  }

  .alt-card img {
    width: 44px;
    height: 44px;
  }

  .map-marker {
    width: 22px;
    height: 22px;
    font-size: 0.42rem;
  }

  .map-legend {
    gap: 0.35rem;
    font-size: 0.46rem;
  }
}

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

@media (max-width: 980px) {
  .nearby-intro {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .nearby-copy p {
    max-width: 48ch;
  }
}

@media (max-width: 620px) {
  .nearby-grid {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

  .nearby-intro h2 {
    font-size: clamp(2.9rem, 12vw, 4.2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .hero-media img {
    animation: none;
  }

  .title-line > span {
    transform: none;
    opacity: 1;
    animation: none;
  }

  .hero-eyebrow,
  .hero-lede,
  .hero-actions,
  .hero-now,
  .hero-side,
  .hero-footer {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
  }

  .breath-blob,
  .breath-ring {
    transition: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: rgba(29, 44, 34, 0.28);
    --line-strong: rgba(29, 44, 34, 0.45);
    --ink-soft: #3c4a40;
  }

  .hero-lede,
  .hero-now,
  .rx-lead,
  .footer-about > p {
    color: rgba(251, 247, 236, 0.86);
  }
}
