/* Odiorne Advisory Services — site styles
   Generic, monochrome scaffold. Brand colors come later.
   ------------------------------------------------------------------ */

:root {
  /* Brand palette — Odiorne Advisory Services
     Beacon Navy carries authority; soft Sunset Coral carries warmth.
     A tropical reef + sunset secondary set extends the palette without
     pulling attention from the primaries. */
  --beacon-navy:#1B2F4E;
  --deep-sea:   #0F4A5E;

  /* Tropical-reef secondaries (greens, blues, yellows, pinks of a reef at
     golden hour). Use sparingly — primarily in imagery + accents. */
  --marigold:      #F4C26B;
  --reef-coral:    #E26D7C;
  --hibiscus:      #D44A6E;
  --sea-glass:     #8FB4A3;
  --tropical-teal: #2A8B8E;
  --twilight:      #5D4E6D;

  /* Legacy aliases (some older selectors still reference these names). */
  --harbor-gold: var(--marigold);
  --dusk-rose:   var(--reef-coral);

  /* Semantic — primary surfaces, ink, accent */
  --ink:        #1B2F4E;      /* Beacon Navy carries heading + ground */
  --ink-soft:   #2A3F62;
  --ink-true:   #1A1612;      /* True near-black, sparingly */
  --paper:      #CFE4F5;      /* Pale sky blue — primary surface */
  --paper-2:    #CFE4F5;      /* Unified sky-blue ground — same as --paper */
  --paper-3:    #C7D3E1;      /* Horizon, deeper */
  --card:       #EAF3FC;      /* Lighter panel surface — lifts cards off the sky-blue ground */
  --stone-700:  #3F4A5C;      /* Body text — cool slate */
  --stone-500:  #596478;      /* Secondary text — cool slate (AA on paper & card) */
  --stone-300:  #B5BDCB;
  --rule:       rgba(27, 47, 78, 0.16);
  --rule-soft:  rgba(27, 47, 78, 0.07);
  --accent:     #E89B7E;      /* Soft Sunset Coral — the brand's warmth */
  --accent-deep:#C4715F;      /* hover state */
  --accent-soft:#F7DDD2;
  --accent-text:#A4432A;      /* Text-safe coral — small type on light surfaces */
  --cream:      #FCFAF6;      /* Legacy cream — on-navy text & rules only */

  /* Light sunset variant for tile back faces — a washed sunset that
     keeps navy text comfortably readable. */
  --sunset-gradient-light: linear-gradient(160deg,
    #FFF4E0 0%, #FCE2C5 28%, #F9CDC0 56%, #F1B9C0 80%, #C9DCDC 100%);

  /* The sunset, vertical — softer than the original, leaning into reef tones.
     Reserved for hero accents, badge interior, CTA. */
  --sunset-gradient: linear-gradient(180deg,
    #FBE0B5 0%, #F4C26B 22%, #E89B7E 52%, #E26D7C 78%, #2A8B8E 100%);
  --sunset-gradient-soft: linear-gradient(180deg,
    rgba(244,194,107,0.20) 0%, rgba(232,155,126,0.18) 55%, rgba(42,139,142,0.22) 100%);

  /* Type — Cinzel (wordmark, Roman caps) · Cormorant Garamond (display + editorial)
     · Source Sans 3 (body + UI). */
  --display: "Cormorant Garamond", "Hoefler Text", "Iowan Old Style", Garamond, serif;
  --serif:   "Cormorant Garamond", "Hoefler Text", "Iowan Old Style", Garamond, serif;
  --wordmark:"Cinzel", "Trajan Pro", "Cormorant Garamond", serif;
  --sans:    "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:    ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Layout */
  --container: 1800px;
  --gutter:    32px;
  --section-y: clamp(80px, 10vw, 140px);
}

/* ─── Reset / base ──────────────────────────────────────────────── */

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

html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease, opacity .2s ease, border-color .2s ease;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

/* ─── Utilities ─────────────────────────────────────────────────── */

.container {
  width: 90%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 0;
}

.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone-500);
}

