/* ==========================================================================
   VerdeLand — Direction C
   Synthesis of A and B per four independent judge reviews (docs/18).
   Base: Direction A (palette, rhythm, restraint).
   Ported from B: fact panel, proof strip, badge spec, accent token split,
   copy-first hero collapse, 14px micro floor.
   ========================================================================== */

:root {
  /* Color — see docs/04 */
  --ink:        #1A1D19;
  --ink-soft:   #4A5048;
  --ink-faint:  #5A6156;   /* AA on paper/cream/sand at 13px - see docs/10 */
  --forest:     #22392C;
  --forest-deep:#16261D;
  --sage:       #7C9080;   /* decorative only - fails AA as text on forest */
  --sage-text:  #96AC9A;   /* text on forest surfaces */
  --sand:       #E4DACA;
  --sand-deep:  #C9BBA4;
  --cream:      #FBF8F3;
  --paper:      #FFFFFF;
  --clay:       #A8552F;   /* fills, buttons */
  --clay-text:  #8A4425;   /* accent as text: 6.76:1 cream, 5.17:1 sand */
  --clay-deep:  #8A4425;
  --error:      #8A2B12;

  /* Status */
  --st-available-bg:    #2F5D3A;
  --st-coming-bg:       #A8552F;
  --st-underway-bg:     #7A6C4F;
  --st-completed-bg:    #E4DACA;

  /* Type */
  --font-display: ui-serif, Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --fs-display: clamp(2.375rem, 4.8vw, 4rem);   /* 64px cap: between A's 56 and B's 72 */
  --fs-h1:      clamp(2rem, 4vw, 3rem);
  --fs-h2:      clamp(1.75rem, 2.8vw, 2.5rem);
  --fs-h3:      clamp(1.25rem, 1.7vw, 1.5rem);
  --fs-lead:    clamp(1.1rem, 1.4vw, 1.3rem);
  --fs-body:    1.0625rem;
  --fs-small:   0.9375rem;
  --fs-micro:   0.875rem;   /* 14px floor (B) — audience skews older */

  /* Space */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  /* Layout */
  --w-page:   1240px;
  --w-narrow: 760px;
  --w-wide:   1480px;
  --gutter:   clamp(20px, 5vw, 48px);
  --measure:  68ch;

  /* Radius */
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-pill: 999px;

  /* Shadow — warm, never blue-black */
  --shadow-sm: 0 1px 2px rgba(26,29,25,0.06);
  --shadow-md: 0 4px 16px rgba(26,29,25,0.08);

  /* Motion */
  --ease: cubic-bezier(0.2, 0, 0.2, 1);
}

/* --------------------------------------------------------------- reset -- */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.3; }

p { text-wrap: pretty; }

a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--clay); }

:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* -------------------------------------------------------------- layout -- */

.wrap { width: 100%; max-width: var(--w-page); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--w-narrow); }
.wrap--wide   { max-width: var(--w-wide); }

.section { padding-block: clamp(var(--s-7), 8vw, var(--s-9)); }
.section--tight { padding-block: clamp(var(--s-7), 7vw, var(--s-8)); }
.section--sand   { background: var(--sand); }
.section--paper  { background: var(--paper); }
.section--forest { background: var(--forest); color: var(--cream); }
.section--forest h1, .section--forest h2, .section--forest h3 { color: var(--cream); }
.section--forest a { color: var(--cream); }
/* Buttons carry their own colours; the blanket link rule above must not
   repaint them. Without this, .btn--light renders cream-on-cream. */
.section--forest .btn--light { color: var(--forest); }
.section--forest .btn--light:hover { color: var(--forest); }
.section--forest .btn--primary { color: var(--cream); }

.measure { max-width: var(--measure); }

.skip-link {
  position: absolute; left: var(--s-4); top: -100px;
  background: var(--forest); color: var(--cream);
  padding: var(--s-3) var(--s-5); border-radius: var(--r-sm);
  z-index: 100; transition: top 200ms var(--ease);
}
.skip-link:focus { top: var(--s-4); }

/* ------------------------------------------------------ prototype note -- */

.proto-banner {
  background: var(--forest-deep);
  color: var(--sand);
  font-size: var(--fs-micro);
  text-align: center;
  padding: var(--s-2) var(--s-4);
  letter-spacing: 0.02em;
}
.proto-banner strong { color: var(--cream); }

/* -------------------------------------------------------------- header -- */

