:root {
  --ink: #0f0f10;
  --char: #1a1a1c;
  --paper: #f6f4f0;
  --white: #ffffff;
  --stone: #8b857c;
  --line: #dcd7cf;
  --red: #e52f1e;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 300 16px/1.75 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
h3 { font-size: 1.6rem; }

.eyebrow { font: 500 .72rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--red); margin: 0 0 1.4rem; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }

/* Buttons */
.btn { display: inline-block; padding: 1.05em 2.2em; font: 500 .75rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; border: 1px solid; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.btn-light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-light:hover { background: transparent; color: var(--white); }
.btn-ghost { color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: var(--white); color: var(--ink); }
.btn-red { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-red:hover { background: var(--ink); border-color: var(--ink); }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 22px var(--gutter); transition: background .4s, padding .4s; }
.site-header.solid { background: rgba(15,15,16,.94); backdrop-filter: blur(8px); padding-block: 14px; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 2.4rem; }
.nav a { color: var(--white); text-decoration: none; font-size: .74rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; opacity: .85; transition: opacity .2s; }
.nav a:hover { opacity: 1; }
.nav .nav-cta { border: 1px solid rgba(255,255,255,.55); padding: .9em 1.5em; opacity: 1; }
.nav .nav-cta:hover { background: var(--red); border-color: var(--red); }
.nav-toggle { display: none; }

/* Hero */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; display: flex; align-items: flex-end; color: var(--white); overflow: hidden; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,0) 100%), linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.1) 35%, rgba(0,0,0,.6) 100%); }
.hero-content { position: relative; padding: 0 var(--gutter) clamp(80px, 14vh, 150px); max-width: 980px; }
.hero .eyebrow { color: var(--white); opacity: .9; }
.hero .lede { font-size: 1.1rem; max-width: 560px; margin: 0 0 2.4rem; opacity: .92; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 1px; height: 54px; background: rgba(255,255,255,.35); overflow: hidden; }
.scroll-cue::after { content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--white); animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { to { top: 100%; } }

/* Intro */
.intro { padding: clamp(80px, 12vw, 150px) var(--gutter); text-align: center; }
.statement { font: 400 clamp(1.7rem, 3.2vw, 2.6rem)/1.35 var(--serif); max-width: 900px; margin: 0 auto 4.5rem; }
.statement em { color: var(--stone); }
.pillars { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); max-width: 980px; border-top: 1px solid var(--line); }
.pillars li { padding: 2.2rem 1rem 0; }
.pillars li + li { border-left: 1px solid var(--line); }
.pillars strong { display: block; font: 400 1.9rem/1.2 var(--serif); }
.pillars span { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); }

/* Homes */
.homes { background: var(--ink); color: var(--white); padding: clamp(80px, 11vw, 140px) var(--gutter); }
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 5rem; }
.project { position: relative; overflow: hidden; cursor: pointer; aspect-ratio: 4 / 3; }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.project:hover img { transform: scale(1.05); }
.project-info { position: absolute; inset: auto 0 0; padding: 4rem 2rem 1.8rem; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.project-info h3 { font-size: 2.2rem; margin: 0; }
.project-info p { margin: .2rem 0 .8rem; font-size: .85rem; opacity: .85; }
.link { font-size: .7rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; border-bottom: 1px solid var(--red); padding-bottom: 3px; }

.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 2rem; margin-bottom: 2.5rem; }
.filters button { background: none; border: 0; border-bottom: 1px solid transparent; color: rgba(255,255,255,.55); font: 500 .72rem var(--sans); letter-spacing: .22em; text-transform: uppercase; padding: .6em 0; cursor: pointer; }
.filters button:hover { color: var(--white); }
.filters button.active { color: var(--white); border-color: var(--red); }

.gallery { columns: 3 320px; column-gap: 14px; }
.gallery a { display: block; margin-bottom: 14px; break-inside: avoid; overflow: hidden; }
.gallery a[hidden] { display: none; }
.gallery img { width: 100%; transition: transform .8s ease, opacity .3s; }
.gallery a:hover img { transform: scale(1.04); opacity: .9; }

