:root {
  --navy: #0b1d26;
  --navy-soft: #102934;
  --cream: #fff7e8;
  --muted: rgba(255, 247, 232, 0.72);
  --gold: #fbd784;
  --green: #4f7a65;
  --shadow: rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background-color: var(--navy);
  background-image:
    linear-gradient(180deg, rgba(11, 29, 38, 0.48), rgba(11, 29, 38, 0.78)),
    url("assets/hero-bg.jpg");
  background-position: center, center 44%;
  background-size: cover, cover;
  background-attachment: fixed, fixed;
  background-repeat: no-repeat, no-repeat;
  color: var(--cream);
  font-family: "Noto Sans SC", Inter, "Microsoft YaHei", Arial, sans-serif;
}

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

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

.site-header {
  position: fixed;
  inset: 34px max(34px, calc((100vw - 1680px) / 2 + 34px)) auto;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--cream);
}

.brand,
.footer strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.primary-nav {
  display: flex;
  gap: 40px;
  font-size: 14px;
  font-weight: 700;
}

.primary-nav a,
.account {
  opacity: 0.94;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.primary-nav a:hover,
.account:hover {
  color: var(--gold);
  opacity: 1;
}

.account {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
}

.account-icon {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
}

.account-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 18px;
  height: 9px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 18px 18px;
  transform: translateX(-50%);
}

.social-rail,
.progress-rail {
  position: fixed;
  z-index: 25;
  top: 50%;
  transform: translateY(-50%);
}

.social-rail {
  left: max(28px, calc((100vw - 1680px) / 2 + 28px));
  display: flex;
  align-items: center;
  gap: 20px;
  writing-mode: vertical-rl;
  font-size: 13px;
  font-weight: 700;
}

.social-rail a {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  writing-mode: horizontal-tb;
  font-weight: 800;
}

.progress-rail {
  right: max(28px, calc((100vw - 1680px) / 2 + 28px));
  display: grid;
  gap: 0;
  border-right: 3px solid rgba(255, 247, 232, 0.34);
}

.progress-rail a {
  min-width: 64px;
  padding: 16px 28px 16px 0;
  color: rgba(255, 247, 232, 0.72);
  border-right: 3px solid transparent;
  font-size: 14px;
  font-weight: 700;
  text-align: right;
  transform: translateX(3px);
}

.progress-rail a.is-active {
  color: var(--cream);
  border-right-color: var(--cream);
}

.hero {
  position: relative;
  min-height: 112svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 150px 28px 240px;
  isolation: isolate;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -4;
  background:
    linear-gradient(180deg, rgba(11, 29, 38, 0.14), rgba(11, 29, 38, 0.44) 70%, rgba(11, 29, 38, 0.72) 100%);
}

.hero::before,
.hero::after,
.hero-mist {
  content: "";
  position: absolute;
  inset-inline: 0;
  z-index: -3;
  pointer-events: none;
}

.hero::before {
  top: 28%;
  height: 44%;
  background:
    radial-gradient(ellipse at 22% 100%, rgba(53, 103, 83, 0.9) 0 16%, transparent 38%),
    radial-gradient(ellipse at 52% 104%, rgba(60, 119, 92, 0.92) 0 20%, transparent 47%),
    radial-gradient(ellipse at 84% 104%, rgba(34, 80, 67, 0.9) 0 18%, transparent 42%);
  opacity: 0.82;
  transform: translateY(170px);
}

.hero::after {
  bottom: -1px;
  height: 33%;
  background: linear-gradient(180deg, transparent, rgba(11, 29, 38, 0.52) 42%, rgba(11, 29, 38, 0.7));
}

.hero-mist {
  top: 0;
  bottom: 0;
  background:
    linear-gradient(90deg, rgba(11, 29, 38, 0.54), transparent 28%, transparent 72%, rgba(11, 29, 38, 0.56)),
    radial-gradient(circle at 50% 22%, rgba(255, 247, 232, 0.16), transparent 24rem);
  z-index: -2;
}

