/* ==========================================================
   Greenart — Living Sculptures
   Deep-Forest palette · Editorial typography · Quiet motion
   ========================================================== */

:root {
  /* Forest palette */
  --ink:        #0E1311;
  --moss:       #1F2624;   /* base */
  --moss-2:     #2C3531;   /* slightly elevated */
  --moss-3:     #3A433E;   /* card surfaces */
  --bark:       #4D5048;
  --sage:       #8AA396;   /* primary accent */
  --sage-dim:   #6E8478;
  --linen:      #E8E3D6;   /* warm off-white */
  --linen-soft: #C9C2B0;
  --gold:       #B5A077;   /* aged brass accent */

  /* Functional */
  --bg:         var(--moss);
  --fg:         var(--linen);
  --fg-mute:    rgba(232, 227, 214, 0.62);
  --fg-faint:   rgba(232, 227, 214, 0.35);
  --rule:       rgba(232, 227, 214, 0.18);
  --rule-soft:  rgba(232, 227, 214, 0.10);

  /* Type */
  --serif: "Cormorant Garamond", "Playfair Display", "Noto Serif TC", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Helvetica, Arial, sans-serif;
  --script: "Pinyon Script", "Cormorant Garamond", cursive;

  /* Rhythm */
  --container: 1240px;
  --container-narrow: 920px;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(.22,.61,.36,1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

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

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Hide page content until loader is ready (FOUC guard).
   The nav is intentionally NOT in this list — it always stays mounted
   so that any JS hiccup can never leave the page navless. The loader
   (z-index: 200) sits above the nav during the loading phase anyway. */
body:not(.is-ready) > main { opacity: 0; }
body > main { transition: opacity 0.7s var(--ease); }

/* ==========================================================
   Chinese typography refinements
   CJK glyphs are square, denser, and don't italicise. They
   need slightly looser line-height, gentler letter-spacing
   on running text, and smaller display sizes than Latin.
   ========================================================== */
html[data-lang="zh"] body {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", var(--sans);
  font-size: 16px;
  line-height: 1.85;          /* CJK breathes better at ~1.8 */
  letter-spacing: 0;          /* CJK already has internal whitespace */
}

/* All serif display headings → Noto Serif TC, no italics.
   The wordmark (.nav__wordmark / .footer__name / .loader__word)
   is always the Latin word "Greenart" — keep the script face. */
html[data-lang="zh"] .section-title,
html[data-lang="zh"] .hero__title,
html[data-lang="zh"] .manifesto__quote,
html[data-lang="zh"] .card__title,
html[data-lang="zh"] .step__title {
  font-family: "Noto Serif TC", var(--serif);
  font-weight: 500;
  letter-spacing: 0.04em;     /* slight kerning helps Ming type */
  font-feature-settings: "palt" 1;  /* proportional kana/punct */
}

/* Body / lede paragraphs → also Noto Serif TC for editorial feel,
   but never italicised */
html[data-lang="zh"] .card__note,
html[data-lang="zh"] .hero__sub,
html[data-lang="zh"] .section-lede,
html[data-lang="zh"] .visit__lede,
html[data-lang="zh"] .step__body {
  font-family: "Noto Serif TC", var(--serif);
  font-style: normal;
  font-weight: 400;
  line-height: 1.95;
  letter-spacing: 0.03em;
}

html[data-lang="zh"] .italic,
html[data-lang="zh"] .serif-italic {
  font-style: normal;
}

/* Eyebrow / label / utility text — wide tracking looks elegant
   on Latin caps; on CJK it just creates gaps. Use moderate tracking. */
html[data-lang="zh"] .eyebrow,
html[data-lang="zh"] .nav__links a,
html[data-lang="zh"] .nav__cta,
html[data-lang="zh"] .card__no,
html[data-lang="zh"] .hero__eyebrow,
html[data-lang="zh"] .hero__meta-item .label,
html[data-lang="zh"] .film__caption-label,
html[data-lang="zh"] .film__caption-meta,
html[data-lang="zh"] .footer__nav a,
html[data-lang="zh"] .footer__tag,
html[data-lang="zh"] .footer__legal,
html[data-lang="zh"] .gallery__footnote p,
html[data-lang="zh"] .visit__form-eyebrow,
html[data-lang="zh"] .visit__form-foot,
html[data-lang="zh"] .field__label,
html[data-lang="zh"] .btn,
html[data-lang="zh"] .hero__scroll {
  letter-spacing: 0.1em;
  text-transform: none;       /* CJK has no caps */
}

/* Hero title — short Chinese title sits monumental; loosen the
   tracking so each character has room to breathe (pun intended). */
html[data-lang="zh"] .hero__title {
  font-size: clamp(86px, 13vw, 184px);
  line-height: 1.05;
  letter-spacing: 0.06em;
  margin-bottom: 40px;
  font-weight: 500;
}
html[data-lang="zh"] .hero__title .line {
  display: block;
}
html[data-lang="zh"] .hero__title .period { color: var(--sage); }

/* Hero sub — slightly larger for CJK readability */
html[data-lang="zh"] .hero__sub {
  font-size: clamp(17px, 1.55vw, 22px);
  line-height: 1.85;
  letter-spacing: 0.04em;
}

/* Manifesto — tighter line-height, smaller display size in CJK */
html[data-lang="zh"] .manifesto__quote {
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.55;
  letter-spacing: 0.03em;
}
/* The yellow-style highlight needs different vertical position
   because CJK glyphs sit on a different baseline */
html[data-lang="zh"] .manifesto__quote .hl {
  background: linear-gradient(180deg, transparent 70%, rgba(138,163,150,0.22) 70%);
  padding: 0 4px;
}

/* Section titles — shrink slightly and tighten leading */
html[data-lang="zh"] .section-title {
  font-size: clamp(30px, 4.6vw, 56px);
  line-height: 1.22;
  letter-spacing: 0.02em;
}
html[data-lang="zh"] .section-lede {
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.9;
}

/* Card text — tighten card titles, give notes a little more air */
html[data-lang="zh"] .card__title {
  font-size: 22px;
  line-height: 1.4;
}
html[data-lang="zh"] .card__meta {
  letter-spacing: 0.04em;
  font-size: 12.5px;
}
html[data-lang="zh"] .card__note {
  font-size: 14.5px;
  line-height: 1.85;
}
html[data-lang="zh"] .card figcaption {
  padding: 22px 22px 26px;
  gap: 8px;
}

/* Process steps */
html[data-lang="zh"] .step__title {
  font-size: 24px;
  line-height: 1.35;
}
html[data-lang="zh"] .step__body {
  font-size: 14.5px;
  line-height: 1.95;
}
html[data-lang="zh"] .step__no {
  letter-spacing: 0.18em;
  margin-bottom: 28px;
}

/* Visit + form */
html[data-lang="zh"] .visit__lede {
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.95;
}
html[data-lang="zh"] .visit__list li {
  font-size: 14.5px;
  letter-spacing: 0.04em;
  padding: 16px 0;
}
html[data-lang="zh"] .field input,
html[data-lang="zh"] .field textarea {
  font-family: "Noto Sans TC", var(--sans);
  font-size: 15px;
  letter-spacing: 0.02em;
}
html[data-lang="zh"] .field input::placeholder,
html[data-lang="zh"] .field textarea::placeholder {
  font-family: "Noto Serif TC", var(--serif);
  font-style: normal;
}

/* Hero meta numerals — keep western numbers in serif, but
   shrink labels and loosen so they don't crowd */
html[data-lang="zh"] .hero__meta-item .label {
  font-size: 10.5px;
  letter-spacing: 0.12em;
}

/* Buttons — caps tracking only applies to Latin */
html[data-lang="zh"] .btn {
  font-size: 12.5px;
  padding: 16px 30px;
}
html[data-lang="zh"] .btn--link {
  padding: 16px 4px;
}

/* Nav links + CTA */
html[data-lang="zh"] .nav__links a {
  font-size: 13px;
  letter-spacing: 0.12em;
}
html[data-lang="zh"] .nav__cta {
  font-size: 12px;
  letter-spacing: 0.1em;
}
/* wordmark stays in script face regardless of language */
html[data-lang="zh"] .footer__nav a { font-size: 12px; }
html[data-lang="zh"] .footer__tag,
html[data-lang="zh"] .footer__legal { font-size: 11.5px; }

/* Gallery footnote: looks cramped at 12px upper-cased */
html[data-lang="zh"] .gallery__footnote p {
  font-size: 13px;
  letter-spacing: 0.08em;
}
html[data-lang="zh"] .film__caption {
  font-size: 11.5px;
  letter-spacing: 0.16em;
}

img, svg { display: block; max-width: 100%; }
img { color: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--sage); color: var(--ink); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Type system ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 22px;
}

.italic { font-style: italic; font-family: var(--serif); }
.serif-italic { font-style: italic; }

.section-header {
  max-width: 760px;
  margin: 0 0 64px;
}
.section-header--centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  color: var(--linen);
}
.section-title .italic { color: var(--linen); }

