/* markfive.ai - Markfive native palette (ivory paper, stone, midnight navy, archival cobalt)
   blending Parkmont architectural hero, Raiseview institutional poise, and Hyphae editorial rails. */

:root {
  /* Markfive native archival palette */
  --paper: #f8f7f3;
  --paper-2: #f1efe9;
  --stone: #eceae3;
  --white: #ffffff;
  --ink: #131722;
  --ink-2: #444954;
  --mute: #6b717e;
  --rule: #e1dfd7;
  --rule-2: #c8c5bc;

  /* Markfive signature midnight navy & cobalt */
  --navy: #0e1624;
  --navy-deep: #0b111d;
  --navy-top: #090e18;
  --navy-line: rgba(236, 240, 247, 0.14);
  --navy-ink: #eef1f7;
  --navy-soft: #a6b0c0;
  --cobalt: #1d4fa0;
  --cobalt-hover: #2760bd;
  --sky: #7aa8e8;

  /* Typography */
  --font-serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-sans: "Mona Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --max-w: 78rem;
  --gutter: clamp(1.25rem, 3.2vw, 2.75rem);
  --nav-h: 78px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--navy-deep);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  background: var(--paper);
  color: var(--ink);
  overflow-x: clip;
}

section[id],
footer[id] {
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

h1, h2, h3, h4, p, ul, ol, dl, dt, dd, figure {
  margin: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
}

.hero :focus-visible,
.band-navy :focus-visible,
.band-deep :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--sky);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 100;
  background: var(--cobalt);
  color: var(--paper);
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
}

.skip-link:focus {
  left: 1rem;
}

.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ============================================================
   Top Announcement Strip (Raiseview institutional touch)
   ============================================================ */
.announce-bar {
  background: var(--navy-top);
  color: var(--navy-soft);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.announce-inner {
  min-height: 36px;
  padding-block: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem 0.9rem;
  text-align: center;
}

.announce-inner a {
  color: var(--sky);
  font-weight: 500;
  white-space: nowrap;
}

.announce-inner a:hover {
  color: var(--paper);
}

/* ============================================================
   Sticky Header (Transparent dark over hero -> ivory on scroll)
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(14, 22, 36, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  color: var(--navy-ink);
  transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(248, 247, 243, 0.96);
  border-bottom-color: var(--rule);
  color: var(--ink);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3.5vw, 3.25rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  flex: none;
}

.brand-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.02;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  opacity: 0.66;
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  list-style: none;
  padding: 0;
}

.nav-links a {
  font-size: 0.89rem;
  font-weight: 400;
  opacity: 0.82;
  padding: 0.25rem 0;
  transition: opacity 150ms ease;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-links a[aria-current="page"] {
  opacity: 1;
  border-bottom: 1px solid var(--sky);
}

.site-header.is-scrolled .nav-links a[aria-current="page"] {
  border-bottom-color: var(--cobalt);
  color: var(--cobalt);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 38px;
  padding: 0.45rem 0.72rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: inherit;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 2px;
  cursor: pointer;
}

.site-header.is-scrolled .nav-toggle {
  border-color: var(--rule-2);
}

.mobile-nav {
  position: sticky;
  top: var(--nav-h);
  z-index: 49;
  background: var(--navy-deep);
  color: var(--navy-ink);
  border-bottom: 1px solid var(--navy-line);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav-list {
  list-style: none;
  padding: 0.65rem 0 1rem;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.mobile-nav-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.78rem 0;
  font-size: 0.96rem;
  color: var(--navy-soft);
  border-bottom: 1px solid var(--navy-line);
}

.mobile-nav-list li:last-child a {
  border-bottom: 0;
}

.mobile-nav-list a:hover,
.mobile-nav-list a[aria-current="page"] {
  color: #ffffff;
}

.mobile-nav-list a[aria-current="page"]::after {
  content: "Current";
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sky);
}

/* Buttons & editorial links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.68rem 1.3rem;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 120ms var(--ease-out);
}

.btn:active {
  transform: translateY(1px);
}

.btn-nav {
  background: var(--cobalt);
  color: var(--paper);
}

.btn-nav:hover {
  background: var(--cobalt-hover);
}

.btn-cobalt {
  background: var(--cobalt);
  color: var(--paper);
  min-height: 48px;
  padding: 0.78rem 1.45rem;
  font-size: 0.92rem;
}

.btn-cobalt:hover {
  background: var(--cobalt-hover);
}

.btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.btn-arr {
  transition: transform 180ms var(--ease-out);
}

.btn:hover .btn-arr {
  transform: translateX(3px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--ink);
  transition: color 160ms ease, border-color 160ms ease;
}

.text-link:hover {
  color: var(--cobalt);
  border-bottom-color: var(--cobalt);
}

/* ============================================================
   Section 1: Hero (Parkmont architectural full-bleed dark slate)
   ============================================================ */
.hero {
  position: relative;
  min-height: min(82svh, 48rem);
  background: var(--navy);
  color: var(--navy-ink);
  display: flex;
  align-items: center;
  padding-block: clamp(4.5rem, 9vh, 7.5rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.78) contrast(1.03);
}

.hero-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    102deg,
    rgba(11, 17, 29, 0.92) 0%,
    rgba(14, 22, 36, 0.78) 46%,
    rgba(14, 22, 36, 0.46) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 44rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.hero-kicker {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--sky);
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 4.9vw, 4.25rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: #ffffff;
  max-width: 17.5ch;
}

