/* ============================================================
   AFFORDABLE HOME BUILDERS
   Palette: Graphite #0F1318 · Charcoal-blue #161C24 · Linen #ECEAE4 · Stone #8A8F96 · White #F7F6F3
   Type: Josefin Sans (UI) + Cormorant (display)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 18px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, button, textarea { font-family: inherit; }

/* ── SKIP NAV ── */
.skip-nav {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-nav:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  overflow: visible;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--white);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  z-index: 9999;
}

/* ── TOKENS ── */
:root {
  --ink:       #141414;
  --cream:     #ECEAE4;
  --stone:     #8A8F96;
  --white:     #F7F6F3;
  --accent:    #2A3D5C;   /* cool blue — text accent on linen only, never as bg */
  --paper:     #F2F1EE;   /* warm off-white — section backgrounds */
  --footer-bg: #0D0D0D;   /* slightly deeper than --ink for grounding */
  --border-d:  rgba(247,246,243,0.09);
  --border-l:  rgba(20,20,20,0.11);
  --R:         18px;
  --T:         0.35s ease;
  --max:       1360px;
  --pad:       clamp(24px, 5vw, 80px);
}

body {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--ink);
  overflow-x: hidden;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

/* ── GRAIN — shared noise texture ── */
.grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  mix-blend-mode: overlay;
  pointer-events: none;
  will-change: transform;
}

/* ── REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(36px) scale(0.98);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: none; }

/* ── LABELS ── */
.label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 200;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--stone);
  display: block;
  margin-bottom: 20px;
}

/* ── BUTTONS ── */
.btn-outline {
  display: inline-block;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 200;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 14px 36px;
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(236,234,228,0.25);
  border-radius: 1px;
  transition: border-color var(--T), color var(--T);
}
.btn-outline:hover { border-color: var(--cream); }

.model-panel__body .label { margin-bottom: 0; }
.model-panel__body .label {
  color: var(--accent);
  letter-spacing: 0.3em;
  font-weight: 400;
  opacity: 1;
}

.model-panel__body .btn-outline {
  color: var(--accent);
  border-color: rgba(42,61,92,0.5);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  padding: 16px 36px;
  align-self: flex-start;
}
.model-panel__body .btn-outline:hover {
  border-color: var(--accent);
  background: rgba(42,61,92,0.05);
}

/* ============================================================
   NAV — Hôtel Particulier style: centered wordmark, links either side
   ============================================================ */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 200;
  padding: 0 var(--pad);
  transition: background var(--T);
}
.nav.solid { background: #141414; }

.nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 68px;
  max-width: var(--max);
  margin: 0 auto;
}

.nav__wordmark {
  display: flex;
  align-items: center;
  gap: 0;
  justify-self: center;
  text-decoration: none;
}
.nav__bird {
  height: 36px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.nav__name {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 200;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
}

.nav__left, .nav__right {
  display: flex;
  gap: 44px;
  align-items: center;
}
.nav__right { justify-content: flex-end; }

.nav__left a, .nav__right a {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247,246,243,0.88);
  transition: color var(--T);
}
.nav__left a:hover, .nav__right a:hover { color: var(--white); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  grid-column: 3;
  justify-self: end;
}
.nav__burger span { display: block; width: 20px; height: 1px; background: var(--white); }

/* MOBILE MENU */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 300;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 56px;
}
.mobile-menu.open { display: flex; }
.mobile-menu__close {
  position: absolute;
  top: 16px; right: var(--pad);
  font-size: 1.4rem;
  color: rgba(247,246,243,0.5);
  transition: color var(--T);
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.mobile-menu__close:hover { color: var(--white); }
.mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: 36px; }
.mobile-menu nav a {
  font-family: 'Cormorant', serif;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 300;
  color: rgba(247,246,243,0.8);
  letter-spacing: 0.04em;
}
.mobile-menu__cta {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 200;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 14px 44px;
  border: 1px solid rgba(247,246,243,0.3);
  color: var(--white);
  border-radius: 1px;
}

/* ============================================================
   ① HERO — full-bleed, nav overlays, text left, house right
   ============================================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background: var(--ink);
}

/* Full-bleed hero photo — shifted left to favor entrance over garage */
.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 38% center;
}

/* Film grain — z-index and opacity only; shared properties in .grain */
.hero__grain { z-index: 1; opacity: 0.11; }