.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--sand-deep);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-6); min-height: 84px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.375rem; font-weight: 600;
  color: var(--forest); text-decoration: none;
  letter-spacing: -0.015em; line-height: 1.1;
  display: flex; align-items: center; gap: var(--s-3);
}
.logo:hover { color: var(--forest); }
.logo-mark { width: 45px; height: 30px; flex: none;
  --logo-ink: var(--forest); --logo-knock: var(--cream);
  --logo-groove: rgba(251,248,243,0.14); }
.footer-brand .logo-mark { --logo-ink: var(--cream); --logo-knock: var(--forest);
  --logo-groove: rgba(34,57,44,0.18); }
.logo small {
  display: block; font-family: var(--font-body);
  font-size: 0.625rem; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-faint); margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: var(--s-6); }
.nav a {
  color: var(--ink); text-decoration: none; font-size: var(--fs-small);
  font-weight: 500; padding: var(--s-2) 0;
  border-bottom: 2px solid transparent;
  transition: border-color 200ms var(--ease), color 200ms var(--ease);
}
.nav a:hover { color: var(--forest); border-bottom-color: var(--clay); }
.nav a[aria-current="page"] { color: var(--forest); border-bottom-color: var(--forest); }

.header-phone {
  font-size: var(--fs-small); font-weight: 600; color: var(--forest);
  text-decoration: none; white-space: nowrap;
}
.header-phone span { display: block; font-size: var(--fs-micro); font-weight: 400; color: var(--ink-faint); }

.nav-toggle { display: none; background: none; border: 1px solid var(--sand-deep);
  border-radius: var(--r-sm); padding: var(--s-3) var(--s-4); cursor: pointer;
  min-height: 48px; min-width: 48px; }

@media (max-width: 900px) {
  .nav, .header-phone { display: none; }
  .nav-toggle { display: block; }
  .site-header.is-open .nav {
    display: flex; flex-direction: column; align-items: flex-start;
    gap: var(--s-5); padding-block: var(--s-6);
    border-top: 1px solid var(--sand-deep);
    width: 100%;
  }
  .site-header.is-open .header-phone { display: block; padding-bottom: var(--s-6); }
  .header-inner { flex-wrap: wrap; }
}

/* ------------------------------------------------------------ buttons --- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: 14px 28px; min-height: 48px;
  border-radius: var(--r-sm); border: 1px solid transparent;
  font-size: var(--fs-body); font-weight: 500; line-height: 1;
  text-decoration: none; cursor: pointer;
  transition: background 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}
.btn--primary { background: var(--clay); color: var(--cream); }
.btn--primary:hover { background: var(--clay-deep); color: var(--cream); }
.btn--secondary { background: transparent; border-color: var(--forest); color: var(--forest); }
.btn--secondary:hover { background: var(--forest); color: var(--cream); }
.btn--light { background: var(--cream); color: var(--forest); }
.btn--light:hover { background: var(--sand); color: var(--forest); }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-weight: 500; font-size: var(--fs-small); color: var(--forest);
  text-decoration: none; border-bottom: 1px solid var(--sand-deep);
  /* 44px effective tap target without shifting layout */
  padding-block: 12px 14px; margin-block: -12px -14px;
}
.link-arrow:hover { color: var(--clay); border-bottom-color: var(--clay); }
.section--forest .link-arrow { color: var(--sand); border-bottom-color: var(--sage); }
.section--forest .link-arrow:hover { color: var(--cream); border-bottom-color: var(--cream); }

/* ------------------------------------------------------------- eyebrow -- */

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-micro); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--clay-text); margin-bottom: var(--s-4);
}
.section--forest .eyebrow { color: var(--sage-text); }

.section-head { margin-bottom: var(--s-7); }
.section-head p { color: var(--ink-soft); max-width: var(--measure); margin-top: var(--s-3); }
.section--forest .section-head p { color: var(--sand); }

/* -------------------------------------------------- image placeholders -- */
/* Deliberate: no photography in the prototype. See docs/05 and D-014.       */