.eyebrow--dot::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: 1px;
}

.rule { height: 1px; background: var(--rule); border: 0; }

.section { padding-block: var(--section-y); }
.section--quiet { background: var(--paper-2); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
}

.section-head h2 {
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.02;
  margin-top: 18px;
  max-width: 14ch;
}

.section-head p.lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--stone-700);
  max-width: 48ch;
}

@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; gap: 22px; }
}

/* Reveal on scroll — handled entirely by JS.
   Default state is VISIBLE; site.js inline-sets the hidden state only on
   below-fold elements, then clears it on intersect. This way the page is
   correct without JS (graceful degradation) and in any capture/scrape
   context that doesn't run our reveal logic. */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transition: none !important; }
}

/* ─── Buttons ───────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  background: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.btn--primary  { background: var(--ink);    color: var(--paper); }
.btn--primary:hover  { background: var(--accent); color: var(--ink); }

.btn--ghost    { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.btn .arrow {
  display: inline-block;
  width: 14px; height: 1px;
  background: currentColor;
  position: relative;
  transition: width .2s ease;
}
.btn .arrow::after {
  content: "";
  position: absolute;
  right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn:hover .arrow { width: 22px; }

/* Quiet text link with animated underline */
.link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 4px;
  font-weight: 500;
}
.link:hover { border-color: var(--ink); }
.link .arrow { width: 12px; }
.link:hover .arrow { width: 20px; }

/* ─── Nav ───────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule-soft);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

/* Brand wordmark — geometric lighthouse + ODIORNE + tagline */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand__mark {
  height: 38px;
  width: auto;
  flex-shrink: 0;
  display: block;
  color: var(--beacon-navy);
}
.brand__mark .light { fill: var(--accent); }
.brand__words {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1;
  padding-top: 2px;
}
.brand__name {
  font-family: var(--wordmark);
  font-size: 17px;
  font-weight: 600;
  color: var(--beacon-navy);
  letter-spacing: 0.16em;
  padding-left: 0.16em;
  text-transform: uppercase;
}
.brand__tag {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.30em;
  color: var(--accent-text);
  text-transform: uppercase;
  padding-left: 0.30em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__links a {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--stone-700);
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--ink); }

.nav__cta { display: flex; gap: 12px; align-items: center; }

.nav__portal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--rule);
  padding: 10px 16px;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav__portal:hover { background: var(--ink); color: var(--paper); }
.nav__portal svg { width: 12px; height: 12px; }

.nav__toggle {
  display: none;
  border: 0;
  background: none;
  cursor: pointer;
  width: 44px; height: 44px; /* 44px minimum touch target */
  padding: 0;
}
.nav__toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
  margin: 5px auto;
  transition: transform .25s ease, opacity .25s ease;
}
.nav.open .nav__toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav__toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Client Portal link inside the dropdown — only shown ≤600px (see below) */
.nav__links .nav__link--portal { display: none; }

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 8px 0;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease, visibility .2s ease;
  }
  .nav__links a {
    width: 100%; padding: 16px var(--gutter);
    border-bottom: 1px solid var(--rule-soft);
    font-size: 18px; color: var(--ink);
  }
  /* The portal button + hamburger stay visible in the header row. */
  .nav__cta { gap: 8px; }
  .nav__portal { padding: 8px 12px; }
  .nav.open .nav__links { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
}

@media (max-width: 600px) {
  /* At ~390px the header row can't fit brand + portal pill + toggle:
     move Client Portal into the dropdown menu instead. */
  .nav__portal { display: none; }
  .nav__links .nav__link--portal { display: block; }
}

/* ─── Hero ──────────────────────────────────────────────────────── */

.hero {
  padding-block: clamp(56px, 5vw, 96px) clamp(60px, 8vw, 120px);
  border-bottom: 1px solid var(--rule);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}

