/* Curbline Consulting shared site styles
 *
 * Direction: an audit report, set well. Editorial serif headlines over Inter, generous
 * space, hairline rules instead of boxes, and colour spent where it carries meaning
 * (the curb line, the seven domain accents, the tiers). One decorative device, used at
 * scale: the Curbline mark itself.
 */

:root {
  /* Brand palette (BRAND.md) */
  --graphite: #3A3D42;
  --maroon: #A85A5A;
  --ink: #2C2E32;
  --slate: #686B71;
  --bone: #F1EFE8;
  --blush: #EFE0E0;
  --warm-white: #F7F2F2;
  --hairline: #C9C6BE;

  /* Maroon deepened for text and small type on light grounds, where the brand maroon
     measures under 4.5:1. The brand maroon stays for the curb line and all decoration. */
  --maroon-deep: #8F4747;
  /* Muted text on ink. Plain --slate is 2.55:1 there. */
  --slate-lt: #9A9DA3;

  /* Grounds. --page matches the internal Audit Library tool. --surface is the one card
     fill, neutral on purpose: the brand reserves warm white for knockouts on maroon. */
  --page: #ECEDEE;
  --surface: #F7F7F6;
  /* Light "paper" section ground, one step above the page grey. Replaced the pale maroon
     band on 2026-09-13. */
  --band: #F8F8F7;
  --rule: #D3D2CD;
  --rule-strong: #BDBBB4;

  /* Form fields. Edges must clear 3:1 against the field (WCAG 1.4.11). */
  --field: #FFFFFF;
  --field-edge: #8A8D93;
  --error: #8F4747;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Instrument Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* The wordmark stays in Inter, the face the brand lockups are drawn in. */
  --logo: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max-width: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(80px, 10vw, 140px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Domain accents, matched to the audit deck. Do not "correct" Financial's grey. */
  --dom-revenue-ac: #B08A4F;   --dom-revenue-bg: #EAE4DA;
  --dom-physical-ac: #5E8377;  --dom-physical-bg: #E1E6E4;
  --dom-marketing-ac: #A85A5A; --dom-marketing-bg: #EFE0E0;
  --dom-sales-ac: #7E6B92;     --dom-sales-bg: #E6E1EA;
  --dom-people-ac: #5B7089;    --dom-people-bg: #E3E7EC;
  --dom-financial-ac: #6B6E74; --dom-financial-bg: #E3E4E5;
  --dom-predev-ac: #4E7A82;    --dom-predev-bg: #DFE4E6;

  /* Lightened accents for ink grounds, where the deck-true hues fall under contrast. */
  --dom-revenue-lt: #D9B47B;
  --dom-physical-lt: #93B7A9;
  --dom-marketing-lt: #D28E8E;
  --dom-sales-lt: #AF9EC3;
  --dom-people-lt: #90A7C1;
  --dom-financial-lt: #ABAEB4;
  --dom-predev-lt: #8AB2BA;

  /* Tiers, matched to the pricing slide. The -lt lifts are for the ink footer. */
  --tier-bronze: #A9743B;
  --tier-silver: #9AA0A6;
  --tier-gold: #C9A24B;
  --tier-bronze-lt: #C68F4E;
  --tier-silver-lt: #C3C8CE;
  /* Tier colours deepened for tier names set as small text on the light card. */
  --tier-bronze-text: #8C5E2C;
  --tier-silver-text: #646A70;
}

.accent-gold { --accent: var(--dom-revenue-ac); --accent-bg: var(--dom-revenue-bg); }
.accent-sage { --accent: var(--dom-physical-ac); --accent-bg: var(--dom-physical-bg); }
.accent-teal { --accent: var(--dom-predev-ac); --accent-bg: var(--dom-predev-bg); }
.accent-plum { --accent: var(--dom-sales-ac); --accent-bg: var(--dom-sales-bg); }
.accent-blue { --accent: var(--dom-people-ac); --accent-bg: var(--dom-people-bg); }

[data-domain="revenue"]   { --accent: var(--dom-revenue-ac);   --accent-bg: var(--dom-revenue-bg);   --accent-lt: var(--dom-revenue-lt); }
[data-domain="physical"]  { --accent: var(--dom-physical-ac);  --accent-bg: var(--dom-physical-bg);  --accent-lt: var(--dom-physical-lt); }
[data-domain="marketing"] { --accent: var(--dom-marketing-ac); --accent-bg: var(--dom-marketing-bg); --accent-lt: var(--dom-marketing-lt); }
[data-domain="sales"]     { --accent: var(--dom-sales-ac);     --accent-bg: var(--dom-sales-bg);     --accent-lt: var(--dom-sales-lt); }
[data-domain="people"]    { --accent: var(--dom-people-ac);    --accent-bg: var(--dom-people-bg);    --accent-lt: var(--dom-people-lt); }
[data-domain="financial"] { --accent: var(--dom-financial-ac); --accent-bg: var(--dom-financial-bg); --accent-lt: var(--dom-financial-lt); }
[data-domain="predev"]    { --accent: var(--dom-predev-ac);    --accent-bg: var(--dom-predev-bg);    --accent-lt: var(--dom-predev-lt); }
/* Card hover tints. All seven sit at one lightness and colour strength so no card reads heavier
   than another; the cool, low-chroma three (People, Financial, Market Diligence) were tuned
   apart so they stay distinguishable. The deck accents themselves are unchanged. */
[data-domain="revenue"]   { --accent-hover: #EFE6DB; }
[data-domain="physical"]  { --accent-hover: #DBEBE5; }
[data-domain="marketing"] { --accent-hover: #F5E4E3; }
[data-domain="sales"]     { --accent-hover: #EBE5F1; }
[data-domain="people"]    { --accent-hover: #E0E7F3; }
[data-domain="financial"] { --accent-hover: #E6E6E6; }
[data-domain="predev"]    { --accent-hover: #DEEFEF; }

/* ------------------------------------------------------------------ Base */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Anchors such as services.html#pricing land below the sticky header. */
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  background: var(--page);
  color: var(--graphite);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -.018em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 1.5rem + 3.9vw, 4.6rem); line-height: 1.04; margin: 0 0 .5em; }
h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1.08; margin: 0 0 .55em; }
h3, h4 {
  font-family: var(--sans);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -.006em;
  line-height: 1.3;
  margin: 0 0 .5em;
}
h3 { font-size: 1.125rem; }

p { margin: 0 0 1em; color: var(--graphite); text-wrap: pretty; }

a { color: var(--maroon-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

::selection { background: var(--blush); color: var(--ink); }
:focus-visible { outline: 2px solid var(--maroon); outline-offset: 3px; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.slate { color: var(--slate); }

/* Section label. Tracked caps, led by a short run of curb line. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: 26px;
}
.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 24px;
  height: 2px;
  border-radius: 1px;
  background: var(--maroon);
}

/* ------------------------------------------------------------------ Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 50px;
  padding: 13px 22px 13px 24px;
  border-radius: 3px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .01em;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
/* The arrow. Drawn as a mask so it takes each button's own text colour. */
.btn::after {
  content: "";
  flex: 0 0 auto;
  width: 15px;
  height: 11px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 11'%3E%3Cpath d='M0 5.5h13.5M8.5.75l4.75 4.75L8.5 10.25' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 11'%3E%3Cpath d='M0 5.5h13.5M8.5.75l4.75 4.75L8.5 10.25' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .3s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:hover::after { transform: translateX(4px); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.btn-primary:hover { background: var(--maroon-deep); border-color: var(--maroon-deep); }
.btn-secondary { background: transparent; border-color: var(--rule-strong); color: var(--ink); }
.btn-secondary:hover { border-color: var(--ink); background: rgba(44,46,50,.04); }

/* ------------------------------------------------------------------ Header */

header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(236,237,238,.88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
          backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(44,46,50,.1);
}
.headrow {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 84px;
}

/* The lockup: the mark drawn from the icon's true geometry, then the two-line wordmark.
   Both lines share one size and tracking, as the brand guide specifies. */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  color: var(--graphite);
}
.brand-logo:hover { text-decoration: none; }
.brand-mark { display: block; width: 34px; height: auto; flex: 0 0 auto; }
.brand-mark .t { fill: currentColor; }
.brand-mark .c { fill: var(--maroon); }
.brand-wordmark { display: flex; flex-direction: column; line-height: 1; font-family: var(--logo); }
/* Footer uses the maroon icon tile: the bare mark disappears into the ink ground. */
.brand-icon { display: block; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 9px; }
.brand-wordmark .l1,
.brand-wordmark .l2 { font-size: 13px; letter-spacing: .32em; margin-right: -.32em; }
.brand-wordmark .l1 { font-weight: 500; color: var(--ink); }
.brand-wordmark .l2 { font-weight: 400; color: var(--maroon); margin-top: 5px; }

header.site-header .brand-mark { width: 42px; }
header.site-header .brand-logo { gap: 17px; }
header.site-header .brand-wordmark .l1,
header.site-header .brand-wordmark .l2 { font-size: 15px; }
header.site-header .brand-wordmark .l2 { margin-top: 6px; }

nav.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 38px;
}
nav.main-nav a {
  position: relative;
  color: var(--graphite);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 6px 0;
}
nav.main-nav a:hover { text-decoration: none; color: var(--ink); }
nav.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: .15em;
  bottom: 0;
  height: 1px;
  background: var(--maroon);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
nav.main-nav a:not(.nav-cta):hover::after,
nav.main-nav a.active::after { transform: scaleX(1); }
nav.main-nav a.active { color: var(--ink); }
nav.main-nav .nav-cta {
  margin-left: 6px;
  padding: 13px 18px;
  border-radius: 3px;
  background: var(--ink);
  color: var(--bone);
  letter-spacing: .13em;
  transition: background-color .2s ease;
}
nav.main-nav .nav-cta:hover { background: var(--maroon-deep); color: var(--bone); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  border-radius: 3px;
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 860px) {
  .headrow { min-height: 70px; }
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px var(--gutter) 24px;
    background: var(--page);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 24px 40px -24px rgba(44,46,50,.25);
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { padding: 16px 0; border-bottom: 1px solid var(--rule); }
  nav.main-nav a:not(.nav-cta)::after { display: none; }
  nav.main-nav .nav-cta { margin: 18px 0 0; border-bottom: 0; text-align: center; }
  .nav-toggle { display: block; }
}
@media (max-width: 480px) {
  header.site-header .brand-mark { width: 30px; }
  header.site-header .brand-wordmark .l1,
  header.site-header .brand-wordmark .l2 { font-size: 12px; letter-spacing: .28em; margin-right: -.28em; }
  .brand-logo { gap: 12px; }
}

/* ------------------------------------------------------------------ Sections */

section { padding: var(--section) 0; }
/* Plain sections that follow one another are divided by a hairline; a band's change of
   ground is already the division, so bands and the section after one take no rule. */
section + section { border-top: 1px solid var(--rule); }
section.alt + section { border-top: 0; }

/* The light section: a step up to paper rather than a tint down, so the evidence on the
   page (the domain table, the quotes, the audience cards) reads like a printed report,
   and maroon is left to mean something where it does appear. */
section.alt {
  background: var(--band);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 76px); }
.section-head > :last-child { margin-bottom: 0; }
/* Wide screens split the head: label across the top, headline left, the paragraph on
   the right, dropped to share the headline's baseline. */
@media (min-width: 980px) {
  .section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(48px, 7vw, 110px);
    align-items: end;
    max-width: none;
  }
  .section-head .eyebrow { grid-column: 1 / -1; justify-self: start; }
  .section-head h2 { margin-bottom: 0; max-width: 15em; }
  /* A head with no paragraph keeps its headline on the full measure. */
  .section-head h2:last-child { grid-column: 1 / -1; max-width: 18em; }
  .section-head p { margin: 0; max-width: 34em; padding-bottom: .3em; }
}

/* ------------------------------------------------------------------ Hero */

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--page);
}
.hero { padding: clamp(76px, 10vw, 140px) 0 clamp(84px, 11vw, 150px); }
.page-hero { padding: clamp(72px, 9vw, 124px) 0 clamp(64px, 8vw, 108px); }
.hero .wrap,
.page-hero .wrap { position: relative; z-index: 1; }
.hero .hero-copy { max-width: 800px; }
.hero h1 { font-size: clamp(2.8rem, 1.4rem + 4.6vw, 5.2rem); max-width: 11.5em; margin-bottom: .55em; }
.hero p.lede,
.hero-sub {
  font-size: clamp(1.1rem, 1rem + .35vw, 1.28rem);
  line-height: 1.6;
  max-width: 35em;
}
.hero p.lede { color: var(--graphite); margin: 0; }
.hero-sub { color: var(--slate); margin: 20px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 46px; }

.page-hero h1 { max-width: 14em; margin-bottom: .45em; }
.page-hero p.lede { font-size: clamp(1.08rem, 1rem + .3vw, 1.22rem); line-height: 1.6; color: var(--slate); max-width: 38em; margin-bottom: 0; }
/* About opens on a single question, set in the serif at a size that holds the space a
   full paragraph used to. */
.page-hero p.lede-question {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: clamp(1.45rem, 1.1rem + 1.1vw, 2rem);
  line-height: 1.34;
  letter-spacing: -.01em;
  color: var(--graphite);
  max-width: 25em;
}

/* The watermark: the Curbline mark at architectural scale, from the icon's measured
   geometry, hung off the right edge and cropped by the section. On every page. */
/* It stands on a baseline a short way above the section's bottom rule, so the curb reads
   as a line the page itself is built on. */
.hero-decor {
  position: absolute;
  z-index: 0;
  bottom: clamp(48px, 5vw, 72px);
  right: -120px;
  width: min(680px, 54vw);
  pointer-events: none;
}
.hero-decor svg { display: block; width: 100%; height: auto; }
/* Interior heroes vary in height (the 404 is short), so there the mark sizes to the
   section instead of the viewport and never runs past its top. */
.page-hero .hero-decor { top: 64px; bottom: clamp(40px, 4vw, 56px); right: -90px; width: auto; max-height: 440px; }
.page-hero .hero-decor svg { width: auto; height: 100%; }
@media (max-width: 1140px) { .hero-decor { right: -170px; } }
@media (max-width: 860px) {
  /* On a phone the mark drops to the foot of the hero, so the curb runs through the
     section's bottom padding rather than behind a line of copy. */
  .hero-decor,
  .page-hero .hero-decor { top: auto; bottom: 22px; right: -96px; width: 250px; }
  .page-hero .hero-decor { max-height: none; }
  .page-hero .hero-decor svg { width: 100%; height: auto; }
}

/* ------------------------------------------------------------------ Grids and cards */

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.span-2 { grid-column: span 2; }
@media (max-width: 900px) { .span-2 { grid-column: span 1; } }
.grid-2 > .row-span { grid-column: span 2; }
@media (max-width: 760px) { .grid-2 > .row-span { grid-column: span 1; } }

/* Ruled grid. Cells share single hairlines, the way a report table does, instead of
   floating as separate cards. The rule is the grid's own background showing through a
   1px gap, so it stays exact at every breakpoint. */
.ruled {
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
/* On paper the cells take the paper itself, so only the rules draw the table. */
section.alt .ruled > .domain-card { background: var(--band); }
section.alt .ruled > .domain-card:hover { background: var(--accent-hover, color-mix(in srgb, var(--accent-bg, var(--band)) 45%, var(--band))); }

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(28px, 3vw, 40px);
}

/* Domain card. Colour comes from the icon tile, the oversized numeral and a tint on
   hover; the outline carries the accent when the card stands alone. */
.domain-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-color: color-mix(in srgb, var(--accent, var(--rule)) 40%, var(--rule));
  border-radius: var(--radius);
  padding: clamp(28px, 3vw, 40px);
  transition: background-color .3s ease;
}
.ruled > .domain-card { border: 0; border-radius: 0; }
.domain-card:hover { background: var(--accent-hover, color-mix(in srgb, var(--accent-bg, var(--surface)) 45%, var(--surface))); }

/* The deck's own 01-07 domain numbers, set in the serif, oversized in the accent and
   cropped by the card's corner. */
/* Numbered cards reserve a foot of space for the numeral, so it never sits on the copy. */
.domain-card[data-num] { padding-bottom: clamp(84px, 7vw, 104px); }
.domain-card[data-num]::before {
  content: attr(data-num);
  position: absolute;
  right: 16px;
  bottom: -.26em;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 6.6rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--accent, var(--maroon));
  opacity: .14;
  pointer-events: none;
  user-select: none;
  transition: opacity .3s ease, transform .5s var(--ease);
}
.domain-card[data-num]:hover::before { opacity: .22; transform: translateY(-4px); }
.domain-card > * { position: relative; }

.domain-card h3 { margin-bottom: 12px; }
.domain-card p { font-size: 1rem; line-height: 1.65; }
.domain-card ul { margin: 14px 0 0; padding-left: 18px; color: var(--slate); font-size: .95rem; }

.domain-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.domain-head .dicon { width: 42px; height: 42px; border-radius: 3px; flex: 0 0 auto; }
.domain-head .dicon svg { width: 20px; height: 20px; }
.domain-head h3 { margin: 0; font-size: 1.125rem; }

.focus-list,
.domain-card .focus-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.focus-list li {
  margin: 0;
  padding: 5px 11px;
  border-radius: 2px;
  background: var(--accent-bg);
  color: var(--ink);
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.5;
}

/* Icon tiles */
.dicon {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-bg);
  border: 1px solid transparent;
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), background-color .2s ease, border-color .2s ease;
}
.dicon svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dicon.off { background: transparent; border-color: var(--rule-strong); }
.dicon.off svg { stroke: var(--rule-strong); }

