/* ============================================================
   AVONDALE — Lodge & Spa
   Editorial luxury site. Brand fonts + palette only.
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Aurora Magnollia";
  src: url("../fonts/AuroraMagnollia.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Display";
  src: url("../fonts/NeueHaasDisplayLight.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Display";
  src: url("../fonts/NeueHaasDisplayXThinItalic.ttf") format("truetype");
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Display";
  src: url("../fonts/NeueHaasDisplayBold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Display";
  src: url("../fonts/NeueHaasDisplayBoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --green:        #113823;  /* Escarpment Green */
  --green-deep:   #0c2a1a;
  --charcoal:     #292929;
  --eucalyptus:   #e0e5bc;  /* Eucalyptus Veil */
  --sky:          #c5d4d9;  /* Sky Blue */
  --linen:        #ece9e5;  /* Linen */
  --linen-pure:   #f4f2ee;
  --ink:          #2b2b2b;
  --ink-soft:     #54564f;
  --sage:         #7d9168;  /* muted sage for completed labels */
  --gold:         #b8923f;  /* current-stage accent */
  --eucalyptus-soft: #ebeede;  /* lighter green wash for planning */

  --serif: "Aurora Magnollia", "Times New Roman", serif;
  --sans:  "Neue Haas Display", "Helvetica Neue", Arial, sans-serif;

  --page-x: clamp(22px, 6vw, 120px);
  --maxw: 1680px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --slow: 1.1s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 200;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Typography primitives ---------- */
.eyebrow {
  font-family: var(--sans);
  font-weight: 200;
  font-size: clamp(11px, 0.78vw, 13px);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  color: var(--ink-soft);
}
.eyebrow::before {
  content: "";
  width: clamp(28px, 3vw, 54px);
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}
.eyebrow.center { justify-content: center; }
.eyebrow.no-rule::before { display: none; }

.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0.005em;
  color: var(--green);
}

