/* ==========================================================================
   TERRA MODERN — style.css
   Brutalist-Architectural system. Thick black grid rules, hard offset shadows,
   monospace labels + geometric-grotesk headings, one electric orange.
   All classes prefixed .terra-. No rounded corners, no soft shadows.
   ========================================================================== */

:root {
  --terra-paper: #fafafa;
  --terra-ink: #0a0a0a;
  --terra-orange: #ff5b1e;
  --terra-grey: #9a978f;
  --terra-hair: #111111;         /* thick black rules */
  --terra-paper-2: #f0eee9;      /* faint warm panel */
  --terra-ink-2: #1c1a17;

  --terra-mono:var(--catalog-font-body);
  --terra-grotesk:var(--catalog-font-body);

  --terra-rule: 2px;
  --terra-rule-thick: 4px;
  --terra-shadow: 8px 8px 0 var(--terra-ink);
  --terra-shadow-sm: 5px 5px 0 var(--terra-ink);
  --terra-wrap: 1240px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--terra-paper);
  color: var(--terra-ink);
  font-family: var(--terra-grotesk);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.terra-nav-locked { overflow: hidden; }

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--terra-grotesk); font-weight: 700; line-height: 1.02; letter-spacing: -0.02em; margin: 0; }
p { margin: 0 0 1rem; }

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, .terra-thumb:focus-visible {
  outline: var(--terra-rule-thick) solid var(--terra-orange);
  outline-offset: 2px;
}

.terra-wrap { width: 100%; max-width: var(--terra-wrap); margin: 0 auto; padding: 0 24px; }
.terra-wrap--narrow { max-width: 840px; }
.terra-section { padding: 88px 0; }
.terra-section--tight { padding: 56px 0; }
.terra-empty, .terra-muted { font-family: var(--terra-mono); color: var(--terra-ink); }
.terra-muted { color: #4a463f; font-size: 0.85rem; }
.terra-mono { font-family: var(--terra-mono); }

.terra-kicker {
  font-family: var(--terra-mono); font-size: 0.72rem; letter-spacing: 0.28em;
  text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
}
.terra-kicker::before { content: ""; width: 34px; height: var(--terra-rule); background: var(--terra-orange); }

/* section header with big index number */
.terra-h-num { font-size: clamp(1.9rem, 4vw, 3rem); text-transform: uppercase; letter-spacing: -0.03em; }
.terra-h-num span { color: var(--terra-orange); font-family: var(--terra-mono); font-weight: 700; letter-spacing: 0; }
.terra-sechead { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.terra-secidx { font-family: var(--terra-mono); font-size: clamp(2.4rem, 7vw, 5rem); line-height: 0.8; color: var(--terra-ink); opacity: 0.12; }

/* reveal */
.terra-js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.terra-js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  * { scroll-behavior: auto !important; }
}

/* ---------- buttons ---------------------------------------------------- */
.terra-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--terra-mono); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 15px 26px; text-decoration: none; cursor: pointer;
  border: var(--terra-rule) solid var(--terra-ink); background: var(--terra-paper); color: var(--terra-ink);
  box-shadow: var(--terra-shadow-sm); transition: transform .12s ease, box-shadow .12s ease, background .12s ease, color .12s ease;
}
.terra-btn:hover { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--terra-ink); }
.terra-btn--solid { background: var(--terra-ink); color: var(--terra-paper); }
.terra-btn--solid:hover { background: var(--terra-orange); border-color: var(--terra-ink); color: var(--terra-ink); }
.terra-btn--orange { background: var(--terra-orange); color: var(--terra-ink); }
.terra-btn--ghost { background: var(--terra-paper); }
.terra-btn--block { width: 100%; }

