/* ============================================================
   CHANGSHA FRAMES — index (home)
   Layout & colors follow the reference "warm paper" design.
   All class names / data-hooks used by shared.js + index.js
   are unchanged.
   ============================================================ */

main { position: relative; z-index: 2; }

h2 {
  font-size: clamp(34px, 4.2vw, 52px);
  font-weight: 900;
  line-height: 1.2;
}

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 110px 48px 40px 48px;
}
.section.wide { max-width: 1400px; }

.step-label { margin-bottom: 26px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 92vh;
  min-height: 640px;
  overflow: hidden;
}
.hero-bg-wrap { position: absolute; inset: 0; }
.hero-bg { width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background: rgba(43, 33, 24, .32);
}

.topbar {
  position: absolute;
  top: 26px; left: 0; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 0 48px;
  z-index: 20;
  transition: padding .3s ease, background-color .3s ease, box-shadow .3s ease;
}
.brand {
  font-size: 18px; font-weight: 900; letter-spacing: .04em;
  color: var(--cream-2); white-space: nowrap;
}
.brand span { color: var(--orange); }
.nav-links {
  background: var(--cream);
  padding: 6px; border-radius: 999px;
  display: flex; gap: 4px;
}
.nav-links a {
  position: relative;
  padding: 9px 18px; border-radius: 999px;
  font-size: 14px; font-weight: bold; color: var(--ink);
  transition: background-color .25s ease;
}
.nav-links a:hover { background: var(--sand); }
.book-top {
  white-space: nowrap;
  padding: 9px 20px;
  font-size: 12px;
  border-radius: 999px;
}
/* mobile-only line break inside section titles */
.br-m { display: none; }

/* scrolled: bar docks to top as a cream strip */
.topbar.scrolled {
  position: fixed; top: 0;
  background: rgba(250, 243, 231, .96);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 0 var(--sand);
  padding: 10px 48px;
}
.topbar.scrolled .brand { color: var(--ink); }
.topbar.scrolled .nav-links { background: var(--sand); }

.hero-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  padding-top: 14vh;
  text-align: center;
  z-index: 5;
}
.hero-kicker { color: var(--cream-3); margin-bottom: 18px; }
.hero-kicker::before { background: var(--orange); }
.hero-title {
  font-size: clamp(64px, 11.5vw, 150px);
  font-weight: 900;
  color: var(--cream-2);
  line-height: 1;
  text-shadow: 0 4px 30px rgba(43, 33, 24, .35);
}
.hero-title em { font-style: normal; color: var(--orange); }

.hero-row {
  position: absolute;
  bottom: 100px; left: 48px; right: 48px;
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 20px;
  z-index: 5;
}
.hero-blurb { color: var(--cream-3); font-size: 15px; font-weight: bold; }
.pill-light {
  background: var(--cream); color: var(--ink);
  padding: 10px 22px; border-radius: 999px;
  font-size: 14px; font-weight: bold; white-space: nowrap;
}

.hero-dashed {
  position: absolute;
  bottom: 0; left: 0; width: 100%;
  border-top: 2px dashed rgba(250, 243, 231, .85);
  display: flex; justify-content: space-between; gap: 12px;
  padding: 26px 48px 20px 48px;
  z-index: 5;
}
.tag-link {
  color: #FFE9C8; font-size: 14px; font-weight: bold;
  transition: color .25s ease;
}
.tag-link span { transition: margin-left .25s ease; display: inline-block; }
.tag-link:hover { color: #fff; }
.tag-link:hover span { margin-left: 6px; }

/* marquee under hero */
.hero-marquee {
  background: var(--sand);
  padding: 14px 0;
  font-weight: 900; font-size: 15px; letter-spacing: .06em;
  text-transform: uppercase;
}
.hero-marquee .marquee-track { gap: 34px; }
.hero-marquee span { color: var(--ink); }
.hero-marquee b { color: var(--rust); }

/* ---------- intro ---------- */
.intro { text-align: center; padding: 110px 24px 90px 24px; position: relative; z-index: 2; }
.trust {
  display: flex; align-items: center; justify-content: center;
  gap: 18px; margin-bottom: 44px; flex-wrap: wrap;
}
.tag-mini {
  display: inline-block;
  background: #fff; border: 1px solid var(--sand);
  padding: 6px 16px; border-radius: 999px;
  font-size: 13px; font-weight: bold;
}
.tag-mini.accent { background: var(--orange); border-color: var(--orange); color: #fff; }
.avatars img {
  display: inline-block;
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; border: 3px solid var(--cream);
  margin-left: -12px;
  transition: transform .3s ease;
}
.avatars img:first-child { margin-left: 0; }
.avatars:hover img { transform: none; }
.avatars img:hover { transform: translateY(-6px) scale(1.08); position: relative; z-index: 2; }
.intro-title {
  font-size: clamp(40px, 6.4vw, 80px);
  font-weight: 900; line-height: 1.3;
}
.hl-sand { background: var(--sand); border-radius: 24px; padding: 0 26px; white-space: nowrap; }
.hl-orange { background: var(--orange); color: #fff; border-radius: 24px; padding: 0 26px; white-space: nowrap; }
.step-dots { margin-top: 54px; }
.dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--sand); margin-right: 10px;
}
.dot.on { background: var(--orange); animation: pulse-dot 1.8s ease-in-out infinite; }
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: .55; }
}
.scroll-text {
  font-size: 11px; letter-spacing: 3px; font-weight: bold;
  color: var(--muted); text-transform: uppercase;
}