/* Scrim — organic vignette anchored to left-center, feathers naturally */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse 78% 115% at -8% 62%, rgba(20,20,20,0.90) 0%, rgba(20,20,20,0.58) 32%, rgba(20,20,20,0.14) 60%, transparent 74%),
    linear-gradient(to bottom, rgba(20,20,20,0.38) 0%, transparent 24%),
    linear-gradient(to top,    rgba(20,20,20,0.52) 0%, transparent 30%),
    radial-gradient(ellipse 55% 60% at 105% 105%, rgba(20,20,20,0.22) 0%, transparent 60%);
}

/* Caption — lower-third, anchored in the dark lawn zone where scrim is strongest */
.hero__caption {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--pad) clamp(64px, 8vw, 112px);
  max-width: clamp(480px, 52vw, 700px);
}

.hero__eyebrow {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(247,246,243,0.82);
  margin-bottom: 12px;
  display: block;
}
.hero__tag {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
  display: block;
}

.hero__caption h1 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
  display: block;
}
.hero__display {
  font-family: 'Cormorant', serif;
  font-size: clamp(3.2rem, 5.8vw, 7.2rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--white);
  letter-spacing: 0.01em;
  margin-bottom: 28px;
}
.hero__sub {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247,246,243,0.92);
  margin-bottom: 20px;
  display: block;
}
.hero__learn {
  display: inline-block;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(247,246,243,0.72);
  border-bottom: 1px solid rgba(247,246,243,0.3);
  padding-bottom: 7px;
  transition: color var(--T), border-color var(--T);
}
.hero__learn:hover {
  color: var(--white);
  border-bottom-color: rgba(247,246,243,0.65);
}


/* ============================================================
   ② BUYER PROGRAMS — stacked list
   ============================================================ */