/* ---------- header / nav ---------------------------------------------- */
.terra-header { position: sticky; top: 0; z-index: 40; background: var(--terra-paper); border-bottom: var(--terra-rule-thick) solid var(--terra-hair); }
.terra-header__bar { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.terra-logo { font-family: var(--terra-mono); font-weight: 700; font-size: 1.02rem; letter-spacing: 0.12em; text-decoration: none; display: inline-flex; align-items: center; gap: 12px; }
.terra-logo__mark { width: 26px; height: 26px; background: var(--terra-ink); position: relative; flex: none; }
.terra-logo__mark::after { content: ""; position: absolute; right: 4px; bottom: 4px; width: 9px; height: 9px; background: var(--terra-orange); }

.terra-nav { display: flex; align-items: center; gap: 4px; }
.terra-nav a {
  font-family: var(--terra-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; padding: 9px 12px; border: var(--terra-rule) solid transparent;
}
.terra-nav a:hover { border-color: var(--terra-ink); }
.terra-nav a[aria-current="page"] { background: var(--terra-ink); color: var(--terra-paper); }
.terra-nav__cta { border: var(--terra-rule) solid var(--terra-ink) !important; box-shadow: var(--terra-shadow-sm); background: var(--terra-orange); color: var(--terra-ink); }
.terra-nav__cta:hover { transform: translate(3px,3px); box-shadow: 0 0 0 var(--terra-ink); }

.terra-nav-toggle {
  display: none; width: 46px; height: 46px; border: var(--terra-rule) solid var(--terra-ink); background: var(--terra-paper);
  cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; padding: 0;
}
.terra-nav-toggle span { width: 22px; height: 2px; background: var(--terra-ink); }

@media (max-width: 940px) {
  .terra-nav-toggle { display: flex; }
  .terra-nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--terra-paper); border-bottom: var(--terra-rule-thick) solid var(--terra-hair);
    padding: 8px; transform: translateY(-140%); transition: transform .25s ease; max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .terra-nav.is-open { transform: none; }
  .terra-nav a { padding: 15px 12px; border-bottom: var(--terra-rule) solid var(--terra-paper-2); }
  .terra-nav__cta { margin-top: 8px; box-shadow: none; justify-content: center; }
}

/* ---------- hero ------------------------------------------------------- */
.terra-hero { border-bottom: var(--terra-rule-thick) solid var(--terra-hair); position: relative; overflow: hidden; }
.terra-hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; }
.terra-hero__left { padding: 64px 24px 56px; border-right: var(--terra-rule-thick) solid var(--terra-hair); }
.terra-hero__left-inner { max-width: 660px; margin-left: auto; padding-right: 40px; }
.terra-hero__title { font-size: clamp(2.6rem, 6.2vw, 5.2rem); text-transform: uppercase; letter-spacing: -0.04em; line-height: 0.88; margin: 0 0 20px; word-break: break-word; }
.terra-hero__title em { font-style: normal; color: var(--terra-orange); }
.terra-hero__lede { font-size: 1.12rem; max-width: 46ch; margin: 0 0 28px; }
.terra-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.terra-hero__right { position: relative; min-height: 420px; }
.terra-hero__right .terra-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.terra-hero__tag {
  position: absolute; left: 0; bottom: 0; z-index: 2; background: var(--terra-ink); color: var(--terra-paper);
  font-family: var(--terra-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 12px 18px;
  border-top: var(--terra-rule) solid var(--terra-orange);
}

/* hero search bar */
.terra-searchbar { border-top: var(--terra-rule-thick) solid var(--terra-hair); background: var(--terra-ink); }
.terra-searchbar form { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 0; }
.terra-searchbar .terra-field { border-right: var(--terra-rule) solid #2a2620; }
.terra-searchbar label { display: block; font-family: var(--terra-mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--terra-grey); padding: 12px 16px 0; }
.terra-searchbar input, .terra-searchbar select {
  width: 100%; background: transparent; border: 0; color: var(--terra-paper); font-family: var(--terra-grotesk);
  font-size: 1rem; padding: 4px 16px 14px; -webkit-appearance: none; appearance: none;
}
.terra-searchbar select { color: var(--terra-paper); }
.terra-searchbar option { color: var(--terra-ink); }
.terra-searchbar input::placeholder { color: #6a655c; }
.terra-searchbar button {
  border: 0; background: var(--terra-orange); color: var(--terra-ink); font-family: var(--terra-mono);
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.82rem; padding: 0 32px; cursor: pointer;
}
.terra-searchbar button:hover { background: var(--terra-paper); }

@media (max-width: 940px) {
  .terra-hero__grid { grid-template-columns: 1fr; }
  .terra-hero__left { border-right: 0; border-bottom: var(--terra-rule-thick) solid var(--terra-hair); padding: 48px 24px; }
  .terra-hero__left-inner { padding-right: 0; }
  .terra-hero__right { min-height: 300px; }
  .terra-searchbar form { grid-template-columns: 1fr 1fr; }
  .terra-searchbar button { grid-column: 1 / -1; padding: 16px; }
}
@media (max-width: 560px) { .terra-searchbar form { grid-template-columns: 1fr; } .terra-searchbar .terra-field { border-right: 0; border-bottom: var(--terra-rule) solid #2a2620; } }

/* ---------- stats band ------------------------------------------------- */
.terra-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: var(--terra-rule-thick) solid var(--terra-hair); }
.terra-stat { padding: 34px 26px; border-right: var(--terra-rule) solid var(--terra-hair); }
.terra-stat:last-child { border-right: 0; }
.terra-stat__idx { font-family: var(--terra-mono); font-size: 0.7rem; letter-spacing: 0.2em; color: var(--terra-orange); }
.terra-stat__num { display: block; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.03em; margin-top: 12px; }
.terra-stat__label { display: block; font-family: var(--terra-mono); font-size: 0.74rem; letter-spacing: 0.04em; text-transform: uppercase; margin-top: 10px; }
.terra-stat__sub { display: block; font-size: 0.85rem; color: #4a463f; margin-top: 6px; }
@media (max-width: 820px) { .terra-stats { grid-template-columns: repeat(2, 1fr); }
  .terra-stat:nth-child(2n) { border-right: 0; } .terra-stat:nth-child(-n+2) { border-bottom: var(--terra-rule) solid var(--terra-hair); } }
@media (max-width: 460px) { .terra-stats { grid-template-columns: 1fr; } .terra-stat { border-right: 0 !important; border-bottom: var(--terra-rule) solid var(--terra-hair); } }

/* ---------- masonry listings ------------------------------------------ */
.terra-masonry { columns: 3 300px; column-gap: 28px; }
.terra-masonry .terra-card { break-inside: avoid; margin: 0 0 28px; }

.terra-card { background: var(--terra-paper); border: var(--terra-rule) solid var(--terra-ink); box-shadow: var(--terra-shadow); transition: transform .14s ease, box-shadow .14s ease; }
.terra-card:hover { transform: translate(4px, 4px); box-shadow: 3px 3px 0 var(--terra-ink); }
.terra-card__media { position: relative; display: block; border-bottom: var(--terra-rule) solid var(--terra-ink); aspect-ratio: 4 / 3; overflow: hidden; }
.terra-card:nth-child(3n+2) .terra-card__media { aspect-ratio: 1 / 1; }
.terra-card:nth-child(3n+1) .terra-card__media { aspect-ratio: 5 / 4; }
.terra-card__media .terra-scene { width: 100%; height: 100%; }
img.terra-scene { object-fit: cover; display: block; }
.terra-card__flag {
  position: absolute; top: 0; left: 0; background: var(--terra-ink); color: var(--terra-paper);
  font-family: var(--terra-mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; padding: 7px 12px;
  border-right: var(--terra-rule) solid var(--terra-orange); border-bottom: var(--terra-rule) solid var(--terra-orange);
}
.terra-card__flag.is-sold { background: var(--terra-orange); color: var(--terra-ink); border-color: var(--terra-ink); }
.terra-card__flag.is-off { background: var(--terra-grey); color: var(--terra-ink); }
.terra-card__num { position: absolute; right: 10px; bottom: 8px; font-family: var(--terra-mono); font-weight: 700; font-size: 1.5rem; color: var(--terra-paper); text-shadow: 2px 2px 0 var(--terra-ink); }
.terra-card__body { padding: 20px; }
.terra-card__meta { display: flex; justify-content: space-between; gap: 10px; font-family: var(--terra-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: #4a463f; margin-bottom: 10px; }
.terra-card__title { font-size: 1.35rem; letter-spacing: -0.02em; margin: 0 0 14px; }
.terra-card__title a { text-decoration: none; }
.terra-card__title a:hover { color: var(--terra-orange); }
.terra-card__specs { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--terra-mono); font-size: 0.78rem; padding-bottom: 14px; border-bottom: var(--terra-rule) solid var(--terra-paper-2); }
.terra-card__specs b { font-weight: 700; }
.terra-card__price { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; margin-top: 14px; }
@media (max-width: 640px) { .terra-masonry { columns: 1; } .terra-card__media, .terra-card:nth-child(n) .terra-card__media { aspect-ratio: 4 / 3; } }

/* ---------- gallery toolbar ------------------------------------------- */
.terra-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.terra-count { font-family: var(--terra-mono); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; background: var(--terra-ink); color: var(--terra-paper); padding: 8px 14px; }

/* ---------- listing detail -------------------------------------------- */
.terra-det-hero { position: relative; aspect-ratio: 21 / 8; border-bottom: var(--terra-rule-thick) solid var(--terra-hair); overflow: hidden; }
.terra-det-hero .terra-scene { width: 100%; height: 100%; }
.terra-det-hero__flag { position: absolute; left: 0; bottom: 0; background: var(--terra-ink); color: var(--terra-paper); font-family: var(--terra-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 12px 18px; border-top: var(--terra-rule) solid var(--terra-orange); }
.terra-det { display: grid; grid-template-columns: 1fr 340px; gap: 0; padding: 0; }
.terra-det__main { padding: 48px 44px 64px 0; }
.terra-det__side { border-left: var(--terra-rule-thick) solid var(--terra-hair); padding: 48px 0 48px 44px; }
@media (max-width: 900px) {
  .terra-det { grid-template-columns: 1fr; }
  .terra-det__main { padding: 40px 0; }
  .terra-det__side { border-left: 0; border-top: var(--terra-rule-thick) solid var(--terra-hair); padding: 36px 0; }
}
.terra-crumbs { font-family: var(--terra-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: #4a463f; display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.terra-crumbs a { color: var(--terra-orange); text-decoration: none; }
.terra-det__title { font-size: clamp(2rem, 5vw, 3.4rem); text-transform: uppercase; letter-spacing: -0.035em; }
.terra-det__loc { font-family: var(--terra-mono); font-size: 0.9rem; margin: 12px 0 26px; }
.terra-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 30px; }
.terra-thumb { padding: 0; border: var(--terra-rule) solid var(--terra-ink); background: none; cursor: pointer; aspect-ratio: 1/1; overflow: hidden; }
.terra-thumb.is-active { outline: var(--terra-rule-thick) solid var(--terra-orange); outline-offset: -4px; }
.terra-thumb .terra-scene { width: 100%; height: 100%; }
.terra-det__lede { font-size: 1.08rem; max-width: 62ch; }
.terra-h-num { margin: 34px 0 20px; }
.terra-specsheet { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: var(--terra-rule) solid var(--terra-ink); }
.terra-spec { display: flex; justify-content: space-between; gap: 14px; padding: 14px 18px; border-bottom: var(--terra-rule) solid var(--terra-paper-2); border-right: var(--terra-rule) solid var(--terra-paper-2); }
.terra-spec:nth-child(2n) { border-right: 0; }
.terra-spec dt { font-family: var(--terra-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: #4a463f; margin: 0; }
.terra-spec dd { margin: 0; font-weight: 700; }
@media (max-width: 480px) { .terra-specsheet { grid-template-columns: 1fr; } .terra-spec { border-right: 0; } .terra-gallery { grid-template-columns: repeat(2, 1fr); } }

.terra-sidecard { position: sticky; top: 92px; border: var(--terra-rule) solid var(--terra-ink); box-shadow: var(--terra-shadow); padding: 24px; background: var(--terra-paper); }
.terra-sidecard__price { font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; padding-bottom: 18px; border-bottom: var(--terra-rule-thick) solid var(--terra-hair); }
.terra-sidecard__actions { display: flex; flex-direction: column; gap: 12px; margin: 20px 0; }
.terra-sidecard__agent { display: flex; align-items: center; gap: 12px; text-decoration: none; padding-top: 18px; border-top: var(--terra-rule) solid var(--terra-paper-2); }
.terra-sidecard__agent b { display: block; } .terra-sidecard__agent small { font-family: var(--terra-mono); font-size: 0.72rem; color: #4a463f; }

.terra-avatar { width: 44px; height: 44px; flex: none; background: var(--terra-ink); color: var(--terra-paper); display: flex; align-items: center; justify-content: center; font-family: var(--terra-mono); font-weight: 700; font-size: 0.9rem; }
.terra-avatar--lg { width: 72px; height: 72px; font-size: 1.3rem; border: var(--terra-rule) solid var(--terra-ink); background: var(--terra-orange); color: var(--terra-ink); }

/* ---------- lightbox --------------------------------------------------- */
.terra-lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(10,10,10,.92); display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px; }
.terra-lightbox__stage { width: min(1000px, 92vw); border: var(--terra-rule-thick) solid var(--terra-paper); }
.terra-lightbox__stage .terra-scene { width: 100%; aspect-ratio: 4/3; }
.terra-lightbox__close { position: absolute; top: 18px; right: 20px; width: 48px; height: 48px; background: var(--terra-orange); border: var(--terra-rule) solid var(--terra-paper); color: var(--terra-ink); font-size: 1.6rem; cursor: pointer; }
.terra-lightbox__nav { width: 52px; height: 52px; background: var(--terra-paper); border: var(--terra-rule) solid var(--terra-ink); font-size: 1.6rem; cursor: pointer; flex: none; }

/* ---------- schedule --------------------------------------------------- */
.terra-sched { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: var(--terra-rule) solid var(--terra-ink); box-shadow: var(--terra-shadow); }
.terra-sched__cal { padding: 28px; border-right: var(--terra-rule-thick) solid var(--terra-hair); }
.terra-sched__form { padding: 28px; }
@media (max-width: 820px) { .terra-sched { grid-template-columns: 1fr; } .terra-sched__cal { border-right: 0; border-bottom: var(--terra-rule-thick) solid var(--terra-hair); } }
.terra-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.terra-cal__head h3 { font-family: var(--terra-mono); font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase; }
.terra-cal__nav { width: 40px; height: 40px; border: var(--terra-rule) solid var(--terra-ink); background: var(--terra-paper); cursor: pointer; font-size: 1.1rem; }
.terra-cal__nav:hover { background: var(--terra-ink); color: var(--terra-paper); }
.terra-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.terra-cal__dow { text-align: center; font-family: var(--terra-mono); font-size: 0.66rem; color: #4a463f; padding: 6px 0; }
.terra-cal__cell { aspect-ratio: 1/1; border: var(--terra-rule) solid var(--terra-ink); background: var(--terra-paper); font-family: var(--terra-mono); font-size: 0.85rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.terra-cal__cell:hover:not(.is-off) { background: var(--terra-orange); }
.terra-cal__cell.is-off { border-color: var(--terra-paper-2); color: #c3bfb6; cursor: not-allowed; }
.terra-cal__cell.is-picked { background: var(--terra-ink); color: var(--terra-paper); }
.terra-slot-label { font-family: var(--terra-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 20px 0 12px; }
.terra-slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.terra-slot { border: var(--terra-rule) solid var(--terra-ink); background: var(--terra-paper); font-family: var(--terra-mono); font-size: 0.78rem; padding: 12px 6px; cursor: pointer; }
.terra-slot:hover:not(.is-taken) { background: var(--terra-orange); }
.terra-slot.is-picked { background: var(--terra-ink); color: var(--terra-paper); }
.terra-slot.is-taken { color: #c3bfb6; text-decoration: line-through; cursor: not-allowed; border-color: var(--terra-paper-2); }

/* ---------- forms ------------------------------------------------------ */
.terra-form { display: grid; gap: 16px; }
.terra-form label.terra-lbl { font-family: var(--terra-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: #4a463f; display: block; margin-bottom: 6px; }
.terra-input, .terra-select, .terra-textarea {
  width: 100%; border: var(--terra-rule) solid var(--terra-ink); background: var(--terra-paper); color: var(--terra-ink);
  font-family: var(--terra-grotesk); font-size: 1rem; padding: 13px 14px; -webkit-appearance: none; appearance: none;
}
.terra-textarea { min-height: 120px; resize: vertical; }
.terra-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .terra-form__row { grid-template-columns: 1fr; } }
.terra-error { color: #b91c1c; font-family: var(--terra-mono); font-size: 0.82rem; min-height: 1em; }
.terra-note { font-family: var(--terra-mono); font-size: 0.8rem; background: var(--terra-paper-2); border-left: var(--terra-rule-thick) solid var(--terra-orange); padding: 12px 14px; }

/* success */
.terra-success { text-align: center; padding: 60px 0; }
.terra-success__mark { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; background: var(--terra-orange); border: var(--terra-rule) solid var(--terra-ink); font-size: 1.8rem; margin-bottom: 20px; }
.terra-success h1, .terra-success h2 { text-transform: uppercase; letter-spacing: -0.03em; }
.terra-success__card { display: inline-grid; gap: 0; text-align: left; border: var(--terra-rule) solid var(--terra-ink); box-shadow: var(--terra-shadow-sm); margin: 24px 0; }
.terra-success__card > div { display: flex; justify-content: space-between; gap: 30px; padding: 12px 18px; border-bottom: var(--terra-rule) solid var(--terra-paper-2); }
.terra-success__card > div:last-child { border-bottom: 0; }
.terra-success__card span { font-family: var(--terra-mono); font-size: 0.72rem; text-transform: uppercase; color: #4a463f; }

/* ---------- agents ----------------------------------------------------- */
.terra-agents { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 720px) { .terra-agents { grid-template-columns: 1fr; } }
.terra-agent { border: var(--terra-rule) solid var(--terra-ink); box-shadow: var(--terra-shadow); background: var(--terra-paper); display: grid; grid-template-columns: 120px 1fr; }
.terra-agent__head { border-right: var(--terra-rule) solid var(--terra-ink); padding: 24px 0; display: flex; flex-direction: column; align-items: center; gap: 16px; justify-content: flex-start; background: var(--terra-paper-2); }
.terra-agent__num { font-family: var(--terra-mono); font-weight: 700; font-size: 1.4rem; color: var(--terra-orange); }
.terra-agent__body { padding: 24px; }
.terra-agent__body h3 { font-size: 1.5rem; text-transform: uppercase; letter-spacing: -0.02em; }
.terra-agent__role { font-family: var(--terra-mono); font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--terra-orange); margin: 8px 0 12px; }
.terra-agent__bio { font-size: 0.96rem; }
.terra-agent__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 16px; }
.terra-tag { font-family: var(--terra-mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; border: var(--terra-rule) solid var(--terra-ink); padding: 5px 9px; }
.terra-agent__cta { font-family: var(--terra-mono); font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; border-bottom: var(--terra-rule) solid var(--terra-orange); padding-bottom: 3px; }
@media (max-width: 400px) { .terra-agent { grid-template-columns: 1fr; } .terra-agent__head { flex-direction: row; border-right: 0; border-bottom: var(--terra-rule) solid var(--terra-ink); padding: 16px 24px; } }

/* ---------- services --------------------------------------------------- */
.terra-svcs { display: grid; gap: 0; border: var(--terra-rule) solid var(--terra-ink); box-shadow: var(--terra-shadow); }
.terra-svc { display: grid; grid-template-columns: 96px 300px 1fr; align-items: stretch; border-bottom: var(--terra-rule) solid var(--terra-ink); }
.terra-svc:last-child { border-bottom: 0; }
.terra-svc__idx { font-family: var(--terra-mono); font-weight: 700; font-size: 1.6rem; color: var(--terra-orange); border-right: var(--terra-rule) solid var(--terra-ink); display: flex; align-items: flex-start; justify-content: center; padding: 28px 0; background: var(--terra-paper-2); }
.terra-svc__media { border-right: var(--terra-rule) solid var(--terra-ink); overflow: hidden; }
.terra-svc__media .terra-scene { width: 100%; height: 100%; min-height: 200px; }
.terra-svc__text { padding: 28px 30px; }
.terra-svc__text h2 { font-size: 1.7rem; text-transform: uppercase; letter-spacing: -0.02em; }
.terra-svc__lede { margin: 12px 0 14px; max-width: 60ch; }
.terra-svc__points { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.terra-svc__points li { font-family: var(--terra-mono); font-size: 0.8rem; padding-left: 18px; position: relative; }
.terra-svc__points li::before { content: ""; position: absolute; left: 0; top: 8px; width: 9px; height: 9px; background: var(--terra-orange); }
.terra-svc__cta { font-family: var(--terra-mono); font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; border-bottom: var(--terra-rule) solid var(--terra-ink); padding-bottom: 3px; }
@media (max-width: 860px) { .terra-svc { grid-template-columns: 70px 1fr; }
  .terra-svc__media { grid-column: 1 / -1; grid-row: 2; border-right: 0; border-top: var(--terra-rule) solid var(--terra-ink); min-height: 180px; }
  .terra-svc__media .terra-scene { min-height: 180px; }
  .terra-svc__points { grid-template-columns: 1fr; } }

/* ---------- reviews ---------------------------------------------------- */
.terra-agg { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; border: var(--terra-rule) solid var(--terra-ink); box-shadow: var(--terra-shadow-sm); padding: 22px 26px; margin-bottom: 40px; }
.terra-agg__num { font-size: 3rem; font-weight: 700; letter-spacing: -0.03em; }
.terra-agg__count { font-family: var(--terra-mono); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: #4a463f; }
.terra-stars { display: inline-flex; gap: 2px; }
.terra-star { color: var(--terra-grey); font-size: 1.2rem; }
.terra-star.on { color: var(--terra-orange); }
.terra-reviews { columns: 2 340px; column-gap: 28px; }
.terra-review { break-inside: avoid; margin: 0 0 28px; border: var(--terra-rule) solid var(--terra-ink); box-shadow: var(--terra-shadow-sm); padding: 26px; position: relative; background: var(--terra-paper); }
.terra-review__num { position: absolute; top: 18px; right: 22px; font-family: var(--terra-mono); font-weight: 700; color: var(--terra-ink); opacity: 0.14; font-size: 1.6rem; }
.terra-review blockquote { margin: 14px 0 16px; font-size: 1.05rem; }
.terra-review figcaption { font-family: var(--terra-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.terra-review figcaption span { color: #4a463f; text-transform: none; letter-spacing: 0; }
@media (max-width: 640px) { .terra-reviews { columns: 1; } }

/* ---------- FAQ -------------------------------------------------------- */
.terra-faqs { border: var(--terra-rule) solid var(--terra-ink); box-shadow: var(--terra-shadow); }
.terra-faq { border-bottom: var(--terra-rule) solid var(--terra-ink); }
.terra-faq:last-child { border-bottom: 0; }
.terra-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 20px 24px; font-weight: 700; }
.terra-faq summary::-webkit-details-marker { display: none; }
.terra-faq__num { font-family: var(--terra-mono); color: var(--terra-orange); font-size: 0.9rem; flex: none; }
.terra-faq__q { flex: 1; }
.terra-faq__mark { position: relative; width: 18px; height: 18px; flex: none; }
.terra-faq__mark::before, .terra-faq__mark::after { content: ""; position: absolute; background: var(--terra-ink); }
.terra-faq__mark::before { left: 0; top: 8px; width: 18px; height: 2px; }
.terra-faq__mark::after { left: 8px; top: 0; width: 2px; height: 18px; transition: transform .2s ease; }
.terra-faq[open] .terra-faq__mark::after { transform: scaleY(0); }
.terra-faq[open] summary { background: var(--terra-paper-2); }
.terra-faq__a { padding: 0 24px 22px 56px; }
.terra-faq__a p { margin: 0; max-width: 70ch; }

/* ---------- generic section blocks (about/contact) -------------------- */
.terra-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: var(--terra-rule) solid var(--terra-ink); box-shadow: var(--terra-shadow); }
.terra-split__a { padding: 40px; border-right: var(--terra-rule-thick) solid var(--terra-hair); }
.terra-split__b { padding: 0; overflow: hidden; }
.terra-split__b .terra-scene { width: 100%; height: 100%; min-height: 320px; }
@media (max-width: 780px) { .terra-split { grid-template-columns: 1fr; } .terra-split__a { border-right: 0; border-bottom: var(--terra-rule-thick) solid var(--terra-hair); } .terra-split__b .terra-scene { min-height: 240px; } }

.terra-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: var(--terra-rule) solid var(--terra-ink); box-shadow: var(--terra-shadow); }
.terra-value { padding: 30px 26px; border-right: var(--terra-rule) solid var(--terra-ink); }
.terra-value:last-child { border-right: 0; }
.terra-value__num { font-family: var(--terra-mono); color: var(--terra-orange); font-weight: 700; font-size: 1.2rem; }
.terra-value h3 { font-size: 1.25rem; text-transform: uppercase; margin: 10px 0 8px; letter-spacing: -0.02em; }
@media (max-width: 720px) { .terra-values { grid-template-columns: 1fr; } .terra-value { border-right: 0; border-bottom: var(--terra-rule) solid var(--terra-ink); } .terra-value:last-child { border-bottom: 0; } }

/* contact grid */
.terra-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: var(--terra-rule) solid var(--terra-ink); box-shadow: var(--terra-shadow); }
.terra-contact__form { padding: 40px; border-right: var(--terra-rule-thick) solid var(--terra-hair); }
.terra-contact__info { padding: 40px; }
@media (max-width: 820px) { .terra-contact { grid-template-columns: 1fr; } .terra-contact__form { border-right: 0; border-bottom: var(--terra-rule-thick) solid var(--terra-hair); } }
.terra-info-row { display: block; padding: 14px 0; border-bottom: var(--terra-rule) solid var(--terra-paper-2); text-decoration: none; }
.terra-info-row span { display: block; font-family: var(--terra-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: #4a463f; margin-bottom: 4px; }
.terra-info-row b { font-weight: 700; }
.terra-map { margin-top: 22px; border: var(--terra-rule) solid var(--terra-ink); overflow: hidden; }
.terra-map .terra-scene { width: 100%; aspect-ratio: 16/9; }

/* ---------- CTA band --------------------------------------------------- */
.terra-cta { background: var(--terra-ink); color: var(--terra-paper); border-top: var(--terra-rule-thick) solid var(--terra-orange); }
.terra-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding: 56px 0; }
.terra-cta h2 { font-size: clamp(1.8rem, 4vw, 3rem); text-transform: uppercase; letter-spacing: -0.03em; }
.terra-cta p { font-family: var(--terra-mono); font-size: 0.85rem; color: var(--terra-grey); margin: 10px 0 0; }

/* strip / why-us on home */
.terra-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: var(--terra-rule) solid var(--terra-ink); box-shadow: var(--terra-shadow); }
.terra-strip__cell { padding: 30px 26px; border-right: var(--terra-rule) solid var(--terra-ink); }
.terra-strip__cell:last-child { border-right: 0; }
.terra-strip__cell h3 { font-size: 1.3rem; text-transform: uppercase; margin: 12px 0 8px; letter-spacing: -0.02em; }
.terra-strip__num { font-family: var(--terra-mono); font-weight: 700; color: var(--terra-orange); }
@media (max-width: 720px) { .terra-strip { grid-template-columns: 1fr; } .terra-strip__cell { border-right: 0; border-bottom: var(--terra-rule) solid var(--terra-ink); } .terra-strip__cell:last-child { border-bottom: 0; } }

/* ---------- footer ----------------------------------------------------- */
.terra-footer { border-top: var(--terra-rule-thick) solid var(--terra-hair); background: var(--terra-paper); }
.terra-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 0; }
.terra-footer__col { padding: 44px 26px; border-right: var(--terra-rule) solid var(--terra-hair); }
.terra-footer__col:last-child { border-right: 0; }
.terra-footer__brand { font-family: var(--terra-mono); font-weight: 700; letter-spacing: 0.12em; font-size: 1rem; }
.terra-footer__col h4 { font-family: var(--terra-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: #4a463f; margin: 0 0 16px; }
.terra-footer__col a { display: block; text-decoration: none; font-family: var(--terra-mono); font-size: 0.82rem; padding: 5px 0; }
.terra-footer__col a:hover { color: var(--terra-orange); }
.terra-footer__legal { border-top: var(--terra-rule) solid var(--terra-hair); padding: 20px 0; font-family: var(--terra-mono); font-size: 0.7rem; color: #4a463f; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 820px) { .terra-footer__grid { grid-template-columns: 1fr 1fr; }
  .terra-footer__col:nth-child(2n) { border-right: 0; }
  .terra-footer__col:nth-child(-n+2) { border-bottom: var(--terra-rule) solid var(--terra-hair); } }
@media (max-width: 480px) { .terra-footer__grid { grid-template-columns: 1fr; } .terra-footer__col { border-right: 0 !important; border-bottom: var(--terra-rule) solid var(--terra-hair); } }

/* intro / page header */
.terra-pagehead { border-bottom: var(--terra-rule-thick) solid var(--terra-hair); padding: 56px 0; }
.terra-pagehead h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); text-transform: uppercase; letter-spacing: -0.04em; line-height: 0.9; }
.terra-pagehead p { font-size: 1.1rem; max-width: 60ch; margin: 18px 0 0; }
.terra-lead { font-size: 1.15rem; max-width: 62ch; }

/* ---------- static landing additions ----------------------------------- */
/* browse-by-type chips (replaces hero search) */
.terra-types { display: grid; grid-template-columns: repeat(7, 1fr); }
.terra-type { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; text-decoration: none; color: var(--terra-paper); border-right: var(--terra-rule) solid #2a2620; transition: background .15s ease, color .15s ease; }
.terra-type:last-child { border-right: 0; }
.terra-type__lbl { font-family: var(--terra-mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--terra-grey); }
.terra-type__name { font-weight: 700; text-transform: uppercase; letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 8px; }
.terra-type:hover { background: var(--terra-ink-2); color: var(--terra-orange); }
.terra-type--all { background: var(--terra-orange); color: var(--terra-ink); }
.terra-type--all .terra-type__lbl { color: var(--terra-ink); }
.terra-type--all:hover { background: var(--terra-paper); color: var(--terra-ink); }
@media (max-width: 980px) { .terra-types { grid-template-columns: repeat(4, 1fr); } .terra-type { border-bottom: var(--terra-rule) solid #2a2620; } }
@media (max-width: 560px) { .terra-types { grid-template-columns: 1fr 1fr; } .terra-type:nth-child(2n) { border-right: 0; } }

/* gallery card extras */
.terra-card__addr { font-family: var(--terra-mono); font-size: 0.74rem; color: #4a463f; margin: 6px 0 0; }
.terra-card__cta { margin-top: 14px; }

/* social icons */
.terra-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.terra-footer__col .terra-social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: var(--terra-rule) solid var(--terra-ink); background: var(--terra-paper); color: var(--terra-ink); transition: background .15s ease, box-shadow .15s ease, transform .15s ease; }
.terra-footer__col .terra-social a:hover, .terra-footer__col .terra-social a:focus-visible { background: var(--terra-orange); color: var(--terra-ink); box-shadow: 3px 3px 0 var(--terra-ink); transform: translate(-2px, -2px); }

/* subscribe band */
.terra-subscribe { border-top: var(--terra-rule-thick) solid var(--terra-hair); background: var(--terra-paper-2); }
.terra-subscribe__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 56px 0; }
.terra-subscribe__copy h2 { margin: 0; }
.terra-subscribe__copy p:last-child { font-family: var(--terra-mono); font-size: 0.85rem; color: #4a463f; margin: 14px 0 0; max-width: 52ch; }
.terra-subscribe__form { border: var(--terra-rule) solid var(--terra-ink); background: var(--terra-paper); box-shadow: var(--terra-shadow); padding: 22px; }
.terra-subscribe__form .terra-lbl { font-family: var(--terra-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: #4a463f; display: block; margin-bottom: 8px; }
.terra-subscribe__row { display: grid; grid-template-columns: 1fr auto; }
.terra-subscribe__row .terra-input { border-right: 0; }
.terra-subscribe__form .terra-error { display: block; margin-top: 6px; }
@media (max-width: 820px) { .terra-subscribe__inner { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .terra-subscribe__row { grid-template-columns: 1fr; } .terra-subscribe__row .terra-input { border-right: var(--terra-rule) solid var(--terra-ink); border-bottom: 0; } }

/* form status */
.terra-status { font-family: var(--terra-mono); font-size: 0.8rem; margin: 0; }
.terra-form .terra-status { background: var(--terra-paper-2); border-left: var(--terra-rule-thick) solid var(--terra-orange); padding: 12px 14px; }
.terra-subscribe__form .terra-status:empty { display: none; }
.terra-subscribe__form .terra-status { margin-top: 10px; }
.terra-status[data-state="pending"] { color: #4a463f; }
.terra-status[data-state="ok"] { color: #166534; border-left-color: #166534; }
.terra-status[data-state="error"] { color: #b91c1c; border-left-color: #b91c1c; }

/* privacy */
.terra-legal { display: grid; gap: 0; border: var(--terra-rule) solid var(--terra-ink); }
.terra-legal__item { padding: 28px 26px; border-bottom: var(--terra-rule) solid var(--terra-ink); }
.terra-legal__item:last-child { border-bottom: 0; }
.terra-legal__item h2 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); margin: 0 0 10px; }
.terra-legal__item p { margin: 8px 0 0; max-width: 68ch; }
.terra-legal__item a { color: var(--terra-ink); text-decoration-color: var(--terra-orange); text-decoration-thickness: 2px; }
/* Catalogue typography identity — headings and reading text. */
:root{--catalog-font-heading:'Bricolage Grotesque', 'Trebuchet MS', Arial, sans-serif;--catalog-font-body:'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;--terra-mono:var(--catalog-font-body)}
html body,input,select,textarea,button{font-family:var(--catalog-font-body)}
h1,h2,h3,h4,h5,h6,.display,.disp,.brand,.logo{font-family:var(--catalog-font-heading)}

/* aajwebz-mailto-nowrap — an address is one token, never split across lines */
a[href^="mailto:"] {
  overflow-wrap: normal;
  word-break: normal;
  white-space: nowrap;
  display: inline-block;
  max-width: 100%;
}
@media (max-width: 380px) {
  a[href^="mailto:"] { font-size: 0.88em; }
}
