/* Home page — layout matches design mockup */
.page-home {
  --home-logo-size: clamp(138px, 16vw, 188px);
  --home-nav-row: var(--nav-row);
  --home-logo-shift: clamp(2.65rem, 10vw, 5rem);
  --home-text-color: #2c2c2c;
  --home-logo-center-y: calc(-1 * var(--home-nav-row) + 1.35rem + var(--home-logo-size) / 2);
  background-color: var(--bg);
  background-image: url("../assets/home/bg-page-base.jpg");
  background-size: cover;
  background-attachment: scroll;
  background-position: center top;
}

/* ----- Full-screen brand intro ----- */
/* Full logo canvas: 2890.64 × 2917.41
   Part2 (tree): offset x 319.33, width 2254.99
   Part1 (wordmark): y 1238.99, height 349.06 */
.page-home.is-intro-playing {
  overflow: hidden;
}

/* 本会话已看过开场：直接隐藏，避免闪一下 */
html.intro-seen .intro-splash {
  display: none !important;
}

.intro-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 5vw, 3rem);
  box-sizing: border-box;
  background-color: #f0ebe3;
  background-image: url("../assets/home/bg-page-base.jpg");
  background-size: cover;
  background-position: center;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  animation: intro-splash-exit 0.7s ease 3.3s forwards;
}

.intro-splash.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  animation: none;
}

.intro-splash__stage {
  position: relative;
  width: min(72vw, 420px);
  aspect-ratio: 2890.64 / 2917.41;
  opacity: 0;
  animation: intro-stage-in 0.5s ease 0.1s forwards;
}

.intro-splash__part {
  position: absolute;
  display: block;
  margin: 0;
  pointer-events: none;
  user-select: none;
}

/* Tree / illustration layer */
.intro-splash__part--2 {
  top: 0;
  left: 11.048%;
  width: 78.01%;
  height: 100%;
  object-fit: fill;
  opacity: 1;
  animation: intro-part-fade 0.8s ease 1.2s forwards;
}

/* Wordmark + seal — sits above the tree */
.intro-splash__part--1 {
  top: 42.468%;
  left: 0;
  width: 100%;
  height: 11.965%;
  object-fit: fill;
  z-index: 1;
  opacity: 1;
  animation: intro-part-fade 0.7s ease 2.4s forwards;
}

.intro-splash__skip {
  position: absolute;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  margin: 0;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(44, 44, 44, 0.28);
  background: rgba(240, 235, 227, 0.72);
  color: #2c2c2c;
  font-family: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  opacity: 0;
  animation: intro-stage-in 0.35s ease 0.5s forwards;
}

.intro-splash__skip:hover,
.intro-splash__skip:focus-visible {
  border-color: rgba(44, 44, 44, 0.55);
  background: rgba(240, 235, 227, 0.92);
  outline: none;
}

