:root {
  --charcoal: #101010; --soft-black: #171717; --ivory: #f7f2ea; --sand: #d8c3a5;
  --bronze: #b78a3b; --corten: #7d4a2a; --taupe: #8b8177; --white: #ffffff;
  --container: min(1160px, 92vw);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; color: var(--soft-black); background: var(--white); line-height: 1.65; }
h1,h2,h3 { font-family: "Cormorant Garamond", Georgia, serif; line-height: 1.1; margin: 0 0 1rem; letter-spacing: .2px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { width: var(--container); margin: 0 auto; }

/* Header + brand */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(16,16,16,.55); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255,255,255,.12); transition: background .25s ease; }
.site-header.scrolled { background: rgba(16,16,16,.92); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .65rem; }
.brand-mark { height: 42px; width: 42px; display: block; }
.brand-word { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.25rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ivory); line-height: 1.05; display: grid; }
.brand-word em { font-style: normal; font-family: Inter, sans-serif; font-size: .58rem; font-weight: 500; letter-spacing: .34em; color: var(--sand); }
.site-nav { display: flex; gap: 1.1rem; align-items: center; }
.site-nav a { color: var(--ivory); font-size: .95rem; }
.site-nav a:hover { color: var(--sand); }

/* Buttons */
.btn { border: 1px solid transparent; padding: .75rem 1.15rem; font-weight: 600; display: inline-block; transition: .2s ease; }
.btn-primary { background: var(--bronze); color: #211506; }
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-secondary { border-color: rgba(255,255,255,.65); color: var(--white); }
.btn-secondary:hover { background: rgba(255,255,255,.14); }
.btn-nav { border-color: rgba(255,255,255,.35); padding: .55rem .9rem; }

/* Hero */
.hero { position: relative; min-height: 92vh; display: grid; align-items: end; padding: 8rem 0 5rem; overflow: hidden; }
.hero-bg, .hero-video, .hero-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg, .hero-video { object-fit: cover; }
.hero-overlay { background: linear-gradient(100deg, rgba(16,16,16,.82) 22%, rgba(16,16,16,.34) 62%, rgba(16,16,16,.5)), linear-gradient(to top, rgba(16,16,16,.7), transparent 45%); }
.hero-content { position: relative; z-index: 2; color: var(--ivory); max-width: 720px; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; color: var(--bronze); font-weight: 600; margin: 0 0 .6rem; }
.hero .eyebrow { color: var(--sand); }
h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); margin-bottom: 1rem; }
.hero-copy { font-size: clamp(1.02rem, 2vw, 1.22rem); max-width: 60ch; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* Stat band */
.stat-band { background: var(--charcoal); color: var(--ivory); border-top: 1px solid rgba(255,255,255,.1); padding: 1.6rem 0; }
.stat-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 1rem; text-align: center; }
.stat-grid strong { display: block; font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.55rem; color: var(--sand); line-height: 1.15; }
.stat-grid span { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: #b9afa3; }

/* Sections */
.section { padding: 5.5rem 0; }
.section-light { background: var(--ivory); }
.section-soft { background: #fbf8f4; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 22ch; }
.section-intro { max-width: 70ch; color: #4b433b; }

/* Featured project */
.project-meta { margin: 2rem 0; display: grid; grid-template-columns: repeat(4,1fr); gap: .75rem; }
.project-meta div { border: 1px solid #ddd; border-top: 2px solid var(--bronze); padding: .9rem; background: #fffefb; }
.project-meta span { display: block; color: var(--taupe); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.gallery { display: grid; gap: .8rem; grid-template-columns: repeat(3, 1fr); }
.gallery figure { position: relative; margin: 0; overflow: hidden; min-height: 220px; }
.gallery-main { grid-column: span 3; min-height: 380px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.2rem .9rem .6rem; color: var(--ivory); font-size: .82rem; letter-spacing: .04em; background: linear-gradient(to top, rgba(16,16,16,.72), transparent); }

.interior-gallery { margin-top: 2.5rem; grid-template-columns: repeat(2, 1fr); }
.interior-gallery figure { min-height: 260px; }

/* Walkthrough */
.walkthrough-section { background: var(--charcoal); color: var(--ivory); }
.walkthrough-section .section-intro { color: #cfc6ba; }
.video-duo { margin-top: 2rem; display: grid; grid-template-columns: 1fr minmax(220px, 300px); gap: 1rem; align-items: start; }
.video-frame { border: 1px solid rgba(255,255,255,.16); }
.video-frame video { display: block; width: 100%; height: auto; background: #000; }
.video-landscape video { aspect-ratio: 16 / 9; }
.video-portrait video { aspect-ratio: 9 / 16; }
.video-caption { margin: 0; padding: .7rem .9rem; font-size: .82rem; letter-spacing: .04em; color: #b9afa3; border-top: 1px solid rgba(255,255,255,.12); }

/* Residence levels */
.levels { display: grid; grid-template-columns: repeat(4,1fr); gap: .9rem; margin-top: 2rem; }
.level { background: #fffefb; border: 1px solid #ddd1c4; border-top: 2px solid var(--bronze); padding: 1.3rem; }
.level-tag { display: inline-block; font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--corten); margin-bottom: .7rem; }
.level h3 { margin-bottom: .4rem; font-size: 1.35rem; }
.level p { margin: 0; font-size: .95rem; color: #4b433b; }

/* Split sections */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 2.5rem; align-items: start; }
.feature-list { margin: 1.2rem 0 0; padding: 0; list-style: none; }
.feature-list li { padding: .55rem 0 .55rem 1.4rem; position: relative; border-bottom: 1px solid #e7ded2; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: .55rem; height: .55rem; background: var(--bronze); }

/* Process */
.process-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: .8rem; margin-top: 1.5rem; }
.process-grid article { border-top: 2px solid var(--bronze); background: #fff; padding: 1rem; border: 1px solid #ddd; }
.process-grid h3 { font-size: 1.2rem; }

/* Trust + contact */
.trust-band { background: var(--charcoal); color: var(--ivory); padding: 4.5rem 0; }
.trust-band p { max-width: 68ch; }
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.contact-form { display: grid; gap: .65rem; }
input,select,textarea { border: 1px solid #c9beb3; padding: .8rem; font: inherit; background: #fff; }
input:focus,select:focus,textarea:focus,.btn:focus { outline: 2px solid var(--bronze); outline-offset: 2px; }
.form-success { min-height: 1.4rem; color: #1d5e3a; font-weight: 600; }

/* Footer */
.site-footer { background: var(--soft-black); color: #d7cec6; padding: 3.5rem 0 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; }
.footer-brand { margin-bottom: 1rem; }
.footer-nav { display: grid; gap: .6rem; align-content: start; }
.footer-nav a:hover { color: var(--sand); }
.footer-bottom { margin-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.15); padding-top: 1rem; display: flex; justify-content: space-between; }

/* Mobile nav + reveal */
.menu-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.3); padding: .4rem; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 4px 0; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .gallery figure:hover img { transform: none; }
  .hero-video { display: none; }
}

@media (max-width: 980px) {
  .project-meta,.levels { grid-template-columns: repeat(2,1fr); }
  .process-grid { grid-template-columns: repeat(2,1fr); }
  .stat-grid { grid-template-columns: repeat(3,1fr); row-gap: 1.2rem; }
  .split,.contact-wrap,.footer-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2,1fr); }
  .gallery-main { grid-column: span 2; }
}
@media (max-width: 760px) {
  .video-duo { grid-template-columns: 1fr; }
  .video-portrait { order: -1; max-width: 340px; }
  .menu-toggle { display: block; }
  .site-nav { position: absolute; top: 78px; left: 0; right: 0; background: #101010; padding: 1rem 4vw; flex-direction: column; align-items: flex-start; border-bottom: 1px solid rgba(255,255,255,.15); display: none; }
  .site-nav.open { display: flex; }
  .gallery,.levels,.project-meta,.process-grid { grid-template-columns: 1fr; }
  .gallery-main { grid-column: auto; }
  .stat-grid { grid-template-columns: repeat(2,1fr); }
  .hero { min-height: 88vh; }
  .footer-bottom { flex-direction: column; gap: .5rem; }
}
