/* ==========================================================================
   Estate Allegiance LLC — Tallahassee, FL
   Design system. Tokens first, then layout, then components.
   Modifier classes are always defined AFTER their base class so source order
   resolves them (both are single-class specificity).
   ========================================================================== */

/* --- Reset ---------------------------------------------------------------- */

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

* { margin: 0; }

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

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;

  /* The oak canopy sits under the whole site, washed out to near-white so it
     reads as paper texture rather than as a photograph. Every band below
     layers its own wash over this. */
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.955), rgba(255, 255, 255, 0.975)),
    url("images/atmosphere.jpg");
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
}

img,
svg,
video { display: block; max-width: 100%; }

img { height: auto; }

input,
button,
textarea,
select { font: inherit; color: inherit; }

button { cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.018em;
  color: var(--ink);
  text-wrap: balance;
}

p { text-wrap: pretty; }

/* The reset zeroes all margins, so prose needs its spacing handed back.
   Containers that manage their own gaps opt out below. */
p + p { margin-top: 1.05em; }

.site-foot__legal p + p,
.hero__stagger p + p { margin-top: 0; }

a { color: inherit; }

address { font-style: normal; }

/* --- Tokens --------------------------------------------------------------- */

:root {
  /* Color */
  --ink:       #0D1B2A;
  --navy:      #1B3A5C;
  --navy-lt:   #2E5A80;
  --paper:     #FFFFFF;
  --mist:      #EDF1F5;
  --moss:      #4F6F52;
  --moss-dk:   #3E5940;
  --sand:      #C9BCA4;
  --text:      #33414F;
  --text-mute: #66727E;

  --line:       #DCE3EA;
  --line-dark:  rgba(255, 255, 255, 0.16);

  /* Type */
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body:    "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --step--1: clamp(0.78rem, 0.755rem + 0.10vw, 0.85rem);
  --step-0:  clamp(1rem,    0.975rem + 0.13vw, 1.0625rem);
  --step-1:  clamp(1.15rem, 1.08rem  + 0.34vw, 1.35rem);
  --step-2:  clamp(1.5rem,  1.30rem  + 0.85vw, 2rem);
  --step-3:  clamp(2rem,    1.60rem  + 1.70vw, 3rem);
  --step-4:  clamp(2.5rem,  1.85rem  + 2.75vw, 4.25rem);
  --step-5:  clamp(3rem,    2.05rem  + 4.30vw, 5.75rem);

  /* Space */
  --gap:     clamp(20px, 2.5vw, 32px);
  --pad-sec: clamp(72px, 10vw, 128px);
  --wrap:    1200px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur:  0.45s;
}

/* --- Layout --------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

.wrap--narrow { max-width: 840px; }

.section { padding-block: var(--pad-sec); }

/* Modifiers — must stay after .section */
.section--tight { padding-block: clamp(48px, 6vw, 76px); }
.section--flush-top { padding-block-start: 0; }
.section--flush-bottom { padding-block-end: 0; }

.band-mist {
  background-color: var(--mist);
  background-image:
    linear-gradient(rgba(237, 241, 245, 0.945), rgba(237, 241, 245, 0.972)),
    url("images/atmosphere.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.band-ink {
  color: #C6D2DE;
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(13, 27, 42, 0.93), rgba(13, 27, 42, 0.965)),
    url("images/atmosphere.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Fixed attachment is janky on touch devices, and iOS Safari mis-sizes it. */
@media (hover: none), (max-width: 768px) {
  body,
  .band-mist,
  .band-ink { background-attachment: scroll; }
}

.band-ink h1,
.band-ink h2,
.band-ink h3,
.band-ink h4 { color: #FFFFFF; }

.band-ink a { color: #FFFFFF; }

/* --- Type helpers --------------------------------------------------------- */

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 20px;
}

.band-ink .eyebrow { color: var(--sand); }

.h-display { font-size: var(--step-4); }
.h-section { font-size: var(--step-3); }
.h-sub     { font-size: var(--step-2); }

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--text);
  max-width: 62ch;
}

.band-ink .lede { color: #B9C6D3; }

.measure { max-width: 66ch; }

.mono {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.04em;
}

.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;
}

/* --- Focus + skip link ---------------------------------------------------- */

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

.band-ink :focus-visible,
.hero :focus-visible { outline-color: var(--sand); }

.skip {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translate(-50%, -200%);
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  text-decoration: none;
  transition: transform 0.2s var(--ease);
}

.skip:focus { transform: translate(-50%, 0); }

/* --- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: background-color 0.25s var(--ease),
              color 0.25s var(--ease),
              border-color 0.25s var(--ease),
              transform 0.25s var(--ease);
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--moss);
  color: #fff;
  border-color: var(--moss);
}

.btn--primary:hover { background: var(--moss-dk); border-color: var(--moss-dk); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

.btn--on-dark {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--on-dark:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn--sm { padding: 11px 20px; font-size: var(--step--1); }

.btn--block { width: 100%; }

/* Inline text link with a rule that grows */
.tlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--moss);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  transition: gap 0.25s var(--ease), color 0.25s var(--ease);
}

