@font-face {
  font-family: "RuoyuDisplay";
  src: url("./assets/fonts/zcoool-xiaowei-homepage.woff2") format("woff2");
  font-display: swap;
}

:root {
  --paper: #f6f0e6;
  --paper-soft: #fbf8f1;
  --paper-warm: #efe5d6;
  --ink: #2f2b26;
  --forest: #2d3a31;
  --muted: #756a5e;
  --clay: #b87a5b;
  --clay-deep: #965f48;
  --sage: #78866a;
  --moss: #49513d;
  --wood: #d8c3a5;
  --line: rgba(47, 43, 38, 0.14);
  --line-light: rgba(251, 248, 241, 0.34);
  --shadow-soft: 0 18px 50px rgba(47, 43, 38, 0.08);
  --shadow-lift: 0 26px 70px rgba(47, 43, 38, 0.14);
  --radius-card: 28px;
  --container: min(1180px, calc(100vw - 44px));
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body[data-has-events="false"] [data-event-entry] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

body::selection {
  background: rgba(184, 122, 91, 0.24);
}

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

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

.paper-grain {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(246, 240, 230, 0.82);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.brand-mark img {
  width: clamp(116px, 12vw, 156px);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 30px);
  color: var(--muted);
  font-size: 14px;
}

.site-nav a {
  transition: color 240ms ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.nav-cta {
  min-height: 40px;
  padding: 9px 18px;
  border: 1px solid rgba(45, 58, 49, 0.28);
  border-radius: 999px;
  color: var(--forest) !important;
}

.nav-cta:hover {
  border-color: var(--clay);
  color: var(--clay-deep) !important;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.78fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  width: var(--container);
  min-height: calc(100svh - 84px);
  margin: 0 auto;
  padding: clamp(34px, 6vw, 86px) 0 clamp(50px, 8vw, 110px);
}

.hero::before {
  content: "";
  position: absolute;
  right: -8vw;
  bottom: 8%;
  width: min(46vw, 560px);
  aspect-ratio: 1;
  border: 1px solid rgba(120, 134, 106, 0.22);
  border-radius: 50% 50% 44% 56%;
  background: rgba(239, 229, 214, 0.48);
  z-index: -1;
}

.hero-visual {
  height: min(72vh, 720px);
  min-height: 520px;
  border-radius: 210px 210px 32px 32px;
  box-shadow: var(--shadow-lift);
}

.hero-copy {
  max-width: 650px;
}

.eyebrow,
.site-nav a,
.photo-card span,
.button,
.mobile-action-bar a {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--clay);
}

h1,
h2,
.photo-card strong {
  font-family: "RuoyuDisplay", "Songti SC", "SimSun", "STSong", serif;
  font-weight: 400;
  letter-spacing: 0;
}

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

h1 {
  color: var(--forest);
  font-size: clamp(46px, 7.4vw, 94px);
  line-height: 1.02;
}

h1 em {
  color: var(--clay-deep);
  font-style: normal;
}

h2 {
  color: var(--forest);
  font-size: clamp(31px, 5.2vw, 68px);
  line-height: 1.08;
}

h3 {
  color: var(--forest);
  font-size: 20px;
  line-height: 1.42;
}

.hero-text {
  max-width: 570px;
  margin-top: 26px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

.service-pills,
.hero-actions,
.quiet-list,
.space-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.service-pills {
  margin-top: 28px;
}

.service-pills span,
.quiet-list span,
.space-tags span {
  border: 1px solid rgba(47, 43, 38, 0.14);
  border-radius: 999px;
  background: rgba(251, 248, 241, 0.62);
  padding: 8px 13px;
  color: var(--muted);
  font-size: 14px;
}

.hero-actions {
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 24px;
  transition: transform 260ms ease, background 260ms ease, border-color 260ms ease, color 260ms ease, box-shadow 260ms ease;
}

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

.button:focus-visible,
.site-nav a:focus-visible,
summary:focus-visible,
.mobile-action-bar a:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 4px;
}

.button-primary {
  background: var(--forest);
  color: var(--paper-soft);
  box-shadow: 0 14px 30px rgba(45, 58, 49, 0.16);
}

.button-primary:hover {
  background: var(--clay-deep);
}

.button-ghost {
  border: 1px solid rgba(47, 43, 38, 0.18);
  color: var(--forest);
}

.button-ghost:hover {
  border-color: var(--clay);
  color: var(--clay-deep);
}

.statement {
  display: grid;
  grid-template-columns: minmax(180px, 0.5fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 82px);
  padding: clamp(70px, 12vw, 142px) max(22px, calc((100vw - 1180px) / 2));
  background: var(--paper-soft);
}

.statement p,
.section-heading p:not(.eyebrow),
.logic-timeline p,
.experience-copy p,
.experience-steps p,
.space-copy p,
.book-copy p,
.book-copy small,
details p,
.match-grid li,
.boundary-note {
  color: var(--muted);
}

.section {
  width: var(--container);
  margin: 0 auto;
  padding: clamp(72px, 11vw, 138px) 0;
}

.section-grid,
.boundary-section,
.experience-section,
.space-section,
.book-section,
.collage-intro {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1fr);
  gap: clamp(34px, 7vw, 90px);
  align-items: start;
}

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

.section-heading.narrow {
  max-width: 800px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  margin-top: 20px;
  font-size: 18px;
}

.soft-panel,
.boundary-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(251, 248, 241, 0.74);
  box-shadow: var(--shadow-soft);
  padding: clamp(28px, 5vw, 56px);
}

.soft-panel p,
.boundary-card p {
  font-size: clamp(18px, 2.1vw, 23px);
}

.quiet-list {
  margin-top: 30px;
}

.assessment-section .section-heading.narrow {
  margin-bottom: clamp(32px, 5vw, 54px);
}

.assessment-section h2 {
  font-size: clamp(28px, 3.8vw, 44px);
  line-height: 1.18;
}

.assessment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
}

.assessment-grid article {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.assessment-grid h3 {
  margin-bottom: 10px;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.28;
}

.assessment-grid p {
  min-height: 4.8em;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.62;
}

.assessment-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 2.65;
  margin-top: 22px;
  border: 1px solid rgba(47, 43, 38, 0.1);
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(45, 58, 49, 0.08);
}

  .brand-statement-section {
  position: relative;
  width: 100%;
  min-height: clamp(620px, 78vh, 820px);
  padding: clamp(96px, 12vw, 150px) max(22px, calc((100vw - 1180px) / 2));
  align-items: center;
  background:
    linear-gradient(90deg, rgba(251, 248, 241, 0.96) 0%, rgba(251, 248, 241, 0.9) 36%, rgba(251, 248, 241, 0.48) 58%, rgba(251, 248, 241, 0.1) 100%),
    var(--section-background-image, none) center / cover no-repeat;
}

