/* ========================================================================
   JOHN HENRY ARCHITECT — DESIGN SYSTEM
   Closest DNA: RAMSA + Bates Masi + Backen & Backen + Lake Flato + Foster
   ======================================================================== */

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Palette — warm, hand-drawn period style */
  --bg: #FAF8F4;
  --bg-cream: #F2EBDC;
  --bg-deep: #1A1815;
  --text: #1A1815;
  --text-soft: #4A453E;
  --text-mute: #7A7468;
  --line: #E5DDD0;
  --line-strong: #C9BEAA;
  --accent: #9C7A4A;
  --accent-dark: #7A5E37;
  --accent-light: #C9A674;
  --olive: #3F4A35;
  --ink: #2A2521;
  --white: #FFFFFF;

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Hoefler Text', 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Type scale */
  --fs-xxxl: clamp(3rem, 7vw, 6rem);     /* hero h1 */
  --fs-xxl: clamp(2.5rem, 5vw, 4.5rem);  /* section h2 */
  --fs-xl: clamp(2rem, 4vw, 3rem);       /* h3 */
  --fs-l: clamp(1.5rem, 2.5vw, 2rem);    /* h4 / sub-hero */
  --fs-m: 1.125rem;                       /* body large */
  --fs-base: 1rem;                        /* body */
  --fs-s: 0.875rem;                       /* small */
  --fs-xs: 0.75rem;                       /* tiny eyebrows */

  /* Spacing scale */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4rem;
  --sp-7: 6rem;
  --sp-8: 8rem;
  --sp-9: 10rem;

  /* Layout */
  --container: 1480px;
  --container-narrow: 900px;
  --container-text: 720px;
  --radius: 2px;
  --radius-lg: 4px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 200ms;
  --dur: 400ms;
  --dur-slow: 800ms;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(26, 24, 21, 0.06);
  --shadow: 0 8px 24px rgba(26, 24, 21, 0.08);
  --shadow-lg: 0 24px 60px rgba(26, 24, 21, 0.12);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; transition: color var(--dur-fast) var(--ease); }
ul, ol { list-style: none; }
svg { display: block; }

/* ---------- TYPOGRAPHY ---------- */
.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 { font-size: var(--fs-xxxl); }
h2 { font-size: var(--fs-xxl); }
h3 { font-size: var(--fs-xl); }
h4 {
  font-family: var(--font-display);
  font-size: var(--fs-l);
  font-weight: 500;
  line-height: 1.2;
}
h5 {
  font-size: var(--fs-base);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
p { color: var(--text-soft); }
p.lead {
  font-family: var(--font-display);
  font-size: var(--fs-l);
  line-height: 1.4;
  color: var(--text);
  font-weight: 300;
  font-style: italic;
}

.eyebrow {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--accent);
  display: inline-block;
  margin-bottom: var(--sp-3);
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 12px;
  transform: translateY(-2px);
}

.serif-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  line-height: 1.35;
}