.programs {
  background: var(--paper);
  padding: clamp(80px, 10vw, 140px) var(--pad) clamp(32px, 4vw, 56px);
  position: relative;
}
/* Photo layer */
.programs::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/puntagorda02.jpg');
  background-size: cover;
  background-position: center 42%;
  opacity: 0.38;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 40%, transparent 68%);
  mask-image: linear-gradient(to bottom, black 0%, black 40%, transparent 68%);
}
/* Soft vignette — keeps edges clean */
.programs::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(242,241,238,0.52) 0%,
    rgba(242,241,238,0.08) 35%,
    rgba(242,241,238,0.08) 65%,
    rgba(242,241,238,0.52) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.programs__header {
  max-width: var(--max);
  margin: 0 auto clamp(64px, 8vw, 100px);
  position: relative;
  z-index: 1;
}
.programs__header h2 {
  font-family: 'Cormorant', serif;
  font-size: clamp(2.8rem, 5.2vw, 5.6rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 0;
}
.programs__header h2 em {
  font-style: italic;
  color: var(--accent);
  display: block;
}

/* 2×2 equal-height grid */
.programs__grid {
  max-width: var(--max);
  margin: 0 auto clamp(64px, 8vw, 100px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

a.program {
  text-decoration: none;
  color: inherit;
}
.program {
  background: var(--white);
  border: 1px solid rgba(20,20,20,0.08);
  padding: clamp(40px, 4.5vw, 60px);
  display: flex;
  flex-direction: column;
  transition: border-color var(--T);
}
.program:hover {
  border-color: rgba(20,20,20,0.22);
  box-shadow: 0 8px 32px rgba(20,20,20,0.08);
  transform: translateY(-2px);
  transition: border-color var(--T), box-shadow var(--T), transform var(--T);
}
/* Question label */
.program__q {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

/* Statement — dominant */
.program__a {
  font-family: 'Cormorant', serif;
  font-size: clamp(2rem, 2.8vw, 2.8rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.12;
  color: var(--ink);
  flex-grow: 1;
  border-top: none;
  border-left: none;
  padding: 0;
  margin-bottom: 24px;
}

/* Grounding fact */
.program__fact {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(20,20,20,0.9);
  line-height: 1.75;
  padding-top: 20px;
  border-top: 1px solid rgba(20,20,20,0.12);
}

.program__more {
  margin-top: auto;
  padding-top: 24px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ============================================================
   ④ MODELS
   ============================================================ */
.models {
  background: var(--ink);
  padding: clamp(48px, 6vw, 80px) var(--pad) 0;
  position: relative;
  overflow-x: hidden;
  border-top: 1px solid rgba(20,20,20,0.14);
}
.models__grain { z-index: 0; opacity: 0.07; }
.models > *:not(.grain) { position: relative; z-index: 1; }

.models__header {
  max-width: var(--max);
  margin: 0 auto clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: end;
}
.models__header-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.models__header h2 {
  font-family: 'Cormorant', serif;
  font-size: clamp(3rem, 4.2vw, 4.8rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--white);
}
.models__header h2 em {
  font-style: italic;
  display: block;
}
.models__location {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(247,246,243,0.85);
}
.models__header-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-left: clamp(24px, 3vw, 48px);
  border-left: 1px solid rgba(247,246,243,0.1);
  padding-bottom: 8px;
}
.models__feature {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(247,246,243,0.85);
}
.models__feature-close {
  font-family: 'Cormorant', serif;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(247,246,243,0.65);
  line-height: 1.3;
}

/* panels zone — soft white + palm overlay */
.models__panels {
  position: relative;
  background: var(--cream);
  margin: 0 calc(-1 * var(--pad)) 0;
  padding: clamp(40px, 5vw, 56px) var(--pad) clamp(48px, 6vw, 80px);
  overflow: hidden;
}
.models__panels > * { position: relative; z-index: 1; }

.model-panel {
  max-width: var(--max);
  margin: 0 auto 56px;
  display: grid;
  grid-template-columns: 3fr 2fr;
  border: 1px solid rgba(20,20,20,0.10);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(20,20,20,0.14);
}
.model-panel--alt { grid-template-columns: 2fr 3fr; }
.model-panel--alt .model-panel__img { order: 2; }
.model-panel--alt .model-panel__body { order: 1; }

.model-panel__img {
  overflow: hidden;
  min-height: 420px;
}
.model-panel__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
  display: block;
  border-radius: 0;
  transition: transform 0.8s ease;
}
.model-panel:hover .model-panel__img img { transform: scale(1.04); }

.model-panel__body {
  padding: clamp(40px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  background: var(--white);
  border-left: 1px solid rgba(42,61,92,0.12);
}
.model-panel--alt .model-panel__body {
  background: var(--white);
  border-left: none;
  border-right: 1px solid rgba(42,61,92,0.12);
}


.model-panel__price {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.model-panel__body h3 {
  font-family: 'Cormorant', serif;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 300;
  color: var(--ink);
  line-height: 1;
}

.model-panel__body ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.model-panel__body li {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(20,20,20,0.82);
  padding-left: 16px;
  position: relative;
}
.model-panel__body li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 5px; height: 1px;
  background: var(--accent);
}

/* ============================================================
   ⑥ BRIDGE — decompression band between models and contact
   ============================================================ */
.bridge {
  position: relative;
  padding: clamp(80px, 12vw, 140px) var(--pad);
  overflow: hidden;
}
.bridge::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/puntagorda07.jpg');
  background-size: cover;
  background-position: center 55%;
  z-index: 0;
}
.bridge::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(14,18,20,0.62) 0%, rgba(14,18,20,0.48) 50%, rgba(14,18,20,0.65) 100%);
  z-index: 1;
}
.bridge__inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  z-index: 2;
}
.bridge__stat--main {
  font-family: 'Cormorant', serif;
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: 0.01em;
  font-size: clamp(2.8rem, 5.2vw, 6.8rem);
  color: var(--white);
}
.bridge__stat--main em {
  font-style: italic;
  color: rgba(247,246,243,0.82);
}
.bridge__stat--sub {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 400;
  font-size: clamp(0.88rem, 1.2vw, 1.05rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247,246,243,0.92);
  margin-top: 32px;
}

/* ============================================================
   ⑦ CONTACT
   ============================================================ */
.contact {
  background: var(--cream);
  padding: clamp(64px, 8vw, 100px) var(--pad);
  position: relative;
}

.contact__inner {
  display: flex;
  gap: clamp(48px, 7vw, 100px);
  max-width: var(--max);
  margin: 0 auto;
  align-items: flex-start;
}

.contact__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact__text .label { margin-bottom: 0; color: var(--stone); }
.contact__text h2 {
  font-family: 'Cormorant', serif;
  font-size: clamp(3.2rem, 5.5vw, 5.6rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--ink);
}
.contact__text h2 em { font-style: italic; color: var(--accent); }
.contact__text p {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.93rem;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(20,20,20,0.85);
  max-width: 34ch;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 8px;
  border-top: 1px solid rgba(20,20,20,0.12);
  margin-top: 12px;
}
.contact__detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--ink);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: color var(--T);
}
a.contact__detail:hover { color: var(--ink); }
.contact__detail-label {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(20,20,20,0.65);
}

