/* Chain Commerce LLC
   Display: IBM Plex Serif. Body/UI: IBM Plex Sans.
   Cool paper, river navy, and steel — a Louisville commercial office. */

@font-face {
  font-family: "IBM Plex Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/plex-serif-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/plex-serif-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/plex-serif-400i-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/plex-serif-400i-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Serif";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/plex-serif-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Serif";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/plex-serif-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Serif";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/plex-serif-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Serif";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/plex-serif-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/plex-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/plex-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/plex-sans-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/plex-sans-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #E9EDF0;
  --paper-2: #F4F6F8;
  --mist: #D5DCE3;
  --ink: #151A22;
  --ink-2: #2A3340;
  --muted: #5A6573;
  --rule: #C5CED6;
  --rule-strong: #A8B3BE;
  --river: #1E4F7A;
  --river-hover: #163C5C;
  --deep: #0E1620;
  --deep-2: #16202C;
  --on-dark: #E8EDF2;
  --on-dark-muted: #A8B4C2;
  --steel: #7AA0C4;
  --font-serif: "IBM Plex Serif", "Georgia", "Times New Roman", serif;
  --font-sans: "IBM Plex Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --header-h: 4.5rem;
  --page: 72rem;
  --gutter: clamp(1.25rem, 4vw, 3.25rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --focus: 2px solid var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
address { font-style: normal; }

:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -5rem;
  z-index: 200;
  background: var(--ink);
  color: var(--on-dark);
  padding: 0.55rem 0.95rem;
  font-size: 0.9rem;
}
.skip-link:focus { top: 0.7rem; }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.display {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.display em {
  font-style: italic;
  font-weight: 400;
  color: var(--river);
}
.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 38rem;
}
.body-copy {
  max-width: 40rem;
  color: var(--ink-2);
}
.body-copy p + p { margin-top: 1rem; }
.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.95rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

/* ---------- layout ---------- */
.wrap {
  width: min(var(--page), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}
.section {
  padding-block: clamp(3.5rem, 7.5vw, 6.5rem);
}
.section-head {
  display: grid;
  gap: 0.95rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  max-width: 40rem;
}
.tight { padding-top: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 3px solid var(--deep);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--rule);
  background: color-mix(in srgb, var(--paper) 96%, transparent);
}
.header-inner {
  height: calc(var(--header-h) - 3px);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  margin-right: auto;
}
.mark {
  width: 2.05rem;
  height: 2.05rem;
  flex: 0 0 auto;
  color: var(--ink);
}
.mark .link-accent { stroke: var(--river); }
.wordmark-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 0.2rem;
}
.wordmark-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  font-weight: 500;
}
.wordmark-suffix {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 1.65rem;
}
.primary-nav a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-2);
  padding-block: 0.3rem;
  border-bottom: 1px solid transparent;
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--river);
}
.header-cta { flex: 0 0 auto; }
.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--rule-strong);
  position: relative;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease), top 0.2s var(--ease);
}
.nav-toggle::before { top: 0.85rem; }
.nav-toggle span { top: 50%; transform: translateY(-50%); }
.nav-toggle::after { top: 1.65rem; }
.nav-toggle[aria-expanded="true"]::before {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span { opacity: 0; }
.nav-toggle[aria-expanded="true"]::after {
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}
.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--paper-2);
  z-index: 40;
  padding: 1.5rem var(--gutter) 2.5rem;
  overflow: auto;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 8vw, 2.55rem);
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
  letter-spacing: -0.02em;
}
.mobile-nav .mobile-cta {
  margin-top: 1.75rem;
  display: inline-flex;
  font-family: var(--font-sans);
  font-size: 1rem;
}
body.nav-open { overflow: hidden; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.55rem 1.25rem;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn-accent {
  background: var(--river);
  color: #F4F8FB;
  border-color: var(--river);
}
.btn-accent:hover { background: var(--river-hover); border-color: var(--river-hover); }
.btn-accent:focus-visible { outline-color: var(--river); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper-2); }
.btn-light {
  background: transparent;
  color: var(--on-dark);
  border-color: color-mix(in srgb, var(--on-dark) 45%, transparent);
}
.btn-light:hover { background: var(--on-dark); color: var(--deep); }
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.text-link {
  color: var(--river);
  font-weight: 600;
  border-bottom: 1px solid color-mix(in srgb, var(--river) 40%, transparent);
}
.text-link:hover { border-bottom-color: var(--river); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(2.25rem, 5.5vw, 4.5rem);
  padding-bottom: clamp(2.75rem, 6vw, 5rem);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
}
.hero-copy {
  max-width: 38rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 0.5rem;
}
.hero .eyebrow { margin-bottom: 1.1rem; color: var(--river); }
.hero h1 {
  font-size: clamp(2.45rem, 5.8vw, 4.6rem);
  margin-bottom: 1.25rem;
}
.hero-art {
  position: relative;
  background: var(--deep);
  overflow: hidden;
}
.hero-art img,
.hero-art svg {
  width: 100%;
  height: auto;
  display: block;
}
.hero-rail { display: none; }

