:root {
  --paper: #efe6d9;
  --paper-bright: #f8f4ee;
  --ink: #231d18;
  --muted: rgba(35, 29, 24, 0.72);
  --muted-strong: rgba(35, 29, 24, 0.84);
  --forest: #2f5649;
  --forest-soft: rgba(47, 86, 73, 0.12);
  --line: rgba(35, 29, 24, 0.12);
  --line-hero: rgba(248, 242, 234, 0.22);
  --shadow: 0 32px 80px rgba(35, 29, 24, 0.14);
  --shadow-soft: 0 20px 54px rgba(35, 29, 24, 0.1);
  --radius-lg: 2rem;
  --radius-md: 1.15rem;
  --page-max: 1180px;
  --header-height: 5.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    radial-gradient(circle at top left, rgba(47, 86, 73, 0.12), transparent 28%),
    linear-gradient(180deg, #f5ecdf 0%, #efe6d9 38%, #fbf7f1 100%);
  background-size: 100% 9px, 100% 100%, 100% 100%;
  color: var(--ink);
  font-family: "Instrument Sans", sans-serif;
  text-rendering: optimizeLegibility;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.5rem;
  color: rgba(248, 242, 234, 0.94);
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    color 220ms ease,
    padding 220ms ease,
    backdrop-filter 220ms ease,
    transform 220ms ease,
    opacity 500ms ease;
}

.site-header.is-scrolled {
  background: rgba(248, 244, 238, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(35, 29, 24, 0.08);
  color: var(--ink);
  padding: 0.8rem 1.3rem;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  display: block;
  width: clamp(6.8rem, 10vw, 8.6rem);
  height: auto;
  filter: brightness(0) invert(0.96);
  transform-origin: left center;
  transition:
    filter 220ms ease,
    opacity 220ms ease,
    transform 220ms ease,
    width 220ms ease;
}

.site-nav {
  display: flex;
  gap: 1.2rem;
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  opacity: 0.82;
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  background: currentColor;
  transition: transform 220ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="true"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="true"] {
  opacity: 1;
}

.site-header.is-scrolled .brand-logo {
  filter: none;
  width: clamp(6.1rem, 8vw, 7.4rem);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(18rem, 38rem) minmax(12rem, 1fr);
  align-items: end;
  padding: calc(var(--header-height) + 1.75rem) 1.75rem 2.6rem;
  overflow: clip;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.06);
  filter: saturate(0.95) contrast(1.02);
  animation: heroZoom 10s ease-out forwards;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(21, 20, 16, 0.74) 0%, rgba(21, 20, 16, 0.36) 34%, rgba(21, 20, 16, 0.1) 100%),
    linear-gradient(180deg, rgba(21, 20, 16, 0.12) 0%, rgba(21, 20, 16, 0.58) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  color: #f8f2ea;
  max-width: min(34rem, 70vw);
  align-self: end;
  padding-bottom: clamp(1rem, 3vw, 2.4rem);
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.82;
}

.hero h1,
.section-heading h2,
.shared-intro h2,
.final-cta-panel h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.3rem, 6.6vw, 6.25rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
}

.lead {
  max-width: 28rem;
  margin: 1rem 0 0;
  font-size: clamp(0.98rem, 1.2vw, 1.12rem);
  line-height: 1.65;
  color: rgba(248, 242, 234, 0.88);
}

.hero h1,
.lead,
.hero-link {
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.35rem;
  padding: 0 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition:
    transform 220ms ease,
    background-color 220ms ease,
    color 220ms ease,
    border-color 220ms ease;
}

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

.button-solid {
  background: var(--paper-bright);
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.hero-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 3.2rem;
  color: rgba(248, 242, 234, 0.88);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-link::after {
  content: "";
  width: 2.3rem;
  height: 1px;
  margin-left: 0.9rem;
  background: currentColor;
  transition:
    width 220ms ease,
    transform 220ms ease;
}

.hero-link:hover::after,
.hero-link:focus-visible::after {
  width: 3rem;
  transform: translateX(4px);
}

.button-ghost {
  border: 1px solid rgba(248, 242, 234, 0.42);
  color: #f8f2ea;
  background: rgba(248, 242, 234, 0.08);
}

.section {
  position: relative;
  width: min(var(--page-max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 7rem 0;
}

.section-heading {
  max-width: 40rem;
  margin-bottom: 3.35rem;
}

.section-heading h2,
.shared-intro h2,
.final-cta-panel h2 {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  color: var(--ink);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(18rem, 0.74fr);
  gap: clamp(1.75rem, 4vw, 4rem);
  align-items: start;
}

.editorial-frame,
.room-card,
.shared-primary,
.shared-secondary,
.shared-wide,
.rhythm-photo {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  background: #ddd2c1;
}

.editorial-frame img,
.room-card img,
.shared-primary img,
.shared-secondary img,
.shared-wide img,
.rhythm-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 300ms ease;
}

.editorial-frame:hover img,
.room-card:hover img,
.shared-primary:hover img,
.shared-secondary:hover img,
.shared-wide:hover img,
.rhythm-photo:hover img {
  transform: scale(1.03);
}

.editorial-frame {
  aspect-ratio: 0.92 / 1.08;
}

.intro-copy {
  display: grid;
  gap: 1.5rem;
  padding-top: 1.2rem;
}

.intro-copy p,
.rooms-copy p,
.shared-intro p,
.rhythm-step p,
.final-cta-panel p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.8;
  color: var(--muted);
}

.line-list {
  display: grid;
  gap: 1.25rem;
}

.line-item {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.line-item h3,
.rhythm-step h3,
.rooms-copy .text-link {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.3;
}

.line-item p {
  margin-top: 0.55rem;
}

.rhythm {
  width: min(1300px, calc(100% - 2.5rem));
}

.rhythm-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.8fr);
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: stretch;
}