.contact__form {
  flex: 1.4;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(20,20,20,0.75);
}
.field input,
.field select {
  background: var(--white);
  border: 1px solid rgba(20,20,20,0.30);
  border-radius: 1px;
  padding: 13px 16px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.83rem;
  font-weight: 300;
  color: var(--ink);
  outline: none;
  transition: border-color var(--T);
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder { color: rgba(20,20,20,0.35); }
.field input:focus,
.field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(42,61,92,0.10); }
.field select { cursor: pointer; color: var(--ink); }
.field select option { background: var(--white); color: var(--ink); }

.btn-submit {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: 1px;
  transition: background var(--T), transform var(--T), box-shadow var(--T);
  width: 100%;
}
.btn-submit:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(20,20,20,0.18);
}

.form-note {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.76rem;
  font-weight: 300;
  color: rgba(20,20,20,0.62);
  line-height: 1.7;
}
.form-note a { color: rgba(20,20,20,0.70); text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--footer-bg);
  padding: clamp(48px, 6vw, 72px) var(--pad);
  border-top: 1px solid rgba(247,246,243,0.12);
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer__brand {
  padding-left: 0;
}
.footer__wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  opacity: 1;
}
.footer__bird {
  height: 28px;
  width: auto;
  flex-shrink: 0;
}
.footer__name {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 200;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
}
.footer__sub {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 200;
  letter-spacing: 0.14em;
  color: rgba(247,246,243,0.3);
  margin-bottom: 16px;
}
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__contact a {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 200;
  letter-spacing: 0.1em;
  color: rgba(247,246,243,0.72);
  transition: color var(--T);
}
.footer__contact a:hover { color: var(--white); }
.footer__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(5, auto);
  grid-auto-flow: column;
  gap: 4px 32px;
  align-items: start;
}
.footer__nav a {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 200;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247,246,243,0.85);
  transition: color var(--T);
  padding: 4px 0;
}
.footer__nav a:hover { color: var(--white); }
.footer__legal {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 200;
  color: rgba(247,246,243,0.4);
  line-height: 1.8;
  text-align: right;
}
.footer__ai-ref {
  opacity: 0.5;
  text-decoration: none;
  color: inherit;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── TABLET (≤1024px) ── */
@media (max-width: 1024px) {
  .programs__grid { grid-template-columns: repeat(2, 1fr); }

  .models__header { grid-template-columns: 1fr; }
  .models__header-right {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(247,246,243,0.1);
    padding-top: 24px;
  }

  .model-panel { grid-template-columns: 1fr; }
  .model-panel--alt .model-panel__img { order: 0; }
  .model-panel--alt .model-panel__body {
    order: 1;
    border-right: none;
    border-left: 1px solid rgba(42,61,92,0.12);
  }
  .model-panel__img { aspect-ratio: 4/3; min-height: unset; }

  .contact__inner { flex-direction: column; }

  .footer__inner { grid-template-columns: 1fr; }
  .footer__legal { text-align: left; }
}

/* ── MOBILE (≤768px) — intentional mobile composition ── */
@media (max-width: 768px) {

  /* NAV */
  .nav__inner { height: 60px; }
  .nav__left, .nav__right { display: none; }
  .nav__burger { display: flex; }

  /* HERO */
  .hero { min-height: 100svh; }
  .hero__photo { object-position: 52% center; }
  .hero__caption {
    padding: 0 24px 44px;
    max-width: 100%;
    justify-content: flex-end;
  }
  .hero__display {
    font-size: clamp(2.6rem, 9vw, 3.2rem);
    margin-bottom: 20px;
  }
  .hero__eyebrow { margin-bottom: 12px; }

  /* PROGRAMS */
  .programs {
    padding: 56px 24px 28px;
  }
  .programs__header {
    margin-bottom: 40px;
  }
  .programs__header h2 {
    font-size: clamp(2.2rem, 8vw, 2.8rem);
  }
  .programs__header .label {
    font-size: 0.7rem;
    margin-bottom: 20px;
  }
  .programs__grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 0;
  }
  .program {
    padding: 28px 24px;
  }
  .program__a {
    font-size: clamp(1.7rem, 6vw, 2rem);
  }
  .program__fact {
    font-size: 0.86rem;
    line-height: 1.65;
  }

  /* MODELS */
  .models {
    padding: 40px 0 0;
  }
  .models__header {
    padding: 0 24px;
    margin-bottom: 20px;
  }
  .models__header h2 {
    font-size: clamp(2.4rem, 8.5vw, 3rem);
  }
  .models__location {
    font-size: 0.9rem;
    line-height: 1.7;
  }
  .models__header-right { display: none; }
  .models__panels {
    margin: 0;
    padding: 20px 16px 40px;
  }
  .model-panel {
    margin-bottom: 20px;
    border-radius: 8px;
  }
  .model-panel__img { aspect-ratio: 3/2; }
  .model-panel__body {
    padding: 28px 24px;
    gap: 16px;
  }
  .model-panel__body h3 {
    font-size: clamp(1.8rem, 6.5vw, 2.4rem);
  }
  .model-panel__body li {
    font-size: 0.84rem;
  }
  .model-panel__body ul { gap: 9px; }
  .model-panel__body .btn-outline {
    padding: 14px 28px;
    font-size: 0.82rem;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
  }

  /* BRIDGE */
  .bridge {
    padding: 60px 24px;
  }
  .bridge__stat--main {
    font-size: clamp(2.4rem, 9vw, 3.6rem);
  }
  .bridge__stat--sub {
    font-size: 0.65rem;
    margin-top: 20px;
  }

  /* CONTACT */
  .contact {
    padding: 52px 24px 48px;
  }
  .contact__inner { gap: 36px; }
  .contact__text h2 {
    font-size: clamp(2.4rem, 8vw, 3rem);
  }
  .contact__text p {
    font-size: 0.88rem;
    max-width: 100%;
    line-height: 1.8;
  }
  .contact__details { gap: 16px; }
  .contact__detail { font-size: 0.84rem; }
  .form-row { grid-template-columns: 1fr; }
  .field input,
  .field select { padding: 14px 16px; font-size: 0.9rem; }
  .btn-submit { padding: 18px; font-size: 0.72rem; min-height: 52px; }

  /* FOOTER */
  .footer { padding: 44px 24px 36px; }
  .footer__inner { gap: 32px; }
  .footer__nav { grid-template-columns: 1fr; }
  .footer__nav a { min-height: 40px; display: inline-flex; align-items: center; }
  .footer__legal { font-size: 0.66rem; line-height: 1.9; }
}