.ph {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg, transparent 0 14px,
      rgba(124,144,128,0.13) 14px 15px
    ),
    linear-gradient(160deg, #DCD3C2 0%, #CFC7B6 55%, #C2BCAB 100%);
  border: 1px solid var(--sand-deep);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.ph--4x3  { aspect-ratio: 4 / 3; }
.ph--3x2  { aspect-ratio: 3 / 2; }
.ph--16x9 { aspect-ratio: 16 / 9; }
.ph--1x1  { aspect-ratio: 1 / 1; }
/* Copy-first hero (judge 4): the copy block precedes the image in the DOM,
   so mobile gets headline + CTA in the first screen for free, and desktop
   still gets full-bleed product scale (judge 1) immediately after. */
.ph--hero { width: 100%; height: min(38vw, 46vh); min-height: 260px;
            border-radius: 0; border-inline: 0; }
.hero-intro { padding-block: clamp(var(--s-7), 6vw, var(--s-9)) clamp(var(--s-6), 4vw, var(--s-7)); }
.hero-intro h1 { font-size: var(--fs-display); color: var(--forest); max-width: 20ch; }
.hero-intro .lead { font-size: var(--fs-lead); color: var(--ink-soft);
  max-width: 54ch; margin-top: var(--s-4); }
.hero-caption { font-size: var(--fs-micro); color: var(--ink-faint); padding-block: var(--s-3); }

.ph-label {
  font-size: var(--fs-micro);
  color: #4A4636;
  text-align: center;
  max-width: 30ch;
  padding: var(--s-4);
  line-height: 1.5;
}
.ph-label strong {
  display: block; font-size: var(--fs-small); color: #2E2B20;
  margin-bottom: var(--s-1); letter-spacing: 0.04em; text-transform: uppercase;
}

/* Rendering disclosure — required pattern, see docs/08 */
.rendering-label {
  position: absolute; left: var(--s-3); bottom: var(--s-3);
  background: rgba(26,29,25,0.82); color: #FFFFFF;
  font-size: var(--fs-micro); font-weight: 500;
  padding: var(--s-1) var(--s-3); border-radius: var(--r-sm);
  letter-spacing: 0.02em;
}

/* ------------------------------------------------------- status badge --- */

.badge {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--fs-micro); font-weight: 700; line-height: 1;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 7px 13px; border-radius: var(--r-pill);
  white-space: nowrap;
}
.badge--available { background: var(--st-available-bg); color: var(--cream); }
.badge--coming    { background: var(--st-coming-bg);    color: var(--cream); }
.badge--underway  { background: var(--st-underway-bg);  color: var(--cream); }
.badge--completed { background: var(--st-completed-bg); color: var(--ink); border: 1px solid var(--sand-deep); }

.badge-date { font-size: var(--fs-micro); color: var(--ink-faint); }

/* ---------------------------------------------------------- home card --- */

.grid { display: grid; gap: var(--s-6); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  border: 1px solid var(--sand-deep);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: box-shadow 300ms var(--ease), transform 300ms var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); color: inherit; }

.card-media { position: relative; overflow: hidden; }
.card-media .ph { border: 0; border-radius: 0; transition: transform 400ms var(--ease); }
.card:hover .card-media .ph { transform: scale(1.03); }
.card-media .badge { position: absolute; top: var(--s-3); left: var(--s-3); z-index: 2; }

.card-body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.card-title { font-size: var(--fs-h3); color: var(--forest); }
.card-place { font-size: var(--fs-small); color: var(--ink-soft); }
.card-specs { font-size: var(--fs-small); color: var(--ink-soft); }
.card-meta  { font-size: var(--fs-micro); color: var(--ink-faint); margin-top: auto; padding-top: var(--s-3); }

/* ---------------------------------------------------------------- hero -- */

.hero { position: relative; background: var(--forest); }
.hero .ph--hero { border: 0; }
.hero-copy {
  position: relative;
  padding-block: clamp(var(--s-8), 9vw, var(--s-9));
  background: var(--cream);
}
.hero-copy h1 { font-size: var(--fs-display); color: var(--forest); max-width: 18ch; }
.hero-copy .lead {
  font-size: var(--fs-lead); color: var(--ink-soft);
  max-width: 54ch; margin-top: var(--s-5);
}
.hero-actions { display: flex; align-items: center; gap: var(--s-6); margin-top: var(--s-7); flex-wrap: wrap; }

/* ------------------------------------------------------------- proof ---- */

.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-7); }
@media (max-width: 800px) { .proof-grid { grid-template-columns: 1fr; gap: var(--s-6); } }
.proof-num {
  font-family: var(--font-display); font-size: clamp(2.25rem, 4vw, 3rem);
  color: var(--forest); line-height: 1; margin-bottom: var(--s-3);
}
.proof-item p { color: var(--ink-soft); font-size: var(--fs-small); }
.proof-item h3 { margin-bottom: var(--s-2); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--s-6), 6vw, var(--s-9)); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- forms --- */