.domain-icons { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 26px; }
.domain-icons .dlabel {
  width: 100%;
  margin-bottom: 10px;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate);
}
.domain-icons .dicon:hover { transform: translateY(-3px); background: var(--accent); }
.domain-icons .dicon:hover svg { stroke: var(--surface); }
.domain-icons .dicon.off:hover { background: transparent; border-color: var(--accent); }
.domain-icons .dicon.off:hover svg { stroke: var(--accent); }

/* Coverage tooltips, named from data-label */
.dicon[data-label]::after,
.dicon[data-label]::before {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  left: 50%;
  z-index: 5;
  transition: opacity .18s ease, transform .18s var(--ease);
}
.dicon[data-label]::after {
  content: attr(data-label);
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  padding: 6px 10px;
  border-radius: 3px;
  background: var(--ink);
  color: var(--bone);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .02em;
  white-space: nowrap;
}
.dicon[data-label]::before {
  content: "";
  bottom: calc(100% + 4px);
  transform: translateX(-50%) translateY(4px);
  border: 5px solid transparent;
  border-top-color: var(--ink);
}
.dicon[data-label]:hover::after,
.dicon[data-label]:hover::before { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Method icon (About) */
.method-icon {
  width: 42px;
  height: 42px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
  background: var(--accent-bg, var(--blush));
}
.method-icon svg { width: 20px; height: 20px; stroke: var(--accent, var(--maroon)); }

/* ------------------------------------------------------------------ Ink panels */

/* Closes the homepage domain grid: the one dark cell, so it reads as a destination. */
.feature-band {
  grid-column: span 2;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  padding: clamp(32px, 3.4vw, 44px);
  background: var(--ink);
  border-radius: var(--radius);
}
.ruled > .feature-band { border-radius: 0; }
.feature-band > div { max-width: 34em; }
.feature-band h3 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 1.2rem + 1vw, 2.1rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.012em;
  color: var(--bone);
  margin: 0 0 12px;
}
.feature-band p { color: var(--hairline); margin: 0; font-size: 1rem; }
.feature-band .btn { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.feature-band .btn:hover { background: #fff; border-color: #fff; }
@media (max-width: 900px) { .feature-band { grid-column: span 1; } }

/* Closes the services library. Its curb runs in all seven domain colours: which of
   these is yours. */
.tier-finder {
  grid-column: span 2;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px 48px;
  padding: clamp(40px, 5vw, 64px) clamp(28px, 5vw, 64px) calc(clamp(40px, 5vw, 64px) + 6px);
  background: var(--ink);
  border-radius: var(--radius);
}
.ruled > .tier-finder { border-radius: 0; }
.tier-finder::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: linear-gradient(
    to right,
    var(--dom-revenue-lt)   0      14.28%,
    var(--dom-physical-lt)  14.28% 28.57%,
    var(--dom-marketing-lt) 28.57% 42.85%,
    var(--dom-sales-lt)     42.85% 57.14%,
    var(--dom-people-lt)    57.14% 71.42%,
    var(--dom-financial-lt) 71.42% 85.71%,
    var(--dom-predev-lt)    85.71% 100%
  );
}
.tier-finder-copy { flex: 1 1 380px; max-width: 40em; }
.tier-finder .eyebrow { color: var(--hairline); margin-bottom: 20px; }
.tier-finder h3 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.015em;
  color: var(--bone);
  margin: 0 0 14px;
}
.tier-finder p { color: var(--hairline); margin: 0; }
.tier-finder .btn { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.tier-finder .btn:hover { background: #fff; border-color: #fff; }
@media (max-width: 760px) { .tier-finder { grid-column: span 1; } }

/* ------------------------------------------------------------------ CTA band */

/* Must stay after .card: applied as class="card cta-band", equal specificity. */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px 56px;
  padding: clamp(36px, 5vw, 64px);
}
.cta-band > div { flex: 1 1 340px; max-width: 46em; }
.cta-band h2,
.cta-band h3 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -.015em;
  margin: 0 0 12px;
}
.cta-band p { margin: 0; }