.section-lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
  color: var(--fg-mute);
  max-width: 56ch;
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 16px 28px;
  border-radius: 999px;
  transition: transform 0.45s var(--ease),
              background 0.45s var(--ease),
              color 0.45s var(--ease),
              border-color 0.45s var(--ease);
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }

.btn--ghost {
  color: var(--linen);
  border-color: rgba(232, 227, 214, 0.35);
  background: rgba(14, 19, 17, 0.20);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  border-color: var(--sage);
  color: var(--sage);
}

.btn--solid {
  color: var(--ink);
  background: var(--linen);
  border-color: var(--linen);
}
.btn--solid:hover {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--ink);
}

.btn--link {
  color: var(--linen);
  border: none;
  padding: 16px 8px;
  background: transparent;
  position: relative;
}
.btn--link::after {
  content: "";
  position: absolute;
  left: 8px; right: 8px; bottom: 12px;
  height: 1px;
  background: var(--linen);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.btn--link:hover::after { transform: scaleX(0.5); }

/* ==========================================================
   NAV
   ========================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--gutter);
  transition: background 0.5s var(--ease),
              border-color 0.5s var(--ease),
              padding 0.4s var(--ease),
              backdrop-filter 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(14, 19, 17, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--rule-soft);
  padding-top: 14px;
  padding-bottom: 14px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--linen);
}
.nav__mark {
  width: 26px;
  height: 26px;
  color: var(--sage);
}
.nav__wordmark {
  font-family: var(--script);
  font-size: 32px;
  line-height: 1;
  letter-spacing: 0.005em;
  color: var(--linen);
  /* Pinyon Script reads small without a touch of weight; slight
     stroke gives it the ink-on-paper feel of a brush mark. */
  font-weight: 400;
  -webkit-text-stroke: 0.18px currentColor;
  text-shadow: 0 1px 0 rgba(14,19,17,0.4);
  transform: translateY(-1px);
}