.form { display: grid; gap: var(--s-5); max-width: 560px; }
.field { display: grid; gap: var(--s-2); }
.field label { font-size: var(--fs-small); font-weight: 600; }
.field .hint { font-size: var(--fs-micro); color: var(--ink-faint); font-weight: 400; }
.field .req { color: var(--clay); font-weight: 400; }

.field input, .field textarea, .field select {
  background: var(--paper);
  border: 1px solid var(--sand-deep);
  border-radius: var(--r-sm);
  padding: 13px var(--s-4);
  min-height: 48px;
  font-size: var(--fs-body);
  width: 100%;
  transition: border-color 200ms var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--forest); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.honeypot { position: absolute; left: -9999px; }

.form-note { font-size: var(--fs-small); color: var(--ink-soft); }

/* --------------------------------------------------------------- misc --- */

.steps { display: grid; gap: var(--s-6); counter-reset: step; }
.step { display: grid; grid-template-columns: auto 1fr; gap: var(--s-5); align-items: start; }
.step-num {
  width: 40px; height: 40px; border-radius: var(--r-pill);
  background: var(--forest); color: var(--cream);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.125rem;
}
.step p { color: var(--ink-soft); margin-top: var(--s-1); }

.note-panel {
  background: var(--paper);
  border: 1px solid var(--sand-deep);
  border-left: 4px solid var(--clay);
  border-radius: var(--r-md);
  padding: var(--s-6);
}
/* Accepts h2 or h3 so heading level can follow document order rather than
   being chosen for its looks. */
.note-panel h2, .note-panel h3 {
  font-size: var(--fs-h3); line-height: 1.3;
  margin-bottom: var(--s-3); color: var(--forest);
}

