/* ===========================================================================
   RED DOOR REALTY GROUP — "THRESHOLD"
   ---------------------------------------------------------------------------
   A ground-up rebuild. One stylesheet, no framework, no build step, no CDN,
   no web fonts, no third-party anything.

   THE IDEA
   A door is a threshold: one state on either side of it. The site is built
   on that switch — an ink-dark opening that gives way to ivory, a brass rule
   that draws itself as you cross into each section, and an arch that recurs
   at every scale from the hero down to a 40px avatar frame.

   Luxury real estate is sold on restraint. So: enormous serif headlines,
   hairline rules, deep negative space, and colour used sparingly enough that
   the red always means "act here".

   CONTENTS
     1. Tokens             7. Listings
     2. Reset & base       8. Team & quotes
     3. Accessibility      9. Forms
     4. Layout             10. Footer
     5. Header & nav       11. Motion
     6. Sections & cards   12. Reduced motion, print
   =========================================================================== */

/* ========================= 1. TOKENS ========================= */
:root {
  /* Ink side of the threshold */
  --ink:        #0E1116;
  --ink-2:      #161B22;
  --ink-3:      #1E252F;
  --ink-line:   #2A323D;

  /* Ivory side */
  --ivory:      #F7F3EC;
  --ivory-2:    #EFE8DD;
  --ivory-3:    #E3D9CA;
  --rule:       #DCD1BF;

  /* Accents. Red is the door; brass is the light on it. */
  --red:        #A81C24;
  --red-hi:     #C2262F;
  --red-deep:   #7C141A;
  --brass:      #C9A227;
  --brass-hi:   #E4C35C;

  --text:       #10141A;
  --text-2:     #4A525E;
  --text-3:     #7C848F;
  --on-ink:     #EFE9DF;
  --on-ink-2:   rgba(239,233,223,.68);
  --on-ink-3:   rgba(239,233,223,.42);

  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", Consolas, "Roboto Mono", Menlo, monospace;

  /* Type scale. The top step is deliberately extreme: on a landing page the
     headline is the only thing competing with a photograph, and there are no
     photographs here. */
  --t-xs:   clamp(.70rem, .68rem + .10vw, .76rem);
  --t-sm:   clamp(.84rem, .82rem + .12vw, .92rem);
  --t-base: clamp(1rem, .96rem + .18vw, 1.09rem);
  --t-lg:   clamp(1.12rem, 1.04rem + .38vw, 1.36rem);
  --t-xl:   clamp(1.35rem, 1.18rem + .8vw, 1.9rem);
  --t-2xl:  clamp(1.9rem, 1.5rem + 1.9vw, 3.1rem);
  --t-3xl:  clamp(2.5rem, 1.8rem + 3.2vw, 4.6rem);
  --t-4xl:  clamp(3.1rem, 1.9rem + 5.6vw, 7.4rem);

  --s1: .25rem; --s2: .5rem;  --s3: .75rem; --s4: 1rem;
  --s5: 1.5rem; --s6: 2rem;   --s7: 3rem;   --s8: 4.5rem; --s9: 7rem;

  --wrap: 1240px;
  --gutter: clamp(1.15rem, .7rem + 2.4vw, 3.5rem);
  --band: clamp(4rem, 2.8rem + 5.5vw, 8.5rem);
  --head-h: 78px;

  --r-xs: 4px; --r-sm: 10px; --r-md: 18px; --r-lg: 28px;
  --arch: 50% 50% 6px 6px / 42% 42% 6px 6px;   /* the doorway */

  --ease: cubic-bezier(.22, .72, .28, 1);
  --ease-out: cubic-bezier(.16, .84, .32, 1);
}

/* ========================= 2. RESET & BASE ========================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 1.5rem);
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font-family: var(--body);
  font-size: var(--t-base);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.022em;
  margin: 0 0 var(--s4);
  text-wrap: balance;
}
h1 { font-size: var(--t-4xl); letter-spacing: -.034em; }
h2 { font-size: var(--t-3xl); letter-spacing: -.028em; }
h3 { font-size: var(--t-xl); letter-spacing: -.018em; }

p { margin: 0 0 var(--s4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
li { list-style: none; }

a { color: var(--red); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--red-hi); }

img, svg, iframe { max-width: 100%; display: block; }
strong, b { font-weight: 650; }
em { font-style: italic; }

/* ========================= 3. ACCESSIBILITY ========================= */
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }
.on-ink :focus-visible, .ink :focus-visible { outline-color: var(--brass-hi); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--s4); top: -100px; z-index: 300;
  background: var(--ink); color: var(--on-ink);
  padding: .85rem 1.4rem; border-radius: var(--r-sm);
  font-weight: 600; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip:focus { top: var(--s4); color: var(--on-ink); }
.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* ========================= 4. LAYOUT ========================= */
.wrap { width: min(var(--wrap), 100% - (var(--gutter) * 2)); margin-inline: auto; }
.narrow { width: min(760px, 100%); }
.band { padding-block: var(--band); }
.ink { background: var(--ink); color: var(--on-ink); }
.ink h1, .ink h2, .ink h3 { color: var(--on-ink); }
.tint { background: var(--ivory-2); }
.hair { border-top: 1px solid var(--rule); }
.ink .hair, .ink + .ink .hair { border-top-color: var(--ink-line); }

/* A hairline that draws itself left-to-right when the section arrives. */
.rule {
  height: 1px; background: var(--rule); transform: scaleX(0); transform-origin: left;
  transition: transform 1.1s var(--ease);
}
.ink .rule { background: var(--ink-line); }
.is-in .rule, .rule.is-in { transform: scaleX(1); }

