/* ============================================================
   1328 Solvista Ter / Single property listing site
   Built by Door3D. Urban loft design: concrete grey, graphite and signal orange, Space Grotesk, boxed grid.
   ============================================================ */

:root {
  --primary: #1c1e21;
  --primary-deep: #111214;
  --primary-ink: #0b0c0d;
  --accent: #ff5a14;
  --accent-ink: #b33a00;
  --accent-soft: rgba(255, 90, 20, 0.14);
  --on-accent: #0d0d0d;
  --focus: #b33a00;
  --cream: #e4e3df;
  --surface: #f1f0ed;
  --text: #17181a;
  --muted: #4f5256;
  --line: rgba(23, 24, 26, 0.3);
  --line-soft: rgba(23, 24, 26, 0.14);
  --on-dark: #f1f0ed;
  --on-dark-muted: rgba(241, 240, 237, 0.8);
  --tile-a: #d3d2cd;
  --tile-b: #c3c2bc;
  --foot-bg: #141517;
  --foot-text: #f1f0ed;
  --foot-muted: rgba(241, 240, 237, 0.78);
  --foot-line: rgba(241, 240, 237, 0.24);
  --foot-accent: #ff6a2a;
  --primary-rgb: 28, 30, 33;
  --primary-deep-rgb: 17, 18, 20;
  --accent-rgb: 255, 90, 20;
  --ink-rgb: 23, 24, 26;
  --dark-rgb: 11, 12, 13;
  --on-dark-rgb: 241, 240, 237;
  --r-lg: 0px; --r-md: 0px; --r-sm: 0px;
  --shadow-lg: 10px 10px 0 rgba(28, 30, 33, 1);
  --shadow-md: 6px 6px 0 rgba(28, 30, 33, 1);
  --shadow-sm: none;
  --max: 1180px;
  --pad: clamp(18px, 4vw, 44px);
  --ease: 240ms cubic-bezier(0.22, 0.61, 0.36, 1);
  --display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --display-weight: 700;
  --header-h: 74px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--body);
  font-weight: 400;
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  line-height: 1.65;
  color: var(--text);
  background-color: var(--cream);
  background-image:
    repeating-linear-gradient(
      118deg,
      rgba(var(--primary-rgb), 0.028) 0 1px,
      transparent 1px 9px
    ),
    radial-gradient(120% 60% at 82% -10%, rgba(var(--accent-rgb), 0.13), transparent 60%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd, dt, figure { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: var(--display-weight); }
p { margin: 0; }
table { border-collapse: collapse; width: 100%; }

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

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 300;
  padding: 12px 20px;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  transition: top 160ms ease;
}
.skip:focus { top: 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout ---------- */
.shell {
  width: min(100% - (var(--pad) * 2), var(--max));
  margin-inline: auto;
}

.band { padding-block: clamp(52px, 8vw, 104px); }
.band--tight { padding-block: clamp(40px, 6vw, 72px); }

.band--paper {
  background: var(--surface);
  border-block: 1px solid var(--line-soft);
}

/* ---------- Section heads ---------- */
.head {
  display: flex;
  align-items: baseline;
  gap: clamp(12px, 2vw, 22px);
  margin-bottom: clamp(24px, 3.5vw, 44px);
}

.head__title {
  font-size: clamp(1.6rem, 1.05rem + 2.4vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: var(--primary-deep);
}

.head__rule {
  flex: 1 1 auto;
  height: 1px;
  min-width: 20px;
  background: linear-gradient(90deg, var(--line), transparent);
  transform: translateY(-6px);
}

.head__note {
  flex: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

/* ============================================================
   HEADER
   ============================================================ */
.masthead {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--primary);
  color: #fff;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.42);
}

.masthead__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 28px);
  padding-block: 10px;
}

.masthead__id {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  margin-right: auto;
}

.masthead__name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: clamp(0.98rem, 0.9rem + 0.4vw, 1.22rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.05;
}

.masthead__name::before {
  content: "";
  width: 3px;
  height: 1.05em;
  flex: none;
  background: var(--accent);
}

.masthead__sub {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.74);
  padding-left: 13px;
}