/* Services */
.services { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.services-image img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.services-body { padding: clamp(60px, 8vw, 120px) var(--gutter); }
.service { display: grid; grid-template-columns: 3.2rem 1fr; gap: 1rem; padding: 1.8rem 0; border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }
.service h3 { margin-bottom: .3em; }
.service p { margin: 0; color: #4a4742; }
.num { font: 500 .72rem/2.6 var(--sans); letter-spacing: .15em; color: var(--red); }

/* Process */
.process { background: var(--white); padding: clamp(80px, 11vw, 140px) var(--gutter); }
.steps { list-style: none; margin: 0 auto; padding: 0; max-width: 1200px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 1.5rem; }
.steps li::before { content: "0" counter(step); display: block; font: 500 .72rem var(--sans); letter-spacing: .15em; color: var(--red); margin-bottom: 1rem; }
.steps p { margin: 0; color: #4a4742; font-size: .95rem; }

/* About */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; padding: clamp(80px, 11vw, 140px) var(--gutter); max-width: 1440px; margin: 0 auto; }
.about-body p:not(.eyebrow) { color: #3d3a36; }
.about-image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.signature { font: italic 400 1.6rem var(--serif); color: var(--ink) !important; margin-top: 2rem; }
.signature::before { content: ""; display: inline-block; width: 40px; height: 1px; background: var(--red); vertical-align: middle; margin-right: 1rem; }

/* Contact */
.contact { background: var(--char); color: var(--white); display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 100px); padding: clamp(80px, 11vw, 140px) var(--gutter); }
.contact-info > p:not(.eyebrow) { color: rgba(255,255,255,.75); max-width: 440px; }
.contact dl { margin: 2.5rem 0 0; }
.contact dt { font-size: .68rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--stone); margin-top: 1.4rem; }
.contact dd { margin: .2rem 0 0; font: 400 1.5rem var(--serif); }
.contact dd a { text-decoration: none; }
.contact dd a:hover { color: var(--red); }
.contact-form { display: grid; gap: 1.4rem; align-content: start; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.contact-form label { display: grid; gap: .5rem; font-size: .68rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.25); color: var(--white); font: 300 1rem var(--sans); padding: .7em 0; border-radius: 0; letter-spacing: normal; text-transform: none; }
.contact-form select option { color: var(--ink); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--red); }
.contact-form textarea { resize: vertical; }
.contact-form .btn { justify-self: start; margin-top: .6rem; }
.form-status { margin: 0; color: rgba(255,255,255,.8); }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); text-align: center; padding: 70px var(--gutter) 40px; font-size: .9rem; }
.site-footer img { width: 280px; height: auto; margin: 0 auto 2.2rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.fine { font-size: .72rem; letter-spacing: .12em; color: rgba(255,255,255,.4); margin-top: 2rem; }

/* Lightbox */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8,8,9,.97); color: var(--white); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(0,0,0,.9); }
.lightbox img { max-width: calc(100vw - 160px); max-height: calc(100vh - 120px); object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--white); font: 300 3rem/1 var(--sans); cursor: pointer; opacity: .7; padding: 1rem; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: 10px; right: 16px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-caption { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-size: .8rem; letter-spacing: .12em; color: rgba(255,255,255,.7); margin: 0; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s ease, transform 1s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue::after { animation: none; }
}

/* Tablet */
@media (max-width: 960px) {
  .services, .about, .contact { grid-template-columns: 1fr; }
  .services-image img { min-height: 0; aspect-ratio: 16 / 10; }
  .about-image { order: -1; }
  .steps { grid-template-columns: 1fr 1fr; }
}

/* Phone */
@media (max-width: 720px) {
  .brand img { height: 30px; }
  .nav-toggle { display: block; position: relative; z-index: 2; width: 32px; height: 24px; background: none; border: 0; cursor: pointer; }
  .nav-toggle span { position: absolute; left: 0; right: 0; height: 1.5px; background: var(--white); transition: transform .3s, top .3s; }
  .nav-toggle span:first-child { top: 7px; }
  .nav-toggle span:last-child { top: 16px; }
  .nav-toggle[aria-expanded="true"] span:first-child { top: 11px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { top: 11px; transform: rotate(-45deg); }
  .nav { position: fixed; inset: 0; background: var(--ink); flex-direction: column; justify-content: center; gap: 2.2rem; opacity: 0; pointer-events: none; transition: opacity .35s; }
  .nav.open { opacity: 1; pointer-events: auto; }
  .nav a { font-size: .9rem; }
  .projects { grid-template-columns: 1fr; }
  .gallery { columns: 2; column-gap: 8px; }
  .gallery a { margin-bottom: 8px; }
  .pillars { grid-template-columns: 1fr; }
  .pillars li + li { border-left: 0; border-top: 1px solid var(--line); margin-top: 2.2rem; }
  .steps { grid-template-columns: 1fr; }
  .contact-form .row { grid-template-columns: 1fr; }
  .lightbox img { max-width: 100vw; max-height: calc(100vh - 140px); }
  .lb-prev, .lb-next { top: auto; bottom: 40px; transform: none; }
}
