/* ==========================================================================
   Bagwell Custom Homes — Phase 1 redesign
   Hill Country Modern: charcoal bg, bone type, rust accent, Fraunces + DM Sans
   ========================================================================== */

/* ── TOKENS ──────────────────────────────────────────────── */
:root {
  --rust:       #7a1f2e;
  --rust-bright:#a8344a;
  --char:       #2a2018;
  --char-2:     #382b21;
  --char-3:     #483828;
  --bone:       #ebe2d2;
  --bone-2:     #d6c9b0;
  --line:       rgba(235, 226, 210, 0.14);
  --display:    "Fraunces", Georgia, serif;
  --sans:       "DM Sans", -apple-system, system-ui, sans-serif;
}

/* ── RESET / BASE ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--sans);
  color: var(--bone);
  background: var(--char);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ── MOBILE NAV OVERLAY ──────────────────────────────────── */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--char);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
}
.mobile-close {
  position: absolute;
  top: 28px; right: 28px;
  background: none; border: none;
  color: var(--bone);
  font-size: 36px; line-height: 1;
  cursor: pointer;
  padding: 8px;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.mobile-close:hover { opacity: 1; }
.mobile-nav-links {
  display: flex; flex-direction: column;
  align-items: center; gap: 32px;
}
.mobile-nav-links a {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(32px, 6vw, 52px);
  color: var(--bone);
  transition: color 0.2s;
}
.mobile-nav-links a:hover { color: var(--rust-bright); }
.mobile-nav-cta { font-size: 15px !important; }
.mobile-nav-phone {
  font-size: 15px;
  color: rgba(235,226,210,0.6);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

/* ── NAV ─────────────────────────────────────────────────── */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  padding: 28px 48px;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, padding 0.3s ease, position 0s;
}
.nav.nav--fixed {
  position: fixed;
  background: rgba(22,18,16,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 18px 48px;
  border-bottom: 1px solid var(--line);
}
.nav-mark {
  display: flex; align-items: center; gap: 14px;
}
.nav-mark img {
  height: 104px; width: auto;
  opacity: 0.95;
}
.nav-mark-tag {
  font-family: var(--display);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: rgba(235,226,210,0.7);
  border-left: 1px solid rgba(235,226,210,0.25);
  padding-left: 14px;
}
.nav-links {
  display: flex; gap: 32px;
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.02em;
  justify-self: center;
}
.nav-links a { transition: color 0.2s; color: rgba(235,226,210,0.85); }
.nav-links a:hover { color: var(--rust-bright); }
.nav-right {
  justify-self: end;
  display: flex; align-items: center; gap: 20px;
  font-size: 13px;
}
.nav-phone {
  font-variant-numeric: tabular-nums;
  opacity: 0.8;
}
.nav-cta {
  background: var(--rust); color: white;
  padding: 12px 20px; border-radius: 999px;
  font-weight: 500; font-size: 13px;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--rust-bright); }
.nav-hamburger {
  display: none;
  grid-column: 3;
  justify-self: end;
  background: none; border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column; gap: 5px;
  z-index: 110;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--bone);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans);
  font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
  padding: 14px 24px;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--rust); color: white;
  border: 1px solid var(--rust);
}
.btn-primary:hover {
  background: var(--rust-bright); border-color: var(--rust-bright);
}
.btn-ghost {
  background: transparent; color: var(--bone);
  border: 1px solid rgba(235,226,210,0.35);
}
.btn-ghost:hover {
  background: rgba(235,226,210,0.08); border-color: var(--bone);
}
.arrow {
  width: 14px; height: 1px;
  background: currentColor;
  position: relative;
  transition: width 0.2s ease;
  flex-shrink: 0;
}
.arrow::after {
  content: "";
  position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn:hover .arrow { width: 22px; }

/* ── EYEBROW (shared) ────────────────────────────────────── */
.section-eyebrow {
  font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--rust-bright); font-weight: 500;
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px;
}
.section-eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--rust-bright);
  flex-shrink: 0;
}