.masthead__tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  color: #fff;
  white-space: nowrap;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.55);
  padding-bottom: 2px;
  transition: color var(--ease), border-color var(--ease);
}
.masthead__tel:hover { color: var(--accent); border-color: var(--accent); }
.masthead__tel svg { flex: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform var(--ease), background var(--ease), color var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn--accent {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 12px 26px rgba(var(--accent-rgb), 0.28);
}
.btn--accent:hover { background: color-mix(in srgb, var(--accent) 82%, #fff); }

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 14px 30px rgba(var(--primary-rgb), 0.26);
}
.btn--primary:hover { background: var(--primary-deep); }

.btn--outline {
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

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

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(560px, 84vh, 880px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-block: clamp(48px, 9vw, 92px) 0;
  background: var(--primary-deep);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(90% 70% at 22% 18%, var(--primary) 0%, transparent 58%),
    linear-gradient(160deg, var(--primary) 0%, var(--primary-ink) 62%, var(--primary-ink) 100%);
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.02) 46%, rgba(var(--dark-rgb), 0.7) 80%, rgba(var(--dark-rgb), 0.9) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.24) 0%, transparent 58%);
}

.hero__body { padding-bottom: clamp(26px, 4vw, 46px); }

.hero__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: clamp(16px, 2.4vw, 26px);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(var(--on-dark-rgb), 0.26);
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark);
  backdrop-filter: blur(6px);
}

.tag--accent {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 1.1rem + 5.4vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  text-wrap: balance;
  max-width: 16ch;
}

.hero h1 .h1-sub {
  display: block;
  margin-top: 0.16em;
  font-size: 0.34em;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.hero__sold {
  margin-top: clamp(16px, 2.2vw, 24px);
  color: var(--on-dark-muted);
  font-size: 0.95rem;
  max-width: 46ch;
}

.hero__seal {
  position: absolute;
  z-index: 2;
  right: var(--pad);
  top: clamp(24px, 5vw, 56px);
  width: clamp(94px, 12vw, 138px);
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  gap: 2px;
  text-align: center;
  border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb), 0.85);
  outline: 1px solid rgba(var(--accent-rgb), 0.34);
  outline-offset: 6px;
  background: rgba(var(--accent-rgb), 0.94);
  color: var(--on-accent);
  transform: rotate(-7deg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

.hero__seal b {
  font-family: var(--display);
  font-size: clamp(1.1rem, 2.2vw, 1.55rem);
  letter-spacing: 0.1em;
  line-height: 1;
}

.hero__seal span {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.82;
}

/* Stat rail */
.rail {
  border-top: 1px solid rgba(var(--on-dark-rgb), 0.2);
  background: linear-gradient(180deg, rgba(var(--dark-rgb), 0.42), rgba(var(--dark-rgb), 0.78));
  backdrop-filter: blur(10px);
}

.rail__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.stat {
  padding: clamp(18px, 2.6vw, 30px) clamp(12px, 2vw, 26px);
  border-left: 1px solid rgba(var(--on-dark-rgb), 0.16);
}
.stat:first-child { border-left: 0; padding-left: 0; }

.stat__k {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.stat__v {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.35rem, 0.9rem + 1.7vw, 2.15rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: #fff;
}

.stat__v small {
  font-size: 0.46em;
  letter-spacing: 0.06em;
  color: var(--on-dark-muted);
  margin-left: 4px;
}

/* ============================================================
   GALLERY
   ============================================================ */
.grid-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  grid-auto-flow: dense;
  gap: clamp(10px, 1.4vw, 16px);
}

.tile {
  position: relative;
  display: block;
  padding: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r-md);
  background: linear-gradient(140deg, var(--tile-a), var(--tile-b));
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
}

/* A wide tile covers two columns plus the gap between them.
   2.72 keeps its height equal to a 4:3 single tile, so rows
   stay flush at every column count. */
.tile--wide { grid-column: span 2; aspect-ratio: 2.72; }

@media (max-width: 620px) {
  .tile--wide { grid-column: span 1; aspect-ratio: 4 / 3; }
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 620ms cubic-bezier(0.22, 0.61, 0.36, 1), filter var(--ease);
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(var(--ink-rgb), 0.1);
  background: linear-gradient(180deg, transparent 58%, rgba(var(--dark-rgb), 0.45));
  opacity: 0;
  transition: opacity var(--ease);
}