.hero-content {
  width: min(950px, calc(100% - 96px));
  transform: translateY(-26px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0 0 26px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 72px;
  height: 2px;
  background: currentColor;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Noto Serif SC", "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0;
}

h1 {
  max-width: 960px;
  margin-bottom: 28px;
  font-size: clamp(58px, 6.9vw, 108px);
  line-height: 1.02;
}

.scroll-cue,
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.ghost-action,
.ghost-link,
.planner-panel button,
.option-tabs button {
  border: 1px solid rgba(255, 247, 232, 0.22);
  border-radius: 999px;
  background: rgba(11, 29, 38, 0.38);
  color: var(--cream);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ghost-action {
  min-height: 42px;
  padding: 0 18px;
}

.ghost-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
}

.ghost-action:hover,
.planner-panel button:hover,
.option-tabs button:hover {
  transform: translateY(-2px);
  border-color: rgba(251, 215, 132, 0.8);
  background: rgba(251, 215, 132, 0.13);
}

.live-card {
  position: absolute;
  right: max(82px, calc((100vw - 1280px) / 2 + 82px));
  bottom: 145px;
  width: 260px;
  padding: 22px;
  border: 1px solid rgba(255, 247, 232, 0.16);
  background: rgba(11, 29, 38, 0.48);
  backdrop-filter: blur(12px);
  box-shadow: 0 28px 70px var(--shadow);
}

.live-card span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.live-card strong {
  display: block;
  margin: 12px 0 8px;
  font-family: "Noto Serif SC", "Cormorant Garamond", Georgia, serif;
  font-size: 26px;
}

.live-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.scroll-cue span,
.read-more span {
  width: 18px;
  height: 18px;
  display: inline-block;
  background: currentColor;
  clip-path: polygon(45% 0, 55% 0, 55% 66%, 78% 44%, 86% 52%, 50% 88%, 14% 52%, 22% 44%, 45% 66%);
}

.guide-section {
  position: relative;
  width: min(1280px, calc(100% - 120px));
  min-height: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: clamp(70px, 8vw, 160px);
  align-items: center;
  padding: 86px 0;
}

.guide-section::before {
  content: "";
  position: absolute;
  inset: 20px 0;
  z-index: -1;
  border-radius: 2px;
  background: rgba(11, 29, 38, 0.42);
  backdrop-filter: blur(2px);
}

.guide-section.reverse {
  grid-template-columns: 520px minmax(0, 500px);
  gap: clamp(56px, 5vw, 88px);
  justify-content: start;
}

.guide-section.reverse .guide-copy {
  width: min(500px, 100%);
  max-width: 500px;
  justify-self: start;
  margin-left: 0;
  padding-left: 0;
  padding-right: 0;
}

.guide-section.reverse .guide-copy h2 {
  max-width: 455px;
  font-size: clamp(38px, 3.8vw, 60px);
}

.guide-section.reverse .guide-copy p:not(.eyebrow) {
  max-width: 470px;
}

.guide-copy {
  position: relative;
  max-width: 650px;
  padding-left: 96px;
}

.section-number {
  position: absolute;
  left: 0;
  top: -78px;
  color: rgba(255, 247, 232, 0.08);
  font-size: clamp(128px, 14vw, 240px);
  font-weight: 800;
  line-height: 1;
}

.guide-copy h2 {
  position: relative;
  margin: 0 0 28px;
  font-size: clamp(42px, 4.5vw, 72px);
  line-height: 1.08;
}

.guide-copy p:not(.eyebrow) {
  position: relative;
  margin-bottom: 28px;
  color: rgba(255, 247, 232, 0.88);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.8;
}

.read-more {
  color: var(--gold);
}

.read-more span {
  transform: rotate(-90deg);
}

.guide-image {
  position: relative;
  margin: 0;
  min-height: 640px;
  overflow: hidden;
  box-shadow: 0 32px 80px var(--shadow);
}

.guide-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 55%, rgba(11, 29, 38, 0.34)),
    radial-gradient(circle at 80% 16%, rgba(251, 215, 132, 0.14), transparent 16rem);
  pointer-events: none;
}

.guide-image img {
  width: 100%;
  height: 640px;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.85) contrast(1.04);
  transition: transform 0.8s ease;
}

.guide-image.narrow img {
  object-position: 46% center;
}