/* Section label pinned in the margin, magazine-style. */
.spread { display: grid; gap: var(--s6); }
@media (min-width: 1000px) {
  .spread { grid-template-columns: 210px 1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); }
  .spread__label { position: sticky; top: calc(var(--head-h) + 2rem); align-self: start; }
}

.kicker {
  display: block;
  font-family: var(--mono); font-size: var(--t-xs);
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--red); margin: 0 0 var(--s3);
}
.ink .kicker { color: var(--brass); }
.kicker--num::before { content: attr(data-num) " / "; color: var(--text-3); }
.ink .kicker--num::before { color: var(--on-ink-3); }

.lede { font-size: var(--t-lg); color: var(--text-2); max-width: 54ch; }
.ink .lede { color: var(--on-ink-2); }
.small { font-size: var(--t-sm); }
.dim { color: var(--text-3); }
.ink .dim { color: var(--on-ink-3); }
.center { text-align: center; }

.cols { display: grid; gap: var(--s5); }
.cols--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); }
.cols--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.cols--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }

/* ---- Buttons ---- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--body); font-size: var(--t-sm); font-weight: 650;
  letter-spacing: .015em; text-decoration: none; cursor: pointer; white-space: nowrap;
  padding: 1.05rem 2rem; border-radius: 999px; border: 1.5px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease),
              transform .25s var(--ease), box-shadow .3s var(--ease);
}
/* The fill wipes upward from the base rather than cross-fading. */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: scaleY(1); transform-origin: bottom;
  transition: transform .38s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .38s var(--ease);
}
.btn:hover::after { transform: scaleY(1); }
.btn:active { transform: translateY(1px); }

.btn--red { color: #fff; }
.btn--red::before { background: var(--red); }
.btn--red::after  { background: var(--ink); }

.btn--ink { color: var(--ivory); }
.btn--ink::before { background: var(--ink); }
.btn--ink::after  { background: var(--red); }

.btn--line { color: var(--text); border-color: var(--text); }
.btn--line::after { background: var(--ink); }
.btn--line:hover { color: var(--ivory); border-color: var(--ink); }

.ink .btn--line { color: var(--on-ink); border-color: rgba(239,233,223,.38); }
.ink .btn--line::after { background: var(--ivory); }
.ink .btn--line:hover { color: var(--ink); border-color: var(--ivory); }

.btn--lg { padding: 1.2rem 2.4rem; font-size: var(--t-base); }
.btn--wide { width: 100%; }
.btns { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* Text link with a rule that swaps ends on hover. */
.tlink {
  position: relative; display: inline-flex; align-items: center; gap: .5rem;
  text-decoration: none; font-weight: 600; font-size: var(--t-sm);
  color: var(--text); padding-bottom: .35rem;
}
.tlink::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: currentColor; transform-origin: right; transform: scaleX(1);
  transition: transform .45s var(--ease);
}
.tlink:hover { color: var(--red); }
.tlink:hover::after { transform-origin: left; transform: scaleX(.35); }
.ink .tlink { color: var(--on-ink); }
.ink .tlink:hover { color: var(--brass-hi); }

.ico { width: 1.15rem; height: 1.15rem; flex: none; fill: none; stroke: currentColor;
       stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ico--f { fill: currentColor; stroke: none; }

/* ========================= 5. HEADER & NAV ========================= */
.head {
  position: sticky; top: 0; z-index: 200;
  background: rgba(247,243,236,.82);
  backdrop-filter: blur(14px) saturate(1.4);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.head::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px;
  background: var(--rule); opacity: 0; transition: opacity .3s var(--ease);
}
.head.stuck::after { opacity: 1; }
.head.stuck { box-shadow: 0 10px 40px -32px rgba(14,17,22,.9); }

.head__in { display: flex; align-items: center; gap: var(--s5); min-height: var(--head-h); }

/* ---- Brand ---- */
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; margin-right: auto; }
.brand__mark { width: 30px; height: 38px; flex: none; overflow: visible; }
.brand__panel { fill: var(--red); transition: fill .3s var(--ease); }
.brand__edge { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.brand__knob { fill: var(--brass-hi); }
.brand:hover .brand__panel { fill: var(--red-hi); }
.brand__type { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--display); font-size: 1.2rem; font-weight: 600;
  letter-spacing: -.025em; color: var(--text);
}
.brand__sub {
  font-family: var(--mono); font-size: .56rem; letter-spacing: .3em;
  text-transform: uppercase; color: var(--text-3); margin-top: .38rem;
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.2rem); }
.nav__list { display: flex; gap: clamp(1rem, 2.2vw, 2.2rem); }
.nav__list a {
  position: relative; text-decoration: none; color: var(--text-2);
  font-size: var(--t-sm); font-weight: 550; padding-block: .45rem;
  transition: color .2s var(--ease);
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; bottom: .1rem; width: 100%; height: 1.5px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform .32s var(--ease);
}
.nav__list a:hover { color: var(--text); }
.nav__list a:hover::after, .nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.nav__list a[aria-current="page"] { color: var(--text); }

.nav__tel {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .84rem; font-weight: 600;
  color: var(--text); text-decoration: none; white-space: nowrap;
}
.nav__tel:hover { color: var(--red); }