.brand-statement-copy {
  max-width: 500px;
  padding: clamp(22px, 3vw, 34px) clamp(20px, 3vw, 38px);
  border: 1px solid rgba(251, 248, 241, 0.28);
  border-radius: 18px;
  background: rgba(251, 248, 241, 0.34);
  box-shadow: 0 22px 56px rgba(47, 43, 38, 0.055);
  backdrop-filter: blur(5px);
}

.brand-statement-copy h2 {
  max-width: 430px;
  font-size: clamp(30px, 3.2vw, 40px);
  line-height: 1.22;
}

.brand-statement-copy h2 span {
  white-space: nowrap;
}

.brand-statement-body {
  max-width: 500px;
  margin-top: 18px;
}

.brand-statement-body p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.18vw, 16px);
  line-height: 1.72;
}

.brand-statement-body p + p {
  margin-top: 7px;
}

.photo-collage {
  padding: clamp(54px, 8vw, 104px) max(14px, calc((100vw - 1240px) / 2));
  background: var(--moss);
  color: var(--paper-soft);
}

.collage-intro {
  width: min(1180px, calc(100vw - 44px));
  margin: 0 auto 34px;
}

.collage-intro h2 {
  color: var(--paper-soft);
}

.collage-intro .eyebrow,
.service-band .eyebrow {
  color: #e7c7ae;
}

.collage-intro p:not(.eyebrow) {
  color: rgba(251, 248, 241, 0.76);
}

.collage-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 220px;
  width: min(1240px, calc(100vw - 28px));
  margin: 0 auto;
  gap: 14px;
}

.photo-card {
  position: relative;
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid rgba(251, 248, 241, 0.34);
  border-radius: var(--radius-card);
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(47, 43, 38, 0.12), rgba(47, 43, 38, 0.48)),
    repeating-linear-gradient(45deg, rgba(251, 248, 241, 0.11) 0 2px, transparent 2px 16px),
    var(--wood);
  color: var(--paper-soft);
  transition: transform 520ms ease, box-shadow 520ms ease;
}

.photo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.photo-card::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(251, 248, 241, 0.34);
  border-radius: calc(var(--radius-card) - 10px);
  pointer-events: none;
}

.photo-card > * {
  position: relative;
  z-index: 1;
}

.photo-card strong {
  display: block;
  max-width: 460px;
  margin-top: 10px;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.14;
}

.photo-card p {
  max-width: 420px;
  margin-top: 10px;
  color: rgba(251, 248, 241, 0.78);
  font-size: 14px;
}

.collage-grid .photo-card.tall {
  grid-column: span 2;
  grid-row: span 2;
}

.collage-grid .photo-card.wide {
  grid-column: span 3;
}

.collage-grid .photo-card:not(.tall):not(.wide) {
  grid-column: span 2;
}

.photo-card.moss {
  background: linear-gradient(135deg, rgba(47, 43, 38, 0.22), rgba(47, 43, 38, 0.58)), var(--moss);
}

.photo-card.clay {
  background: linear-gradient(135deg, rgba(47, 43, 38, 0.14), rgba(47, 43, 38, 0.44)), var(--clay);
}

.photo-card.green {
  background: linear-gradient(135deg, rgba(47, 43, 38, 0.14), rgba(47, 43, 38, 0.42)), var(--sage);
}

.photo-card.paper {
  background: var(--paper-soft);
  color: var(--forest);
}

.photo-card.paper::before {
  border-color: var(--line);
}

.photo-card.paper span,
.photo-card.paper p {
  color: var(--muted);
}

.service-grid,
.match-grid,
.logic-timeline {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--line);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  max-width: 1120px;
  margin: clamp(30px, 4vw, 48px) auto 0;
}

.service-grid {
  grid-template-columns: repeat(4, 1fr);
}

.signal-grid article {
  min-height: 210px;
  padding: 20px 16px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  border: 1px solid rgba(47, 64, 55, 0.08);
  border-radius: 14px;
  background: rgba(255, 253, 247, 0.72);
  box-shadow: 0 14px 34px rgba(47, 43, 38, 0.055);
}

.signal-icon {
  width: 124px;
  height: 116px;
  margin-bottom: 10px;
  display: block;
}

.signal-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.14);
  transform-origin: center;
}

.signal-grid h3 {
  max-width: 150px;
  margin: 0;
  color: var(--forest);
  font-size: 15px;
  line-height: 1.62;
  font-weight: 700;
}

.service-grid article,
.match-grid article,
.logic-timeline article,
.experience-steps article {
  min-height: 220px;
  padding: 28px;
  background: rgba(251, 248, 241, 0.76);
}

.experience-steps span,
.logic-timeline span {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 700;
}