.tile:hover img, .tile:focus-visible img { transform: scale(1.045); }
.tile:hover::after, .tile:focus-visible::after { opacity: 1; }

.tile__cap {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--ease), transform var(--ease);
}
.tile:hover .tile__cap, .tile:focus-visible .tile__cap { opacity: 1; transform: none; }

.tile.is-missing { display: none; }

.gallery__empty {
  padding: clamp(30px, 6vw, 60px);
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
  text-align: center;
  color: var(--muted);
  background: var(--surface);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  flex-direction: column;
  background: rgba(var(--dark-rgb), 0.96);
  backdrop-filter: blur(4px);
}
.lightbox[data-open="true"] { display: flex; }
body.is-locked { overflow: hidden; }

.lightbox__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px var(--pad);
  border-bottom: 1px solid rgba(var(--on-dark-rgb), 0.14);
  color: var(--on-dark);
}

.lightbox__count {
  font-family: var(--display);
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.lightbox__label {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-right: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.iconbtn {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-content: center;
  border-radius: 50%;
  border: 1px solid rgba(var(--on-dark-rgb), 0.28);
  color: var(--on-dark);
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.iconbtn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.lightbox__stage {
  flex: 1;
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.6vw, 20px);
  padding: clamp(10px, 2vw, 26px) var(--pad);
  min-height: 0;
}

.lightbox__stage img {
  flex: 1;
  min-width: 0;
  max-height: 100%;
  width: auto;
  margin-inline: auto;
  object-fit: contain;
  border-radius: var(--r-sm);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.lightbox__foot {
  padding: 0 var(--pad) 18px;
  color: var(--on-dark-muted);
  font-size: 0.86rem;
  text-align: center;
}

@media (max-width: 640px) {
  .lightbox__stage { padding-inline: 8px; }
  .iconbtn { width: 40px; height: 40px; }
}

[hidden] { display: none !important; }

/* ============================================================
   PROPERTY
   ============================================================ */
.prop {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

@media (max-width: 900px) {
  .prop { grid-template-columns: minmax(0, 1fr); }
}

.prop__lead {
  font-size: clamp(1.12rem, 1rem + 0.5vw, 1.35rem);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--primary-deep);
  margin-bottom: 20px;
}

.prop__lead::first-letter {
  float: left;
  font-family: var(--display);
  font-size: 3.1em;
  line-height: 0.76;
  padding: 0.08em 0.12em 0 0;
  color: var(--accent-ink);
}

.prop__body { color: var(--muted); }
.prop__body + .prop__body { margin-top: 1em; }

.highlights {
  padding: clamp(22px, 2.6vw, 30px);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.highlights h3 {
  font-size: 0.86rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.highlights li {
  position: relative;
  padding: 10px 0 10px 26px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.98rem;
}
.highlights li:last-child { border-bottom: 0; padding-bottom: 0; }

.highlights li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.05em;
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 2px solid var(--accent);
}

.specs { margin-top: clamp(28px, 4vw, 44px); }

.specs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 0 clamp(24px, 4vw, 56px);
}

.specs__row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px dotted rgba(var(--primary-rgb), 0.28);
}

.specs__row dt {
  flex: none;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.specs__row dd {
  margin: 0 0 0 auto;
  text-align: right;
  font-weight: 600;
  color: var(--primary-deep);
}

/* ============================================================
   FEATURES
   ============================================================ */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-deep);
  box-shadow: var(--shadow-sm);
}

.chip::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.chip--alt::before { background: var(--primary); }

.split2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(28px, 4vw, 52px);
}

.sub {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 16px;
}

/* ============================================================
   SCHOOLS
   ============================================================ */
.schools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(14px, 1.8vw, 20px);
}

.school {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: clamp(20px, 2.4vw, 26px);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.school__score {
  flex: none;
  width: 58px; height: 58px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--accent-soft);
  font-family: var(--display);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--primary-deep);
}

.school__score small {
  display: block;
  font-family: var(--body);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-align: center;
  margin-top: 2px;
}

