/* pkz 2026-09-19 */

:root {
  color-scheme: light;
  --ink: #10202a;
  --muted: #5d6e75;
  --line: #d8e3e1;
  --paper: #fbfdfc;
  --mist: #eef7f4;
  --teal: #007c78;
  --teal-deep: #005c5b;
  --coral: #ee6b57;
  --gold: #c59b35;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(16, 32, 42, 0.14);
  --soft-shadow: 0 18px 50px rgba(16, 32, 42, 0.1);
  --glass: rgba(255, 255, 255, 0.58);
  --glass-strong: rgba(255, 255, 255, 0.78);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  padding-bottom: 88px; /* keeps the FAB from covering footer text */
  background:
    radial-gradient(circle at 12% 4%, rgba(0, 124, 120, 0.1), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(238, 107, 87, 0.09), transparent 32%),
    var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

/* ============================ HEADER ============================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 12px clamp(12px, 3vw, 36px) 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 12px clamp(14px, 3vw, 24px);
  background: rgba(6, 29, 33, 0.22);
  color: var(--white);
  backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 18px 48px rgba(5, 25, 28, 0.16);
}

.brand,
.nav-links,
.language-switcher {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  background:
    url("./assets/logo/china-opc-ai-mark-256.png") center / cover no-repeat,
    rgba(255, 255, 255, 0.24);
  overflow: hidden;
  backdrop-filter: blur(12px);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 10px 24px rgba(5, 25, 28, 0.18);
}

.nav-links {
  gap: clamp(10px, 2vw, 26px);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a {
  opacity: 0.88;
  border-radius: 8px;
  padding: 7px 9px;
  transition:
    background 180ms ease,
    opacity 180ms ease;
}

.nav-links a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.13);
}

.nav-contact {
  background: rgba(238, 107, 87, 0.94);
  color: var(--white);
  opacity: 1;
  box-shadow: 0 10px 24px rgba(238, 107, 87, 0.22);
}

.nav-links .nav-contact {
  padding-inline: 20px;
}

.nav-links .nav-contact:hover {
  background: var(--coral);
}

.language-switcher {
  gap: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 850;
}

.language-switcher select {
  width: auto;
  min-width: 96px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 8px;
  padding: 8px 34px 8px 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.16)),
    rgba(255, 255, 255, 0.14);
  color: var(--white);
  font: inherit;
  font-weight: 900;
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 10px 28px rgba(5, 25, 28, 0.12);
  backdrop-filter: blur(16px) saturate(150%);
}

.language-switcher option {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Hidden by default — the ≤900px media query below turns it on for
   mobile/tablet, where .nav-links becomes a dropdown instead of an
   inline row. */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================ HERO ============================ */

.hero {
  position: relative;
  min-height: 94svh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 96px clamp(18px, 6vw, 72px) 32px;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 25, 28, 0.86) 0%, rgba(5, 25, 28, 0.66) 38%, rgba(5, 25, 28, 0.16) 72%),
    linear-gradient(180deg, rgba(5, 25, 28, 0.12) 0%, rgba(5, 25, 28, 0.42) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  color: var(--white);
}

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

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

h1 {
  max-width: 840px;
  margin-bottom: 22px;
  margin-right: 30%;
  font-size: 4.85rem;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 3.4rem;
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.18rem;
}

.hero-note {
  max-width: 650px;
  margin-bottom: 24px;
  border-left: 4px solid var(--gold);
  padding: 12px 0 12px 16px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 13px 20px;
  font-weight: 850;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

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

.button-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 16px 34px rgba(238, 107, 87, 0.26);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  backdrop-filter: blur(16px) saturate(150%);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(680px, 100%);
  margin: 0;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  overflow: hidden;
}

.hero-stats div {
  padding: 14px 16px;
  background: rgba(4, 31, 35, 0.62);
  backdrop-filter: blur(16px) saturate(145%);
}

.hero-stats dt {
  color: var(--gold);
  font-size: 1.35rem;
  font-weight: 950;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.9rem;
}

/* ============================ SHARED SECTIONS ============================ */

