/* =========================================================================
   KILVERSTONE — Private investment & advisory group
   Shared stylesheet. "Memorandum" design language:
   deep aubergine-plum + antique brass on warm parchment,
   Fraunces / Hanken Grotesk / IBM Plex Mono. Document-derived structure.
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* ink & darks */
  --ink:        #15110E;
  --plum:       #2E1A20;
  --plum-2:     #3A2229;
  --plum-3:     #462A31;
  --plum-line:  #4E2F37;

  /* brass accent */
  --brass:      #B08A3E;
  --brass-2:    #CDA85B;
  --brass-dim:  #8C6E32;

  /* paper / light */
  --paper:      #F3EEE3;
  --paper-2:    #ECE4D4;
  --paper-3:    #E3D9C5;
  --cream:      #F7F3EA;
  --cream-dim:  #CFC6B6;

  /* text */
  --stone:      #6B6253;
  --stone-2:    #897F6E;

  /* hairlines */
  --line:       #D8CDB7;
  --line-soft:  #E2D9C6;

  /* functional */
  --wa:         #25D366; /* WhatsApp green */
  --wa-dk:      #1FBA59;

  /* type */
  --f-display:  "Fraunces", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-body:     "Hanken Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-mono:     "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  /* rhythm */
  --gutter:     clamp(1.15rem, 4vw, 2.25rem);
  --container:  1200px;
  --reading:    68ch;
  --section-y:  clamp(4rem, 9vw, 7.5rem);
  --radius:     3px;

  /* motion */
  --ease:       cubic-bezier(.2, .7, .2, 1);
  --dur:        .42s;
}

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

body {
  font-family: var(--f-body);
  background: var(--paper);
  color: var(--ink);
  font-size: clamp(1rem, .96rem + .2vw, 1.08rem);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { padding: 0; list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.012em;
  color: var(--ink);
  font-variation-settings: "opsz" 96, "SOFT" 30;
  text-wrap: balance;
}
h1 { font-size: clamp(2.7rem, 1.6rem + 4.6vw, 5rem); }
h2 { font-size: clamp(2rem, 1.3rem + 2.7vw, 3.25rem); }
h3 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem); }
h4 { font-size: 1.15rem; }
p { text-wrap: pretty; }

.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--cream); }

.lede {
  font-size: clamp(1.1rem, 1rem + .55vw, 1.4rem);
  line-height: 1.5;
  color: var(--stone);
  font-weight: 400;
  max-width: 60ch;
}
.on-dark .lede { color: var(--cream-dim); }

/* Eyebrow — mono ledger label */
.eyebrow {
  font-family: var(--f-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--brass-dim);
  display: inline-flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: currentColor;
  opacity: .7;
}
.eyebrow.bare::before { display: none; }
.on-dark .eyebrow { color: var(--brass-2); }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section.dark { background: var(--plum); border-top: none; color: var(--cream-dim); }
.section.paper-2 { background: var(--paper-2); }

.section-head {
  display: grid;
  gap: 1.1rem;
  max-width: 64ch;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head .eyebrow { margin-bottom: .1rem; }
.section-head h2 { margin-top: 0; }
.section-head p { color: var(--stone); }
.on-dark .section-head p { color: var(--cream-dim); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
}
@media (min-width: 880px) {
  .split.aside { grid-template-columns: 1fr 1.7fr; }
  .split.aside-r { grid-template-columns: 1.7fr 1fr; }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 74px;
}

/* brand */
.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand-mark { width: 30px; height: 30px; flex: none; color: var(--brass); }
.brand-name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.32rem;
  letter-spacing: .005em;
  color: var(--ink);
  font-variation-settings: "opsz" 40, "SOFT" 20;
}
.brand-name b { color: var(--brass-dim); font-weight: 600; }

/* nav */
.primary-nav { display: flex; align-items: center; gap: .35rem; }
.primary-nav a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink);
  padding: .55rem .8rem;
  border-radius: var(--radius);
  position: relative;
  transition: color var(--dur) var(--ease);
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: .8rem; right: .8rem; bottom: .3rem;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.primary-nav a:hover { color: var(--brass-dim); }
.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav a[aria-current="page"] { color: var(--brass-dim); }

.header-cta { display: flex; align-items: center; gap: .9rem; }
.header-phone {
  font-family: var(--f-mono);
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--ink);
  white-space: nowrap;
}
.header-phone span { color: var(--stone-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .01em;
  padding: .82rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
              color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--plum); }