/* The closing call to action on a page runs dark: one of only two ink moments per page,
   the other being the footer. */
.cta-ink,
section.ink { background: var(--ink); color: var(--hairline); --slate: var(--hairline); }
.cta-ink { border-color: var(--ink); }
.cta-ink h2, .cta-ink h3,
section.ink h2 { color: var(--bone); }
.cta-ink .btn-primary,
section.ink .btn-primary { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.cta-ink .btn-primary:hover,
section.ink .btn-primary:hover { background: #fff; border-color: #fff; }
section.ink { border-bottom: 1px solid rgba(241,239,232,.1); }
section.ink + section { border-top: 0; }

/* ------------------------------------------------------------------ Home: reasons */

.reasons {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}
.reasons-arg > :last-child { margin-bottom: 0; }
.reasons-arg h2 { max-width: 11em; }

.reason-list { list-style: none; margin: 0; padding: 0; }
.reason-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 22px;
  padding: 34px 0;
  border-top: 1px solid var(--rule);
}
.reason-list li:first-child { border-top: 0; padding-top: 6px; }
.reason-list li:last-child { padding-bottom: 0; }
.reason-mark {
  width: 28px;
  height: 28px;
  margin-top: -1px;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.reason-mark svg {
  display: block;
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--accent, var(--maroon));
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.reason-list h3 { margin: 0 0 8px; transition: color .25s ease; }
.reason-list p { margin: 0; }
.reason-list li:hover .reason-mark { transform: translateX(4px); }
.reason-list li:hover h3 { color: var(--accent, var(--maroon)); }
@media (max-width: 900px) {
  .reasons { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

/* ------------------------------------------------------------------ Home: steps */

.steps {
  --steps-gap: clamp(32px, 4vw, 56px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--steps-gap);
}
.step { position: relative; }
.step .step-num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 30px;
  border-radius: 50%;
  background: var(--accent, var(--ink));
  color: var(--bone);
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1;
}
/* The connector, from each badge across the gap to the next. */
.step::after {
  content: "";
  position: absolute;
  top: 23px;
  left: 62px;
  right: calc(var(--steps-gap) * -1 + 16px);
  height: 1px;
  background: linear-gradient(to right, var(--accent, var(--rule-strong)), var(--rule));
}
.step:last-child::after { display: none; }
.step h3 { margin-bottom: 10px; }
.step p { margin: 0; }
@media (max-width: 900px) {
  .steps { grid-template-columns: minmax(0, 1fr); --steps-gap: 44px; }
  .step { padding-left: 72px; }
  .step .step-num { position: absolute; left: 0; top: 0; margin: 0; }
  .step h3 { margin-top: 11px; }
  .step::after {
    top: 58px;
    left: 23px;
    right: auto;
    bottom: -32px;
    width: 1px;
    height: auto;
    background: linear-gradient(to bottom, var(--accent, var(--rule-strong)), var(--rule));
  }
}

/* ------------------------------------------------------------------ Pull quote (About) */

.callout { max-width: 980px; }
.callout p {
  margin: 0;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: clamp(1.6rem, 1.1rem + 1.7vw, 2.45rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -.014em;
  color: var(--ink);
  text-wrap: balance;
}
.callout cite {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  font-style: normal;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--slate);
}
.callout cite::before { content: ""; width: 24px; height: 2px; border-radius: 1px; background: var(--maroon); }

/* ------------------------------------------------------------------ About: figures */

.stat-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule-strong);
}
.stat {
  padding: 30px 28px 0;
  border-left: 1px solid var(--rule);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .num {
  display: block;
  margin-bottom: 12px;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ink);
}
.stat .label { display: block; max-width: 17em; font-size: .9rem; line-height: 1.5; color: var(--slate); }
@media (max-width: 900px) {
  .stat-band { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 0; }
  .stat,
  .stat:first-child { padding: 26px 20px 30px 0; border-left: 0; border-top: 1px solid var(--rule-strong); }
  .stat:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--rule); }
}