/* ---------- LAYOUT ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-4); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--sp-4); }
.container-text { max-width: var(--container-text); margin: 0 auto; padding: 0 var(--sp-4); }

section { padding: var(--sp-8) 0; position: relative; }
@media (max-width: 768px) { section { padding: var(--sp-6) 0; } }

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.section-head { text-align: center; max-width: 760px; margin: 0 auto var(--sp-7); }
.section-head h2 { margin-bottom: var(--sp-3); }
.section-head p { font-size: var(--fs-m); color: var(--text-soft); }

.divider { height: 1px; background: var(--line); margin: 0 auto; max-width: 80px; }
.divider-ornament {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; color: var(--accent); margin: var(--sp-4) auto;
}
.divider-ornament::before, .divider-ornament::after {
  content: ''; flex: 0 0 60px; height: 1px; background: var(--line-strong);
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 32px;
  font-family: var(--font-body);
  font-size: var(--fs-s);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.btn-light {
  background: var(--bg);
  color: var(--text);
  border-color: var(--bg);
}
.btn-light:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn .arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.text-link {
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  font-weight: 500;
  transition: all var(--dur) var(--ease);
}
.text-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- TOP BAR ---------- */
.topbar {
  background: var(--ink);
  color: var(--bg);
  padding: 10px 0;
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.topbar a { color: var(--accent-light); }
.topbar a:hover { color: var(--white); }
.topbar .badge {
  display: inline-flex; align-items: center; gap: 8px;
}

/* ---------- HEADER ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: padding var(--dur) var(--ease);
}
.header.scrolled { padding: 4px 0; }
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
  transition: padding var(--dur) var(--ease);
}
.header.scrolled .container { padding-top: 12px; padding-bottom: 12px; }

.brand {
  display: flex; flex-direction: column;
  line-height: 1;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
}
.brand-tag {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}
.nav-list {
  display: flex; align-items: center; gap: var(--sp-4);
}
.nav-list a {
  font-size: var(--fs-s);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text);
  position: relative;
  padding: 8px 0;
}
.nav-list a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav-list a:hover { color: var(--accent); }
.nav-list a:hover::after, .nav-list a.active::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  width: 32px; height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 100%; height: 1.5px;
  background: var(--text);
  transition: all var(--dur) var(--ease);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 960px) {
  .menu-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(360px, 88vw);
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px var(--sp-4) var(--sp-4);
    transform: translateX(100%);
    transition: transform var(--dur) var(--ease);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
  }
  .nav.open { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: flex-start; gap: var(--sp-3); width: 100%; }
  .nav-list a { font-size: var(--fs-l); font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; text-transform: none; }
  .nav-cta { width: 100%; }
  .nav-cta .btn { width: 100%; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: calc(100vh - 90px);
  min-height: 600px;
  max-height: 920px;
  padding: 0;
  overflow: hidden;
  background: var(--bg-deep);
}
.hero-stage {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.6s var(--ease), transform 8s var(--ease);
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.55) 100%);
}
.hero-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0 var(--sp-4) var(--sp-6);
  color: var(--bg);
  z-index: 2;
}
.hero-overlay .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.hero-caption {
  max-width: 540px;
}
.hero-caption .eyebrow { color: var(--accent-light); }
.hero-caption .eyebrow::before { background: var(--accent-light); }
.hero-caption h1 {
  color: var(--bg);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.05;
}
.hero-caption .project-meta {
  margin-top: var(--sp-3);
  display: flex; gap: var(--sp-3);
  font-size: var(--fs-s);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.hero-controls {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.hero-dots {
  display: flex; gap: 10px;
}
.hero-dot {
  width: 36px; height: 1.5px;
  background: rgba(255,255,255,0.3);
  transition: background var(--dur) var(--ease);
  cursor: pointer;
}
.hero-dot.active { background: var(--accent-light); }
.hero-counter {
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.75);
  font-size: var(--fs-s);
  letter-spacing: 0.1em;
}
.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: var(--sp-4);
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: var(--fs-xs);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  animation: pulse 2.4s var(--ease) infinite;
  z-index: 2;
  writing-mode: vertical-rl;
}
@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(8px); }
}
@media (max-width: 768px) {
  .hero-scroll-cue { display: none; }
  .hero-overlay { padding-bottom: var(--sp-4); }
  .hero-overlay .container { flex-direction: column; align-items: flex-start; }
}

/* ---------- TAGLINE ---------- */
.tagline-section {
  text-align: center;
  background: var(--bg);
  padding: var(--sp-9) 0;
}
.tagline-section .quote {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  line-height: 1.25;
  font-weight: 300;
  color: var(--text);
  font-style: italic;
  max-width: 920px;
  margin: 0 auto;
}
.tagline-section .attribution {
  margin-top: var(--sp-4);
  font-size: var(--fs-xs);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* ---------- PRESS BAR ---------- */
.press {
  background: var(--bg-cream);
  padding: var(--sp-5) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.press-label {
  text-align: center;
  font-size: var(--fs-xs);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: var(--sp-4);
}
.press-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-6);
  flex-wrap: wrap;
  opacity: 0.7;
  color: var(--text);
}
.press-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  letter-spacing: 0.04em;
  transition: opacity var(--dur) var(--ease);
}
.press-logo:hover { opacity: 1; }
@media (max-width: 600px) {
  .press-logos { gap: var(--sp-3); }
  .press-logo { font-size: 1.125rem; }
}