/* ── SECTION TITLE (shared) ──────────────────────────────── */
.section-title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(40px, 4.8vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
  color: var(--bone);
}
.section-title .accent { font-style: italic; color: var(--rust-bright); }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  min-height: 820px;
  position: relative;
  padding: 160px 48px 64px;
  overflow: hidden;
}
.hero-grid {
  max-width: 1480px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr;
  position: relative; z-index: 1;
}
.hero-eyebrow {
  font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--rust-bright); margin-bottom: 28px;
  display: flex; align-items: center; gap: 14px;
}
.hero-eyebrow::before {
  content: ""; width: 32px; height: 1px; background: var(--rust-bright);
}
.hero-title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(56px, 7.4vw, 116px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  text-wrap: balance;
  color: var(--bone);
}
.hero-title .accent {
  font-style: italic; color: var(--rust-bright);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.hero-sub {
  font-size: 18px; line-height: 1.65;
  color: rgba(235,226,210,0.72);
  max-width: 44ch;
  margin: 0 0 40px;
}
.hero-sub .accent { font-style: italic; color: var(--rust-bright); }
.hero-actions {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
}

/* Hero animated background (Ken Burns) */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform-origin: 55% 60%;
  animation: heroKenBurns 18s ease-in-out infinite alternate;
  will-change: transform;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(22,18,16,0.88) 0%, rgba(22,18,16,0.62) 38%, rgba(22,18,16,0.35) 70%, rgba(22,18,16,0.55) 100%),
    linear-gradient(to bottom, rgba(22,18,16,0.45) 0%, transparent 28%, transparent 62%, rgba(22,18,16,0.55) 100%);
}
@keyframes heroKenBurns {
  0%   { transform: scale(1.02) translate(0, 0); }
  100% { transform: scale(1.12) translate(-2%, -1.5%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg img {
    animation: none;
    transform: scale(1.04);
  }
}

/* Hero marquee */
.hero-marquee {
  margin-top: 100px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  max-width: 1480px; margin-left: auto; margin-right: auto;
}
.mq-item {
  display: flex; align-items: center; gap: 14px;
  font-size: 13px; letter-spacing: 0.04em;
  color: rgba(235,226,210,0.7);
}
.mq-num {
  font-family: var(--display);
  font-style: italic; font-size: 28px;
  color: var(--rust-bright);
  line-height: 1;
}

/* ── PROCESS (craft) ─────────────────────────────────────── */
.craft {
  padding: 160px 48px;
  max-width: 1480px; margin: 0 auto;
}
.section-head {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 64px; align-items: end;
  margin-bottom: 72px;
}
.section-lede {
  font-size: 18px; line-height: 1.65;
  color: rgba(235,226,210,0.7);
  max-width: 50ch;
  margin: 0;
}
.craft-rows { display: flex; flex-direction: column; }
.row {
  display: grid; grid-template-columns: 80px 1fr 1.4fr;
  gap: 40px; align-items: start;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.row:last-child { border-bottom: 1px solid var(--line); }
.row-num {
  font-family: var(--display); font-style: italic;
  font-size: 32px; color: rgba(235,226,210,0.4);
  font-weight: 300;
}
.row-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: 32px; line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--bone);
}
.row-desc {
  font-size: 16px; line-height: 1.7;
  color: rgba(235,226,210,0.7);
}
.row-meta {
  text-align: right;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(235,226,210,0.55);
  align-self: center;
}

/* ── PORTFOLIO ───────────────────────────────────────────── */
.portfolio {
  background: var(--char-2);
  padding: 140px 48px;
  border-top: 1px solid var(--line);
}
.portfolio-inner { max-width: 1480px; margin: 0 auto; }
.pgrid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.proj {
  position: relative; overflow: hidden;
  border-radius: 4px; cursor: pointer;
  display: block; text-decoration: none;
}
.proj img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s cubic-bezier(.2,.7,.3,1);
}
.proj:hover img { transform: scale(1.05); }
.proj-card {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  background: linear-gradient(
    180deg,
    rgba(22,18,16,0.4) 0%,
    rgba(22,18,16,0) 30%,
    rgba(22,18,16,0) 60%,
    rgba(22,18,16,0.85) 100%
  );
  color: var(--bone);
}
.proj-tag {
  align-self: flex-start;
  background: rgba(22,18,16,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(235,226,210,0.25);
  padding: 6px 12px;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  border-radius: 999px;
}
.proj-foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
}
.proj-name {
  font-family: var(--display);
  font-size: 26px; line-height: 1.1; font-weight: 400;
  letter-spacing: -0.005em;
}
.proj-loc {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  opacity: 0.85; white-space: nowrap;
}
/* portfolio size classes (from data .size field) */
.proj-large  { grid-column: span 8; height: 540px; }
.proj-tall   { grid-column: span 4; height: 540px; }
.proj-medium { grid-column: span 5; height: 420px; }
.proj-small  { grid-column: span 4; height: 420px; }
.proj-xsmall { grid-column: span 3; height: 420px; }