/* ---------- 01 project / value cards ---------- */
.value-grid { display: flex; gap: 60px; align-items: center; }
.value-text { width: 40%; }
.value-text p { margin: 26px 0 36px 0; color: var(--muted); font-size: 15px; }
.value-cards { width: 60%; }
.v-viewport { overflow: hidden; border-radius: 24px; }
.v-track {
  display: flex;
  transition: transform .65s cubic-bezier(.22, .61, .36, 1);
}
.v-set {
  flex: 0 0 100%;
  display: flex; gap: 20px; align-items: flex-start;
  padding: 4px;
}
.v-card {
  flex: 1;
  background: #fff; border-radius: 22px; padding: 12px;
  transition: transform .35s ease, box-shadow .35s ease;
}
.v-card:nth-child(2) { margin-top: 44px; }
.v-card:hover { transform: translateY(-8px); box-shadow: 0 18px 36px rgba(43, 33, 24, .16); }
.v-img { border-radius: 16px; overflow: hidden; }
.v-img img {
  width: 100%; height: 260px; object-fit: cover;
  transition: transform .5s ease;
}
.v-card:nth-child(1) .v-img img { height: 300px; }
.v-card:nth-child(2) .v-img img { height: 230px; }
.v-card:hover .v-img img { transform: scale(1.05); }
.v-card figcaption { font-size: 13px; font-weight: bold; padding: 12px 6px 4px 6px; color: var(--muted); }
.loc {
  display: inline-block; background: var(--ink); color: var(--cream);
  font-size: 11px; padding: 3px 12px; border-radius: 999px; margin-right: 8px;
}

/* pager (JS-driven) */
.pager { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 36px; }
.pager.center { justify-content: center; }
.p-btn {
  display: inline-block;
  border: 2px solid var(--ink); background: transparent;
  border-radius: 999px; padding: 8px 20px;
  font-family: inherit; font-size: 13px; font-weight: bold; color: var(--ink);
  cursor: pointer; user-select: none;
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.p-btn:hover:not(:disabled) { background: var(--ink); color: var(--cream); transform: translateY(-2px); }
.p-btn:active:not(:disabled) { transform: translateY(0); }
.p-btn:disabled { opacity: .35; cursor: default; }
.p-dots { display: inline-flex; gap: 8px; align-items: center; }
.p-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--sand); transition: background-color .3s; }
.p-dots i.on { background: var(--orange); }
.p-count { font-size: 12px; color: var(--muted); letter-spacing: .12em; }
.mono { font-family: var(--font-mono); }