.sunset-image img {
  object-position: 70% center;
}

.forest-image img {
  object-position: 52% center;
}

.guide-image:hover img {
  transform: scale(1.035);
}

.planner,
.gallery {
  position: relative;
  width: min(1280px, calc(100% - 120px));
  margin: 96px auto;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(380px, 0.72fr);
  gap: clamp(42px, 7vw, 120px);
  align-items: center;
  padding: 70px 48px;
  border: 1px solid rgba(255, 247, 232, 0.12);
  background: rgba(11, 29, 38, 0.52);
  backdrop-filter: blur(3px);
  box-shadow: 0 36px 96px rgba(0, 0, 0, 0.22);
}

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

.planner h2,
.gallery h2 {
  margin: 0 0 24px;
  font-size: clamp(40px, 4.2vw, 68px);
  line-height: 1.08;
}

.planner-copy > p:not(.eyebrow) {
  max-width: 560px;
  color: rgba(255, 247, 232, 0.86);
  font-size: 17px;
  line-height: 1.8;
}

.planner-panel {
  display: grid;
  gap: 22px;
  padding: 28px;
  border: 1px solid rgba(255, 247, 232, 0.14);
  background: rgba(255, 247, 232, 0.07);
}

.option-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.option-tabs button {
  min-height: 40px;
  padding: 0 16px;
  font-size: 13px;
}

.option-tabs button.is-active {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy);
}

.planner-panel label {
  display: grid;
  gap: 10px;
  color: rgba(255, 247, 232, 0.78);
  font-size: 14px;
  font-weight: 700;
}

.planner-panel input,
.planner-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 247, 232, 0.18);
  border-radius: 0;
  background: rgba(11, 29, 38, 0.56);
  color: var(--cream);
  font: inherit;
  padding: 0 14px;
}

.planner-panel input[type="range"] {
  min-height: auto;
  padding: 0;
  accent-color: var(--gold);
}

.planner-panel button[type="submit"] {
  min-height: 50px;
  background: var(--gold);
  color: var(--navy);
}

.plan-result {
  display: block;
  min-height: 132px;
  padding: 18px;
  border-left: 3px solid var(--gold);
  background: rgba(11, 29, 38, 0.44);
  color: rgba(255, 247, 232, 0.86);
  line-height: 1.7;
}

.plan-result strong {
  display: block;
  margin-bottom: 6px;
  color: var(--cream);
  font-family: "Noto Serif SC", "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
}

.gallery-stage {
  display: grid;
  gap: 18px;
}

.gallery-main {
  min-height: 500px;
  border: 0;
  background: var(--navy);
  background-size: cover;
  background-position: center;
  cursor: zoom-in;
  box-shadow: 0 32px 80px var(--shadow);
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery-thumbs button,
.gallery-thumbs a {
  min-height: 86px;
  border: 2px solid transparent;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.gallery-thumbs button.is-active,
.gallery-thumbs a.is-active,
.gallery-thumbs button:hover,
.gallery-thumbs a:hover {
  opacity: 1;
  border-color: var(--gold);
  transform: translateY(-2px);
}

.detail-page {
  width: min(1280px, calc(100% - 120px));
  margin: 0 auto;
  padding: 150px 0 96px;
}

.detail-hero,
.photo-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.8fr);
  gap: clamp(48px, 7vw, 120px);
  align-items: center;
  min-height: 760px;
}

.detail-hero h1,
.photo-detail h1 {
  margin: 0 0 28px;
  font-size: clamp(56px, 7vw, 112px);
  line-height: 1.02;
}

.detail-hero p:not(.eyebrow),
.photo-detail p {
  color: rgba(255, 247, 232, 0.84);
  font-size: 18px;
  line-height: 1.85;
}

.detail-hero img,
.photo-detail img {
  width: 100%;
  height: min(680px, 72vh);
  object-fit: cover;
  box-shadow: 0 32px 80px var(--shadow);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 56px 0 96px;
}

.detail-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 247, 232, 0.12);
  background: rgba(11, 29, 38, 0.52);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.detail-card:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 215, 132, 0.72);
}