.school h3 {
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--primary-deep);
  margin-bottom: 6px;
}

.school__meta {
  font-size: 0.86rem;
  color: var(--muted);
}

.schools__note {
  margin-top: 18px;
  font-size: 0.84rem;
  color: var(--muted);
}

/* ============================================================
   LOCATION
   ============================================================ */
.loc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

@media (max-width: 860px) {
  .loc { grid-template-columns: minmax(0, 1fr); }
}

.loc__copy p + p { margin-top: 1em; color: var(--muted); }

.loc__pins {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.map {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--tile-a);
  box-shadow: var(--shadow-md);
  aspect-ratio: 5 / 4;
  min-height: 300px;
}

.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.map__plate {
  position: absolute;
  left: 16px; right: 16px; bottom: 16px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: rgba(var(--primary-deep-rgb), 0.94);
  color: var(--on-dark);
  box-shadow: var(--shadow-md);
}

.map__plate b {
  display: block;
  font-family: var(--display);
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #fff;
}

.map__plate span {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--on-dark-muted);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   AGENT
   ============================================================ */
.agent {
  position: relative;
  padding: clamp(28px, 4.6vw, 60px);
  border-radius: var(--r-lg);
  background:
    radial-gradient(70% 120% at 0% 0%, rgba(var(--accent-rgb), 0.2), transparent 58%),
    linear-gradient(150deg, var(--primary) 0%, var(--primary-deep) 60%, var(--primary-ink) 100%);
  color: var(--on-dark);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.agent::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.34);
  border-radius: calc(var(--r-lg) - 6px);
  pointer-events: none;
}

.agent__inner {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}

@media (max-width: 700px) {
  .agent__inner { grid-template-columns: minmax(0, 1fr); }
}

.agent__mono {
  width: clamp(84px, 10vw, 110px);
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb), 0.6);
  background: rgba(var(--accent-rgb), 0.14);
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  color: var(--accent);
}

.agent h3 {
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: #fff;
}

.agent__creds {
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.agent__tag {
  margin-top: 18px;
  font-family: var(--display);
  font-size: clamp(1.02rem, 0.9rem + 0.7vw, 1.42rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
}

.agent__since {
  margin-top: 6px;
  color: var(--on-dark-muted);
  font-size: 0.94rem;
}

.agent__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px;
  margin: clamp(22px, 3vw, 30px) 0;
  background: rgba(var(--on-dark-rgb), 0.18);
  border: 1px solid rgba(var(--on-dark-rgb), 0.18);
  border-radius: var(--r-md);
  overflow: hidden;
}

.agent__stat {
  padding: 16px 18px;
  background: rgba(var(--dark-rgb), 0.44);
}

.agent__stat b {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.agent__stat span {
  display: block;
  margin-top: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.agent__contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 14px 28px;
}

.agent__row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(var(--on-dark-rgb), 0.14);
  font-size: 0.95rem;
}

.agent__row dt {
  flex: none;
  width: 68px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.agent__row dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  color: #fff;
}

.agent__row a { border-bottom: 1px solid rgba(var(--accent-rgb), 0.5); transition: color var(--ease); }
.agent__row a:hover { color: var(--accent); }

/* ============================================================
   FORM
   ============================================================ */
.showing {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: start;
}

@media (max-width: 880px) {
  .showing { grid-template-columns: minmax(0, 1fr); }
}

.showing__copy h3 {
  font-size: clamp(1.7rem, 1.15rem + 2.2vw, 2.8rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: var(--primary-deep);
  margin-bottom: 16px;
}

.showing__copy p { color: var(--muted); }

.showing__direct {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
}

.showing__direct b { display: block; font-family: var(--display); color: var(--primary-deep); letter-spacing: -0.01em; }
.showing__direct a { font-size: 1.12rem; font-weight: 600; color: var(--primary); border-bottom: 1px solid var(--accent); }

.form {
  position: relative;
  padding: clamp(22px, 3vw, 36px);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--text);
  transition: border-color var(--ease), box-shadow var(--ease);
}

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

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.16);
}