.hero-lede {
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  line-height: 1.65;
  color: rgba(238, 241, 247, 0.86);
  max-width: 52ch;
}

.hero-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.65rem;
  width: 100%;
}

.hero-tile {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-width: 12.75rem;
  min-height: 48px;
  padding: 0.75rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: #ffffff;
  background: rgba(14, 22, 36, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 2px;
  transition: background-color 160ms ease, border-color 160ms ease, transform 140ms var(--ease-out);
}

.hero-tile:hover {
  background: rgba(29, 79, 160, 0.42);
  border-color: rgba(255, 255, 255, 0.48);
}

.hero-tile-primary {
  background: var(--cobalt);
  border-color: var(--cobalt);
}

.hero-tile-primary:hover {
  background: var(--cobalt-hover);
  border-color: var(--cobalt-hover);
}

.tile-arr {
  transition: transform 160ms var(--ease-out);
}

.hero-tile:hover .tile-arr {
  transform: translateX(3px);
}

/* ============================================================
   Subpage Hero & Page-Specific Components (6-page system)
   ============================================================ */
.sub-hero {
  background: var(--navy);
  color: var(--navy-ink);
  padding-block: clamp(3.75rem, 7.5vh, 5.75rem);
  border-bottom: 1px solid var(--navy-line);
}

.sub-hero-inner {
  max-width: 50rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.sub-hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 4.2vw, 3.65rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #ffffff;
  max-width: 19ch;
}

.sub-hero-lede {
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  line-height: 1.65;
  color: rgba(238, 241, 247, 0.84);
  max-width: 56ch;
}

/* Workflow Record Examples (Request -> Actions & Decisions -> Outcome) */
.workflow-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.workflow-card {
  background: var(--white);
  border: 1px solid var(--rule);
}

.workflow-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
}

.workflow-sector {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.32rem;
  line-height: 1.25;
  color: var(--ink);
}

.workflow-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--cobalt);
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--rule);
}

.workflow-step {
  padding: 1.35rem 1.5rem;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.workflow-step:last-child {
  border-right: 0;
}

.workflow-step-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mute);
}

.workflow-step p {
  font-size: 0.93rem;
  line-height: 1.58;
  color: var(--ink-2);
}

.workflow-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 2rem;
  padding: 1.1rem 1.5rem 1.25rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-2);
}

.workflow-meta strong {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--mute);
  margin-bottom: 0.2rem;
}

/* Role Split Grid (Markfive vs Specialist Partner/Buyer vs Owner) */
.role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.role-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--rule-2);
  padding: 1.55rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.role-card-accent {
  border-top-color: var(--cobalt);
}

.role-card-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.28rem;
  line-height: 1.25;
  color: var(--ink);
}

.role-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.role-list li {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-2);
  padding-left: 1rem;
  position: relative;
}

.role-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 1px;
  background: var(--cobalt);
}

/* Preparation Checklist */
.prep-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.prep-item {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.prep-num {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cobalt);
}

.prep-item h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--ink);
}

.prep-item p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-2);
}

/* Shared Dark Closing CTA Band (with page-specific invitation) */
.cta-band-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem 3rem;
}

.cta-band-copy {
  max-width: 40rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.cta-band-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.cta-band-text {
  font-size: 0.98rem;
  line-height: 1.62;
  color: var(--navy-soft);
  max-width: 50ch;
}

.cta-band-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.cta-band-note {
  font-size: 0.8rem;
  color: rgba(238, 241, 247, 0.6);
}

/* Contact Page Next-Steps List & Optional Secondary Booking Link */
.next-steps-list {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
  border-top: 1px solid var(--navy-line);
}

.next-steps-list li {
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--navy-line);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--navy-soft);
}