.btn-brass { background: var(--brass); color: var(--ink); }
.btn-brass:hover { background: var(--brass-2); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass-dim); }
.on-dark .btn-ghost { border-color: var(--plum-line); color: var(--cream); }
.on-dark .btn-ghost:hover { border-color: var(--brass); color: var(--brass-2); }
.btn-lg { padding: 1rem 1.7rem; font-size: 1rem; }

.btn-wa { background: var(--wa); color: #05210f; }
.btn-wa:hover { background: var(--wa-dk); color: #05210f; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 600;
  font-size: .92rem;
  color: var(--brass-dim);
  border-bottom: 1px solid color-mix(in srgb, var(--brass) 40%, transparent);
  padding-bottom: 2px;
  transition: gap var(--dur) var(--ease), color var(--dur) var(--ease);
}
.on-dark .link-arrow { color: var(--brass-2); }
.link-arrow:hover { gap: .8rem; color: var(--brass); }
.link-arrow svg { width: 1em; height: 1em; }

/* ---------- Hero (Memorandum) ---------- */
.hero { position: relative; background: var(--plum); color: var(--cream-dim); overflow: hidden; }
.hero::before {
  /* engraved arch lines — keystone lives in an arch */
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 760px; height: 760px;
  background-image: radial-gradient(circle at center, transparent 58%, color-mix(in srgb, var(--brass) 55%, transparent) 58.2%, transparent 58.6%),
                    radial-gradient(circle at center, transparent 72%, color-mix(in srgb, var(--brass) 35%, transparent) 72.2%, transparent 72.6%),
                    radial-gradient(circle at center, transparent 86%, color-mix(in srgb, var(--brass) 22%, transparent) 86.2%, transparent 86.6%);
  opacity: .5;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 92%);
          mask-image: linear-gradient(to bottom, black, transparent 92%);
  pointer-events: none;
}
.hero::after {
  /* paper grain */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 80% 0%, color-mix(in srgb, var(--brass) 14%, transparent), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); }

.memo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream-dim);
  padding-bottom: 1.3rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--plum-line);
}
.memo-bar .ref { color: var(--brass-2); }
.memo-bar .dot { color: var(--plum-line); }
.memo-bar .right { margin-left: auto; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: end;
}
@media (min-width: 940px) {
  .hero-grid { grid-template-columns: 1.6fr .9fr; }
}
.hero h1 {
  color: var(--cream);
  font-weight: 480;
  font-variation-settings: "opsz" 144, "SOFT" 40;
  letter-spacing: -.02em;
  max-width: 16ch;
}
.hero h1 em {
  font-style: italic;
  font-weight: 420;
  color: var(--brass-2);
}
.hero-lede {
  margin-top: 1.6rem;
  font-size: clamp(1.1rem, 1rem + .55vw, 1.4rem);
  color: var(--cream-dim);
  max-width: 50ch;
  line-height: 1.5;
}
.hero-actions {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  align-items: center;
}

/* hero side card — "the brief" */
.brief-card {
  border: 1px solid var(--plum-line);
  background: color-mix(in srgb, var(--plum-2) 70%, transparent);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.brief-card h3 {
  color: var(--cream);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.brief-card dl { display: grid; gap: .9rem; }
.brief-card dt {
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass-2);
  margin-bottom: .15rem;
}
.brief-card dd { font-size: .92rem; color: var(--cream); line-height: 1.45; }

/* hero stat strip */
.hero-strip {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--plum-line);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (min-width: 760px) { .hero-strip { grid-template-columns: repeat(4, 1fr); } }
.hero-strip .stat .k {
  font-family: var(--f-display);
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem);
  color: var(--brass-2);
  line-height: 1;
  font-variation-settings: "opsz" 96;
}
.hero-strip .stat .l {
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-top: .5rem;
  max-width: 22ch;
}

/* ---------- Marquee strip ---------- */
.thesis-strip {
  background: var(--ink);
  color: var(--cream);
  border-top: 1px solid var(--plum-line);
  border-bottom: 1px solid var(--plum-line);
}
.thesis-row {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding-block: 1.1rem;
  font-family: var(--f-mono);
  font-size: .76rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cream-dim);
  overflow: hidden;
  white-space: nowrap;
}
.thesis-row span { flex: none; }
.thesis-row .sep { color: var(--brass); }

/* ---------- Sector / capability grid ---------- */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.card {
  background: var(--paper);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  display: flex;
  flex-direction: column;
  gap: .9rem;
  transition: background var(--dur) var(--ease);
  position: relative;
}
.card:hover { background: var(--paper-2); }
.card .num {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--brass-dim);
}
.card .ico { width: 34px; height: 34px; color: var(--brass-dim); }
.card h3 { font-size: 1.3rem; }
.card p { color: var(--stone); font-size: .96rem; }
.card .link-arrow { margin-top: auto; padding-top: .6rem; }

