:root {
  --ink: #111511;
  --ink-soft: #5a635a;
  --paper: #fafbf9;
  --paper-rgb: 250, 251, 249;
  --porcelain: #ffffff;
  --gold: #4d6d47;
  --gold-bright: #82a476;
  --champagne: #eaece9;
  --mist: #f1f3f1;
  --line: rgba(21, 21, 21, 0.12);
  --glass: rgba(255, 255, 255, 0.62);
  --glass-deep: rgba(255, 255, 255, 0.74);
  --shadow: 0 24px 80px rgba(28, 46, 30, 0.12);
  --header-height: 76px;
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #fff;
  overflow-x: hidden;
}

body::selection {
  color: #fff;
  background: var(--gold);
}

body.modal-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

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

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(115deg, transparent 0 38%, rgba(234, 236, 233, 0.42) 48%, transparent 58%);
  opacity: 0.55;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 14px clamp(18px, 4vw, 56px);
  color: var(--ink);
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.brand-mark,
.header-cta,
.nav-links a,
.button {
  min-height: 44px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.brand-sigil {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(28, 46, 30, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 18px rgba(28, 46, 30, 0.08);
}

.brand-sigil img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

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

.brand-mark small {
  margin-top: 3px;
  color: rgba(21, 21, 21, 0.48);
  font-size: 0.76rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2vw, 30px);
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  color: rgba(21, 21, 21, 0.56);
  font-size: 0.88rem;
  transition: color 180ms ease-out;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid rgba(28, 46, 30, 0.18);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  transition:
    transform 180ms ease-out,
    background 180ms ease-out;
}

.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 3px 0;
  border-radius: 999px;
  background: #000;
  transition:
    transform 300ms ease,
    opacity 300ms ease;
}

.mobile-menu-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 96px 28px 40px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.95);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(14px);
  transition:
    opacity 240ms ease,
    transform 240ms ease;
  transform: translateY(-8px);
}

.mobile-nav.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-nav a {
  width: fit-content;
  color: #000;
  font-size: clamp(2rem, 11vw, 4.6rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0;
}

.header-cta:hover,
.header-cta:focus-visible {
  transform: translateY(-1px);
  color: #fff;
  background: var(--ink);
}

.header-cta svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: calc(var(--header-height) + 50px) clamp(18px, 6vw, 88px) 44px;
  color: var(--ink);
  isolation: isolate;
  overflow: hidden;
}

.hero-media,
.hero-media img,
.hero-media video,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -3;
  overflow: hidden;
  background: #f8faf7;
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right bottom;
  filter: saturate(0.92) contrast(1.02) brightness(1.05);
  transform: scale(1.01);
}

.hero-scrim {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.88) 38%, rgba(255, 255, 255, 0.2) 100%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.08) 56%, rgba(255, 255, 255, 0.28));
}

.hero-content {
  width: min(740px, 100%);
  padding-bottom: 0;
  animation: heroIn 640ms ease both;
}

.eyebrow {
  margin: 0 0 16px;
  color: #77716a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
  letter-spacing: 0;
}

h1 {
  max-width: 12ch;
  min-height: 2.16em;
  font-size: clamp(3.4rem, 8.4vw, 7rem);
  line-height: 1.08;
  text-wrap: balance;
  white-space: pre-wrap;
}

h2 {
  color: var(--ink);
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: 0.96;
  text-wrap: balance;
}

h3 {
  font-size: clamp(1.32rem, 2.2vw, 2rem);
  line-height: 1.08;
}

.hero-kicker {
  margin: 22px 0 0;
  color: rgba(17, 21, 17, 0.78);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.24;
}

.hero-copy {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(90, 99, 90, 0.92);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.72;
}

.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: middle;
  background: #000;
  animation: blink 1s step-end infinite;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition:
    transform 180ms ease-out,
    background 180ms ease-out,
    border-color 180ms ease-out,
    color 180ms ease-out;
}

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

.button-primary {
  color: #fff;
  background: #1c2e1e;
  box-shadow: 0 18px 42px rgba(28, 46, 30, 0.18);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #000;
}

.button-ghost {
  color: var(--ink);
  border-color: rgba(21, 21, 21, 0.3);
  background: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(18px);
}

.hero-glass {
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  bottom: 54px;
  width: min(360px, calc(100% - 36px));
  padding: 22px;
  border: 1px solid rgba(28, 46, 30, 0.12);
  border-radius: 8px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.34)),
    rgba(255, 255, 255, 0.48);
  box-shadow: 0 24px 80px rgba(28, 46, 30, 0.1);
  backdrop-filter: blur(28px) saturate(170%);
}