.portfolio-foot {
  margin-top: 56px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.portfolio-count {
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(235,226,210,0.55);
}

/* ── PHILOSOPHY ──────────────────────────────────────────── */
.philosophy {
  padding: 180px 48px;
  max-width: 1280px; margin: 0 auto;
  text-align: center;
}
.phil-eyebrow {
  font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--rust-bright); margin-bottom: 32px;
}
.phil {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(40px, 5.6vw, 96px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
  color: var(--bone);
}
.phil .accent { font-style: italic; color: var(--rust-bright); }
.phil-meta {
  margin-top: 40px;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(235,226,210,0.55);
}

/* ── ABOUT ───────────────────────────────────────────────── */
.about-split {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--char-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-img {
  background-size: cover; background-position: center;
  min-height: 640px;
}
.about-text {
  padding: 100px 72px;
  display: flex; flex-direction: column; justify-content: center;
}
.about-h {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.05; letter-spacing: -0.01em;
  margin: 16px 0 28px;
  text-wrap: balance;
  color: var(--bone);
}
.about-h .accent { font-style: italic; color: var(--rust-bright); }
.about-body {
  font-size: 17px; line-height: 1.7;
  color: rgba(235,226,210,0.72);
  max-width: 50ch; margin: 0 0 20px;
}
.about-cta { align-self: flex-start; margin-top: 12px; }

/* ── CTA ─────────────────────────────────────────────────── */
.cta {
  position: relative; min-height: 580px;
  display: flex; align-items: center;
  overflow: hidden;
}
.cta-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.cta-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(
    90deg,
    rgba(22,18,16,0.88) 0%,
    rgba(22,18,16,0.6) 55%,
    rgba(22,18,16,0.25) 100%
  );
}
.cta-inner {
  position: relative; z-index: 2;
  max-width: 1480px; margin: 0 auto;
  padding: 0 48px; width: 100%;
}
.cta-eyebrow {
  font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--rust-bright); margin-bottom: 24px;
  display: flex; align-items: center; gap: 14px;
}
.cta-eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--rust-bright);
}
.cta-h {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(44px, 5.4vw, 84px);
  line-height: 1.0; letter-spacing: -0.02em;
  margin: 0 0 36px; max-width: 16ch;
  text-wrap: balance;
  color: var(--bone);
}
.cta-h .accent { font-style: italic; color: var(--rust-bright); }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── CONTACT SECTION ─────────────────────────────────────── */
.contact-section {
  background: var(--char-2);
  padding: 140px 48px;
  border-top: 1px solid var(--line);
}
.contact-inner { max-width: 1480px; margin: 0 auto; }
.contact-head { margin-bottom: 72px; }
.contact-head .section-title { margin-bottom: 20px; }
.contact-grid {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 80px; align-items: start;
}

/* Form */
.form-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 20px;
}
.form-group label {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 500;
  color: rgba(235,226,210,0.65);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(235,226,210,0.05);
  border: 1px solid rgba(235,226,210,0.2);
  border-radius: 4px;
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--bone);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(235,226,210,0.3); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(235,226,210,0.5);
  background: rgba(235,226,210,0.08);
}
.form-group select { appearance: none; cursor: pointer; }
.form-group select option { background: var(--char-2); color: var(--bone); }
.form-group textarea { resize: vertical; }
.btn-submit { margin-top: 8px; font-size: 14px; padding: 16px 28px; }