.signal-link {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

.boundary-note {
  max-width: 850px;
  margin: 28px auto 0;
  text-align: center;
}

.service-band {
  width: 100%;
  max-width: none;
  padding-right: max(22px, calc((100vw - 1180px) / 2));
  padding-left: max(22px, calc((100vw - 1180px) / 2));
  background: #f3eee5;
  color: var(--forest);
}

.service-band h2,
.service-band h3 {
  color: var(--forest);
}

.service-band .eyebrow {
  color: var(--clay);
}

.service-grid {
  gap: clamp(14px, 1.8vw, 24px);
  margin-top: 42px;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.service-grid article {
  min-height: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(105, 91, 72, 0.1);
  border-radius: 14px;
  background: var(--paper-soft);
  box-shadow: 0 10px 24px rgba(45, 58, 49, 0.07);
}

.service-image {
  display: block;
  width: 100%;
  aspect-ratio: 1.38 / 1;
  border-bottom: 1px solid rgba(105, 91, 72, 0.1);
  object-fit: cover;
}

.service-card-copy {
  min-height: 128px;
  padding: 22px 16px 20px;
  text-align: center;
}

.service-card-copy h3 {
  margin: 0;
  font-size: clamp(19px, 1.8vw, 24px);
}

.service-card-copy p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.service-fit-link {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin: 30px auto 0;
  color: var(--forest);
  font-size: 14px;
  font-weight: 650;
}

.service-fit-link span {
  font-size: 18px;
  transition: transform 180ms ease;
}

.service-fit-link:hover span {
  transform: translateX(4px);
}

@media (max-width: 720px) {
  .service-grid article {
    padding: 0;
  }
}

.logic-timeline {
  grid-template-columns: repeat(5, 1fr);
}

.logic-timeline article {
  min-height: 250px;
}

/* Training logic: a concise sequence, not five explanatory cards. */
.logic-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  max-width: 1120px;
  margin: clamp(38px, 5vw, 64px) auto 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.logic-timeline::before {
  position: absolute;
  top: 36px;
  right: 10%;
  left: 10%;
  height: 1px;
  background: rgba(105, 91, 72, 0.25);
  content: "";
}

.logic-timeline article {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 0;
  justify-items: center;
  padding: 0 12px;
  background: transparent;
  text-align: center;
}

.logic-icon {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid rgba(105, 91, 72, 0.25);
  border-radius: 50%;
  background: var(--paper-soft);
  color: var(--clay);
}

.logic-icon svg {
  width: 31px;
  height: 31px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.logic-timeline span {
  margin: 18px 0 0;
  color: var(--forest);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.logic-timeline p {
  display: none;
}

.experience-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.experience-steps article {
  border: 1px solid var(--line);
  border-radius: 24px;
  transition: transform 420ms ease, box-shadow 420ms ease;
}

.experience-steps article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.space-section,
.book-section {
  width: 100%;
  padding: clamp(54px, 8vw, 104px) max(22px, calc((100vw - 1180px) / 2));
  background: var(--paper-soft);
}

.space-photo {
  min-height: 620px;
  border-radius: 34px 34px 210px 210px;
}

.space-copy,
.book-copy {
  align-self: center;
}

.space-copy p,
.book-copy p,
.book-copy small {
  margin-top: 16px;
}

.space-tags {
  margin-top: 28px;
}

.match-grid {
  grid-template-columns: repeat(2, 1fr);
  max-width: 980px;
  margin: 0 auto;
}

.match-grid article {
  min-height: auto;
}

.match-grid ul {
  margin: 22px 0 0;
  padding-left: 20px;
}

.boundary-card p + p {
  margin-top: 20px;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

summary {
  position: relative;
  cursor: pointer;
  padding-right: 38px;
  color: var(--forest);
  font-size: 20px;
  list-style: none;
}

summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 0;
  color: var(--clay);
  font-size: 24px;
  line-height: 1;
}

details[open] summary::after {
  content: "-";
}

summary::-webkit-details-marker {
  display: none;
}

details p {
  max-width: 760px;
  margin-top: 14px;
}

.book-photo {
  min-height: 500px;
}

.book-copy small {
  display: block;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 4vw, 56px) 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.mobile-action-bar {
  display: none;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 720ms ease, transform 720ms ease;
}

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

.hero-photo.is-visible {
  animation: slowScale 1600ms ease both;
}

@keyframes slowScale {
  from { transform: scale(1.025); }
  to { transform: scale(1); }
}

@media (max-width: 1040px) {
  .hero,
  .statement,
  .section-grid,
  .experience-section,
  .space-section,
  .boundary-section,
  .book-section,
  .collage-intro {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    height: 54vh;
    min-height: 420px;
    order: -1;
  }

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

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .assessment-grid {
    gap: 26px;
  }

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

  .logic-timeline article {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand-mark img {
    width: 108px;
  }

  .site-nav a:not(.nav-cta) {
    display: none;
  }

  .nav-cta {
    min-height: 38px;
    padding: 8px 13px;
  }

  .hero {
    width: min(100% - 32px, 520px);
    padding: 24px 0 64px;
  }

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

  .assessment-grid p {
    min-height: 0;
  }

  .hero-visual {
    height: 44vh;
    min-height: 360px;
    border-radius: 150px 150px 26px 26px;
  }

  h1 {
    font-size: 42px;
    line-height: 1.08;
  }

  h2 {
    font-size: 31px;
  }

  .hero-text,
  .section-heading p:not(.eyebrow) {
    font-size: 16px;
  }

  .brand-statement-section {
    min-height: 620px;
    padding: 86px 18px 72px;
    background:
      linear-gradient(180deg, rgba(251, 248, 241, 0.96) 0%, rgba(251, 248, 241, 0.86) 46%, rgba(251, 248, 241, 0.34) 100%),
      var(--section-background-image, none) 62% center / cover no-repeat;
  }

  .brand-statement-copy {
    padding: 22px 18px;
    border-radius: 14px;
    background: rgba(251, 248, 241, 0.34);
    backdrop-filter: blur(5px);
  }

  .brand-statement-copy h2 {
    font-size: 28px;
    line-height: 1.22;
  }

  .brand-statement-body {
    margin-top: 16px;
  }

  .brand-statement-body p {
    font-size: 15px;
    line-height: 1.62;
  }

  .brand-statement-body p + p {
    margin-top: 6px;
  }

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

  .button {
    min-height: 50px;
  }

  .statement,
  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .statement,
  .service-band,
  .space-section,
  .book-section {
    padding-right: 18px;
    padding-left: 18px;
  }

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

  .brand-statement-section {
    width: 100%;
  }

  .collage-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 190px;
  }

  .photo-card,
  .collage-grid .photo-card.tall,
  .collage-grid .photo-card.wide,
  .collage-grid .photo-card:not(.tall):not(.wide) {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 190px;
    padding: 16px;
  }

  .photo-card strong {
    font-size: 21px;
  }

  .photo-card p {
    display: none;
  }

  .signal-grid,
  .service-grid,
  .match-grid,
  .experience-steps {
    grid-template-columns: 1fr;
  }

  .signal-grid {
    gap: 12px;
  }

  .signal-grid article,
  .service-grid article,
  .match-grid article,
  .experience-steps article {
    min-height: auto;
    padding: 22px;
  }

  .signal-grid article {
    min-height: 174px;
  }

  .signal-icon {
    width: 112px;
    height: 104px;
    margin-bottom: 10px;
  }

  .signal-grid h3 {
    max-width: 220px;
  }

  .space-photo,
  .book-photo {
    min-height: 350px;
  }

  .site-footer {
    flex-direction: column;
    padding-bottom: 94px;
  }

  .mobile-action-bar {
    position: fixed;
    right: 14px;
    bottom: 14px;
    left: 14px;
    z-index: 50;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(47, 43, 38, 0.14);
    border-radius: 999px;
    background: rgba(251, 248, 241, 0.9);
    box-shadow: 0 16px 46px rgba(47, 43, 38, 0.16);
    backdrop-filter: blur(16px);
  }

  .mobile-action-bar a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
  }

  .mobile-action-bar a:first-child {
    background: var(--forest);
    color: var(--paper-soft);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* Homepage video hero refresh */
.site-header {
  position: fixed;
  top: 18px;
  right: clamp(16px, 4vw, 54px);
  left: clamp(16px, 4vw, 54px);
  z-index: 90;
  width: auto;
  max-width: 1240px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  background-blend-mode: luminosity;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12), 0 18px 55px rgba(16, 24, 20, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 18px 10px 20px;
}

.brand-mark img {
  width: clamp(104px, 9vw, 124px);
  filter: brightness(0) invert(1) drop-shadow(0 2px 14px rgba(0, 0, 0, 0.24));
}

.site-nav {
  color: rgba(255, 255, 255, 0.72);
}

.site-nav a:hover {
  color: #ffffff;
}

.nav-cta {
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08);
}

.nav-cta:hover {
  border-color: rgba(255, 255, 255, 0.42);
  color: #ffffff !important;
  transform: scale(1.03);
}

.liquid-glass {
  position: relative;
  overflow: hidden;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  background-blend-mode: luminosity;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.liquid-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg, rgba(255,255,255,0.46) 0%, rgba(255,255,255,0.14) 20%, rgba(255,255,255,0) 42%, rgba(255,255,255,0) 58%, rgba(255,255,255,0.16) 80%, rgba(255,255,255,0.46) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 100svh;
  margin: 0;
  padding: clamp(112px, 15vh, 168px) clamp(22px, 5vw, 72px) clamp(42px, 8vh, 86px);
  align-items: flex-end;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(rgba(21, 49, 59, 0.08), rgba(21, 49, 59, 0.08)),
    url("./assets/posters/hero-poster.webp") center / cover no-repeat,
    #15313b;
}

.hero::before {
  display: none;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
  opacity: 0;
  transition: opacity 420ms ease;
}

.hero-video.is-ready {
  opacity: 1;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.62fr);
  gap: clamp(34px, 8vw, 108px);
  align-items: end;
  width: min(1280px, 100%);
  max-width: none;
  margin: 0 auto;
  text-align: left;
}

.hero-title-block {
  max-width: 860px;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.38);
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.hero h1 {
  color: #ffffff;
  font-size: clamp(54px, 7.4vw, 108px);
  line-height: 0.94;
  text-wrap: balance;
}

.hero h1 em {
  display: block;
  color: rgba(255, 255, 255, 0.68);
}

.hero-panel {
  max-width: 510px;
  border-radius: 28px;
  padding: clamp(22px, 3vw, 34px);
  color: #ffffff;
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.28);
}

.hero-text {
  max-width: none;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.85;
}

.hero .hero-actions {
  margin-top: 28px;
}

.hero .button-primary,
.hero .button-ghost {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.hero .button-primary:hover,
.hero .button-ghost:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.14);
  transform: scale(1.03);
}

@media (max-width: 1040px) {
  .hero {
    min-height: 100svh;
    padding-top: 126px;
  }

  .hero-copy {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-panel {
    max-width: 620px;
  }
}

@media (max-width: 720px) {
  .site-header {
    top: 12px;
    right: 12px;
    left: 12px;
    padding: 10px 12px 10px 14px;
  }

  .brand-mark img {
    width: 92px;
  }

  .nav-cta {
    min-height: 36px;
    padding: 8px 12px;
  }

  .hero {
    width: 100%;
    min-height: 100svh;
    padding: 116px 18px 86px;
  }

  .hero-video {
    object-position: 50% 50%;
  }

  .hero h1 {
    font-size: clamp(46px, 14vw, 68px);
    line-height: 0.98;
  }

  .hero-panel {
    border-radius: 22px;
  }

  .hero .hero-actions {
    width: 100%;
  }
}
/* Hero typography reset: keep the motion video visible, let type occupy one calm lane. */
@keyframes heroWordRise {
  from {
    opacity: 0;
    transform: translateY(100%);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 19, 16, 0.62) 0%, rgba(11, 19, 16, 0.38) 34%, rgba(11, 19, 16, 0.08) 66%, rgba(11, 19, 16, 0) 100%),
    linear-gradient(0deg, rgba(11, 19, 16, 0.34) 0%, rgba(11, 19, 16, 0) 48%);
}

.hero-copy {
  grid-template-columns: minmax(620px, 0.58fr) 1fr;
  gap: clamp(26px, 5vw, 74px);
  align-items: end;
  width: min(1360px, 100%);
}

.hero-title-block {
  max-width: 700px;
}

.hero .eyebrow {
  margin-bottom: clamp(14px, 2.2vh, 24px);
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(11px, 0.9vw, 13px);
  letter-spacing: 0.22em;
}

.hero h1 {
  max-width: 7.6em;
  overflow: hidden;
  font-size: clamp(64px, 6.8vw, 98px);
  line-height: 0.96;
  letter-spacing: -0.032em;
  text-wrap: balance;
  animation: heroWordRise 820ms cubic-bezier(0.16, 1, 0.3, 1) 220ms both;
}

.hero h1 em {
  display: block;
  margin-top: 0.04em;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.48);
  animation: heroWordRise 820ms cubic-bezier(0.16, 1, 0.3, 1) 360ms both;
}