/* ---------- PILLARS ---------- */
.pillars { background: var(--bg); }
.pillars .grid-3 { gap: var(--sp-6); }
.pillar {
  text-align: left;
  position: relative;
  padding: var(--sp-3) 0;
}
.pillar-number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  display: block;
  margin-bottom: var(--sp-3);
  font-feature-settings: 'lnum';
}
.pillar h3 {
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-3);
}
.pillar p {
  font-size: var(--fs-m);
  line-height: 1.7;
  margin-bottom: var(--sp-3);
}
.pillar .text-link { font-size: var(--fs-s); }

/* ---------- HOUSES ---------- */
.houses { background: var(--bg); }
.houses-filter {
  display: flex; justify-content: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
  flex-wrap: wrap;
}
.filter-btn {
  padding: 10px 22px;
  font-size: var(--fs-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-mute);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  transition: all var(--dur) var(--ease);
}
.filter-btn:hover { color: var(--text); border-color: var(--text); }
.filter-btn.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.houses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
@media (max-width: 900px) { .houses-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .houses-grid { grid-template-columns: 1fr; gap: var(--sp-3); } }

.house {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-cream);
}
.house-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
}
.house-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.house:hover .house-media img { transform: scale(1.06); }
.house-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.6) 100%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.house:hover .house-media::after { opacity: 1; }

.house-meta {
  padding: var(--sp-3) 0;
}
.house-style {
  font-size: var(--fs-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--accent);
  margin-bottom: 8px;
}
.house-name {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 4px;
}
.house-loc {
  font-size: var(--fs-s);
  color: var(--text-mute);
}
.house-badge {
  position: absolute;
  top: var(--sp-2); left: var(--sp-2);
  background: var(--accent);
  color: var(--white);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 12px;
  z-index: 2;
}

.houses-cta { text-align: center; margin-top: var(--sp-6); }

/* ---------- ABOUT / PRINCIPAL ---------- */
.principal {
  background: var(--bg-cream);
}
.principal-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: var(--sp-7);
  align-items: center;
}
@media (max-width: 900px) {
  .principal-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
}
.principal-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.principal-media img {
  width: 100%; height: 100%; object-fit: cover;
}
.principal-media .badge {
  position: absolute;
  bottom: var(--sp-2); left: var(--sp-2);
  background: var(--bg);
  padding: 10px 16px;
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  display: flex; gap: 8px; align-items: center;
}
.principal-media .badge::before {
  content: ''; width: 8px; height: 8px;
  background: var(--accent); border-radius: 50%;
}
.principal-copy .credentials {
  display: flex; flex-wrap: wrap;
  gap: var(--sp-2);
  margin: var(--sp-4) 0;
}
.principal-copy .cred {
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
}
.principal-copy h2 { margin-bottom: var(--sp-3); }
.principal-copy p { font-size: var(--fs-m); margin-bottom: var(--sp-3); }
.principal-signature {
  margin-top: var(--sp-4);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.75rem;
  color: var(--accent);
  font-weight: 400;
}

/* ---------- PROCESS ---------- */
.process {
  background: var(--ink);
  color: var(--bg);
}
.process .eyebrow { color: var(--accent-light); }
.process .eyebrow::before { background: var(--accent-light); }
.process h2, .process h3 { color: var(--bg); }
.process p { color: rgba(250, 248, 244, 0.75); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(250, 248, 244, 0.12);
  margin-top: var(--sp-6);
}
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .process-grid { grid-template-columns: 1fr; } }
.process-step {
  background: var(--ink);
  padding: var(--sp-4) var(--sp-3);
  position: relative;
}
.step-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--accent-light);
  font-weight: 300;
  line-height: 1;
  margin-bottom: var(--sp-3);
}
.process-step h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--bg);
  font-weight: 500;
  margin-bottom: var(--sp-2);
}
.process-step p {
  font-size: var(--fs-s);
  line-height: 1.6;
  color: rgba(250, 248, 244, 0.6);
}

