/* ============================================================
   Carmichael & Roe — CPA Firm Site
   Design tokens + styling
   ============================================================ */

:root {
  /* Ground & surfaces (cool near-black) */
  --bg:      #0d0f13;
  --bg-2:    #13161c;
  --bg-3:    #191d25;
  --bg-4:    #20242d;

  /* Hairlines */
  --line:        rgba(236, 233, 227, 0.10);
  --line-strong: rgba(236, 233, 227, 0.20);

  /* Type colors (warm off-white) */
  --ink:       #ece9e3;
  --ink-soft:  #a8a69e;
  --ink-faint: #74726b;

  /* Accent — set by Tweaks; default refined gold */
  --accent:      oklch(0.79 0.105 78);
  --accent-deep: oklch(0.62 0.105 78);
  --accent-soft: oklch(0.79 0.105 78 / 0.13);

  /* Fonts — headline set by Tweaks */
  --serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --sans:  'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, monospace;

  --nav-bg: rgba(13, 15, 19, 0.82);
  --card-shadow: 0 40px 80px -50px rgba(0,0,0,0.9);

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
}

/* ---- Color tones (set by Tweaks) ---- */
body[data-theme="stone"] {
  --bg:   #f4f1ea;
  --bg-2: #ebe5d9;
  --bg-3: #ffffff;
  --bg-4: #e1dbcd;
  --line:        rgba(34, 32, 26, 0.12);
  --line-strong: rgba(34, 32, 26, 0.22);
  --ink:       #211f1a;
  --ink-soft:  #5e5a51;
  --ink-faint: #918c80;
  --nav-bg: rgba(244, 241, 234, 0.86);
  --card-shadow: 0 30px 60px -46px rgba(60, 50, 25, 0.40);
}
body[data-theme="mist"] {
  --bg:   #f1f3f6;
  --bg-2: #e5eaf0;
  --bg-3: #ffffff;
  --bg-4: #dce1e9;
  --line:        rgba(20, 26, 36, 0.12);
  --line-strong: rgba(20, 26, 36, 0.22);
  --ink:       #1b1f26;
  --ink-soft:  #58606e;
  --ink-faint: #8b93a1;
  --nav-bg: rgba(241, 243, 246, 0.86);
  --card-shadow: 0 30px 60px -46px rgba(25, 35, 55, 0.40);
}
body[data-theme="sage"] {
  --bg:   #eef0e8;
  --bg-2: #e2e6d8;
  --bg-3: #fbfcf8;
  --bg-4: #d6dbc8;
  --line:        rgba(30, 36, 24, 0.13);
  --line-strong: rgba(30, 36, 24, 0.23);
  --ink:       #1f231b;
  --ink-soft:  #59604f;
  --ink-faint: #8a917d;
  --nav-bg: rgba(238, 240, 232, 0.86);
  --card-shadow: 0 30px 60px -46px rgba(40, 50, 25, 0.36);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body[data-headline="baskerville"] { --serif: 'Libre Baskerville', Georgia, serif; }
body[data-headline="cormorant"]   { --serif: 'Cormorant Garamond', Georgia, serif; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---- Shared layout primitives ---- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(72px, 11vw, 140px); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}
.eyebrow.center::before { display: none; }

.section-head { max-width: 760px; }
.section-head h2 {
  font-size: clamp(30px, 4.2vw, 52px);
  margin-top: 22px;
}
.section-head p {
  color: var(--ink-soft);
  font-size: 18px;
  margin-top: 20px;
  max-width: 620px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .15s;
  white-space: nowrap;
}
.btn--gold {
  background: var(--accent);
  color: #1a1206;
}
.btn--gold:hover { background: var(--accent-deep); color: #140e04; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(4px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand__mark {
  width: 38px; height: 38px;
  border: 1px solid var(--accent);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 17px;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.brand__name {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.04em;
  line-height: 1;
}
.brand__sub {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 4px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__links a {
  font-size: 14.5px;
  color: var(--ink-soft);
  transition: color .2s;
  position: relative;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--accent); transition: width .25s;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { display: flex; align-items: center; gap: 20px; }
.nav__phone { font-family: var(--mono); font-size: 13px; color: var(--ink-soft); }
.nav__burger { display: none; }

@media (max-width: 940px) {
  .nav__links, .nav__phone { display: none; }
}

/* ============================================================
   HERO  (3 variants toggled by body[data-hero])
   ============================================================ */
.hero { position: relative; overflow: hidden; }
.hero__variant { display: none; }
body[data-hero="a"] .hero--a,
body[data-hero="b"] .hero--b,
body[data-hero="c"] .hero--c { display: block; }

/* shared backdrop */
.hero__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 80% at 85% 0%, var(--accent-soft), transparent 55%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 70%);
}
.hero__rule {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0;
  height: 1px; background: var(--line); z-index: 1;
}

/* ---------- Variant A — editorial split ---------- */
.hero--a .hero__grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
  padding-block: clamp(130px, 17vw, 210px) clamp(72px, 9vw, 120px);
}
.hero--a h1 { font-size: clamp(42px, 6.6vw, 86px); margin-top: 28px; }
.hero--a h1 em { font-style: italic; color: var(--accent); }
.hero__lede {
  color: var(--ink-soft);
  font-size: clamp(17px, 1.4vw, 20px);
  max-width: 500px;
  margin-top: 28px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 40px; }

