/* Pagoda — Luxury Outdoor Living · Linley-inspired redesign */

:root {
  --ink: #1d241c;
  --ink-2: #242c22;
  --forest: #3c4a38;
  --sage: #7d9070;
  --sage-light: #a8b89a;
  --ivory: #f4f1ea;
  --cream: #faf8f3;
  --brass: #b0895a;
  --text: #2b2f28;
  --text-soft: #5b6155;
  --text-inv: #e8e5dc;
  --hairline: rgba(176, 137, 90, 0.35);
  --hairline-dark: rgba(232, 229, 220, 0.18);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--text);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--sage); color: #fff; }
em, .word--italic { font-style: italic; color: var(--sage); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ivory);
  display: flex; align-items: center; justify-content: center;
}
.preloader__inner { text-align: center; }
.preloader__word {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 5.5rem);
  color: var(--forest);
  letter-spacing: 0.02em;
  line-height: 1;
}
.preloader__word span { display: inline-block; transform: translateY(120%); opacity: 0; }
.preloader__tag {
  display: block; margin-top: 1.2rem;
  font-size: 0.7rem; letter-spacing: 0.45em; text-transform: uppercase;
  color: var(--brass); opacity: 0;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: transform 0.5s var(--ease), background 0.4s, box-shadow 0.4s;
}
.nav--hidden { transform: translateY(-105%); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.6rem clamp(1.5rem, 5vw, 4rem);
  transition: padding 0.4s var(--ease);
}
.nav__brand {
  font-family: var(--serif); font-size: 1.9rem; font-weight: 500;
  color: var(--ivory); letter-spacing: 0.02em; line-height: 1;
  transition: color 0.4s;
}
.nav__links { display: flex; gap: 2.4rem; }
.nav__links a {
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--text-inv); position: relative; padding: 0.3rem 0;
  transition: color 0.4s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--brass);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--text-inv); border: 1px solid var(--hairline);
  padding: 0.75rem 1.5rem; transition: all 0.45s var(--ease);
}
.nav__cta:hover { background: var(--brass); border-color: var(--brass); color: #fff; }
.nav--scrolled { background: rgba(244, 241, 234, 0.88); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--hairline); }
.nav--scrolled .nav__inner { padding-top: 1rem; padding-bottom: 1rem; }
.nav--scrolled .nav__brand { color: var(--forest); }
.nav--scrolled .nav__links a { color: var(--text); }
.nav--scrolled .nav__cta { color: var(--text); border-color: rgba(176, 137, 90, 0.5); }
.nav--scrolled .nav__cta:hover { color: #fff; }

.nav__burger { display: none; background: none; border: 0; width: 34px; height: 22px; position: relative; cursor: pointer; }
.nav__burger span {
  position: absolute; left: 0; width: 100%; height: 1px; background: currentColor;
  color: var(--text-inv); transition: all 0.4s var(--ease);
}
.nav--scrolled .nav__burger span { color: var(--text); }
.nav__burger span:first-child { top: 4px; }
.nav__burger span:last-child { bottom: 4px; }
body.menu-open .nav__burger span:first-child { top: 10px; transform: rotate(45deg); }
body.menu-open .nav__burger span:last-child { bottom: 11px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.5s var(--ease);
}
body.menu-open .menu { opacity: 1; pointer-events: auto; }
.menu__links { display: flex; flex-direction: column; gap: 1.4rem; text-align: center; }
.menu__links a { font-family: var(--serif); font-size: 2.2rem; color: var(--text-inv); }

/* ---------- Shared ---------- */
section { position: relative; }
.section-head {
  display: flex; align-items: center; gap: 1.2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head__no { font-family: var(--serif); font-size: 1.1rem; color: var(--brass); font-style: italic; }
.section-head__label {
  font-size: 0.7rem; letter-spacing: 0.4em; text-transform: uppercase; color: var(--text-soft);
  white-space: nowrap;
}
.section-head__rule { flex: 1; height: 1px; background: var(--hairline); transform-origin: left; }
.section-head--dark .section-head__label { color: var(--sage-light); }
.section-head--dark .section-head__rule { background: var(--hairline-dark); }

.section-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.02; color: var(--text);
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.section-title--dark { color: var(--text-inv); }
.section-title .line, .manifesto__title .line, .heritage__quote .line,
.contact__title .line, .hero__title .line { display: block; overflow: hidden; }

.frame { overflow: hidden; position: relative; }
.frame img, .card__frame img, .piece__frame img, .pcard__frame img, .minor__frame img, .band__frame img {
  will-change: transform;
}

/* ---------- Hero ---------- */
.hero {
  height: 100svh; min-height: 640px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden; background: var(--ink);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__bg video {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  filter: saturate(1.04) brightness(0.94);
  will-change: transform;
}
.hero__veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(120% 90% at 50% 108%, rgba(18,15,11,0.62) 0%, rgba(18,15,11,0) 55%),
    linear-gradient(180deg, rgba(20,18,13,0.66) 0%, rgba(20,18,13,0.28) 42%, rgba(18,15,11,0.72) 100%);
}
.hero__content { position: relative; z-index: 2; padding: 0 1.5rem; max-width: 1100px; }
.hero__eyebrow {
  font-size: 0.72rem; letter-spacing: 0.45em; text-transform: uppercase;
  color: #cfa878; margin-bottom: 2.2rem;
  display: flex; align-items: center; justify-content: center; gap: 1.4rem;
}
.hero__eyebrow::before, .hero__eyebrow::after {
  content: ""; width: 56px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(207,168,120,0.7));
}
.hero__eyebrow::after { background: linear-gradient(90deg, rgba(207,168,120,0.7), transparent); }
.hero__title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(3.2rem, 10vw, 8.5rem);
  line-height: 0.98; color: var(--ivory); letter-spacing: 0.01em;
  text-shadow: 0 2px 40px rgba(18,15,11,0.45);
}
.hero__title .word { display: inline-block; }
.hero__sub {
  max-width: 480px; margin: 2.6rem auto 0;
  font-size: 0.95rem; font-weight: 300; line-height: 1.8;
  color: rgba(232, 229, 220, 0.75);
}
.hero__link {
  display: inline-block; margin-top: 2.8rem;
  font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ivory); border-bottom: 1px solid var(--brass);
  padding-bottom: 0.6rem; transition: color 0.4s, letter-spacing 0.5s var(--ease);
}
.hero__link:hover { color: var(--brass); letter-spacing: 0.36em; }
.hero__scrollcue {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  width: 1px; height: 64px; overflow: hidden; z-index: 2;
}
.hero__scrollcue span {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, transparent, var(--brass));
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- Panoramic bands ---------- */
.band { padding: clamp(4rem, 9vw, 9rem) clamp(1.5rem, 5vw, 4rem); background: var(--ivory); }
.band__frame {
  overflow: hidden; height: clamp(260px, 44vw, 560px);
  clip-path: inset(6% 3%);
}
.band__frame img { height: 120%; transform: translateY(-8%); filter: saturate(0.85); }