/* ---------- facts ---------- */
.facts {
  border-block: 1px solid var(--rule);
  background: var(--paper-2);
}
.facts-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.facts-list > div {
  padding: 1.4rem 1.5rem 1.4rem 0;
  border-right: 1px solid var(--rule);
  margin-right: 1.5rem;
}
.facts-list > div:last-child {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}
.facts-list dt {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}
.facts-list dd {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

/* ---------- services (2x2 grid, distinct from stacked lists) ---------- */
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.service-grid a {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.7rem;
  padding: 1.6rem 1.6rem 1.7rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  min-height: 14rem;
  background: var(--paper);
  transition: background 0.2s var(--ease);
}
.service-grid a:hover { background: var(--paper-2); }
.service-grid a:hover .service-name { color: var(--river); }
.service-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--river);
}
.service-name {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.3vw, 1.9rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
  transition: color 0.2s var(--ease);
}
.service-brief {
  color: var(--ink-2);
  max-width: 32rem;
  font-size: 0.98rem;
}
.service-more {
  margin-top: auto;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.service-grid a:hover .service-more { color: var(--river); }

.service-detail {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  gap: 0 1.5rem;
  padding-block: clamp(2.15rem, 5vw, 3.4rem);
  border-bottom: 1px solid var(--rule);
}
.service-detail:first-of-type { border-top: 1px solid var(--rule); }
.service-detail h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
  grid-column: 2;
}
.service-detail .service-num { grid-row: 1 / 3; padding-top: 0.35rem; }
.service-detail .body-copy { grid-column: 2; }
.service-detail ul {
  margin-top: 1.15rem;
  display: grid;
  gap: 0.55rem;
}
.service-detail li {
  padding-left: 1.15rem;
  position: relative;
  color: var(--ink-2);
  list-style: none;
}
.service-detail li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.55rem;
  height: 1px;
  background: var(--river);
}

/* ---------- approach ---------- */
.approach-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.approach-list li {
  padding: 1.7rem 1.5rem 0 0;
  border-right: 1px solid var(--rule);
  margin-right: 1.5rem;
}
.approach-list li:last-child {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}
.approach-list .step {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.65rem;
  color: var(--river);
  margin-bottom: 0.85rem;
  letter-spacing: -0.03em;
}
.approach-list h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.7rem;
}
.approach-list p { color: var(--ink-2); font-size: 0.98rem; }

/* ---------- bands ---------- */
.band-deep {
  background: var(--deep);
  color: var(--on-dark);
}
.band-deep .eyebrow,
.band-deep .body-copy,
.band-deep p { color: var(--on-dark-muted); }
.band-deep h2 { color: var(--on-dark); }
.band-deep :focus-visible { outline-color: var(--on-dark); }
.note-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2.5rem;
  margin-top: 2rem;
}
.note-list h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--on-dark);
  margin-bottom: 0.55rem;
}

.office-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}
.office-address {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.3vw, 1.8rem);
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--on-dark);
}
.office-address a { border-bottom: 1px solid color-mix(in srgb, var(--on-dark) 35%, transparent); }
.office-address a:hover { border-bottom-color: var(--on-dark); }

.cta-band .section-title { max-width: 18ch; }
.cta-band .lede { margin-top: 1rem; }

/* ---------- page hero (inner) ---------- */
.page-hero {
  padding-top: clamp(2.75rem, 6.5vw, 5rem);
  padding-bottom: clamp(2.4rem, 5vw, 3.6rem);
  border-bottom: 1px solid var(--rule);
}
.page-hero h1 {
  font-size: clamp(2.45rem, 5.6vw, 4.2rem);
  max-width: 18ch;
  margin: 0.85rem 0 1.15rem;
}
.page-hero .lede { max-width: 36rem; }
.page-hero .eyebrow { color: var(--river); }