/* ------------------------------------------------------------------ About */

/* Technology: the one dark band in the body of the About page. A faint network of nodes
   and edges sits behind it, three of them pulsing slowly in maroon. */
section.ink .eyebrow { color: var(--hairline); }
section.ink.tech { position: relative; overflow: hidden; }
.tech .wrap { position: relative; z-index: 1; }
/* Hung off the right edge and faded toward the copy, so no line runs through text. */
.tech-net {
  position: absolute;
  top: 0;
  bottom: 0;
  right: -220px;
  width: min(620px, 46vw);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 55%);
          mask-image: linear-gradient(to right, transparent 0%, #000 55%);
}
.tech-net svg { display: block; width: 100%; height: 100%; }
.tech-net line { stroke: rgba(241,239,232,.12); stroke-width: 1; }
.tech-net .nodes circle { fill: rgba(241,239,232,.28); }
.tech-net .hot circle {
  fill: var(--maroon);
  transform-box: fill-box;
  transform-origin: center;
  animation: tech-pulse 3.6s ease-in-out infinite;
}
.tech-net .hot circle:nth-child(2) { animation-delay: 1.2s; }
.tech-net .hot circle:nth-child(3) { animation-delay: 2.4s; }
@keyframes tech-pulse {
  0%, 100% { opacity: .35; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.8); }
}
@media (max-width: 900px) { .tech-net { width: 100%; right: -30%; opacity: .6; } }