.nav__links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav__links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
  transition: color 0.4s var(--ease);
}
.nav__links a:hover { color: var(--linen); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--linen);
  padding: 11px 18px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease);
}
.nav__cta:hover { border-color: var(--sage); color: var(--sage); }

@media (max-width: 820px) {
  .nav__links { display: none; }
}

/* Right-side cluster (lang toggle + CTA) */
.nav__right {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgba(14, 19, 17, 0.30);
  backdrop-filter: blur(6px);
}
.lang-toggle__btn {
  background: transparent;
  border: 0;
  padding: 2px 2px;
  color: var(--fg-faint);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: color 0.4s var(--ease);
}
.lang-toggle__btn:hover { color: var(--linen); }
.lang-toggle__btn.is-active { color: var(--sage); }
.lang-toggle__sep {
  width: 1px;
  height: 11px;
  background: var(--rule);
}

@media (max-width: 560px) {
  .nav__cta span { display: none; }
  .nav__cta { padding: 11px 12px; }
  .lang-toggle { padding: 6px 10px; }
}

/* ==========================================================
   SOUND TOGGLE
   ========================================================== */
.sound-toggle {
  position: relative;
  width: 38px;
  height: 38px;
  border: 1px solid var(--rule);
  background: rgba(14, 19, 17, 0.30);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  color: var(--fg-mute);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.sound-toggle:hover { color: var(--linen); border-color: var(--rule); }
.sound-toggle.is-playing {
  color: var(--sage);
  border-color: var(--sage-dim);
  background: rgba(138,163,150,0.10);
}

.sound-toggle__icon {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px;
  height: 16px;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.sound-toggle__icon--on {
  opacity: 0;
  transform: scale(0.7);
}
.sound-toggle.is-playing .sound-toggle__icon--off { opacity: 0; transform: scale(0.7); }
.sound-toggle.is-playing .sound-toggle__icon--on  { opacity: 1; transform: scale(1); }

/* Gentle "breathing" waves while playing */
.sound-toggle .sw {
  transform-origin: 11px 12px;
  animation: swBreath 2.6s ease-in-out infinite;
  opacity: 0.85;
}
.sound-toggle .sw--2 { animation-delay: 0.4s; opacity: 0.55; }
@keyframes swBreath {
  0%, 100% { transform: scale(0.9); opacity: 0.55; }
  50%      { transform: scale(1.05); opacity: 1; }
}

/* First-visit hint */
.sound-hint {
  position: fixed;
  right: var(--gutter);
  top: 84px;
  z-index: 49;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(14, 19, 17, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--rule-soft);
  border-radius: 999px;
  color: var(--linen);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--sans);
  font-weight: 500;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  pointer-events: none;
}
.sound-hint.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.sound-hint svg { color: var(--sage); }

html[data-lang="zh"] .sound-hint {
  font-family: "Noto Sans TC", var(--sans);
  letter-spacing: 0.1em;
  text-transform: none;
}

@media (max-width: 560px) {
  .sound-hint {
    right: 50%;
    transform: translate(50%, -6px);
    font-size: 10px;
    padding: 8px 14px;
    max-width: calc(100vw - 24px);
    white-space: nowrap;
  }
  .sound-hint.is-visible {
    transform: translate(50%, 0);
  }
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 140px var(--gutter) 60px;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: -10% 0 -10% 0;
  z-index: -2;
  will-change: transform;
}

.hero__image {
  position: absolute;
  inset: 0;
  background-image: url("https://images.unsplash.com/photo-1448375240586-882707db888b?w=2400&q=85&auto=format&fit=crop");
  background-size: cover;
  background-position: center 35%;
  filter: saturate(0.7) contrast(1.05) brightness(0.6);
  animation: heroDrift 24s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  from { transform: scale(1.04) translateY(0); }
  to   { transform: scale(1.10) translateY(-2%); }
}

.hero__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, transparent 0%, rgba(14,19,17,0.45) 60%, rgba(14,19,17,0.92) 100%),
    linear-gradient(180deg, rgba(14,19,17,0.6) 0%, rgba(14,19,17,0.15) 35%, rgba(14,19,17,0.85) 100%);
}