.next-steps-list strong {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--sky);
  margin-bottom: 0.25rem;
}

.booking-alt {
  margin-top: 1.4rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--navy-line);
  font-size: 0.9rem;
  color: var(--navy-soft);
}

.booking-alt a {
  color: var(--sky);
  border-bottom: 1px solid rgba(122, 168, 232, 0.5);
  margin-left: 0.35rem;
}

.booking-alt a:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

/* ============================================================
   Shared Editorial Band & 12-Col Rail Structure (Hyphae rhythm)
   ============================================================ */
.band {
  padding-block: clamp(4.5rem, 8.5vh, 7rem);
}

.band-paper {
  background: var(--paper);
  color: var(--ink);
}

.band-stone {
  background: var(--stone);
  color: var(--ink);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.band-navy {
  background: var(--navy);
  color: var(--navy-ink);
}

.band-deep {
  background: var(--navy-deep);
  color: var(--navy-ink);
}

.rail-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.rail-col {
  grid-column: 1 / 4;
  padding-top: 0.85rem;
  border-top: 1px solid var(--rule-2);
}

.band-navy .rail-col {
  border-top-color: var(--navy-line);
}

.content-col {
  grid-column: 4 / 13;
}

.kicker {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--mute);
}

.kicker-light {
  color: var(--sky);
}

.sub-kicker {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--mute);
  margin-top: 3rem;
  margin-bottom: 1.25rem;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.95rem, 3.2vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 24ch;
}

.title-light {
  color: #ffffff;
}

.body-copy {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 56ch;
  margin-top: 1.35rem;
}

.section-link-row {
  margin-top: 2.25rem;
}

/* ============================================================
   Section 2: Trades & Live Fit Explorer
   ============================================================ */
.trade-explorer {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.75rem, 3vw, 2.75rem);
  margin-top: 2.75rem;
  align-items: start;
}

.trade-selector-col {
  grid-column: 1 / 6;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.trade-list {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.trade-btn {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0.25rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  cursor: pointer;
  transition: color 160ms ease, padding-left 180ms var(--ease-out), border-color 160ms ease;
}

.trade-name {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 400;
  color: var(--ink-2);
  transition: color 160ms ease;
}

.trade-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mute);
  flex: none;
}

.trade-btn:hover .trade-name {
  color: var(--ink);
}

.trade-btn[aria-pressed="true"] {
  padding-left: 0.75rem;
  border-left: 2px solid var(--cobalt);
  border-bottom-color: var(--cobalt);
}

.trade-btn[aria-pressed="true"] .trade-name {
  color: var(--cobalt);
  font-weight: 500;
}

.trade-btn[aria-pressed="true"] .trade-tag {
  color: var(--cobalt);
}

.fit-checker {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.fit-group {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.fit-label {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--mute);
}

.fit-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.fit-pill {
  border: 1px solid var(--rule-2);
  background: var(--white);
  color: var(--ink-2);
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0.45rem 0.78rem;
  min-height: 36px;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}

.fit-pill:hover {
  border-color: var(--cobalt);
  color: var(--ink);
}

.fit-pill[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--paper);
}

.trade-detail-col {
  grid-column: 6 / 13;
  background: var(--white);
  border: 1px solid var(--rule);
}

.trade-figure {
  overflow: hidden;
  background: var(--stone);
  border-bottom: 1px solid var(--rule);
}

.trade-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: opacity 220ms ease;
}

.trade-photo.is-swapping {
  opacity: 0.15;
}

.trade-readout {
  padding: 1.5rem 1.65rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.readout-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--cobalt);
  background: rgba(29, 79, 160, 0.09);
  padding: 0.32rem 0.65rem;
  border-radius: 2px;
}

.trade-fact {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ink);
}

.fit-verdict {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-2);
  padding-top: 0.95rem;
  border-top: 1px solid var(--rule);
  width: 100%;
}

/* ============================================================
   Section 3: Warm Stone Band + 3 White Editorial Cards
   ============================================================ */
.stone-intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2rem;
  align-items: start;
}

.stone-intro-copy {
  grid-column: 1 / 8;
}

.stone-thumb {
  grid-column: 8 / 13;
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 0.55rem;
}

.stone-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.cards-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.ed-card {
  background: var(--white);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
}