/* Contact info panel */
.contact-info {
  display: flex; flex-direction: column; gap: 40px;
  padding-top: 8px;
}
.contact-detail-label {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 500;
  color: rgba(235,226,210,0.5);
  margin-bottom: 8px;
}
.contact-detail-value {
  font-size: 17px; line-height: 1.6;
  color: var(--bone);
  transition: color 0.2s;
}
a.contact-detail-value:hover { color: var(--rust-bright); }
.contact-appt {
  display: block; margin-top: 6px;
  opacity: 0.6; font-size: 13px;
}
.contact-detail-muted { opacity: 0.65; font-size: 15px; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: var(--char);
  padding: 100px 48px 36px;
  border-top: 1px solid var(--line);
}
.foot-grid {
  max-width: 1480px; margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}
.foot-logo {
  height: 64px; width: auto;
  filter: brightness(0) invert(1); opacity: 0.95;
  margin-bottom: 22px;
}
.foot-tag {
  font-family: var(--display); font-style: italic;
  font-size: 19px; line-height: 1.5;
  color: rgba(235,226,210,0.85);
  max-width: 32ch;
  margin: 0;
}
.foot-h {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(235,226,210,0.95); font-weight: 500;
  margin-bottom: 18px;
}
.foot-list {
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14px; color: rgba(235,226,210,0.7);
}
.foot-list a:hover { color: var(--bone); }
.foot-appt {
  margin-top: 4px;
  color: rgba(235,226,210,0.85);
}
.foot-bottom {
  max-width: 1480px; margin: 28px auto 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
  color: rgba(235,226,210,0.45);
}

/* ── RESPONSIVE: 900–1279px ──────────────────────────────── */
@media (min-width: 900px) and (max-width: 1279px) {
  .nav { padding: 24px 40px; }
  .nav.nav--fixed { padding: 16px 40px; }

  .hero { padding: 140px 40px 56px; min-height: 720px; }

  .craft { padding: 100px 40px; }
  .row { grid-template-columns: 64px 1fr 1.4fr; }
  .row-meta { display: none; }

  .portfolio { padding: 100px 40px; }
  .pgrid { grid-template-columns: repeat(6, 1fr); gap: 16px; }
  .proj-large  { grid-column: span 6; height: 460px; }
  .proj-tall   { grid-column: span 3; height: 380px; }
  .proj-medium { grid-column: span 3; height: 380px; }
  .proj-small  { grid-column: span 3; height: 320px; }
  .proj-xsmall { grid-column: span 3; height: 320px; }

  .philosophy { padding: 120px 40px; }
  .about-text { padding: 80px 48px; }
  .contact-section { padding: 100px 40px; }
  .contact-grid { gap: 56px; }
  footer { padding: 80px 40px 32px; }
  .foot-grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
}

