:root {
  --ink: #182927;
  --muted: #5f706d;
  --paper: #fffaf0;
  --milk: #fffdf7;
  --mint: #d8f4e8;
  --cyan: #d9f7f8;
  --honey: #f4c86e;
  --leaf: #457d6c;
  --line: rgba(24, 41, 39, 0.14);
  --shadow: 0 24px 80px rgba(55, 84, 77, 0.16);
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(216, 244, 232, 0.74), transparent 34rem),
    radial-gradient(circle at 86% 20%, rgba(217, 247, 248, 0.72), transparent 30rem),
    linear-gradient(180deg, #fffdf6 0%, #f7fbf3 46%, #ecf8f0 100%);
  overflow-x: clip;
}

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

img {
  max-width: 100%;
}

.grain-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.42;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(1120px, calc(100% - 28px));
  min-height: 58px;
  padding: 8px 10px 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.74);
  box-shadow: 0 16px 50px rgba(65, 90, 82, 0.12);
  backdrop-filter: blur(22px) saturate(145%);
  transform: translateX(-50%);
}

.brand,
.site-nav,
.hero-actions,
.language-toggle,
.signal-card {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 760;
  letter-spacing: 0;
  min-width: 0;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, #ffffff 0 20%, transparent 22%),
    conic-gradient(from 120deg, var(--mint), var(--honey), var(--cyan), var(--mint));
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.62);
}

.site-nav {
  justify-content: center;
  gap: clamp(8px, 2vw, 22px);
  font-size: 0.92rem;
  color: rgba(24, 41, 39, 0.72);
  min-width: 0;
}

.site-nav a {
  padding: 9px 10px;
  border-radius: 999px;
  transition:
    background 180ms ease,
    color 180ms ease;
}

.site-nav a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.language-toggle {
  justify-content: center;
  width: 48px;
  height: 38px;
  border: 1px solid rgba(69, 125, 108, 0.2);
  border-radius: 999px;
  color: var(--leaf);
  background: rgba(255, 255, 255, 0.76);
  font: inherit;
  font-weight: 760;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.language-toggle:hover {
  box-shadow: 0 10px 26px rgba(69, 125, 108, 0.16);
  transform: translateY(-1px);
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  align-items: center;
  min-height: 100svh;
  padding: 118px max(22px, calc((100% - 1120px) / 2)) 74px;
  gap: clamp(28px, 5vw, 70px);
  overflow: hidden;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 13vh;
  min-height: 58px;
  background: linear-gradient(180deg, transparent, rgba(236, 248, 240, 0.92));
  content: "";
}

.hero-media {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: clamp(360px, 58vw, 650px);
  border-radius: 42% 58% 48% 52% / 48% 38% 62% 52%;
  box-shadow: var(--shadow);
  isolation: isolate;
  contain: paint;
  overflow: hidden;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.18), transparent 36%, rgba(216, 244, 232, 0.2));
  content: "";
}

.hero-media img {
  position: absolute;
  inset: -3%;
  width: 106%;
  height: 106%;
  object-fit: cover;
  object-position: 42% center;
  display: block;
  transform: translate3d(calc(var(--mx, 0px) * 0.35), calc(var(--my, 0px) * 0.35), 0);
  transition: transform 260ms ease-out;
}

.hero-copy {
  width: 100%;
  min-width: 0;
  max-width: 580px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--leaf);
  font-size: 0.82rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(4.05rem, 10vw, 9rem);
  line-height: 0.82;
  letter-spacing: 0;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4.65rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  letter-spacing: 0;
}

.hero-text,
.intro p,
.moment-list p,
.texture-item p {
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.16rem);
  line-height: 1.85;
}

.hero-text {
  max-width: 37rem;
  margin-bottom: 30px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.primary-link,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 19px;
  border-radius: 999px;
  font-weight: 760;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.primary-link {
  color: #fffdf7;
  background: #1f5b51;
  box-shadow: 0 16px 38px rgba(31, 91, 81, 0.2);
}

.ghost-link {
  border: 1px solid rgba(31, 91, 81, 0.18);
  color: #235e55;
  background: rgba(255, 255, 255, 0.56);
}

.primary-link:hover,
.ghost-link:hover {
  transform: translateY(-2px);
}

.signal-card {
  position: absolute;
  right: max(22px, calc((100% - 1120px) / 2));
  bottom: 68px;
  z-index: 2;
  gap: 10px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  color: var(--leaf);
  background: rgba(255, 253, 247, 0.78);
  box-shadow: 0 16px 44px rgba(61, 93, 82, 0.13);
  backdrop-filter: blur(18px);
  font-size: 0.92rem;
  font-weight: 740;
}

.signal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--honey);
  box-shadow: 0 0 0 7px rgba(244, 200, 110, 0.2);
  animation: pulse 2.6s ease-in-out infinite;
}