@keyframes intro-stage-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes intro-part-fade {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes intro-splash-exit {
  from {
    opacity: 1;
    visibility: visible;
  }
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@media (max-width: 640px) {
  .intro-splash__stage {
    width: min(78vw, 280px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-splash,
  .intro-splash__stage,
  .intro-splash__part--1,
  .intro-splash__part--2,
  .intro-splash__skip {
    animation: none !important;
  }

  .intro-splash {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

.page-home .site-header {
  z-index: 40;
  min-height: var(--header-h);
  height: auto;
  background-color: rgba(240, 235, 227, 0);
  background-image: url("../assets/home/bg-page-base.jpg");
  background-size: cover;
  background-attachment: scroll;
  background-position: center top;
  backdrop-filter: none;
  border-bottom: none;
  box-shadow: none;
  overflow: visible;
}

.page-home .header-inner--nav-only {
  min-height: var(--header-h);
  padding-top: 0.85rem;
  padding-bottom: 0;
  justify-content: flex-end;
  box-sizing: border-box;
}

.page-home .hero {
  padding-top: 0;
  padding-bottom: 10px;
  overflow: visible;
}

.page-home .hero-grid {
  align-items: stretch;
  /* Right column matches value-copy (650px) so both blocks share one center line */
  grid-template-columns: minmax(0, 1fr) minmax(0, 650px);
}

/* Logo + tagline group — logo centered in column, text left-aligned */
.page-home .hero-brand-head {
  display: block;
  width: 100%;
  margin-left: 0;
  margin-top: calc(-1 * var(--home-nav-row) + 1.35rem);
  margin-bottom: 0;
  overflow: visible;
}

/* Logo: centered within hero-copy column — only this sits above the header */
.page-home .hero-logo {
  display: block;
  width: var(--home-logo-size);
  margin-inline: auto;
  margin-bottom: 0.35rem;
  position: relative;
  z-index: 100;
  color: inherit;
  text-decoration: none;
}

.page-home .hero-logo:hover {
  text-decoration: none;
}

.page-home .hero-logo-img {
  width: var(--home-logo-size);
  height: var(--home-logo-size);
  display: block;
  object-fit: contain;
}

/* 隐·修 | Re·fine Studio — 32pt mixed fonts */
.page-home .hero-tagline {
  margin: 0 0 0.55rem;
  padding-left: 0;
  font-size: 32pt;
  line-height: 1.15;
  font-weight: 400;
  white-space: nowrap;
  color: rgba(0, 0, 0, 1);
}

.page-home .hero-tagline .tagline-zh {
  font-family: var(--font-zh);
}

.page-home .hero-tagline .tagline-dot,
.page-home .brand-dot {
  font-family: "Noto Serif SC", serif;
}

html[lang="zh-Hans"] .page-home .hero-tagline .tagline-dot,
html[lang="zh-Hans"] .page-home .brand-dot {
  font-family: "Noto Serif SC", serif;
}

.page-home .hero-tagline .tagline-en {
  font-family: "Mongolian Baiti", Georgia, "Times New Roman", serif;
}

/* Text block — brush fills this box only, above page bg, below text */
.page-home .hero-text-block {
  position: relative;
  z-index: 0;
  isolation: isolate;
  width: 100%;
  max-width: 430px;
  padding-left: 0;
  overflow: visible;
  text-align: left;
}

.page-home .hero-text-block::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 1.85rem;
  bottom: -2.15rem;
  background: url("../assets/home/hero-brush.jpg") left 58% / cover no-repeat;
  opacity: 0.75;
  pointer-events: none;
  z-index: 0;
}

.page-home .hero-text-block > * {
  position: relative;
  z-index: 1;
}

/* Subtitle — 20pt */
.page-home .hero-title {
  margin: 0 0 1rem;
  padding-left: 0;
  font-family: "Mongolian Baiti", Georgia, "Times New Roman", serif;
  font-size: 20pt;
  font-weight: 400;
  line-height: 1.28;
  color: rgba(87, 64, 40, 1);
}

/* Body copy — width aligns with title, colour #2c2c2c */
.page-home .hero-lead {
  margin: 0 0 1.1rem;
  padding-left: 0;
  max-width: none;
  color: var(--home-text-color);
  font-family: "Mongolian Baiti", Georgia, "Times New Roman", serif;
  font-size: 11pt;
  font-weight: 500;
  line-height: 1.55;
}

html[lang="zh-Hans"] .page-home .hero-title,
html[lang="zh-Hans"] .page-home .hero-lead,
html[lang="zh-Hans"] .page-home .hero-lead p,
html[lang="zh-Hans"] .page-home .contact-block p {
  font-family: var(--font-zh);
}

.page-home .hero-lead p {
  margin: 0 0 0.55rem;
  font-family: inherit;
}

.page-home .hero-lead p:last-child {
  margin-bottom: 0;
}

.page-home .hero-location,
.page-home .hero-cta {
  padding-left: 0;
  text-align: left;
}

/* Push location + CTA to column bottom so CTA lines up with compare bottom */
.page-home .hero-location {
  margin-top: auto;
}

.page-home .hero-cta .btn {
  padding: 0.72rem 52px;
  border-radius: 8px;
}

.page-home .hero-cta .btn-outline {
  margin-left: 25px;
  margin-right: 25px;
}

/* Hero before/after — top at logo center, bottom aligned with CTA */
.page-home .hero-visual {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  height: 100%;
  min-height: 100%;
  padding-top: var(--home-logo-center-y);
  box-sizing: border-box;
}

.page-home .hero-visual .compare-static {
  flex: 1 1 auto;
  gap: clamp(0.4rem, 0.85vw, 0.65rem);
  overflow: visible;
  box-shadow: none;
  border-radius: 0;
  align-items: stretch;
  margin-top: 0;
  margin-inline: 0;
  width: 100%;
  max-width: 650px;
  height: auto;
  min-height: 0;
}

.page-home .hero-visual .compare-pane {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: var(--shadow);
  height: 100%;
  min-height: 0;
}

.page-home .hero-visual .compare-pane img {
  flex: 1 1 0;
  width: 100%;
  min-height: 0;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center center;
}

.page-home .hero-visual .compare-pane figcaption {
  position: static;
  flex-shrink: 0;
  font-size: 1.12rem;
  font-weight: 600;
  font-style: normal;
  padding: 0.55rem 0.75rem;
}

.page-home .hero-visual .compare-before figcaption {
  background: #353535;
  color: #fff;
}

.page-home .hero-visual .compare-after figcaption {
  background: rgba(207, 186, 164, 1);
  color: #353535;
}

.page-home .hero-copy {
  display: flex;
  flex-direction: column;
  padding-top: 0;
  width: 450px;
  max-width: 100%;
  height: 100%;
  min-height: 100%;
}

.page-home .value-section {
  background: transparent;
  border-top: none;
  height: auto;
  width: auto;
  max-width: none;
  margin-inline: auto;
  padding: 12px 0;
  text-align: center;
}

.page-home .value-section::after {
  content: none;
}

.page-home .value-grid {
  display: grid;
  /* Same right column as hero-grid so value-copy lines up with compare-static */
  grid-template-columns: minmax(0, 1fr) minmax(0, 650px);
  gap: 2rem;
  align-items: center;
  position: relative;
}

.page-home .value-grid::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: min(48%, 520px);
  height: 100%;
  background: url("../assets/bg-accent.jpg") right center / cover no-repeat;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.page-home .value-grid > * {
  position: relative;
  z-index: 1;
}

.page-home .value-features {
  width: min(100%, 300px);
  margin-top: 0;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  justify-content: flex-start;
}

.page-home .value-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 650px;
  justify-self: stretch;
  margin: 25px 0 0;
  padding: 1.25rem 20px;
  min-width: 0;
  overflow: visible;
}

@media (max-width: 860px) {
  .page-home .hero-grid {
    align-items: center;
    grid-template-columns: 1fr;
  }

  .page-home .hero-copy {
    height: auto;
    min-height: 0;
  }

  .page-home .hero-location {
    margin-top: 0;
  }

  .page-home .hero-visual {
    height: auto;
    min-height: 0;
    padding-top: 0;
  }

  .page-home .hero-visual .compare-static {
    flex: none;
    margin-top: 0;
    width: 100%;
    height: auto;
  }

  .page-home .hero-visual .compare-pane {
    height: auto;
    min-height: 0;
  }

  .page-home .hero-visual .compare-pane img {
    flex: none;
    aspect-ratio: 436 / 578;
    min-height: unset;
  }

  .page-home .value-section {
    background: transparent;
    width: 100%;
    padding: 12px 0;
  }

  .page-home .value-grid {
    grid-template-columns: 1fr;
    align-items: center;
  }

  .page-home .value-grid::after {
    width: 100%;
    opacity: 0.18;
  }

  .page-home .value-features {
    order: 2;
    margin-left: 0;
    padding-left: 0;
    margin-inline: auto;
  }

  .page-home .value-copy {
    order: 1;
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
    margin-top: 0;
    padding-left: 0;
  }
}

.page-home .services,
.page-home .contact-cta,
.page-home .footer-bottom-section {
  position: relative;
  overflow: hidden;
  background-color: transparent;
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

.page-home .services::before,
.page-home .contact-cta::before,
.page-home .footer-bottom-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/home/bg-waist.png") center center / 100% auto no-repeat;
  pointer-events: none;
  z-index: 0;
}

.page-home .services > .wrap,
.page-home .contact-cta > .wrap,
.page-home .footer-bottom-section > .footer-bottom {
  position: relative;
  z-index: 1;
}

.page-home #services {
  padding-top: 20px;
  padding-bottom: 40px;
}

.page-home #gallery {
  border-top: 1px solid rgba(87, 64, 40, 0.16);
  padding-top: 20px;
  padding-bottom: 30px;
}

.page-home #contact {
  padding-top: 10px;
  padding-bottom: 20px;
  margin-bottom: 0;
}

.page-home .contact-block .icon-svg {
  width: 35px;
  height: 35px;
  margin-top: 5px;
  margin-bottom: 5px;
}

.page-home .contact-block p {
  padding-top: 0px;
  padding-bottom: 0px;
  font-size: 18px;
  font-family: "Mongolian Baiti", var(--font-brand);
  height: auto;
  line-height: 1.35;
}

.page-home .contact-columns .contact-block:nth-child(2) {
  padding-top: 10px;
  align-items: center;
}

.page-home .contact-columns .contact-block:nth-child(2) p {
  margin-top: 0;
  height: auto;
}

.page-home .contact-columns .contact-block:nth-child(2) a {
  padding-top: 0;
  margin-top: 50px;
}

.page-home .contact-block a {
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  padding-top: 5px;
  margin-top: 10px;
  margin-bottom: 0;
}

.page-home .contact-action .btn {
  margin-top: -20px;
  width: 200px;
  height: 40px;
  border-radius: 5px;
  font-size: 20px;
  font-weight: 400;
  line-height: 0;
  color: rgba(255, 255, 255, 1);
}

.page-home #contact-title {
  color: var(--brown);
  font-weight: 500;
  font-size: 42px;
  height: 50px;
  margin: 0;
}

