/* ============================================================
   Tilden Development Limited — tildenng.com
   Standalone stylesheet (no framework).
   Palette : ink #16163A · navy #292866 · gray #BCBEC0 · mist #F3F4F6
   Type    : Marcellus (display) · Archivo (body)
   Signature: the "elevation" — a building facade drawn in CSS,
   and hairline survey lines behind every hero.
   ============================================================ */

:root {
  --ink:        #16163A;
  --ink-60:     rgba(22,22,58,.62);
  --ink-45:     rgba(22,22,58,.45);
  --green:      #292866;
  --green-mid:  #3B3A8F;
  --green-deep: #1C1B4E;
  --brass:      #6E7178;
  --brass-lt:   #BCBEC0;
  --stone:      #F3F4F6;
  --line:       #E3E4EA;
  --paper:      #FFFFFF;
  --radius:     14px;
  --wrap:       1120px;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }
@media (min-width: 640px) { .wrap { padding-inline: 34px; } }

:where(a, button, input, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 90;
  background: var(--green); color: #fff; padding: .6rem 1rem;
  border-radius: 0 0 8px 0; font-size: .85rem;
}
.skip-link:focus { left: 0; }

/* ---- Typography ---- */
.eyebrow {
  font-size: .74rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--brass);
}
.eyebrow--brass { color: var(--brass-lt); }

.display {
  font-family: 'Marcellus', serif; font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 4.1rem);
  line-height: 1.06; letter-spacing: .005em;
  margin-top: 1rem; color: var(--ink);
}
.display--sm { font-size: clamp(2.1rem, 4.6vw, 3.1rem); }