.hero-panel.liquid-glass {
  align-self: end;
  justify-self: end;
  max-width: 440px;
  margin-bottom: clamp(4px, 1vh, 12px);
  transform: translateX(clamp(34px, 4.8vw, 86px));
  padding: clamp(18px, 2vw, 26px) 0 0;
  border-radius: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: visible;
}

.hero-panel.liquid-glass::before {
  display: none;
}

.hero-text {
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.65;
  letter-spacing: 0.01em;
}

.hero .hero-actions {
  gap: 12px;
  margin-top: clamp(20px, 3vh, 30px);
}

.hero .button-primary,
.hero .button-ghost {
  min-height: 52px;
  border-radius: 12px;
  padding: 14px 20px;
  letter-spacing: 0.06em;
}

.hero .button-primary {
  min-width: 156px;
  background: rgba(255, 255, 255, 0.92);
  color: #1f2b24;
}

.hero .button-ghost {
  color: rgba(255, 255, 255, 0.88);
}

.hero .button-primary:hover {
  color: #1f2b24;
  background: #ffffff;
}

@media (max-width: 1040px) {
  .hero-copy {
    display: grid;
    grid-template-columns: 1fr !important;
    width: min(720px, 100%);
    margin-right: auto;
    margin-left: 0;
  }

  .hero-title-block {
    max-width: min(680px, 100%);
  }

  .hero h1 {
    max-width: 7.4em;
    font-size: clamp(58px, 9.5vw, 86px);
    line-height: 0.96;
  }

  .hero-panel.liquid-glass {
    justify-self: start;
    max-width: 520px;
    transform: none;
  }
}