.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  pointer-events: none;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.hero__content {
  max-width: 920px;
  z-index: 2;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--linen);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.78;
  margin-bottom: 36px;
}
.hero__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 6px rgba(138,163,150,0.18);
  animation: pulse 3.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(138,163,150,0.18); }
  50%      { box-shadow: 0 0 0 9px rgba(138,163,150,0); }
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 8.4vw, 128px);
  line-height: 0.96;
  letter-spacing: -0.018em;
  color: var(--linen);
  margin: 0 0 28px;
}
.hero__title .line {
  display: block;
}
.hero__title .italic {
  font-style: italic;
  color: var(--linen);
}
.hero__title .period {
  color: var(--sage);
  font-style: normal;
}

.hero__sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.5;
  color: var(--linen);
  opacity: 0.85;
  max-width: 56ch;
  margin: 0 0 44px;
}

.hero__cta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 60px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--fg-mute);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  z-index: 2;
}
.hero__scroll svg {
  animation: scrollHint 2.6s ease-in-out infinite;
}
@keyframes scrollHint {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%      { transform: translateY(8px); opacity: 1; }
}

.hero__meta {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  align-items: stretch;
  gap: clamp(18px, 3vw, 48px);
  margin-top: clamp(60px, 9vh, 110px);
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  z-index: 2;
}
.hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.hero__meta-item .num {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1;
  color: var(--linen);
}
.hero__meta-item .label {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.hero__meta-divider {
  width: 1px;
  background: var(--rule);
}
@media (max-width: 720px) {
  .hero__scroll { display: none; }
  .hero__meta-item .num { font-size: 26px; }
}

/* ==========================================================
   MANIFESTO
   ========================================================== */
.manifesto {
  background: var(--moss-2);
  padding: clamp(100px, 14vh, 180px) 0;
}
.manifesto .container {
  max-width: var(--container-narrow);
}
.manifesto__rule {
  width: 64px;
  height: 1px;
  background: var(--sage);
  margin-bottom: 32px;
}
.manifesto__quote {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3.6vw, 46px);
  line-height: 1.28;
  letter-spacing: -0.005em;
  color: var(--linen);
  margin: 0 0 32px;
  max-width: 22ch + 600px;
}
.manifesto__quote em { font-style: italic; color: var(--linen); }
.manifesto__quote .hl {
  background: linear-gradient(180deg, transparent 60%, rgba(138,163,150,0.22) 60%);
  padding: 0 6px;
}
.manifesto__attribution {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin: 0;
}