.tlink:hover { gap: 14px; color: var(--moss-dk); }

.band-ink .tlink { color: var(--sand); }

/* --- The signature: canopy arch ------------------------------------------- */

.arch { display: block; }

.arch path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.arch--hero {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(1100px, 118%);
  color: rgba(255, 255, 255, 0.34);
  pointer-events: none;
}

.arch--hero path { stroke-width: 1.15; }

.arch--rule {
  width: 132px;
  margin: 0 auto;
  color: var(--sand);
}

.arch--rule path { stroke-width: 1.25; }

.arch--mark {
  width: 300px;
  color: rgba(255, 255, 255, 0.10);
}

.arch--mark path { stroke-width: 1; }

/* Draw-on animation, hero only */
.arch--hero path {
  stroke-dasharray: var(--len, 1400);
  stroke-dashoffset: var(--len, 1400);
  animation: draw 2.6s var(--ease) forwards;
}

.arch--hero path:nth-child(2) { animation-delay: 0.12s; }
.arch--hero path:nth-child(3) { animation-delay: 0.24s; }
.arch--hero path:nth-child(4) { animation-delay: 0.36s; }
.arch--hero path:nth-child(5) { animation-delay: 0.48s; }
.arch--hero path:nth-child(6) { animation-delay: 0.60s; }

@keyframes draw { to { stroke-dashoffset: 0; } }

.divider { padding-block: clamp(40px, 6vw, 72px); }

/* --- Header --------------------------------------------------------------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-head__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand__mark {
  display: block;
  width: 38px;
  height: 38px;
  flex: none;
}

.brand__mark--lg { width: 52px; height: 52px; }

.brand__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
}

.nav a {
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  padding-block: 6px;
}

.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--moss);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav a:not(.btn):hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }

/* Must exclude .btn: the button is already moss-filled, so recolouring its
   label moss makes it green on green and the text disappears. */
.nav a[aria-current="page"]:not(.btn) { color: var(--moss); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 2px;
  position: relative;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transform: translateX(-50%);
  transition: transform 0.3s var(--ease), opacity 0.2s linear;
}

.nav-toggle__bar { top: 50%; margin-top: -0.75px; }
.nav-toggle__bar::before { content: ""; top: -6px; left: 50%; }
.nav-toggle__bar::after  { content: ""; top: 6px;  left: 50%; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after  { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

/* --- Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(560px, 82vh, 780px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroDrift 22s var(--ease) forwards;
}

@keyframes heroDrift {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(13, 27, 42, 0.94) 0%, rgba(13, 27, 42, 0.72) 42%, rgba(13, 27, 42, 0.34) 100%);
}

.hero__in {
  position: relative;
  width: 100%;
  padding-block: clamp(56px, 8vw, 96px);
  color: #fff;
}

.hero h1 {
  font-size: var(--step-5);
  font-weight: 300;
  color: #fff;
  max-width: 15ch;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  color: #fff;
}

.hero__lede {
  font-size: var(--step-1);
  color: rgba(255, 255, 255, 0.86);
  max-width: 46ch;
}

/* Load sequence */
.hero__stagger > * {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) forwards;
}

.hero__stagger > *:nth-child(1) { animation-delay: 0.15s; }
.hero__stagger > *:nth-child(2) { animation-delay: 0.30s; }
.hero__stagger > *:nth-child(3) { animation-delay: 0.45s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* --- Path router (buying / selling split) --------------------------------- */

.path-router {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 3px;
  overflow: hidden;
  background: rgba(13, 27, 42, 0.34);
  backdrop-filter: blur(8px);
}

.path {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(22px, 3vw, 34px);
  text-decoration: none;
  color: #fff;
  position: relative;
  transition: background-color 0.35s var(--ease);
}

.path + .path { border-left: 1px solid rgba(255, 255, 255, 0.22); }

.path:hover { background: var(--moss); }

.path__label {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand);
  transition: color 0.35s var(--ease);
}

.path:hover .path__label { color: rgba(255, 255, 255, 0.85); }

.path__title {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.1;
  color: #fff;
}

.path__note {
  font-size: var(--step--1);
  color: rgba(255, 255, 255, 0.72);
}

.path__arrow {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  transition: transform 0.35s var(--ease);
}

.path:hover .path__arrow { transform: translateX(8px); }

/* --- Page header (interior pages) ----------------------------------------- */

.page-head {
  position: relative;
  overflow: hidden;
  padding-block: clamp(88px, 11vw, 148px);
  color: #fff;
  background-color: var(--ink);
  background-image:
    linear-gradient(to bottom, rgba(13, 27, 42, 0.82) 0%, rgba(13, 27, 42, 0.90) 55%, rgba(13, 27, 42, 0.96) 100%),
    url("images/atmosphere.jpg");
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
}

.page-head > .wrap { position: relative; z-index: 1; }

.page-head h1 {
  font-size: var(--step-4);
  font-weight: 300;
  color: #fff;
  max-width: 18ch;
}

.page-head .lede { color: rgba(255, 255, 255, 0.82); margin-top: 20px; }

.page-head .eyebrow { color: var(--sand); }

/* --- Listing cards -------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--gap);
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: 0 18px 40px -24px rgba(13, 27, 42, 0.45);
}

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--mist);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.card:hover .card__media img { transform: scale(1.05); }

.card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 11px;
  background: rgba(13, 27, 42, 0.86);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  flex: 1;
}

.card__price {
  font-family: var(--font-mono);
  font-size: var(--step-1);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.card__addr {
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.2;
  color: var(--ink);
}

.card__hood {
  font-size: var(--step--1);
  color: var(--text-mute);
}

/* The mono spec strip — data set as data */
.specs {
  display: flex;
  gap: 0;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--text);
}

