/* ==========================================================================
   SA Projects — Components
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page header (non-hero pages)
   -------------------------------------------------------------------------- */

.pagehead {
  position: relative;
  /* Clears the fixed top dock, then adds compositional breathing room. */
  padding-block: clamp(9rem, 18vh, 14rem) clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}
.pagehead::before {
  /* Soft copper bloom bleeding in from the top-right. */
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(205, 184, 154, 0.35), transparent 65%);
  pointer-events: none;
}
.pagehead__inner { position: relative; }

/* Two-up page header: copy on the left, imagery on the right. Collapses to a
   single column below 900px with the image following the copy. */
.pagehead__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.pagehead__copy { min-width: 0; }
/* Copy-only page heads (no side figure): single column, measured line length. */
.pagehead__grid--solo { grid-template-columns: minmax(0, 1fr); }
.pagehead__grid--solo .pagehead__copy { max-width: 52rem; }

.phimg {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
  background: var(--bg-deep);
  box-shadow: var(--shadow-md);
}
.phimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Project cards
   -------------------------------------------------------------------------- */

.proj {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-veil);
  box-shadow: var(--shadow-sm);
  transition: transform 0.7s var(--ease-out), box-shadow 0.7s var(--ease-out);
  height: 100%;
}
.proj:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.proj:hover .proj__img img { transform: scale(1.07); }

.proj__img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-deep);
}
.proj__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}
.proj__tags {
  position: absolute;
  top: 1rem; left: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  z-index: 2;
}
.proj__tag {
  padding: 0.42em 0.85em;
  border-radius: var(--radius-pill);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--glass-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
}
.proj__tag--warm { background: var(--warm); color: var(--bg); }
.proj__tag--olive { background: var(--olive); color: var(--bg); }

.proj__body {
  padding: clamp(1.5rem, 2.5vw, 2rem);
  display: grid;
  gap: 0.9rem;
  align-content: start;
}
.proj__name {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.proj__meta {
  display: grid;
  gap: 0.4rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.proj__meta li { position: relative; padding-left: 1rem; }
.proj__meta li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.62em;
  width: 5px; height: 1px;
  background: var(--sand-deep);
}
.proj__foot { margin-top: 0.4rem; }

/* Progressive reveal — the tail of a grid, hidden until "view all" is pressed.
   `.has-more` is added by JS, so without scripting every card stays visible
   and nothing is lost to crawlers or no-JS visitors. */
.has-more .is-more { display: none; }
.has-more.is-expanded .is-more { display: grid; }

/* --------------------------------------------------------------------------
   Feature / value blocks
   -------------------------------------------------------------------------- */

.feature { display: grid; gap: 0.9rem; align-content: start; }
.feature__num {
  font-family: var(--serif);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--warm);
}
.feature h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  font-weight: 400;
}
.feature p { color: var(--ink-soft); font-size: 0.95rem; }

/* Ticked list */
.ticks { display: grid; gap: 1rem; }
.ticks li {
  position: relative;
  padding-left: 2rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.5em;
  width: 12px; height: 7px;
  border-left: 1.5px solid var(--warm);
  border-bottom: 1.5px solid var(--warm);
  transform: rotate(-45deg);
}
.section--dark .ticks li { color: rgba(244, 237, 227, 0.78); }

/* --------------------------------------------------------------------------
   Credentials strip
   -------------------------------------------------------------------------- */

.creds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 1px;
  background: rgba(31, 26, 22, 0.1);
  border-block: 1px solid rgba(31, 26, 22, 0.1);
}
.cred {
  background: var(--bg);
  padding: clamp(1.5rem, 2.5vw, 2.25rem) 1.25rem;
  display: grid;
  gap: 0.35rem;
  align-content: center;
  text-align: center;
  transition: background 0.5s var(--ease-out);
}
.cred:hover { background: var(--bg-veil); }
.cred b {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.3;
}
.cred span {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Accordion
   -------------------------------------------------------------------------- */

.acc { display: grid; }
.acc__item { border-bottom: 1px solid rgba(31, 26, 22, 0.12); }
.acc__item:first-child { border-top: 1px solid rgba(31, 26, 22, 0.12); }

.acc__trigger {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.35rem, 2.5vw, 1.9rem) 0;
  text-align: left;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.9vw, 1.5rem);
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
  transition: color 0.35s var(--ease-out);
}
.acc__trigger:hover { color: var(--warm); }