/* ── RESPONSIVE: <900px ──────────────────────────────────── */
@media (max-width: 899px) {
  /* Nav: logo + hamburger only */
  .nav {
    grid-template-columns: 1fr auto;
    padding: 20px 24px;
  }
  .nav.nav--fixed { padding: 14px 24px; }
  .nav-links { display: none; }
  .nav-right  { display: none; }
  .nav-hamburger { display: flex; }

  /* Hero */
  .hero { padding: 120px 24px 48px; min-height: 560px; }
  .hero-title { font-size: clamp(48px, 10vw, 72px); }
  .hero-bg img { object-position: 60% center; }
  .hero-marquee {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 48px; gap: 20px;
  }

  /* Process */
  .craft { padding: 80px 24px; }
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .row {
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto;
    gap: 16px 24px;
  }
  .row-num { font-size: 24px; }
  .row-title { font-size: 24px; }
  .row-desc { grid-column: 1 / -1; }
  .row-meta { display: none; }

  /* Portfolio */
  .portfolio { padding: 80px 24px; }
  .pgrid { grid-template-columns: 1fr; gap: 16px; }
  .proj-large, .proj-tall, .proj-medium, .proj-small, .proj-xsmall {
    grid-column: span 1; height: 320px;
  }
  .portfolio-foot { flex-direction: column; gap: 20px; align-items: flex-start; }

  /* Philosophy */
  .philosophy { padding: 80px 24px; }

  /* About */
  .about-split { grid-template-columns: 1fr; }
  .about-img { min-height: 320px; }
  .about-text { padding: 64px 24px; }

  /* CTA */
  .cta-inner { padding: 0 24px; }
  .cta { min-height: 480px; }

  /* Contact */
  .contact-section { padding: 80px 24px; }
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  /* Footer */
  footer { padding: 64px 24px 28px; }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .foot-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .foot-grid { grid-template-columns: 1fr; }
  .hero-marquee { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Projects section
   ========================================================================== */

/* ── PROJECT LIST PAGE ───────────────────────────────────── */
.proj-list-page { padding-top: 100px; }

.proj-list-header {
  max-width: 1480px; margin: 0 auto;
  padding: 80px 48px 64px;
  border-bottom: 1px solid var(--line);
}
.proj-list-header .section-title { margin: 16px 0 0; }
.proj-list-header .section-lede  { margin-top: 28px; max-width: 56ch; }

.proj-list-grid {
  max-width: 1480px; margin: 0 auto;
  padding: 72px 48px 0;
  display: flex; flex-direction: column; gap: 0;
}

.proj-list-card {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center;
  padding: 72px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  transition: opacity 0.2s;
}
.proj-list-card:last-child { border-bottom: 1px solid var(--line); }
.proj-list-card:hover { opacity: 0.85; }
.proj-list-card:nth-child(even) .proj-list-img { order: 2; }
.proj-list-card:nth-child(even) .proj-list-body { order: 1; }

.proj-list-img {
  aspect-ratio: 4 / 3;
  background-size: cover; background-position: center;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  transition: transform 0.6s cubic-bezier(.2,.7,.3,1);
}
.proj-list-card:hover .proj-list-img { transform: scale(1.02); }

.proj-list-body { display: flex; flex-direction: column; gap: 16px; }
.proj-list-meta {
  display: flex; align-items: center; gap: 16px;
}
.proj-list-tag {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--rust-bright); font-weight: 500;
}
.proj-list-year {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(235,226,210,0.4);
}
.proj-list-name {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.0; letter-spacing: -0.02em;
  color: var(--bone); margin: 0;
  transition: color 0.2s;
}
.proj-list-card:hover .proj-list-name { color: var(--rust-bright); }
.proj-list-loc {
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(235,226,210,0.5);
  margin: 0;
}
.proj-list-summary {
  font-size: 17px; line-height: 1.7;
  color: rgba(235,226,210,0.65);
  max-width: 46ch; margin: 8px 0 0;
}
.proj-list-read {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--rust-bright);
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 8px;
}

.proj-list-foot {
  max-width: 1480px; margin: 0 auto;
  padding: 64px 48px 120px;
}

/* ── PROJECT DETAIL PAGE ─────────────────────────────────── */
.proj-detail-page { padding-top: 80px; }

.proj-detail-hero {
  width: 100%; height: 70vh; min-height: 480px; max-height: 780px;
  background-size: cover; background-position: center;
  position: relative;
}
.proj-detail-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(22,18,16,0.15) 0%,
    rgba(22,18,16,0) 40%,
    rgba(22,18,16,0.5) 100%
  );
}

.proj-detail-header {
  max-width: 1000px; margin: 0 auto;
  padding: 64px 48px 48px;
}
.proj-detail-back {
  margin-bottom: 36px;
}
.proj-detail-back a {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(235,226,210,0.5);
  transition: color 0.2s;
}
.proj-detail-back a:hover { color: var(--bone); }

.proj-detail-title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(44px, 5.5vw, 80px);
  line-height: 1.0; letter-spacing: -0.02em;
  margin: 16px 0 20px;
  color: var(--bone);
}
.proj-detail-info {
  display: flex; gap: 28px;
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(235,226,210,0.5);
}