/* Visually hidden, still announced by screen readers. */
.vh {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.note-panel p { color: var(--ink-soft); }

.spec-table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.spec-table th, .spec-table td {
  text-align: left; padding: var(--s-3) 0;
  border-bottom: 1px solid var(--sand-deep); vertical-align: top;
}
.spec-table th { font-weight: 600; width: 45%; color: var(--ink-soft); }

.plain-list { list-style: none; padding: 0; display: grid; gap: var(--s-3); }
.plain-list li { display: grid; grid-template-columns: auto 1fr; gap: var(--s-3); align-items: baseline; }
.plain-list li::before { content: ""; width: 6px; height: 6px; border-radius: var(--r-pill); background: var(--sage); }

.filters { display: flex; gap: var(--s-3); flex-wrap: wrap; align-items: center;
  padding-block: var(--s-5); border-block: 1px solid var(--sand-deep); }
.filter {
  background: var(--paper); border: 1px solid var(--sand-deep);
  border-radius: var(--r-pill); padding: 9px 18px;
  font-size: var(--fs-small); cursor: pointer; min-height: 44px;
  transition: background 200ms var(--ease), color 200ms var(--ease);
}
.filter:hover { background: var(--sand); }
.filter[aria-pressed="true"] { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.filter-count { color: var(--ink-faint); font-size: var(--fs-micro); margin-left: auto; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.gallery > :first-child { grid-column: 1 / -1; }
@media (max-width: 700px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

.caption { font-size: var(--fs-micro); color: var(--ink-faint); margin-top: var(--s-2); }

/* ------------------------------------------------------------- footer --- */

.site-footer { background: var(--forest); color: var(--sand); padding-block: var(--s-8) var(--s-6); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s-7); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: var(--s-6); } }
/* Footer section headings are h2, not h4 — jumping from the page's last h2
   straight to h4 is a heading-order violation. Styled by class instead. */
.footer-head {
  font-family: var(--font-body); font-size: var(--fs-micro); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage-text);
  margin-bottom: var(--s-4);
}
.site-footer a { color: var(--sand); text-decoration: none; }
.site-footer a:hover { color: var(--cream); text-decoration: underline; }
.footer-links { list-style: none; padding: 0; display: grid; gap: var(--s-3); font-size: var(--fs-small); }
.footer-brand .logo { color: var(--cream); }
.footer-brand .logo small { color: var(--sage-text); }
.footer-brand p { font-size: var(--fs-small); margin-top: var(--s-4); max-width: 40ch; color: var(--sand); }

.eho {
  display: inline-flex; align-items: center; gap: var(--s-3);
  margin-top: var(--s-5); font-size: var(--fs-micro); color: var(--sand);
}
.eho svg { flex: none; }

.footer-bottom {
  margin-top: var(--s-7); padding-top: var(--s-5);
  border-top: 1px solid rgba(124,144,128,0.35);
  display: flex; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap;
  font-size: var(--fs-micro); color: var(--sage-text);
}
.footer-bottom a { color: var(--sage-text); }

/* ---------------------------------------------------- empty state ------ */
/* Someone who filtered to "Available" and got nothing is the highest-intent
   visitor on the site — they just told you exactly what they want. A single
   apologetic line wastes that. See docs/03 and docs/13 (A-01). */

.empty {
  display: none;
  background: var(--paper);
  border: 1px solid var(--sand-deep);
  border-radius: var(--r-lg);
  padding: clamp(var(--s-6), 6vw, var(--s-8));
  text-align: center;
}
.empty.is-shown { display: block; }
.empty h2 { color: var(--forest); }
.empty p { color: var(--ink-soft); max-width: 52ch; margin: var(--s-4) auto 0; }
.empty-actions {
  display: flex; gap: var(--s-4); justify-content: center;
  flex-wrap: wrap; margin-top: var(--s-6);
}
.empty-recent { margin-top: var(--s-8); padding-top: var(--s-6);
  border-top: 1px solid var(--sand-deep); }
.empty-recent h3 { font-size: var(--fs-h3); color: var(--forest); margin-bottom: var(--s-5); }
.empty-recent-list {
  list-style: none; padding: 0; display: grid; gap: var(--s-3);
  grid-template-columns: repeat(3, 1fr); text-align: left;
}
@media (max-width: 700px) { .empty-recent-list { grid-template-columns: 1fr; } }
.empty-recent-list a {
  display: block; padding: var(--s-4);
  border: 1px solid var(--sand-deep); border-radius: var(--r-md);
  text-decoration: none; color: inherit;
  transition: background 200ms var(--ease);
}
.empty-recent-list a:hover { background: var(--sand); color: inherit; }
.empty-recent-list strong { display: block; font-family: var(--font-display); color: var(--forest); }
.empty-recent-list span { font-size: var(--fs-small); color: var(--ink-soft); }

/* Town select sits with the status chips */
.filter-town {
  background: var(--paper); border: 1px solid var(--sand-deep);
  border-radius: var(--r-pill); padding: 9px 16px;
  font-size: 1rem; /* 16px floor: sub-16px controls trigger iOS focus zoom */
  min-height: 44px; cursor: pointer;
}


/* ================================================= ported from B ======= */

/* Proof strip — one scan line finishing the hero's five-second job.
   Launch rule: omit any figure that is not verified; never bracket. */
.proof-strip { border-block: 1px solid var(--sand-deep); background: var(--paper); }
.proof-strip-inner { display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6); padding-block: var(--s-6); }
/* 2x2 at phone widths — never 1-col (judge 4: a stacked stat list reads as filler) */
@media (max-width: 900px) { .proof-strip-inner { grid-template-columns: repeat(2, 1fr); gap: var(--s-5); } }
.proof-strip .proof-item strong { display: block; font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.25rem); color: var(--forest); line-height: 1;
  margin-bottom: var(--s-2); }
.proof-strip .proof-item span { font-size: var(--fs-small); color: var(--ink-soft); }

/* Fact panel — "the single best component in either system" (judge 3).
   One fact per row, label left, bold value right, 44px+ row height. */
.fact-panel { background: var(--paper); border: 1px solid var(--sand-deep);
  border-radius: var(--r-lg); padding: clamp(var(--s-5), 3vw, var(--s-7));
  display: flex; flex-direction: column; }
.fact-rows { list-style: none; padding: 0; margin: var(--s-5) 0 0; }
.fact-rows li { display: flex; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-3) 0; min-height: 44px; align-items: center;
  border-bottom: 1px solid var(--sand-deep); font-size: var(--fs-small); }
.fact-rows li:last-child { border-bottom: 0; }
.fact-rows .k { color: var(--ink-soft); }
.fact-rows .v { font-weight: 600; text-align: right; }

