:root {
  color-scheme: light;
  --ink: #1f2722;
  --muted: #66746b;
  --paper: #f5f3ec;
  --panel: #fffdf7;
  --line: #ddd7c8;
  --forest: #214f38;
  --leaf: #4f8a55;
  --tea: #8ea95f;
  --clay: #a65b3b;
  --wheat: #d5ad64;
  --indigo: #2d4964;
  --shadow: 0 22px 60px rgba(31, 39, 34, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 14px clamp(18px, 5vw, 72px);
  color: #fffdf7;
  background: rgba(19, 48, 34, 0.72);
  border-bottom: 1px solid rgba(255, 253, 247, 0.16);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(19, 48, 34, 0.94);
  box-shadow: 0 12px 30px rgba(19, 48, 34, 0.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--forest);
  background: var(--wheat);
  border-radius: 8px;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  margin-top: 4px;
  color: rgba(255, 253, 247, 0.72);
  font-size: 0.76rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  min-height: 40px;
  padding: 10px 11px;
  border-radius: 8px;
  color: rgba(255, 253, 247, 0.84);
  font-size: 0.93rem;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #fffdf7;
  background: rgba(255, 253, 247, 0.14);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 253, 247, 0.24);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.1);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px 0;
  background: #fffdf7;
}

.hero {
  position: relative;
  display: grid;
  min-height: 96svh;
  align-items: end;
  padding: 126px clamp(18px, 5vw, 72px) 96px;
  overflow: hidden;
  isolation: isolate;
  background: var(--forest);
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(14, 38, 26, 0.9) 0%, rgba(14, 38, 26, 0.68) 40%, rgba(14, 38, 26, 0.18) 100%),
    linear-gradient(0deg, rgba(245, 243, 236, 0.98) 0%, rgba(245, 243, 236, 0) 24%);
}