.hero h1 {
  font-size: clamp(48px, 7.2vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  font-weight: 400;
}

.hero h1 em {
  font-style: italic;
  font-family: var(--display);
  color: var(--accent);
  font-weight: 400;
}

.hero__lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.4;
  color: var(--stone-700);
  margin-top: 28px;
  max-width: 36ch;
}

.hero__meta {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-bottom: 8px;
}

.hero__meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.hero__meta-row .k {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone-500);
}
.hero__meta-row .v {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  text-align: right;
}
.hero__meta-row .v--practices {
  font-size: 15px;
}

.hero__ctas {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 32px; align-items: start; }
}

/* Tighten the gap between What we do and Who we serve */
#services { padding-bottom: clamp(28px, 3vw, 44px); }
.serve-section { padding-top: clamp(40px, 4vw, 60px); }

/* Not-yet-live footer item — styled as text, not a link */
.footer__soon { color: color-mix(in srgb, var(--cream) 66%, transparent); cursor: default; }

/* ─── Who we serve — static cards in the site's card language ───── */
.serve {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.serve-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 34px 28px 30px;
  border: 1px solid var(--rule-soft);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 12px 28px -18px rgba(27, 47, 78, 0.28);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease;
}
.serve-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg,
    var(--accent) 0%,
    color-mix(in srgb, var(--accent) 55%, var(--card)) 100%);
}
.serve-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px -18px rgba(27, 47, 78, 0.36);
}
.serve-card__kicker {
  align-self: flex-start;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  padding: 6px 11px;
  border-radius: 100px;
}
.serve-card h3 {
  font-family: var(--display);
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -0.005em;
}
.serve-card p {
  font-size: 14.5px;
  color: var(--stone-700);
  line-height: 1.6;
}
@media (max-width: 900px) { .serve { grid-template-columns: 1fr; gap: 18px; } }

/* ─── Approach (the 5-step pinned scroll) ───────────────────────── */

.approach {
  background: var(--paper);
}

.approach__head {
  padding-top: var(--section-y);
  padding-bottom: 60px;
}

.approach__stage {
  /* The two-column layout: pinned visual + scrolling content */
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 80px;
  padding-bottom: var(--section-y);
}

.approach__pin {
  position: sticky;
  top: 120px;
  height: calc(100vh - 180px);
  max-height: 720px;
  align-self: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}

.approach__triptych {
  flex: 1 1 0;
  min-height: 0;
  max-height: 440px;
  width: 100%;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.approach__counter {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(160px, 22vw, 320px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: flex-start;
}
.approach__counter .total {
  font-size: 0.18em;
  font-family: var(--mono);
  letter-spacing: 0.08em;
  color: var(--stone-500);
  margin-left: 14px;
  margin-top: 14px;
  align-self: flex-start;
}

.approach__progress {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone-500);
}
.approach__bar {
  flex: 1;
  height: 1.5px;
  background: var(--rule);
  position: relative;
  max-width: 280px;
}
.approach__bar::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  background: var(--ink);
  width: var(--approach-progress, 0%);
  transition: width .35s cubic-bezier(.2,.7,.2,1);
}

.approach__steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.approach__step {
  min-height: 80vh;
  padding: 80px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--rule);
  transition: opacity .5s ease;
}
.approach__step:last-child { border-bottom: 0; }
/* Dim non-active steps only while JS scroll-tracking is live
   (no-JS visitors keep full contrast on every step). */
.approach--js .approach__step { opacity: 0.45; }
.approach__step.is-active,
.approach--js .approach__step.is-active { opacity: 1; }

.approach__step .eyebrow { margin-bottom: 20px; }

.approach__step h3 {
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.approach__step p {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  color: var(--stone-700);
  max-width: 52ch;
  margin-bottom: 16px;
}
.approach__step p.lede {
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 24px;
}

.approach__bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.approach__bullets li {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--stone-700);
  padding-left: 22px;
  position: relative;
}
.approach__bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 12px; height: 1px;
  background: var(--accent);
}