/* ---------- TESTIMONIALS ---------- */
.testimonials { background: var(--bg); }
.testimonial {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
  padding: var(--sp-5);
  position: relative;
}
.testimonial::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 8rem;
  color: var(--accent);
  opacity: 0.18;
  line-height: 0.8;
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  font-style: italic;
}
.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  line-height: 1.4;
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  margin-bottom: var(--sp-4);
  position: relative;
}
.testimonial-author {
  font-size: var(--fs-s);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.testimonial-meta {
  font-size: var(--fs-s);
  color: var(--text-mute);
  margin-top: 4px;
}

.testimonial-pager {
  display: flex; justify-content: center; gap: var(--sp-2);
  margin-top: var(--sp-5);
}
.testimonial-pager button {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: background var(--dur) var(--ease);
  padding: 0;
}
.testimonial-pager button.active { background: var(--accent); }

/* ---------- STYLES CALLOUT ---------- */
.styles-section { background: var(--bg-cream); }
.styles-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
}
@media (max-width: 900px) { .styles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .styles-grid { grid-template-columns: 1fr; } }
.style-card {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg);
}
.style-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter var(--dur) var(--ease);
  filter: brightness(0.7);
}
.style-card:hover img { transform: scale(1.08); filter: brightness(0.85); }
.style-card-overlay {
  position: absolute;
  inset: 0;
  padding: var(--sp-3);
  display: flex; flex-direction: column;
  justify-content: flex-end;
  color: var(--bg);
  z-index: 1;
}
.style-card h4 {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 500;
  color: var(--bg);
  line-height: 1.1;
}
.style-card .count {
  font-size: var(--fs-xs);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 8px;
}

/* ---------- JOURNAL ---------- */
.journal { background: var(--bg); }
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
@media (max-width: 900px) { .journal-grid { grid-template-columns: 1fr; } }
.journal-card {
  display: flex; flex-direction: column;
  gap: var(--sp-3);
}
.journal-card-media {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.journal-card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.journal-card:hover .journal-card-media img { transform: scale(1.05); }
.journal-card-meta {
  display: flex; gap: 12px;
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.journal-card h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.25;
  font-weight: 500;
}
.journal-card p { font-size: var(--fs-base); color: var(--text-soft); }

/* ---------- FINAL CTA ---------- */
.final-cta {
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  padding: var(--sp-9) var(--sp-4);
}
.final-cta .eyebrow { color: var(--accent-light); }
.final-cta .eyebrow::before { background: var(--accent-light); }
.final-cta h2 {
  color: var(--bg);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  margin-bottom: var(--sp-3);
  max-width: 16ch;
  margin-left: auto; margin-right: auto;
}
.final-cta p {
  color: rgba(250, 248, 244, 0.7);
  font-size: var(--fs-m);
  max-width: 580px;
  margin: 0 auto var(--sp-5);
}
.final-cta-buttons {
  display: flex; gap: var(--sp-2); justify-content: center; flex-wrap: wrap;
}
.final-cta-phone {
  margin-top: var(--sp-4);
  font-size: var(--fs-s);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250, 248, 244, 0.6);
}
.final-cta-phone a {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--accent-light);
  letter-spacing: -0.01em;
  text-transform: none;
  margin-left: 8px;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--bg-deep);
  color: rgba(250, 248, 244, 0.75);
  padding: var(--sp-7) 0 var(--sp-4);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-5);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid rgba(250, 248, 244, 0.1);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand .brand-name { color: var(--bg); font-size: 1.75rem; }
.footer-brand .brand-tag { color: var(--accent-light); }
.footer-brand p {
  margin-top: var(--sp-3);
  color: rgba(250, 248, 244, 0.6);
  font-size: var(--fs-s);
  line-height: 1.7;
  max-width: 32ch;
}
.footer h5 {
  color: var(--bg);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  margin-bottom: var(--sp-3);
}
.footer ul li { margin-bottom: 12px; }
.footer ul a {
  font-size: var(--fs-s);
  color: rgba(250, 248, 244, 0.7);
}
.footer ul a:hover { color: var(--accent-light); }
.footer-bottom {
  padding-top: var(--sp-4);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-3);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250, 248, 244, 0.45);
}
.footer-bottom a:hover { color: var(--accent-light); }
.social-icons {
  display: flex; gap: var(--sp-2); margin-top: var(--sp-3);
}
.social-icons a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(250, 248, 244, 0.15);
  border-radius: 50%;
  transition: all var(--dur) var(--ease);
  color: rgba(250, 248, 244, 0.6);
}
.social-icons a:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  transform: translateY(-2px);
}