.title {
  font-family: 'Marcellus', serif; font-weight: 400;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.15; margin-top: .8rem; color: var(--ink);
}
.title--onDark { color: #fff; }

.lead {
  margin-top: 1.15rem; max-width: 34em;
  font-size: 1.08rem; line-height: 1.65; color: var(--ink-60);
}
.sec-sub { margin-top: .9rem; max-width: 38em; color: var(--ink-60); }
.body-p { margin-top: 1rem; color: var(--ink-60); max-width: 36em; }
.onDark-sub { margin-top: .9rem; max-width: 36em; color: rgba(255,255,255,.72); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .78rem 1.45rem; border-radius: 10px;
  font-weight: 600; font-size: .93rem; line-height: 1;
  transition: transform .18s ease, background-color .18s ease,
              border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn--sm { padding: .6rem 1.1rem; font-size: .88rem; }
.btn--solid { background: var(--green); color: #fff; box-shadow: 0 1px 2px rgba(28,27,78,.25); }
.btn--solid:hover { background: var(--green-deep); transform: translateY(-1px); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); background: var(--paper); }
.btn--ghost:hover { border-color: var(--green); color: var(--green); }
.btn--onDark { background: var(--brass-lt); color: var(--green-deep); }
.btn--onDark:hover { background: #d0d2d6; transform: translateY(-1px); }

/* ---- Header ---- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; }
.logo-mark { display: inline-flex; }
.logo-text { display: inline-flex; flex-direction: column; line-height: 1; }
.logo-name {
  font-family: 'Marcellus', serif; font-size: 1.06rem;
  letter-spacing: .18em; color: var(--green);
}
.logo-sub {
  margin-top: 3px; font-size: .52rem; font-weight: 600;
  letter-spacing: .3em; color: var(--ink-45);
}
.nav { display: none; align-items: center; gap: 2rem; }
@media (min-width: 880px) { .nav { display: flex; } }
.nav-link { position: relative; font-size: .93rem; font-weight: 500; color: var(--ink-60); transition: color .18s ease; }
.nav-link:hover { color: var(--green); }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px;
  background: var(--brass); transform: scaleX(0); transform-origin: left;
  transition: transform .22s ease;
}
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--green); }

.menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px; color: var(--green);
}
.menu-btn:hover { background: var(--stone); }
@media (min-width: 880px) { .menu-btn { display: none; } }

.mobile-nav { display: none; border-top: 1px solid var(--line); background: #fff; padding: .5rem 22px 1.1rem; }
.mobile-nav.is-open { display: block; }
.mobile-nav a:not(.btn) {
  display: block; padding: .75rem .6rem; border-radius: 8px;
  font-weight: 500; color: var(--ink-60);
}
.mobile-nav a:not(.btn):hover { background: var(--stone); color: var(--green); }
.mobile-cta { width: 100%; justify-content: center; margin-top: .6rem; }

/* ---- Survey-line background (hero signature) ---- */
.hero, .page-hero { position: relative; overflow: hidden; }
.survey-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: radial-gradient(130% 95% at 72% 0%, #000 30%, transparent 74%);
          mask-image: radial-gradient(130% 95% at 72% 0%, #000 30%, transparent 74%);
  opacity: .55;
}

/* ---- Home hero ---- */
.hero { background: linear-gradient(180deg, var(--stone) 0%, var(--paper) 100%); }
.hero-grid {
  position: relative; z-index: 1;
  display: grid; gap: 3rem; align-items: center;
  padding-block: 4.2rem 4.6rem;
}
@media (min-width: 880px) {
  .hero-grid { grid-template-columns: 7fr 5fr; padding-block: 5.5rem 6rem; }
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.9rem; }

/* The elevation — Tilden's signature figure */
.hero-figure { display: grid; justify-items: center; }
.elevation {
  width: min(300px, 78%);
  filter: drop-shadow(0 24px 40px rgba(28,27,78,.22));
}
.ele-roof {
  height: 14px; width: 86%; margin-inline: auto;
  background: var(--brass); border-radius: 4px 4px 0 0;
}
.ele-body {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px;
  background: var(--green); padding: 16px; border-radius: 2px;
}
.win {
  aspect-ratio: 3 / 4; border-radius: 2px;
  background: linear-gradient(160deg, var(--green-mid), #32316f 65%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07);
}
.win--lit { background: linear-gradient(160deg, var(--brass-lt), var(--brass)); }
.ele-podium {
  height: 42px; background: var(--green-deep);
  border-radius: 0 0 4px 4px; display: grid; place-items: end center;
}
.ele-door { width: 26%; height: 30px; background: var(--brass); border-radius: 3px 3px 0 0; }
.ele-caption {
  margin-top: 1.3rem; font-size: .74rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink-45);
  text-align: center;
}

/* ---- Page hero (inner pages) ---- */
.page-hero { background: linear-gradient(180deg, var(--stone) 0%, var(--paper) 100%); }
.page-hero .wrap { position: relative; z-index: 1; padding-block: 4rem 3.4rem; }
@media (min-width: 880px) { .page-hero .wrap { padding-block: 5rem 4.2rem; } }

/* ---- Stat strip ---- */
.stat-strip { border-block: 1px solid var(--line); background: var(--paper); }
.stat-row {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem 2rem;
  padding-block: 1.9rem;
}
@media (min-width: 880px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat strong {
  display: block; font-family: 'Marcellus', serif; font-weight: 400;
  font-size: 2.1rem; line-height: 1; color: var(--green);
}
.stat span { display: block; margin-top: .45rem; font-size: .85rem; color: var(--ink-60); max-width: 15em; }

/* ---- Sections ---- */
.section { padding-block: 4.6rem; }
@media (min-width: 880px) { .section { padding-block: 5.6rem; } }
.section--stone { background: var(--stone); }
.section--dark { background: var(--green-deep); }
.sec-head { max-width: 42em; }
.sec-head--split {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 1.2rem; max-width: none;
}

/* ---- Cards ---- */
.card-grid { display: grid; gap: 1.1rem; margin-top: 2.4rem; }
.card-grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card-grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.7rem 1.6rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--brass); box-shadow: 0 14px 30px rgba(22,22,58,.08); }
.card-rule { display: block; width: 34px; height: 3px; background: var(--brass); border-radius: 2px; }
.card h3 { font-family: 'Marcellus', serif; font-weight: 400; font-size: 1.2rem; margin-top: .95rem; }
.card p { margin-top: .55rem; font-size: .93rem; color: var(--ink-60); }

/* ---- Development cards ---- */
.dev-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.7rem 1.6rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.dev-card:hover { transform: translateY(-3px); border-color: var(--brass); box-shadow: 0 14px 30px rgba(22,22,58,.08); }
.dev-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.chip {
  display: inline-flex; padding: .28rem .7rem; border-radius: 999px;
  background: var(--green); color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.dev-loc { font-size: .8rem; color: var(--ink-45); }
.dev-card h3 { font-family: 'Marcellus', serif; font-weight: 400; font-size: 1.3rem; margin-top: .9rem; }
.dev-card p { margin-top: .55rem; font-size: .93rem; color: var(--ink-60); }

/* ---- Developments page ---- */
.filter-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.filter-chip {
  padding: .5rem 1.05rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper);
  font-size: .85rem; font-weight: 600; color: var(--ink-60);
  transition: all .18s ease;
}
.filter-chip:hover { border-color: var(--green); color: var(--green); }
.filter-chip.is-active { background: var(--green); border-color: var(--green); color: #fff; }

.dev-stack { display: grid; gap: 1.3rem; }
.dev-detail {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2rem 1.8rem;
}
.dev-detail-head h2 { font-family: 'Marcellus', serif; font-weight: 400; font-size: 1.65rem; margin-top: .9rem; }
.dev-facts { display: grid; gap: 1.3rem; margin-top: 1.4rem; }
@media (min-width: 760px) { .dev-facts { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.dev-facts dt {
  font-size: .7rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--brass);
}
.dev-facts dd { margin-top: .45rem; font-size: .93rem; color: var(--ink-60); }

/* ---- Steps (real sequence: land → design → build → sell → manage) ---- */
.steps { counter-reset: step; display: grid; gap: 1rem; margin-top: 2.4rem; }
@media (min-width: 880px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.step {
  counter-increment: step; position: relative;
  background: var(--stone); border-radius: var(--radius);
  padding: 1.5rem 1.3rem 1.4rem;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: 'Marcellus', serif; font-size: 1.7rem; color: var(--brass);
  display: block; line-height: 1;
}
.step h3 { font-size: 1rem; font-weight: 600; margin-top: .8rem; }
.step p { margin-top: .45rem; font-size: .87rem; color: var(--ink-60); }

/* ---- Group band / dark sections ---- */
.group-band {
  display: grid; gap: 2rem; align-items: center;
}
@media (min-width: 880px) { .group-band { grid-template-columns: 1fr auto; } }

/* ---- CTA band ---- */
.band-wrap { padding-block: 0 4.6rem; }
.band {
  position: relative; overflow: hidden;
  background: var(--green); border-radius: 20px;
}
.band-grid {
  position: absolute; inset: 0; opacity: .12;
  background-image:
    linear-gradient(to right, #fff 1px, transparent 1px),
    linear-gradient(to bottom, #fff 1px, transparent 1px);
  background-size: 84px 84px;
}
.band-inner {
  position: relative; display: grid; gap: 1.6rem; align-items: center;
  padding: 2.8rem 2rem;
}
@media (min-width: 880px) { .band-inner { grid-template-columns: 1fr auto; padding: 3.2rem 3rem; } }
.band-title { font-family: 'Marcellus', serif; font-weight: 400; font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: #fff; }
.band-sub { margin-top: .6rem; color: rgba(255,255,255,.72); max-width: 34em; }

/* ---- Services list ---- */
.svc-list { display: grid; gap: 1.2rem; }
.svc {
  display: grid; gap: 1.2rem;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2rem 1.8rem;
}
@media (min-width: 760px) { .svc { grid-template-columns: 84px 1fr; gap: 2rem; } }
.svc-num {
  font-family: 'Marcellus', serif; font-size: 2.2rem; line-height: 1;
  color: var(--brass);
}
.svc-body h2 { font-family: 'Marcellus', serif; font-weight: 400; font-size: 1.5rem; }
.svc-summary { margin-top: .7rem; color: var(--ink-60); max-width: 46em; }
.svc-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.svc-chips li {
  padding: .34rem .75rem; border-radius: 999px;
  background: var(--stone); border: 1px solid var(--line);
  font-size: .78rem; font-weight: 500; color: var(--ink-60);
}

/* ---- About ---- */
.story-grid { display: grid; gap: 3rem; }
@media (min-width: 880px) { .story-grid { grid-template-columns: 7fr 5fr; } }
.story-aside { display: grid; gap: 1.1rem; align-content: start; }
.aside-card {
  background: var(--stone); border-radius: var(--radius); padding: 1.6rem 1.5rem;
}
.aside-card h3 { font-family: 'Marcellus', serif; font-weight: 400; font-size: 1.15rem; color: var(--green); }
.aside-card p { margin-top: .5rem; font-size: .93rem; color: var(--ink-60); }
.aside-card--dark { background: var(--green-deep); }
.aside-card--dark h3 { color: var(--brass-lt); }
.aside-card--dark p { color: rgba(255,255,255,.75); }
.aside-list { margin-top: .6rem; display: grid; gap: .4rem; }
.aside-list a { color: var(--green); font-weight: 600; }
.aside-list a:hover { text-decoration: underline; }
.aside-hours { margin-top: .6rem !important; font-size: .82rem !important; color: var(--ink-45) !important; }

/* ---- Contact ---- */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 880px) { .contact-grid { grid-template-columns: 7fr 5fr; } }
.contact-aside { display: grid; gap: 1.1rem; align-content: start; }

.form { display: grid; gap: 1.2rem; }
.form-row { display: grid; gap: 1.2rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field-label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: .4rem; }
.field-label span[aria-hidden] { color: var(--brass); }
.field-opt { font-weight: 400; color: var(--ink-45); }
.field {
  width: 100%; padding: .78rem .95rem;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper); color: var(--ink); font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(41,40,102,.12); }
.field--error { border-color: #C33; }
.field-error { margin-top: .35rem; font-size: .8rem; color: #B02A2A; }
textarea.field { resize: vertical; min-height: 140px; }
.form-note { font-size: .8rem; color: var(--ink-45); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { border-radius: var(--radius); padding: 1.3rem 1.4rem; margin-bottom: 1.4rem; }
.alert--ok { background: #EAF4ED; border: 1px solid #BFDCC8; }
.alert--ok h2 { font-family: 'Marcellus', serif; font-weight: 400; font-size: 1.2rem; color: #1E5B34; }
.alert--ok p { margin-top: .4rem; font-size: .92rem; color: #2C5A3C; }
.alert--ok a { font-weight: 600; text-decoration: underline; }
.alert--err { background: #FBEFEF; border: 1px solid #E7C4C4; color: #8E2323; font-size: .92rem; }

/* ---- Footer ---- */
.site-foot { border-top: 1px solid var(--line); background: var(--paper); }
.foot-grid {
  display: grid; gap: 2.4rem; padding-block: 3.4rem 2.4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; } }
.foot-brand .brand { margin-bottom: 1rem; }
.foot-blurb { margin-top: 1rem; font-size: .9rem; color: var(--ink-60); max-width: 26em; }
.foot-h {
  font-size: .72rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-45); margin-bottom: .9rem;
}
.foot-list { display: grid; gap: .55rem; }
.foot-link { font-size: .92rem; color: var(--ink-60); transition: color .15s ease; }
.foot-link:hover { color: var(--green); }
.foot-note { font-size: .85rem; color: var(--ink-45); }
.foot-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem;
  border-top: 1px solid var(--line);
  padding-block: 1.2rem 1.4rem; font-size: .8rem; color: var(--ink-45);
}
.credit span { color: var(--brass); font-weight: 700; letter-spacing: .04em; }

/* ---- Reveal on scroll ---- */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .card, .dev-card, .nav-link::after { transition: none; }
}