.burger {
  display: none; width: 48px; height: 48px; flex: none; padding: 0;
  background: transparent; border: 1px solid var(--rule); border-radius: 999px; cursor: pointer;
}
.burger span { display: block; width: 17px; height: 1.6px; margin: 0 auto; background: var(--text);
               border-radius: 2px; transition: transform .32s var(--ease), opacity .2s var(--ease); }
.burger span + span { margin-top: 4.6px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.2px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.2px) rotate(-45deg); }

@media (max-width: 940px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0 0 auto 0; z-index: -1;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); color: var(--on-ink);
    padding: calc(var(--head-h) + 2rem) var(--gutter) var(--s7);
    max-height: 100vh; overflow-y: auto;
    clip-path: inset(0 0 100% 0);
    transition: clip-path .5s var(--ease);
  }
  .nav.open { clip-path: inset(0 0 0 0); }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a {
    font-family: var(--display); font-size: clamp(1.6rem, 7vw, 2.4rem);
    color: var(--on-ink); padding: .7rem 0; border-bottom: 1px solid var(--ink-line);
    opacity: 0; transform: translateY(14px);
    transition: opacity .45s var(--ease), transform .45s var(--ease), color .2s var(--ease);
    transition-delay: calc(var(--i, 0) * 55ms);
  }
  .nav.open .nav__list a { opacity: 1; transform: none; }
  .nav__list a::after { display: none; }
  .nav__tel { color: var(--on-ink); font-size: 1.1rem; padding-top: var(--s5); }
  .nav__cta { margin-top: var(--s5); }
  body.locked { overflow: hidden; }
}

/* Scroll progress, hairline thin. */
.prog {
  position: absolute; inset: auto 0 0 0; height: 2px; z-index: 2;
  background: linear-gradient(90deg, var(--red), var(--brass));
  transform: scaleX(0); transform-origin: left; will-change: transform;
}

/* ========================= 6. SECTIONS & CARDS ========================= */

/* ---- Hero ---- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--on-ink);
  padding-block: clamp(4rem, 2.5rem + 8vw, 9rem) clamp(3.5rem, 2rem + 6vw, 7rem);
}
/* Light spilling from the doorway, drifting with the pointer. */
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 150%;
  background:
    radial-gradient(52% 46% at calc(72% + var(--px, 0px)) calc(18% + var(--py, 0px)),
      rgba(201,162,39,.16), transparent 66%),
    radial-gradient(46% 42% at calc(14% - var(--px, 0px)) calc(84% - var(--py, 0px)),
      rgba(168,28,36,.20), transparent 70%);
  pointer-events: none;
}
/* A faint architectural grid, like a drawing sheet. */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, transparent 0 96px, rgba(239,233,223,.035) 96px 97px),
    repeating-linear-gradient(0deg, transparent 0 96px, rgba(239,233,223,.028) 96px 97px);
  mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent);
}
.hero__in { position: relative; z-index: 2; display: grid; gap: var(--s6); }
@media (min-width: 1040px) {
  .hero__in { grid-template-columns: 1.35fr .65fr; align-items: center; gap: clamp(2rem, 1rem + 4vw, 5rem); }
}

.hero h1 { max-width: 13ch; margin-bottom: var(--s5); }
.hero h1 .accent { color: var(--brass-hi); font-style: italic; }
.hero .lede { max-width: 46ch; margin-bottom: var(--s6); }

.hero__facts {
  display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin-top: var(--s6);
  font-size: var(--t-sm); color: var(--on-ink-2);
}
.hero__facts li { display: flex; align-items: center; gap: .55rem; }
.hero__facts .ico { width: .95rem; height: .95rem; color: var(--brass); }