.hero-content {
  width: min(820px, 100%);
  color: #fffdf7;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0c472;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 9ch;
  margin-bottom: 24px;
  font-size: 7rem;
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: 3.3rem;
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.hero-copy {
  max-width: 650px;
  color: rgba(255, 253, 247, 0.86);
  font-size: 1.18rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-action,
.secondary-action,
.inline-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
}

.primary-action {
  color: var(--forest);
  background: var(--wheat);
}

.secondary-action,
.inline-link {
  color: #fffdf7;
  border: 1px solid rgba(255, 253, 247, 0.36);
}

.inline-link {
  color: var(--forest);
  border-color: var(--line);
  background: #fffdf7;
}

.hero-panel {
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  bottom: 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  width: min(680px, calc(100% - 36px));
  color: #fffdf7;
  background: rgba(33, 79, 56, 0.78);
  border: 1px solid rgba(255, 253, 247, 0.22);
  border-radius: 8px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-panel div {
  min-height: 108px;
  padding: 20px;
  border-right: 1px solid rgba(255, 253, 247, 0.14);
}

.hero-panel div:last-child {
  border-right: 0;
}

.hero-panel span,
.card-label {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 253, 247, 0.68);
  font-size: 0.76rem;
  font-weight: 800;
}

.hero-panel strong {
  display: block;
  line-height: 1.45;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.intro,
.chapter-map,
.story-section,
.media-section {
  padding: 92px 0;
}

.intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: stretch;
}

.intro-copy p,
.story-copy p,
.band-copy p,
.tea-copy p,
.section-heading p,
.site-footer span {
  color: var(--muted);
  line-height: 1.82;
}

.intro-copy p {
  max-width: 780px;
  font-size: 1.05rem;
}

.team-card {
  min-height: 300px;
  padding: 28px;
  color: #fffdf7;
  background:
    linear-gradient(145deg, rgba(33, 79, 56, 0.95), rgba(45, 73, 100, 0.88)),
    url("../images/gallery/team.png") center/cover;
  background-blend-mode: multiply;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.team-card strong {
  display: block;
  max-width: 12ch;
  margin-bottom: 18px;
  font-size: 2.25rem;
  line-height: 1.08;
}

.team-card p {
  max-width: 360px;
  color: rgba(255, 253, 247, 0.78);
  line-height: 1.75;
}

.photo-ribbon {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  min-height: 260px;
}

.photo-ribbon img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.6fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading p:last-child {
  margin-bottom: 0;
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.map-grid a {
  display: grid;
  min-height: 132px;
  align-content: space-between;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.map-grid a:hover,
.map-grid a:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(79, 138, 85, 0.56);
  box-shadow: 0 18px 36px rgba(33, 79, 56, 0.12);
  outline: none;
}

.map-grid span {
  color: var(--muted);
  font-size: 0.86rem;
}

.story-section {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.story-reverse .story-media {
  order: 2;
}

.story-reverse .story-copy {
  order: 1;
}

.story-media {
  position: relative;
}

.story-media::after {
  position: absolute;
  right: -16px;
  bottom: -16px;
  z-index: -1;
  width: 42%;
  height: 42%;
  content: "";
  background: var(--wheat);
  border-radius: 8px;
}

.story-media img,
.band-media img,
.tea-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.story-copy p {
  font-size: 1.02rem;
}

.story-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.story-list li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.72;
}

.story-list li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 9px;
  height: 9px;
  content: "";
  background: var(--leaf);
  border-radius: 50%;
}

.timeline {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.timeline article {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.timeline span {
  color: var(--clay);
  font-weight: 900;
}

.timeline p {
  margin: 0;
}

.fact-grid,
.tea-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.fact-grid span,
.tea-tags span {
  padding: 9px 12px;
  color: var(--forest);
  background: rgba(142, 169, 95, 0.18);
  border: 1px solid rgba(142, 169, 95, 0.36);
  border-radius: 8px;
  font-weight: 800;
}

.feature-band {
  padding: 92px 0;
  color: #fffdf7;
  background: var(--forest);
}

.band-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.feature-band .eyebrow {
  color: var(--wheat);
}

.band-copy p,
.band-copy blockquote {
  color: rgba(255, 253, 247, 0.82);
}

.band-copy blockquote {
  margin: 28px 0 0;
  padding: 20px 0 20px 22px;
  border-left: 4px solid var(--wheat);
  font-size: 1.08rem;
  line-height: 1.75;
}

.tea-section {
  padding: 92px 0;
  color: #fffdf7;
  background: #283b2e;
}

.tea-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.tea-copy .eyebrow {
  color: var(--wheat);
}

.tea-copy p {
  color: rgba(255, 253, 247, 0.8);
}

.tea-tags span {
  color: #fffdf7;
  background: rgba(255, 253, 247, 0.1);
  border-color: rgba(255, 253, 247, 0.18);
}

.media-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.media-toolbar button,
.media-toolbar select {
  min-height: 42px;
  padding: 0 16px;
  color: var(--forest);
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.media-toolbar button {
  cursor: pointer;
}

.media-toolbar button.is-active {
  color: #fffdf7;
  background: var(--forest);
  border-color: var(--forest);
}

.media-toolbar select {
  min-width: 160px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.media-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 22px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.media-card {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(31, 39, 34, 0.08);
}

.media-button {
  display: grid;
  width: 100%;
  padding: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.media-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #dfe4d3;
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.media-button:hover .media-thumb img,
.media-button:focus-visible .media-thumb img {
  transform: scale(1.04);
}

.media-button:focus-visible {
  outline: 3px solid rgba(79, 138, 85, 0.28);
}

.media-type {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 9px;
  color: #fffdf7;
  background: rgba(31, 39, 34, 0.72);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 900;
}

.media-play {
  position: absolute;
  inset: 0;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin: auto;
  color: #fffdf7;
  background: rgba(31, 39, 34, 0.68);
  border: 1px solid rgba(255, 253, 247, 0.28);
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
}

.media-info {
  min-height: 132px;
  padding: 18px;
}

.media-section-label {
  display: block;
  margin: -4px 0 8px;
  color: var(--clay);
  font-size: 0.8rem;
  font-weight: 900;
}

.media-info p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.68;
}

.media-card.is-hidden {
  display: none;
}

.media-load {
  display: none;
  justify-content: center;
  margin-top: 22px;
}

.media-load.is-visible {
  display: flex;
}

.media-load .secondary-action {
  color: var(--forest);
  background: #fffdf7;
  border-color: var(--line);
}

.media-load .secondary-action:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.module-cover-image {
  object-position: center;
}

.module-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.module-media-card {
  min-width: 0;
}

.module-media-button {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 8px;
  padding: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.module-media-thumb {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e7e0cf;
  border-radius: 8px;
}

.module-media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.module-media-button:hover .module-media-thumb img,
.module-media-button:focus-visible .module-media-thumb img {
  transform: scale(1.04);
}

.module-media-info {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.module-media-info h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 0.95rem;
}

.module-media-info p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.lightbox {
  width: min(1040px, calc(100% - 28px));
  padding: 0;
  overflow: hidden;
  background: #111713;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

.lightbox::backdrop {
  background: rgba(9, 18, 13, 0.78);
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fffdf7;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.4rem;
}

.lightbox-body img,
.lightbox-body video {
  width: 100%;
  max-height: 78svh;
  object-fit: contain;
  background: #111713;
}

.lightbox-caption {
  padding: 18px 20px 22px;
  color: #fffdf7;
}

.lightbox-caption p {
  margin-bottom: 0;
  color: rgba(255, 253, 247, 0.74);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 30px clamp(18px, 5vw, 72px);
  color: #fffdf7;
  background: #16271e;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer span {
  margin-top: 5px;
  color: rgba(255, 253, 247, 0.66);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .reveal,
  .media-thumb img {
    transition: none;
  }
}

@media (max-width: 980px) {
  .nav-toggle {
    display: grid;
  }

  .main-nav {
    position: fixed;
    inset: 74px 14px auto 14px;
    display: none;
    grid-template-columns: 1fr 1fr;
    padding: 14px;
    background: rgba(22, 39, 30, 0.96);
    border: 1px solid rgba(255, 253, 247, 0.14);
    border-radius: 8px;
  }

  body.nav-open .main-nav {
    display: grid;
  }

  .hero {
    min-height: 880px;
    padding-bottom: 220px;
  }

  h1 {
    font-size: 5.25rem;
  }

  h2 {
    font-size: 2.65rem;
  }

  .hero-copy {
    font-size: 1.08rem;
  }

  .hero-panel {
    left: 18px;
    right: 18px;
    grid-template-columns: 1fr;
    width: auto;
  }

  .hero-panel div {
    min-height: 82px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 253, 247, 0.14);
  }

  .hero-panel div:last-child {
    border-bottom: 0;
  }

  .intro-layout,
  .story-section,
  .band-layout,
  .tea-layout,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .story-reverse .story-media,
  .story-reverse .story-copy {
    order: initial;
  }

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

  .photo-ribbon {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 68px;
    padding: 12px 14px;
  }

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

  .brand small {
    font-size: 0.72rem;
  }

  .main-nav {
    inset: 68px 14px auto 14px;
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 820px;
    padding: 104px 16px 230px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(14, 38, 26, 0.94) 0%, rgba(14, 38, 26, 0.76) 58%, rgba(14, 38, 26, 0.28) 100%),
      linear-gradient(0deg, rgba(245, 243, 236, 0.98) 0%, rgba(245, 243, 236, 0) 26%);
  }

  h1 {
    font-size: 3.55rem;
  }

  h2 {
    font-size: 2.12rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .team-card strong {
    font-size: 1.85rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action,
  .secondary-action,
  .inline-link {
    width: 100%;
  }

  .intro,
  .chapter-map,
  .story-section,
  .feature-band,
  .tea-section,
  .media-section {
    padding: 68px 0;
  }

  .section {
    width: min(100% - 28px, 1180px);
  }

  .map-grid,
  .media-grid,
  .module-media-grid,
  .photo-ribbon {
    grid-template-columns: 1fr;
  }

  .photo-ribbon img {
    min-height: 220px;
  }

  .story-media::after {
    right: -8px;
    bottom: -8px;
  }

  .timeline article {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