/* The same network in its light version, on the homepage's "why" section: graphite lines
   under the argument column, faded out toward the copy above and to the right. */
section.has-net { position: relative; overflow: hidden; }
section.has-net .wrap { position: relative; z-index: 1; }
.net-light {
  position: absolute;
  /* Bleeds off the left edge of the page and runs a little way under the reasons list,
     low in the section so it stays clear of the argument paragraph. */
  left: -160px;
  bottom: clamp(16px, 2.5vw, 40px);
  width: calc(50% + 380px);
  height: min(440px, 44%);
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 80% 115% at 30% 100%, #000 55%, transparent 100%);
          mask-image: radial-gradient(ellipse 80% 115% at 30% 100%, #000 55%, transparent 100%);
}
.net-light svg { display: block; width: 100%; height: 100%; }
.net-light line { stroke: rgba(58,61,66,.2); stroke-width: 1; }
.net-light .nodes circle { fill: rgba(58,61,66,.32); }
.net-light .hot circle {
  fill: var(--maroon);
  transform-box: fill-box;
  transform-origin: center;
  animation: tech-pulse 3.6s ease-in-out infinite;
}
.net-light .hot circle:nth-child(2) { animation-delay: 1.2s; }
.net-light .hot circle:nth-child(3) { animation-delay: 2.4s; }
@media (max-width: 900px) { .net-light { display: none; } }

.tech-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.tech-list li {
  position: relative;
  padding-top: 26px;
  border-top: 1px solid rgba(241,239,232,.18);
}
/* On hover the rule above an item draws across in maroon. */
.tech-list li::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: var(--dom-marketing-lt);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.tech-list li:hover::before { transform: scaleX(1); }
.tech-num {
  display: block;
  margin-bottom: 18px;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--dom-marketing-lt);
}
.tech-list h3 { color: var(--bone); margin-bottom: 10px; }
.tech-list p { margin: 0; font-size: .95rem; color: var(--hairline); }
@media (max-width: 900px) { .tech-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tech-list { grid-template-columns: minmax(0, 1fr); } }