/* The drawn door. Strokes draw themselves in; the panel warms up behind. */
.door { width: min(100%, 340px); margin-inline: auto; }
.door__frame, .door__panel-line, .door__step {
  fill: none; stroke: rgba(239,233,223,.5); stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round;
}
.door__slab { fill: var(--red); opacity: .92; }
.door__glow { fill: url(#doorGlow); }
.door__knob { fill: var(--brass-hi); }
.door__num { fill: rgba(239,233,223,.55); font-family: var(--mono); font-size: 9px; letter-spacing: .3em; }

/* ---- Ticker: the counties, moving ---- */
.ticker {
  overflow: hidden; border-block: 1px solid var(--ink-line);
  background: var(--ink-2); padding-block: 1.1rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10% 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10% 90%, transparent);
}
.ticker__track { display: flex; width: max-content; animation: slide 42s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__set { display: flex; flex: none; }
.ticker__set span {
  display: flex; align-items: center; gap: 1.8rem; padding-inline: 1.8rem;
  font-family: var(--display); font-size: clamp(1rem, 2.2vw, 1.45rem);
  color: var(--on-ink-2); white-space: nowrap; letter-spacing: -.01em;
}
.ticker__set span::after {
  content: ""; width: 5px; height: 5px; rotate: 45deg; background: var(--brass); flex: none;
}
@keyframes slide { to { transform: translateX(-50%); } }

/* ---- Figures ---- */
.figures { display: grid; gap: 1px; background: var(--rule);
           grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.ink .figures { background: var(--ink-line); }
.figure { background: var(--ivory); padding: clamp(1.6rem, 1.1rem + 1.6vw, 2.6rem) var(--s5);
          display: flex; flex-direction: column; height: 100%;
          transition: background .4s var(--ease); }
.ink .figure { background: var(--ink); }
.figure:hover { background: var(--ivory-2); }
.ink .figure:hover { background: var(--ink-2); }
.figure dt { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .16em; color: var(--text-3); }
.ink .figure dt { color: var(--on-ink-3); }
.figure dd {
  font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums;
  font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.6rem); line-height: 1;
  margin-top: auto; padding-top: .7rem; color: var(--text);
}
.ink .figure dd { color: var(--brass-hi); }
.figure dd small { font-size: .4em; font-family: var(--body); font-weight: 500; color: var(--text-3); }
.ink .figure dd small { color: var(--on-ink-3); }

/* ---- Editorial cards: rules, not boxes ---- */
.item {
  position: relative; padding: var(--s5) 0 var(--s5);
  border-top: 1px solid var(--rule);
  display: grid; gap: .5rem; align-content: start;
}
.ink .item { border-top-color: var(--ink-line); }
.item::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.item:hover::before { transform: scaleX(1); }
.item__n { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .2em; color: var(--red); }
.ink .item__n { color: var(--brass); }
.item h3 { margin: 0; }
.item p { margin: 0; color: var(--text-2); font-size: var(--t-sm); }
.ink .item p { color: var(--on-ink-2); }

/* ---- Panels: the two big choices ---- */
.panel {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column;
  padding: clamp(1.8rem, 1.2rem + 2.4vw, 3.2rem);
  background: var(--ivory-2); border-radius: var(--r-md);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.panel::before {
  /* an arch, drawn faintly in the corner */
  content: ""; position: absolute; z-index: -1; top: -26%; right: -14%;
  width: 58%; aspect-ratio: 3 / 4.4; border: 1px solid var(--rule);
  border-radius: var(--arch);
  transition: transform .8s var(--ease), border-color .5s var(--ease);
}
.panel:hover { transform: translateY(-6px); box-shadow: 0 40px 80px -60px rgba(14,17,22,.9); }
.panel:hover::before { transform: translateY(10px) rotate(-2deg); border-color: rgba(168,28,36,.3); }
.panel h3 { font-size: var(--t-2xl); margin-bottom: var(--s3); }
.panel p { color: var(--text-2); }
.panel .btn, .panel .tlink { margin-top: var(--s5); align-self: flex-start; }
.panel--ink { background: var(--ink-2); color: var(--on-ink); }
.panel--ink h3 { color: var(--on-ink); }
.panel--ink p { color: var(--on-ink-2); }
.panel--ink::before { border-color: var(--ink-line); }

/* ---- Route cards: BUYING / SELLING / BUILDING ----
   Photo-led, with the label set over the image the way the client's own
   artwork does it. A dark scrim sits between photo and type so the label
   stays legible no matter how bright the picture behind it is — the one
   thing that reliably breaks text-on-image. */
.routes { display: grid; gap: var(--s5);
          grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }

.route {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 7 / 5; border-radius: var(--r-md);
  text-decoration: none; color: var(--ivory); background: var(--ink-2);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.route:hover { transform: translateY(-6px); box-shadow: 0 44px 80px -56px rgba(14,17,22,.9); }
.route img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
             transition: transform 1s var(--ease); }
.route:hover img { transform: scale(1.07); }

.route__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(14,17,22,.10) 0%, rgba(14,17,22,.28) 45%, rgba(14,17,22,.78) 100%);
  transition: background .5s var(--ease);
}
.route:hover .route__scrim {
  background: linear-gradient(180deg, rgba(14,17,22,.22) 0%, rgba(14,17,22,.44) 45%, rgba(14,17,22,.86) 100%);
}

.route__label {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: var(--s5) var(--s5) calc(var(--s5) + .2rem);
  display: grid; gap: .35rem; justify-items: center; text-align: center;
}
.route__label h3 {
  margin: 0; color: #fff;
  font-family: var(--body); font-weight: 700;
  font-size: clamp(1.3rem, 1rem + 1.3vw, 1.9rem);
  letter-spacing: .14em; text-transform: uppercase; line-height: 1;
  text-shadow: 0 2px 18px rgba(0,0,0,.45);
}
.route__label p {
  margin: 0; color: rgba(255,255,255,.86); font-size: var(--t-sm);
  max-width: 30ch;
  opacity: 0; transform: translateY(8px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.route:hover .route__label p, .route:focus-visible .route__label p { opacity: 1; transform: none; }
/* Touch screens have no hover, so the sentence is simply always visible. */
@media (hover: none) { .route__label p { opacity: 1; transform: none; } }

/* A rule draws beneath the label on hover — the same gesture as the section
   rules, at card scale. */
.route__label::after {
  content: ""; width: 2.6rem; height: 2px; background: var(--red);
  transform: scaleX(0); transition: transform .5s var(--ease);
}
.route:hover .route__label::after, .route:focus-visible .route__label::after { transform: scaleX(1); }

/* Missing photo: the card still reads as designed rather than broken. */
.route.missing img { display: none; }
.route.missing { background:
  repeating-linear-gradient(-45deg, #171C24 0 14px, #1C222B 14px 15px); }
.route__ph {
  position: absolute; inset: 0; z-index: 1; display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  padding: var(--s5) var(--s5) 5.5rem; text-align: center;
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .14em;
  text-transform: uppercase; color: var(--on-ink-3);
}
.route.missing .route__ph { display: flex; }
.route__ph .ico { width: 1.9rem; height: 1.9rem; color: var(--ink-line); stroke-width: 1.1; }

.ticks { display: grid; gap: .75rem; margin-top: var(--s4); }
.ticks li { display: flex; gap: .75rem; align-items: flex-start; font-size: var(--t-sm); }
.ticks .ico { width: 1rem; height: 1rem; color: var(--red); margin-top: .3rem; }
.panel--ink .ticks .ico, .ink .ticks .ico { color: var(--brass); }

/* ---- Steps ---- */
.steps { counter-reset: st; display: grid; gap: var(--s6); }
.step { counter-increment: st; position: relative; padding-left: clamp(3.4rem, 2.4rem + 2.4vw, 5rem); }
.step::before {
  content: counter(st, decimal-leading-zero);
  position: absolute; left: 0; top: -.15rem;
  font-family: var(--display); font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.4rem);
  color: var(--red); line-height: 1;
}
.ink .step::before { color: var(--brass); }
.step::after {
  content: ""; position: absolute; left: clamp(1.1rem, .8rem + .7vw, 1.6rem);
  top: 2.9rem; bottom: -2rem; width: 1px; background: var(--rule);
}
.ink .step::after { background: var(--ink-line); }
.step:last-child::after { display: none; }
.step h3 { margin-bottom: .3rem; }
.step p { color: var(--text-2); margin: 0; }
.ink .step p { color: var(--on-ink-2); }

/* ---- Counties ---- */
.counties { display: grid; gap: 0; }
.county {
  display: grid; gap: .3rem var(--s5); align-items: baseline;
  padding: var(--s5) 0; border-top: 1px solid var(--rule);
  transition: padding-left .4s var(--ease), background .4s var(--ease);
}
@media (min-width: 760px) { .county { grid-template-columns: 12rem 1fr auto; } }
.county:hover { padding-left: var(--s4); background: var(--ivory-2); }
.ink .county { border-top-color: var(--ink-line); }
.ink .county:hover { background: var(--ink-2); }
.county h3 { margin: 0; font-size: var(--t-xl); }
.county p { margin: 0; color: var(--text-2); font-size: var(--t-sm); }
.ink .county p { color: var(--on-ink-2); }
.county__n { font-family: var(--mono); font-size: var(--t-xs); color: var(--text-3); letter-spacing: .18em; }

/* ---- Photo slots: designed, never broken ---- */
.slot {
  position: relative; overflow: hidden; background: var(--ivory-2);
  display: grid; place-items: center; aspect-ratio: 4 / 5;
}
.slot--arch { border-radius: var(--arch); }
.slot img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.slot__ph {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .7rem; text-align: center; padding: var(--s4);
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-3);
  background:
    repeating-linear-gradient(-45deg, transparent 0 13px, rgba(220,209,191,.34) 13px 14px),
    var(--ivory-2);
}
.slot__ph .ico { width: 2rem; height: 2rem; color: var(--ivory-3); stroke-width: 1.1; }
.slot.missing img { display: none; }
.slot:not(.missing) .slot__ph { display: none; }
.ink .slot { background: var(--ink-2); }
.ink .slot__ph { color: var(--on-ink-3);
  background: repeating-linear-gradient(-45deg, transparent 0 13px, rgba(42,50,61,.5) 13px 14px), var(--ink-2); }
.ink .slot__ph .ico { color: var(--ink-line); }

/* ========================= 7. LISTINGS ========================= */
.lbar { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; margin-bottom: var(--s6); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  font: inherit; font-size: var(--t-sm); font-weight: 550; cursor: pointer;
  padding: .55rem 1.25rem; border-radius: 999px;
  border: 1px solid var(--rule); background: transparent; color: var(--text-2);
  transition: color .22s var(--ease), border-color .22s var(--ease),
              background .22s var(--ease), transform .22s var(--ease);
}
.chip:hover { border-color: var(--text); color: var(--text); transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.lcount { margin-left: auto; font-family: var(--mono); font-size: var(--t-xs);
          letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }

.listings { display: grid; gap: var(--s5);
            grid-template-columns: repeat(auto-fill, minmax(min(100%, 20.5rem), 1fr)); }

.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  text-decoration: none; color: inherit; background: var(--ivory);
  border-radius: var(--r-md);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: 0 44px 80px -58px rgba(14,17,22,.85); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ivory-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card:hover .card__media img { transform: scale(1.07); }
.card.missing .card__media img { display: none; }
.card:not(.missing) .card__media .slot__ph { display: none; }
.card__media .slot__ph { position: absolute; inset: 0; }

.card__status {
  position: absolute; top: .9rem; left: .9rem; z-index: 3;
  font-family: var(--mono); font-size: var(--t-xs); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  padding: .4rem .85rem; border-radius: 999px;
  background: var(--ink); color: var(--ivory);
}
.card__status[data-s="For Sale"]    { background: var(--red); }
.card__status[data-s="Pending"]     { background: #9A6B10; }
.card__status[data-s="Sold"]        { background: #27503A; }
.card__status[data-s="Coming Soon"] { background: var(--ink-3); }

.card__sample {
  position: absolute; top: .9rem; right: .9rem; z-index: 3;
  font-family: var(--mono); font-size: var(--t-xs); font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; padding: .4rem .7rem; border-radius: var(--r-xs);
  background: repeating-linear-gradient(-45deg, #14181F 0 6px, #1F252E 6px 12px);
  color: var(--brass-hi); border: 1px solid rgba(228,195,92,.4);
}

.card__body { padding: var(--s5); display: flex; flex-direction: column; gap: .45rem; flex: 1;
              border: 1px solid var(--rule); border-top: 0;
              border-radius: 0 0 var(--r-md) var(--r-md); }
.card__price { font-family: var(--display); font-size: var(--t-xl); line-height: 1; margin: 0; }
.card__addr { font-weight: 600; margin: 0; }
.card__city { font-size: var(--t-sm); color: var(--text-3); margin: 0; }
.card__facts { display: flex; flex-wrap: wrap; gap: .35rem .9rem; margin-top: auto;
               padding-top: var(--s4); font-size: var(--t-sm); color: var(--text-2); }
.card__facts b { font-weight: 650; }
.card__mls { font-family: var(--mono); font-size: var(--t-xs); color: var(--text-3); margin: 0; }

.empty {
  grid-column: 1 / -1; text-align: center; padding: clamp(2.5rem, 2rem + 3vw, 5rem) var(--s5);
  border: 1px dashed var(--rule); border-radius: var(--r-lg); color: var(--text-2);
}
.empty h3 { color: var(--text); }
.idx { margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--rule);
       font-size: var(--t-xs); color: var(--text-3); max-width: 74ch; }
.ink .idx { border-top-color: var(--ink-line); color: var(--on-ink-3); }
#idxMount { max-width: 100%; overflow-x: auto; }
#idxMount:empty { display: none; }

/* ========================= 7b. COMMUNITIES DIRECTORY ========================= */

/* Sticky filter bar. The list is 91 links long, so search is the primary
   navigation, not an extra. */
.cbar {
  position: sticky; top: var(--head-h); z-index: 40;
  background: rgba(247,243,236,.94); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  padding-block: var(--s4); margin-bottom: var(--s7);
}
.cbar__in { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.cfind { position: relative; flex: 1; min-width: 15rem; max-width: 26rem; }
.cfind input {
  font: inherit; font-size: var(--t-sm); width: 100%;
  padding: .7rem 2.4rem .7rem 1rem;
  background: var(--ivory); color: var(--text);
  border: 1px solid var(--rule); border-radius: 999px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.cfind input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(168,28,36,.12); }
.cfind__clear {
  position: absolute; right: .45rem; top: 50%; translate: 0 -50%;
  width: 28px; height: 28px; display: none; place-items: center;
  border: 0; background: transparent; color: var(--text-3); cursor: pointer;
  font-size: 1.1rem; line-height: 1; border-radius: 999px;
}
.cfind__clear:hover { color: var(--red); background: rgba(168,28,36,.08); }
.cfind.has-value .cfind__clear { display: grid; }
.cbar__count { margin-left: auto; font-family: var(--mono); font-size: var(--t-xs);
               letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }

/* Quick-jump chips */
.jumps { display: flex; flex-wrap: wrap; gap: .4rem; }
.jumps a {
  font-size: var(--t-xs); font-weight: 600; letter-spacing: .04em;
  text-decoration: none; color: var(--text-2);
  padding: .4rem .85rem; border: 1px solid var(--rule); border-radius: 999px;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.jumps a:hover { color: var(--ivory); background: var(--ink); border-color: var(--ink); }

/* One area */
.area { margin-bottom: var(--s8); scroll-margin-top: calc(var(--head-h) + 5.5rem); }
.area__head {
  display: flex; align-items: baseline; gap: var(--s4);
  padding-bottom: var(--s3); margin-bottom: var(--s5);
  border-bottom: 2px solid var(--ink);
}
.area__head h2 { font-size: var(--t-xl); margin: 0; }
.area__head .n { margin-left: auto; font-family: var(--mono); font-size: var(--t-xs);
                 letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }

.area__grid { display: grid; gap: var(--s5);
              grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }

.cgroup { display: grid; gap: .3rem; align-content: start; }
.cgroup h3 {
  font-family: var(--mono); font-size: var(--t-xs); font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--text-3);
  margin: 0 0 var(--s3);
}
.cgroup--lead h3 { color: var(--red); }

.clinks { display: grid; gap: 1px; }
.clinks a {
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none; color: var(--text); font-size: var(--t-sm); font-weight: 500;
  padding: .5rem .6rem .5rem .55rem; border-radius: var(--r-sm);
  transition: background .2s var(--ease), color .2s var(--ease), padding-left .25s var(--ease);
}
/* A tiny door instead of a bullet. */
.clinks a::before {
  content: ""; flex: none; width: 9px; height: 11px; background: var(--red); opacity: .75;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 38'%3E%3Cpath d='M2 36V12.5a13 13 0 0 1 26 0V36z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 38'%3E%3Cpath d='M2 36V12.5a13 13 0 0 1 26 0V36z'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: opacity .2s var(--ease);
}
.clinks a:hover { background: rgba(168,28,36,.06); color: var(--red-deep); padding-left: .85rem; }
.clinks a:hover::before { opacity: 1; }
.clinks a.lead { font-weight: 650; }

.ctag {
  margin-left: auto; flex: none;
  font-family: var(--mono); font-size: .58rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .15rem .4rem; border-radius: var(--r-xs);
  background: rgba(201,162,39,.16); color: #7A5E12; border: 1px solid rgba(201,162,39,.4);
}
.ctag[data-t="NEW"] { background: rgba(168,28,36,.09); color: var(--red-deep); border-color: rgba(168,28,36,.28); }

/* Compact area index, used on the listings page. */
.areaindex { display: flex; flex-wrap: wrap; gap: .5rem; }
.areaindex a {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: var(--t-sm); font-weight: 600; text-decoration: none; color: var(--text);
  padding: .55rem 1rem; border: 1px solid var(--rule); border-radius: 999px;
  transition: color .2s var(--ease), border-color .2s var(--ease),
              background .2s var(--ease), transform .2s var(--ease);
}
.areaindex a:hover { background: var(--ink); border-color: var(--ink); color: var(--ivory); transform: translateY(-2px); }
.areaindex__n {
  font-family: var(--mono); font-size: var(--t-xs); color: var(--text-3);
  padding-left: .55rem; border-left: 1px solid var(--rule);
}
.areaindex a:hover .areaindex__n { color: var(--brass-hi); border-left-color: rgba(239,233,223,.3); }

/* Filtering hides rows, groups and whole areas without collapsing layout. */
.is-hidden { display: none !important; }
.cnone {
  padding: var(--s7) var(--s5); text-align: center; color: var(--text-2);
  border: 1px dashed var(--rule); border-radius: var(--r-lg);
}
.cnone h3 { color: var(--text); }

@media (max-width: 640px) {
  .cbar { position: static; }
  .cbar__count { margin-left: 0; width: 100%; }
}

/* ========================= 8. TEAM & QUOTES ========================= */
.team { display: grid; gap: var(--s6);
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.person { display: flex; flex-direction: column; gap: var(--s4); }
/* The supplied headshots are square, shot tight on the face. A 4:5 frame
   would scale them to the width and then crop the top of everyone's head,
   so the frame matches the source instead. object-position keeps the crop
   biased upward for anything that isn't perfectly square. */
.person .slot { aspect-ratio: 1 / 1; }
.person .slot img { object-position: center 22%; }
.person h3 { margin: 0 0 .15rem; font-size: var(--t-lg); }
.person__role { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .16em;
                text-transform: uppercase; color: var(--red); margin: 0 0 var(--s3); }
.ink .person__role { color: var(--brass); }
.person__c { display: grid; gap: .4rem; font-size: var(--t-sm); }
.person__c a { display: inline-flex; align-items: center; gap: .5rem;
               color: var(--text-2); text-decoration: none; word-break: break-word; }
.person__c a:hover { color: var(--red); }
.person__c .ico { width: .9rem; height: .9rem; color: var(--text-3); }
.ink .person__c a { color: var(--on-ink-2); }
.ink .person__c a:hover { color: var(--brass-hi); }

.quote { display: grid; gap: var(--s5); }
.quote blockquote {
  font-family: var(--display); font-size: var(--t-2xl); line-height: 1.28;
  letter-spacing: -.02em; text-wrap: balance;
}
.quote blockquote::before { content: "\201C"; color: var(--brass); }
.quote blockquote::after { content: "\201D"; color: var(--brass); }
.quote figcaption { font-family: var(--mono); font-size: var(--t-xs);
                    letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); }
.ink .quote figcaption { color: var(--on-ink-3); }

/* ========================= 9. FORMS ========================= */
.formgrid { display: grid; gap: clamp(2rem, 1.2rem + 3.5vw, 5rem); }
@media (min-width: 980px) { .formgrid { grid-template-columns: 1fr 1fr; } }

.form { display: grid; gap: var(--s4); }
.form__row { display: grid; gap: var(--s4);
             grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); }
.f { display: grid; gap: .4rem; }
.f label { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .13em;
           text-transform: uppercase; color: var(--text-2); }
.ink .f label { color: var(--on-ink-2); }
.f .req { color: var(--red); }
.ink .f .req { color: var(--brass); }

/* Underline fields rather than boxes: less furniture, more paper. */
.f input, .f select, .f textarea {
  font: inherit; font-size: var(--t-base); color: var(--text);
  background: transparent; border: 0; border-bottom: 1.5px solid var(--rule);
  border-radius: 0; padding: .7rem .1rem; width: 100%;
  transition: border-color .25s var(--ease), background .25s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.f textarea { min-height: 7.5rem; resize: vertical; }
.f select {
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 14px) 55%, calc(100% - 9px) 55%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2rem;
}
.f input:focus, .f select:focus, .f textarea:focus {
  outline: none; border-bottom-color: var(--red); background: rgba(168,28,36,.03);
}
.ink .f input, .ink .f select, .ink .f textarea {
  color: var(--on-ink); border-bottom-color: var(--ink-line);
}
.ink .f input:focus, .ink .f select:focus, .ink .f textarea:focus {
  border-bottom-color: var(--brass); background: rgba(201,162,39,.06);
}
.ink .f select option { background: var(--ink-2); color: var(--on-ink); }
.f input::placeholder, .f textarea::placeholder { color: var(--text-3); }
.ink .f input::placeholder, .ink .f textarea::placeholder { color: var(--on-ink-3); }
.f__err { font-size: var(--t-xs); color: var(--red); margin: 0; min-height: 1em; }
.ink .f__err { color: #F09098; }
.f.bad input, .f.bad select, .f.bad textarea { border-bottom-color: var(--red); }
.form__status { font-size: var(--t-sm); margin: 0; }
.form__status:empty { display: none; }
.form__status.ok { color: #1F6B45; }
.ink .form__status.ok { color: #7FCBA1; }
.form__status.err { color: var(--red); }
.ink .form__status.err { color: #F09098; }

.contacts { display: grid; gap: var(--s5); }
.contacts li { display: flex; gap: var(--s4); align-items: flex-start; }
.contacts__i { width: 44px; height: 44px; flex: none; display: grid; place-items: center;
               border: 1px solid var(--rule); border-radius: 999px; color: var(--red); }
.ink .contacts__i { border-color: var(--ink-line); color: var(--brass); }
.contacts h3 { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .16em;
               text-transform: uppercase; margin: 0 0 .3rem; color: var(--text-3); font-weight: 600; }
.ink .contacts h3 { color: var(--on-ink-3); }
.contacts a { color: inherit; text-decoration: none; }
.contacts a:hover { color: var(--red); }
.ink .contacts a:hover { color: var(--brass-hi); }
.contacts address { font-style: normal; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: .25rem var(--s4); font-size: var(--t-sm); }
.hours dt { color: var(--text-3); }
.ink .hours dt { color: var(--on-ink-3); }
.hours dd { text-align: right; }

.map { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16 / 10;
       background: var(--ivory-2); border: 1px solid var(--rule); }
.ink .map { border-color: var(--ink-line); background: var(--ink-2); }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ========================= 10. FOOTER ========================= */
.foot { background: var(--ink); color: var(--on-ink-2); padding-block: var(--s8) var(--s6);
        font-size: var(--t-sm); }
.foot__grid { display: grid; gap: var(--s6);
              grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); }
.foot h2 { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .2em;
           text-transform: uppercase; color: var(--on-ink); margin-bottom: var(--s4); font-weight: 600; }
.foot a { color: var(--on-ink-2); text-decoration: none; }
.foot a:hover { color: var(--brass-hi); }
.foot .brand__name { color: var(--on-ink); }
.foot .brand__sub { color: var(--on-ink-3); }
.foot .brand__edge { stroke: rgba(239,233,223,.7); }
.foot__links { display: grid; gap: .6rem; }
.foot__tag { max-width: 28ch; margin-top: var(--s4); }

.social { display: flex; gap: .55rem; margin-top: var(--s5); }
.social a { width: 40px; height: 40px; display: grid; place-items: center;
            border: 1px solid var(--ink-line); border-radius: 999px;
            transition: background .25s var(--ease), border-color .25s var(--ease),
                        color .25s var(--ease), transform .25s var(--ease); }
.social a:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-3px); }
.social .ico { width: 1rem; height: 1rem; }

.legal { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--ink-line);
         display: flex; flex-wrap: wrap; gap: var(--s4) var(--s6); align-items: center;
         font-size: var(--t-xs); color: var(--on-ink-3); }
.legal p { margin: 0; max-width: 66ch; }
.eho { display: flex; align-items: center; gap: .6rem; flex: none; }
.eho svg { width: 26px; height: 26px; }
.eho path { fill: none; stroke: var(--on-ink-3); stroke-width: 1.6; }

/* ========================= 11. MOTION ========================= */

/* Headline lines lift out from behind a clipped edge. */
.line { display: block; overflow: hidden; padding-bottom: .07em; }
.line > span {
  display: block; transform: translateY(115%);
  animation: lift 1.05s var(--ease-out) forwards;
  animation-delay: calc(var(--ld, 0) * 1ms);
}
@keyframes lift { to { transform: none; } }

/* Everything else arrives on scroll. */
[data-in] { opacity: 0; transform: translateY(22px);
            transition: opacity .8s var(--ease), transform .8s var(--ease);
            transition-delay: calc(var(--d, 0) * 90ms); }
[data-in="left"]  { transform: translateX(-26px); }
[data-in="right"] { transform: translateX(26px); }
[data-in="scale"] { transform: scale(.965); }
[data-in].is-in { opacity: 1; transform: none; }

/* The door draws itself, then the light comes up behind it. */
.door__frame, .door__panel-line, .door__step {
  stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600);
  animation: draw 1.7s var(--ease) .2s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.door__slab { opacity: 0; animation: fadeUp 1s var(--ease) 1.05s forwards; }
.door__knob { opacity: 0; animation: fadeUp .6s var(--ease) 1.5s forwards; }
.door__num  { opacity: 0; animation: fadeUp .6s var(--ease) 1.7s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: .92; transform: none; } }

/* A slow breath of light across the doorway, like a passing car. */
.door__glow { opacity: .5; animation: breathe 7s ease-in-out 2s infinite; }
@keyframes breathe { 0%, 100% { opacity: .32; } 50% { opacity: .68; } }

/* Cursor-following light on panels and cards. */
.panel, .card { --mx: 50%; --my: 0%; }
.panel::after, .card::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(168,28,36,.09), transparent 62%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.panel--ink::after, .ink .card::after {
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(201,162,39,.13), transparent 62%);
}
.panel:hover::after, .card:hover::after { opacity: 1; }
.panel > *, .card__media, .card__body { position: relative; z-index: 1; }

/* Section rules and county rows draw in on arrival. */
.county { position: relative; }
.county::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 110ms);
}
.county.is-in::before, .is-in .county::before { transform: scaleX(.18); }
.county:hover::before { transform: scaleX(1); }

/* ========================= 12. REDUCED MOTION & PRINT ========================= */
.no-js [data-in] { opacity: 1; transform: none; }
.no-js .rule { transform: scaleX(1); }
.no-js .county::before { transform: scaleX(.18); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-in] { opacity: 1 !important; transform: none !important; }
  .line > span { transform: none !important; }
  .rule { transform: scaleX(1) !important; }
  .door__frame, .door__panel-line, .door__step { stroke-dashoffset: 0 !important; }
  .door__slab, .door__knob, .door__num, .door__glow { opacity: .92 !important; }
  .ticker__track { animation: none; }
  .card:hover .card__media img, .slot img { transform: none !important; }
}

@media print {
  .head, .nav, .btn, .social, .map, .slot, .ticker, .prog { display: none !important; }
  body, .ink, .hero { background: #fff !important; color: #000 !important; }
  .band { padding-block: 1rem; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}