@media (max-width: 900px) {
  .approach__stage { grid-template-columns: 1fr; gap: 24px; }
  .approach__pin {
    position: static;
    height: auto;
    max-height: none;
    margin-bottom: 12px;
  }
  .approach__counter { font-size: clamp(110px, 28vw, 180px); }
  .approach__step { min-height: 0; padding: 48px 0; }
}

/* ─── Contact ───────────────────────────────────────────────────── */

.contact {
  background: var(--paper);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 80px;
  align-items: start;
}

/* Match the contact section-head split to the form grid below, so the
   lede's left edge lines up with the Name field. */
.contact .section-head {
  grid-template-columns: 1.15fr 1fr;
  gap: 80px;
}
@media (max-width: 900px) {
  .contact .section-head { grid-template-columns: 1fr; gap: 22px; }
}

.contact__channels {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--ink);
}

.channel {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  transition: padding .2s ease;
}
.channel:hover { padding-left: 8px; }

.channel__icon {
  width: 22px; height: 22px;
  color: var(--stone-500);
}

.channel__label {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone-500);
  margin-bottom: 4px;
}
.channel__value {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
}
.channel__arrow {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--stone-500);
  letter-spacing: 0.02em;
}
.channel:hover .channel__arrow { color: var(--ink); }

.portal-card {
  margin-top: 36px;
  padding: 28px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.portal-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.portal-card__head svg { width: 14px; height: 14px; }
.portal-card h3 {
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.005em;
}
.portal-card p {
  color: var(--stone-700);
  font-size: 15px;
  line-height: 1.55;
}
.portal-card .btn { align-self: flex-start; margin-top: 6px; }

/* Form */
.contact__formcol { display: flex; flex-direction: column; }
.contact__photo {
  margin-top: 28px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 34px -20px rgba(27, 47, 78, 0.4);
}
.contact__photo img {
  display: block;
  width: 100%;
  height: clamp(180px, 20vw, 260px);
  object-fit: cover;
  object-position: center 42%;
}
.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone-500);
}
.field input,
.field textarea,
.field select {
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 10px 0 14px;
  outline: none;
  transition: border-color .2s ease;
  appearance: none;
  border-radius: 0;
}
.field textarea {
  resize: vertical;
  min-height: 120px;
}
.field input:focus,
.field textarea:focus,
.field select:focus { border-bottom-color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: var(--stone-300); }

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form__submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}
.form__note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--stone-500);
  max-width: 30ch;
}

.form__thanks {
  padding: 24px;
  background: var(--accent-soft);
  border-left: 2px solid var(--accent);
  display: none;
}
.form.sent .form__thanks { display: block; }
.form.sent .form__row,
.form.sent .field,
.form.sent .form__submit { display: none; }

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .form__row { grid-template-columns: 1fr; gap: 18px; }
}

/* ─── Footer ────────────────────────────────────────────────────── */

.footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: 80px 36px;
}
.footer a { color: var(--paper); }
.footer .eyebrow { color: color-mix(in srgb, var(--cream) 55%, transparent); }

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid color-mix(in srgb, var(--cream) 12%, transparent);
}
.footer__mark {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}
.footer__mark-mark {
  height: 56px;
  width: auto;
  flex-shrink: 0;
  color: var(--paper);
}
.footer__mark-mark .light { fill: var(--accent); }
.footer__mark-words {
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1;
}
.footer__mark-name {
  font-family: var(--wordmark);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.16em;
  padding-left: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
}
.footer__mark-tag {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.30em;
  color: var(--marigold);
  text-transform: uppercase;
  padding-left: 0.30em;
}
.footer__col h4 {
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer__col ul li { margin-bottom: 10px; }
.footer__col ul a { color: color-mix(in srgb, var(--cream) 75%, transparent); font-size: 15px; }
.footer__col ul a:hover { color: var(--paper); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 13px;
  color: color-mix(in srgb, var(--cream) 55%, transparent);
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 760px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 440px) {
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
}

/* ─── About-page specific ───────────────────────────────────────── */

.about-hero {
  padding-block: clamp(60px, 8vw, 120px) clamp(60px, 8vw, 100px);
  border-bottom: 1px solid var(--rule);
}
.about-hero__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: end;
}
.about-hero h1 {
  font-size: clamp(56px, 8vw, 120px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.about-hero h1 em { font-style: italic; color: var(--accent); }
.about-hero__role {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone-500);
  margin-bottom: 14px;
}
.about-hero__photo {
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
  overflow: hidden;
  position: relative;
  border-radius: 16px;
  max-width: 80%;
  margin-left: auto;
}
.about-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

.bio {
  padding-block: var(--section-y);
  border-bottom: 1px solid var(--rule);
}
.bio__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.bio__grid > div:first-child {
  position: sticky;
  top: 120px;
}
.bio__grid h2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  max-width: 12ch;
}
.bio__photo {
  margin-top: 30px;
}
.bio__photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 16px 38px -20px rgba(27, 47, 78, 0.42);
}
.bio__photo figcaption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--stone-500);
  padding: 12px 4px 0;
}
.bio__body p {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
  color: var(--stone-700);
  margin-bottom: 18px;
}
.bio__body p:first-child::first-letter {
  font-family: var(--display);
  font-size: 4.2em;
  line-height: 0.85;
  float: left;
  padding: 6px 12px 0 0;
  color: var(--ink);
}

.timeline {
  padding-block: var(--section-y);
  background: var(--paper-2);
}
.timeline__layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.timeline__intro {
  position: sticky;
  top: 120px;
}
.timeline__photo {
  margin: 30px 0 0;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 460px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--rule-soft);
  box-shadow: 0 12px 28px -16px rgba(27,47,78,0.34);
}
.timeline__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.timeline__intro h2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  margin-top: 18px;
  max-width: 12ch;
}
.timeline__intro .lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--stone-700);
  margin-top: 20px;
  max-width: 38ch;
}
.timeline__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ink);
}
.timeline__row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 8px 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.timeline__years { grid-column: 1; grid-row: 1 / span 2; }
.timeline__row > div:nth-child(2) { grid-column: 2; grid-row: 1; }
.timeline__desc { grid-column: 2; grid-row: 2; }
.timeline__years {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--stone-500);
}
.timeline__role {
  font-family: var(--display);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.005em;
}
.timeline__org {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--stone-500);
  margin-top: 4px;
}
.timeline__desc {
  font-size: 15px;
  color: var(--stone-700);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .about-hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .bio__grid { grid-template-columns: 1fr; gap: 16px; }
  .bio__grid > div:first-child { position: static; top: auto; }
  .timeline__layout { grid-template-columns: 1fr; gap: 28px; }
  .timeline__intro { position: static; top: auto; }
  .timeline__row { grid-template-columns: 48px 1fr; }
}

.credentials {
  padding-block: var(--section-y);
  border-bottom: 1px solid var(--rule);
}
.credentials__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.credentials__grid > div:first-child {
  position: sticky;
  top: 120px;
}
.cred-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.cred {
  position: relative;
  overflow: hidden;
  padding: 32px 26px 26px;
  border: 1px solid var(--rule-soft);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 12px 28px -18px rgba(27, 47, 78, 0.28);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease;
}
.cred::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg,
    var(--accent) 0%,
    color-mix(in srgb, var(--accent) 55%, var(--card)) 100%);
}
.cred:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px -18px rgba(27, 47, 78, 0.34);
}
.cred .y { font-family: var(--mono); font-size: 12px; color: var(--stone-500); }
.cred .n { font-family: var(--display); font-size: 20px; margin-top: 6px; line-height: 1.25; }
.cred .o { font-family: var(--sans); font-size: 13px; color: var(--stone-500); margin-top: 4px; }