.detail-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.detail-card span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.detail-card strong {
  font-family: "Noto Serif SC", "Cormorant Garamond", Georgia, serif;
  font-size: 26px;
}

.detail-card p {
  color: rgba(255, 247, 232, 0.72);
  line-height: 1.65;
}

.photo-detail dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 30px 0;
}

.photo-detail dl div {
  padding: 14px;
  background: rgba(255, 247, 232, 0.07);
}

.photo-detail dt {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.photo-detail dd {
  margin: 6px 0 0;
  color: var(--cream);
}

.photo-dialog {
  width: min(980px, calc(100% - 44px));
  border: 1px solid rgba(255, 247, 232, 0.18);
  background: rgba(11, 29, 38, 0.94);
  color: var(--cream);
  padding: 18px;
}

.photo-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.photo-dialog img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
}

.photo-dialog p {
  margin: 14px 0 0;
  color: var(--muted);
}

.photo-dialog button {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-size: 24px;
  cursor: pointer;
}

.footer {
  width: min(1280px, calc(100% - 120px));
  margin: 80px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 72px 0 96px;
  border-top: 1px solid rgba(255, 247, 232, 0.12);
  color: rgba(255, 247, 232, 0.8);
}

.footer p {
  max-width: 360px;
  margin: 0;
  line-height: 1.7;
}

@media (max-width: 1040px) {
  .site-header {
    inset-inline: 24px;
  }

  .primary-nav {
    gap: 22px;
  }

  .social-rail,
  .progress-rail {
    display: none;
  }

  .hero-content {
    width: min(780px, calc(100% - 40px));
  }

  .guide-section,
  .guide-section.reverse {
    width: min(720px, calc(100% - 44px));
    grid-template-columns: 1fr;
    gap: 42px;
    min-height: auto;
    padding: 74px 0;
  }

  .guide-section.reverse .guide-image {
    order: 2;
  }

  .guide-section.reverse .guide-copy {
    order: 1;
    max-width: none;
    margin-left: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .guide-copy {
    padding-left: 0;
  }

  .section-number {
    left: -8px;
  }

  .guide-image,
  .guide-image img {
    min-height: 520px;
    height: 520px;
  }

  .planner,
  .gallery {
    width: min(720px, calc(100% - 44px));
    grid-template-columns: 1fr;
    padding: 44px 28px;
  }

  .gallery-main {
    min-height: 420px;
  }

  .detail-page {
    width: min(720px, calc(100% - 44px));
  }

  .detail-hero,
  .photo-detail {
    grid-template-columns: 1fr;
    min-height: auto;
  }

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

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

  .brand {
    font-size: 28px;
  }

  .primary-nav {
    display: none;
  }

  .account {
    font-size: 13px;
  }

  .hero {
    min-height: 880px;
    place-items: start center;
    padding: 180px 22px 180px;
  }

  .hero::before {
    top: 42%;
    transform: translateY(130px);
  }

  .hero-content {
    width: 100%;
  }

  .eyebrow {
    gap: 16px;
    font-size: 11px;
    letter-spacing: 0.22em;
  }

  .eyebrow span {
    width: 48px;
  }

  h1 {
    font-size: clamp(48px, 14vw, 72px);
  }

  .guide-copy h2 {
    font-size: 44px;
  }

  .guide-copy p:not(.eyebrow) {
    font-size: 15px;
  }

  .section-number {
    top: -58px;
    font-size: 118px;
  }

  .guide-image,
  .guide-image img {
    min-height: 430px;
    height: 430px;
  }

  .live-card {
    left: 22px;
    right: 22px;
    bottom: 80px;
    width: auto;
  }

  .planner,
  .gallery {
    width: calc(100% - 44px);
    padding: 34px 20px;
  }

  .gallery-main {
    min-height: 330px;
  }

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

  .detail-page {
    width: calc(100% - 44px);
    padding-top: 120px;
  }

  .detail-hero h1,
  .photo-detail h1 {
    font-size: 48px;
  }

  .photo-detail dl {
    grid-template-columns: 1fr;
  }

  .footer {
    width: calc(100% - 44px);
    display: block;
    padding-bottom: 60px;
  }

  .footer p {
    margin-top: 18px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