/* ==========================================================
   GALLERY
   ========================================================== */
.gallery {
  padding: clamp(110px, 16vh, 200px) 0 clamp(100px, 14vh, 160px);
  background: var(--bg);
}

.masonry {
  column-count: 3;
  column-gap: 28px;
}
@media (max-width: 980px) { .masonry { column-count: 2; } }
@media (max-width: 620px) { .masonry { column-count: 1; } }

.card {
  break-inside: avoid;
  margin: 0 0 28px;
  background: transparent;
  border: 0;
  border-radius: 4px;
  overflow: visible;
  transition: transform 0.7s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
}

.card__media {
  position: relative;
  overflow: hidden;
  background: transparent;
  aspect-ratio: 4 / 5;
}
.card--tall .card__media { aspect-ratio: 3 / 4.6; }
.card--wide .card__media { aspect-ratio: 16 / 10; }

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease), filter 1.4s var(--ease);
  filter: saturate(0.8) contrast(1.02) brightness(0.86);
  /* Soft edge fade — image dissolves into the card's moss surface.
     Two intersecting linear masks create a four-side gradient frame. */
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, #000 9%, #000 91%, transparent 100%),
    linear-gradient(to right,  transparent 0%, #000 7%, #000 93%, transparent 100%);
  mask-image:
    linear-gradient(to bottom, transparent 0%, #000 9%, #000 91%, transparent 100%),
    linear-gradient(to right,  transparent 0%, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
}
.card:hover .card__media img {
  transform: scale(1.05);
  filter: saturate(0.95) contrast(1.04) brightness(0.95);
}

.card figcaption {
  padding: 8px 4px 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card__no {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0;
}
.card__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  margin: 0;
  color: var(--linen);
}
.card__meta {
  font-size: 12px;
  color: var(--fg-faint);
  letter-spacing: 0.06em;
  margin: 0;
}
.card__note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-mute);
  margin: 6px 0 0;
}