/* ---------- Manifesto ---------- */
.manifesto { background: var(--ivory); padding: clamp(2rem, 4vw, 4rem) clamp(1.5rem, 5vw, 4rem) clamp(6rem, 11vw, 11rem); }
.manifesto__grid {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
}
.manifesto__title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.4rem, 5.2vw, 4.6rem); line-height: 1.08;
}
.manifesto__aside p {
  font-size: 0.95rem; line-height: 1.9; color: var(--text-soft);
  margin-bottom: 1.4rem; max-width: 42ch;
}

/* ---------- Collections ---------- */
.collections { background: var(--cream); padding: clamp(6rem, 11vw, 11rem) clamp(1.5rem, 5vw, 4rem); }
.collections__grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem); row-gap: clamp(3rem, 6vw, 5.5rem);
}
.card { grid-column: span 2; display: block; }
.card--lg { grid-column: span 3; }
.card__frame {
  overflow: hidden; background: #fff;
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
}
.card__frame img {
  object-fit: contain; padding: 8%;
  transition: transform 1.1s var(--ease);
}
.card:hover .card__frame img { transform: scale(1.05); }
.card__meta { padding-top: 1.6rem; }
.card__no { font-family: var(--serif); font-style: italic; font-size: 0.95rem; color: var(--brass); }
.card__meta h3 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  margin: 0.4rem 0 0.6rem;
}
.card__meta p { font-size: 0.88rem; line-height: 1.7; color: var(--text-soft); max-width: 36ch; }
.card__link {
  display: inline-block; margin-top: 1.1rem;
  font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--text); position: relative; padding-bottom: 0.45rem;
}
.card__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--brass); transform: scaleX(0.35); transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.card:hover .card__link::after { transform: scaleX(1); }