.body {
  font-family: var(--sans);
  font-weight: 200;
  font-size: clamp(16.5px, 1.15vw, 19px);
  line-height: 1.82;
  letter-spacing: 0.005em;
  color: var(--ink);
}
.body.large {
  font-size: clamp(20px, 1.9vw, 30px);
  line-height: 1.6;
  letter-spacing: 0.004em;
  color: var(--green);
}
.body em { font-style: italic; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(18px, 2.2vw, 34px) var(--page-x);
  color: var(--linen);
  transition: background var(--slow) var(--ease), color var(--slow) var(--ease),
              padding 0.6s var(--ease), border-color var(--slow) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.solid {
  background: var(--linen);
  color: var(--green);
  padding-top: clamp(14px, 1.5vw, 20px);
  padding-bottom: clamp(14px, 1.5vw, 20px);
  border-bottom: 1px solid rgba(17, 56, 35, 0.14);
}
.nav__brand {
  font-family: var(--serif);
  font-size: clamp(20px, 1.8vw, 27px);
  letter-spacing: 0.18em;
  line-height: 1;
  padding-left: 0.18em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.nav__wordmark {
  height: clamp(15px, 1.55vw, 21px);
  width: auto;
  display: block;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 44px);
}
.nav__link {
  font-size: 12.5px;
  font-weight: 200;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
  opacity: 0.92;
  transition: opacity 0.4s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.nav__link:hover { opacity: 1; }
.nav__link:hover::after { transform: scaleX(1); }

.nav__cta {
  font-size: 12.5px;
  font-weight: 200;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  padding: 11px 24px;
  border-radius: 100px;
  transition: background 0.5s var(--ease), color 0.5s var(--ease), opacity .4s;
  white-space: nowrap;
}
.nav .nav__cta:hover { background: var(--linen); color: var(--green); }
.nav.solid .nav__cta:hover { background: var(--green); color: var(--linen); }

.nav__right { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 40px); }

.nav__burger {
  display: none;
  width: 30px; height: 16px;
  position: relative;
  background: none; border: 0; padding: 0;
}
.nav__burger span {
  position: absolute; left: 0;
  width: 100%; height: 1.4px;
  background: currentColor;
  transition: transform 0.5s var(--ease), opacity 0.3s var(--ease);
}
.nav__burger span:nth-child(1) { top: 2px; }
.nav__burger span:nth-child(2) { bottom: 2px; }
body.menu-open .nav__burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

/* Mobile fullscreen menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: var(--green);
  color: var(--linen);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--page-x);
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-2%);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease), visibility 0.7s;
}
body.menu-open .menu { opacity: 1; visibility: visible; transform: none; }
.menu a {
  font-family: var(--serif);
  font-size: clamp(38px, 9vw, 86px);
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--eucalyptus);
  width: max-content;
  transition: color 0.4s var(--ease), padding-left 0.5s var(--ease);
}
.menu a:hover { color: var(--linen); padding-left: 14px; }
.menu__foot {
  margin-top: clamp(30px, 5vh, 64px);
  font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(236,233,229,0.6);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--linen);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background: url("../img/bg-2.jpg") center 38% / cover no-repeat;
  transform: scale(1.06);
  will-change: transform;
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 78% at 50% 64%, rgba(12,30,20,0.46) 0%, rgba(12,30,20,0.12) 42%, transparent 70%),
    linear-gradient(to bottom, rgba(12,28,18,0.30) 0%, transparent 26%, transparent 58%, rgba(12,28,18,0.42) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 var(--page-x);
  transform: translateY(2.5vh);
}
.hero__mark {
  width: clamp(170px, 21vw, 320px);
  margin-bottom: clamp(20px, 2.4vw, 38px);
  filter: drop-shadow(0 10px 40px rgba(0,0,0,0.28));
}
.hero__sub {
  font-size: clamp(12px, 1.1vw, 16px);
  letter-spacing: 0.62em;
  text-transform: uppercase;
  font-weight: 200;
  text-indent: 0.62em;
  color: var(--linen);
  opacity: 0.94;
}
.hero__rule {
  width: 1px; height: clamp(40px, 7vh, 76px);
  position: absolute;
  left: 50%; bottom: clamp(30px, 5vh, 56px);
  transform: translateX(-50%);
  background: linear-gradient(to bottom, rgba(236,233,229,0.85), transparent);
  z-index: 2;
  overflow: hidden;
}
.hero__rule::after {
  content: "";
  position: absolute; left: 0; top: -100%;
  width: 100%; height: 100%;
  background: var(--linen);
  animation: drip 2.8s var(--ease) infinite;
}
@keyframes drip {
  0% { top: -100%; } 55% { top: 100%; } 100% { top: 100%; }
}
.hero__loc {
  position: absolute;
  left: var(--page-x); bottom: clamp(26px, 4vh, 44px);
  z-index: 2;
  font-size: 12px; letter-spacing: 0.34em; text-transform: uppercase;
  color: rgba(236,233,229,0.85);
}
.hero__loc.right { left: auto; right: var(--page-x); text-align: right; }
.hero__inner { margin-bottom: 2vh; }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
section { position: relative; }
.wrap { padding: clamp(96px, 13vw, 220px) var(--page-x); max-width: var(--maxw); margin: 0 auto; }
.bg-green  { background: var(--green); color: var(--linen); }
.bg-green .display { color: var(--eucalyptus); }
.bg-green .body { color: rgba(236,233,229,0.86); }
.bg-green .eyebrow { color: rgba(236,233,229,0.62); }
.bg-eucalyptus { background: var(--eucalyptus); }
.bg-linen-pure { background: var(--linen-pure); }

/* ---------- Design Team (text-only editorial) ---------- */
.team__wrap { padding-top: clamp(80px, 11vw, 180px); padding-bottom: clamp(80px, 11vw, 180px); display: flex; flex-direction: column; align-items: center; text-align: center; }
.team__lead {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.25;
  color: var(--ink);
  max-width: 20ch;
  margin: clamp(28px, 3.4vw, 44px) 0 clamp(24px, 3vw, 36px);
  text-wrap: balance;
}
.team__body { max-width: 62ch; font-size: clamp(15px, 1.1vw, 18px); }

/* ---------- Vision ---------- */
.vision__eyebrow { margin-bottom: clamp(40px, 6vw, 84px); }
/* ---------- Vision (refined editorial) ---------- */
.vision__statement {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--green);
  font-size: clamp(27px, 3.5vw, 56px);
  line-height: 1.16;
  letter-spacing: 0.004em;
  text-align: center;
  max-width: 38ch;
  margin: 0 auto;
  text-wrap: balance;
}
.vision__feature {
  margin-top: clamp(80px, 11vw, 180px);
}
.vision__note-lead {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--green);
  font-size: clamp(20px, 1.7vw, 27px);
  line-height: 1.22;
  letter-spacing: 0.004em;
  margin: 0;
  text-wrap: pretty;
}
.vision__showcase {
  display: grid;
  grid-template-columns: 1.18fr 0.92fr 0.74fr;
  gap: clamp(20px, 2.4vw, 40px);
  align-items: start;
}
.vfig { margin: 0; }
.vfig img {
  width: 100%;
  display: block;
  object-fit: cover;
  filter: grayscale(0.2) contrast(1.02) brightness(1.01);
}
.vfig figcaption { margin-top: 16px; }
.vfig figcaption .eyebrow { color: var(--ink-soft); opacity: 0.85; }
.vfig--a img { height: clamp(380px, 44vw, 660px); }
.vfig--b { margin-top: 0; }
.vfig--b img { height: clamp(300px, 34vw, 500px); }
.vision__note {
  padding-top: clamp(6px, 1vw, 14px);
  display: grid;
  gap: clamp(18px, 1.8vw, 26px);
  align-content: start;
}
.vision__note .eyebrow { color: var(--ink-soft); opacity: 0.7; }
.vision__note .body { font-size: clamp(14px, 1vw, 16px); line-height: 1.72; }