/* Intro: headline and lead on the left, the account of the practice on the right. */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
}
.intro-head h2 { margin-bottom: .55em; }
.intro-lead {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: clamp(1.35rem, 1.1rem + .7vw, 1.62rem);
  line-height: 1.42;
  letter-spacing: -.008em;
  color: var(--ink);
  margin: 0;
  max-width: 20em;
}
.intro-body { padding-top: clamp(0px, 4vw, 52px); }
.intro-body p { max-width: 36em; }
.intro-body p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .intro { grid-template-columns: minmax(0, 1fr); } .intro-body { padding-top: 0; } }

/* At a glance: label and value rows, three across. */
.facts { margin: 0; }
.facts div { display: grid; gap: 6px; padding: 20px 0 22px; border-top: 1px solid var(--rule); }
.facts dt {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--slate);
}
.facts dd { margin: 0; font-size: 1.05rem; line-height: 1.45; color: var(--ink); }
.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 56px);
  border-bottom: 1px solid var(--rule);
}
.facts-grid div:nth-child(-n+3) { border-top-color: var(--rule-strong); }
@media (max-width: 800px) { .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts-grid div:nth-child(3) { border-top-color: var(--rule); } }
@media (max-width: 480px) { .facts-grid { grid-template-columns: minmax(0, 1fr); } .facts-grid div:nth-child(2) { border-top-color: var(--rule); } }

/* Path: four stages on one line. Each stage is a node on a shared hairline; the last,
   Curbline itself, is marked in maroon. */