.audience,
.reasons,
.work,
.place,
.policy,
.fields,
.contact {
  padding: clamp(54px, 8vw, 104px) clamp(18px, 6vw, 72px);
}

section[id] {
  scroll-margin-top: 126px;
}

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

.section-heading .section-kicker {
  grid-column: 1 / -1;
  margin-bottom: -12px;
}

.section-heading > p:not(.section-kicker) {
  align-self: end;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

/* ============================ AUDIENCE ============================ */

.audience {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: start;
  background: var(--paper);
}

.audience-intro h2 {
  margin-bottom: 20px;
}

.audience-intro > p:last-child {
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 46ch;
}

.audience-card {
  border: 1px solid rgba(0, 124, 120, 0.16);
  border-radius: 8px;
  padding: clamp(22px, 3vw, 32px);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px) saturate(140%);
}

.audience-card h3 {
  margin-bottom: 18px;
  font-size: 1.22rem;
  color: var(--teal-deep);
}

.audience-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.audience-list li {
  position: relative;
  padding: 14px 16px 14px 34px;
  border: 1px solid rgba(0, 124, 120, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  line-height: 1.5;
}

.audience-list li::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
}

.audience-list em {
  font-style: normal;
  font-weight: 800;
  color: var(--ink);
}

/* ============================ REASONS ============================ */

.reasons {
  background: var(--mist);
}

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

.reason-card {
  min-height: 245px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background: var(--glass-strong);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px) saturate(140%);
}

.reason-card span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 34px;
  background: var(--teal-deep);
  color: var(--white);
  font-weight: 950;
  border-radius: 8px;
}

.reason-card p {
  color: var(--muted);
}

/* ============================ WORK ============================ */

.work {
  background: var(--paper);
}

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

.work-card {
  min-height: 260px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 8px;
  background: var(--glass);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px) saturate(140%);
  display: flex;
  flex-direction: column;
}

