/* ============================================================
   SOLID GROUND PROPERTY SERVICES
   Charcoal / white / burnt orange. Receipt-listing spine,
   section colour takeover, drag-to-scroll work band.
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --charcoal: #17181a;
  --charcoal-2: #1f2124;
  --charcoal-3: #2a2d31;
  --white: #ffffff;
  --paper: #f5f3ef;
  --orange: #c2410c;
  --orange-bright: #e8590c;
  --orange-soft: #fdece2;
  /* orange that stays legible on charcoal / dark surfaces */
  --orange-on-dark: #ff8a3d;
  --ink: #17181a;
  --ink-soft: #5b6067;
  --line: rgba(23, 24, 26, 0.16);
  --line-strong: rgba(23, 24, 26, 0.34);

  --bg: var(--paper);
  --fg: var(--ink);
  --fg-soft: var(--ink-soft);
  --rule: var(--line);

  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --display: "Bricolage Grotesque", "Archivo", system-ui, sans-serif;
  --body: "Archivo", system-ui, -apple-system, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --maxw: 1180px;
  --measure: 46ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101113;
    --fg: #f2f0ec;
    --fg-soft: #a2a6ac;
    --rule: rgba(242, 240, 236, 0.18);
    --line: rgba(242, 240, 236, 0.18);
    --line-strong: rgba(242, 240, 236, 0.36);
    --paper: #101113;
    --orange-soft: #2a1a12;
  }
}

html[data-theme="dark"] {
  --bg: #101113;
  --fg: #f2f0ec;
  --fg-soft: #a2a6ac;
  --rule: rgba(242, 240, 236, 0.18);
  --line: rgba(242, 240, 236, 0.18);
  --line-strong: rgba(242, 240, 236, 0.36);
  --paper: #101113;
  --orange-soft: #2a1a12;
}

html[data-theme="light"] {
  --bg: var(--paper);
  --fg: var(--ink);
  --fg-soft: var(--ink-soft);
  --rule: var(--line);
  --line: rgba(23, 24, 26, 0.16);
  --line-strong: rgba(23, 24, 26, 0.34);
  --paper: #f5f3ef;
  --orange-soft: #fdece2;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.62;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
  /* patterned SVG tile — dot matrix */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22'><circle cx='1.5' cy='1.5' r='1' fill='%2317181a' fill-opacity='0.09'/></svg>");
  background-size: 22px 22px;
}

@media (prefers-color-scheme: dark) {
  body {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22'><circle cx='1.5' cy='1.5' r='1' fill='%23f2f0ec' fill-opacity='0.07'/></svg>");
  }
}
html[data-theme="dark"] body {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22'><circle cx='1.5' cy='1.5' r='1' fill='%23f2f0ec' fill-opacity='0.07'/></svg>");
}
html[data-theme="light"] body {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22'><circle cx='1.5' cy='1.5' r='1' fill='%2317181a' fill-opacity='0.09'/></svg>");
}

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

a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--orange-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

/* ---------- layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(3.5rem, 8vw, 7rem); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

/* receipt-style narrow column */
.receipt {
  max-width: var(--measure);
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 1.75;
}
.receipt--wide { max-width: 62ch; }

.rule {
  border: 0;
  border-top: 1px dotted var(--rule);
  margin: 0;
}

/* right-aligned metadata rows */
.row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: 0.55rem;
  border-bottom: 1px dotted var(--rule);
}
.row__label { color: var(--fg-soft); }
.row__meta { text-align: right; white-space: nowrap; }