/* the ledger card */
.ledger {
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 30px 32px 26px;
  box-shadow: var(--card-shadow);
}
.ledger__top {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.ledger__top span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); }
.ledger__row {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 15px 0; border-bottom: 1px solid var(--line);
}
.ledger__row:last-child { border-bottom: none; }
.ledger__row .lbl { color: var(--ink-soft); font-size: 15px; }
.ledger__row .val { font-family: var(--serif); font-size: 22px; }
.ledger__row .val.pos { color: var(--accent); }
.ledger__foot { margin-top: 18px; font-family: var(--mono); font-size: 11px; color: var(--ink-faint); letter-spacing: 0.04em; }

/* ---------- Variant B — centered statement ---------- */
.hero--b .hero__center {
  position: relative; z-index: 2;
  text-align: center;
  padding-block: clamp(150px, 21vw, 250px) clamp(90px, 12vw, 150px);
  display: flex; flex-direction: column; align-items: center;
}
.hero--b .frame {
  border: 1px solid var(--line-strong);
  padding: clamp(40px, 6vw, 76px) clamp(24px, 6vw, 80px);
  position: relative;
  max-width: 980px;
}
.hero--b .frame::before, .hero--b .frame::after {
  content: ""; position: absolute; width: 12px; height: 12px;
  border: 1px solid var(--accent);
}
.hero--b .frame::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.hero--b .frame::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.hero--b h1 { font-size: clamp(40px, 7vw, 88px); margin-top: 26px; }
.hero--b h1 em { font-style: italic; color: var(--accent); }
.hero--b .hero__lede { margin: 28px auto 0; text-align: center; }
.hero--b .hero__actions { justify-content: center; }
.hero--b .creds {
  display: flex; gap: 38px; justify-content: center; flex-wrap: wrap;
  margin-top: 56px; padding-top: 30px; border-top: 1px solid var(--line);
  z-index: 2; position: relative;
}
.hero--b .creds span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }

/* ---------- Variant C — estimator-forward ---------- */
.hero--c .hero__grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(130px, 16vw, 200px) clamp(72px, 9vw, 120px);
}
.hero--c h1 { font-size: clamp(36px, 4.9vw, 64px); margin-top: 26px; }
.hero--c h1 em { font-style: italic; color: var(--accent); }
.hero--c .mini {
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line); border-radius: 3px; overflow: hidden;
  box-shadow: var(--card-shadow);
}
.hero--c .mini__hd {
  padding: 18px 24px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.hero--c .mini__hd span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); }