.path {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 3.4vw, 48px);
  counter-reset: path;
}
.path li { position: relative; padding-top: 44px; counter-increment: path; }
.path li::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  right: calc(clamp(28px, 3.4vw, 48px) * -1);
  height: 1px;
  background: var(--rule-strong);
}
.path li:last-child::before { right: 0; }
.path li::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 11px;
  height: 11px;
  background: var(--band, var(--page));
  border: 1px solid var(--ink);
  transform: rotate(45deg);
}
.path li:last-child::after { background: var(--maroon); border-color: var(--maroon); }
.path .path-num {
  display: block;
  margin-bottom: 14px;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--slate);
}
.path h3 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: clamp(1.4rem, 1.15rem + .6vw, 1.7rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin-bottom: 12px;
}
.path p { margin: 0; font-size: .98rem; color: var(--slate); }
@media (max-width: 900px) {
  .path { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .path li { padding: 0 0 40px 40px; }
  .path li::before { top: 16px; bottom: 0; left: 5px; right: auto; width: 1px; height: auto; }
  .path li:last-child { padding-bottom: 0; }
  .path li:last-child::before { display: none; }
}

/* Coverage: the submarkets as a ruled roster. */
.coverage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(44px, 8vw, 120px);
  align-items: start;
}
.coverage h2 { max-width: 12em; }
.coverage-copy p { max-width: 30em; }
.cities {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 28px;
  border-bottom: 1px solid var(--rule);
}
.cities li {
  padding: 15px 0 14px;
  border-top: 1px solid var(--rule);
  font-size: 1rem;
  color: var(--ink);
}
@media (max-width: 900px) { .coverage { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .cities { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ------------------------------------------------------------------ Pricing */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 900px) { .pricing-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(32px, 3vw, 42px) clamp(26px, 2.6vw, 36px);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.price-card.tier-bronze { border-color: var(--tier-bronze); --tier-glow: rgba(169,116,59,.30); }
.price-card.tier-silver { border-color: var(--tier-silver); --tier-glow: rgba(154,160,166,.38); }
.price-card.tier-gold   { border-color: var(--tier-gold); background: var(--ink); --tier-glow: rgba(201,162,75,.36); }

/* Lift on hover (or when a card's button has keyboard focus), casting a soft shadow in the
   card's own tier colour. */
.price-card {
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.price-card:hover,
.price-card:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px -18px var(--tier-glow, rgba(44,46,50,.2)), 0 6px 16px -8px var(--tier-glow, rgba(44,46,50,.2));
}
@media (prefers-reduced-motion: reduce) {
  .price-card:hover,
  .price-card:focus-within { transform: none; }
}

.price-card .tier-name {
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--maroon-deep);
}
.price-card.tier-bronze .tier-name { color: var(--tier-bronze-text); }
.price-card.tier-silver .tier-name { color: var(--tier-silver-text); }
.price-card.tier-gold .tier-name   { color: var(--tier-gold); }

.price-card .price {
  margin: 22px 0 6px;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: clamp(2.8rem, 2rem + 1.8vw, 3.5rem);
  line-height: 1;
  letter-spacing: -.025em;
  color: var(--ink);
}
.price-card .price small {
  font-family: var(--sans);
  font-size: .9rem;
  letter-spacing: 0;
  color: var(--slate);
}
.price-card .modules {
  margin-bottom: 30px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--rule);
  font-size: .92rem;
  color: var(--slate);
}
.price-card ul { flex: 1; list-style: none; margin: 0 0 32px; padding: 0; }
.price-card ul li {
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
  font-size: .95rem;
  color: var(--graphite);
}
.price-card ul li:first-child { padding-top: 0; }
.price-card ul li:last-child { border-bottom: 0; }
.price-card .btn { width: 100%; justify-content: space-between; }

.price-card.tier-gold::before {
  content: "Recommended";
  position: absolute;
  top: -11px;
  left: clamp(26px, 2.6vw, 36px);
  padding: 4px 10px;
  border-radius: 2px;
  background: var(--tier-gold);
  color: var(--ink);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.price-card.tier-gold .price { color: var(--bone); }
.price-card.tier-gold .price small,
.price-card.tier-gold .modules,
.price-card.tier-gold .domain-icons .dlabel { color: var(--slate-lt); }
.price-card.tier-gold .modules { border-bottom-color: rgba(241,239,232,.14); }
.price-card.tier-gold ul li { color: var(--bone); border-bottom-color: rgba(241,239,232,.14); }
.price-card.tier-gold .dicon { background: rgba(241,239,232,.08); }
.price-card.tier-gold .dicon svg { stroke: var(--accent-lt, var(--accent)); }
.price-card.tier-gold .domain-icons .dicon:hover { background: rgba(241,239,232,.18); }
.price-card.tier-gold .domain-icons .dicon:hover svg { stroke: var(--accent-lt, var(--accent)); }
.price-card.tier-gold .dicon.off { background: transparent; border-color: rgba(241,239,232,.2); }
.price-card.tier-gold .dicon.off svg { stroke: rgba(241,239,232,.35); }
.price-card.tier-gold .dicon[data-label]::after { background: var(--bone); color: var(--ink); }
.price-card.tier-gold .dicon[data-label]::before { border-top-color: var(--bone); }
.price-card.tier-gold .btn { background: var(--tier-gold); border-color: var(--tier-gold); color: var(--ink); }
.price-card.tier-gold .btn:hover { background: #D8B567; border-color: #D8B567; }

.pricing-note {
  max-width: 620px;
  margin: 36px auto 0;
  text-align: center;
  font-size: .95rem;
  color: var(--slate);
}

/* ------------------------------------------------------------------ Request an Audit modal */

html.modal-open { overflow: hidden; }
.contact-modal {
  width: min(660px, calc(100% - 24px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: var(--surface);
  color: var(--graphite);
  box-shadow: 0 40px 90px -20px rgba(20,21,24,.45);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.contact-modal::backdrop { background: rgba(44,46,50,.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.contact-modal[open] { animation: cm-in .32s var(--ease) both; }
.contact-modal[open]::backdrop { animation: cm-fade .32s ease both; }
@keyframes cm-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes cm-fade { from { opacity: 0; } to { opacity: 1; } }
.contact-modal [hidden] { display: none !important; }

.cm-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 26px 30px 22px;
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}
.cd-badge {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blush);
}
.cd-badge svg { width: 20px; height: 20px; fill: none; stroke: var(--maroon-deep); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cd-text { flex: 1 1 auto; min-width: 0; }
.cd-title {
  margin: 0;
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.012em;
  color: var(--ink);
}
.cd-sub { margin: 4px 0 0; font-size: .92rem; color: var(--slate); }
.cm-close {
  position: relative;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  background: transparent;
  cursor: pointer;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), background-color .2s ease, border-color .2s ease;
}
.cm-close::before,
.cm-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--ink);
  transform: translate(-50%, -50%) rotate(45deg);
}
.cm-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.cm-close:hover { transform: rotate(90deg); background: var(--ink); border-color: var(--ink); }
.cm-close:hover::before,
.cm-close:hover::after { background: var(--bone); }
.cm-body { padding: 26px 30px 32px; }

.cd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 20px; }
.cd-wide { grid-column: 1 / -1; }
.cd-field { display: flex; flex-direction: column; gap: 8px; }
.cd-field > span { font-size: .85rem; font-weight: 500; color: var(--ink); }
.cd-opt { margin-left: 6px; font-size: .78rem; font-weight: 400; color: var(--slate); }
.cd-field input,
.cd-field select,
.cd-field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: .97rem;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--field-edge);
  border-radius: 3px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.cd-field textarea { min-height: 128px; resize: vertical; line-height: 1.55; }
.cd-field select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23686B71' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 16px;
}
.cd-field ::placeholder { color: var(--slate); opacity: 1; }
.cd-field input:focus,
.cd-field select:focus,
.cd-field textarea:focus {
  outline: none;
  border-color: var(--maroon-deep);
  box-shadow: 0 0 0 3px rgba(168,90,90,.2);
}
/* Off-screen rather than display:none, since some bots skip fields hidden outright. */
.cd-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.cd-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 26px; }
.cd-actions .btn[disabled] { opacity: .6; cursor: progress; }
.cd-status { flex: 1 1 240px; margin: 0; font-size: .9rem; color: var(--graphite); }
.cd-status.is-error { color: var(--error); }
.cd-status a { color: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.cd-done { outline: none; padding: 4px 0 2px; }
.cd-done-title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1.1;
  color: var(--ink);
}
.cd-done p { margin: 0; }