.work-num {
  display: block;
  margin-bottom: 28px;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.work-card h3 {
  margin-bottom: 12px;
}

.work-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.work-note {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-style: italic;
  max-width: 62ch;
}

/* ============================ PLACE ============================ */

.place {
  background:
    linear-gradient(180deg, rgba(238, 247, 244, 0.9), rgba(251, 253, 252, 0.96)),
    var(--paper);
}

.place .section-heading {
  align-items: end;
  grid-template-columns: minmax(0, 0.68fr) minmax(300px, 0.82fr);
  margin-bottom: clamp(20px, 3vw, 28px);
}

.place .section-heading h2 {
  max-width: 760px;
  font-size: clamp(2.45rem, 4.4vw, 4.1rem);
  line-height: 1;
}

.sanya-map-card {
  display: grid;
  width: min(1180px, 100%);
  grid-template-columns: minmax(0, 1.16fr) minmax(300px, 0.74fr);
  gap: clamp(18px, 3vw, 30px);
  align-items: start;
  margin-inline: auto;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  padding: clamp(14px, 2.4vw, 22px);
  background: rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(150%);
}

.sanya-map {
  position: relative;
  width: 100%;
  min-width: 0;
  height: clamp(420px, 32vw, 520px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(0, 124, 120, 0.1), rgba(238, 107, 87, 0.08)),
    linear-gradient(180deg, #e7f5f3, #d9eeed);
}

.osm-map {
  background:
    linear-gradient(180deg, rgba(228, 244, 242, 0.7), rgba(241, 250, 247, 0.9)),
    #e5f2f0;
}

.leaflet-map,
.osm-map iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.leaflet-map {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.osm-map.is-leaflet-ready .leaflet-map {
  opacity: 1;
  pointer-events: auto;
}

.osm-map.is-leaflet-ready iframe {
  display: none;
}

.osm-map.is-leaflet-ready .map-marker-layer {
  display: none;
}

.osm-map.is-leaflet-ready .map-open-link,
.osm-map.is-leaflet-ready .map-note {
  display: none;
}

.osm-map iframe {
  z-index: 0;
  filter: saturate(0.88) contrast(0.98);
}

.leaflet-container {
  width: 100%;
  height: 100%;
  background: #d7eeee;
  color: var(--ink);
  font-family: inherit;
}

.leaflet-control-zoom {
  overflow: hidden;
  border: 0 !important;
  border-radius: 8px !important;
  box-shadow: 0 12px 28px rgba(16, 32, 42, 0.16) !important;
}

.leaflet-control-zoom a {
  width: 36px !important;
  height: 36px !important;
  border: 0 !important;
  color: var(--teal-deep) !important;
  font: 900 1.45rem/36px Inter, system-ui, sans-serif !important;
}

.leaflet-control-attribution {
  border-radius: 8px 0 0;
  background: rgba(255, 255, 255, 0.82) !important;
  color: var(--muted) !important;
  font: 800 0.68rem/1.25 Inter, system-ui, sans-serif !important;
  backdrop-filter: blur(12px) saturate(140%);
}

.leaflet-control-attribution a {
  color: var(--teal-deep) !important;
}

.leaflet-pill-icon {
  width: auto !important;
  height: auto !important;
  border: 0;
  background: transparent;
}

.map-marker-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.map-overlay-marker {
  position: absolute;
  z-index: 2;
  border: 0;
  padding: 0;
  background: transparent;
  font: inherit;
  pointer-events: auto;
  cursor: pointer;
}

.map-overlay-marker-yazhou {
  top: 50%;
  left: 10%;
}

.map-overlay-marker-park {
  top: 56%;
  left: 47%;
}

.map-overlay-marker-city {
  top: 34%;
  left: 66%;
}

.map-overlay-marker,
.leaflet-location-marker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  padding: 7px 12px 7px 8px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--teal-deep);
  white-space: nowrap;
  box-shadow: 0 14px 30px rgba(16, 32, 42, 0.18);
  backdrop-filter: blur(14px) saturate(150%);
  transform: translateY(-4px);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.map-overlay-marker span,
.leaflet-location-marker span {
  display: block;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border: 3px solid rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 7px currentColor;
  opacity: 0.84;
}

.map-overlay-marker strong,
.leaflet-location-marker strong {
  display: block;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1;
}

.map-overlay-marker.is-active,
.leaflet-location-marker.is-active {
  border-color: rgba(238, 107, 87, 0.38);
  color: var(--coral);
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0 0 7px rgba(238, 107, 87, 0.1),
    0 18px 34px rgba(16, 32, 42, 0.2);
  transform: translateY(-7px);
}

.map-open-link {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
  border: 1px solid rgba(0, 124, 120, 0.14);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--teal-deep);
  font-size: 0.76rem;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(16, 32, 42, 0.12);
  backdrop-filter: blur(14px) saturate(150%);
}

.map-open-link:hover {
  background: var(--teal-deep);
  color: var(--white);
}

.map-note {
  position: absolute;
  right: 14px;
  bottom: 12px;
  left: 14px;
  z-index: 2;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  backdrop-filter: blur(12px) saturate(140%);
}

.map-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: clamp(420px, 32vw, 520px);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  padding: clamp(20px, 2.6vw, 26px);
  background: rgba(255, 255, 255, 0.68);
}

.map-pill {
  width: fit-content;
  margin: 0 0 20px;
  border: 1px solid rgba(0, 124, 120, 0.16);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(0, 124, 120, 0.08);
  color: var(--teal-deep);
  font-size: 0.82rem;
  font-weight: 900;
}

.map-info h3 {
  max-width: 420px;
  min-height: 2.18em;
  margin-bottom: 14px;
  font-size: clamp(1.45rem, 2.3vw, 2.05rem);
  line-height: 1.06;
}

.map-info p:not(.map-pill) {
  min-height: 5.9em;
  color: var(--muted);
  line-height: 1.42;
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 18px;
}

.map-actions button {
  border: 1px solid rgba(0, 124, 120, 0.13);
  border-radius: 8px;
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--teal-deep);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 900;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.map-actions button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(16, 32, 42, 0.08);
}

.map-actions button.is-active {
  background: var(--teal-deep);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(0, 92, 91, 0.2);
}

.map-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: auto 0 0;
}

.map-facts div {
  border: 1px solid rgba(0, 124, 120, 0.12);
  border-radius: 8px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.66);
}

