/* =====================================================================================
   昶順、祐呈 — site stylesheet
   Direction: 莊嚴而溫柔. Brand greens from the original site, gold from the seal logo,
   one memorable moment (the hero), everything else quiet.
   ===================================================================================== */

:root {
  --green-600: #5a8139;
  --green-700: #48682b;
  --forest: #2e4e2a;
  --forest-900: #1f3a1d;
  --ink: #192c27;
  --text: #434f58;
  --muted: #6f7d77;
  --mist: #e6f0ee;
  --mist-2: #f2f7f6;
  --paper: #fbfcfc;
  --white: #ffffff;
  --gold: #c9a961;
  --gold-700: #b8975a;
  --line: rgba(25, 44, 39, 0.1);

  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", Georgia, serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --radius: 4px;
  --shadow: 0 16px 48px rgba(25, 44, 39, 0.12);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 76px;
}

/* ---- base ------------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.nav-locked { overflow: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--green-600); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--green-700); }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: 0.03em;
  margin: 0 0 0.6em;
}
h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.2em; }
svg { width: 1.25em; height: 1.25em; fill: none; }
.is-flipped { transform: scaleX(-1); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: #fff; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container.narrow { max-width: 760px; }
.section { padding: var(--section) 0; }

/* ---- buttons & links -------------------------------------------------------------- */
.button {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.9rem 2rem;
  background: var(--green-600); color: #fff;
  font-weight: 500; letter-spacing: 0.08em; line-height: 1.4;
  border: 1px solid var(--green-600); border-radius: 2px;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.button:hover { background: var(--green-700); border-color: var(--green-700); color: #fff; transform: translateY(-1px); }
.button--light { background: transparent; border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.button--light:hover { background: #fff; border-color: #fff; color: var(--forest); }
.button svg { width: 1.1em; height: 1.1em; }
.text-link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 500; color: var(--green-600); }
.text-link:hover svg { transform: translateX(3px); }
.text-link svg { transition: transform 0.25s var(--ease); }
.text-link svg.is-flipped:hover, .text-link:hover svg.is-flipped { transform: scaleX(-1) translateX(3px); }

/* ---- eyebrow & section heads ------------------------------------------------------ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.8rem;
  margin: 0 0 1rem;
  font-family: var(--serif); font-size: 0.95rem; letter-spacing: 0.18em;
  color: var(--green-600);
}
.eyebrow::before, .eyebrow::after { content: ""; width: 1.75rem; height: 1px; background: var(--gold); }
.eyebrow--light { color: #d8c48f; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section-head__title { margin-bottom: 0.4em; }
.section-head__sub { font-size: 1.05rem; color: var(--muted); margin: 0; }
.section-head--light .section-head__title { color: #fff; }
.section-head--light .section-head__sub { color: rgba(255, 255, 255, 0.78); }

/* ---- leaf pattern ------------------------------------------------------------------ */
.leaves, .hero__leaves, .about__leaves, .page-hero__leaves, .site-footer__leaves {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("../img/leaf-pattern.f0006a6587e7.svg");
  background-size: 420px 420px;
  background-repeat: repeat;
  opacity: 0.09;
}

/* ---- header ----------------------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  background: var(--paper);
  box-shadow: 0 1px 0 var(--line);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--ink); }
.brand__mark { height: 44px; width: auto; }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; letter-spacing: 0.12em; }
.site-nav { margin-left: auto; }
.site-nav__list { list-style: none; display: flex; gap: 2rem; margin: 0; padding: 0; }
.site-nav__list a { color: var(--ink); font-weight: 500; letter-spacing: 0.08em; padding: 0.4rem 0; position: relative; }
.site-nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.site-nav__list a:hover::after, .site-nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.site-header__actions { display: flex; align-items: center; gap: 0.5rem; }
.icon-button {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  border-radius: 50%; color: var(--ink); background: transparent; border: 0; cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.icon-button svg { width: 22px; height: 22px; }
.icon-button:hover { background: var(--mist); color: var(--green-700); }
.nav-toggle { display: none; }
.nav-toggle__close { display: none; }
.nav-open .nav-toggle__open { display: none; }
.nav-open .nav-toggle__close { display: block; }

/* On the home page the header floats over the hero until the user scrolls. */
.home .site-header:not(.is-solid):not(.nav-open) { background: transparent; box-shadow: none; }
.home .site-header:not(.is-solid):not(.nav-open) .brand,
.home .site-header:not(.is-solid):not(.nav-open) .site-nav__list a,
.home .site-header:not(.is-solid):not(.nav-open) .icon-button { color: #fff; }
.home .site-header:not(.is-solid):not(.nav-open) .icon-button:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
body:not(.home) main { padding-top: var(--header-h); }

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .brand__mark { height: 38px; }
  .brand__name { font-size: 1.1rem; }
  .nav-toggle { display: inline-grid; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    background: var(--forest);
    padding: 2rem var(--gutter);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s 0.3s;
  }
  .nav-open .site-nav { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list a {
    display: block; color: #fff !important; font-family: var(--serif); font-size: 1.5rem;
    padding: 1rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .site-nav__list a::after { display: none; }
}

/* ---- hero: the one memorable moment ----------------------------------------------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  background: var(--forest-900);
  color: #fff; text-align: center;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; }
.hero__veil {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(25, 44, 39, 0.72) 0%, rgba(31, 58, 29, 0.58) 45%, rgba(46, 78, 42, 0.94) 100%);
}
.hero__leaves {
  z-index: -1; opacity: 0.12;
  background-size: 520px 520px;
  animation: drift 90s linear infinite alternate;
}
@keyframes drift { from { background-position: 0 0; } to { background-position: 260px 420px; } }
.hero__content { max-width: 820px; }
.hero__eyebrow {
  font-family: var(--serif); letter-spacing: 0.3em; color: var(--gold);
  font-size: 0.95rem; margin: 0 0 1.5rem;
  animation: rise 0.9s var(--ease) both; animation-delay: 0.15s;
}
.hero__title {
  color: #fff; font-size: clamp(2rem, 5.6vw, 3.9rem); font-weight: 600;
  line-height: 1.35; letter-spacing: 0.06em; margin: 0 0 1.75rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}
.hero__line { display: block; animation: rise 1s var(--ease) both; animation-delay: calc(0.45s + var(--i, 0) * 0.4s); }
.hero__lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 2; color: rgba(255, 255, 255, 0.9);
  max-width: 620px; margin: 0 auto 2.5rem;
  animation: rise 1s var(--ease) both; animation-delay: 1.35s;
}
.hero__cta { animation: rise 1s var(--ease) both; animation-delay: 1.65s; }
.hero__cta svg { animation: nudge 2.4s ease-in-out infinite; animation-delay: 3s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
.hero::after {
  /* soft seam into the dark "about" section */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: -1;
  background: linear-gradient(180deg, transparent, var(--forest));
}

/* ---- about / highlights ------------------------------------------------------------ */
.about { position: relative; isolation: isolate; background: var(--forest); color: #fff; padding-top: calc(var(--section) * 0.8); }
.highlights {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
}
.highlight {
  background: var(--white); color: var(--text);
  padding: 2.5rem 2rem 2.25rem; border-radius: var(--radius);
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow);
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.is-visible .highlight { opacity: 1; transform: none; }
.is-visible .highlight:nth-child(2) { transition-delay: 0.12s; }
.is-visible .highlight:nth-child(3) { transition-delay: 0.24s; }
.is-visible .highlight:nth-child(4) { transition-delay: 0.36s; }
.highlight__icon {
  display: inline-grid; place-items: center; width: 64px; height: 64px;
  border-radius: 50%; background: var(--mist); color: var(--green-700); margin-bottom: 1.25rem;
}
.highlight__icon svg { width: 36px; height: 36px; }
.highlight__number {
  font-family: var(--serif); font-size: 2.4rem; font-weight: 600; color: var(--ink);
  line-height: 1.1; margin: 0 0 0.35rem; font-variant-numeric: tabular-nums;
}
.highlight__suffix { font-size: 1.1rem; color: var(--gold-700); margin-left: 0.15em; }
.highlight__title { font-size: 1.2rem; margin: 0 0 0.6rem; }
.highlight__text { font-size: 0.95rem; color: var(--muted); margin: 0; line-height: 1.75; }
@media (max-width: 1000px) { .highlights { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .highlights { grid-template-columns: 1fr; } }

/* ---- services ---------------------------------------------------------------------- */
.services { background: var(--paper); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.service-card {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 630 / 408; background: var(--mist); color: #fff;
  box-shadow: 0 1px 0 var(--line);
}
.service-card--tall { aspect-ratio: 630 / 846; }
.service-card__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.service-card__media--empty { background: linear-gradient(160deg, var(--mist), var(--green-600)); }
.service-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(25, 44, 39, 0.88) 0%, rgba(25, 44, 39, 0.35) 45%, rgba(25, 44, 39, 0) 75%);
  transition: background 0.4s var(--ease);
}
.service-card__body { position: absolute; left: 1.5rem; right: 1.5rem; bottom: 1.4rem; z-index: 1; display: grid; gap: 0.35rem; }
.service-card__title { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; letter-spacing: 0.08em; }
.service-card__summary {
  font-size: 0.92rem; line-height: 1.65; color: rgba(255, 255, 255, 0.88);
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.45s var(--ease), opacity 0.45s var(--ease);
}
.service-card:hover .service-card__summary, .service-card:focus-visible .service-card__summary { max-height: 6em; opacity: 1; }
.service-card:hover .service-card__media { transform: scale(1.04); }
.service-card:hover::after { background: linear-gradient(to top, rgba(46, 78, 42, 0.94) 0%, rgba(46, 78, 42, 0.5) 55%, rgba(46, 78, 42, 0.1) 100%); }
/* Exactly five cards → the original layout: a tall card in the middle column. */
@media (min-width: 900px) {
  .service-card:nth-child(1):nth-last-child(5) { grid-area: 1 / 1; }
  .service-card:nth-child(2):nth-last-child(4) { grid-area: 2 / 1; }
  .service-card:nth-child(3):nth-last-child(3) { grid-area: 1 / 2 / span 2; aspect-ratio: auto; }
  .service-card:nth-child(4):nth-last-child(2) { grid-area: 1 / 3; }
  .service-card:nth-child(5):nth-last-child(1) { grid-area: 2 / 3; }
}
@media (max-width: 900px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card--tall { aspect-ratio: 630 / 408; }
  .service-card__summary { max-height: 6em; opacity: 1; }
}
@media (max-width: 560px) { .service-grid { grid-template-columns: 1fr; } }

/* ---- showcase video ---------------------------------------------------------------- */
.showcase { position: relative; height: clamp(360px, 68vh, 720px); overflow: hidden; background: var(--ink); }
.showcase__media { width: 100%; height: 100%; object-fit: cover; }
.showcase::before, .showcase::after { content: ""; position: absolute; left: 0; right: 0; height: 140px; pointer-events: none; }
.showcase::before { top: 0; background: linear-gradient(180deg, var(--paper), transparent); }
.showcase::after { bottom: 0; background: linear-gradient(0deg, rgba(25, 44, 39, 0.85), transparent); }
.showcase__caption {
  position: absolute; left: 0; right: 0; bottom: clamp(2rem, 5vw, 4rem); z-index: 1; margin: 0; text-align: center;
}
.showcase__caption span {
  font-family: var(--serif); color: #fff; font-size: clamp(1.15rem, 2.2vw, 1.6rem); letter-spacing: 0.14em;
  padding: 0.5rem 1.5rem; border-bottom: 1px solid var(--gold);
}

/* ---- news -------------------------------------------------------------------------- */
.news-teaser { background: var(--mist-2); }
.news-teaser__inner { max-width: 860px; }
.news-teaser__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.news-teaser__head .section-head__title { margin: 0; }
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-list__item { display: grid; grid-template-columns: 7rem 1fr; gap: 0.25rem 1.5rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.news-list__item time { font-family: var(--serif); color: var(--gold-700); letter-spacing: 0.08em; grid-row: span 2; }
.news-list__item a { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.news-list__item a:hover { color: var(--green-700); }
.news-list__item p { margin: 0; font-size: 0.95rem; color: var(--muted); }
@media (max-width: 540px) { .news-list__item { grid-template-columns: 1fr; } .news-list__item time { grid-row: auto; } }
.empty { text-align: center; color: var(--muted); }

/* ---- contact ----------------------------------------------------------------------- */
.contact { background: var(--mist); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.contact-card {
  display: grid; align-content: start; gap: 0.35rem;
  background: var(--white); color: var(--text); padding: 2.25rem 2rem; border-radius: var(--radius);
  box-shadow: 0 1px 0 var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
a.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); }
.contact-card__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--mist); color: var(--green-700); margin-bottom: 0.75rem; }
.contact-card__icon svg { width: 24px; height: 24px; }
.contact-card__label { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.contact-card__value { display: grid; gap: 0.15rem; font-size: 1.05rem; line-height: 1.7; }
.contact-card__value small { display: block; color: var(--muted); font-size: 0.85rem; }
.contact-card__value a { color: var(--ink); font-variant-numeric: tabular-nums; }
.contact-card__value a:hover { color: var(--green-700); }
.contact-card__hint { margin-top: 0.5rem; font-size: 0.85rem; color: var(--green-600); letter-spacing: 0.08em; }
.contact__form-cta { margin-top: 3rem; text-align: center; }
.contact__form-cta p { color: var(--muted); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---- inner pages ------------------------------------------------------------------- */
.page-hero { position: relative; isolation: isolate; background: var(--forest); color: #fff; padding: clamp(56px, 8vw, 96px) 0; text-align: center; overflow: hidden; }
.page-hero__leaves { opacity: 0.1; }
.page-hero__inner { position: relative; max-width: 760px; }
.page-hero__title { color: #fff; font-size: clamp(1.9rem, 4vw, 2.75rem); margin-bottom: 0.4em; }
.page-hero__intro { color: rgba(255, 255, 255, 0.82); font-size: 1.05rem; margin: 0; }
.article__inner { max-width: 760px; }
.article__cover { width: 100%; border-radius: var(--radius); margin-bottom: 2.5rem; box-shadow: var(--shadow); }
.article__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }

.prose { max-width: 72ch; }
.prose h2 { font-size: 1.6rem; margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; margin-top: 1.8em; }
.prose p { margin-bottom: 1.4em; }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: 1.4em; }
.prose hr { border: 0; width: 3rem; height: 1px; background: var(--gold); margin: 2.5rem 0; }
.figure { margin: 2.5rem 0; }
.figure img { border-radius: var(--radius); }
.figure figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.6rem; }
.pullquote { margin: 2.5rem 0; padding: 0.5rem 0 0.5rem 1.75rem; border-left: 2px solid var(--gold); }
.pullquote p { font-family: var(--serif); font-size: 1.35rem; line-height: 1.7; color: var(--ink); margin: 0 0 0.5rem; }
.pullquote cite { font-style: normal; color: var(--muted); font-size: 0.9rem; letter-spacing: 0.1em; }
.cta-block { margin: 2.5rem 0; }
.steps { margin: 2.5rem 0; }
.steps__list { list-style: none; margin: 0; padding: 0; counter-reset: step; position: relative; }
.steps__list::before { content: ""; position: absolute; left: 1.1rem; top: 1rem; bottom: 1rem; width: 1px; background: var(--line); }
.steps__item { position: relative; display: grid; gap: 0.2rem; padding: 0.75rem 0 0.75rem 3.5rem; counter-increment: step; }
.steps__item::before {
  content: counter(step); position: absolute; left: 0; top: 0.75rem;
  display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--white); border: 1px solid var(--gold); color: var(--gold-700);
  font-family: var(--serif); font-weight: 600;
}
.steps__title { font-family: var(--serif); font-weight: 600; color: var(--ink); font-size: 1.1rem; }
.steps__text { color: var(--muted); font-size: 0.95rem; }

/* ---- contact page form --------------------------------------------------------------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-aside__list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.contact-aside__list li { display: flex; align-items: center; gap: 0.75rem; }
.contact-aside__list svg { color: var(--green-700); flex: none; }
.contact-aside__list a { color: var(--ink); }
.form { display: grid; gap: 1.25rem; background: var(--white); padding: clamp(1.5rem, 4vw, 2.75rem); border-radius: var(--radius); box-shadow: var(--shadow); }
.form__field { display: grid; gap: 0.4rem; }
.form__field label { font-weight: 500; color: var(--ink); }
.form__required { color: var(--gold-700); font-size: 0.8em; margin-left: 0.2em; }
.form input, .form textarea, .form select {
  width: 100%; font: inherit; color: var(--ink);
  padding: 0.8rem 1rem; border: 1px solid #cfdcd8; border-radius: 2px; background: var(--paper);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form textarea { min-height: 9rem; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(90, 129, 57, 0.18); }
.form__help { margin: 0; font-size: 0.85rem; color: var(--muted); }
.form__error, .form__errors { margin: 0; font-size: 0.9rem; color: #a0442f; }
.is-invalid input, .is-invalid textarea, .is-invalid select { border-color: #c4634c; }
.form .button { justify-self: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

/* ---- footer ------------------------------------------------------------------------- */
.site-footer { position: relative; isolation: isolate; background: var(--ink); color: rgba(255, 255, 255, 0.8); padding: clamp(48px, 6vw, 72px) 0 1.5rem; overflow: hidden; }
.site-footer__leaves { opacity: 0.05; }
.site-footer__inner { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.site-footer__name { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: #fff; letter-spacing: 0.14em; margin: 0 0 0.5rem; }
.site-footer__tagline { margin: 0 0 1rem; color: rgba(255, 255, 255, 0.7); }
.site-footer__hours { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0; color: var(--gold); font-size: 0.95rem; }
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer__nav a, .site-footer__contact a { color: rgba(255, 255, 255, 0.85); }
.site-footer__nav a:hover, .site-footer__contact a:hover { color: var(--gold); }
.site-footer__contact { font-style: normal; display: grid; gap: 0.6rem; align-content: start; }
.site-footer__contact a { display: flex; align-items: center; gap: 0.6rem; }
.site-footer__contact svg { flex: none; color: var(--gold); }
.site-footer__bottom { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.5rem; font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); }
.site-footer__bottom p { margin: 0; }
.site-footer__cms { color: rgba(255, 255, 255, 0.4); }
@media (max-width: 900px) { .site-footer__inner { grid-template-columns: 1fr; gap: 2rem; } }

/* ---- motion preferences ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .highlight { opacity: 1; transform: none; }
  .hero__line, .hero__eyebrow, .hero__lead, .hero__cta { opacity: 1; transform: none; }
}

/* Narrow screens: let the hero lead wrap naturally instead of honouring editor line breaks. */
@media (max-width: 560px) {
  .hero__lead br { display: none; }
  .hero__title { font-size: 2rem; }
}

/* =====================================================================================
   Phase 2 — story sections & motion
   ===================================================================================== */

/* ---- cross-document fade between pages (Chromium/Safari; others just navigate) ------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; }

/* ---- generic reveal: anything with data-reveal inside a data-reveal-group ------------- */
[data-reveal-group] [data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.14s);
}
[data-reveal-group].is-visible [data-reveal] { opacity: 1; transform: none; }
/* section heads: the gold rules beside the eyebrow grow out from the centre */
.section-head .eyebrow::before, .section-head .eyebrow::after { transform: scaleX(0); transition: transform 0.9s var(--ease) 0.2s; }
.section-head .eyebrow::before { transform-origin: right; }
.section-head .eyebrow::after { transform-origin: left; }
.section-head.is-visible .eyebrow::before, .section-head.is-visible .eyebrow::after { transform: scaleX(1); }
/* service cards: staggered rise */
.service-grid .service-card { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.service-grid.is-visible .service-card { opacity: 1; transform: none; }
.service-grid.is-visible .service-card:nth-child(2) { transition-delay: 0.1s; }
.service-grid.is-visible .service-card:nth-child(3) { transition-delay: 0.2s; }
.service-grid.is-visible .service-card:nth-child(4) { transition-delay: 0.3s; }
.service-grid.is-visible .service-card:nth-child(5) { transition-delay: 0.4s; }

/* ---- hero: slow push-in, falling leaves, scroll fade ---------------------------------- */
.hero__media { animation: kenburns 28s ease-in-out infinite alternate; transform-origin: 50% 40%; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero__petals { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.petal {
  position: absolute; top: -6%; width: 22px; height: 22px; color: #b9c9a3; opacity: 0;
  left: calc(8% + (var(--n) - 1) * 15%);
  animation: fall calc(14s + var(--n) * 2.5s) linear infinite;
  animation-delay: calc(var(--n) * -3.7s);
}
.petal:nth-child(even) { color: var(--gold); width: 16px; height: 16px; }
@keyframes fall {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  8%   { opacity: 0.55; }
  50%  { transform: translate3d(-40px, 50vh, 0) rotate(140deg); }
  92%  { opacity: 0.4; }
  100% { transform: translate3d(30px, 108vh, 0) rotate(320deg); opacity: 0; }
}
@supports (animation-timeline: scroll()) {
  .hero__content { animation: heroFade linear both; animation-timeline: scroll(root); animation-range: 0 85vh; }
  @keyframes heroFade { to { opacity: 0; transform: translateY(-60px); } }
  .showcase__media { animation: parallax linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; scale: 1.15; }
  @keyframes parallax { from { translate: 0 -6%; } to { translate: 0 6%; } }
}

/* ---- story timeline ---------------------------------------------------------------- */
.story { background: var(--mist-2); position: relative; overflow: hidden; }
.timeline { position: relative; display: grid; gap: clamp(2rem, 5vw, 4rem); padding: 1rem 0; }
.timeline__line {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px;
  background: linear-gradient(var(--gold), var(--green-600)); transform-origin: top; transform: scaleY(0);
  transition: transform 1.6s var(--ease);
}
[data-draw].is-drawn .timeline__line { transform: scaleY(1); }
@supports (animation-timeline: view()) {
  .timeline__line { transition: none; animation: drawY linear both; animation-timeline: view(); animation-range: entry 10% cover 55%; }
  @keyframes drawY { from { transform: scaleY(0); } to { transform: scaleY(1); } }
  [data-draw].is-drawn .timeline__line { transform: none; }
}
.chapter { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.chapter__marker {
  position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--gold); box-shadow: 0 0 0 6px var(--mist-2); z-index: 1;
}
.chapter__card { background: var(--white); padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--radius); box-shadow: var(--shadow); }
.chapter__era { font-family: var(--serif); color: var(--gold-700); letter-spacing: 0.16em; font-size: 0.9rem; margin: 0 0 0.5rem; }
.chapter__title { font-size: 1.5rem; margin: 0 0 0.6rem; }
.chapter__text { margin: 0; color: var(--text); }
.chapter__media { overflow: hidden; border-radius: var(--radius); }
.chapter__media img { width: 100%; animation: slowzoom 18s ease-in-out infinite alternate; }
@keyframes slowzoom { to { transform: scale(1.04); } }
.chapter:nth-child(even) .chapter__card { grid-column: 2; }
.chapter:nth-child(even) .chapter__media { grid-column: 1; grid-row: 1; }
.chapter:nth-child(odd) .chapter__card { grid-column: 1; }
.chapter:nth-child(odd) .chapter__media { grid-column: 2; }
@media (max-width: 760px) {
  .timeline__line { left: 1rem; }
  .chapter { grid-template-columns: 1fr; padding-left: 2.75rem; }
  .chapter__marker { left: 1rem; top: 1.6rem; }
  .chapter:nth-child(even) .chapter__card, .chapter:nth-child(odd) .chapter__card,
  .chapter:nth-child(even) .chapter__media, .chapter:nth-child(odd) .chapter__media { grid-column: 1; grid-row: auto; }
}

/* ---- manifesto ------------------------------------------------------------------------ */
.manifesto { position: relative; isolation: isolate; overflow: hidden; background: var(--forest); color: #fff; text-align: center; padding: clamp(96px, 14vw, 176px) 0; }
.manifesto__leaves { position: absolute; inset: 0; background-image: url("../img/leaf-pattern.f0006a6587e7.svg"); background-size: 460px 460px; opacity: 0.08; pointer-events: none; }
.manifesto__glow {
  position: absolute; left: 50%; top: 50%; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.28) 0%, rgba(201, 169, 97, 0.08) 40%, transparent 70%);
  animation: breathe 8s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.92); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } }
.manifesto__inner { position: relative; max-width: 820px; }
.manifesto__quote { margin: 0; }
.manifesto__line { display: block; font-family: var(--serif); font-weight: 600; color: #fff; font-size: clamp(1.4rem, 3.2vw, 2.3rem); line-height: 1.7; letter-spacing: 0.06em; }
.manifesto__cite { display: inline-block; margin-top: 1.75rem; font-style: normal; color: var(--gold); letter-spacing: 0.3em; font-family: var(--serif); }
.manifesto__cite::before { content: "— "; }

/* ---- journey -------------------------------------------------------------------------- */
.journey { background: var(--paper); }
.journey__steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.25rem; }
.journey__line {
  position: absolute; left: calc(100% / 12); right: calc(100% / 12); top: 1.4rem; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--green-600)); transform-origin: left; transform: scaleX(0);
  transition: transform 1.8s var(--ease);
}
[data-draw].is-drawn .journey__line { transform: scaleX(1); }
@supports (animation-timeline: view()) {
  .journey__line { transition: none; animation: drawX linear both; animation-timeline: view(); animation-range: entry 30% cover 60%; }
  @keyframes drawX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  [data-draw].is-drawn .journey__line { transform: none; }
}
.journey__step { position: relative; text-align: center; padding: 0 0.25rem; }
.journey__node {
  display: inline-grid; place-items: center; width: 2.8rem; height: 2.8rem; margin-bottom: 1rem; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--gold); color: var(--gold-700);
  font-family: var(--serif); font-weight: 600; position: relative; z-index: 1;
  transition: background 0.5s var(--ease), color 0.5s var(--ease), box-shadow 0.5s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.18s + 0.3s);
}
.is-visible .journey__node { background: var(--green-600); border-color: var(--green-600); color: #fff; box-shadow: 0 0 0 6px var(--mist); }
.journey__title { font-size: 1.05rem; margin: 0 0 0.4rem; }
.journey__text { font-size: 0.9rem; color: var(--muted); line-height: 1.7; margin: 0; }
@media (max-width: 1000px) {
  .journey__steps { grid-template-columns: 1fr; gap: 0; padding-left: 3.5rem; }
  .journey__line { left: 1.4rem; right: auto; top: 1rem; bottom: 1rem; width: 2px; height: auto; transform-origin: top; transform: scaleY(0); background: linear-gradient(var(--gold), var(--green-600)); }
  [data-draw].is-drawn .journey__line { transform: scaleY(1); }
  @supports (animation-timeline: view()) {
    .journey__line { animation-name: drawY; }
  }
  .journey__step { text-align: left; padding: 0.9rem 0 1.4rem; }
  .journey__node { position: absolute; left: -3.5rem; top: 0.6rem; margin: 0; }
}

/* ---- FAQ accordion -------------------------------------------------------------------- */
.faqs { background: var(--mist); }
.faqs__inner { max-width: 860px; }
.faq-list { display: grid; gap: 0.75rem; }
.faq { background: var(--white); border-radius: var(--radius); box-shadow: 0 1px 0 var(--line); overflow: hidden; }
.faq__question {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none;
  padding: 1.1rem 1.5rem; font-family: var(--serif); font-weight: 600; font-size: 1.1rem; color: var(--ink);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question:hover { color: var(--green-700); background: var(--mist-2); }
.faq__chevron { flex: none; width: 1.1rem; height: 1.1rem; color: var(--gold-700); transition: transform 0.35s var(--ease); }
.faq[open] .faq__chevron { transform: rotate(180deg); }
.faq__answer { padding: 0 1.5rem 1.4rem; color: var(--text); animation: faqIn 0.4s var(--ease) both; }
.faq__answer p { margin: 0 0 0.75em; }
.faq__answer p:last-child { margin-bottom: 0; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---- mobile quick-contact bar --------------------------------------------------------- */
.quick-contact {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none;
  grid-template-columns: 1fr 1fr; background: var(--ink); box-shadow: 0 -8px 24px rgba(25, 44, 39, 0.25);
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(110%); transition: transform 0.4s var(--ease);
}
.quick-contact.is-shown { transform: none; }
.quick-contact__item { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.95rem 1rem; color: #fff; font-weight: 500; letter-spacing: 0.08em; }
.quick-contact__item--line { background: var(--green-600); }
.quick-contact__item svg { width: 1.25rem; height: 1.25rem; }
@media (max-width: 900px) {
  .quick-contact { display: grid; }
  body.has-quick-contact .site-footer { padding-bottom: 5rem; }
}

/* ---- reduced motion: everything settles into its final state ---------------------------- */
@media (prefers-reduced-motion: reduce) {
  [data-reveal-group] [data-reveal], .service-grid .service-card { opacity: 1; transform: none; }
  .timeline__line, .journey__line { transform: none; animation: none; }
  .section-head .eyebrow::before, .section-head .eyebrow::after { transform: none; }
  .hero__content, .showcase__media, .hero__media, .petal, .manifesto__glow, .chapter__media img { animation: none !important; }
  .petal { display: none; }
  .journey__node { background: var(--green-600); border-color: var(--green-600); color: #fff; }
}