/* feature list inside cards */
.bullets { display: grid; gap: .55rem; margin-top: .3rem; }
.bullets li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--stone);
  font-size: .95rem;
  line-height: 1.5;
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: .55rem; height: 1px;
  background: var(--brass);
}
.on-dark .bullets li { color: var(--cream-dim); }

/* ---------- Why-choose / values ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.value h3 {
  font-size: 1.2rem;
  display: flex;
  align-items: baseline;
  gap: .6rem;
  margin-bottom: .5rem;
}
.value h3 .n {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--brass-dim);
}
.value p { color: var(--stone); font-size: .95rem; }
.on-dark .value p { color: var(--cream-dim); }

/* ---------- Process (numbered — genuine sequence) ---------- */
.process { display: grid; gap: 0; counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding-block: clamp(1.5rem, 3vw, 2.2rem);
  border-top: 1px solid var(--plum-line);
  grid-template-areas: "num" "body";
}
.step:last-child { border-bottom: 1px solid var(--plum-line); }
@media (min-width: 820px) {
  .step {
    grid-template-columns: 7rem 1fr;
    gap: 2rem;
    grid-template-areas: "num body";
  }
}
.step .num {
  grid-area: num;
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 1.4rem + 2.4vw, 3.4rem);
  font-weight: 420;
  color: var(--brass-2);
  line-height: 1;
  font-variation-settings: "opsz" 144;
}
.step .body { grid-area: body; max-width: 60ch; }
.step h3 { color: var(--cream); margin-bottom: .5rem; }
.step p { color: var(--cream-dim); }

/* ---------- Quote / pull ---------- */
.pullquote {
  font-family: var(--f-display);
  font-weight: 420;
  font-style: italic;
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.4rem);
  line-height: 1.25;
  color: var(--ink);
  max-width: 22ch;
  font-variation-settings: "opsz" 96;
}
.pullquote .mark { color: var(--brass); font-style: normal; }
.pullquote cite {
  display: block;
  margin-top: 1.5rem;
  font-family: var(--f-mono);
  font-style: normal;
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ---------- FAQ accordion ---------- */
.faq { border-top: 1px solid var(--line); max-width: 56rem; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: left;
  padding: 1.4rem 0;
  font-family: var(--f-display);
  font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -.005em;
}
.faq-q .pm {
  flex: none;
  width: 22px; height: 22px;
  position: relative;
  color: var(--brass-dim);
}
.faq-q .pm::before, .faq-q .pm::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.faq-q .pm::before { left: 50%; top: 50%; width: 13px; height: 1.5px; transform: translate(-50%, -50%); }
.faq-q .pm::after  { left: 50%; top: 50%; width: 1.5px; height: 13px; transform: translate(-50%, -50%); }
.faq-item[open] .faq-q .pm::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-q:hover { color: var(--brass-dim); }
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--dur) var(--ease);
}
.faq-a-inner { padding: 0 0 1.5rem; color: var(--stone); max-width: 62ch; }
.faq-item[open] .faq-q { color: var(--brass-dim); }

/* ---------- Contact form ---------- */
.form-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 620px) { .form-grid .two { grid-template-columns: 1fr 1fr; display: grid; gap: 1.1rem; } }
.field { display: grid; gap: .4rem; }
.field label {
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--stone);
}
.field input, .field textarea, .field select {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .8rem .9rem;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brass) 22%, transparent);
}
.form-note { font-size: .82rem; color: var(--stone-2); margin-top: .9rem; }

/* contact detail list */
.detail-list { display: grid; gap: 1.6rem; }
.detail h4 {
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass-dim);
  margin-bottom: .4rem;
  font-weight: 500;
}
.detail p, .detail a { font-size: 1.02rem; color: var(--ink); }
.detail a:hover { color: var(--brass-dim); }