/* ---------- Split (image + text) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 86vh;
}
.split__media { position: relative; overflow: hidden; }
.split__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}
.split__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(64px, 9vw, 150px) var(--page-x);
}
.split.reverse .split__media { order: 2; }

/* ---------- Location: full-bleed map with overlaid editorial text ---------- */
.location { position: relative; background: var(--linen-pure); overflow: hidden; }
.location__frame { position: relative; }
.location__map { width: 100%; height: auto; display: block; }
.location__overlay {
  position: absolute;
  top: 6%;
  right: 3%;
  width: min(34%, 560px);
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.4vw, 22px);
  color: var(--green);
}
.location__overlay .eyebrow { color: var(--green); opacity: 0.62; margin-bottom: clamp(10px, 1.4vw, 22px); }
.location__overlay .eyebrow::before { opacity: 0.4; }
.location__head {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(80px, 11vw, 180px) var(--page-x) clamp(44px, 5vw, 84px);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 5vw, 92px);
  align-items: end;
  color: var(--green);
}
.location__head-r { display: flex; flex-direction: column; gap: clamp(16px, 1.6vw, 24px); max-width: 62ch; }
.location__head .eyebrow { color: var(--green); opacity: 0.62; margin-bottom: clamp(22px, 2.6vw, 40px); }
.location__head .eyebrow::before { opacity: 0.4; }
.location__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 44px);
  line-height: 1.0;
  color: var(--green);
  margin: 0 0 clamp(6px, 0.8vw, 14px);
}
.location__overlay .body { color: var(--green); max-width: none; font-size: clamp(11px, 1vw, 17px); }
.location__head .body { color: var(--green); max-width: none; }
.split__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 104px);
  line-height: 0.96;
  color: var(--green);
  margin: 18px 0 clamp(26px, 3vw, 46px);
}
.bg-green .split__title { color: var(--eucalyptus); }
.meta-list {
  margin-top: clamp(34px, 4vw, 58px);
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(17,56,35,0.16);
}
.bg-green .meta-list { border-color: rgba(236,233,229,0.22); }
.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(17,56,35,0.16);
  font-size: 14px;
  letter-spacing: 0.04em;
}
.bg-green .meta-row { border-color: rgba(236,233,229,0.22); }
.meta-row dt { text-transform: uppercase; letter-spacing: 0.2em; font-size: 11.5px; color: var(--ink-soft); }
.bg-green .meta-row dt { color: rgba(236,233,229,0.6); }
.meta-row dd { margin: 0; text-align: right; color: var(--green); }
.bg-green .meta-row dd { color: var(--linen); }