.section {
  width: min(1120px, calc(100% - 44px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 128px) 0;
}

.intro {
  max-width: 850px;
  text-align: center;
}

.intro p {
  margin-right: auto;
  margin-left: auto;
  max-width: 720px;
}

.texture {
  display: grid;
  gap: 30px;
}

.section-heading {
  max-width: 720px;
}

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

.texture-item {
  min-height: 284px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.7), rgba(255, 253, 247, 0.38)),
    rgba(255, 255, 255, 0.36);
  box-shadow: 0 22px 60px rgba(64, 99, 90, 0.1);
}

.texture-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 36px;
  border-radius: 50%;
  color: var(--leaf);
  background: linear-gradient(135deg, var(--mint), rgba(255, 255, 255, 0.85));
  font-size: 0.78rem;
  font-weight: 820;
}

.moments {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(230px, 0.48fr) minmax(0, 0.78fr);
  align-items: center;
  gap: clamp(24px, 5vw, 54px);
}

.moments-copy {
  max-width: 430px;
}

.orbital {
  position: relative;
  aspect-ratio: 1;
  width: min(100%, 340px);
  margin: 0 auto;
  border: 1px solid rgba(69, 125, 108, 0.18);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.94) 0 20%, transparent 21%),
    radial-gradient(circle at 50% 50%, rgba(216, 244, 232, 0.62), rgba(255, 255, 255, 0.18) 58%, transparent 59%);
  animation: float 7s ease-in-out infinite;
}

.orbital span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  color: #245f55;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 32px rgba(52, 91, 81, 0.12);
  font-weight: 780;
  transform:
    rotate(calc(var(--i) * 90deg))
    translateX(clamp(82px, 36%, 112px))
    rotate(calc(var(--i) * -90deg));
}

.moment-list {
  display: grid;
  gap: 14px;
}

.moment-list p {
  margin: 0;
  padding: 18px 0 18px 20px;
  border-left: 1px solid var(--line);
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 38px 20px 44px;
  color: rgba(24, 41, 39, 0.62);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-weight: 760;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  line-height: 1.5;
  transition: color 180ms ease;
}

.footer-links a:hover {
  color: var(--leaf);
}

.police-record img {
  width: 18px;
  height: 20px;
  flex: 0 0 auto;
}

.reveal {
  opacity: 1;
  transform: none;
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

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

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.25);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
    border-radius: 24px;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    padding-top: 4px;
    overflow-x: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 144px;
  }

  .hero-media {
    order: -1;
    min-height: clamp(300px, 78vw, 520px);
    border-radius: 28px;
  }

  .signal-card {
    position: static;
    justify-self: start;
    margin-top: 0;
    margin-left: 18px;
  }

  .texture-grid,
  .moments {
    grid-template-columns: 1fr;
  }

  .orbital {
    width: min(74vw, 300px);
  }

  .orbital span {
    width: 56px;
    height: 56px;
    transform:
      rotate(calc(var(--i) * 90deg))
      translateX(clamp(78px, 27vw, 108px))
      rotate(calc(var(--i) * -90deg));
  }
}

@media (max-width: 560px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    padding: 8px 9px 10px 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand span:last-child {
    overflow-wrap: anywhere;
  }

  .site-nav {
    width: 100%;
    gap: 3px;
    font-size: 0.84rem;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    flex: 0 0 auto;
    padding: 8px 9px;
  }

  .language-toggle {
    width: 44px;
    height: 36px;
  }

  .hero {
    padding-right: 16px;
    padding-left: 16px;
    gap: 22px;
  }

  .hero-media {
    min-height: clamp(260px, 72vw, 330px);
  }

  h1 {
    font-size: clamp(2.9rem, 15vw, 4rem);
    line-height: 0.9;
  }

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

  .primary-link,
  .ghost-link {
    width: 100%;
  }

  .section {
    width: calc(100% - 32px);
  }

  .texture-item {
    min-height: 238px;
  }

  .orbital {
    width: min(68vw, 260px);
  }

  .orbital span {
    width: 52px;
    height: 52px;
    font-size: 0.88rem;
    transform:
      rotate(calc(var(--i) * 90deg))
      translateX(clamp(70px, 24vw, 96px))
      rotate(calc(var(--i) * -90deg));
  }
}

@media (max-width: 360px) {
  .brand {
    gap: 8px;
    font-size: 0.92rem;
  }

  .brand-mark {
    width: 22px;
    height: 22px;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.62);
  }

  .site-nav {
    font-size: 0.8rem;
  }

  .site-nav a {
    padding-right: 8px;
    padding-left: 8px;
  }

  .hero {
    padding-right: 14px;
    padding-left: 14px;
  }

  h1 {
    font-size: clamp(2.65rem, 14.2vw, 3.2rem);
  }
}

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