.collections__minor { margin-top: clamp(4.5rem, 8vw, 8rem); }
.collections__minor-label {
  font-size: 0.7rem; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--text-soft); margin-bottom: 2.2rem;
  display: flex; align-items: center; gap: 1.2rem;
}
.collections__minor-label::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }
.collections__minorgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.minor__frame {
  overflow: hidden; background: #fff; aspect-ratio: 5 / 4;
  display: flex; align-items: center; justify-content: center;
}
.minor__frame img { object-fit: contain; padding: 10%; transition: transform 1.1s var(--ease); }
.minor:hover .minor__frame img { transform: scale(1.05); }
.minor h4 {
  font-family: var(--serif); font-weight: 400; font-size: 1.3rem; margin-top: 1.1rem;
}
.minor h4 span {
  display: block; font-family: var(--sans); font-weight: 300; font-size: 0.68rem;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-soft); margin-top: 0.35rem;
}

/* ---------- Craftsmanship ---------- */
.craft { background: var(--ink); color: var(--text-inv); }
.craft__inner { padding: clamp(6rem, 11vw, 11rem) clamp(1.5rem, 5vw, 4rem); }
.craft__grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}
.craft__list { list-style: none; margin-top: 1rem; }
.craft__list li {
  display: flex; gap: 1.6rem; padding: 1.9rem 0;
  border-top: 1px solid var(--hairline-dark);
}
.craft__list li:last-child { border-bottom: 1px solid var(--hairline-dark); }
.craft__li-no { font-family: var(--serif); font-style: italic; color: var(--brass); min-width: 2rem; font-size: 1.05rem; }
.craft__list h3 { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; margin-bottom: 0.45rem; }
.craft__list p { font-size: 0.88rem; line-height: 1.75; color: rgba(232, 229, 220, 0.62); max-width: 46ch; }
.craft__media { position: sticky; top: 12vh; }
.frame--tall { aspect-ratio: 4 / 5; }
.frame--tall img { filter: saturate(0.85); }
.craft__caption {
  margin-top: 1rem; font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(232, 229, 220, 0.5);
}

/* ---------- Statement pieces ---------- */
.statement { background: var(--ivory); overflow: hidden; }
.statement__pin { padding: clamp(6rem, 10vw, 10rem) 0 clamp(5rem, 8vw, 8rem); }
.statement__head { padding: 0 clamp(1.5rem, 5vw, 4rem); }
.statement__head .section-title { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.statement__track {
  display: flex; gap: clamp(1.5rem, 3vw, 3rem);
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  width: max-content;
}
.piece { flex: 0 0 auto; width: clamp(240px, 26vw, 360px); }
.piece__frame {
  overflow: hidden; background: #fff; aspect-ratio: 3 / 4;
  display: flex; align-items: center; justify-content: center;
}
.piece__frame img { object-fit: contain; padding: 9%; transition: transform 1.1s var(--ease); }
.piece:hover .piece__frame img { transform: scale(1.05); }
.piece figcaption {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 400; margin-top: 1rem;
}
.piece figcaption span {
  display: block; font-family: var(--sans); font-weight: 300; font-size: 0.62rem;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--brass); margin-bottom: 0.4rem;
}