/* ---------- History (editorial two col on linen) ---------- */
.editorial {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) 1.5fr;
  grid-template-areas:
    "label  title"
    "images body";
  column-gap: clamp(40px, 5vw, 100px);
  row-gap: clamp(30px, 4vw, 64px);
  align-items: start;
}
.editorial__kicker {
  grid-area: label;
  align-self: start;
  color: var(--ink-soft);
}
.hist-thumbs { grid-area: images; display: flex; gap: 14px; }
.hist-thumb { margin: 0; width: clamp(144px, 15.6vw, 214px); overflow: hidden; }
.hist-thumb img {
  width: 100%;
  height: clamp(94px, 9.6vw, 134px);
  object-fit: cover;
  filter: grayscale(0.25) contrast(1.03);
  transform: scale(1);
  transition: transform 0.9s var(--ease), filter 0.6s var(--ease);
  will-change: transform;
}
.hist-thumb:hover img { transform: scale(1.08); filter: grayscale(0) contrast(1.04); }
.editorial__title {
  grid-area: title;
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 7vw, 56px);
  line-height: 1.0;
  color: var(--green);
}
.editorial__cols {
  grid-area: body;
  max-width: 760px;
}
.editorial__cols p { margin: 0 0 1.5em; }
.editorial__cols p:last-child { margin-bottom: 0; }

/* ============================================================
   PLANNING PROCESS — horizontal timeline
   ============================================================ */
.planning { padding: clamp(64px, 7vw, 120px) 0; overflow: hidden; background: var(--eucalyptus-soft); }
.planning__head {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--page-x);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.planning__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 7vw, 56px);
  line-height: 1.0;
  color: var(--green);
  margin: 18px 0 0;
}
.planning__hint {
  margin: clamp(22px, 2.6vw, 34px) 0 0;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.7;
}

/* Viewport + edge fades */
.pp-viewport {
  position: relative;
  margin-top: clamp(34px, 4vw, 64px);
}
.pp-viewport::before,
.pp-viewport::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: clamp(28px, 6vw, 96px);
  z-index: 4;
  pointer-events: none;
}
.pp-viewport::before { left: 0;  background: linear-gradient(to right, var(--eucalyptus-soft), transparent); }
.pp-viewport::after  { right: 0; background: linear-gradient(to left,  var(--eucalyptus-soft), transparent); }

.pp-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(17,56,35,0.25) transparent;
}
.pp-scroll:focus-visible { outline: none; }
.pp-scroll::-webkit-scrollbar { height: 4px; }
.pp-scroll::-webkit-scrollbar-thumb { background: rgba(17,56,35,0.22); border-radius: 100px; }
.pp-scroll::-webkit-scrollbar-track { background: transparent; }

/* Track + central line */
.pp-track {
  list-style: none;
  margin: 0;
  padding: 0 var(--page-x);
  display: flex;
  width: max-content;
  position: relative;
  height: 540px;
}
.pp-track::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 1px;
  background: rgba(17,56,35,0.18);
}

/* Item */
.pp-item {
  position: relative;
  flex: 0 0 clamp(190px, 15vw, 226px);
  height: 100%;
  cursor: default;
  outline: none;
}
.pp-dot {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--green);
  border: 1px solid var(--green);
  z-index: 3;
  transition: transform 0.45s var(--ease), background 0.45s var(--ease);
}
.pp-item[data-state="future"] .pp-dot { background: var(--linen-pure); border-color: rgba(17,56,35,0.4); }
.pp-item[data-state="current"] .pp-dot {
  width: 15px; height: 15px;
  background: var(--gold);
  border-color: var(--gold);
}
.pp-item:hover .pp-dot,
.pp-item:focus-visible .pp-dot { transform: translate(-50%, -50%) scale(1.35); }

/* Connector stub from line to title */
.pp-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(150px, 12vw, 188px);
  text-align: center;
  font-family: var(--sans);
  font-weight: 200;
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  transition: color 0.4s var(--ease);
}
.pp-item[data-state="done"] .pp-title { color: var(--green); opacity: 0.78; }
.pp-item[data-state="current"] .pp-title {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.16em;
  opacity: 1;
}
.pp-item:hover .pp-title,
.pp-item:focus-visible .pp-title { color: var(--green); opacity: 1; }
.pp-item--current:hover .pp-title { color: var(--gold); }

.pp-item--up   .pp-title { bottom: calc(50% + 26px); }
.pp-item--down .pp-title { top: calc(50% + 26px); }

/* small tick connecting dot to title */
.pp-title::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  height: 16px;
  background: rgba(17,56,35,0.22);
  transform: translateX(-50%);
}
.pp-item--up   .pp-title::after { bottom: -22px; }
.pp-item--down .pp-title::after { top: -22px; }