.ed-card-media {
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  background: var(--paper-2);
}

.ed-card-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ed-card-body {
  padding: 1.4rem 1.45rem 1.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.card-kicker {
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cobalt);
}

.card-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.32rem;
  line-height: 1.22;
  color: var(--ink);
}

.card-copy {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ============================================================
   Section 4 & 7: Editorial Ledger Rows
   ============================================================ */
.ledger {
  margin-top: 2.5rem;
  border-top: 1px solid var(--rule);
}

.ledger-compact {
  margin-top: 2rem;
}

.ledger-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1.25rem 2.5rem;
  padding-block: 1.65rem;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}

.ledger-row-stack {
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

.ledger-head {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.22rem;
  line-height: 1.32;
  color: var(--ink);
}

.ledger-copy {
  font-size: 0.96rem;
  line-height: 1.62;
  color: var(--ink-2);
}

/* ============================================================
   Section 5: Midnight Slate-Navy Comparison Band
   ============================================================ */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 3rem;
  border: 1px solid var(--navy-line);
}

.compare-col {
  padding: 1.75rem 1.4rem 2rem;
  border-right: 1px solid var(--navy-line);
  display: flex;
  flex-direction: column;
  gap: 1.45rem;
}

.compare-col:last-child {
  border-right: 0;
}

.compare-col-markfive {
  background: rgba(122, 168, 232, 0.08);
  border-top: 2px solid var(--sky);
  margin-top: -1px;
}

.compare-col-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.2;
  color: #ffffff;
}

.compare-col-markfive .compare-col-title {
  color: var(--sky);
}

.compare-dl {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.compare-dl dt {
  font-size: 0.66rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy-soft);
  margin-top: 1rem;
}

.compare-dl dt:first-child {
  margin-top: 0;
}

.compare-dl dd {
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(238, 241, 247, 0.9);
}

/* ============================================================
   Section 6: The Firm Split
   ============================================================ */
.about-split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2.5rem;
  align-items: start;
}

.about-copy-col {
  grid-column: 1 / 8;
}

.about-media {
  grid-column: 8 / 13;
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 0.65rem;
}

.about-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-caption {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--mute);
  padding-top: 0.65rem;
}

/* ============================================================
   Section 8: Contact Band (Deep Midnight + Underlined Fields)
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: start;
}

.contact-intro {
  grid-column: 1 / 6;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.contact-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.15rem, 3.6vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: #ffffff;
  max-width: 15ch;
}

.contact-copy {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--navy-soft);
  max-width: 40ch;
}

.contact-form-wrap {
  grid-column: 7 / 13;
}

.contact-track-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.contact-track-btn {
  border: 1px solid var(--navy-line);
  background: transparent;
  color: var(--navy-soft);
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0.48rem 0.95rem;
  min-height: 38px;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.contact-track-btn:hover {
  border-color: var(--navy-ink);
  color: #ffffff;
}

.contact-track-btn[aria-pressed="true"] {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #ffffff;
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1.75rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--navy-soft);
}

.field-opt {
  font-weight: 400;
  color: rgba(238, 241, 247, 0.5);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  color: #ffffff;
  border: 0;
  border-bottom: 1px solid rgba(238, 241, 247, 0.26);
  border-radius: 0;
  padding: 0.65rem 0;
  font-size: 1rem;
  line-height: 1.45;
  transition: border-color 160ms ease;
}

.field select option {
  background: var(--navy-deep);
  color: #ffffff;
}

.field textarea {
  resize: vertical;
  min-height: 76px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--sky);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-bottom-color: #e07a5f;
}

.form-actions {
  margin-top: 2rem;
}

.form-status {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.55;
  min-height: 1.5rem;
}

.form-status:not(:empty) {
  padding: 1rem 1.25rem;
  border-radius: 2px;
}

.form-status.is-ok {
  background: rgba(29, 79, 160, 0.28);
  border: 1px solid var(--sky);
  color: #ffffff;
}

.form-status.is-error {
  background: rgba(194, 85, 47, 0.18);
  border: 1px solid #d4714e;
  color: #ffffff;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--navy-top);
  color: var(--navy-ink);
  border-top: 1px solid var(--navy-line);
  padding-block: 4rem 2.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--navy-line);
}

.footer-brand-col {
  grid-column: 1 / 6;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-brand-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: #ffffff;
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--navy-soft);
  max-width: 38ch;
}

.footer-cols {
  grid-column: 8 / 13;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.footer-col-label {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(238, 241, 247, 0.5);
  margin-bottom: 0.9rem;
}

.footer-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--navy-soft);
}

.footer-list a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  font-size: 0.84rem;
  color: rgba(238, 241, 247, 0.56);
}

.footer-bottom a {
  color: var(--navy-ink);
  border-bottom: 1px solid rgba(238, 241, 247, 0.32);
}

.footer-bottom a:hover {
  color: var(--sky);
  border-bottom-color: var(--sky);
}

/* ============================================================
   Tablet & Narrow Desktop (<= 1024px)
   Collapse all 12-col grids to 1fr so column gaps never overflow
   ============================================================ */