.hero-glass span,
.hero-glass small {
  display: block;
  color: rgba(21, 21, 21, 0.56);
  line-height: 1.55;
}

.hero-glass strong {
  display: block;
  margin: 8px 0;
  color: var(--ink);
  font-family: "Noto Serif SC", serif;
  font-size: 1.44rem;
}

.showcase,
.story,
.values,
.membership {
  padding: clamp(82px, 12vw, 150px) clamp(18px, 6vw, 88px);
}

#showcase,
#story,
#values,
#membership {
  scroll-margin-top: var(--header-height);
}

.section-heading {
  max-width: 940px;
  margin-bottom: clamp(42px, 7vw, 72px);
}

.section-heading p:not(.eyebrow),
.story-sticky p,
.membership-copy p {
  max-width: 680px;
  color: rgba(45, 41, 37, 0.74);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.78;
}

.section-heading.compact {
  margin-bottom: 34px;
}

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

.product {
  position: relative;
  min-height: 620px;
  display: grid;
  align-content: end;
  overflow: hidden;
  border-radius: 8px;
  background: #e8e4dc;
  box-shadow: 0 22px 56px rgba(21, 21, 21, 0.1);
}

.product img,
.product video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  transition: transform 500ms ease-out;
}

.product:hover img,
.product:focus-within img,
.product:hover video,
.product:focus-within video {
  transform: scale(1.045);
}

.product::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0, rgba(255, 255, 255, 0.24) 38%, rgba(255, 255, 255, 0.94)),
    linear-gradient(120deg, rgba(255, 255, 255, 0.74), transparent 44%);
}

.product-body {
  position: relative;
  z-index: 1;
  padding: 28px;
  color: var(--ink);
}

.product-category,
.product-meta {
  color: rgba(21, 21, 21, 0.54);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.product-body h3 {
  margin-top: 12px;
  color: var(--ink);
}

.product-body p {
  margin: 14px 0 22px;
  color: rgba(21, 21, 21, 0.62);
  line-height: 1.65;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(21, 21, 21, 0.12);
}

.product-price {
  color: var(--ink);
  font-size: 1.24rem;
  font-weight: 800;
}

.story {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: clamp(34px, 7vw, 96px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 247, 244, 0.98)),
    var(--paper);
  color: var(--ink);
}

.story h2,
.story h3 {
  color: var(--ink);
}

.story-sticky {
  position: sticky;
  top: calc(var(--header-height) + 34px);
  align-self: start;
}

.story-sticky p {
  color: rgba(21, 21, 21, 0.58);
}

.story-chapters {
  display: grid;
  gap: 18px;
}

.chapter {
  position: relative;
  display: grid;
  grid-template-columns: 106px 1fr;
  gap: clamp(18px, 3vw, 34px);
  min-height: 280px;
  padding: clamp(24px, 4vw, 44px);
  overflow: hidden;
  border: 1px solid rgba(21, 21, 21, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.38)),
    rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(22px) saturate(145%);
}

.chapter-number {
  color: rgba(185, 147, 63, 0.78);
  font-family: "Noto Serif SC", serif;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 0.88;
}

.chapter p {
  color: rgba(21, 21, 21, 0.6);
  line-height: 1.72;
}

.chapter ul {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.chapter li {
  color: rgba(21, 21, 21, 0.68);
}

.chapter li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--gold);
}

.value-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(12, 10, 9, 0.16);
  border-bottom: 1px solid rgba(12, 10, 9, 0.16);
}

.value-item {
  min-height: 260px;
  padding: 30px 26px;
  border-right: 1px solid rgba(12, 10, 9, 0.12);
}

.value-item:last-child {
  border-right: 0;
}

.value-item span {
  color: var(--gold);
  font-weight: 800;
}

.value-item h3 {
  margin-top: 46px;
  color: var(--ink);
}

.value-item p {
  color: rgba(45, 41, 37, 0.72);
  line-height: 1.68;
}