.hero--c .mini__hd b { font-family: var(--serif); font-weight: 500; font-size: 17px; }
.hero--c .mini__bd { padding: 22px 24px 26px; }

@media (max-width: 880px) {
  .hero--a .hero__grid, .hero--c .hero__grid { grid-template-columns: 1fr; }
  .hero--a .ledger, .hero--c .mini { order: 2; }
}

/* ============================================================
   STAT STRIP
   ============================================================ */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: clamp(40px, 6vw, 68px) 30px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat__num {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat__num .suf { color: var(--accent); }
.stat__lbl {
  margin-top: 14px; color: var(--ink-soft); font-size: 14.5px; max-width: 210px;
}
@media (max-width: 760px) {
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* ============================================================
   SERVICES
   ============================================================ */
.svc__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 52px; }
.svc {
  display: grid; grid-template-columns: 1fr auto; gap: 16px 20px; align-content: start;
  min-height: 286px; padding: 26px 24px 24px;
  border: 1px solid var(--line); border-radius: 3px;
  background: var(--bg-3);
  transition: background .3s, border-color .3s, transform .3s;
  position: relative;
}
.svc::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--accent); transform: scaleY(0); transform-origin: top;
  transition: transform .3s;
}
.svc:hover { border-color: var(--line-strong); background: var(--bg-2); transform: translateY(-3px); }
.svc:hover::before { transform: scaleY(1); }
.svc__idx { grid-column: 1 / -1; font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: 0.1em; }
.svc__title { grid-column: 1; font-family: var(--serif); font-size: clamp(24px, 2.3vw, 30px); }
.svc__desc { display: block; color: var(--ink-soft); font-size: 15.5px; }
.svc__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.svc__tags span {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--ink-faint); border: 1px solid var(--line); padding: 4px 10px; border-radius: 2px;
}
.svc__go {
  grid-column: 2; grid-row: 2; align-self: center;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-strong); display: grid; place-items: center;
  color: var(--ink-soft); transition: all .25s;
}
.svc:hover .svc__go { border-color: var(--accent); color: var(--accent); transform: rotate(-45deg); }
@media (max-width: 820px) {
  .svc__grid { grid-template-columns: 1fr; }
  .svc { min-height: 0; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 90px); align-items: start;
}
.about__body h2 { font-size: clamp(30px, 4vw, 50px); margin-top: 22px; }
.about__body p { color: var(--ink-soft); font-size: 18px; margin-top: 22px; }
.about__body p strong { color: var(--ink); font-weight: 500; }
.about__media { display: flex; flex-direction: column; gap: 22px; }
.placeholder {
  position: relative;
  background:
    repeating-linear-gradient(45deg, var(--bg-3) 0 11px, var(--bg-2) 11px 22px);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  border-radius: 3px;
}
.placeholder span {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-faint);
  background: var(--bg); padding: 5px 12px; border: 1px solid var(--line);
}
.principals { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.principal__photo { aspect-ratio: 4/5; }
.about__photo, img.principal__photo {
  width: 100%; display: block; object-fit: cover;
  object-position: 50% 28%;
  border: 1px solid var(--line); border-radius: 3px;
}
.about__photo { aspect-ratio: 4/3; object-position: 50% 50%; }
.principal__name { font-family: var(--serif); font-size: 20px; margin-top: 14px; }
.principal__role { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-top: 6px; }
@media (max-width: 820px) { .about__grid { grid-template-columns: 1fr; } }

/* ============================================================
   PROCESS
   ============================================================ */
.proc { background: var(--bg-2); border-block: 1px solid var(--line); }
.proc__grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 60px; }
.step { padding: 36px 28px 40px; border-right: 1px solid var(--line); position: relative; }
.step:last-child { border-right: none; }
.step__n {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; color: var(--accent);
}
.step__bar { height: 1px; background: var(--line); margin: 22px 0; position: relative; }
.step__bar::before { content: ""; position: absolute; left: 0; top: -1px; width: 32px; height: 3px; background: var(--accent); }
.step h3 { font-size: 24px; }
.step p { color: var(--ink-soft); font-size: 15.5px; margin-top: 14px; }
@media (max-width: 820px) {
  .proc__grid { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: none; }
  .step:nth-child(1), .step:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* ============================================================
   ESTIMATOR
   ============================================================ */
.est__grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 5vw, 72px); margin-top: 56px; align-items: start;
}
.est__panel {
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line); border-radius: 3px;
  padding: clamp(26px, 3vw, 38px);
}
.field { margin-bottom: 30px; }
.field:last-child { margin-bottom: 0; }
.field__lbl {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft); display: block; margin-bottom: 14px;
}
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg button {
  flex: 1; min-width: 90px;
  font-family: var(--sans); font-size: 14px; color: var(--ink-soft);
  background: var(--bg); border: 1px solid var(--line); border-radius: 2px;
  padding: 12px 10px; cursor: pointer; transition: all .2s;
}
.seg button:hover { border-color: var(--line-strong); color: var(--ink); }
.seg button.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