/* ---------- section colour takeover ---------- */
.takeover {
  background-color: var(--take-bg);
  color: var(--take-fg);
  background-image: none;
}
.takeover--charcoal { --take-bg: var(--charcoal); --take-fg: #f4f2ee; }
.takeover--orange   { --take-bg: var(--orange);   --take-fg: #ffffff; }
.takeover--white    { --take-bg: var(--white);    --take-fg: var(--charcoal); }
.takeover--paper    { --take-bg: var(--paper);    --take-fg: var(--charcoal); }

.takeover .rule,
.takeover .row { border-color: color-mix(in srgb, currentColor 28%, transparent); }
.takeover .row__label { color: color-mix(in srgb, currentColor 72%, transparent); }
.takeover a:focus-visible { outline-color: currentColor; }

/* on dark takeovers the burnt orange is too dark to read — lift it */
.takeover--charcoal .eyebrow,
.takeover--charcoal .card__num,
.takeover--charcoal .step::before,
.takeover--charcoal .tile__meta,
.takeover--charcoal .form-status[data-state="ok"] { color: var(--orange-on-dark); }
.takeover--charcoal .lede,
.takeover--charcoal .row__label { color: #cfcbc5; }
.takeover--charcoal .row__meta { color: #f4f2ee; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  padding-block: 0.6rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.02rem;
  line-height: 1.1;
}
.brand__mark {
  width: 30px; height: 30px;
  flex: 0 0 30px;
  background: var(--orange);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand__text small {
  display: block;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-soft);
  margin-top: 0.15rem;
}

.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a {
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.7rem 0.7rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--orange); }
.nav a[aria-current="page"] { border-bottom-color: var(--orange); color: var(--orange); }

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .nav a[aria-current="page"] { color: var(--orange-on-dark); }
}
html[data-theme="dark"] .nav a[aria-current="page"] { color: var(--orange-on-dark); }

.header-tools { display: flex; align-items: center; gap: 0.5rem; }

.theme-toggle {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--fg);
  cursor: pointer;
  padding: 0;
}
.theme-toggle:hover { border-color: var(--orange); color: var(--orange); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  html:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--fg);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