/* Card feature line — the narrative middle tier B added */
.card-feature { font-size: var(--fs-small); color: var(--ink); margin-top: var(--s-2); }

/* Featured-home layout */
.featured { display: grid; grid-template-columns: 1.4fr 1fr;
  gap: clamp(var(--s-6), 4vw, var(--s-8)); align-items: stretch; }
/* The media cell fills its column and matches the panel's height.
   Never combine aspect-ratio with height:100% here: width would be
   computed from height and overflow the column onto the fact panel. */
.ph--featured { width: 100%; height: 100%; min-height: 340px; }
@media (max-width: 940px) {
  .featured { grid-template-columns: 1fr; }
  .ph--featured { height: auto; aspect-ratio: 3 / 2; min-height: 0; }
}

/* Project story — plan → build → finished (B-01, relocated to detail pages
   per judge 2: consideration-stage proof, one click deep). */
.story { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); counter-reset: stage; }
@media (max-width: 900px) { .story { grid-template-columns: 1fr; } }
.stage { display: flex; flex-direction: column; gap: var(--s-4); }
.stage-tag { display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--fs-micro); font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--clay-text); }
.stage-tag::before { counter-increment: stage; content: counter(stage);
  width: 24px; height: 24px; flex: none; border-radius: var(--r-pill);
  background: var(--clay); color: var(--cream); display: grid; place-items: center;
  font-size: 12px; letter-spacing: 0; }
.stage h3 { color: var(--forest); }
.stage p { font-size: var(--fs-small); color: var(--ink-soft); }

/* ------------------------------------------- scroll-linked drawing ----- */
/* The pinned build scene on project-01 (D-029, amended). The wrapper is
   tall; the scene is sticky inside it. Native scroll is never intercepted:
   the wheel keeps working, reverse scroll un-builds, and the pin releases
   when the wrapper ends. Unarmed (no JS / reduced motion) there is no pin
   and the drawing is complete. */
.build-pin.is-pinned { height: 240vh; }
.build-pin.is-pinned .build-scene {
  position: sticky; top: 84px;
  min-height: calc(100vh - 108px);
  display: flex; align-items: center;
}
.build-scene .wrap { width: 100%; }
.build-figure { margin-bottom: var(--s-5); }
#build-svg { display: block; width: 100%; max-width: 720px; height: auto;
  margin-inline: auto; }
#build-svg path { fill: none; stroke: var(--forest); stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round; }
#build-svg path.clay { stroke: var(--clay); }
#build-svg.is-armed path { stroke-dasharray: 1; stroke-dashoffset: 1;
  will-change: stroke-dashoffset; }

/* ---------------------------------------------------- photo ledger ----- */
/* "Where we've built", told with the houses themselves (docs/03, footprint
   option 1). Chronological order -- the year span is the argument. */
.ledger { list-style: none; padding: 0; margin: var(--s-5) 0 0;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s-4); }
@media (max-width: 1100px) { .ledger { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px)  { .ledger { grid-template-columns: repeat(2, 1fr); } }
.ledger a { display: block; text-decoration: none; color: inherit; }
.ledger .ph { border-radius: var(--r-md); transition: transform 300ms var(--ease); }
.ledger a:hover .ph { transform: translateY(-3px); }
.ledger a:hover strong { color: var(--clay-text); }
.ledger strong { display: block; font-family: var(--font-display);
  color: var(--forest); margin-top: var(--s-3); font-size: var(--fs-body);
  transition: color 200ms var(--ease); }
.ledger span { font-size: var(--fs-micro); color: var(--ink-faint); }
.ledger .ph-label { font-size: 11px; padding: var(--s-2); }
.ledger .ph-label strong { font-family: var(--font-body); font-size: 11px;
  color: #2E2B20; margin-top: 0; }

/* ------------------------------------------------- real photography ---- */
/* First real assets (docs/20). Same box as the hero placeholder so the
   layout is unchanged; object-fit crops rather than distorts. */
.hero-photo { width: 100%; height: min(38vw, 46vh); min-height: 260px;
  object-fit: cover; display: block; }

/* Real-photo cards and the under-contract status (D-031) */
.card-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block;
  transition: transform 400ms var(--ease); }
.card:hover .card-photo { transform: scale(1.03); }
.badge--contract { background: var(--st-underway-bg); color: var(--cream); }
.ledger-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  border: 1px solid var(--sand-deep); border-radius: var(--r-md); }
.gallery-photo { width: 100%; height: 100%; object-fit: cover; display: block;
  border-radius: var(--r-md); }