@media (max-width: 720px) {
  .hero::after {
    background:
      linear-gradient(90deg, rgba(11, 19, 16, 0.56) 0%, rgba(11, 19, 16, 0.22) 74%, rgba(11, 19, 16, 0) 100%),
      linear-gradient(0deg, rgba(11, 19, 16, 0.52) 0%, rgba(11, 19, 16, 0.08) 58%, rgba(11, 19, 16, 0) 100%);
  }

  .hero {
    align-items: flex-end;
    padding: 108px 18px 104px;
  }

  .hero-copy {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .hero .eyebrow {
    max-width: 260px;
    font-size: 10px;
    letter-spacing: 0.18em;
  }

  .hero h1 {
    width: 100%;
    max-width: 6.1em;
    font-size: clamp(46px, 13.8vw, 58px);
    line-height: 0.96;
    letter-spacing: -0.035em;
  }

  .hero-panel.liquid-glass {
    width: min(100%, 360px);
    max-width: 360px;
    padding-top: 16px;
  }

  .hero-text {
    font-size: 15px;
    line-height: 1.58;
  }

  .hero .button-primary,
  .hero .button-ghost {
    width: 100%;
    min-height: 50px;
    border-radius: 10px;
  }
}
/* Comment pass: preserve 4:3 motion-video frame and restore colored logo. */
.site-header {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.42);
}

.brand-mark {
  min-height: 56px;
  padding: 2px 0;
}

.brand-mark img {
  width: clamp(136px, 10vw, 156px);
  filter: none !important;
  object-fit: contain;
  object-position: center;
  transform: translateY(1px);
}

.site-nav {
  color: rgba(47, 43, 38, 0.66);
}

.site-nav a:hover {
  color: var(--ink);
}

.nav-cta {
  border-color: rgba(47, 43, 38, 0.16);
  background: rgba(255, 255, 255, 0.34);
  color: var(--forest) !important;
}

.nav-cta:hover {
  border-color: rgba(47, 43, 38, 0.26);
  color: var(--forest) !important;
}

@media (min-width: 901px) {
  .site-header {
    width: min(calc(100svh * 4 / 3 - 28px), calc(100vw - 48px));
    max-width: none;
  }

  .hero {
    --hero-frame-width: min(100vw, calc(100svh * 4 / 3));
    --hero-frame-height: min(100svh, calc(100vw * 3 / 4));
    justify-content: center;
    background: #eee7db;
  }

  .hero-video,
  .hero::after {
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    width: var(--hero-frame-width);
    height: var(--hero-frame-height);
    transform: translate(-50%, -50%);
  }

  .hero-video {
    object-fit: contain;
    object-position: center;
    background: #eee7db;
  }

  .hero::after {
    inset: auto;
    background:
      linear-gradient(90deg, rgba(11, 19, 16, 0.58) 0%, rgba(11, 19, 16, 0.32) 35%, rgba(11, 19, 16, 0.08) 68%, rgba(11, 19, 16, 0) 100%),
      linear-gradient(0deg, rgba(11, 19, 16, 0.3) 0%, rgba(11, 19, 16, 0) 50%);
  }

  .hero-copy {
    width: min(calc(var(--hero-frame-width) - clamp(48px, 7vw, 92px)), calc(100vw - 48px));
    grid-template-columns: minmax(430px, 0.58fr) minmax(300px, 0.42fr);
    gap: clamp(22px, 3vw, 46px);
  }

  .hero-title-block {
    max-width: 560px;
  }

  .hero h1 {
    max-width: 6.7em;
    font-size: clamp(58px, 5.3vw, 84px);
  }

  .hero-panel.liquid-glass {
    max-width: 360px;
    transform: none;
  }

  .hero-text {
    font-size: clamp(14px, 1vw, 16px);
  }
}

@media (max-width: 720px) {
  .brand-mark img {
    width: 112px;
  }
}
/* Refinement: keep the 4:3 frame clean and balance the colored logo in the nav. */
.brand-mark img {
  width: clamp(124px, 8.4vw, 138px);
}

.site-header {
  padding-top: 8px;
  padding-bottom: 8px;
}

@media (min-width: 901px) {
  .hero::after {
    display: none;
  }

  .hero-title-block,
  .hero-panel.liquid-glass {
    text-shadow: 0 3px 24px rgba(0, 0, 0, 0.46), 0 1px 2px rgba(0, 0, 0, 0.28);
  }
}

@media (max-width: 720px) {
  .brand-mark img {
    width: 104px;
  }
}
/* Comment pass: full-bleed hero and logo optical alignment. */
.site-header {
  width: min(1240px, calc(100vw - 48px));
  max-width: 1240px;
}

.brand-mark {
  width: clamp(126px, 8.4vw, 138px);
  min-height: 52px;
  overflow: hidden;
}

.brand-mark img {
  width: clamp(132px, 8.8vw, 146px);
  max-width: none;
  filter: none !important;
  transform: translate(-8px, -1px);
  transform-origin: center;
}

@media (min-width: 901px) {
  .hero {
    --hero-frame-width: 100vw;
    --hero-frame-height: 100svh;
    justify-content: flex-start;
    background: #15313b;
  }

  .hero-video {
    inset: 0;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    height: 100%;
    transform: none;
    object-fit: cover;
    object-position: 50% 50%;
    background: #15313b;
  }

  .hero::after {
    display: block;
    inset: 0;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
    height: auto;
    transform: none;
    background:
      linear-gradient(90deg, rgba(11, 19, 16, 0.58) 0%, rgba(11, 19, 16, 0.28) 42%, rgba(11, 19, 16, 0.03) 78%, rgba(11, 19, 16, 0) 100%),
      linear-gradient(0deg, rgba(11, 19, 16, 0.34) 0%, rgba(11, 19, 16, 0) 48%);
  }

  .hero-copy {
    width: min(1360px, 100%);
    grid-template-columns: minmax(620px, 0.58fr) 1fr;
    gap: clamp(26px, 5vw, 74px);
  }

  .hero-title-block {
    max-width: 700px;
  }

  .hero h1 {
    max-width: 7.6em;
    font-size: clamp(64px, 6.8vw, 98px);
  }

  .hero-panel.liquid-glass {
    max-width: 440px;
    transform: translateX(clamp(34px, 4.8vw, 86px));
  }
}