@media (max-width: 860px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1rem;
    display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { border-bottom: 1px dotted var(--line); padding: 0.9rem 0; }
  .nav a:last-child { border-bottom: 0; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.85rem 1.4rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--charcoal);
  background: var(--charcoal);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { background: var(--orange); border-color: var(--orange); }
.btn--orange { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn--orange:hover { background: var(--orange-bright); border-color: var(--orange-bright); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn--onDark { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
.btn--onDark:hover { background: #fff; border-color: #fff; color: var(--charcoal); }
.btn--onOrange { background: #fff; border-color: #fff; color: var(--orange); }
.btn--onOrange:hover { background: var(--charcoal); border-color: var(--charcoal); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- stacked headline ---------- */
.stack-h1 {
  font-size: clamp(2.6rem, 9vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.stack-h1 span { display: block; }
.stack-h1 span:nth-child(2) { margin-left: 0.14em; }
.stack-h1 span:nth-child(3) { margin-left: -0.04em; color: var(--orange); }
.stack-h1 span:nth-child(4) { margin-left: 0.3em; }

.h2 {
  font-size: clamp(1.9rem, 4.6vw, 3.2rem);
  text-transform: uppercase;
  letter-spacing: -0.03em;
}
.h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.55;
  max-width: 54ch;
  color: var(--fg-soft);
}
.takeover .lede { color: color-mix(in srgb, currentColor 82%, transparent); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 1.1rem;
}
.takeover--orange .eyebrow { color: rgba(255,255,255,0.85); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem); }
.hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; }
}
.hero__media {
  position: relative;
  border: 1px solid var(--line-strong);
  background: var(--charcoal);
}
.hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero__caption {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e6e3de;
  background: var(--charcoal-2);
  padding: 0.6rem 0.75rem;
  border-top: 1px dotted rgba(230, 227, 222, 0.3);
  margin: 0;
}

/* ---------- ticker strip ---------- */
.strip {
  background: var(--charcoal);
  color: #f4f2ee;
  border-block: 1px solid var(--charcoal);
  overflow: hidden;
}
.strip__inner {
  display: flex;
  gap: 2.5rem;
  padding-block: 0.85rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: slide 34s linear infinite;
  width: max-content;
}
.strip__inner span { display: inline-flex; align-items: center; gap: 2.5rem; }
.strip__inner span::after { content: "◆"; color: var(--orange-bright); font-size: 0.6rem; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- service cards ---------- */
.cards {
  display: grid;
  gap: 1px;
  grid-template-columns: 1fr;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--bg);
  padding: clamp(1.4rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.card__num {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--orange);
}
.card h3 { font-size: 1.22rem; text-transform: uppercase; letter-spacing: -0.01em; }
.card p { font-size: 0.94rem; color: var(--fg-soft); }
.card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.9;
  border-top: 1px dotted var(--line);
  padding-top: 0.75rem;
  margin-top: auto;
}
.card ul li::before { content: "— "; color: var(--orange); }

/* ---------- drag band ---------- */
.band-wrap { position: relative; }
.band {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  padding: 0.25rem var(--gutter) 1.25rem;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.band[data-dragging="true"] { cursor: grabbing; scroll-snap-type: none; }
.band[data-dragging="true"] * { user-select: none; pointer-events: none; }
.band::-webkit-scrollbar { height: 6px; }
.band::-webkit-scrollbar-thumb { background: var(--line-strong); }

.tile {
  flex: 0 0 auto;
  width: min(78vw, 380px);
  scroll-snap-align: start;
  border: 1px solid var(--line);
  background: var(--bg);
}
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tile__body { padding: 0.9rem 1rem 1.1rem; }
.tile__body h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 0.35rem;
}
.tile__body p {
  font-family: var(--mono);
  font-size: 0.74rem;
  line-height: 1.7;
  color: var(--fg-soft);
  margin: 0;
}
.tile__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  border-top: 1px dotted var(--line);
  margin-top: 0.7rem;
  padding-top: 0.6rem;
}
.band-hint {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-soft);
  padding-inline: var(--gutter);
  margin-top: 0.25rem;
}

/* ---------- process ---------- */
.steps { counter-reset: step; display: grid; gap: 0; border-top: 1px solid var(--line); }
.step {
  counter-increment: step;
  display: grid;
  gap: 0.4rem 1.5rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .step { grid-template-columns: 4.5rem 1fr 1.4fr; align-items: baseline; }
}
.step::before {
  content: "0" counter(step);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--orange);
}
.step h3 { font-size: 1.1rem; text-transform: uppercase; }
.step p { font-size: 0.94rem; color: var(--fg-soft); margin: 0; }

/* ---------- two-col ---------- */
.split {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .split--wide { grid-template-columns: 1.3fr 0.7fr; } }

/* ---------- quote / testimonial ---------- */
.quote {
  font-family: var(--display);
  font-size: clamp(1.3rem, 3vw, 2.1rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0;
}
.quote__by {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 1.25rem;
  color: color-mix(in srgb, currentColor 70%, transparent);
}

/* ---------- forms ---------- */
.form { display: grid; gap: 1.1rem; max-width: 34rem; }
.field { display: grid; gap: 0.4rem; }
.field label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.field input, .field select, .field textarea {
  font-family: var(--body);
  font-size: 1rem;
  padding: 0.8rem 0.85rem;
  min-height: 48px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  width: 100%;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-soft); opacity: 0.75; }
.form-status {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  margin: 0;
}
.form-status[data-state="ok"] { color: var(--orange); }
.form-status[data-state="err"] { color: #b3261e; }
.takeover .form-status[data-state="err"] { color: #ffd9d4; }
.takeover .form-status[data-state="ok"] { color: #fff; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: #e9e6e1;
  padding-block: clamp(2.5rem, 5vw, 4rem) 5rem;
  background-image: none;
}
.site-footer a { color: #e9e6e1; text-decoration-color: rgba(233,230,225,0.4); }
.site-footer a:hover { color: var(--orange-bright); }
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-grid h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a8a49e;
  margin-bottom: 0.9rem;
  font-weight: 400;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; font-size: 0.92rem; line-height: 2; }
.footer-grid p { font-size: 0.92rem; color: #c9c5bf; }
.footer-legal {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px dotted rgba(233,230,225,0.25);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: #a8a49e;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

/* ---------- placeholder fill-ins ---------- */
.fill {
  border-bottom: 1px dotted currentColor;
  background: color-mix(in srgb, var(--orange) 12%, transparent);
  padding: 0 0.15em;
  font-style: normal;
}

/* ---------- attribution (free tier, required) ---------- */
.attribution {
  position: fixed;
  bottom: 0.5rem;
  right: 0.75rem;
  z-index: 60;
  font-size: 0.7rem;
  font-family: var(--mono);
  opacity: 1;
  background: var(--charcoal);
  color: #e9e6e1;
  padding: 0.3rem 0.6rem;
  border: 1px solid rgba(233,230,225,0.3);
}
.attribution a { color: #e9e6e1; text-decoration: none; }
.attribution a:hover { color: var(--orange-bright); }

/* ---------- scroll-driven reveal ---------- */
@keyframes riseIn {
  from { opacity: 0; translate: 0 22px; }
  to   { opacity: 1; translate: 0 0; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: riseIn linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 38%;
    }
    .reveal:nth-child(2) { animation-range: entry 4% cover 42%; }
    .reveal:nth-child(3) { animation-range: entry 8% cover 46%; }
    .reveal:nth-child(4) { animation-range: entry 12% cover 50%; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .strip__inner { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- page header (interior pages) ---------- */
.page-head {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}
.page-head .stack-h1 { font-size: clamp(2.2rem, 7vw, 4.6rem); }

/* ---------- utility ---------- */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.75rem; }
.mt-4 { margin-top: 2.5rem; }
.mb-3 { margin-bottom: 1.75rem; }
.muted { color: var(--fg-soft); }
.mono { font-family: var(--mono); }