.acc__icon {
  position: relative;
  flex-shrink: 0;
  width: 22px; height: 22px;
  margin-top: 0.35em;
}
.acc__icon::before,
.acc__icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: var(--warm);
  transform: translate(-50%, -50%);
  transition: transform 0.45s var(--ease-out), opacity 0.3s var(--ease-out);
}
.acc__icon::before { width: 14px; height: 1.5px; }
.acc__icon::after  { width: 1.5px; height: 14px; }
.acc__item.is-open .acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.acc__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s var(--ease-in-out);
}
.acc__panel > div { padding-bottom: 2rem; }
.acc__panel p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  max-width: 78ch;
}
.acc__panel em { font-style: italic; }
.acc__panel strong { color: var(--ink); font-weight: 600; }

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

.form { display: grid; gap: 1.1rem; }
.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}
.field {
    display: grid;
    gap: 2px;
    padding-bottom: 15px;
}
.field > label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.95em 1.15em;
  border-radius: var(--radius);
  border: 1px solid rgba(31, 26, 22, 0.16);
  background: var(--bg-veil);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--warm);
  box-shadow: 0 0 0 3px rgba(176, 74, 37, 0.12);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-muted); opacity: 0.75; }

.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%),
    linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.75rem;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--ink-soft);
  cursor: pointer;
}
.check input {
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 0.15em;
  accent-color: var(--warm);
  cursor: pointer;
}
.check em { font-style: italic; }
.form__note {
    font-size: 0.78rem;
    color: var(--ink-muted);
    line-height: 1.6;
    padding-top: 8px;
}
.success {
    color: green;
    font-size: 15px;
}
/* Inline validation + success states, wired up in forms.js */
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #c0392b; }
.field__error {
  font-size: 0.74rem;
  color: #c0392b;
  display: none;
}
.field.has-error .field__error { display: block; }

.form__status {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  display: none;
}
.form__status.is-visible { display: block; }
.form__status--ok {
  background: rgba(94, 107, 74, 0.12);
  color: var(--olive);
  border: 1px solid rgba(94, 107, 74, 0.28);
}
.form__status--err {
  background: rgba(192, 57, 43, 0.08);
  color: #c0392b;
  border: 1px solid rgba(192, 57, 43, 0.2);
}

/* --------------------------------------------------------------------------
   Insight / article cards
   -------------------------------------------------------------------------- */

.insight {
  display: grid;
  gap: 0.9rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius-lg);
  background: var(--bg-veil);
  border: 1px solid rgba(31, 26, 22, 0.07);
  transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out);
  height: 100%;
  align-content: start;
}
.insight:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.insight__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.insight__cat { color: var(--warm); }
.insight__date { color: var(--ink-muted); }
.insight h3 { font-size: clamp(1.2rem, 1.7vw, 1.5rem); font-weight: 400; }
.insight p { font-size: 0.93rem; color: var(--ink-soft); }
.insight__by {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* --------------------------------------------------------------------------
   Charts (pure CSS bars)
   -------------------------------------------------------------------------- */

.chart {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--bg-veil);
  border: 1px solid rgba(31, 26, 22, 0.07);
}
.chart h3 { font-size: 1.35rem; font-weight: 400; margin-bottom: 0.5rem; }
.chart__note { font-size: 0.82rem; color: var(--ink-muted); margin-bottom: 2rem; }

.bars {
  display: flex;
  align-items: flex-end;
  gap: clamp(0.5rem, 1.5vw, 1.25rem);
  height: 240px;
  padding-top: 1rem;
  border-bottom: 1px solid rgba(31, 26, 22, 0.14);
}
.bar { flex: 1; display: grid; align-content: end; gap: 0.6rem; height: 100%; }
.bar__fill {
  width: 100%;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--warm-soft), var(--warm));
  height: 0;
  transition: height 1.2s var(--ease-out);
  transition-delay: var(--bar-delay, 0ms);
  position: relative;
  min-height: 2px;
}
.is-in .bar__fill { height: var(--h, 0%); }
.bar__val {
  position: absolute;
  top: -1.6rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--warm);
  white-space: nowrap;
}
.bar__label {
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center;
  line-height: 1.3;
}