@media (max-width: 720px) {
  .site-header {
    width: auto;
  }

  .brand-mark {
    width: 104px;
    min-height: 48px;
  }

  .brand-mark img {
    width: 112px;
    transform: translate(-6px, 0);
  }
}
/* Comment pass: rebuild logo alignment and remove the last full-bleed offset. */
.brand-mark {
  display: inline-grid;
  grid-template-columns: auto auto;
  column-gap: 10px;
  align-items: center;
  width: auto;
  min-height: 52px;
  overflow: visible;
  padding: 0;
}

.brand-symbol {
  width: clamp(42px, 3.1vw, 50px) !important;
  height: auto;
  max-width: none;
  filter: none !important;
  transform: none !important;
}

.brand-wordmark {
  display: grid;
  justify-items: start;
  gap: 5px;
  transform: translateY(1px);
}

.brand-zh {
  width: clamp(62px, 4.6vw, 74px) !important;
  height: auto;
  max-width: none;
  filter: none !important;
  transform: none !important;
}

.brand-en {
  width: clamp(62px, 4.6vw, 74px) !important;
  height: auto;
  max-width: none;
  filter: none !important;
  transform: none !important;
}

@media (min-width: 901px) {
  .hero-video {
    inset: 0;
    top: 0;
    left: 0;
    right: auto;
    bottom: auto;
    width: 100vw;
    height: 100svh;
    transform: none;
    object-fit: cover;
    object-position: 50% 50%;
  }
}

@media (max-width: 720px) {
  .brand-mark {
    column-gap: 8px;
    min-height: 46px;
  }

  .brand-symbol {
    width: 38px !important;
  }

  .brand-zh,
  .brand-en {
    width: 58px !important;
  }
}
/* Comment pass: nudge RUOYU right and reduce the second-line title shadow. */
.brand-en {
  transform: translateX(4px) !important;
}

.hero h1 em {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.16) !important;
}

@media (min-width: 901px) {
  .hero-title-block {
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.24), 0 1px 1px rgba(0, 0, 0, 0.18) !important;
  }

  .hero h1 em {
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.14) !important;
  }
}

@media (max-width: 720px) {
  .brand-en {
    transform: translateX(3px) !important;
  }
}
/* Comment pass: smaller logo and lighter translucent glass nav. */
.site-header {
  background: rgba(255, 255, 255, 0.28) !important;
  border-color: rgba(255, 255, 255, 0.34) !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.22), 0 18px 55px rgba(16, 24, 20, 0.1) !important;
  backdrop-filter: blur(22px) saturate(1.15) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.15) !important;
}

.brand-mark {
  column-gap: 8px;
  min-height: 44px;
}

.brand-symbol {
  width: clamp(36px, 2.6vw, 42px) !important;
}

.brand-zh {
  width: clamp(54px, 3.9vw, 62px) !important;
}

.brand-en {
  width: clamp(54px, 3.9vw, 62px) !important;
  transform: translateX(4px) !important;
}

.brand-wordmark {
  gap: 4px;
}

@media (max-width: 720px) {
  .brand-mark {
    column-gap: 7px;
    min-height: 42px;
  }

  .brand-symbol {
    width: 34px !important;
  }

  .brand-zh,
  .brand-en {
    width: 52px !important;
  }

  .brand-en {
    transform: translateX(3px) !important;
  }
}
/* Comment pass: smaller mark and clearer light-through glass nav. */
.site-header {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.26) !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.28), 0 16px 42px rgba(16, 24, 20, 0.08) !important;
  backdrop-filter: blur(10px) saturate(1.22) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.22) !important;
}

.brand-mark {
  column-gap: 7px;
  min-height: 40px;
}

.brand-symbol {
  width: clamp(32px, 2.35vw, 38px) !important;
}

.brand-zh {
  width: clamp(48px, 3.5vw, 56px) !important;
}

.brand-en {
  width: clamp(48px, 3.5vw, 56px) !important;
  transform: translateX(4px) !important;
}

.brand-wordmark {
  gap: 3px;
}

.nav-cta {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(47, 43, 38, 0.12) !important;
}

@media (max-width: 720px) {
  .brand-mark {
    column-gap: 6px;
    min-height: 38px;
  }

  .brand-symbol {
    width: 31px !important;
  }

  .brand-zh,
  .brand-en {
    width: 48px !important;
  }

  .brand-en {
    transform: translateX(3px) !important;
  }
}
/* Comment pass: final logo optical nudge and more transparent glass. */
.site-header {
  background: rgba(255, 255, 255, 0.10) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 14px 34px rgba(16, 24, 20, 0.06) !important;
  backdrop-filter: blur(7px) saturate(1.16) !important;
  -webkit-backdrop-filter: blur(7px) saturate(1.16) !important;
}

.brand-en {
  transform: translateX(2px) !important;
}

.nav-cta {
  background: rgba(255, 255, 255, 0.11) !important;
  border-color: rgba(47, 43, 38, 0.1) !important;
}

@media (max-width: 720px) {
  .brand-en {
    transform: translateX(2px) !important;
  }
}

/* Header navigation hierarchy */
[id] {
  scroll-margin-top: 104px;
}

.anchor-target {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-header {
  overflow: visible;
}

.site-nav {
  gap: 4px;
}

.nav-link,
.nav-group > .nav-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border-radius: 999px;
  padding: 8px 10px;
  white-space: nowrap;
}

.nav-group {
  position: relative;
}

.nav-group > .nav-link::after {
  content: "v";
  margin-left: 6px;
  font-size: 9px;
  line-height: 1;
  opacity: 0.58;
  transform: translateY(-1px);
}

.nav-group--single > .nav-link::after {
  display: none;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  z-index: 100;
  display: grid;
  min-width: 178px;
  gap: 2px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  background: rgba(251, 248, 241, 0.82);
  box-shadow: 0 20px 48px rgba(16, 24, 20, 0.13);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -6px);
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(16px) saturate(1.12);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
}

.nav-dropdown a {
  display: block;
  border-radius: 12px;
  padding: 9px 11px;
  color: rgba(47, 43, 38, 0.74);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
  background: rgba(45, 58, 49, 0.08);
  color: var(--forest);
}

.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-toggle {
  display: none;
}

.nav-toggle-line,
.nav-toggle-text {
  pointer-events: none;
}