.proj-detail-body {
  max-width: 700px; margin: 0 auto;
  padding: 0 48px 64px;
  font-size: 18px; line-height: 1.78;
  color: rgba(235,226,210,0.82);
}
.proj-detail-body p { margin: 0 0 24px; }
.proj-detail-body em { color: var(--rust-bright); }

/* Gallery */
.proj-gallery {
  background: var(--char-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 72px 48px;
}
.proj-gallery-inner {
  max-width: 1480px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
}
.proj-gallery-img {
  overflow: hidden; border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.proj-gallery-img img {
  width: 100%; height: 360px;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(.2,.7,.3,1);
}
.proj-gallery-img:hover img { transform: scale(1.04); }

/* ── PROJECTS RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1279px) {
  .proj-list-card { gap: 48px; }
  .proj-list-header, .proj-list-grid, .proj-list-foot { padding-left: 40px; padding-right: 40px; }
  .proj-gallery { padding: 56px 40px; }
  .proj-gallery-inner { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
}

@media (max-width: 899px) {
  .proj-list-card { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; }
  .proj-list-card:nth-child(even) .proj-list-img { order: 0; }
  .proj-list-card:nth-child(even) .proj-list-body { order: 0; }
  .proj-list-header { padding: 56px 24px 40px; }
  .proj-list-grid { padding: 48px 24px 0; }
  .proj-list-foot { padding: 48px 24px 80px; }
  .proj-detail-header { padding: 48px 24px 32px; }
  .proj-detail-body { padding: 0 24px 48px; }
  .proj-gallery { padding: 48px 24px; }
  .proj-gallery-inner { grid-template-columns: 1fr; }
  .proj-gallery-img img { height: 260px; }
  .proj-detail-hero { height: 50vh; min-height: 320px; }
}

/* ── FROM THE FIELD strip (homepage) ────────────────────── */
.field-strip {
  background: var(--char);
  padding: 140px 48px;
  border-top: 1px solid var(--line);
}
.field-inner {
  max-width: 1480px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.6fr;
  gap: 80px; align-items: start;
}
.field-head {
  display: flex; flex-direction: column; align-items: flex-start; gap: 32px;
  position: sticky; top: 120px;
}
.field-all { align-self: flex-start; }

.field-posts {
  display: flex; flex-direction: column; gap: 0;
}
.field-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  transition: opacity 0.2s;
}
.field-card:last-child { border-bottom: 1px solid var(--line); }
.field-card:hover { opacity: 0.75; }

.field-card-date {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(235,226,210,0.45);
}
.field-card-title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.05; letter-spacing: -0.015em;
  color: var(--bone); margin: 0;
  transition: color 0.2s;
}
.field-card:hover .field-card-title { color: var(--rust-bright); }

.field-card-excerpt {
  font-size: 16px; line-height: 1.7;
  color: rgba(235,226,210,0.62);
  max-width: 60ch; margin: 0;
}
.field-card-read {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--rust-bright);
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 4px;
}

@media (max-width: 1279px) {
  .field-strip { padding: 100px 40px; }
  .field-inner { grid-template-columns: 1fr; gap: 48px; }
  .field-head { position: static; flex-direction: row; align-items: center; flex-wrap: wrap; }
}
@media (max-width: 899px) {
  .field-strip { padding: 80px 24px; }
  .field-card { padding: 36px 0; }
}

/* ==========================================================================
   Blog / Post pages
   ========================================================================== */