.field input:focus-visible,
.field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.form__fine {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.form.is-sent .form__body { display: none; }

.form__done { display: none; text-align: center; padding: clamp(14px, 3vw, 30px) 0; }
.form.is-sent .form__done { display: block; }

.form__done .check {
  width: 58px; height: 58px;
  margin: 0 auto 18px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 2px solid var(--accent);
  color: var(--primary-deep);
}

.form__done h3 {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--primary-deep);
  margin-bottom: 10px;
}

.form__done p { color: var(--muted); }

.linkbtn {
  margin-top: 18px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}


/* ============================================================
   FOOTER
   ============================================================ */
.foot {
  background: var(--foot-bg);
  color: var(--foot-text);
  padding-block: clamp(44px, 6vw, 72px) 32px;
}
.foot__top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: clamp(26px, 4vw, 48px);
  padding-bottom: clamp(26px, 4vw, 40px);
  border-bottom: 1px solid var(--foot-line);
}
.foot__by {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--foot-accent);
  margin-bottom: 16px;
}
.foot__logo { width: clamp(150px, 20vw, 200px); height: auto; }
.foot__logo-fallback { font-family: var(--display); font-size: 1.5rem; letter-spacing: -0.02em; color: var(--foot-text); }
.foot__blurb { margin-top: 16px; color: var(--foot-muted); font-size: 0.94rem; max-width: 42ch; }
.foot h3 {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--foot-accent);
  margin-bottom: 14px;
}
.foot__list li { padding: 6px 0; }
.foot__list a { border-bottom: 1px solid var(--foot-line); transition: color var(--ease); }
.foot__list a:hover { color: var(--foot-accent); }
.foot__legal {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--foot-muted);
}
.foot__legal strong { color: var(--foot-text); font-weight: 600; }

/* ============================================================
   MOTION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

@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;
  }
  .reveal { opacity: 1; transform: none; }
  .btn:hover { transform: none; }
  .svc:hover { transform: none; }
  .tile:hover img { transform: none; }
}

/* ============================================================
   SMALL SCREENS
   ============================================================ */
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .masthead__tel span.tel-text { display: none; }
  .masthead__tel {
    width: 44px;
    height: 44px;
    flex: none;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(var(--accent-rgb), 0.6);
    border-radius: 50%;
  }
  .masthead__sub { font-size: 0.66rem; letter-spacing: 0.12em; }
  .hero__seal { width: 82px; top: 18px; }
  .stat:first-child { padding-left: 0; }
  .stat { border-left: 0; border-top: 1px solid rgba(var(--on-dark-rgb), 0.16); }
  .rail__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2n) { border-left: 1px solid rgba(var(--on-dark-rgb), 0.16); padding-left: 16px; }
}

/* Two row header on narrow phones so the brokerage line never
   wraps into a ragged block beside the button. */
@media (max-width: 560px) {
  .masthead__inner {
    min-height: 0;
    flex-wrap: wrap;
    row-gap: 10px;
    padding-block: 12px;
  }
  .masthead__id { flex: 1 0 100%; margin-right: 0; }
  .masthead__sub { white-space: nowrap; }
  .masthead__tel { order: 2; }
  .masthead .btn--accent { order: 3; flex: 1 1 auto; }
  html { scroll-padding-top: 130px; }
}

@media (max-width: 430px) {
  .btn { padding: 0 16px; font-size: 0.74rem; letter-spacing: 0.1em; }
  .head { flex-wrap: wrap; }
  .head__note { width: 100%; }
}

