/* Resting Rice
   Palette comes from the logo: slate water, sand stalk, rice-paper ground.
   Photography carries the colour; the interface stays quiet around it. */
:root {
  --paper: #f5f2eb;
  --paper-2: #ece7dc;
  --paper-3: #e0d9ca;
  --ink: #26353b;
  --slate: #465a63;
  --slate-2: #667a83;
  --sand: #c4a186;
  --sand-deep: #8d6848;
  --line: rgba(70, 90, 99, 0.16);
  --line-strong: rgba(70, 90, 99, 0.3);

  --shadow-sm: 0 1px 2px rgba(38, 53, 59, 0.06), 0 4px 12px -4px rgba(38, 53, 59, 0.1);
  --shadow-lg: 0 2px 4px rgba(38, 53, 59, 0.04), 0 24px 48px -20px rgba(38, 53, 59, 0.28);

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Figtree", "Noto Sans Thai", system-ui, sans-serif;
  --thai: "Noto Sans Thai", var(--sans);

  --wrap: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(5rem, 11vw, 9.5rem);
  --radius: 28px;
  --radius-sm: 16px;

  /* Strong ease-out for anything entering; drawer curve for things that travel */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-move: cubic-bezier(0.32, 0.72, 0, 1);

  --z-header: 50;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; -webkit-text-size-adjust: 100%; scrollbar-color: var(--sand) var(--paper-2); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  caret-color: var(--sand-deep);
}
::selection { background: var(--sand); color: var(--ink); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.3em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 380; font-optical-sizing: auto; line-height: 1.04; margin: 0; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
[lang="th"] { font-family: var(--thai); letter-spacing: 0; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: fixed; left: 1rem; top: 1rem; background: var(--ink); color: var(--paper); padding: 0.7rem 1rem; border-radius: 10px; z-index: 100; transform: translateY(-200%); transition: transform 0.2s var(--ease-out); }
.skip:focus { transform: none; }
:focus-visible { outline: 2px solid var(--sand-deep); outline-offset: 3px; border-radius: 6px; }

.lede { font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.55; color: var(--slate); max-width: 56ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 1.5rem; border-radius: 999px; border: 0;
  background: var(--ink); color: var(--paper);
  font: 600 0.9375rem/1 var(--sans); letter-spacing: 0.005em; text-decoration: none; cursor: pointer;
  transition: transform 0.16s var(--ease-out), background-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 1rem; height: 1rem; flex: none; transition: transform 0.25s var(--ease-out); }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--glass { background: rgba(245, 242, 235, 0.16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--slate); }
  .btn:hover svg { transform: translateX(3px); }
  .btn--paper:hover { background: #fff; }
  .btn--glass:hover { background: rgba(245, 242, 235, 0.28); }
}
.link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--sand); text-decoration-thickness: 1.5px; transition: text-decoration-color 0.2s ease; }
@media (hover: hover) { .link:hover { text-decoration-color: currentColor; } }

/* ---------- header: a floating paper-glass bar ---------- */
.site-header { position: fixed; inset: 0.75rem 0 auto; z-index: var(--z-header); pointer-events: none; }
.bar {
  pointer-events: auto;
  width: min(100% - 1.5rem, var(--wrap));
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.5rem 0.5rem 0.5rem 1.1rem;
  border-radius: 999px;
  background: rgba(245, 242, 235, 0.74);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 1px 2px rgba(38, 53, 59, 0.06), 0 10px 30px -12px rgba(38, 53, 59, 0.3);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.is-scrolled .bar { background: rgba(245, 242, 235, 0.9); }
.brand { display: block; flex: none; }
.brand img { height: 2.5rem; width: auto; }
.nav { display: flex; align-items: center; gap: 0.15rem; }
.nav a:not(.btn) { padding: 0.6rem 0.9rem; border-radius: 999px; font-size: 0.9375rem; font-weight: 500; text-decoration: none; color: var(--slate); transition: color 0.2s ease, background-color 0.2s ease; }
.nav a[aria-current="page"]:not(.btn) { color: var(--ink); background: rgba(70, 90, 99, 0.1); }
@media (hover: hover) { .nav a:not(.btn):hover { color: var(--ink); background: rgba(70, 90, 99, 0.08); } }
.nav .btn { margin-left: 0.5rem; padding: 0.8rem 1.2rem; }
.menu-btn { display: none; align-items: center; gap: 0.5rem; background: var(--ink); color: var(--paper); border: 0; border-radius: 999px; padding: 0.75rem 1.1rem; font: 600 0.875rem/1 var(--sans); cursor: pointer; transition: transform 0.16s var(--ease-out); }
.menu-btn:active { transform: scale(0.97); }

@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .bar { position: relative; }
  .nav {
    position: absolute; top: calc(100% + 0.5rem); right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.6rem; border-radius: 24px;
    background: var(--paper);
    box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lg);
    transform-origin: calc(100% - 3rem) 0; /* grows out of the Menu button */
    transform: scale(0.96) translateY(-6px); opacity: 0; visibility: hidden;
    transition: transform 0.26s var(--ease-move), opacity 0.2s ease, visibility 0s linear 0.26s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav a:not(.btn) { padding: 0.95rem 1rem; font-size: 1.125rem; border-radius: 14px; }
  .nav .btn { margin: 0.4rem 0 0; justify-content: center; padding: 1.05rem; }
}