.gallery__footnote {
  margin-top: 60px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--fg-faint);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.gallery__footnote .rule {
  flex: 1;
  height: 1px;
  background: var(--rule-soft);
}

/* ==========================================================
   FILM / SANCTUARY
   ========================================================== */
.sanctuary {
  padding: clamp(100px, 14vh, 180px) 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--moss-2) 50%, var(--bg) 100%);
}

.film {
  position: relative;
  max-width: 1080px;
  margin: 16px auto 0;
}

.film__frame {
  position: relative;
  padding: 14px;
  background: var(--moss-2);
  border: 1px solid var(--rule-soft);
  border-radius: 6px;
  box-shadow: 0 60px 120px -50px rgba(0,0,0,0.65);
}

.film__corners {
  position: absolute;
  inset: -1px;
  pointer-events: none;
}
.film__corners .c {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--sage);
  border-style: solid;
  border-width: 0;
}
.film__corners .c--tl { top: -2px; left: -2px; border-top-width: 1px; border-left-width: 1px; }
.film__corners .c--tr { top: -2px; right: -2px; border-top-width: 1px; border-right-width: 1px; }
.film__corners .c--bl { bottom: -2px; left: -2px; border-bottom-width: 1px; border-left-width: 1px; }
.film__corners .c--br { bottom: -2px; right: -2px; border-bottom-width: 1px; border-right-width: 1px; }

.film__embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border-radius: 3px;
  overflow: hidden;
}
.film__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.film__caption {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.film__caption-sep { color: var(--sage); }

/* ==========================================================
   PROCESS
   ========================================================== */
.process {
  padding: clamp(100px, 14vh, 180px) 0;
  background: var(--bg);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.step {
  padding: 36px 30px 38px;
  background: var(--moss-2);
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  position: relative;
  transition: border-color 0.5s var(--ease), transform 0.5s var(--ease);
}
.step:hover { border-color: var(--sage-dim); transform: translateY(-3px); }
.step__no {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--sage);
  display: block;
  margin-bottom: 36px;
}
.step__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 14px;
  color: var(--linen);
}
.step__body {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--fg-mute);
  margin: 0;
}

/* ==========================================================
   VISIT
   ========================================================== */
.visit {
  position: relative;
  padding: clamp(110px, 16vh, 200px) 0;
  overflow: hidden;
  isolation: isolate;
}

.visit__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(180deg, rgba(14,19,17,0.92) 0%, rgba(14,19,17,0.85) 60%, rgba(14,19,17,0.95) 100%),
    url("https://images.unsplash.com/photo-1441974231531-c6227db76b6e?w=2200&q=80&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  filter: saturate(0.7) contrast(1.05);
}

.visit__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 920px) {
  .visit__inner { grid-template-columns: 1fr; }
}

.visit__lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
  color: var(--fg-mute);
  margin: 0 0 36px;
  max-width: 50ch;
}

.visit__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.visit__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--rule-soft);
  font-size: 14px;
  color: var(--linen);
  letter-spacing: 0.02em;
}
.visit__list li:last-child { border-bottom: 1px solid var(--rule-soft); }
.visit__list svg { color: var(--sage); flex-shrink: 0; }

/* Form */
.visit__form {
  background: rgba(28, 34, 31, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--rule-soft);
  border-radius: 6px;
  padding: clamp(28px, 4vw, 44px);
  position: relative;
}

.visit__form-eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 28px;
}

.field {
  display: block;
  margin-bottom: 22px;
}
.field__label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 10px;
}
.field__label .muted { text-transform: none; letter-spacing: 0.04em; opacity: 0.6; }

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  color: var(--linen);
  font-family: var(--sans);
  font-size: 15px;
  padding: 10px 0 12px;
  resize: vertical;
  transition: border-color 0.4s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--fg-faint);
  font-style: italic;
  font-family: var(--serif);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--sage);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

.visit__form .btn {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
}