.gallery > * { min-height: 0; }
.empty-recent-list .item { display: block; padding: var(--s-4);
  border: 1px solid var(--sand-deep); border-radius: var(--r-md); }
.empty-recent-list .item strong { display: block; font-family: var(--font-display);
  color: var(--forest); }
.empty-recent-list .item span { font-size: var(--fs-small); color: var(--ink-soft); }

/* ------------------------------------------------ 3D tour facade ------- */
/* Click-to-load embed (D-032): reserved 16:9 box; nothing loads from the
   third party until the visitor starts it. */
.tour { aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden;
  background: var(--forest); }
.tour iframe { width: 100%; height: 100%; border: 0; display: block; }
.tour-facade { height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: var(--s-5);
  padding: var(--s-6); text-align: center; }
.tour-note { font-size: var(--fs-micro); color: var(--sage-text); }
.tour-chip { display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--fs-micro); font-weight: 600; color: var(--clay-text);
  margin-top: var(--s-2); }

/* ------------------------------------------------------ hero reel ------ */
/* D-033: ambient left-to-right filmstrip of real exteriors. Pauses on
   hover/focus; under reduced motion it is a static, user-scrollable strip
   (animation:none — the global 0.01ms rule would strobe an infinite loop). */
.hero-reel { height: min(38vw, 46vh); min-height: 260px; overflow-x: auto;
  overflow-y: hidden; background: var(--cream); position: relative; }

.reel-track { display: flex; height: 100%; width: max-content;
  animation: reel-drift 70s linear infinite; }
.reel-item { position: relative; height: 100%; flex: none;
  margin: 0 var(--s-3) 0 0; }
.reel-item img { height: 100%; width: auto; display: block;
  border-radius: var(--r-md); }
.reel-item figcaption { position: absolute; left: var(--s-3); bottom: var(--s-3);
  background: rgba(26,29,25,0.78); color: var(--cream);
  font-size: var(--fs-micro); font-weight: 600; padding: 5px 10px;
  border-radius: var(--r-sm); letter-spacing: 0.02em; }
@keyframes reel-drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .reel-track { animation: none !important; }
}

/* ------------------------------------------------ arrange mode --------- */
/* Owner tool for reordering photos and cards (prototype only). */
.arrange-toggle { margin-top: var(--s-4); background: var(--paper);
  border: 1px dashed var(--sand-deep); border-radius: var(--r-sm);
  padding: 10px 18px; min-height: 44px; font-size: var(--fs-small);
  color: var(--ink-soft); cursor: pointer; }
.arrange-toggle:hover { border-color: var(--clay); color: var(--clay-text); }
.arrange-bar { position: fixed; left: 50%; bottom: var(--s-5);
  transform: translateX(-50%); z-index: 90; display: flex; gap: var(--s-3);
  align-items: center; background: var(--forest); color: var(--cream);
  padding: var(--s-3) var(--s-5); border-radius: var(--r-pill);
  box-shadow: var(--shadow-md); font-size: var(--fs-small); }
.arrange-bar button { background: var(--cream); color: var(--forest);
  border: 0; border-radius: var(--r-pill); padding: 8px 14px;
  min-height: 36px; cursor: pointer; font-size: var(--fs-micro);
  font-weight: 600; }
.arrange-bar button:hover { background: var(--sand); }
.is-arranging > * { outline: 2px dashed var(--clay); outline-offset: 2px;
  cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; }
.is-arranging .g-item, .is-arranging .card { position: relative; }
.is-arranging .is-dragging { opacity: 0.4; cursor: grabbing; }
.is-arranging .pcar-photo, .is-arranging .gallery-photo { cursor: grab; }
.drag-ghost { position: fixed; z-index: 400; margin: 0; pointer-events: none;
  opacity: 0.92; outline: 0; border-radius: var(--r-md); overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,0.35); background: var(--paper); }
.drag-ghost img { width: 100%; height: 100%; object-fit: cover; }
.drag-ghost .arrange-handle { display: none; }
.g-item { min-height: 0; }
.g-item .gallery-photo { width: 100%; height: 100%; }
.arrange-handle { position: absolute; top: var(--s-2); right: var(--s-2);
  z-index: 5; display: none; flex-direction: column; gap: 4px; }