@media (max-width: 1080px) and (min-width: 901px) {
  .site-header {
    width: min(1240px, calc(100vw - 28px));
    padding-right: 12px;
    padding-left: 14px;
  }

  .site-nav {
    gap: 1px;
  }

  .nav-link,
  .nav-group > .nav-link {
    padding-right: 7px;
    padding-left: 7px;
  }

  .nav-cta {
    padding-right: 12px;
    padding-left: 12px;
  }
}

@media (max-width: 900px) {
  [id] {
    scroll-margin-top: 92px;
  }

  .site-header {
    align-items: center;
  }

  .nav-toggle {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(47, 43, 38, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: var(--forest);
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .nav-toggle-line {
    width: 16px;
    height: 1.5px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .nav-toggle-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .site-header.is-nav-open .nav-toggle-line:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .site-header.is-nav-open .nav-toggle-line:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    max-height: min(74vh, 640px);
    overflow: auto;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 24px;
    background: rgba(251, 248, 241, 0.92);
    box-shadow: 0 20px 54px rgba(16, 24, 20, 0.15);
    color: var(--forest);
    backdrop-filter: blur(18px) saturate(1.12);
    -webkit-backdrop-filter: blur(18px) saturate(1.12);
  }

  .site-header.is-nav-open .site-nav {
    display: grid;
  }

  .site-nav a:not(.nav-cta),
  .site-nav .nav-cta,
  .nav-link,
  .nav-group > .nav-link {
    display: inline-flex;
  }

  .nav-link,
  .nav-group > .nav-link,
  .nav-cta {
    width: 100%;
    min-height: 42px;
    justify-content: flex-start;
    border-radius: 14px;
    padding: 10px 12px;
    color: var(--forest) !important;
  }

  .nav-group {
    display: grid;
    gap: 3px;
  }

  .nav-group > .nav-link::after {
    margin-left: auto;
  }

  .nav-dropdown {
    position: static;
    display: grid;
    min-width: 0;
    gap: 2px;
    padding: 0 0 6px 12px;
    border: none;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-dropdown a {
    width: 100%;
    padding: 8px 10px;
    color: rgba(47, 43, 38, 0.66);
  }

  .nav-cta {
    justify-content: center;
    border-color: rgba(45, 58, 49, 0.26) !important;
    background: rgba(45, 58, 49, 0.08) !important;
  }
}
/* Header dropdown indicator refinement */
.nav-group > .nav-link::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

@media (max-width: 720px) {
  .logic-timeline {
    width: min(100%, 420px);
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 42px;
  }

  .logic-timeline::before {
    top: 36px;
    right: auto;
    bottom: 36px;
    left: 36px;
    width: 1px;
    height: auto;
  }

  .logic-timeline article {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    justify-items: start;
    padding: 0;
    text-align: left;
  }

  .logic-timeline span {
    margin: 0;
  }
}

/* Tablets retain the horizontal sequence; only phone-width screens stack it. */
@media (min-width: 721px) and (max-width: 1040px) {
  .logic-timeline {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* Keep the training-logic question as one deliberate desktop headline. */
#logic-title {
  font-size: clamp(31px, 4.5vw, 60px);
  white-space: nowrap;
}

@media (max-width: 720px) {
  #logic-title {
    white-space: normal;
  }

  .service-grid article {
    padding: 0;
  }
}

/* First visit: a continuous, image-led six-step introduction. */
.experience-section {
  display: block;
  background: #f4efe7;
}

.experience-heading {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.experience-heading .eyebrow {
  color: var(--clay);
}

.experience-heading h2 {
  margin: 12px 0 14px;
}

.experience-heading > p:last-child {
  margin: 0;
  color: var(--muted);
}

.experience-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 22px);
  margin-top: clamp(36px, 4vw, 56px);
}

.experience-steps article {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.experience-steps article:hover {
  transform: none;
  box-shadow: none;
}

.experience-step-number {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.experience-steps h3 {
  margin: 0;
  color: var(--forest);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.35;
}

.experience-steps p {
  min-height: 3.4em;
  margin: 10px 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.experience-image {
  display: block;
  width: 100%;
  aspect-ratio: 1.16 / 1;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(45, 58, 49, 0.08);
}

@media (max-width: 1120px) {
  .experience-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 34px;
  }
}

@media (max-width: 640px) {
  .experience-heading {
    text-align: left;
  }

  .experience-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 14px;
    margin-top: 32px;
  }

  .experience-steps p {
    min-height: 0;
    margin-bottom: 12px;
    font-size: 13px;
  }
}

/* Closing area: questions and the first-visit invitation belong to one calm final page. */
.photo-collage {
  background: #f1eee7;
  color: var(--forest);
}

.photo-collage .collage-intro > p:last-child {
  color: var(--muted);
}

/* Keep the three adjacent information sections on one warm-paper canvas. */
.service-band,
.experience-section,
.photo-collage {
  background: var(--paper);
  color: var(--forest);
}

.photo-collage .collage-intro h2 {
  color: var(--forest);
}

.photo-collage .collage-intro .eyebrow {
  color: var(--clay);
}

.closing-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(18px, 2.6vw, 34px);
  width: min(1180px, calc(100% - 44px));
  margin: clamp(54px, 8vw, 104px) auto;
}

.closing-faq,
.closing-book {
  border: 1px solid rgba(105, 91, 72, 0.14);
  border-radius: 22px;
  background: var(--paper-soft);
  box-shadow: 0 14px 34px rgba(45, 58, 49, 0.06);
}

.closing-faq {
  padding: clamp(26px, 4vw, 46px);
}

.closing-faq .eyebrow,
.closing-book .eyebrow {
  color: var(--clay);
}

.closing-faq h2,
.closing-book h2 {
  margin: 10px 0 24px;
  color: var(--forest);
}

.closing-faq .faq-list {
  margin: 0;
}

.closing-faq details {
  padding: 15px 0;
}

.closing-faq summary {
  font-size: 16px;
  font-weight: 650;
}

.closing-faq details p {
  margin: 10px 30px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.closing-book {
  position: relative;
  display: flex;
  min-height: 100%;
  align-items: flex-end;
  overflow: hidden;
  color: var(--paper-soft);
  background: var(--forest);
}

.closing-book-image {
  position: absolute;
  inset: 0;
  opacity: 0.54;
  background:
    linear-gradient(180deg, rgba(31, 43, 35, 0.14), rgba(31, 43, 35, 0.82)),
    var(--section-background-image, none) center / cover no-repeat;
}

.closing-book-copy {
  position: relative;
  z-index: 1;
  max-width: 510px;
  padding: clamp(30px, 5vw, 54px);
}

.closing-book h2,
.closing-book-copy > p:not(.eyebrow) {
  color: var(--paper-soft);
}

.closing-book h2 {
  max-width: 11em;
  font-size: clamp(34px, 3.5vw, 46px);
  line-height: 1.2;
}

.closing-book-copy > p:not(.eyebrow) {
  margin: 0;
  line-height: 1.8;
}

.closing-book .hero-actions {
  margin-top: 26px;
}

.closing-book .button-ghost.dark {
  border-color: rgba(251, 248, 241, 0.68);
  color: var(--paper-soft);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) minmax(180px, 0.8fr) minmax(260px, 1.2fr);
  gap: clamp(26px, 5vw, 72px);
  padding: 48px max(22px, calc((100vw - 1180px) / 2)) 42px;
  border-top: 1px solid rgba(105, 91, 72, 0.16);
  background: #ebe6dc;
  color: var(--muted);
  font-size: 13px;
}

.footer-brand .brand-mark {
  width: fit-content;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.footer-brand .brand-symbol {
  width: 32px;
}

.footer-brand .brand-zh {
  width: 58px;
}

.footer-brand .brand-en {
  width: 46px;
}

.footer-brand p,
.footer-note span {
  display: block;
  margin: 16px 0 0;
  line-height: 1.75;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 11px 22px;
  align-content: start;
}

.footer-nav p,
.footer-note > p {
  grid-column: 1 / -1;
  margin: 0 0 4px;
  color: var(--forest);
  font-weight: 750;
}

.footer-nav a {
  color: var(--muted);
}

.footer-nav a:hover {
  color: var(--forest);
}

@media (max-width: 860px) {
  .closing-section {
    grid-template-columns: 1fr;
  }

  .closing-book {
    min-height: 430px;
  }

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

  .footer-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .closing-section {
    width: calc(100% - 36px);
    gap: 14px;
    margin: 64px auto;
  }

  .closing-faq {
    padding: 26px 20px;
  }

  .closing-faq h2,
  .closing-book h2 {
    margin-bottom: 18px;
  }

  .closing-book {
    min-height: 390px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px 18px 104px;
  }

  .footer-note {
    grid-column: auto;
  }
}

/* Real studio wall: use the supplied photography as the material, not tinted placeholders. */
.collage-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 184px;
  gap: 16px;
}

.collage-card {
  position: relative;
  display: block;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: var(--forest);
}

.collage-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 560ms ease;
}

.collage-card:hover img {
  transform: scale(1.035);
}

.collage-card figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: grid;
  gap: 5px;
  padding: 42px 18px 18px;
  background: linear-gradient(transparent, rgba(24, 30, 25, 0.78));
  color: var(--paper-soft);
}