/* Line chart drawn as an SVG path that strokes itself in. */
.spark { width: 100%; height: auto; overflow: visible; }
.spark__line {
  fill: none;
  stroke: var(--warm);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: var(--len, 1200);
  stroke-dashoffset: var(--len, 1200);
  transition: stroke-dashoffset 2s var(--ease-out);
}
.is-in .spark__line { stroke-dashoffset: 0; }
.spark__area { fill: url(#sparkGrad); opacity: 0; transition: opacity 1s var(--ease-out) 0.8s; }
.is-in .spark__area { opacity: 1; }
.spark__grid { stroke: rgba(31, 26, 22, 0.1); stroke-width: 1; }
.spark__tick { font-size: 11px; fill: var(--ink-muted); font-family: var(--sans); }

/* --------------------------------------------------------------------------
   Source list
   -------------------------------------------------------------------------- */

.sources { display: grid; gap: 1px; background: rgba(31, 26, 22, 0.1); }
.source {
  background: var(--bg);
  padding: 1.35rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  align-items: baseline;
}
.source b { font-weight: 600; font-size: 0.95rem; }
.source span { font-size: 0.85rem; color: var(--ink-muted); }

/* --------------------------------------------------------------------------
   Feasibility calculator
   -------------------------------------------------------------------------- */

.calc {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}
.calc__groups { display: grid; gap: 1rem; }

.cgroup {
  border-radius: var(--radius-lg);
  background: var(--bg-veil);
  border: 1px solid rgba(31, 26, 22, 0.08);
  overflow: hidden;
}
.cgroup__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  text-align: left;
  transition: background 0.3s var(--ease-out);
}
.cgroup__head:hover { background: rgba(31, 26, 22, 0.03); }
.cgroup__title { display: grid; gap: 0.2rem; }
.cgroup__title b {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
}
.cgroup__title span { font-size: 0.8rem; color: var(--ink-muted); }
.cgroup__sum {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--warm);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.cgroup__chev {
  width: 9px; height: 9px;
  border-right: 1.5px solid var(--ink-muted);
  border-bottom: 1.5px solid var(--ink-muted);
  transform: rotate(45deg);
  transition: transform 0.4s var(--ease-out);
  flex-shrink: 0;
}
.cgroup.is-open .cgroup__chev { transform: rotate(-135deg); }

.cgroup__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-in-out);
}
.cgroup.is-open .cgroup__body { max-height: 3000px; }
.cgroup__inner {
  padding: 0 1.5rem 1.5rem;
  display: grid;
  gap: 0.85rem;
}

.cline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 1rem;
  align-items: center;
}
.cline__label { display: grid; gap: 0.15rem; }
.cline__label b { font-weight: 500; font-size: 0.92rem; }
.cline__label span { font-size: 0.76rem; color: var(--ink-muted); line-height: 1.5; }

.cinput { position: relative; }
.cinput::before {
  content: '$';
  position: absolute;
  left: 0.9rem; top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
  font-size: 0.9rem;
  pointer-events: none;
}
.cinput input {
  width: 100%;
  padding: 0.7em 0.9em 0.7em 1.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(31, 26, 22, 0.16);
  background: var(--bg);
  font-family: inherit;
  font-size: 0.92rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  /* Hide spinners — these are currency fields. */
  -moz-appearance: textfield;
}
.cinput input::-webkit-outer-spin-button,
.cinput input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cinput input:focus {
  outline: none;
  border-color: var(--warm);
  box-shadow: 0 0 0 3px rgba(176, 74, 37, 0.1);
}