.membership {
  background: linear-gradient(135deg, #fafbfa, #ffffff);
  color: var(--ink);
}

.membership-copy {
  width: min(100%, 1100px);
  margin: 0 auto;
}

.service-picker {
  display: grid;
  grid-column: 1 / -1;
  gap: 0;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.service-picker legend {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0;
}

.service-picker p {
  margin: 0 0 22px;
  color: #738273;
  font-size: 0.98rem;
  line-height: 1.6;
}

.service-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.service-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid #f1f3f1;
  border-radius: 999px;
  color: #1c2e1e;
  background: #fff;
  cursor: pointer;
  font-weight: 750;
  transition:
    transform 180ms ease,
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.service-pill:hover,
.service-pill:focus-visible {
  transform: translateY(-1px);
  background: rgba(241, 243, 241, 0.58);
}

.service-pill.is-active {
  color: #fff;
  border-color: #1c2e1e;
  background: #1c2e1e;
  box-shadow: 0 12px 28px rgba(28, 46, 30, 0.12);
}

.service-pill svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: scale(0);
  transition: transform 220ms cubic-bezier(0.2, 1.4, 0.35, 1);
}

.service-pill.is-active svg {
  transform: scale(1);
}

.service-status {
  min-height: 54px;
  margin-top: 18px;
  color: rgba(28, 46, 30, 0.5);
  font-size: 0.82rem;
  font-style: italic;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.service-status.is-ready {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  padding: 14px 16px;
  border: 1px solid #e6ece4;
  border-radius: 16px;
  color: #1c2e1e;
  background: #fafbf9;
  font-style: normal;
}

.service-status a {
  flex: 0 0 auto;
  color: #4d6d47;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.membership h2 {
  color: var(--ink);
}

.membership-copy p {
  color: rgba(21, 21, 21, 0.62);
}

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

.membership-form label {
  display: grid;
  gap: 9px;
  color: rgba(21, 21, 21, 0.64);
  font-size: 0.86rem;
  font-weight: 800;
}

.wide {
  grid-column: 1 / -1;
}

.membership-form input,
.membership-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 14px 16px;
  border: 1px solid rgba(21, 21, 21, 0.16);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  outline: none;
}

.membership-form textarea {
  resize: vertical;
}

.membership-form input:focus,
.membership-form textarea:focus {
  border-color: rgba(21, 21, 21, 0.58);
  box-shadow: 0 0 0 3px rgba(21, 21, 21, 0.1);
}

.form-note {
  min-height: 24px;
  margin: 14px 0 0;
  color: #6d541c;
}

.floating-cta {
  position: fixed;
  right: clamp(16px, 2.4vw, 34px);
  bottom: 30vh;
  z-index: 28;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px 0 20px;
  border: 1px solid rgba(21, 21, 21, 0.14);
  border-radius: 999px;
  color: #fff;
  background: rgba(21, 21, 21, 0.92);
  box-shadow: 0 18px 46px rgba(21, 21, 21, 0.2);
  backdrop-filter: blur(16px) saturate(140%);
  font-weight: 900;
  transition:
    transform 180ms ease-out,
    background 180ms ease-out;
}

.floating-cta:hover,
.floating-cta:focus-visible {
  transform: translateY(-2px);
  background: #000;
}

.floating-cta svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer {
  display: grid;
  gap: 22px;
  padding: clamp(38px, 6vw, 70px) clamp(18px, 6vw, 88px) 28px;
  color: rgba(255, 255, 255, 0.62);
  background: #1f242b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer p {
  margin: 0;
  line-height: 1.7;
}

.site-footer p + p {
  margin-top: 10px;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(240px, 0.86fr) minmax(520px, 1.4fr);
  align-items: flex-start;
  gap: clamp(28px, 5vw, 80px);
}

.footer-company {
  max-width: 420px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin-bottom: 16px;
  color: #fff;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
}

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

.footer-brand strong {
  font-size: 1rem;
}

.footer-brand small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.74rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(112px, 1fr));
  gap: 24px;
}

.footer-links div {
  display: grid;
  gap: 10px;
  align-content: start;
}

.footer-links strong {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
}

.footer-links a,
.footer-contact a {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.88rem;
  line-height: 1.45;
  transition: color 160ms ease-out;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: #fff;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-extra {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 22px;
  padding-top: 6px;
}

.footer-qr-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-qr,
.footer-license {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.footer-qr {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 168px;
  min-height: 66px;
  padding: 7px 11px 7px 7px;
  transition:
    transform 160ms ease-out,
    border-color 160ms ease-out,
    background 160ms ease-out;
}

.footer-qr:hover,
.footer-qr:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
}