/* map-style area block */
.area-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--plum);
  color: var(--cream-dim);
  position: relative;
}
.area-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 780px) { .area-grid { grid-template-columns: 1fr 1fr; } }
.area-cell { padding: clamp(1.6rem, 3vw, 2.4rem); border-bottom: 1px solid var(--plum-line); }
.area-cell:last-child { border-bottom: none; }
@media (min-width: 780px) {
  .area-cell { border-bottom: none; border-right: 1px solid var(--plum-line); }
  .area-cell:last-child { border-right: none; }
}
.area-cell h3 { color: var(--cream); font-size: 1.3rem; margin-bottom: .4rem; }
.area-cell .meta {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brass-2);
  margin-bottom: 1rem;
}
.area-cell p { font-size: .95rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: var(--cream); }
.cta-band .container {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 820px) {
  .cta-band .container { grid-template-columns: 1.6fr auto; }
}
.cta-band h2 { color: var(--cream); max-width: 20ch; }
.cta-band p { color: var(--cream-dim); max-width: 52ch; margin-top: .8rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--plum); color: var(--cream-dim); border-top: 1px solid var(--plum-line); }
.site-footer .container { padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer-top {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: 1fr;
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--plum-line);
}
@media (min-width: 820px) { .footer-top { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer-brand .brand-name { color: var(--cream); }
.footer-brand p { margin-top: 1rem; max-width: 38ch; font-size: .95rem; }
.footer-col h4 {
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass-2);
  margin-bottom: 1rem;
  font-weight: 500;
}
.footer-col ul { display: grid; gap: .6rem; }
.footer-col a { font-size: .95rem; color: var(--cream-dim); transition: color var(--dur) var(--ease); }
.footer-col a:hover { color: var(--brass-2); }

.group-co { font-size: .9rem; }
.group-co a { color: var(--brass-2); border-bottom: 1px solid color-mix(in srgb, var(--brass) 35%, transparent); }
.group-co a:hover { color: var(--cream); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.6rem;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--cream-dim);
}
.footer-bottom a:hover { color: var(--brass-2); }
.footer-bottom .links { display: flex; flex-wrap: wrap; gap: 1.2rem; }

/* ---------- Mobile nav ---------- */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: var(--radius);
  color: var(--ink);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block;
  width: 20px; height: 1.6px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav-toggle span::before { position: absolute; transform: translateY(-6px); }
.nav-toggle span::after  { position: absolute; transform: translateY(6px); }
.nav-toggle span { position: relative; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: var(--plum);
  color: var(--cream);
  padding: 6rem var(--gutter) 3rem;
  display: grid;
  gap: 0;
  align-content: start;
  transform: translateY(-100%);
  transition: transform var(--dur) var(--ease);
  overflow-y: auto;
}
.mobile-nav.open { transform: translateY(0); }
.mobile-nav a {
  font-family: var(--f-display);
  font-size: 1.7rem;
  color: var(--cream);
  padding: 1rem 0;
  border-bottom: 1px solid var(--plum-line);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.mobile-nav a .n {
  font-family: var(--f-mono);
  font-size: .72rem;
  color: var(--brass-2);
  letter-spacing: .1em;
}
.mobile-nav .mn-cta {
  margin-top: 1.6rem;
  display: flex;
  gap: .7rem;
  flex-wrap: wrap;
}
.mobile-nav .mn-phone {
  font-family: var(--f-mono);
  color: var(--brass-2);
  margin-top: 1rem;
  letter-spacing: .04em;
}

body.nav-open { overflow: hidden; }

@media (max-width: 940px) {
  .primary-nav, .header-phone { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-cta .btn-call { display: none; }
}

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}
.skip-link {
  position: absolute;
  left: 1rem; top: -3rem;
  background: var(--ink); color: var(--cream);
  padding: .7rem 1rem;
  border-radius: var(--radius);
  z-index: 200;
  font-size: .85rem;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 1rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Misc helpers ---------- */
.center { text-align: center; }
.center .section-head { margin-inline: auto; }
.center .eyebrow::before { display: none; }
.muted { color: var(--stone); }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.6rem; }
.nowrap { white-space: nowrap; }

/* breadcrumb */
.crumbs {
  font-family: var(--f-mono);
  font-size: .74rem;
  letter-spacing: .1em;
  color: var(--stone-2);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}
.crumbs a:hover { color: var(--brass-dim); }
.crumbs .sep { color: var(--line); }

/* page header (inner pages) */
.page-head { background: var(--plum); color: var(--cream-dim); }
.page-head .container { padding-block: clamp(3rem, 7vw, 5.5rem); position: relative; }
.page-head .crumbs { color: var(--cream-dim); margin-bottom: 1.8rem; }
.page-head .crumbs a { color: var(--cream-dim); }
.page-head .crumbs a:hover { color: var(--brass-2); }
.page-head .crumbs .sep { color: var(--plum-line); }
.page-head h1 { color: var(--cream); max-width: 18ch; }
.page-head .lede { color: var(--cream-dim); margin-top: 1.4rem; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