.page-home .contact-bar .contact-intro .deco-line {
  width: 200px;
  margin-top: 15px;
}

.page-home .contact-bar .contact-intro p {
  font-size: 18px;
  color: var(--brown);
}

.page-home .site-footer {
  padding-top: 0;
}

.page-home #gallery .section-head .deco-line {
  width: 200px;
}

.page-home #gallery .filter-tabs {
  margin-top: -20px;
}

.page-home #services .section-head {
  margin-bottom: 25px;
}

.page-home #services .section-head .deco-line {
  width: 200px;
}

.page-home #services .section-head .deco-line img {
  width: 400px;
  height: fit-content;
}

.page-home #services .card-grid.four {
  margin-left: 0;
}

.page-home #services .section-cta {
  margin-top: 20px;
}

.page-home #services .section-cta .btn,
.page-home #gallery .section-cta .btn {
  width: 220px;
  height: 40px;
  border-radius: 5px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  vertical-align: middle;
}

.page-home .service-card {
  text-align: center;
  border-radius: 10px;
  background: rgba(87, 64, 40, 0.07);
  border-width: 2px;
}

.page-home .service-img {
  aspect-ratio: auto;
  width: 273px;
  height: 215px;
  overflow: visible;
}

.page-home .service-img img {
  width: 273px;
  height: 220px;
  border-radius: 10px 10px 0 0;
}