@media (max-width: 900px) {
  .credentials__grid { grid-template-columns: 1fr; gap: 28px; }
  .credentials__grid > div:first-child { position: static; top: auto; }
  .cred-list { grid-template-columns: 1fr; }
}

/* ─── CTA banner ────────────────────────────────────────────────── */

.cta-banner {
  padding-block: clamp(80px, 10vw, 140px);
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}
.cta-banner h2 {
  color: var(--paper);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.05;
  max-width: 20ch;
  margin-inline: auto;
}
.cta-banner h2 em { font-style: italic; color: color-mix(in srgb, var(--cream) 60%, transparent); }
.cta-banner p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: color-mix(in srgb, var(--cream) 70%, transparent);
  margin: 22px auto 0;
  max-width: 40ch;
}
.cta-banner__btns {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.cta-banner .btn--ghost { border-color: color-mix(in srgb, var(--cream) 40%, transparent); color: var(--paper); }
.cta-banner .btn--ghost:hover { background: var(--paper); color: var(--ink); }
.cta-banner .btn--primary { background: var(--paper); color: var(--ink); }
.cta-banner .btn--primary:hover { background: var(--accent); color: var(--paper); }

/* ─── Brand flourishes ─────────────────────────────────────────── */

/* Thin horizon line — used as a section divider where we want a brand mark
   without spending real estate. Reads as the sunset compressed to a single
   stroke. */
.horizon {
  height: 2px;
  background: var(--sunset-gradient);
  border: 0;
  margin: 0;
}

/* CTA banner: a tasteful sunset stripe along the top edge — a hint of the
   horizon under the dark sky. */
.cta-banner { position: relative; overflow: hidden; }
.cta-banner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--sunset-gradient);
}

/* Hero: triptych mark sits above the meta column. */
.hero__meta { position: relative; }
.hero__triptych {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  margin: 0 auto 28px;
  filter: drop-shadow(0 12px 28px rgba(15, 48, 70, 0.16));
}
@media (max-width: 900px) {
  .hero__triptych { max-width: 360px; margin-bottom: 16px; }
}

/* Homepage: link out to the full practice-areas catalog */
.services-more { margin-top: 40px; display: flex; justify-content: flex-start; }

/* Homepage: full-width coastal image bands (trial) */
.section-band {
  margin-top: clamp(44px, 5vw, 76px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 44px -24px rgba(27, 47, 78, 0.42);
}
.section-band img {
  display: block;
  width: 100%;
  height: clamp(240px, 32vw, 400px);
  object-fit: cover;
  object-position: center;
}

/* About — full-width coastal band */
.about-band { padding: 0; }
.about-band__figure {
  position: relative;
  margin: 0;
  width: 100%;
  height: clamp(260px, 34vw, 460px);
  overflow: hidden;
}
.about-band__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  display: block;
}
.about-band__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,30,50,0) 55%, rgba(15,30,50,0.55) 100%);
}
.about-band__caption {
  position: absolute;
  left: clamp(20px, 5vw, 64px);
  bottom: 22px;
  z-index: 1;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--paper);
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(15,30,50,0.5);
}

/* ─── A11y & robustness additions (QA pass, 2026-07) ────────────── */

.skip-link {
  position: absolute;
  left: -9999px; top: 0;
  z-index: 100;
  background: var(--ink);
  color: #FFFFFF;
  padding: 12px 20px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

/* Custom dropdown chevron (appearance:none removes the native one) */
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231B2F4E' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 12px 8px;
  padding-right: 26px;
}

/* Contact form failure state (success and failure are distinct) */
.form__error {
  padding: 24px;
  background: rgba(226,109,124,0.12);
  border-left: 2px solid #9E3F50;
  display: none;
}
.form.error .form__error { display: block; }

@media print {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .approach__step { opacity: 1 !important; }
  .nav__toggle, .skip-link { display: none !important; }
}
