:root {
  --brown: #491705;
  --brown-deep: #2e0e03;
  --gold: #cc9d57;
  --gold-soft: #e6c99a;
  --olive: #454529;
  --cream: #f2efe8;
  --cream-deep: #e9e3d6;
  --ink: #2a1a10;
  --muted: #6b5a4c;
  --line: rgba(73, 23, 5, 0.14);
  --serif: "Fraunces", "Playfair Display", Georgia, serif;
  --sans: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* hero */
.hero {
  position: relative;
  color: var(--cream);
  background: var(--brown) url("../img/hero-texture.jpg") center / cover no-repeat;
  /* the site bar (css/sitebar.css) sits over the top 56px */
  padding: calc(56px + clamp(40px, 7vw, 96px)) clamp(20px, 5vw, 72px) clamp(36px, 6vw, 80px);
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(46,14,3,.35) 0%, rgba(46,14,3,.55) 100%);
  z-index: -1;
}
.hero-inner { max-width: 1400px; margin: 0 auto; }
.hero-logo { width: min(320px, 60vw); height: auto; margin: 0 0 clamp(28px, 4vw, 48px); }
.eyebrow {
  margin: 0 0 14px;
  font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-soft); font-weight: 500;
}
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(38px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -.01em;
  margin: 0 0 22px; max-width: 14ch;
}
.hero h1 em, .next h2 em { font-style: normal; }
.lede { font-size: clamp(17px, 1.6vw, 21px); max-width: 62ch; margin: 0 0 32px; color: #f6efe3; }
.jump { display: flex; flex-wrap: wrap; gap: 10px; }
.jump a {
  text-decoration: none; font-weight: 500; font-size: 14px; letter-spacing: .04em;
  padding: 10px 16px; border: 1px solid rgba(230,201,154,.55); border-radius: 3px;
  color: var(--cream); transition: background .15s, border-color .15s;
}
.jump a:hover { background: rgba(204,157,87,.22); border-color: var(--gold); }

/* units */
.unit {
  padding: clamp(40px, 6vw, 88px) clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
}
.unit:first-of-type { border-top: 0; }
.unit-head { max-width: 1400px; margin: 0 auto clamp(24px, 3vw, 40px); }
.kicker {
  margin: 0 0 8px; font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); font-weight: 500;
}
.unit h2, .next h2 {
  font-family: var(--serif); font-weight: 500; color: var(--brown);
  font-size: clamp(30px, 4vw, 52px); line-height: 1.05; margin: 0 0 20px; letter-spacing: -.01em;
}
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 28px;
  margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line);
}
.stats div:last-child { grid-column: 1 / -1; }
.stats dt { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 0 0 3px; }
.stats dd { margin: 0; font-size: 17px; font-weight: 400; color: var(--ink); }

.unit-grid {
  max-width: 1400px; margin: 0 auto;
  display: grid; gap: clamp(16px, 2vw, 28px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  grid-template-areas: "plan render" "model model";
  align-items: start;
}
figure { margin: 0; }
figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; letter-spacing: .01em; }
.plan { grid-area: plan; }
.plan img { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 12px; }
.render { grid-area: render; }
.render img { border-radius: 6px; border: 1px solid var(--line); }
.model { grid-area: model; }
.unit-grid.has-clip { grid-template-areas: "plan render" "model model" "clip clip"; }
.clip { grid-area: clip; }
.clip video {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: 6px; background: #fff;
}
model-viewer {
  width: 100%; height: clamp(360px, 62vh, 760px);
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  --poster-color: transparent;
}
.poster { position: absolute; inset: 0; background: #fff center / cover no-repeat; }
.poster::after { content: ""; position: absolute; inset: 0; background: rgba(242,239,232,.28); }
.open-3d {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; white-space: nowrap;
  font: 500 15px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase;
  color: var(--cream); background: var(--brown); border: 1px solid var(--gold);
  padding: 16px 26px; border-radius: 3px; cursor: pointer;
  box-shadow: 0 10px 30px rgba(46,14,3,.35);
}
.open-3d:hover { background: var(--brown-deep); }

/* next */
.next { background: var(--cream-deep); padding: clamp(48px, 7vw, 100px) clamp(20px, 5vw, 72px); border-top: 1px solid var(--line); }
.next-inner { max-width: 1400px; margin: 0 auto; }
.next h2 { max-width: 18ch; }
.next-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px 32px; margin: 28px 0 40px; }
.next-grid h3 { font-family: var(--serif); font-weight: 600; font-size: 21px; color: var(--brown); margin: 0 0 8px; }
.next-grid p { margin: 0; font-size: 16px; color: var(--ink); }
.contact { font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 22px; margin: 0; }
.contact a { color: var(--brown); font-weight: 500; }

.foot { background: var(--brown); color: rgba(242,239,232,.7); padding: 28px clamp(20px, 5vw, 72px); font-size: 12.5px; line-height: 1.6; }
.foot p { max-width: 1400px; margin: 0 auto; }

@media (max-width: 820px) {
  .unit-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "render" "model" "plan"; }
  .unit-grid.has-clip { grid-template-areas: "render" "clip" "model" "plan"; }
  .plan img { max-width: min(420px, 100%); margin: 0 auto; }
  .open-3d { font-size: 13px; padding: 14px 20px; }
  model-viewer { height: 70vh; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* cookie banner (markup from /js/shared.js): nothing tracks until Accept */
.cookie-banner{position:fixed;bottom:0;left:0;right:0;z-index:100;background:#1d1611;color:#f3e9dc;border-top:1px solid rgba(243,233,220,.15);padding:16px 24px;display:flex;align-items:center;justify-content:space-between;gap:20px;font-family:'Outfit',system-ui,sans-serif}
.cookie-banner p{font-size:.88rem;margin:0;color:rgba(243,233,220,.82)}
.cookie-banner a{color:#d8a85b;text-decoration:underline}
.cookie-banner__actions{display:flex;gap:8px;flex-shrink:0}
.cookie-banner__btn{font:inherit;font-size:.82rem;font-weight:500;padding:10px 18px;border-radius:4px;border:1px solid #d8a85b;background:#d8a85b;color:#140f0b;cursor:pointer}
.cookie-banner__btn--decline{background:transparent;color:rgba(243,233,220,.8);border-color:rgba(243,233,220,.25)}
@media (max-width:640px){.cookie-banner{flex-direction:column;align-items:flex-start;gap:12px}}

/* link from the Type A clip to the scroll walkthrough */
.walk-link{display:inline-block;margin-top:14px;padding:11px 18px;background:var(--brown);color:var(--cream);border-radius:3px;font-size:14px;letter-spacing:.02em;text-decoration:none;transition:background .2s}
.walk-link:hover{background:var(--brown-deep)}

/* jump links land below the fixed site bar */
html { scroll-padding-top: 64px; }