.visit__form-foot {
  margin: 18px 0 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-faint);
  text-align: center;
}


/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  border-top: 1px solid var(--rule-soft);
  padding: 64px 0 56px;
  background: var(--moss-2);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.footer__brand .nav__mark { color: var(--sage); }
.footer__name {
  font-family: var(--script);
  font-size: 32px;
  line-height: 1;
  margin: 0 0 4px;
  color: var(--linen);
  -webkit-text-stroke: 0.18px currentColor;
}
.footer__tag {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin: 2px 0 0;
}

.footer__nav {
  display: flex;
  gap: 28px;
}
.footer__nav a {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-mute);
  transition: color 0.4s var(--ease);
}
.footer__nav a:hover { color: var(--linen); }

.footer__legal {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin: 0;
  width: 100%;
  text-align: center;
  border-top: 1px solid var(--rule-soft);
  padding-top: 28px;
  margin-top: 8px;
}

/* ==========================================================
   LOADER
   ========================================================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--linen);
  transition: opacity 0.9s var(--ease), visibility 0.9s var(--ease);
}

/* subtle radial glow + grain backdrop */
.loader::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(138,163,150,0.10) 0%, rgba(14,19,17,0) 60%),
    radial-gradient(ellipse at 50% 100%, rgba(138,163,150,0.06) 0%, rgba(14,19,17,0) 50%);
  pointer-events: none;
}
.loader::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.06;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  z-index: 1;
}

.loader__mark {
  width: 56px;
  height: 56px;
  color: var(--sage);
}

/* Stroke-draw animation per leaf */
.loader__path {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: draw 1.9s var(--ease) forwards;
}
.loader__path--trunk { animation-delay: 0.00s; stroke-dasharray: 24; stroke-dashoffset: 24; }
.loader__path--l1    { animation-delay: 0.30s; }
.loader__path--l2    { animation-delay: 0.50s; }
.loader__path--l3    { animation-delay: 0.75s; }
.loader__path--l4    { animation-delay: 1.00s; }

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

.loader__word {
  font-family: var(--script);
  font-size: 46px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.005em;
  color: var(--linen);
  margin: 14px 0 0;
  -webkit-text-stroke: 0.2px currentColor;
  opacity: 0;
  animation: fadeUp 1.1s var(--ease) 1.4s forwards;
}
.loader__sub {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin: 0;
  opacity: 0;
  animation: fadeUp 1.1s var(--ease) 1.7s forwards;
}

.loader__bar {
  margin-top: 26px;
  width: 140px;
  height: 1px;
  background: var(--rule-soft);
  overflow: hidden;
  position: relative;
  opacity: 0;
  animation: fadeUp 1.1s var(--ease) 2.0s forwards;
}
.loader__bar span {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--sage), transparent);
  transform: translateX(-100%);
  animation: barSweep 2.2s ease-in-out infinite;
}

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

@keyframes barSweep {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
  .loader__path { animation: none; stroke-dashoffset: 0; }
  .loader__word, .loader__sub, .loader__bar { animation: none; opacity: 1; }
  .loader__bar span { animation: none; }
}

/* ==========================================================
   LOCALE — green-tinted map
   ========================================================== */
.locale {
  padding: clamp(100px, 14vh, 180px) 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--moss-2) 50%, var(--bg) 100%);
}

.locale__map-wrap {
  position: relative;
  margin-top: 16px;
  border-radius: 6px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 60px 120px -50px rgba(0, 0, 0, 0.65);
}

.locale__map {
  width: 100%;
  height: clamp(420px, 56vh, 620px);
  background: #d8d6c8;
  /* CARTO Voyager tiles already use a soft cream/grey palette
     with green parks. A gentle hue-rotate plus very mild sepia
     pushes the whole basemap toward sage/linen — readable from
     across the room, still recognisably "Greenart". */
  filter:
    hue-rotate(38deg)
    saturate(0.7)
    brightness(0.98)
    sepia(0.12);
}