.map-facts dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.map-facts dd {
  margin: 0;
  color: var(--ink);
  font-weight: 850;
}

/* ---------- place: photos ---------- */

.place-photos {
  margin-top: clamp(36px, 5vw, 64px);
}

.place-photos-title {
  margin-bottom: 20px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.05;
}

.gallery-controls {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -6px 0 18px;
}

.gallery-button {
  min-width: 92px;
  border: 1px solid rgba(0, 124, 120, 0.16);
  border-radius: 8px;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--teal-deep);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  backdrop-filter: blur(16px) saturate(140%);
}

.gallery-button:disabled {
  cursor: default;
  opacity: 0.45;
}

.gallery-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 14px;
}

.gallery-progress {
  display: none;
  width: min(180px, 44vw);
  height: 6px;
  margin: 14px auto 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 124, 120, 0.14);
}

.gallery-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
  transition: width 180ms ease;
}

.photo-card {
  position: relative;
  min-height: 230px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  background: var(--ink);
  box-shadow: var(--soft-shadow);
}

.photo-card-wide {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 474px;
}

.photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-card-wide img {
  aspect-ratio: 16 / 10;
}

.photo-card figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  max-width: calc(100% - 28px);
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(5, 25, 28, 0.58);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 850;
  backdrop-filter: blur(16px) saturate(145%);
}

.source-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.source-strip a {
  border: 1px solid rgba(0, 124, 120, 0.12);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--teal-deep);
  font-size: 0.86rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

/* ============================ POLICY ============================ */

.policy {
  background: var(--paper);
}

.policy-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.74fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 124, 120, 0.12), rgba(238, 107, 87, 0.08)),
    rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(145%);
}

.policy-panel .section-kicker {
  margin-bottom: 18px;
}

.policy-panel h2 {
  max-width: 780px;
  margin-bottom: 28px;
  font-size: 2.75rem;
  line-height: 1.08;
}

.policy-panel p {
  max-width: 850px;
  color: var(--muted);
  font-size: 1.06rem;
}

.policy-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.policy-list li {
  position: relative;
  padding: 17px 17px 17px 42px;
  border: 1px solid rgba(0, 124, 120, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  font-weight: 750;
}

.policy-list li::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 20px;
  width: 10px;
  height: 10px;
  background: var(--teal);
}

.policy-note {
  max-width: 820px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ============================ FIELDS ============================ */

.fields {
  overflow: hidden;
  background: var(--teal-deep);
  color: var(--white);
}

.fields .section-kicker {
  color: var(--gold);
}

.field-track {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.field-track span {
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 820;
}

/* ============================ CONTACT ============================ */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(300px, 0.6fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: start;
  background: var(--paper);
}

.contact h2 {
  margin-bottom: 24px;
}

.contact p {
  color: var(--muted);
  font-size: 1.06rem;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(145%);
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 850;
}

input,
textarea,
.contact-form select {
  width: 100%;
  border: 1px solid rgba(0, 124, 120, 0.12);
  border-radius: 8px;
  background: rgba(247, 251, 250, 0.82);
  color: var(--ink);
  font: inherit;
  padding: 13px 14px;
  outline: none;
}

.contact-form select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--teal-deep) 50%) calc(100% - 19px) 50% / 7px 7px no-repeat,
    linear-gradient(135deg, var(--teal-deep) 50%, transparent 50%) calc(100% - 14px) 50% / 7px 7px no-repeat,
    rgba(247, 251, 250, 0.82);
  padding-right: 42px;
}

textarea {
  min-height: 118px;
  resize: vertical;
}

input:focus,
textarea:focus,
.contact-form select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 124, 120, 0.12);
}