/* ---------- 02 series / work cards ---------- */
.works-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px;
}
.works-head h2 { font-size: clamp(38px, 6vw, 80px); }
.side-note { color: var(--muted); font-size: 14px; text-align: right; }
.work-cards { display: flex; gap: 28px; margin-top: 44px; }
.w-card {
  width: 33%; flex: 1;
  background: #fff; border-radius: 24px; padding: 20px;
  border: 2px solid transparent;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.w-card:hover, .w-card:active {
  border-color: var(--orange);
  transform: translateY(-8px);
  box-shadow: 0 18px 36px rgba(43, 33, 24, .16);
}
.w-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.w-head h3 { font-size: 20px; font-weight: 900; }
.w-head p { font-size: 13px; color: var(--muted); }
.seat {
  background: var(--sand); color: var(--rust);
  font-size: 11px; font-weight: bold;
  padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}
.w-img { position: relative; border-radius: 18px; overflow: hidden; }
.w-img img { width: 100%; height: 230px; object-fit: cover; transition: transform .5s ease; }
.w-card:hover .w-img img { transform: scale(1.07); }
.open-tag {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: var(--cream); color: var(--ink);
  font-size: 11px; font-weight: bold;
  padding: 5px 14px; border-radius: 999px;
}
.w-meta {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: flex; gap: 14px;
  background: rgba(43, 33, 24, .55);
  border-radius: 12px; padding: 8px 14px;
  color: var(--cream-3); font-size: 12px; font-weight: bold;
}
.w-service { font-size: 12px; color: var(--muted); font-weight: bold; margin-top: 16px; }
.w-book { margin-top: 14px; }

/* ---------- 03 streets / strip ---------- */
.explore-title {
  text-align: center;
  font-size: clamp(44px, 7.5vw, 96px);
  font-weight: 900;
  margin-bottom: 64px;
}
.strip { overflow: hidden; padding: 10px 4px 30px 4px; }
.strip-track {
  display: flex; align-items: flex-start; gap: 24px;
  width: max-content;
  animation: strip-scroll 42s linear infinite;
}
.strip:hover .strip-track { animation-play-state: paused; }
@keyframes strip-scroll { to { transform: translateX(calc(-50% - 12px)); } }
.s-item {
  position: relative; flex: 0 0 auto;
  width: 230px; height: 300px;
  border-radius: 20px; overflow: hidden;
  background: #fff;
  transform-origin: 50% 100%;
  animation: sway 4.6s ease-in-out infinite alternate;
  transition: box-shadow .35s ease;
}
.s-item:nth-child(2n) { animation-delay: -1.2s; }
.s-item:nth-child(3n) { animation-delay: -2.6s; }
.s-item:nth-child(4n) { animation-delay: -.7s; }
.s-item:nth-child(5n) { animation-delay: -3.4s; }
@keyframes sway {
  from { transform: rotate(-1.6deg) translateY(0); }
  to   { transform: rotate(1.6deg) translateY(-6px); }
}
.s-item.tall { height: 340px; }
.s-item.down { margin-top: 44px; }
.s-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.s-item figcaption {
  position: absolute; right: 12px; bottom: 12px;
  background: rgba(43, 33, 24, .6); color: var(--cream-3);
  font-size: 12px; font-weight: bold;
  padding: 5px 14px; border-radius: 999px;
}
.s-item:hover { animation: none; transform: rotate(0deg) translateY(-8px); box-shadow: 0 18px 34px rgba(43, 33, 24, .22); z-index: 2; }
.s-item:hover img { transform: scale(1.07); }
.strip-hint {
  font-size: 11px; color: var(--muted);
  letter-spacing: .18em; text-transform: uppercase;
  text-align: center; margin-top: 8px;
}

.book-seat { text-align: center; margin-top: 70px; }
.book-seat p { color: var(--muted); font-size: 16px; margin-bottom: 30px; }
.cta-row { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; }

/* ---------- 04 notes / plan + up card ---------- */
.plan-grid { display: flex; gap: 28px; margin-top: 54px; }
.plan-card {
  width: 60%;
  background: #fff; border-radius: 28px; padding: 32px;
  transition: transform .35s ease, box-shadow .35s ease;
}
.plan-card:hover { transform: translateY(-8px); box-shadow: 0 18px 36px rgba(43, 33, 24, .14); }
.plan-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 26px; }
.brand-sm { font-size: 22px; font-weight: 900; line-height: 1.15; }
.pill-line {
  display: inline-block;
  border: 2px solid var(--ink); padding: 10px 22px; border-radius: 999px;
  font-size: 14px; font-weight: bold;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
}
.pill-line:hover { background: var(--ink); color: var(--cream); transform: translateY(-3px); box-shadow: 0 10px 22px rgba(43, 33, 24, .22); }
.collage { display: flex; gap: 16px; }
.c-wrap { flex: 1; border-radius: 16px; overflow: hidden; }
.c-wrap img { width: 100%; height: 150px; object-fit: cover; transition: transform .5s ease; }
.c-wrap.c1 { transform: rotate(-2deg); }
.c-wrap.c2 { transform: translateY(10px); }
.c-wrap.c3 { transform: rotate(2deg); }
.c-wrap:hover img { transform: scale(1.07); }
.plan-card-foot {
  display: flex; gap: 60px;
  margin-top: 34px; padding-top: 22px;
  border-top: 2px dashed var(--sand);
}
.plan-card-foot b { font-size: 14px; }
.plan-card-foot p { font-size: 13px; color: var(--muted); }
.up-card {
  width: 40%;
  background: #fff; border-radius: 28px; padding: 28px;
  transition: transform .35s ease, box-shadow .35s ease;
}
.up-card:hover { transform: translateY(-8px); box-shadow: 0 18px 36px rgba(43, 33, 24, .14); }
.up-head { display: flex; justify-content: space-between; align-items: center; }
.up-head b { font-size: 18px; font-weight: 900; }
.up-sub { font-size: 13px; color: var(--muted); margin: 4px 0 18px 0; }
.up-img { position: relative; border-radius: 18px; overflow: hidden; }
.up-img img { width: 100%; height: 200px; object-fit: cover; transition: transform .5s ease; }
.up-card:hover .up-img img { transform: scale(1.06); }
.up-loc {
  position: absolute; right: 12px; bottom: 12px;
  background: rgba(43, 33, 24, .6); color: var(--cream-3);
  font-size: 12px; font-weight: bold;
  padding: 5px 14px; border-radius: 999px;
}
.up-list { list-style: none; margin: 20px 0 22px 0; font-size: 13px; font-weight: bold; color: var(--muted); }
.up-list li { padding: 7px 0; border-bottom: 1px dashed var(--sand); }
.up-card .cs-btn { display: flex; width: 100%; }