/* Description card */
.pp-card {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: clamp(300px, 24vw, 356px);
  background: #fbfaf7;
  border: 1px solid rgba(17,56,35,0.12);
  box-shadow: 0 18px 50px -24px rgba(17,56,35,0.5);
  padding: 16px 22px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0.5s;
  z-index: 6;
}
.pp-card p {
  margin: 0;
  font-family: var(--sans);
  font-weight: 200;
  font-size: 13.5px;
  line-height: 1.55;
  letter-spacing: 0.005em;
  color: var(--ink);
}
.pp-item--up   .pp-card { bottom: calc(50% + 62px); }
.pp-item--down .pp-card { top: calc(50% + 62px); }
.pp-item--current .pp-card { border-color: rgba(184,146,63,0.45); }

.pp-item:hover .pp-card,
.pp-item:focus-visible .pp-card,
.pp-item:focus-within .pp-card {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.pp-item:hover { z-index: 7; }

/* Pulse on current */
.pp-pulse {
  position: absolute;
  left: 50%; top: 50%;
  width: 15px; height: 15px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1.5px solid var(--gold);
}
.pp-pulse::before,
.pp-pulse::after {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  animation: ppPulse 2.8s var(--ease) infinite;
}
.pp-pulse::after { animation-delay: 1.4s; }
@keyframes ppPulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  70%  { transform: scale(2.9); opacity: 0; }
  100% { transform: scale(2.9); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pp-scroll { scroll-behavior: auto; }
  .pp-pulse::before, .pp-pulse::after { animation: none; }
  .pp-cue__dot, .pp-cue__chev { animation: none; }
}

/* Scroll cue */
.pp-cue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: var(--maxw);
  margin: clamp(26px, 3vw, 44px) auto 0;
  padding: 0 var(--page-x);
  color: var(--green);
  opacity: 0.85;
  transition: opacity 0.6s var(--ease);
}
.pp-cue.is-hidden { opacity: 0; pointer-events: none; }
.pp-cue__label { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 200; }
.pp-cue__track { position: relative; width: 84px; height: 1px; background: rgba(17,56,35,0.3); }
.pp-cue__dot {
  position: absolute; top: 50%; left: 0;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  transform: translate(-50%, -50%);
  animation: ppCueRun 2.6s var(--ease) infinite;
}
@keyframes ppCueRun {
  0% { left: 0; opacity: 0; }
  18% { opacity: 1; }
  82% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
.pp-cue__chev { display: inline-flex; color: var(--green); animation: ppCueNudge 1.7s var(--ease) infinite; }
@keyframes ppCueNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }

/* ---------- The Project / program index ---------- */
.project__top {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: clamp(36px, 5vw, 88px);
  align-items: start;
  margin-bottom: clamp(34px, 4.5vw, 70px);
}
.project__copy {
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 2.6vw, 40px);
  max-width: 54ch;
}
.project__plan { margin: 0; }
.project__plan img {
  width: 100%;
  height: auto;
  display: block;
}
.project__plan figcaption { margin-top: 16px; }
.project__plan figcaption .eyebrow { color: rgba(236,233,229,0.62); }
.index-list { border-top: 1px solid rgba(236,233,229,0.24); }
.index-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: clamp(18px, 3vw, 48px);
  padding: clamp(12px, 1.5vw, 20px) 0;
  border-bottom: 1px solid rgba(236,233,229,0.24);
  transition: padding-left 0.6s var(--ease);
}
.index-row:hover { padding-left: clamp(6px, 1vw, 18px); }
.index-row__num {
  font-size: 13px; letter-spacing: 0.2em;
  color: rgba(236,233,229,0.55);
  font-feature-settings: "tnum";
}
.index-row__name {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 25px;
  line-height: 1.2;
  color: var(--eucalyptus);
}
.index-row__tag {
  font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(236,233,229,0.5);
  white-space: nowrap;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(120px, 14vw, 240px);
  gap: clamp(12px, 1.4vw, 24px);
}
.gallery figure { margin: 0; overflow: hidden; position: relative; }
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.gallery figure:hover img { transform: scale(1.05); }
.g-a { grid-column: 1 / 8;  grid-row: span 3; }
.g-b { grid-column: 8 / 13; grid-row: span 2; }
.g-c { grid-column: 8 / 13; grid-row: span 1; }
.g-d { grid-column: 1 / 5;  grid-row: span 2; }
.g-e { grid-column: 5 / 9;  grid-row: span 2; }
.g-f { grid-column: 9 / 13; grid-row: span 2; }
.gallery figcaption {
  position: absolute; left: 18px; bottom: 14px;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--linen);
  text-shadow: 0 1px 14px rgba(0,0,0,0.5);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.gallery figure:hover figcaption { opacity: 0.92; transform: none; }