/* ---------- hero ---------- */
.hero { padding: 0.75rem 0.75rem 0; }
.hero__frame {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(calc(100dvh - 1.5rem), 60rem);
  border-radius: var(--radius);
  display: grid; align-items: end;
  background: #5d6a3c;
  color: #fff;
}
.hero__img { position: absolute; left: 0; top: -12%; width: 100%; height: 118%; object-fit: cover; object-position: 50% 60%; }
.hero__frame::after { /* slate-tinted scrim, heavier where the type sits */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(24, 36, 40, 0.86) 0%, rgba(24, 36, 40, 0.56) 40%, rgba(24, 36, 40, 0.22) 66%, rgba(24, 36, 40, 0) 84%),
    linear-gradient(to bottom, rgba(24, 36, 40, 0.34) 0%, rgba(24, 36, 40, 0) 26%);
}
.hero__body { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; padding: 8rem 0 clamp(2rem, 5vw, 4rem); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem 4rem; align-items: end; }
.hero h1 { font-size: clamp(2.9rem, 8.2vw, 6rem); font-weight: 340; letter-spacing: -0.04em; line-height: 0.98; color: #fff; max-width: 13ch; text-shadow: 0 1px 24px rgba(24, 36, 40, 0.35); }
.hero h1 em { font-style: italic; font-weight: 300; color: #f6e4d2; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.hero h1 .line > span { display: block; }
.hero__lede { margin-top: 1.6rem; font-size: clamp(1.0625rem, 1.45vw, 1.25rem); line-height: 1.5; color: rgba(255, 255, 255, 0.9); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero__aside { max-width: 17rem; padding-bottom: 0.35rem; }
.proverb { font-family: var(--serif); font-style: italic; font-size: 1.3125rem; line-height: 1.3; color: #fff; }
.proverb + small { display: block; margin-top: 0.5rem; font-size: 0.8125rem; color: rgba(255, 255, 255, 0.72); }
.credit { position: absolute; right: 1rem; top: 50%; transform: rotate(90deg) translateX(50%); transform-origin: right top; font-size: 0.6875rem; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.6); white-space: nowrap; }
.credit a { text-decoration: none; }
@media (max-width: 900px) {
  .hero__body { grid-template-columns: 1fr; }
  .hero__aside { max-width: none; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.24); }
  .proverb { font-size: 1.125rem; }
  .credit { display: none; }
}

/* the one authored moment: the photograph opens, then the headline rises into it */
.js .hero__frame { animation: open 1.5s var(--ease-out) both; }
.js .hero__img { animation: settle 2.2s var(--ease-out) both; }
.js .hero h1 .line > span { animation: rise 1.1s var(--ease-out) both; animation-delay: calc(0.35s + var(--i, 0) * 0.09s); }
.js .hero__lede, .js .hero__actions, .js .hero__aside { animation: fade-up 0.9s var(--ease-out) both; animation-delay: calc(0.75s + var(--i, 0) * 0.1s); }
@keyframes open { from { clip-path: inset(7% 5% 9% round 40px); } to { clip-path: inset(0 round var(--radius)); } }
@keyframes settle { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.section--tint { background: var(--paper-2); }
.section--flush { padding-top: 0; }
.head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 1.5rem clamp(2rem, 6vw, 6rem); align-items: end; margin-bottom: clamp(2.75rem, 6vw, 5rem); }
.head h2 { font-size: clamp(2.25rem, 5vw, 4rem); }
.head .lede { justify-self: end; }
@media (max-width: 820px) { .head { grid-template-columns: 1fr; } .head .lede { justify-self: start; } }

/* intro statement */
.statement { padding-block: clamp(4.5rem, 10vw, 8.5rem) clamp(3rem, 7vw, 6rem); }
.statement p { font-family: var(--serif); font-weight: 340; font-size: clamp(1.6rem, 3.5vw, 2.85rem); line-height: 1.2; letter-spacing: -0.022em; max-width: 23em; color: var(--ink); }
.statement p em { font-style: italic; color: var(--sand-deep); }
.statement__foot { display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.9375rem; color: var(--slate); }
.statement__foot b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- photo plate ---------- */
.plate { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--paper-3); }
.plate img { width: 100%; height: 100%; object-fit: cover; }
.plate figcaption { position: absolute; left: 0.75rem; bottom: 0.75rem; max-width: calc(100% - 1.5rem); padding: 0.4rem 0.75rem; border-radius: 999px; font-size: 0.75rem; line-height: 1.3; color: #fff; background: rgba(24, 36, 40, 0.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.js .plate { clip-path: inset(0 0 100% 0 round var(--radius)); transition: clip-path 1.1s var(--ease-out); }
.js .plate img { transform: scale(1.12); transition: transform 1.6s var(--ease-out); }
.js .plate.is-in { clip-path: inset(0 round var(--radius)); }
.js .plate.is-in img { transform: none; }
@media (hover: hover) and (pointer: fine) {
  .js .plate.is-in img { transition: transform 0.9s var(--ease-out); }
  .js .plate.is-in:hover img { transform: scale(1.035); }
}

/* ---------- culture spread ---------- */
.spread { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2.25rem); align-items: stretch; }
.note { display: flex; flex-direction: column; justify-content: center; padding: clamp(0.5rem, 2vw, 1.5rem) 0; }
.note h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.note h2 span { display: block; margin-top: 0.5rem; font-size: 1rem; font-weight: 400; color: var(--sand-deep); }
.note p { margin-top: 1rem; color: var(--slate); max-width: 44ch; }
.note p + p { font-size: 0.9375rem; color: var(--slate-2); }
.note + .note { border-top: 1px solid var(--line-strong); }

.spread > .s-food { grid-column: 1 / span 5; grid-row: span 2; aspect-ratio: 4 / 5; }
.spread > .s-notes { grid-column: 7 / span 6; grid-row: span 2; display: grid; align-content: center; }
.spread > .s-rocket-t { grid-column: 1 / span 4; }
.spread > .s-rocket { grid-column: 6 / span 7; aspect-ratio: 3 / 2; }
.spread > .s-field { grid-column: 1 / span 7; aspect-ratio: 16 / 10; }
.spread > .s-field-t { grid-column: 9 / span 4; }
.spread > .s-river-t { grid-column: 2 / span 4; }
.spread > .s-river { grid-column: 7 / span 6; aspect-ratio: 4 / 3; }
.spread > .s-gap { grid-column: 1 / -1; height: clamp(1rem, 4vw, 3.5rem); }
@media (max-width: 820px) {
  .spread > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .spread > .s-gap { display: none; }
  .spread > .plate { aspect-ratio: 4 / 3; }
  .spread > .s-rocket-t, .spread > .s-river-t { order: 0; }
}

/* ---------- journeys ---------- */
.journeys { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.map { position: sticky; top: 6.5rem; margin: 0; background: #faf8f3; border-radius: var(--radius); padding: clamp(0.75rem, 2vw, 1.5rem); box-shadow: inset 0 0 0 1px var(--line); }
.map svg { width: 100%; height: auto; }
.map .route { fill: none; stroke: var(--slate-2); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; opacity: 0.16; transition: opacity 0.4s ease; }
.map .route.is-active { opacity: 1; stroke: var(--sand-deep); stroke-width: 3.5; stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 1.7s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.map .town circle { fill: #faf8f3; stroke: var(--slate-2); stroke-width: 1.5; transition: fill 0.3s ease, stroke 0.3s ease; }
.map .town text { font: 500 13px var(--sans); fill: var(--slate-2); paint-order: stroke; stroke: #faf8f3; stroke-width: 4px; opacity: 0.55; transition: opacity 0.3s ease, fill 0.3s ease; }
.map .town.is-on circle { fill: var(--sand-deep); stroke: var(--sand-deep); }
.map .town.is-on text { fill: var(--ink); font-weight: 600; opacity: 1; }
.map figcaption { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.8125rem; color: var(--slate-2); padding: 0.6rem 0.5rem 0; }

.loop h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
.loop__theme { margin-top: 0.5rem; font-size: 1rem; font-weight: 600; color: var(--sand-deep); }
.loop__route { margin-top: 1rem; font-size: 0.9375rem; color: var(--slate); }
.loop__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 1.75rem 0; border-block: 1px solid var(--line-strong); }
.loop__meta div { padding: 1.1rem 0; }
.loop__meta div + div { padding-left: 1.1rem; border-left: 1px solid var(--line); }
.loop__meta dt { font-size: 0.8125rem; color: var(--slate-2); }
.loop__meta dd { margin: 0.15rem 0 0; font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.5rem); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -0.01em; }
.loop__cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem 2.5rem; margin-top: 1.75rem; }
.loop__cols h3 { margin: 0 0 0.7rem; font: 600 0.9375rem/1.2 var(--sans); color: var(--ink); }
.loop ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.loop li { position: relative; padding-left: 1.35rem; color: var(--slate); font-size: 0.9875rem; }
.loop li::before { content: ""; position: absolute; left: 0.1rem; top: 0.55em; width: 0.5rem; height: 0.72rem; border-radius: 50%; background: var(--sand); transform: rotate(28deg); } /* a grain of rice */
.loop__cols p { color: var(--slate); font-size: 0.9875rem; }
.loop__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line-strong); }
.loop__price { font-size: 0.875rem; color: var(--slate-2); }
.loop__price b { display: block; font-family: var(--serif); font-weight: 380; font-size: 2.1rem; line-height: 1.1; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.journeys__note { margin-top: 2.5rem; color: var(--slate); font-size: 0.9875rem; max-width: 52ch; }
@media (max-width: 960px) { .journeys { grid-template-columns: 1fr; } .map { position: static; } }
@media (max-width: 520px) { .loop__cols { grid-template-columns: 1fr; } }

/* all-routes map on the journeys index */
.map--all .route { opacity: 0.5; }
.map--all .town text { opacity: 0.8; }
.map--all.has-active .route:not(.is-active) { opacity: 0.14; }
.map--all.has-active .town:not(.is-on) text { opacity: 0.4; }

.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 9rem minmax(0, 1fr) auto; gap: 0.5rem 1.5rem; align-items: center; padding: 1.25rem 0; border-top: 1px solid var(--line-strong); text-decoration: none; color: inherit; }
.rows li:last-child .row { border-bottom: 1px solid var(--line-strong); }
.row img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); background: var(--paper-3); }
.row h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); transition: color 0.2s ease; }
.row p { margin-top: 0.3rem; font-size: 0.9375rem; color: var(--slate); }
.row .row__meta { margin: 0; text-align: right; font-size: 0.8125rem; color: var(--slate-2); }
.row__meta b { display: block; font-family: var(--serif); font-weight: 380; font-size: 1.4rem; line-height: 1.2; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
@media (hover: hover) and (pointer: fine) { .row:hover h2 { color: var(--sand-deep); } }
@media (max-width: 560px) {
  .row { grid-template-columns: 5.5rem minmax(0, 1fr); }
  .row .row__meta { grid-column: 2; text-align: left; }
  .row__meta b { display: inline; margin-left: 0.4rem; font-size: 1.15rem; }
}

/* ---------- inner page head ---------- */
.page-head { padding: clamp(8.5rem, 15vw, 12rem) 0 clamp(2.75rem, 6vw, 5rem); }
.page-head h1 { font-size: clamp(2.6rem, 6.6vw, 5.5rem); font-weight: 340; letter-spacing: -0.035em; line-height: 1; max-width: 15ch; }
.page-head .lede { margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.page-head .statement__foot { margin-top: clamp(2rem, 4vw, 3rem); }

.hero--short .hero__frame { min-height: min(78dvh, 46rem); }
.hero--short h1 { max-width: 12ch; }
.crumb { margin-bottom: 1.1rem; font-size: 0.9375rem; color: rgba(255, 255, 255, 0.82); }
.crumb a { color: #fff; font-weight: 600; text-decoration-color: rgba(255, 255, 255, 0.5); }

/* ---------- journey cards ---------- */
.trips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.75rem, 1.5vw, 1.25rem); }
.trips--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.trip { position: relative; isolation: isolate; overflow: hidden; display: block; aspect-ratio: 3 / 4.1; border-radius: var(--radius); background: var(--paper-3); color: #fff; text-decoration: none; transition: transform 0.16s var(--ease-out); -webkit-tap-highlight-color: transparent; }
.trips:not(.trips--3) .trip:nth-child(even) { margin-top: clamp(1.25rem, 3vw, 3rem); }
.trips--3 .trip { aspect-ratio: 4 / 3.4; }
.trip:active { transform: scale(0.985); }
.trip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.9s var(--ease-out); }
.trip::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(24, 36, 40, 0.82) 0%, rgba(24, 36, 40, 0.3) 42%, rgba(24, 36, 40, 0) 62%); }
.trip__body { position: absolute; inset: auto 0 0; padding: clamp(1rem, 1.6vw, 1.5rem); }
.trip h3 { font-size: clamp(1.4rem, 2vw, 1.85rem); color: #fff; }
.trip p { margin-top: 0.35rem; font-size: 0.875rem; color: rgba(255, 255, 255, 0.88); font-variant-numeric: tabular-nums; }
.trip__go { position: absolute; top: 0.85rem; right: 0.85rem; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: rgba(245, 242, 235, 0.2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background-color 0.25s ease, color 0.25s ease, transform 0.35s var(--ease-out); }
.trip__go svg { width: 1rem; height: 1rem; }
@media (hover: hover) and (pointer: fine) {
  .trip:hover img { transform: scale(1.05); }
  .trip:hover .trip__go { background: var(--paper); color: var(--ink); transform: rotate(-45deg); }
}
.after { margin-top: clamp(1.75rem, 3vw, 2.5rem); }
@media (max-width: 1000px) { .trips, .trips--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .trips--3 .trip:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; } }
@media (max-width: 520px) { .trips, .trips--3 { grid-template-columns: 1fr; } .trip, .trips--3 .trip, .trips--3 .trip:last-child { aspect-ratio: 4 / 3; grid-column: auto; } .trips:not(.trips--3) .trip:nth-child(even) { margin-top: 0; } }

/* ---------- split teaser ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6.5rem); align-items: center; }
.split--flip { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
.split .plate { aspect-ratio: 4 / 4.6; }
.split h2 { font-size: clamp(2.25rem, 4.6vw, 3.75rem); }
.split .lede { margin-top: 1.5rem; }
.split .btn { margin-top: 2rem; }
.split .hero__actions { margin-top: 2rem; }
.split .hero__actions .btn { margin-top: 0; }
.pull { margin: 0; font-family: var(--serif); font-weight: 340; font-size: clamp(1.7rem, 3.2vw, 2.75rem); line-height: 1.16; letter-spacing: -0.022em; text-wrap: balance; }
.pull__by { margin-top: 1.25rem; font-size: 0.9375rem; color: var(--slate); }
.pull__by b { color: var(--ink); font-weight: 600; }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
@media (hover: hover) and (pointer: fine) { .btn--line:hover { background: var(--paper-2); } }
@media (max-width: 900px) { .split, .split--flip { grid-template-columns: 1fr; } .split .plate { aspect-ratio: 4 / 3; } .split--flip .plate { order: -1; } }

/* ---------- farmers ---------- */
.farmers { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
.farmers > .plate { aspect-ratio: 4 / 5; position: sticky; top: 6.5rem; }
.stories { list-style: none; margin: 0; padding: 0; }
.story { padding: clamp(1.75rem, 3vw, 2.5rem) 0; border-top: 1px solid var(--line-strong); }
.story:last-child { border-bottom: 1px solid var(--line-strong); }
.story blockquote { margin: 0; font-family: var(--serif); font-weight: 360; font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.3; letter-spacing: -0.015em; }
.story__by { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem; margin-top: 1.25rem; font-size: 0.9375rem; color: var(--slate); }
.story__by b { color: var(--ink); font-weight: 600; }
.story__by span:last-child { color: var(--sand-deep); font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .farmers { grid-template-columns: 1fr; } .farmers > .plate { position: relative; top: 0; aspect-ratio: 3 / 2; } }

/* ---------- impact ---------- */
.ledger { width: 100%; border-collapse: collapse; }
.ledger th { text-align: left; font: 600 0.8125rem/1.3 var(--sans); color: var(--slate-2); padding: 0 1.5rem 1rem 0; border-bottom: 1px solid var(--line-strong); }
.ledger td { vertical-align: top; padding: 1.75rem 1.5rem 1.75rem 0; border-bottom: 1px solid var(--line); }
.ledger td:last-child, .ledger th:last-child { padding-right: 0; text-align: right; }
.ledger h2 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
.ledger p { margin-top: 0.4rem; font-size: 0.9375rem; color: var(--slate); max-width: 34ch; }
.ledger .num { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.25rem); line-height: 1.1; color: var(--sand-deep); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.ledger .num small { display: block; margin-top: 0.3rem; font-family: var(--sans); font-size: 0.8125rem; color: var(--slate-2); white-space: normal; }
.partners { margin-top: 3rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem 2.5rem; font-size: 0.9375rem; color: var(--slate); }
.partners strong { font-family: var(--serif); font-weight: 380; font-size: 1.3rem; color: var(--ink); }
@media (max-width: 760px) {
  .ledger thead { display: none; }
  .ledger, .ledger tbody, .ledger tr, .ledger td { display: block; }
  .ledger tr { padding: 1.5rem 0; border-bottom: 1px solid var(--line-strong); }
  .ledger td { padding: 0 0 1rem; border: 0; }
  .ledger td:last-child { text-align: left; padding-bottom: 0; }
  .ledger td[data-label]::before { content: attr(data-label); display: block; font-size: 0.8125rem; color: var(--slate-2); margin-bottom: 0.3rem; }
}

/* ---------- get involved ---------- */
.cta { padding: 0.75rem 0.75rem 0; }
.cta__frame { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius); padding: clamp(3.5rem, 8vw, 7rem) 0; color: #fff; background: #3c4a44; }
.cta__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta__frame::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(24, 36, 40, 0.86) 0%, rgba(24, 36, 40, 0.62) 45%, rgba(24, 36, 40, 0.3) 100%); }
.involve { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.involve h1 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); font-weight: 340; letter-spacing: -0.035em; color: #fff; }
.ways { list-style: none; padding: 0; margin: 2.5rem 0 0; }
.ways li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0.25rem 1.5rem; padding: 1.1rem 0; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.ways h2 { font-size: 1.3rem; color: #fff; }
.ways p { color: rgba(255, 255, 255, 0.82); font-size: 0.9375rem; }
@media (max-width: 520px) { .ways li { grid-template-columns: 1fr; } }

.form { background: var(--paper); color: var(--ink); border-radius: 24px; padding: clamp(1.5rem, 3.5vw, 2.75rem); box-shadow: var(--shadow-lg); display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.1rem; }
.form h2 { grid-column: 1 / -1; font-size: 1.85rem; }
.form > p { grid-column: 1 / -1; color: var(--slate); font-size: 0.9375rem; margin-top: -0.5rem; }
.field { display: grid; gap: 0.4rem; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.875rem; font-weight: 600; color: var(--slate); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid var(--paper-3); border-radius: 12px; padding: 0.85rem 0.95rem; width: 100%; transition: border-color 0.2s ease, box-shadow 0.2s ease; appearance: none; -webkit-appearance: none; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23465a63' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 0.7rem; padding-right: 2.5rem; }
.field textarea { min-height: 7.5rem; resize: vertical; }
.field ::placeholder { color: #76878e; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--slate); box-shadow: 0 0 0 4px rgba(70, 90, 99, 0.16); }
.field .err { font-size: 0.8125rem; color: #9a3d26; }
.field .err:empty { display: none; }
.field.has-error input, .field.has-error textarea { border-color: #b8664f; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.4rem; }
.form__foot small { color: var(--slate-2); font-size: 0.8125rem; max-width: 28ch; }
.form__status { grid-column: 1 / -1; font-size: 0.9375rem; color: var(--slate); }
.form__status:empty { display: none; }
@media (max-width: 960px) { .involve { grid-template-columns: 1fr; } .cta__img { object-position: 62% 100%; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

.cta__simple { max-width: none; }
.cta__simple h2 { font-size: clamp(2.25rem, 5vw, 4rem); color: #fff; max-width: 16ch; }
.cta__simple p { margin-top: 1.25rem; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: rgba(255, 255, 255, 0.88); max-width: 44ch; }
.cta--page .cta__frame { padding-top: clamp(7.5rem, 13vw, 10rem); }
.footer { margin-top: 0; }

/* ---------- footer ---------- */
.footer { padding: clamp(3.5rem, 7vw, 6rem) 0 2.5rem; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; }
.footer__top img { height: 2.75rem; width: auto; margin-bottom: 1.25rem; }
.footer__top p { color: var(--slate); max-width: 34ch; font-size: 0.9375rem; }
.footer h2 { margin: 0 0 1rem; font: 600 0.875rem/1.2 var(--sans); color: var(--ink); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer ul a { text-decoration: none; color: var(--slate); transition: color 0.2s ease; }
@media (hover: hover) { .footer ul a:hover { color: var(--ink); } }
.credits { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--slate-2); }
.credits summary { cursor: pointer; font-weight: 600; color: var(--slate); width: max-content; }
.credits ul { margin-top: 1rem; gap: 0.35rem; columns: 2; column-gap: 3rem; display: block; }
.credits li { break-inside: avoid; margin-bottom: 0.35rem; }
.credits a { color: inherit; }
.footer__base { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.8125rem; color: var(--slate-2); }
.footer__base a { text-decoration: none; }
@media (max-width: 800px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__top > div:first-child { grid-column: 1 / -1; } .credits ul { columns: 1; } }

/* ---------- text reveal (visible by default; JS only adds the entrance) ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* hero photograph drifts slower than the page where scroll timelines exist */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero__parallax { position: absolute; inset: 0; z-index: -2; animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    @keyframes drift { to { transform: translateY(9%); } }
  }
}
.hero__parallax { position: absolute; inset: 0; z-index: -2; }

/* ---------- user preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero__frame, .js .hero__img, .js .hero h1 .line > span { animation: none; }
  .js .hero__lede, .js .hero__actions, .js .hero__aside { animation: fade 0.4s ease both; }
  .js .plate { clip-path: inset(0 round var(--radius)); opacity: 0; transition: opacity 0.4s ease; }
  .js .plate.is-in { opacity: 1; }
  .js .plate img, .js .plate.is-in:hover img { transform: none; transition: none; }
  .js .reveal { transform: none; transition: opacity 0.4s ease; }
  .map .route.is-active { animation: none; stroke-dasharray: none; }
  .btn:active, .menu-btn:active { transform: none; }
  @keyframes fade { from { opacity: 0; } }
}
@media (prefers-reduced-transparency: reduce) {
  .bar, .nav, .plate figcaption, .btn--glass { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .bar { background: var(--paper); }
  .plate figcaption { background: rgba(24, 36, 40, 0.85); }
  .btn--glass { background: rgba(24, 36, 40, 0.7); }
}
@media (prefers-contrast: more) {
  :root { --slate: #2f4048; --slate-2: #3d5059; --line: rgba(38, 53, 59, 0.45); --line-strong: rgba(38, 53, 59, 0.7); }
  .bar { background: var(--paper); box-shadow: 0 0 0 2px var(--ink); }
}