.range__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.range__head .field__lbl { margin: 0; }
.range__val { font-family: var(--serif); font-size: 22px; }
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 2px; background: var(--line-strong); border-radius: 2px; outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); cursor: pointer; border: 3px solid var(--bg-2);
  box-shadow: 0 0 0 1px var(--accent);
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; background: var(--accent);
  cursor: pointer; border: 3px solid var(--bg-2);
}
.toggles { display: flex; flex-direction: column; gap: 12px; }
.toggle {
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid var(--line); border-radius: 2px; padding: 14px 16px; cursor: pointer;
  transition: border-color .2s;
}
.toggle:hover { border-color: var(--line-strong); }
.toggle.on { border-color: var(--accent); background: var(--accent-soft); }
.toggle__txt b { font-weight: 500; font-size: 15px; }
.toggle__txt small { display: block; color: var(--ink-faint); font-size: 12.5px; margin-top: 2px; }
.switch { width: 40px; height: 22px; border-radius: 20px; background: var(--bg-4); position: relative; transition: background .2s; flex-shrink: 0; }
.toggle.on .switch { background: var(--accent); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); transition: transform .2s; }
.toggle.on .switch::after { transform: translateX(18px); background: #1a1206; }

/* result side */
.est__result {
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 3px;
  padding: clamp(28px, 3.4vw, 44px); position: sticky; top: 100px;
}
.est__out { padding: 22px 0; border-bottom: 1px solid var(--line); }
.est__out:first-of-type { padding-top: 0; }
.est__out .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.est__out .v { font-family: var(--serif); font-size: clamp(34px, 4.4vw, 50px); line-height: 1; margin-top: 12px; }
.est__out .v.gold { color: var(--accent); }
.est__out .sub { color: var(--ink-faint); font-size: 13.5px; margin-top: 10px; }
.est__note { font-family: var(--mono); font-size: 11px; line-height: 1.7; color: var(--ink-faint); margin-top: 24px; }
.est__cta { margin-top: 26px; width: 100%; justify-content: center; }
@media (max-width: 820px) { .est__grid { grid-template-columns: 1fr; } .est__result { position: static; } }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 60px; }
.quote {
  border: 1px solid var(--line); border-radius: 3px; padding: 32px 30px;
  background: var(--bg-2); display: flex; flex-direction: column;
}
.quote__mark { font-family: var(--serif); font-size: 60px; line-height: 0.6; color: var(--accent); height: 30px; }
.quote p { font-family: var(--serif); font-size: 19px; line-height: 1.45; margin-top: 10px; flex: 1; }
.quote__who { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.quote__who b { font-weight: 500; font-size: 15px; }
.quote__who span { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; color: var(--ink-faint); text-transform: uppercase; margin-top: 5px; }
@media (max-width: 880px) { .quotes { grid-template-columns: 1fr; } }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--bg-2); border-top: 1px solid var(--line); }
.contact__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact__detail { margin-top: 36px; }
.contact__detail .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.contact__detail .v { font-size: 18px; margin-top: 8px; color: var(--ink); }
.contact__detail .v.soft { color: var(--ink-soft); font-size: 16px; }
.map { margin-top: 36px; aspect-ratio: 16/7; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form .full { grid-column: 1 / -1; }
.inp {
  width: 100%; background: var(--bg); border: 1px solid var(--line);
  border-radius: 2px; padding: 14px 16px; color: var(--ink);
  font-family: var(--sans); font-size: 15px; transition: border-color .2s;
}
.inp::placeholder { color: var(--ink-faint); }
.inp:focus { outline: none; border-color: var(--accent); }
textarea.inp { resize: vertical; min-height: 120px; }
.form label .field__lbl { margin-bottom: 9px; }
.form .err { border-color: oklch(0.6 0.16 25); }
.form__msg { grid-column: 1/-1; font-size: 14px; color: var(--accent); font-family: var(--mono); min-height: 18px; }
@media (max-width: 820px) { .contact__grid { grid-template-columns: 1fr; } .form { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding: 70px var(--gutter) 36px; border-top: 1px solid var(--line); }
.footer__top { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer__brand p { color: var(--ink-soft); font-size: 15px; margin-top: 18px; max-width: 280px; }
.footer__col h4 { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.footer__col ul { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 11px; }
.footer__col a { font-size: 15px; color: var(--ink-soft); transition: color .2s; }
.footer__col a:hover { color: var(--accent); }
.footer__bot {
  max-width: var(--maxw); margin: 56px auto 0; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--ink-faint);
}
@media (max-width: 820px) { .footer__top { grid-template-columns: 1fr 1fr; } }

.dds-demo-cta { padding-block: 72px; border-top: 1px solid var(--line); background: var(--bg-2); }
.dds-demo-cta h2 { margin-top: 20px; font-size: clamp(34px, 4.2vw, 52px); }
.dds-demo-cta > .wrap > p:not(.eyebrow) { max-width: 760px; margin-top: 18px; color: var(--ink-soft); }
.dds-demo-cta .concept-page-disclaimer { font-family: var(--mono); font-size: 11px; line-height: 1.7; color: var(--ink-faint); }
.dds-demo-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---- reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   TWEAKS PANEL (vanilla)
   ============================================================ */
#tweaks {
  position: fixed; top: 16px; right: 16px; z-index: 100;
  width: 280px; background: rgba(20, 23, 29, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(236,233,227,0.18); border-radius: 8px;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.8);
  font-family: var(--sans); color: #ece9e3;
  display: none;
}
#tweaks.open { display: block; }
.tw__hd { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid rgba(236,233,227,0.12); cursor: move; }
.tw__hd b { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }
.tw__x { background: none; border: none; color: var(--ink-soft); cursor: pointer; font-size: 18px; line-height: 1; padding: 0 4px; }
.tw__x:hover { color: var(--ink); }
.tw__bd { padding: 16px; display: flex; flex-direction: column; gap: 20px; }
.tw__sec > label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); display: block; margin-bottom: 10px; }
.tw__seg { display: flex; gap: 6px; }
.tw__seg button {
  flex: 1; font-family: var(--sans); font-size: 12.5px; color: #a8a69e;
  background: #0e1116; border: 1px solid rgba(236,233,227,0.12); border-radius: 4px; padding: 8px 6px; cursor: pointer; transition: all .2s;
}
.tw__seg button.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.tw__swatches { display: flex; gap: 10px; }
.tw__sw { width: 30px; height: 30px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: transform .15s; }
.tw__sw:hover { transform: scale(1.1); }
.tw__sw.active { border-color: #ece9e3; }