/* ---------- about ---------- */
.prose {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
}
.prose .section-title { max-width: 14ch; }
.filing-list {
  display: grid;
  border-top: 1px solid var(--rule);
}
.filing-list div {
  display: grid;
  grid-template-columns: minmax(11rem, 0.38fr) 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
}
.filing-list dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.3rem;
}
.filing-list dd {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
.contact-cards {
  display: grid;
  border-top: 1px solid var(--rule);
}
.contact-cards article {
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--rule);
}
.contact-cards h2 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}
.contact-cards p,
.contact-cards a {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  line-height: 1.4;
}
.contact-cards a { border-bottom: 1px solid transparent; }
.contact-cards a:hover { border-bottom-color: var(--ink); }
.contact-cards .map-link {
  margin-top: 0.75rem;
  font-size: 1.02rem;
}

.inquiry {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: clamp(1.5rem, 3vw, 2.15rem);
}
.inquiry h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}
.inquiry .form-note {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.35rem;
  max-width: 36rem;
}
.field { display: grid; gap: 0.35rem; margin-bottom: 1rem; }
.field label {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  padding: 0.65rem 0;
  border-radius: 0;
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-bottom-color: var(--ink);
}
.field textarea { min-height: 8rem; resize: vertical; }
.form-status {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.form-status[hidden] { display: none; }

/* ---------- legal ---------- */
.legal {
  max-width: 40rem;
  padding-block: clamp(3rem, 7vw, 5rem);
}
.legal h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3.15rem);
  letter-spacing: -0.03em;
  margin: 0.5rem 0 1.25rem;
}
.legal h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.5rem;
  margin: 2rem 0 0.7rem;
}
.legal p + p { margin-top: 1rem; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { margin: 0.8rem 0 0 1.1rem; list-style: disc; }
.legal li { margin: 0.35rem 0; padding-left: 0.2rem; }

/* ---------- 404 ---------- */
.not-found {
  min-height: calc(100vh - var(--header-h) - 18rem);
  padding-block: clamp(4rem, 10vw, 7rem);
}
.not-found h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  margin: 0.6rem 0 1rem;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--deep);
  color: var(--on-dark);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  padding-bottom: 1.75rem;
}
.footer-brand {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--on-dark);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  max-width: 12ch;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid color-mix(in srgb, var(--on-dark) 16%, transparent);
}
.footer-grid h2 {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-bottom: 0.75rem;
}
.footer-grid p,
.footer-grid a,
.footer-grid li {
  color: var(--on-dark);
  line-height: 1.55;
}
.footer-grid a { border-bottom: 1px solid transparent; }
.footer-grid a:hover { border-bottom-color: color-mix(in srgb, var(--on-dark) 50%, transparent); }
.footer-nav { display: grid; gap: 0.35rem; }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.35rem;
  color: var(--on-dark-muted);
  font-size: 0.9rem;
}
.footer-legal { display: flex; gap: 1.25rem; }
.footer-legal a:hover { color: var(--on-dark); }
.site-footer :focus-visible { outline-color: var(--on-dark); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .primary-nav,
  .header-cta { display: none; }
  .nav-toggle { display: inline-block; }
  .hero-grid,
  .prose,
  .contact-grid,
  .office-grid,
  .note-list,
  .footer-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }
  .facts-list,
  .approach-list {
    grid-template-columns: 1fr 1fr;
  }
  .facts-list > div,
  .approach-list li {
    border-right: 0;
    margin-right: 0;
    padding-right: 0;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid var(--rule);
  }
  .facts-list > div:nth-child(odd),
  .approach-list li:nth-child(odd) {
    padding-right: 1.25rem;
    border-right: 1px solid var(--rule);
  }
  .service-detail {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: 0.35rem 0.9rem;
  }
  .service-detail h2,
  .service-detail .body-copy { grid-column: 2 / -1; }
  .hero-art { min-height: 0; }
  .service-grid a { min-height: 0; padding: 1.4rem 0 1.5rem 0; border-right: 0; border-left: 0; }
  .service-grid { border-left: 0; }
}

@media (max-width: 640px) {
  body { font-size: 1.02rem; }
  .facts-list,
  .approach-list { grid-template-columns: 1fr; }
  .facts-list > div,
  .facts-list > div:nth-child(odd),
  .approach-list li,
  .approach-list li:nth-child(odd) {
    border-right: 0;
    padding-right: 0;
  }
  .btn { width: 100%; }
  .footer-base { flex-direction: column; }
}

@media (min-width: 1100px) {
  .hero-rail {
    display: block;
    position: absolute;
    left: calc(var(--gutter) * 0.1);
    top: 3rem;
    bottom: 2.5rem;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  .site-header, .nav-toggle, .mobile-nav, .btn-row, .inquiry { display: none !important; }
  body { background: #fff; color: #000; }
  .site-footer, .band-deep { background: #fff; color: #000; }
  a[href^="http"]::after, a[href^="mailto"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
}