/* ── SMALL MOBILE (≤480px) ── */
@media (max-width: 480px) {
  .hero__display { font-size: 2.5rem; }
  .programs__header h2 { font-size: 2.2rem; }
  .contact__text h2 { font-size: 2.3rem; }
  .model-panel__body h3 { font-size: 1.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ── CONTACT FORM — NEW DESIGN ── */

.test-section-c {
  background: var(--paper);
  padding: clamp(80px, 9vw, 120px) var(--pad);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.test-section-c__inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; gap: 0; align-items: flex-start;
}

.test-section-c__col-rule {
  flex-shrink: 0; width: 0.5px;
  background: rgba(20,20,20,0.16); align-self: stretch;
  margin: 0 clamp(32px, 4vw, 52px);
}

.test-section-c__text { flex: 1; display: flex; flex-direction: column; gap: 0; padding-right: 8px; }

.test-section-c__eyebrow {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.62rem; font-weight: 300;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--stone); margin-bottom: 14px;
}

.test-section-c__h2 {
  font-family: 'Cormorant', serif;
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  font-weight: 300; line-height: 1.15;
  color: var(--ink); margin-bottom: 14px;
}

.test-section-c__h2 em {
  font-style: italic; color: var(--accent);
  letter-spacing: -0.01em;
}

.test-section-c__p {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.85rem; font-weight: 300;
  line-height: 1.8; color: rgba(20,20,20,0.58);
  max-width: 30ch; margin-bottom: 0;
}

.test-section-c__phone {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.82rem; font-weight: 300;
  letter-spacing: 0.1em; color: var(--accent);
  text-decoration: none; margin-top: 32px; display: block;
}

.test-section-c__phone::before {
  content: ''; display: block;
  width: 28px; height: 0.5px;
  background: rgba(20,20,20,0.28); margin-bottom: 16px;
}

.test-section-c__location {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.62rem; font-weight: 300;
  letter-spacing: 0.08em; color: var(--stone);
  margin-top: 4px; display: block;
}

.test-form-c { flex: 1.4; display: flex; flex-direction: column; gap: 24px; }
.test-form-c__row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.test-form-c__row--full { grid-template-columns: 1fr; margin-top: 4px; }
.test-form-c__field { display: flex; flex-direction: column; gap: 8px; }

.test-form-c__label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.66rem; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(20,20,20,0.62); transition: color 0.22s ease;
}