@media (max-width: 700px) {
  .cm-head { padding: 20px 20px 18px; gap: 12px; }
  .cd-badge { width: 38px; height: 38px; }
  .cd-title { font-size: 1.45rem; }
  .cm-body { padding: 20px 20px 26px; }
  .cd-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ Footer */

footer.site-footer {
  background: var(--ink);
  color: var(--hairline);
  padding: clamp(72px, 8vw, 104px) 0 36px;
}
footer.site-footer .foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
  gap: 48px;
  padding-bottom: clamp(56px, 6vw, 80px);
  border-bottom: 1px solid rgba(241,239,232,.12);
  margin-bottom: 28px;
}
@media (max-width: 900px) { footer.site-footer .foot-top { grid-template-columns: 1fr 1fr; gap: 44px 32px; } footer.site-footer .foot-logo { grid-column: 1 / -1; } }
@media (max-width: 480px) { footer.site-footer .foot-top { grid-template-columns: 1fr; } }

footer.site-footer .brand-logo { color: var(--bone); margin-bottom: 26px; }
footer.site-footer .brand-mark { width: 34px; }
footer.site-footer .brand-wordmark .l1 { color: var(--bone); }
footer.site-footer p { color: var(--hairline); font-size: .92rem; line-height: 1.65; max-width: 360px; }
footer.site-footer .foot-note { margin: 16px 0 0; color: var(--slate-lt); font-size: .85rem; }
footer.site-footer h4 {
  margin: 4px 0 22px;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--slate-lt);
}
footer.site-footer ul { list-style: none; margin: 0; padding: 0; }
footer.site-footer ul li { margin-bottom: 14px; }
footer.site-footer a { color: var(--hairline); }
footer.site-footer a:hover { color: var(--bone); text-decoration: none; }
footer.site-footer ul li a {
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: color .2s ease;
}
footer.site-footer a.t-bronze { color: var(--tier-bronze-lt); }
footer.site-footer a.t-silver { color: var(--tier-silver-lt); }
footer.site-footer a.t-gold   { color: var(--tier-gold); }
footer.site-footer a.t-bronze:hover,
footer.site-footer a.t-silver:hover,
footer.site-footer a.t-gold:hover { filter: brightness(1.18); }

footer.site-footer .foot-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: .8rem;
  color: var(--slate-lt);
}
footer.site-footer .foot-address { color: var(--slate-lt); }

/* The Valley, faintly, behind the footer: major roads and freeways from OpenStreetMap,
   drawn as light lines on the ink and faded out toward the top edge. */
footer.site-footer { position: relative; overflow: hidden; }
footer.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/valley-map.svg") center 42% / max(1600px, 110%) auto no-repeat;
  opacity: .085;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 45%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 45%);
}
footer.site-footer .wrap { position: relative; z-index: 1; }
footer.site-footer .foot-credit { color: var(--slate-lt); }
footer.site-footer .foot-credit a { font-size: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
footer.site-footer .foot-credit a:hover { color: var(--bone); }

.social-row { display: flex; gap: 10px; }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(241,239,232,.22);
  color: var(--bone);
  transition: border-color .2s ease, background-color .2s ease;
}
footer.site-footer .icon-btn { color: var(--bone); }
.icon-btn:hover { border-color: var(--maroon); background: rgba(168,90,90,.16); }
.icon-btn svg { width: 20px; height: 20px; }

/* ------------------------------------------------------------------ Utility */

.center { text-align: center; }
.center h2 { margin-left: auto; margin-right: auto; max-width: 14em; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack-top { margin-top: 28px; }
.stack-lg { margin-top: clamp(56px, 7vw, 96px); }
.sprite { position: absolute; }
.card-centered { display: flex; flex-direction: column; justify-content: center; }
.lede-center { max-width: 560px; margin: 0 auto 36px; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