/* ---------- MOBILE STICKY CTA ---------- */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--ink);
  z-index: 90;
  padding: 12px;
  gap: 8px;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.15);
}
.mobile-cta a {
  flex: 1;
  padding: 14px;
  text-align: center;
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: var(--radius);
  color: var(--bg);
}
.mobile-cta a.call {
  background: var(--accent);
}
.mobile-cta a.consult {
  background: transparent;
  border: 1px solid rgba(250, 248, 244, 0.3);
}
@media (max-width: 768px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 72px; }
}

/* ---------- MODAL ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 24, 21, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: var(--sp-3);
}
.modal-backdrop.open { display: flex; animation: fadeIn 300ms var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--bg);
  max-width: 580px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  padding: var(--sp-5);
  position: relative;
  animation: slideUp 400ms var(--ease);
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-close {
  position: absolute;
  top: var(--sp-3); right: var(--sp-3);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background var(--dur) var(--ease);
}
.modal-close:hover { background: var(--bg-cream); }
.modal h3 {
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-2);
}
.modal .lead {
  font-size: var(--fs-base);
  color: var(--text-soft);
  margin-bottom: var(--sp-4);
  font-style: normal;
  font-family: var(--font-body);
  font-weight: 400;
}

/* Form */
.form-step { display: none; }
.form-step.active { display: block; animation: fadeIn 300ms var(--ease); }
.form-progress {
  display: flex; gap: 4px;
  margin-bottom: var(--sp-4);
}
.form-progress span {
  flex: 1; height: 3px;
  background: var(--line);
  transition: background var(--dur) var(--ease);
}
.form-progress span.done { background: var(--accent); }
.form-progress span.active { background: var(--accent); }
.form-step-label {
  font-size: var(--fs-xs);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-2);
  font-weight: 600;
}
.form-step h4 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: var(--sp-4);
  font-weight: 400;
}
.form-options {
  display: grid; gap: 12px;
}
.form-options label {
  display: block;
  padding: 18px 22px;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  font-size: var(--fs-base);
  font-weight: 500;
  position: relative;
}
.form-options label:hover { border-color: var(--accent); background: var(--bg-cream); }
.form-options input[type=radio] { display: none; }
.form-options input[type=radio]:checked + label,
.form-options label.selected {
  border-color: var(--accent);
  background: var(--bg-cream);
  color: var(--text);
}
.form-options label.selected::after {
  content: '✓';
  position: absolute;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-weight: 700;
}
.form-row { margin-bottom: var(--sp-3); }
.form-row label.field-label {
  display: block;
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 8px;
}
.form-row input, .form-row textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  font-size: var(--fs-base);
  transition: border-color var(--dur) var(--ease);
  border-radius: var(--radius);
}
.form-row input:focus, .form-row textarea:focus {
  outline: none; border-color: var(--accent);
}
.form-row textarea { resize: vertical; min-height: 90px; }
.form-row .optional {
  font-weight: 400; color: var(--text-mute);
  text-transform: none; letter-spacing: 0;
  margin-left: 8px;
}
.form-actions {
  display: flex; justify-content: space-between;
  align-items: center; gap: var(--sp-2);
  margin-top: var(--sp-4);
}
.form-back {
  font-size: var(--fs-s);
  color: var(--text-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.form-back:hover { color: var(--text); }
.form-privacy {
  font-size: var(--fs-xs);
  color: var(--text-mute);
  text-align: center;
  margin-top: var(--sp-3);
  letter-spacing: 0.04em;
}
.form-success {
  text-align: center; padding: var(--sp-4) 0;
}
.form-success .check {
  width: 70px; height: 70px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--sp-3);
  font-size: 2rem;
}

/* ---------- UTILITIES ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: var(--sp-1); } .mt-2 { margin-top: var(--sp-2); } .mt-3 { margin-top: var(--sp-3); } .mt-4 { margin-top: var(--sp-4); } .mt-5 { margin-top: var(--sp-5); }
.mb-1 { margin-bottom: var(--sp-1); } .mb-2 { margin-bottom: var(--sp-2); } .mb-3 { margin-bottom: var(--sp-3); } .mb-4 { margin-bottom: var(--sp-4); } .mb-5 { margin-bottom: var(--sp-5); }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-slide { transition: opacity 0.5s; transform: none; }
}

/* Focus states for accessibility */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Print */
@media print {
  .header, .footer, .mobile-cta, .modal-backdrop, .hero-controls { display: none !important; }
}