.contact .button {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.contact .button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

/* .form-honeypot / .captcha-field now live in quiz.css, loaded after this file on every page
   that embeds the quiz — kept there so the standalone quiz.html demo is styled too. */

.form-status {
  min-height: 22px;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.form-status.is-success {
  color: var(--teal-deep);
}

.form-status.is-error {
  color: #a53a2d;
}

.direct-contact {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.direct-contact a {
  display: flex;
  min-height: 96px;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px) saturate(140%);
}

.direct-contact strong {
  display: block;
  color: var(--teal-deep);
  font-size: 0.95rem;
  font-weight: 950;
}

.direct-contact small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.direct-contact small span {
  display: inline;
}

.contact-logo {
  display: block;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  filter: drop-shadow(0 8px 16px rgba(16, 32, 42, 0.12));
}

.contact-logo-email {
  filter: drop-shadow(0 8px 16px rgba(0, 92, 91, 0.16));
}

.contact-text {
  display: block;
  min-width: 0;
}

.contact-logo-button {
  justify-content: center;
}

/* ============================ FOOTER ============================ */

.site-footer {
  padding: 24px clamp(18px, 6vw, 72px) 34px;
  background: var(--paper);
  color: var(--muted);
}

.site-footer p {
  max-width: 1120px;
  margin: 0 auto;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.55;
}

/* ============================ FAB ============================ */

.fab {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 12px 20px 12px 16px;
  background: rgba(11, 39, 44, 0.92);
  color: var(--white);
  font-weight: 850;
  font-size: 0.9rem;
  line-height: 1;
  box-shadow:
    0 18px 44px rgba(5, 25, 28, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(160%);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.fab:hover {
  transform: translateY(-2px);
  background: rgba(8, 32, 37, 0.96);
  box-shadow:
    0 22px 52px rgba(5, 25, 28, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.fab-dot {
  position: relative;
  display: block;
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(238, 107, 87, 0.2);
}

.fab-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(238, 107, 87, 0.55);
  animation: fab-pulse 2200ms ease-out infinite;
}

.fab-label {
  white-space: nowrap;
}

.fab-time {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  padding-left: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
}

@keyframes fab-pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.85;
  }
  70% {
    transform: scale(1.9);
    opacity: 0;
  }
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

/* ============================ RESPONSIVE ============================ */

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

@media (max-width: 900px) {
  .site-header {
    /* was position: absolute (scrolls away with the page) — kept fixed
       (inherited from the base rule) so the nav stays reachable while
       scrolling, matching desktop. */
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(6, 29, 33, 0.94);
    backdrop-filter: blur(22px) saturate(160%);
    box-shadow: 0 24px 48px rgba(5, 25, 28, 0.35);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 14px;
    font-size: 1.05rem;
    text-align: center;
  }

  .nav-links .nav-contact {
    margin-top: 4px;
  }

  .language-switcher span {
    display: none;
  }

  .language-switcher select {
    min-width: 94px;
    padding-block: 9px;
  }

  .brand {
    min-width: 0;
  }

  .brand > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero {
    min-height: 94svh;
    align-items: end;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(5, 25, 28, 0.22) 0%, rgba(5, 25, 28, 0.86) 58%, rgba(5, 25, 28, 0.92) 100%),
      linear-gradient(90deg, rgba(5, 25, 28, 0.48), rgba(5, 25, 28, 0.2));
  }

  .audience,
  .section-heading,
  .policy-panel,
  .contact,
  .sanya-map-card,
  .direct-contact {
    grid-template-columns: 1fr;
  }

  .place .section-heading {
    grid-template-columns: 1fr;
  }

  .place .section-heading h2 {
    max-width: 780px;
    font-size: clamp(2.35rem, 6vw, 3.35rem);
  }

  .reason-grid,
  .work-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-controls {
    display: flex;
  }

  .sanya-map {
    height: clamp(320px, 54vw, 420px);
  }

  .map-info {
    min-height: 0;
    padding: 24px;
  }

  .map-info h3,
  .map-info p:not(.map-pill) {
    min-height: 0;
  }

  .photo-grid {
    display: flex;
    gap: 14px;
    margin-inline: calc(clamp(18px, 6vw, 72px) * -1);
    padding: 0 clamp(18px, 6vw, 72px) 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: clamp(18px, 6vw, 72px);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .photo-grid::-webkit-scrollbar {
    display: none;
  }

  .gallery-progress {
    display: block;
  }

  .photo-card {
    flex: 0 0 min(78vw, 520px);
    scroll-snap-align: center;
  }

  .photo-card-wide {
    min-height: 360px;
  }

  .direct-contact a,
  .contact-logo-button {
    justify-content: flex-start;
  }

  .direct-contact a:first-child small span {
    display: block;
  }

  .site-footer p {
    margin: 0;
  }

  h1 {
    font-size: 4.4rem;
  }

  h2 {
    font-size: 2.6rem;
  }

  .policy-panel h2 {
    font-size: 2.25rem;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: 92svh;
    padding-top: 92px;
    padding-bottom: 32px;
  }

  h1 {
    font-size: 2.56rem;
    line-height: 1;
    margin-right: 0;
  }

  h2 {
    font-size: 2.12rem;
  }

  .policy-panel h2 {
    margin-bottom: 20px;
    font-size: 1.9rem;
    line-height: 1.12;
  }

  .hero-copy {
    margin-bottom: 14px;
    font-size: 1rem;
  }

  .hero-note {
    margin-bottom: 22px;
    font-size: 0.88rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .reason-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .photo-card,
  .photo-card-wide {
    flex-basis: 86vw;
    min-height: 240px;
  }

  .sanya-map-card {
    padding: 12px;
  }

  .sanya-map {
    height: 310px;
  }

  .place .section-heading {
    margin-bottom: 18px;
  }

  .place .section-heading h2 {
    font-size: 2.08rem;
    line-height: 1.06;
  }

  .place .section-heading > p:not(.section-kicker) {
    font-size: 0.98rem;
  }

  .map-info {
    padding: 20px;
  }

  .map-pill {
    margin-bottom: 14px;
  }

  .map-info h3 {
    font-size: 1.58rem;
    line-height: 1.08;
  }

  .map-actions {
    gap: 7px;
    margin: 16px 0 18px;
  }

  .map-actions button {
    flex: 1 1 120px;
    padding: 10px;
    font-size: 0.78rem;
  }

  .map-overlay-marker,
  .leaflet-location-marker {
    gap: 5px;
    padding: 6px 8px 6px 7px;
  }

  .map-overlay-marker span,
  .leaflet-location-marker span {
    width: 9px;
    height: 9px;
    flex-basis: 9px;
    border-width: 2px;
    box-shadow: 0 0 0 5px currentColor;
  }

  .map-overlay-marker strong,
  .leaflet-location-marker strong {
    font-size: 0.64rem;
  }

  .map-overlay-marker-yazhou {
    top: 50%;
    left: 4%;
  }

  .map-overlay-marker-park {
    top: 57%;
    left: 43%;
  }

  .map-overlay-marker-city {
    top: 34%;
    left: 61%;
  }

  .map-note {
    font-size: 0.62rem;
  }

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

  .photo-card img,
  .photo-card-wide img {
    aspect-ratio: 4 / 3;
  }

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

  .hero-stats div,
  .reason-card,
  .work-card,
  .policy-list li,
  .contact-form {
    padding: 22px;
  }

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

  .reason-card span {
    margin-bottom: 22px;
  }

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

  .work-num {
    margin-bottom: 18px;
  }

  .hero-stats div {
    padding: 12px 10px;
  }

  .hero-stats dt {
    font-size: 1.02rem;
  }

  .hero-stats dd {
    font-size: 0.72rem;
    line-height: 1.25;
  }

  /* FAB: drop the "2-min check" tail on narrow screens */
  .fab {
    padding: 12px 16px 12px 14px;
    font-size: 0.84rem;
  }

  .fab-time {
    display: none;
  }

  body {
    padding-bottom: 80px;
  }
}

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

  .fab-dot::after {
    animation: none;
  }
}

/* ============================ SECTION BANNER IMAGES ============================ */

.section-banner {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 32px;
  border: 1px solid rgba(0, 124, 120, 0.14);
}

.section-banner img {
  display: block;
  width: 100%;
  height: clamp(180px, 26vw, 320px);
  object-fit: cover;
}

/* ============================ SCROLL REVEAL ============================ */

html.js-reveal .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

html.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================ CROSS-PAGE VIEW TRANSITIONS ============================ */

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 220ms;
    animation-timing-function: ease;
  }
}