.specs li {
  list-style: none;
  padding-inline: 14px;
  border-left: 1px solid var(--line);
}

.specs li:first-child { padding-left: 0; border-left: 0; }

.specs b { font-weight: 500; color: var(--ink); }

.specs span { color: var(--text-mute); }

/* --- Filter bar ----------------------------------------------------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-bottom: 32px;
}

.chip {
  padding: 9px 18px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  color: var(--text);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.chip:hover { border-color: var(--ink); }

.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.filter-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--text-mute);
}

.empty-state {
  padding: 64px 24px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 3px;
}

.empty-state h3 { font-size: var(--step-2); margin-bottom: 10px; }
.empty-state p { color: var(--text-mute); }

/* --- Panels + feature rows ------------------------------------------------ */

.panel {
  padding: clamp(26px, 3.4vw, 40px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
}

.panel--ink {
  background: var(--ink);
  color: #C6D2DE;
  border-color: var(--ink);
}

.panel--ink h2, .panel--ink h3 { color: #fff; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.split--wide-left { grid-template-columns: 1.25fr 1fr; }
.split--wide-right { grid-template-columns: 1fr 1.25fr; }

.split__media img {
  width: 100%;
  border-radius: 3px;
}

/* Process copy. No numbers, no rules, no boxes. Order is carried by the
   sequence itself and by the heading language. Whitespace does the dividing. */
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: clamp(44px, 5.5vw, 76px);
  max-width: 74ch;
}

.step { display: grid; gap: 10px; }

.step h3 {
  font-size: var(--step-2);
  font-weight: 400;
}

.step p { max-width: 66ch; }

.step p + p { margin-top: 0.95em; }

/* Plain content list. A dot and air, nothing else. */
.plainlist {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 18px;
}

/* Positioned marker, NOT a grid column. A grid here would turn the text node
   that follows <strong> into its own grid item and squeeze it into the
   marker column, one word per line. */
.plainlist li {
  position: relative;
  padding-left: 26px;
}

.plainlist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--moss);
  border-radius: 50%;
}

.plainlist strong {
  display: block;
  font-weight: 600;
  color: var(--ink);
}