/* ---------- Base tweaks shared by every Door3D listing site ---------- */
.school__score { font-size: 1.05rem; width: 64px; height: 64px; text-align: center; letter-spacing: 0; }
.agent__contact { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.hero__seal b { font-size: clamp(0.95rem, 1.8vw, 1.25rem); }
img, iframe { max-width: 100%; }
.map { min-width: 0; width: 100%; }
@media (max-width: 760px) { .stat { padding-left: 0; } .stat:nth-child(2n) { padding-left: 16px; } }
@media (max-width: 560px) { .hero__seal { display: none; } }
.shell > *, .loc > *, .prop > *, .showing > * { min-width: 0; }


/* ============================================================
   URBAN LOFT: personality overrides
   Concrete grey, graphite and signal orange. Boxed grid.
   ============================================================ */
body { background-image: none; counter-reset: sec; font-size: clamp(1rem, 0.97rem + 0.15vw, 1.08rem); line-height: 1.6; }
:focus-visible { outline-width: 3px; outline-offset: 3px; border-radius: 0; }
.masthead :focus-visible, .hero :focus-visible, .rail :focus-visible, .agent :focus-visible,
.foot :focus-visible, .lightbox :focus-visible, .map__plate :focus-visible { outline-color: #ff7a3d; }

/* Bands: hard rules, no soft shadows */
.band { padding-block: clamp(48px, 7vw, 96px); border-top: 3px solid var(--primary); }
.band--paper { background: var(--surface); border-block: 0; border-top: 3px solid var(--primary); }

/* Section heads: solid graphite bars with a numbered title and an orange note */
.head { align-items: stretch; gap: 0; background: var(--primary); border: 3px solid var(--primary); counter-increment: sec; }
.head__title {
  flex: 1 1 auto;
  padding: 12px clamp(14px, 2.4vw, 26px);
  font-size: clamp(1.45rem, 1rem + 1.8vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
}
.head__title::before {
  content: counter(sec, decimal-leading-zero);
  display: inline-block;
  margin-right: 0.7em;
  font-size: 0.42em;
  letter-spacing: 0.12em;
  vertical-align: 0.9em;
  color: var(--accent);
}
.head__rule { display: none; }
.head__note {
  display: flex;
  align-items: center;
  padding: 0 clamp(12px, 2vw, 22px);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}
.sub {
  display: inline-block;
  padding: 6px 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  margin-bottom: 18px;
}

/* Header: graphite bar, orange rule, square button */
.masthead { background: var(--primary); border-bottom: 4px solid var(--accent); }
.masthead__name { font-weight: 700; letter-spacing: -0.01em; }
.masthead__name::before { width: 11px; height: 11px; background: var(--accent); }
.masthead__sub { color: rgba(var(--on-dark-rgb), 0.78); font-weight: 500; }
.masthead__tel { border-bottom-color: var(--accent); }
.masthead__tel:hover { color: var(--accent); border-color: var(--accent); }
.btn { border-radius: 0; font-weight: 700; letter-spacing: 0.1em; }
.btn:hover { transform: translate(-2px, -2px); }
.btn--accent { background: var(--accent); color: var(--on-accent); box-shadow: 3px 3px 0 #fff; }
.btn--accent:hover { background: #fff; color: var(--primary); box-shadow: 5px 5px 0 var(--accent); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 5px 5px 0 var(--accent); }
.btn--primary:hover { background: var(--primary-deep); box-shadow: 8px 8px 0 var(--accent); }
@media (max-width: 760px) { .masthead__tel { border-radius: 0; border-color: var(--accent); } }

/* Hero: raw photo, graphite scrim, big flat type */
.hero { background: var(--primary-ink); }
.hero__scrim {
  background:
    linear-gradient(180deg, rgba(var(--dark-rgb), 0.34) 0%, rgba(var(--dark-rgb), 0.04) 34%, rgba(var(--dark-rgb), 0.7) 78%, rgba(var(--dark-rgb), 0.94) 100%),
    linear-gradient(90deg, rgba(var(--dark-rgb), 0.5) 0%, transparent 64%);
}
.hero h1 { font-size: clamp(2.6rem, 1rem + 7vw, 6.2rem); line-height: 0.9; letter-spacing: -0.045em; font-weight: 700; max-width: 12ch; }
.hero h1 .h1-sub { margin-top: 0.3em; font-size: 0.26em; letter-spacing: 0.14em; color: var(--accent); font-weight: 700; text-shadow: 0 0 6px rgba(0,0,0,.85), 0 2px 10px rgba(0,0,0,.8); }
.hero__sold { color: rgba(var(--on-dark-rgb), 0.95); font-size: 1.04rem; max-width: 54ch; }
.tag { border-radius: 0; border: 2px solid rgba(var(--on-dark-rgb), 0.85); background: rgba(var(--dark-rgb), 0.55); color: #fff; font-weight: 700; backdrop-filter: none; }
.tag--accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.hero__seal {
  border-radius: 0;
  background: var(--accent);
  color: var(--on-accent);
  border: 3px solid var(--primary-ink);
  outline: 0;
  transform: rotate(-4deg);
  box-shadow: 7px 7px 0 rgba(var(--dark-rgb), 0.9);
}
.hero__seal b { font-weight: 700; letter-spacing: 0.04em; }
.hero__seal span { opacity: 1; font-weight: 700; }
.rail { background: rgba(var(--dark-rgb), 0.94); border-top: 4px solid var(--accent); backdrop-filter: none; }
.stat { border-left: 2px solid rgba(var(--on-dark-rgb), 0.28); }
.stat__k { color: var(--accent); font-weight: 700; }
.stat__v { font-weight: 700; letter-spacing: -0.03em; }

/* Gallery: boxed frames with always-on caption labels */
.grid-photos { gap: clamp(10px, 1.4vw, 16px); }
.tile { border-radius: 0; border: 3px solid var(--primary); box-shadow: none; background: linear-gradient(140deg, var(--tile-a), var(--tile-b)); }
.tile::after { display: none; }
.tile:hover, .tile:focus-visible { border-color: var(--accent-ink); }
.tile:hover img, .tile:focus-visible img { transform: scale(1.03); }
.tile__cap {
  left: 0; bottom: 0;
  padding: 5px 11px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-shadow: none;
  opacity: 1;
  transform: none;
  border-top: 3px solid var(--accent);
  border-right: 3px solid var(--primary);
}

/* The property */
.prop__lead { font-weight: 500; font-size: clamp(1.25rem, 1rem + 1.1vw, 1.8rem); line-height: 1.35; letter-spacing: -0.02em; color: var(--text); }
.prop__lead::first-letter { float: none; font: inherit; padding: 0; color: inherit; }
.prop__body { color: var(--muted); }
.highlights { border-radius: 0; background: var(--surface); border: 3px solid var(--primary); box-shadow: 8px 8px 0 var(--primary); }
.highlights h3 { color: var(--primary); font-weight: 700; border-bottom: 3px solid var(--accent); }
.highlights li { border-bottom: 2px solid var(--line-soft); }
.highlights li::before { width: 10px; height: 10px; border-radius: 0; border: 2px solid var(--primary); background: var(--accent); top: 1.1em; }
.specs { margin-top: clamp(32px, 4vw, 52px); }
.specs__grid { border-top: 3px solid var(--primary); }
.specs__row { border-bottom: 2px solid var(--line-soft); }
.specs__row dt { font-weight: 700; }
.specs__row dd { color: var(--text); font-weight: 700; }

/* Features: square tags */
.chip { border-radius: 0; border: 2px solid var(--primary); background: var(--surface); box-shadow: none; color: var(--text); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.07em; text-transform: uppercase; padding: 8px 13px; }
.chip::before { width: 9px; height: 9px; border-radius: 0; background: var(--accent); border: 1.5px solid var(--primary); }
.chip--alt { background: var(--primary); color: #fff; }
.chip--alt::before { background: var(--accent); border-color: var(--accent); }

/* Schools */
.school { border-radius: 0; border: 3px solid var(--primary); background: var(--surface); box-shadow: none; }
.school__score { border-radius: 0; border: 2px solid var(--primary); background: var(--accent); color: var(--on-accent); font-weight: 700; width: 66px; height: 66px; }
.school h3 { font-weight: 700; color: var(--text); letter-spacing: -0.01em; }

/* Location */
.map { border-radius: 0; border: 3px solid var(--primary); box-shadow: 8px 8px 0 var(--primary); background: var(--tile-a); }
.map__plate { left: 0; right: 0; bottom: 0; border-radius: 0; background: var(--primary); border-top: 4px solid var(--accent); box-shadow: none; }
.map__plate b { font-weight: 700; letter-spacing: 0; }

/* Agent: graphite slab */
.agent { border-radius: 0; background: var(--primary); border: 3px solid var(--primary); box-shadow: 10px 10px 0 var(--accent-ink); }
.agent::before { inset: 10px; border-radius: 0; border: 2px solid rgba(var(--accent-rgb), 0.7); }
.agent h3 { font-weight: 700; letter-spacing: -0.03em; }
.agent__creds { color: var(--accent); font-weight: 700; }
.agent__tag { font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; }
.agent__mono { border-radius: 0; border: 0; background: var(--accent); color: var(--on-accent); font-weight: 700; }
.agent__stats { border-radius: 0; border: 2px solid rgba(var(--on-dark-rgb), 0.4); background: rgba(var(--on-dark-rgb), 0.4); gap: 2px; }
.agent__stat { background: var(--primary-deep); }
.agent__stat b { color: var(--accent); font-weight: 700; }
.agent__row { border-bottom: 2px solid rgba(var(--on-dark-rgb), 0.22); }
.agent__row dt { color: var(--accent); font-weight: 700; }
.agent__row a { border-bottom: 2px solid var(--accent); }

/* Form */
.showing__copy h3 { font-weight: 700; color: var(--text); letter-spacing: -0.03em; }
.showing__direct { border-radius: 0; border: 3px solid var(--primary); background: var(--surface); }
.showing__direct a { color: var(--text); border-bottom: 3px solid var(--accent); font-weight: 700; }
.form { border-radius: 0; background: var(--surface); border: 3px solid var(--primary); box-shadow: 10px 10px 0 var(--primary); }
.field label { color: var(--text); font-weight: 700; }
.field input, .field textarea { border-radius: 0; border: 2px solid var(--primary); background: #fff; }
.field input:focus, .field textarea:focus { border-color: var(--accent-ink); box-shadow: 4px 4px 0 var(--accent); }
.form__done .check { border-radius: 0; border: 2px solid var(--primary); background: var(--accent); color: var(--on-accent); }
.form__done h3 { font-weight: 700; color: var(--text); }
.linkbtn { color: var(--text); border-bottom: 3px solid var(--accent); font-weight: 700; }

/* Lightbox */
.iconbtn { border-radius: 0; }
.iconbtn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.lightbox__stage img { border-radius: 0; }

/* Footer: graphite with an orange cap */
.foot { border-top: 6px solid var(--accent); }
.foot__legal strong { color: var(--foot-text); }


/* ============================================================
   FINAL PASS: gallery rows, tap targets, journal
   ============================================================ */
.grid-photos { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) {
  .grid-photos { grid-template-columns: repeat(3, 1fr); }
  .tile--wide { grid-column: span 1; aspect-ratio: 4 / 3; }
}
@media (max-width: 760px) {
  .grid-photos { grid-template-columns: repeat(2, 1fr); }
  .tile--wide { grid-column: span 2; aspect-ratio: 2.72; }
}
@media (max-width: 620px) {
  .grid-photos { grid-template-columns: 1fr; }
  .tile--wide { grid-column: span 1; aspect-ratio: 4 / 3; }
}

@media (max-width: 760px) {
  .stat:nth-child(odd) { border-left: 0; }
  .hero h1 .h1-sub { color: #ffa57a; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85); font-size: 0.4em; }
  .agent__row a, .showing__direct a, .foot__list a, .masthead__tel {
    display: inline-flex; align-items: center; min-height: 44px;
  }
  .foot__list li { padding: 0; }
}
.hero h1 .h1-sub { text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7); }

.journal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.6vw, 34px);
  align-items: start;
}
.note {
  background: #fbfbf9;
  border: 3px solid var(--primary);
  box-shadow: 8px 8px 0 var(--primary);
  padding: clamp(20px, 2.4vw, 30px);
  scroll-margin-top: 90px;
}
.note__tag {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.note h3 {
  margin: 0 0 12px;
  font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.65rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--text);
}
.note__dek {
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--accent);
  font-weight: 700;
  color: var(--text);
}
.note p { margin: 0 0 12px; color: var(--muted); }
.note p:last-child { margin-bottom: 0; }
.note a { color: var(--text); font-weight: 600; border-bottom: 2px solid var(--accent); }
.note a:hover { color: var(--accent-ink); }
@media (max-width: 1100px) {
  .journal { grid-template-columns: 1fr; max-width: 720px; }
}

/* head-wrap-fix: let the section head wrap only when the note runs out of room (440-580px overflow) */
.head { flex-wrap: wrap; }