/* ---------- Parasols ---------- */
.parasols { background: var(--cream); padding: clamp(6rem, 11vw, 11rem) clamp(1.5rem, 5vw, 4rem); }
.parasols__intro {
  max-width: 52ch; font-size: 0.95rem; line-height: 1.85; color: var(--text-soft);
  margin: -1.5rem 0 clamp(3rem, 5vw, 4.5rem);
}
.parasols__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.2rem, 2.5vw, 2.5rem); }
.pcard__frame {
  overflow: hidden; background: #fff; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
}
.pcard__frame img { object-fit: contain; padding: 10%; transition: transform 1.1s var(--ease); }
.pcard:hover .pcard__frame img { transform: scale(1.06); }
.pcard__meta { padding-top: 1.2rem; }
.pcard__meta h3 { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; }
.pcard__meta p { font-size: 0.78rem; letter-spacing: 0.12em; color: var(--text-soft); margin: 0.3rem 0 0.8rem; }
.dots { display: flex; gap: 0.45rem; }
.dots i {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--c); border: 1px solid rgba(0,0,0,0.08);
  transition: transform 0.3s var(--ease);
}
.pcard:hover .dots i { transform: scale(1.15); }

/* ---------- Heritage ---------- */
.heritage { background: var(--ivory); }
.heritage .band--inner { padding-bottom: 0; }
.heritage__body { padding: clamp(4rem, 8vw, 8rem) clamp(1.5rem, 5vw, 4rem) clamp(6rem, 11vw, 11rem); }
.heritage__quote {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1.15;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.heritage__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 4rem); }
.heritage__cols p {
  font-size: 0.92rem; line-height: 1.9; color: var(--text-soft);
  padding-top: 1.6rem; border-top: 1px solid var(--hairline);
}

/* ---------- Contact ---------- */
.contact {
  background: var(--ink); color: var(--text-inv); text-align: center;
  padding: clamp(7rem, 13vw, 13rem) clamp(1.5rem, 5vw, 4rem);
}
.contact__eyebrow {
  font-size: 0.72rem; letter-spacing: 0.45em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 2rem;
}
.contact__title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(3rem, 8vw, 7rem); line-height: 1; color: var(--ivory);
}
.contact__sub {
  max-width: 46ch; margin: 2.4rem auto 3.2rem;
  font-size: 0.95rem; line-height: 1.85; color: rgba(232, 229, 220, 0.65);
}
.contact__row { display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap; }
.btn {
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  padding: 1.1rem 2.6rem; background: var(--brass); color: #fff;
  transition: background 0.45s var(--ease), color 0.45s;
}
.btn:hover { background: var(--sage); }
.btn--ghost { background: transparent; border: 1px solid var(--hairline); color: var(--text-inv); }
.btn--ghost:hover { background: transparent; border-color: var(--brass); color: var(--brass); }

/* ---------- Footer ---------- */
.footer { background: var(--ink-2); color: rgba(232, 229, 220, 0.6); }
.footer__top {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem;
  padding: 3rem clamp(1.5rem, 5vw, 4rem);
  border-top: 1px solid var(--hairline-dark);
  border-bottom: 1px solid var(--hairline-dark);
}
.footer__brand { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; color: var(--ivory); }
.footer__nav { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer__nav a, .footer__bottom a {
  font-size: 0.68rem; letter-spacing: 0.26em; text-transform: uppercase;
  transition: color 0.3s;
}
.footer__nav a:hover, .footer__bottom a:hover { color: var(--brass); }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  padding: 1.8rem clamp(1.5rem, 5vw, 4rem);
  font-size: 0.72rem; letter-spacing: 0.06em;
}
.footer__bottom nav { display: flex; gap: 1.4rem; }

/* ---------- Animation initial states (JS removes) ---------- */
.js .hero__title .word,
.js .section-title .line > *,
.js .manifesto__title .line,
.js .heritage__quote .line { /* handled inline by GSAP */ }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .collections__grid { grid-template-columns: repeat(2, 1fr); }
  .card, .card--lg { grid-column: span 1; }
  .parasols__grid { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; }
  .craft__grid { grid-template-columns: 1fr; }
  .craft__media { position: static; max-width: 560px; }
  .heritage__cols { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 820px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .manifesto__grid { grid-template-columns: 1fr; align-items: start; }
  .collections__minorgrid { grid-template-columns: 1fr; max-width: 480px; }
}
@media (max-width: 600px) {
  .collections__grid { grid-template-columns: 1fr; }
  .parasols__grid { grid-template-columns: 1fr; max-width: 420px; }
  .footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