/* ---------- Benefits ---------- */
.benefits__head { text-align: center; margin-bottom: clamp(22px, 2.6vw, 40px); }
.benefits__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 7vw, 56px);
  line-height: 1.0;
  color: var(--green);
}
.benefits__list {
  max-width: 1140px;
  margin: 0 auto;
  counter-reset: ben;
}
.benefit {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(22px, 3vw, 56px);
  align-items: baseline;
  padding: clamp(6px, 0.7vw, 10px) 0;
  border-top: 1px solid rgba(17,56,35,0.16);
}
.benefit:last-child { border-bottom: 1px solid rgba(17,56,35,0.16); }
#benefits .wrap { padding-top: clamp(40px, 5vw, 76px); padding-bottom: clamp(40px, 5vw, 76px); }
.benefit__num {
  counter-increment: ben;
  font-size: 13px; letter-spacing: 0.18em;
  color: var(--green);
  opacity: 0.5;
  font-feature-settings: "tnum";
  padding-top: 0.5em;
}
.benefit__num::before { content: counter(ben, decimal-leading-zero); }
.benefit__text {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.32;
  color: var(--green);
  letter-spacing: 0.004em;
  text-wrap: pretty;
}
#project .body.large {
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.42;
}
.proj-comprising {
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.42;
}