.locale__map-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.04;
  pointer-events: none;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Soft moss vignette around the map's edges — much lighter now
   that the basemap is bright; we only want a hint at the corners. */
.locale__map-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 70%, rgba(31, 38, 36, 0.22) 100%);
}

/* Frame corners (echoes the film section) */
.locale__map-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}
.locale__map-frame .c {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 0 solid var(--sage);
  opacity: 0.7;
}
.locale__map-frame .c--tl { top: 14px; left: 14px;  border-top-width: 1px; border-left-width: 1px; }
.locale__map-frame .c--tr { top: 14px; right: 14px; border-top-width: 1px; border-right-width: 1px; }
.locale__map-frame .c--bl { bottom: 14px; left: 14px;  border-bottom-width: 1px; border-left-width: 1px; }
.locale__map-frame .c--br { bottom: 14px; right: 14px; border-bottom-width: 1px; border-right-width: 1px; }

/* Information card overlaid bottom-left */
.locale__card {
  position: absolute;
  left: 28px;
  bottom: 28px;
  z-index: 4;
  padding: 22px 26px 24px;
  background: rgba(14, 19, 17, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--rule-soft);
  border-radius: 4px;
  max-width: 290px;
  color: var(--linen);
}
.locale__card-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 10px;
}
.locale__card-name {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 6px;
}
.locale__card-coords {
  font-size: 12px;
  color: var(--fg-mute);
  letter-spacing: 0.08em;
  margin: 0;
}
.locale__card-rule {
  height: 1px;
  background: var(--rule-soft);
  margin: 16px 0 14px;
}
.locale__card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--linen);
  transition: color 0.4s var(--ease), gap 0.4s var(--ease);
}
.locale__card-link:hover { color: var(--sage); gap: 12px; }

/* Pin */
.locale__pin-wrap { background: transparent; border: 0; }
.locale__pin {
  position: relative;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
}
.locale__pin-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(138, 163, 150, 0.55);
  animation: pinRing 2.6s ease-in-out infinite;
}
.locale__pin-ring::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(138, 163, 150, 0.25);
  animation: pinRing 2.6s ease-in-out 0.6s infinite;
}
.locale__pin-dot {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--sage);
  border: 1px solid rgba(138, 163, 150, 0.85);
  box-shadow: 0 6px 22px -6px rgba(0, 0, 0, 0.8);
  display: grid;
  place-items: center;
}
@keyframes pinRing {
  0%, 100% { transform: scale(0.95); opacity: 0.45; }
  50%      { transform: scale(1.08); opacity: 0.95; }
}

/* Leaflet attribution → quiet, brand-toned */
.locale__map-wrap .leaflet-control-attribution {
  background: rgba(14, 19, 17, 0.65);
  color: var(--fg-faint);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border: 0;
}
.locale__map-wrap .leaflet-control-attribution a {
  color: var(--sage-dim);
}
.locale__map-wrap .leaflet-control-attribution a:hover { color: var(--linen); }

/* Leaflet zoom control */
.locale__map-wrap .leaflet-bar {
  border: 1px solid var(--rule-soft);
  background: rgba(14, 19, 17, 0.78);
  backdrop-filter: blur(8px);
  box-shadow: none;
}
.locale__map-wrap .leaflet-bar a {
  background: transparent;
  color: var(--linen);
  border-color: var(--rule-soft);
  width: 32px; height: 32px; line-height: 32px;
  font-weight: 300;
  font-family: var(--serif);
  font-size: 18px;
}
.locale__map-wrap .leaflet-bar a:hover { background: rgba(138, 163, 150, 0.10); color: var(--sage); }

/* Mobile */
@media (max-width: 720px) {
  .locale__map { height: clamp(340px, 60vh, 520px); }
  .locale__card {
    left: 14px;
    right: 14px;
    bottom: 14px;
    max-width: none;
    padding: 18px 20px;
  }
  .locale__card-name { font-size: 19px; }
}