.rhythm-photo {
  min-height: 32rem;
}

.rhythm-steps {
  display: grid;
  align-content: center;
  gap: 1.2rem;
}

.rhythm-step {
  padding: 1.15rem 0 1.35rem;
  border-top: 1px solid var(--line);
}

.step-number {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--forest);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.rooms-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.rooms-copy {
  padding-right: 1rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 1.35rem;
  color: var(--forest);
  font-weight: 600;
}

.text-link::after {
  content: "↗";
  margin-left: 0.45rem;
}

.room-card {
  display: grid;
  min-height: 28rem;
}

.room-card-tall {
  grid-row: span 2;
  min-height: 44rem;
}

.room-card figcaption {
  padding: 0.95rem 0.15rem 0;
  background: transparent;
  color: var(--muted-strong);
  font-size: 0.92rem;
  line-height: 1.6;
}

.shared-life {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

.shared-intro {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.shared-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.shared-primary {
  grid-column: span 2;
  min-height: 35rem;
}

.shared-secondary {
  min-height: 18rem;
}

.shared-wide {
  grid-column: span 2;
  min-height: 17rem;
}

.final-cta {
  width: min(1280px, calc(100% - 2.5rem));
  padding-top: 4rem;
  padding-bottom: 7rem;
}

.final-cta-panel {
  position: relative;
  padding: clamp(2rem, 6vw, 5rem);
  border-radius: calc(var(--radius-lg) + 0.2rem);
  overflow: hidden;
  min-height: 32rem;
  display: grid;
  align-content: end;
  color: #f7efe4;
  background:
    linear-gradient(90deg, rgba(18, 18, 14, 0.7) 0%, rgba(18, 18, 14, 0.28) 50%, rgba(18, 18, 14, 0.12) 100%),
    url("./ai2/MEITU_20260408_221240862.jpg") center 44% / cover no-repeat;
}

.final-cta-panel p,
.final-cta-panel .eyebrow {
  color: rgba(247, 239, 228, 0.85);
  max-width: 34rem;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

.parallax-frame {
  will-change: transform;
}

.parallax-image {
  transform: scale(1.08);
  will-change: transform;
}

body:not(.is-ready) .site-header {
  opacity: 0;
  transform: translateY(-16px);
}

.hero-copy > * {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 750ms ease,
    transform 750ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.is-ready .hero-copy > * {
  opacity: 1;
  transform: translateY(0);
}

body.is-ready .hero-copy > :nth-child(1) {
  transition-delay: 110ms;
}

body.is-ready .hero-copy > :nth-child(2) {
  transition-delay: 200ms;
}

body.is-ready .hero-copy > :nth-child(3) {
  transition-delay: 290ms;
}

body.is-ready .site-header {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroZoom {
  from {
    transform: scale(1.12);
  }
  to {
    transform: scale(1.04);
  }
}

@media (max-width: 1080px) {
  .site-nav {
    gap: 1rem;
    font-size: 0.8rem;
  }

  .intro-grid,
  .rhythm-stage,
  .shared-life,
  .rooms-layout {
    grid-template-columns: 1fr;
  }

  .rooms-copy {
    padding-right: 0;
    max-width: 38rem;
  }

  .room-card-tall {
    grid-row: auto;
    min-height: 34rem;
  }

  .shared-intro {
    position: static;
  }

  .shared-primary {
    min-height: 28rem;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 1rem 1rem 0.9rem;
  }

  .site-nav {
    display: none;
  }

  .brand-logo {
    width: clamp(6.6rem, 26vw, 7.8rem);
  }

  .hero {
    grid-template-columns: 1fr;
    padding: calc(var(--header-height) + 1.2rem) 1rem 1.1rem;
    min-height: 100svh;
  }

  .hero-copy {
    max-width: 100%;
    padding-bottom: 0;
  }

  .hero h1 {
    font-size: clamp(3rem, 13vw, 4.25rem);
  }

  .section,
  .rhythm,
  .final-cta {
    width: calc(100% - 1.4rem);
    padding: 4.5rem 0;
  }

  .editorial-frame,
  .rhythm-photo,
  .shared-primary,
  .final-cta-panel {
    min-height: 22rem;
  }

  .room-card,
  .room-card-tall,
  .shared-secondary,
  .shared-wide {
    min-height: 18rem;
  }

  .shared-gallery {
    grid-template-columns: 1fr;
  }

  .shared-primary,
  .shared-wide {
    grid-column: auto;
  }

  .button {
    width: 100%;
  }

  .hero-link {
    width: 100%;
    justify-content: center;
    min-height: 2.4rem;
    font-size: 0.86rem;
  }

  .hero-link::after {
    width: 0;
    margin-left: 0;
  }
}

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

  .hero-image,
  .reveal,
  .button,
  .hero-link,
  .site-header,
  .site-nav a::after,
  .parallax-image {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-copy > * {
    opacity: 1;
    transform: none;
  }
}