/* ---------- 05 archive ---------- */
.archive-title {
  font-size: clamp(34px, 5vw, 64px);
  text-align: center; margin-bottom: 50px;
}
.archive-title em { font-style: normal; color: var(--rust); }
.arch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: arch;
}
.arch-grid figure {
  position: relative;
  border-radius: 20px; overflow: hidden;
  counter-increment: arch;
  transition: transform .35s ease, box-shadow .35s ease;
}
.arch-grid figure::after {
  content: "N° 0" counter(arch);
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(43, 33, 24, .6); color: var(--cream-3);
  font-size: 11px; font-weight: bold; letter-spacing: .1em;
  padding: 4px 12px; border-radius: 999px;
}
.arch-grid img { width: 100%; height: 220px; object-fit: cover; transition: transform .5s ease; }
.arch-grid figure:hover {
  transform: translateY(-6px) rotate(1deg);
  box-shadow: 0 14px 28px rgba(43, 33, 24, .22);
  z-index: 2;
}
.arch-grid figure:hover img { transform: scale(1.06); }
.arch-more { text-align: center; margin-top: 50px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.footer {
  background: var(--sand);
  margin-top: 120px;
  padding: 70px 48px 30px 48px;
  position: relative; overflow: hidden;
}
.foot-grid {
  max-width: 1280px; margin: 0 auto;
  display: flex; gap: 48px;
  position: relative; z-index: 2;
}
.foot-grid > div { width: 25%; }
.foot-grid > div:first-child { width: 34%; }
.foot-grid h4 { font-size: 16px; font-weight: 900; margin-bottom: 16px; }
.foot-grid p { font-size: 13px; color: var(--muted); line-height: 2; }
.foot-grid a { transition: color .25s ease; }
.foot-grid a:hover { color: var(--rust); }
.foot-watermark {
  font-size: clamp(90px, 17vw, 230px);
  font-weight: 900; line-height: .9;
  text-align: center;
  color: rgba(43, 33, 24, .06);
  user-select: none; pointer-events: none;
  margin-top: 30px;
}
.copyright {
  max-width: 1280px; margin: 24px auto 0 auto;
  font-size: 12px; color: var(--muted);
  border-top: 2px dashed var(--sand-2);
  padding-top: 20px;
  position: relative; z-index: 2;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .value-grid { flex-direction: column; }
  .value-text, .value-cards { width: 100%; }
  .work-cards { flex-direction: column; }
  .w-card { width: 100%; }
  .w-img img { height: 260px; }
  .plan-grid { flex-direction: column; }
  .plan-card, .up-card { width: 100%; }
}

@media (max-width: 900px) {
  h2 { font-size: 36px; }
  .hero { min-height: 600px; }
  .hero-center { padding-top: 12vh; }
  .nav-links { display: none; }
  .topbar { padding: 0 20px; gap: 10px; }
  .topbar.scrolled { padding: 10px 20px; }
  .brand { font-size: 15px; }
  .book-top { padding: 8px 14px; font-size: 11px; }
  .hero-row {
    flex-direction: column; align-items: flex-start; gap: 14px;
    left: 20px; right: 20px; bottom: 124px;
  }
  .pill-light { font-size: 12px; padding: 8px 18px; align-self: center; }
  .hero-dashed {
    flex-wrap: wrap; justify-content: center; gap: 12px 22px;
    padding: 16px 20px 14px 20px;
  }
  .tag-link { font-size: 12px; white-space: nowrap; }
  .br-m { display: block; }
  .section { padding: 70px 20px 30px 20px; }
  .works-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .side-note { text-align: left; }
  .v-set { flex-direction: column; }
  .v-card:nth-child(2) { margin-top: 0; }
  .v-card:nth-child(1) .v-img img,
  .v-card:nth-child(2) .v-img img,
  .v-img img { height: 240px; }
  .s-item { width: 180px; height: 240px; }
  .s-item.tall { height: 280px; }
  .s-item.down { margin-top: 28px; }
  .plan-card-foot { flex-direction: column; gap: 18px; }
  .collage img, .c-wrap img { height: 120px; }
  .arch-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .arch-grid img { height: 170px; }
  .pager { justify-content: center; flex-wrap: wrap; }
  .foot-grid { flex-direction: column; gap: 36px; }
  .foot-grid > div, .foot-grid > div:first-child { width: 100%; }
  .footer { padding: 50px 20px 24px 20px; margin-top: 70px; }
}

@media (max-width: 600px) {
  .cta-row { flex-direction: column; }
  .cta-row .cs-btn, .arch-more .cs-btn { width: 100%; max-width: 340px; }
  .arch-more { flex-direction: column; align-items: center; }
  .hl-sand, .hl-orange { border-radius: 16px; padding: 0 14px; }
  .trust { gap: 12px; }
}

@media (max-width: 480px) {
  .topbar { padding: 0 14px; gap: 8px; }
  .topbar.scrolled { padding: 10px 14px; }
  .brand { font-size: 13px; letter-spacing: .02em; }
  /* shrink the gallery CTA to a single word so nothing overflows */
  .book-top {
    font-size: 0; padding: 7px 14px;
    display: inline-flex; align-items: center; justify-content: center;
    text-align: center;
  }
  .book-top::after {
    content: 'Gallery';
    font-size: 10px; font-weight: bold; letter-spacing: .04em;
    line-height: 1; display: block;
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .s-item, .dot.on { animation: none !important; }
  .strip-track { animation-duration: 120s; }
}

/* ---------- pure CSS: no-JS replacements ---------- */

/* value carousel driven by radio inputs */
.v-toggle { position: absolute; opacity: 0; pointer-events: none; }
#v-page2:checked ~ .value-grid .v-track { transform: translateX(-50%); }
#v-page1:checked ~ .value-grid .pager label[for="v-page1"],
#v-page2:checked ~ .value-grid .pager label[for="v-page2"] {
  background: var(--ink); color: var(--cream);
}
#v-page1:checked ~ .value-grid .pager .p-dots i:nth-child(1),
#v-page2:checked ~ .value-grid .pager .p-dots i:nth-child(2) {
  background: var(--orange);
}

/* hero step dots: pure CSS looping flash */
.dot { animation: dot-flash 2.8s ease-in-out infinite; }
.step-dots .dot:nth-child(1) { animation-delay: 0s; }
.step-dots .dot:nth-child(2) { animation-delay: -.7s; }
.step-dots .dot:nth-child(3) { animation-delay: -1.4s; }
.step-dots .dot:nth-child(4) { animation-delay: -2.1s; }
@keyframes dot-flash {
  0%, 100% { background: var(--sand); transform: scale(1); }
  12% { background: var(--orange); transform: scale(1.6); }
  28% { background: var(--sand); transform: scale(1); }
}

/* hero intro choreography after the CSS loader (2.5s) */
.topbar { animation: fade-down .7s ease 2.55s both; }
.hero-kicker, .hero-title { animation: fade-up .9s ease 2.65s both; }
.hero-row { animation: fade-up .9s ease 2.8s both; }
.hero-dashed { animation: fade-up .9s ease 2.95s both; }

@media (prefers-reduced-motion: reduce) {
  .dot, .topbar, .hero-kicker, .hero-title, .hero-row, .hero-dashed {
    animation: none !important;
  }
}