.is-arranging .arrange-handle { display: flex; }
.arrange-handle button { width: 40px; height: 40px; border: 0;
  border-radius: var(--r-sm); background: rgba(26,29,25,0.82);
  color: var(--cream); cursor: pointer; font-size: 14px; }
.arrange-handle button:hover { background: var(--clay); }

/* -------------------------------------- property photo carousel -------- */
/* Same right-to-left drift as the homepage reel, but the strip is DOM-
   recycled in JS (assets/js/photo-carousel.js) so 34 photos loop without
   being duplicated. Arrows step one photo; clicking opens the lightbox.
   Owner arrange mode (.is-arranging on the track) stops the drift and
   wraps the strip into a grid so photos can be dragged. */
.pcar { position: relative; }
.pcar-view { overflow: hidden; }
.pcar-track { display: flex; width: max-content; will-change: transform; }
.pcar-track > * { height: clamp(240px, 32vw, 420px); flex: none; margin-right: 12px; }
.pcar-photo { width: auto; display: block; object-fit: cover;
  border-radius: var(--r-md); cursor: zoom-in; }
.pcar-track .g-item { position: relative; }
.pcar-track .g-item .pcar-photo { height: 100%; margin-right: 0; }
.pcar-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: var(--forest); color: var(--cream); font-size: 22px; line-height: 1;
  box-shadow: 0 2px 12px rgba(0,0,0,0.28); }
.pcar-arrow:hover { background: var(--clay); }
.pcar-arrow--prev { left: var(--s-3); }
.pcar-arrow--next { right: var(--s-3); }
.pcar:has(.pcar-track.is-arranging) .pcar-arrow { display: none; }
.pcar-track.is-arranging { transform: none !important; flex-wrap: wrap;
  width: 100%; gap: var(--s-3); }
.pcar-track.is-arranging > * { height: 150px; margin-right: 0; }

/* ------------------------------------------------------- lightbox ------ */
.lightbox { position: fixed; inset: 0; z-index: 300; display: flex;
  align-items: center; justify-content: center; background: rgba(15,22,17,0.93); }
.lightbox img { max-width: min(94vw, 1600px); max-height: 86vh;
  border-radius: var(--r-md); box-shadow: 0 12px 48px rgba(0,0,0,0.5); }
.lightbox button { position: fixed; width: 48px; height: 48px; border-radius: 50%;
  border: 0; cursor: pointer; background: rgba(251,248,243,0.14); color: var(--cream);
  font-size: 22px; line-height: 1; display: flex; align-items: center;
  justify-content: center; }
.lightbox button:hover { background: var(--clay); }
.lightbox .lb-close { top: var(--s-4); right: var(--s-4); }
.lightbox .lb-prev { left: var(--s-4); top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: var(--s-4); top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: fixed; bottom: var(--s-4); left: 50%;
  transform: translateX(-50%); color: var(--cream); font-size: var(--fs-small);
  letter-spacing: 0.04em; }

/* Future-projects tier: pipeline homes, county-only, approvals pending */
.badge--future { background: transparent; color: var(--forest);
  border: 1.5px solid var(--forest); }
/* Static card: informational, not a link -- no hover lift implying a click */
.card--static { cursor: default; }
.card--static:hover { box-shadow: none; transform: none; }
.card--static:hover .card-media .ph { transform: none; }

/* ── Deed scrambler (D-039) ──────────────────────────────────────────── */
.homes-intro { display:grid; grid-template-columns: minmax(0,1fr) minmax(300px,400px);
  gap: var(--s-8); align-items: end; }
@media (max-width: 860px) { .homes-intro { grid-template-columns: 1fr; align-items: start; } }

.odo { background: var(--forest); color: var(--cream); border-radius: var(--r-lg);
  padding: var(--s-6); }
.odo-label { font-size: var(--fs-small); letter-spacing: .12em; text-transform: uppercase;
  color: var(--sand); margin-bottom: var(--s-4); }
.odo-address { font-size: 1.45rem; font-weight: 600; line-height: 1.3;
  min-height: 1.3em; white-space: nowrap; overflow: hidden;
  margin-bottom: var(--s-4); font-variant-numeric: tabular-nums; }
.odo-year { font-weight: 400; font-size: .75em; color: var(--sand);
  font-variant-numeric: tabular-nums; margin-left: .1em; }
.odo-caption { font-size: var(--fs-small); color: rgba(251,248,243,.72); line-height: 1.5; }