/* Sticky summary panel */
.summary {
  position: sticky;
  top: 7rem;                 /* clears the fixed top dock */
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  background: var(--slate);
  color: var(--bg);
  display: grid;
  gap: 1.25rem;
}
.summary h3 {
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 237, 227, 0.5);
  margin: 0;
}
.sblock { display: grid; gap: 0.5rem; }
.sblock__head {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--warm-bright);
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.srow {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.86rem;
  color: rgba(244, 237, 227, 0.75);
  font-variant-numeric: tabular-nums;
}
.srow--total {
  font-weight: 700;
  color: var(--bg);
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.sprofit {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 0.35rem;
}
.sprofit__label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 237, 227, 0.55);
  line-height: 1.5;
}
.sprofit__value {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--warm-bright);
  font-variant-numeric: tabular-nums;
}
.sprofit__value.is-negative { color: #e07a6a; }
.sprofit__margin { font-size: 0.8rem; color: rgba(244, 237, 227, 0.7); }

/* --------------------------------------------------------------------------
   Timeline
   -------------------------------------------------------------------------- */

.timeline { display: grid; gap: 0; position: relative; }
.tstep {
  position: relative;
  padding: 0 0 2.5rem 2.5rem;
  border-left: 1px solid rgba(31, 26, 22, 0.15);
}
.tstep:last-child { border-left-color: transparent; padding-bottom: 0; }
.tstep::before {
  content: '';
  position: absolute;
  left: -5px; top: 0.4em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 0 4px var(--bg);
}
.tstep__when {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 0.5rem;
}
.tstep h3 { font-size: 1.3rem; font-weight: 400; margin-bottom: 0.5rem; }
.tstep p { font-size: 0.93rem; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Location / contact block
   -------------------------------------------------------------------------- */

.locrow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: baseline;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(31, 26, 22, 0.1);
}
.locrow__key {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  min-width: 90px;
}
.locrow__val { font-size: 1rem; }
.locrow__val a:hover { color: var(--warm); }
.section--dark .locrow { border-bottom-color: rgba(255, 255, 255, 0.12); }

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    aspect-ratio: 4 / 4;
    background: var(--bg-deep);
    margin: 0;
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item--wide {
    grid-column: span 2;
    margin: 0;
    aspect-ratio: 4 / 3;
}

/* --------------------------------------------------------------------------
   Quote
   -------------------------------------------------------------------------- */

.quote {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.35;
  letter-spacing: -0.015em;
  max-width: 22ch;
  color: var(--ink);
}
.section--dark .quote { color: var(--bg); }
.quote__by {
  margin-top: 2rem;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-style: normal;
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.ctaband {
  position: relative;
  overflow: hidden;
  background: var(--slate);
  color: var(--bg);
  padding-block: clamp(5rem, 10vw, 8rem);
}
.ctaband::before {
  content: '';
  position: absolute;
  bottom: -40%; left: 50%;
  transform: translateX(-50%);
  width: 90vw; height: 70vw;
  background: radial-gradient(circle, rgba(176, 74, 37, 0.28), transparent 62%);
  pointer-events: none;
}
.ctaband__inner { position: relative; text-align: center; }
.ctaband h2 { font-size: clamp(2.25rem, 5.5vw, 4.25rem); margin-bottom: 1.5rem; }
.ctaband p {
  color: rgba(244, 237, 227, 0.75);
  font-size: 1.1rem;
  max-width: 54ch;
  margin: 0 auto 2.5rem;
  font-weight: 300;
}
.ctaband .cluster { justify-content: center; }

/* --------------------------------------------------------------------------
   Data table

   Schedules — lots, dwellings, areas. The element itself is the horizontal
   scroll container, so a wide schedule never forces the page body sideways
   on a phone. Numeric cells are tabular so columns line up down the page.
   -------------------------------------------------------------------------- */

.dtable {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid rgba(31, 26, 22, 0.1);
  background: var(--bg-veil);
}
.dtable table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}
.dtable caption {
  caption-side: bottom;
  padding: 1rem 1.15rem;
  text-align: left;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--ink-muted);
}
.dtable th,
.dtable td {
  padding: 0.9rem 1.15rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(31, 26, 22, 0.09);
}
.dtable thead th {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--sand);
  color: var(--ink);
  border-bottom-color: rgba(31, 26, 22, 0.16);
}
.dtable tbody th {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  white-space: nowrap;
  color: var(--ink);
}
.dtable td { color: var(--ink-soft); }
.dtable tbody tr:last-child th,
.dtable tbody tr:last-child td { border-bottom: 0; }
.dtable tbody tr { transition: background 0.35s var(--ease-out); }
.dtable tbody tr:hover { background: rgba(205, 184, 154, 0.16); }

.dtable tfoot th,
.dtable tfoot td {
  border-top: 1px solid rgba(31, 26, 22, 0.16);
  border-bottom: 0;
  font-weight: 700;
  color: var(--ink);
}

/* On dark sections the table inverts but keeps the sand header band. */
.section--dark .dtable {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.14);
}
.section--dark .dtable th,
.section--dark .dtable td { border-bottom-color: rgba(255, 255, 255, 0.1); }
.section--dark .dtable tbody th { color: var(--bg); }
.section--dark .dtable td { color: rgba(244, 237, 227, 0.75); }
.section--dark .dtable caption { color: rgba(244, 237, 227, 0.5); }
.section--dark .dtable tbody tr:hover { background: rgba(255, 255, 255, 0.05); }

@media (max-width: 1000px) {
    /* Wider crop when stacked — a tall portrait pushes the page too far down. */
  .phimg { aspect-ratio: 16 / 10; }
  .pagehead__grid { grid-template-columns: minmax(0, 1fr); } .summary { position: static; } .calc { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) { .split, .split--even { grid-template-columns: minmax(0, 1fr); }
  .split--flip > :first-child { order: 0; } .cline { grid-template-columns: minmax(0, 1fr); } .gallery__item--wide { grid-column: span 1; } .form__row { grid-template-columns: minmax(0, 1fr); } 
  header .dock__brand img, footer .dock__brand img {
    max-width: 60px;
}
.hero__corner{display: none;}
.ctaband::before {
    width: 100%;
    height: 100%;
}
.bar__label {
    font-size: 7px;
}
#main > section:last-child.section--dark {
    background: #2a2a30fa;
}
.dock {
    transform: translateX(-52%);
}
.shell.hero__inner {
    padding-bottom: 70px;
}
.hero__cue {
    display: none;
}
.section .parallax-frame {
    aspect-ratio: 16/9 !important;
}
}