.page-home .service-card h3 {
  margin: 20px 0.85rem 0.25rem;
  font-size: 20px;
}

.page-home .service-card .service-list {
  margin-left: 0.85rem;
  margin-right: 0.85rem;
  font-size: 16px;
  text-align: center;
}

@media (max-width: 640px) {
  .page-home {
    --home-nav-row: 4.25rem;
    --header-h: calc(var(--home-nav-row) + 0.85rem);
    --home-logo-shift: 0;
  }

  .page-home #services .card-grid.four {
    margin-left: 0;
  }

  .page-home .hero-brand-head {
    margin-left: 0;
    margin-top: calc(-1 * var(--home-nav-row) + 0.85rem);
  }

  .page-home .hero-logo {
    width: clamp(72px, 8vw, 92px);
    margin-inline: auto;
  }

  .page-home .hero-logo-img {
    width: clamp(72px, 8vw, 92px);
    height: clamp(72px, 8vw, 92px);
  }

  .page-home .hero-tagline {
    font-size: clamp(22pt, 6vw, 32pt);
    white-space: normal;
  }

  .page-home .hero-text-block {
    max-width: none;
  }

  .page-home .hero-text-block::before {
    background-size: cover;
  }

  .page-home .hero-title,
  .page-home .hero-lead,
  .page-home .hero-location,
  .page-home .hero-cta {
    padding-left: 0;
  }

  .page-home .hero-title {
    font-size: clamp(16pt, 4.5vw, 20pt);
  }

  .page-home .site-nav {
    background-color: var(--bg);
    background-image: url("../assets/home/bg-page-base.jpg");
    background-size: cover;
    background-attachment: scroll;
    background-position: center top;
    border-bottom: none;
  }
}