.collage-card figcaption span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.collage-card figcaption strong {
  font-family: "RuoyuDisplay", "Songti SC", "SimSun", serif;
  font-size: clamp(19px, 2vw, 28px);
  font-weight: 400;
  line-height: 1.18;
}

.collage-studio,
.collage-equipment {
  grid-column: span 3;
  grid-row: span 2;
}

.collage-training {
  grid-column: span 5;
  grid-row: span 2;
}

.collage-equipment {
  grid-column: span 4;
}

.collage-mid,
.collage-record,
.collage-action,
.collage-space-detail {
  grid-column: span 3;
}

.collage-studio img {
  object-position: 60% center;
}

.collage-equipment img {
  object-position: center 35%;
}

.collage-record img {
  object-position: 58% center;
}

@media (max-width: 1040px) {
  .collage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 210px;
  }

  .collage-studio,
  .collage-equipment {
    grid-column: span 1;
    grid-row: span 2;
  }

  .collage-training,
  .collage-space-detail {
    grid-column: span 2;
    grid-row: span 1;
  }

  .collage-mid,
  .collage-record,
  .collage-action {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .collage-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
    gap: 12px;
  }

  .collage-studio,
  .collage-equipment,
  .collage-training,
  .collage-space-detail,
  .collage-mid,
  .collage-record,
  .collage-action {
    grid-column: span 1;
    grid-row: span 1;
  }

  .collage-card figcaption {
    padding: 36px 16px 16px;
  }
}

/* Each title line is intentional: never wrap the booking invitation to a third line. */
.closing-book h2 {
  max-width: none;
  font-size: clamp(27px, 1.8vw, 30px);
  line-height: 1.22;
}

.closing-book h2 span {
  display: block;
  white-space: nowrap;
}

/* Closing invitation: the bright real-space photo needs dark, readable type. */
.closing-book {
  color: var(--forest);
  background: #e9efeb;
}

.closing-book-image {
  opacity: 1;
  background:
    linear-gradient(90deg, rgba(248, 246, 239, 0.94) 0%, rgba(248, 246, 239, 0.78) 54%, rgba(248, 246, 239, 0.3) 100%),
    var(--section-background-image, none) 55% center / cover no-repeat;
}

/* Keep the first frame visible before playback and whenever motion is disabled. */
.hero {
  background:
    linear-gradient(rgba(21, 49, 59, 0.08), rgba(21, 49, 59, 0.08)),
    url("./assets/posters/hero-poster.webp") center / cover no-repeat,
    #15313b;
}

@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }
}

.closing-book .eyebrow {
  color: var(--clay-deep);
}

.closing-book h2,
.closing-book-copy > p:not(.eyebrow) {
  color: var(--forest);
}

.closing-book .button-ghost.dark {
  border-color: rgba(45, 58, 49, 0.62);
  background: rgba(251, 248, 241, 0.32);
  color: var(--forest);
}

/* Footer contact and QR layout */
.site-footer {
  grid-template-columns: minmax(190px, 1.05fr) minmax(145px, 0.72fr) minmax(235px, 1.2fr) minmax(205px, 0.9fr);
  align-items: start;
}

.footer-contact {
  display: grid;
  gap: 9px;
  align-content: start;
}

.footer-contact > p {
  margin: 0 0 4px;
  color: var(--forest);
  font-weight: 700;
}

.footer-contact a,
.footer-contact span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.footer-contact a:hover {
  color: var(--accent);
}

.footer-qr {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-content: start;
}

.footer-qr figure {
  display: grid;
  gap: 8px;
  margin: 0;
  color: var(--forest);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.footer-qr img {
  width: 100%;
  max-width: 112px;
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 5px;
  border: 1px solid rgba(45, 60, 49, 0.14);
  border-radius: 10px;
  background: var(--paper);
  object-fit: contain;
}

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

  .footer-qr {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, 112px);
  }
}

@media (max-width: 640px) {
  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-qr {
    grid-column: auto;
  }
}