.qr-preview {
  display: block;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.footer-qr .qr-image {
  width: 50px;
  height: 50px;
  aspect-ratio: 1;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: #fff;
  transition:
    transform 160ms ease-out,
    border-color 160ms ease-out;
}

.qr-preview:hover .qr-image,
.qr-preview:focus-visible .qr-image {
  transform: scale(1.03);
  border-color: rgba(255, 255, 255, 0.36);
}

.footer-qr span {
  display: grid;
  gap: 3px;
}

.footer-qr strong,
.footer-license strong {
  color: #fff;
  font-size: 0.9rem;
}

.footer-qr strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.channel-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.footer-qr small,
.footer-license span,
.footer-channel-link {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.76rem;
  line-height: 1.45;
}

.footer-channel-link {
  width: fit-content;
  transition: color 160ms ease-out;
}

.footer-channel-link:hover,
.footer-channel-link:focus-visible {
  color: #fff;
}

.footer-license {
  display: grid;
  grid-template-columns: 86px minmax(180px, 280px);
  align-items: center;
  overflow: hidden;
  max-width: 390px;
}

.license-preview {
  display: block;
  width: 86px;
  height: 64px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.license-preview img {
  width: 86px;
  height: 64px;
  object-fit: cover;
  object-position: center;
  opacity: 0.88;
  transition:
    opacity 160ms ease-out,
    transform 160ms ease-out;
}

.license-preview:hover img,
.license-preview:focus-visible img {
  opacity: 1;
  transform: scale(1.02);
}

.footer-license figcaption {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
}

.image-modal[hidden] {
  display: none;
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 44px);
}

.image-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 15, 0.76);
  backdrop-filter: blur(12px);
}

.image-modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: min(760px, 100%);
  max-height: calc(100dvh - 48px);
  padding: 18px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
}

.image-modal-heading {
  display: grid;
  gap: 4px;
  padding-right: 52px;
}

.image-modal-heading strong {
  color: var(--ink);
  font-size: 1rem;
}

.image-modal-heading span {
  color: rgba(21, 21, 21, 0.58);
  font-size: 0.86rem;
}

.image-modal-panel > img {
  width: 100%;
  max-height: calc(100dvh - 150px);
  object-fit: contain;
  border-radius: 6px;
  background: #f7f7f4;
}

.image-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(21, 21, 21, 0.12);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(247, 247, 244, 0.92);
  cursor: pointer;
  transition:
    background 160ms ease-out,
    transform 160ms ease-out;
}

.image-modal-close:hover,
.image-modal-close:focus-visible {
  transform: translateY(-1px);
  background: #fff;
}

.image-modal-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.section-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 460ms ease-out,
    transform 460ms ease-out;
}

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

:focus-visible {
  outline: 3px solid rgba(21, 21, 21, 0.78);
  outline-offset: 4px;
}

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

  .nav-links,
  .header-cta {
    display: none;
  }

  .mobile-menu-toggle {
    display: grid;
  }

  .hero {
    align-items: center;
    padding-bottom: 160px;
  }

  .hero-media img,
  .hero-media video {
    object-position: right bottom;
  }

  .hero-glass {
    left: 18px;
    right: 18px;
    bottom: 28px;
    width: auto;
  }

  .product-grid,
  .story,
  .value-list,
  .footer-main,
  .membership {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .footer-extra {
    flex-direction: column;
  }

  .product {
    min-height: 520px;
  }

  .story-sticky {
    position: static;
  }

  .value-list {
    border-bottom: 0;
  }

  .value-item {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(12, 10, 9, 0.12);
  }

}

@media (max-width: 620px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    padding: 12px 16px;
  }

  .brand-mark small {
    display: none;
  }

  .hero {
    min-height: 100svh;
    padding: calc(var(--header-height) + 34px) 18px 44px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.7rem);
  }

  h2 {
    font-size: clamp(2.1rem, 12vw, 3.3rem);
  }

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

  .hero-glass {
    display: none;
  }

  .button {
    width: 100%;
  }

  .chapter {
    grid-template-columns: 1fr;
  }

  .membership-form {
    grid-template-columns: 1fr;
  }

  .footer-contact {
    justify-content: flex-start;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-qr-group,
  .footer-extra {
    width: 100%;
  }

  .footer-qr {
    flex: 1 1 150px;
  }

  .footer-license {
    width: 100%;
    max-width: none;
    grid-template-columns: 76px 1fr;
  }

  .license-preview,
  .license-preview img {
    width: 76px;
  }
}

@media (max-width: 620px) {
  .floating-cta {
    right: 16px;
    bottom: max(18px, env(safe-area-inset-bottom));
    min-height: 48px;
    padding: 0 16px;
  }
}

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