.test-form-c__field.is-focused .test-form-c__label { color: var(--accent); }
.test-form-c__field.is-filled:not(.is-focused) .test-form-c__label { color: rgba(20,20,20,0.72); }

.test-form-c__input, .test-form-c__select, .test-form-c__textarea {
  background: transparent; border: none;
  border-bottom: 1px solid rgba(20,20,20,0.16);
  border-radius: 0; padding: 3px 0 12px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.9rem; font-weight: 300; color: var(--ink);
  outline: none; width: 100%; box-sizing: border-box;
  -webkit-appearance: none; appearance: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.test-form-c__input::placeholder, .test-form-c__textarea::placeholder { color: transparent; }

.test-form-c__input:hover:not(:focus),
.test-form-c__select:hover:not(:focus),
.test-form-c__textarea:hover:not(:focus) { border-bottom-color: rgba(20,20,20,0.26); }

.test-form-c__input:focus, .test-form-c__textarea:focus {
  border-bottom-color: var(--accent);
  box-shadow: 0 1px 0 0 var(--accent);
}

.test-form-c__select:focus {
  border-bottom-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='5' viewBox='0 0 9 5'%3E%3Cpath d='M1 1l3.5 3 3.5-3' stroke='%232A3D5C' stroke-width='1' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.test-form-c__select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4' viewBox='0 0 8 4'%3E%3Cpath d='M1 0.5l3 3 3-3' stroke='%238A8F96' stroke-width='0.75' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 bottom 13px; background-size: 9px; padding-right: 18px;
}

.test-form-c__select.is-placeholder { color: rgba(20,20,20,0.28); }
.test-form-c__select option { background: var(--white); color: var(--ink); }
.test-form-c__textarea { resize: none; min-height: 64px; line-height: 1.8; }

.test-form-c__actions {
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 12px; padding-top: 16px;
}

.test-form-c__submit {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.70rem; font-weight: 300;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); background: none; border: none;
  padding: 0 0 8px 0; cursor: pointer;
  position: relative; flex-shrink: 0;
  transition: color 0.22s ease, transform 0.10s ease, opacity 0.10s ease;
}

.test-form-c__submit::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 1px;
  background: rgba(20,20,20,0.38);
  transition: background 0.22s ease, height 0.22s ease;
}

.test-form-c__submit:hover { color: var(--accent); }
.test-form-c__submit:hover::after { background: var(--accent); height: 1.5px; }
.test-form-c__submit:active, .test-form-c__submit.is-pressed { transform: translateY(1px); opacity: 0.68; }
.test-form-c__submit.is-success { color: rgba(20,20,20,0.45); pointer-events: none; }
.test-form-c__submit.is-success::after { background: rgba(20,20,20,0.18); height: 0.5px; }
.test-form-c__submit-label { transition: opacity 0.18s ease; }
.test-form-c__submit-arrow {
  display: inline-block;
  transition: transform 0.22s cubic-bezier(0.25, 0, 0, 1), opacity 0.22s ease;
  font-style: normal;
}
.test-form-c__submit:hover .test-form-c__submit-arrow { transform: translateX(4px); }
.test-form-c__submit.is-success .test-form-c__submit-arrow { opacity: 0; }

.test-form-c__note {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.62rem; font-weight: 300;
  letter-spacing: 0.08em; color: rgba(20,20,20,0.38); line-height: 1.75;
}
.test-form-c__note a {
  color: inherit; text-decoration: underline;
  text-underline-offset: 2px; text-decoration-thickness: 0.5px;
  text-decoration-color: rgba(20,20,20,0.22);
  transition: color 0.22s ease, text-decoration-color 0.22s ease;
}
.test-form-c__note a:hover { color: rgba(20,20,20,0.60); text-decoration-color: rgba(20,20,20,0.38); }

@media (max-width: 900px) {
  .test-section-c__inner { flex-direction: column; }
  .test-section-c__col-rule { display: none; }
  .test-form-c__row { grid-template-columns: 1fr; gap: 30px; }
}