/* ---------- Contact ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(48px, 7vw, 140px);
  align-items: start;
}
.contact__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 7vw, 56px);
  line-height: 1.0;
  color: var(--green);
  margin-bottom: clamp(26px, 3vw, 44px);
}
.contact__aside { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); margin-top: clamp(40px, 5vw, 80px); display: grid; gap: 10px; }
.contact__aside a:hover { color: var(--green); }

.form { display: grid; gap: clamp(22px, 2.6vw, 34px); }
.field { display: grid; gap: 10px; }
.field__row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.4vw, 34px); }
.field label {
  font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-soft);
  display: flex; gap: 8px; align-items: baseline;
}
.field label .req { font-size: 10px; letter-spacing: 0.12em; opacity: 0.6; }
.field input, .field textarea {
  font-family: var(--sans);
  font-weight: 200;
  font-size: 17px;
  color: var(--green);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(17,56,35,0.28);
  padding: 12px 2px;
  transition: border-color 0.5s var(--ease);
}
.field textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); }
.field input::placeholder, .field textarea::placeholder { color: rgba(43,43,43,0.35); }
.field.invalid input, .field.invalid textarea { border-color: #8a3b2a; }
.field__err { font-size: 11px; letter-spacing: 0.12em; color: #8a3b2a; text-transform: uppercase; opacity: 0; height: 0; transition: opacity 0.3s; }
.field.invalid .field__err { opacity: 1; height: auto; }

.choices { display: flex; flex-wrap: wrap; gap: 28px; padding-top: 4px; }
.choice { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14px; letter-spacing: 0.04em; color: var(--green); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .box {
  width: 17px; height: 17px;
  border: 1px solid rgba(17,56,35,0.4);
  border-radius: 2px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.choice .box::after { content: ""; width: 8px; height: 8px; background: var(--green); transform: scale(0); transition: transform 0.3s var(--ease); }
.choice input:checked + .box { border-color: var(--green); }
.choice input:checked + .box::after { transform: scale(1); }

.submit {
  margin-top: 8px;
  background: var(--green);
  color: var(--linen);
  border: 1px solid var(--green);
  border-radius: 100px;
  padding: 20px 36px;
  font-size: 12.5px; letter-spacing: 0.28em; text-transform: uppercase;
  transition: background 0.5s var(--ease), color 0.5s var(--ease), letter-spacing 0.5s var(--ease);
  width: 100%;
}
.submit:hover { background: transparent; color: var(--green); letter-spacing: 0.34em; }
.form.sent .submit { background: var(--green); color: var(--linen); pointer-events: none; }
.form__thanks {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 34px);
  color: var(--green);
  line-height: 1.3;
  opacity: 0; height: 0; overflow: hidden;
  transition: opacity 0.6s var(--ease);
}
.form.sent .form__thanks { opacity: 1; height: auto; }
.form.sent .form__fields { display: none; }

/* ---------- Footer ---------- */
.footer { background: var(--green); color: var(--linen); padding: clamp(70px, 9vw, 140px) var(--page-x) clamp(34px, 4vw, 54px); }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 48px; }
.footer__mark { width: clamp(150px, 16vw, 240px); }
.footer__nav { display: flex; gap: clamp(40px, 6vw, 110px); flex-wrap: wrap; }
.footer__col { display: grid; gap: 16px; }
.footer__col h4 { font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: rgba(236,233,229,0.5); font-weight: 200; margin: 0 0 6px; }
.footer__col a, .footer__col span { font-size: 14px; letter-spacing: 0.05em; color: rgba(236,233,229,0.82); transition: color 0.4s; }
.footer__col a:hover { color: var(--linen); }
.footer__bar {
  margin-top: clamp(60px, 8vw, 110px);
  padding-top: 26px;
  border-top: 1px solid rgba(236,233,229,0.2);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(236,233,229,0.55);
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg { transform: none; }
  .hero__rule::after { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .vision__showcase { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; min-height: 0; }
  .split__media { height: 64vh; }
  .split.reverse .split__media { order: 0; }
  .location__head { grid-template-columns: 1fr; gap: clamp(20px, 4vw, 36px); align-items: start; }
  .editorial { grid-template-columns: 1fr; grid-template-areas: "label" "title" "images" "body"; row-gap: clamp(22px, 4vw, 40px); }
  .editorial__cols { max-width: none; }
  .project__top { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .gallery { grid-auto-rows: clamp(110px, 22vw, 200px); }
  .g-a { grid-column: 1 / 13; grid-row: span 2; }
  .g-b { grid-column: 1 / 7;  grid-row: span 2; }
  .g-c { grid-column: 7 / 13; grid-row: span 2; }
  .g-d { grid-column: 1 / 7;  grid-row: span 2; }
  .g-e { grid-column: 7 / 13; grid-row: span 2; }
  .g-f { grid-column: 1 / 13; grid-row: span 2; }
}
@media (max-width: 860px) {
  .location__overlay {
    position: static;
    width: auto;
    max-width: 62ch;
    margin: 0 auto;
    padding: clamp(40px, 8vw, 72px) var(--page-x) clamp(20px, 4vw, 40px);
    order: -1;
  }
  .location__overlay .body { font-size: clamp(14px, 3.4vw, 17px); }
  .location__title { font-size: clamp(32px, 8vw, 48px); margin-bottom: clamp(14px, 3vw, 24px); }
  .location__frame { display: flex; flex-direction: column; }
}
@media (max-width: 720px) {
  .location { display: flex; flex-direction: column; }
  .vision__showcase { grid-template-columns: 1fr 1fr; gap: clamp(18px, 3vw, 32px); }
  .vfig--a { grid-column: 1 / 3; }
  .vfig--a img { height: clamp(280px, 56vw, 460px); }
  .vfig--b { margin-top: 0; }
  .vfig--b img { height: clamp(280px, 56vw, 460px); }
  .vision__note { grid-column: 1 / 3; padding-top: clamp(6px, 2vw, 16px); }
  .location__head {
    padding: clamp(56px, 12vw, 88px) var(--page-x) clamp(32px, 7vw, 52px);
  }
  .location__head .body { max-width: none; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .planning__hint { max-width: 26ch; }
  .pp-track { height: 520px; }
  .pp-card { width: clamp(240px, 78vw, 320px); padding: 17px 18px; }
  .pp-card p { font-size: 13px; }
  .vision__showcase { grid-template-columns: 1fr; }
  .vfig--a, .vfig--b, .vision__note { grid-column: auto; }
  .vfig--a img, .vfig--b img { height: clamp(280px, 72vw, 440px); }
  .field__row { grid-template-columns: 1fr; }
  .index-row { grid-template-columns: auto 1fr; }
  .index-row__tag { display: none; }
  .meta-row { flex-direction: column; gap: 4px; }
  .meta-row dd { text-align: left; }
  .hero__loc { font-size: 10.5px; letter-spacing: 0.24em; }
}