.band-ink .plainlist li::before { background: var(--sand); }
.band-ink .plainlist strong { color: #fff; }

/* --- Forms ---------------------------------------------------------------- */

.form { display: grid; gap: 20px; }

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field { display: grid; gap: 8px; }

.field > label {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #B9C4CF; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--moss);
  box-shadow: 0 0 0 3px rgba(79, 111, 82, 0.16);
}

.field textarea { min-height: 150px; resize: vertical; }

.form__note {
  font-size: var(--step--1);
  color: var(--text-mute);
}

/* Submit result. Empty until JS writes to it, so it takes no space when idle. */
.form__status {
  font-size: var(--step--1);
  line-height: 1.5;
}

.form__status:empty { display: none; }

.form__status.is-ok {
  color: var(--moss);
  font-weight: 600;
}

.form__status.is-err {
  color: #A4372A;
  font-weight: 600;
}

/* --- Forms on the dark band ---------------------------------------------- */

.band-ink .field > label { color: var(--sand); }

.band-ink .field input,
.band-ink .field select,
.band-ink .field textarea {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.band-ink .field input::placeholder,
.band-ink .field textarea::placeholder { color: rgba(255, 255, 255, 0.42); }

.band-ink .field select option { color: var(--text); }

.band-ink .field input:hover,
.band-ink .field select:hover,
.band-ink .field textarea:hover { border-color: rgba(255, 255, 255, 0.45); }

.band-ink .field input:focus,
.band-ink .field select:focus,
.band-ink .field textarea:focus {
  border-color: var(--sand);
  box-shadow: 0 0 0 3px rgba(201, 188, 164, 0.20);
}

.band-ink .form__note { color: #8FA0B1; }
.band-ink .form__status.is-ok { color: var(--sand); }
.band-ink .form__status.is-err { color: #E8A99C; }

/* --- Closing contact strip (sits at the bottom of every page) ------------- */

.contact-strip {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}

.contact-strip h2 { max-width: 14ch; }

.contact-strip .lede { margin-top: 18px; }

@media (max-width: 900px) {
  .contact-strip { grid-template-columns: 1fr; }
}

/* --- Contact rows --------------------------------------------------------- */

.contact-rows {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 22px;
}

/* Label stacked over value. No grid or flex on the row itself, so raw text
   alongside a link cannot get orphaned into its own column. */
.contact-rows li { line-height: 1.6; }

.contact-rows dt,
.contact-rows .k {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.contact-rows a { color: var(--moss); text-decoration: none; border-bottom: 1px solid currentColor; }
.contact-rows a:hover { color: var(--moss-dk); }

.panel--ink .contact-rows .k,
.band-ink .contact-rows .k { color: var(--sand); }
.panel--ink .contact-rows a,
.band-ink .contact-rows a { color: #fff; }

/* --- Footer --------------------------------------------------------------- */

.site-foot {
  position: relative;
  background: var(--ink);
  color: #94A5B6;
  padding-block: clamp(56px, 7vw, 88px) 32px;
  overflow: hidden;
  font-size: var(--step--1);
}

.site-foot__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr;
  gap: var(--gap);
  padding-bottom: 40px;
}

.site-foot__brand { max-width: 40ch; }

.site-foot__line { max-width: 34ch; margin-top: 18px; line-height: 1.7; }

.foot-h {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 16px;
}

.site-foot address { line-height: 1.9; }

.site-foot a { color: #C6D2DE; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }

.site-foot__nav { list-style: none; padding: 0; line-height: 1.9; }

.site-foot__legal {
  padding-top: 26px;
  border-top: 1px solid var(--line-dark);
  display: grid;
  gap: 12px;
  color: #7C8D9E;
}

.fair-housing { max-width: 92ch; line-height: 1.6; }

.site-foot .arch--mark {
  position: absolute;
  right: -40px;
  bottom: -20px;
  pointer-events: none;
}

/* --- Scroll reveal -------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible { opacity: 1; transform: none; }

.reveal--d1 { transition-delay: 0.08s; }
.reveal--d2 { transition-delay: 0.16s; }
.reveal--d3 { transition-delay: 0.24s; }

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 900px) {
  .split,
  .split--wide-left,
  .split--wide-right { grid-template-columns: 1fr; }

  .site-foot__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px clamp(20px, 5vw, 48px) 24px;
    display: none;
  }

  .nav[data-open="true"] { display: flex; }

  .nav a {
    padding-block: 15px;
    border-bottom: 1px solid var(--line);
    font-size: var(--step-0);
  }

  .nav a:not(.btn)::after { display: none; }

  .nav .btn { margin-top: 16px; border-bottom: 0; justify-content: center; }

  .path-router { grid-template-columns: 1fr; }
  .path + .path { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.22); }

  .form__row { grid-template-columns: 1fr; }

  .site-foot__grid { grid-template-columns: 1fr; gap: 34px; }

  .step { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 420px) {
  /* The wordmark is the whole logo now, so it can never be hidden. */
  .brand__name { font-size: 1.1rem; }
  .specs { flex-wrap: wrap; gap: 8px 0; }
}

/* --- Print ---------------------------------------------------------------- */

@media print {
  .site-head, .nav, .hero__media, .arch { display: none !important; }
  body { color: #000; }
}

/* --- Reduced motion ------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal { opacity: 1; transform: none; }
  .hero__stagger > * { opacity: 1; transform: none; }
  .arch--hero path { stroke-dashoffset: 0; }
  .hero__media img { animation: none; transform: none; }
}