@media (max-width: 1024px) {
  .rail-layout,
  .trade-explorer,
  .stone-intro,
  .about-split,
  .contact-layout,
  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }

  .rail-col,
  .content-col,
  .trade-selector-col,
  .trade-detail-col,
  .stone-intro-copy,
  .stone-thumb,
  .about-copy-col,
  .about-media,
  .contact-intro,
  .contact-form-wrap,
  .footer-brand-col,
  .footer-cols {
    grid-column: auto;
    min-width: 0;
  }

  .stone-thumb { max-width: 30rem; }
  .about-media { max-width: 34rem; }

  .cards-three { grid-template-columns: minmax(0, 1fr); }
  .role-grid { grid-template-columns: minmax(0, 1fr); }
  .workflow-steps { grid-template-columns: minmax(0, 1fr); }
  .workflow-step { border-right: 0; border-bottom: 1px solid var(--rule); }
  .workflow-step:last-child { border-bottom: 0; }
  .workflow-meta { grid-template-columns: minmax(0, 1fr); }
  .prep-grid { grid-template-columns: minmax(0, 1fr); }

  .compare-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare-col { border-bottom: 1px solid var(--navy-line); }
  .compare-col:nth-child(2n) { border-right: 0; }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

/* ============================================================
   Phone (<= 640px)
   ============================================================ */
@media (max-width: 640px) {
  :root {
    --nav-h: 64px;
    --gutter: 1.1rem;
  }

  .announce-bar {
    font-size: 0.75rem;
    line-height: 1.35;
  }

  .announce-inner {
    min-height: 0;
    padding-block: 0.45rem;
    gap: 0.25rem 0.5rem;
  }

  .header-inner {
    gap: 0.75rem;
  }

  .header-left {
    gap: 0.65rem;
    min-width: 0;
  }

  .brand {
    gap: 0.5rem;
  }

  .brand-mark {
    width: 24px;
    height: 24px;
  }

  .brand-name {
    font-size: 1.12rem;
  }

  .brand-sub {
    font-size: 0.56rem;
    letter-spacing: 0.14em;
  }

  .site-header .btn {
    padding: 0.48rem 0.78rem;
    font-size: 0.78rem;
    min-height: 38px;
  }

  .band {
    padding-block: 3.5rem;
  }

  .hero {
    min-height: auto;
    padding-block: 3.25rem 3.5rem;
  }

  .hero-title {
    font-size: clamp(2.1rem, 9.2vw, 2.75rem);
    max-width: 100%;
  }

  .hero-lede {
    font-size: 0.96rem;
  }

  .hero-tile {
    width: 100%;
    min-width: 0;
  }

  .section-title {
    font-size: clamp(1.7rem, 7.2vw, 2.2rem);
    max-width: 100%;
  }

  .trade-btn {
    padding: 0.85rem 0.15rem;
    gap: 0.65rem;
  }

  .trade-name {
    font-size: 1.12rem;
  }

  .trade-tag {
    font-size: 0.66rem;
  }

  .fit-checker {
    padding: 1rem;
  }

  .fit-pill {
    padding: 0.42rem 0.62rem;
    font-size: 0.8rem;
  }

  .trade-readout {
    padding: 1.2rem 1.15rem 1.4rem;
  }

  .ed-card-body {
    padding: 1.2rem 1.15rem 1.4rem;
  }

  .ledger-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.55rem;
    padding-block: 1.35rem;
  }

  .compare-grid {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 2rem;
  }

  .compare-col {
    border-right: 0;
    padding: 1.4rem 1.15rem 1.6rem;
  }

  .contact-title {
    font-size: clamp(1.85rem, 7.8vw, 2.35rem);
    max-width: 100%;
  }

  .contact-track-btn {
    padding: 0.45rem 0.72rem;
    font-size: 0.8rem;
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .form-actions .btn-cobalt {
    width: 100%;
  }

  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}