/* On non-home pages the nav is pre-fixed with a dark background */
.nav--page {
  position: fixed;
  background: rgba(22,18,16,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 18px 48px;
  border-bottom: 1px solid var(--line);
}

/* ── BLOG LIST ───────────────────────────────────────────── */
.blog-page { padding-top: 100px; }

.blog-header {
  max-width: 1480px; margin: 0 auto;
  padding: 80px 48px 64px;
  border-bottom: 1px solid var(--line);
}
.blog-header .section-title { margin: 16px 0 0; }
.blog-header .section-lede  { margin-top: 28px; max-width: 56ch; }

.blog-grid {
  max-width: 1480px; margin: 0 auto;
  padding: 72px 48px 120px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 40px;
}

.blog-empty {
  max-width: 1480px; margin: 0 auto;
  padding: 80px 48px 120px;
  color: rgba(235,226,210,0.5);
  font-style: italic;
}

.post-card {
  display: flex; flex-direction: column; gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.post-card:hover { opacity: 0.75; }

.post-card-date {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(235,226,210,0.45);
}
.post-card-title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.1; letter-spacing: -0.01em;
  color: var(--bone); margin: 0;
  transition: color 0.2s;
}
.post-card:hover .post-card-title { color: var(--rust-bright); }

.post-card-excerpt {
  font-size: 15px; line-height: 1.7;
  color: rgba(235,226,210,0.62);
  flex: 1; margin: 0;
}
.post-card-read {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--rust-bright);
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 4px;
}

/* ── SINGLE POST ─────────────────────────────────────────── */
.post-page { padding-top: 100px; }

.post-back {
  max-width: 760px; margin: 0 auto;
  padding: 40px 48px 0;
}
.post-back a {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(235,226,210,0.5);
  transition: color 0.2s;
}
.post-back a:hover { color: var(--bone); }

.post-header {
  max-width: 760px; margin: 0 auto;
  padding: 40px 48px 0;
}
.post-title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.0; letter-spacing: -0.02em;
  margin: 16px 0 32px;
  text-wrap: balance;
  color: var(--bone);
}
.post-meta {
  display: flex; gap: 28px;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(235,226,210,0.45);
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.post-body {
  max-width: 760px; margin: 0 auto;
  padding: 56px 48px 80px;
}
.post-body > * + * { margin-top: 0; }
.post-body h2 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05; letter-spacing: -0.01em;
  color: var(--bone); margin: 56px 0 20px;
}
.post-body h3 {
  font-family: var(--display);
  font-weight: 400; font-size: 22px;
  color: var(--bone); margin: 40px 0 16px;
}
.post-body p {
  font-size: 18px; line-height: 1.78;
  color: rgba(235,226,210,0.82);
  margin: 0 0 26px;
}
.post-body strong { color: var(--bone); font-weight: 600; }
.post-body em { font-style: italic; color: var(--rust-bright); }
.post-body a { color: var(--rust-bright); text-decoration: underline; text-underline-offset: 3px; }
.post-body a:hover { color: var(--bone); }
.post-body ul, .post-body ol {
  padding-left: 24px; margin: 0 0 26px;
}
.post-body li {
  font-size: 18px; line-height: 1.78;
  color: rgba(235,226,210,0.82);
  margin-bottom: 10px;
}
.post-body blockquote {
  border-left: 2px solid var(--rust);
  margin: 44px 0; padding: 4px 32px;
}
.post-body blockquote p {
  font-style: italic; font-size: 22px;
  color: rgba(235,226,210,0.9);
  line-height: 1.55;
}
.post-body img {
  width: 100%; border-radius: 4px;
  margin: 44px 0;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* Post CTA strip */
.post-cta {
  background: var(--char-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.post-cta-inner {
  max-width: 760px; margin: 0 auto;
  padding: 80px 48px;
}
.post-cta-h {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.0; letter-spacing: -0.02em;
  margin: 16px 0 36px;
  text-wrap: balance;
  color: var(--bone);
}
.post-cta-h .accent { font-style: italic; color: var(--rust-bright); }

/* ── BLOG RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1279px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
  .nav--page { padding: 18px 40px; }
}

@media (max-width: 899px) {
  .blog-header { padding: 60px 24px 48px; }
  .blog-grid { grid-template-columns: 1fr; padding: 48px 24px 80px; }
  .post-back  { padding: 32px 24px 0; }
  .post-header { padding: 32px 24px 0; }
  .post-body  { padding: 40px 24px 64px; }
  .post-cta-inner { padding: 64px 24px; }
  .nav--page { padding: 14px 24px; }
}
