/* ==========================================================================
   ATLAS ACCOUNTING & TAX — Design System
   Built to the Atlas Brand Book: Cormorant Garamond + DM Sans,
   Charcoal #1C1A17 / Gold #C9A96E / Cream #F2F0EC.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Type scale (fluid) */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.82rem + 0.2vw, 0.9375rem);
  --text-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --text-xl: clamp(1.5rem, 1.25rem + 1.1vw, 2.125rem);
  --text-2xl: clamp(2rem, 1.4rem + 2.2vw, 3.25rem);
  --text-3xl: clamp(2.5rem, 1.6rem + 3.2vw, 4.25rem);

  /* Spacing — 4px base */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --section-y: clamp(var(--space-16), 9vw, var(--space-32));
  --gutter: clamp(var(--space-5), 5vw, var(--space-12));
  --max-w: 1240px;
  --max-prose: 68ch;

  /* Fonts */
  --font-display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 2px;
  --radius-lg: 4px;
}

/* ---------- Light (default) ---------- */
:root,
[data-theme='light'] {
  --charcoal: #1c1a17;
  --gold: #c9a96e;
  --gold-deep: #a8803f;
  --cream: #f2f0ec;
  --stone: #7a7770;
  --linen: #d4d1ca;

  --bg: #ffffff;
  --bg-soft: #faf9f7;
  --bg-cream: #f2f0ec;
  --surface: #ffffff;
  --surface-2: #f7f5f2;
  --border: #e6e3dd;
  --border-strong: #d4d1ca;

  --text: #1c1a17;
  --text-muted: #6b6862;
  --text-faint: #9c9992;
  --text-inverse: #ffffff;

  --accent: #a8803f; /* accessible gold for text/links */
  --accent-bright: #c9a96e; /* decorative gold */
  --accent-soft: rgba(201, 169, 110, 0.14);

  --shadow-sm: 0 1px 2px rgba(28, 26, 23, 0.04), 0 2px 8px rgba(28, 26, 23, 0.03);
  --shadow-md: 0 2px 4px rgba(28, 26, 23, 0.04), 0 12px 32px rgba(28, 26, 23, 0.06);
  --shadow-lg: 0 4px 8px rgba(28, 26, 23, 0.05), 0 24px 60px rgba(28, 26, 23, 0.1);
}

/* ---------- Dark ---------- */
[data-theme='dark'] {
  --bg: #141311;
  --bg-soft: #1a1917;
  --bg-cream: #1f1d1a;
  --surface: #1f1d1a;
  --surface-2: #262320;
  --border: #322e29;
  --border-strong: #423d36;

  --text: #f4f2ee;
  --text-muted: #a8a49c;
  --text-faint: #7a7770;
  --text-inverse: #1c1a17;

  --accent: #d3b57d;
  --accent-bright: #c9a96e;
  --accent-soft: rgba(201, 169, 110, 0.16);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.3), 0 24px 60px rgba(0, 0, 0, 0.45);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
ul,
ol {
  list-style: none;
  padding: 0;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
  color: var(--text);
}
h1 {
  font-size: var(--text-2xl);
}
h2 {
  font-size: var(--text-xl);
}
h3 {
  font-size: var(--text-lg);
  line-height: 1.2;
  letter-spacing: -0.005em;
}
h4 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
}
p {
  text-wrap: pretty;
}

.display {
  font-size: var(--text-3xl);
}
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent-bright);
  flex: none;
}
.eyebrow--center {
  justify-content: center;
}
.lede {
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 60ch;
}
.muted {
  color: var(--text-muted);
}
.prose {
  max-width: var(--max-prose);
}
.prose p + p {
  margin-top: var(--space-5);
}
.serif-quote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.3;
  font-style: italic;
  letter-spacing: -0.01em;
}
.rule {
  height: 1px;
  background: var(--border);
  border: 0;
}
.gold-rule {
  width: 56px;
  height: 2px;
  background: var(--accent-bright);
  border: 0;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow {
  max-width: 880px;
}
section {
  position: relative;
}
.section {
  padding-block: var(--section-y);
}
.section--tight {
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
}
.section--cream {
  background: var(--bg-cream);
}
.section--soft {
  background: var(--bg-soft);
}
.section--dark {
  background: var(--charcoal);
  color: #f4f2ee;
}
.section--dark h2,
.section--dark h3 {
  color: #f7f5f1;
}
.section--dark .lede,
.section--dark .muted {
  color: rgba(244, 242, 238, 0.7);
}
.section--dark .eyebrow {
  color: var(--gold);
}
.section--dark .eyebrow::before {
  background: var(--gold);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(var(--space-10), 4vw, var(--space-16));
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head--center .lede {
  margin-inline: auto;
}
.section-head .eyebrow {
  margin-bottom: var(--space-5);
}
.section-head h2 + .lede {
  margin-top: var(--space-5);
}

.grid {
  display: grid;
  gap: var(--space-6);
}
.split {
  display: grid;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
  align-items: center;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split--wide-left {
    grid-template-columns: 1.15fr 0.85fr;
  }
  .split--wide-right {
    grid-template-columns: 0.85fr 1.15fr;
  }
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (min-width: 640px) and (max-width: 899px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: var(--space-3) var(--space-6);
  min-height: 46px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.3s var(--ease),
    color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    transform 0.3s var(--ease);
  text-align: center;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn--primary {
  background: var(--charcoal);
  color: #fff;
  border-color: var(--charcoal);
}
.btn--primary:hover {
  background: #2e2a25;
}
.btn--gold {
  background: var(--gold);
  color: var(--charcoal);
  border-color: var(--gold);
}
.btn--gold:hover {
  background: #d8bc86;
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  border-color: var(--charcoal);
  background: var(--accent-soft);
}
.section--dark .btn--ghost {
  color: #f4f2ee;
  border-color: rgba(244, 242, 238, 0.3);
}
.section--dark .btn--ghost:hover {
  border-color: var(--gold);
  background: rgba(201, 169, 110, 0.12);
}
.btn--lg {
  min-height: 54px;
  padding-inline: var(--space-8);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.01em;
}
.link-arrow svg {
  transition: transform 0.3s var(--ease);
}
.link-arrow:hover svg {
  transform: translateX(4px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.3s var(--ease),
    background 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
}
.topbar {
  background: var(--charcoal);
  color: rgba(244, 242, 238, 0.82);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  min-height: 38px;
  padding-block: var(--space-2);
}
.topbar a:hover {
  color: var(--gold);
}
.topbar__tag {
  color: var(--gold);
  font-weight: 500;
}
.topbar__links {
  display: flex;
  gap: var(--space-5);
  align-items: center;
}
@media (max-width: 700px) {
  .topbar__tag {
    display: none;
  }
  .topbar .wrap {
    justify-content: center;
  }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  min-height: 76px;
}
.nav__links {
  display: none;
  align-items: center;
  gap: clamp(var(--space-4), 2vw, var(--space-8));
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.nav__link {
  position: relative;
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--text);
  padding-block: var(--space-2);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent-bright);
  transition: width 0.35s var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-current='page']::after {
  width: 100%;
}
.nav__link[aria-current='page'] {
  color: var(--accent);
}
@media (min-width: 1000px) {
  .nav__links {
    display: flex;
  }
  .nav__toggle.nav__toggle {
    display: none;
  }
}
.nav__cta {
  display: none;
}
@media (min-width: 600px) {
  .nav__cta {
    display: inline-flex;
  }
}

/* Dropdown */
.nav__item {
  position: relative;
}
.nav__panel {
  position: absolute;
  top: calc(100% + var(--space-4));
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: min(620px, 78vw);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: var(--space-6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2) var(--space-6);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s var(--ease),
    transform 0.25s var(--ease),
    visibility 0.25s;
}
.nav__item:hover .nav__panel,
.nav__item:focus-within .nav__panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav__panel-label {
  grid-column: 1 / -1;
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-2);
}
.nav__panel-link {
  display: block;
  padding: var(--space-3);
  border-radius: var(--radius);
  transition: background 0.25s var(--ease);
}
.nav__panel-link:hover {
  background: var(--surface-2);
}
.nav__panel-link strong {
  display: block;
  font-weight: 500;
  font-size: var(--text-sm);
}
.nav__panel-link span {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.45;
}

/* Icon buttons */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--text-muted);
  transition:
    color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.icon-btn:hover {
  color: var(--accent);
  border-color: var(--border-strong);
}
[data-theme='dark'] .theme-icon--moon,
.theme-icon--sun {
  display: none;
}
[data-theme='dark'] .theme-icon--sun {
  display: block;
}
.theme-icon--moon {
  display: block;
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg);
  padding: var(--space-6) 0 var(--space-12);
  overflow-y: auto;
  transform: translateY(-100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.45s var(--ease), visibility 0.45s linear;
}
.drawer.is-open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}
.drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-8);
}
.drawer__list {
  display: flex;
  flex-direction: column;
}
.drawer__list a {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--border);
}
.drawer__sub {
  padding-left: var(--space-4);
}
.drawer__sub a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-muted);
  padding-block: var(--space-3);
}
.drawer__footer {
  margin-top: var(--space-8);
  display: grid;
  gap: var(--space-3);
}

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text);
}
.logo__mark {
  width: 30px;
  height: 38px;
  flex: none;
}
.logo__type {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.logo__name {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  line-height: 1;
  text-transform: uppercase;
}
.logo__sub {
  font-family: var(--font-body);
  font-size: 0.5625rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-cream);
}
.hero__media {
  position: absolute;
  inset: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.9) 34%,
    rgba(252, 251, 249, 0.55) 58%,
    rgba(250, 248, 244, 0.15) 82%
  );
}
[data-theme='dark'] .hero__media img {
  opacity: 0.38;
}
[data-theme='dark'] .hero__scrim {
  background: linear-gradient(
    100deg,
    rgba(20, 19, 17, 0.95) 0%,
    rgba(20, 19, 17, 0.88) 38%,
    rgba(20, 19, 17, 0.55) 68%,
    rgba(20, 19, 17, 0.2) 100%
  );
}
.hero__inner {
  position: relative;
  padding-block: clamp(var(--space-16), 11vw, var(--space-32));
  max-width: 700px;
}
.hero h1 {
  font-size: var(--text-3xl);
  margin-top: var(--space-6);
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero__lede {
  margin-top: var(--space-6);
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 54ch;
}
.hero .btn-row {
  margin-top: var(--space-8);
}
.hero__note {
  margin-top: var(--space-5);
  font-size: var(--text-xs);
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

/* Page hero (interior) */
.page-hero {
  background: var(--bg-cream);
  border-bottom: 1px solid var(--border);
  padding-block: clamp(var(--space-12), 7vw, var(--space-24));
}
.page-hero__inner {
  max-width: 760px;
}
.page-hero h1 {
  margin-top: var(--space-5);
}
.page-hero .lede {
  margin-top: var(--space-5);
}
.crumbs {
  font-size: var(--text-xs);
  color: var(--text-faint);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}
.crumbs a:hover {
  color: var(--accent);
}

/* ---------- Proof strip ---------- */
.proof {
  border-block: 1px solid var(--border);
  background: var(--surface);
}
.proof__grid {
  display: grid;
  gap: 1px;
  background: var(--border);
}
@media (min-width: 760px) {
  .proof__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.proof__item {
  background: var(--surface);
  padding: clamp(var(--space-6), 3vw, var(--space-10)) var(--space-6);
  text-align: center;
}
.proof__note {
  max-width: 30ch;
  margin-inline: auto;
}
.proof__num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 1;
  color: var(--text);
}
.proof__num .suf {
  color: var(--accent-bright);
}
.proof__label {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
}
.proof__note {
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: clamp(var(--space-6), 2.5vw, var(--space-8));
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition:
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    transform 0.35s var(--ease);
}
a.card:hover,
.card--hover:hover {
  border-color: var(--accent-bright);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.card__icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
}
.card__num {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--accent-bright);
  line-height: 1;
}
.card h3 {
  font-size: var(--text-lg);
}
.card p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}
.card__list {
  display: grid;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.card__list li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}
.card__list li::before {
  content: '';
  width: 5px;
  height: 5px;
  margin-top: 0.55em;
  flex: none;
  background: var(--accent-bright);
  border-radius: 50%;
}
.card__foot {
  margin-top: auto;
  padding-top: var(--space-2);
}

/* Router cards (For businesses / For individuals) */
.router {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 860px) {
  .router {
    grid-template-columns: 1fr 1fr;
  }
}
.router__card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: clamp(var(--space-8), 3vw, var(--space-12));
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  transition:
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
.router__card:hover {
  border-color: var(--accent-bright);
  box-shadow: var(--shadow-md);
}
.router__card::after {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--accent-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.router__card:hover::after {
  transform: scaleX(1);
}
.router__card ul {
  display: grid;
  gap: var(--space-3);
  font-size: var(--text-sm);
}
.router__card ul a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  transition: color 0.25s var(--ease);
}
.router__card ul a:hover {
  color: var(--accent);
}
.router__card ul a svg {
  flex: none;
  opacity: 0.5;
}

/* ---------- Media blocks ---------- */
.media {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.media--tall {
  aspect-ratio: 4 / 5;
}
.media--wide {
  aspect-ratio: 16 / 10;
}
.media--square {
  aspect-ratio: 1 / 1;
}
.media__caption {
  position: absolute;
  left: var(--space-5);
  bottom: var(--space-5);
  right: var(--space-5);
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(8px);
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-xs);
  color: var(--charcoal);
  line-height: 1.5;
  border-left: 2px solid var(--gold);
}
.media--frame {
  border: 1px solid var(--border);
}
.media-offset {
  position: relative;
}
.media-offset::before {
  content: '';
  position: absolute;
  inset: 20px -20px -20px 20px;
  border: 1px solid var(--accent-bright);
  opacity: 0.45;
  z-index: -1;
}

.fullbleed {
  position: relative;
  height: clamp(280px, 38vw, 460px);
  overflow: hidden;
}
.fullbleed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Comparison table ---------- */
.compare {
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}
.compare__row {
  display: grid;
  grid-template-columns: 1fr;
  border-bottom: 1px solid var(--border);
}
.compare__row:last-child {
  border-bottom: 0;
}
.compare__row > * {
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
}
.compare__row--head {
  background: var(--charcoal);
  color: #f4f2ee;
}
.compare__row--head > * {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}
.compare__row--head .is-atlas {
  color: var(--gold);
}
.compare__label {
  font-weight: 500;
  color: var(--text);
  background: var(--surface-2);
}
.compare__cell {
  color: var(--text-muted);
}
.compare__cell.is-atlas {
  color: var(--text);
  background: var(--accent-soft);
  font-weight: 500;
}
.compare__mobile-label {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--space-1);
}
@media (min-width: 820px) {
  .compare__row {
    grid-template-columns: 1.1fr 1fr 1fr 1fr;
  }
  .compare__mobile-label {
    display: none;
  }
  .compare__row > * + * {
    border-left: 1px solid var(--border);
  }
}
@media (max-width: 819px) {
  .compare__row--head {
    display: none;
  }
  .compare__label {
    font-family: var(--font-display);
    font-size: var(--text-lg);
  }
}

/* ---------- Process ---------- */
.process {
  display: grid;
  gap: var(--space-8);
  counter-reset: step;
}
@media (min-width: 900px) {
  .process {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
  }
}
.process__step {
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-strong);
}
.section--dark .process__step {
  border-top-color: rgba(244, 242, 238, 0.22);
}
.section--dark .process__step p,
.section--dark .card p,
.section--dark .card__list li {
  color: rgba(244, 242, 238, 0.74);
}
.section--dark .process__step .n {
  color: var(--gold);
}
.process__step .n {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--accent-bright);
  display: block;
  margin-bottom: var(--space-3);
}
.process__step h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}
.process__step p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- Testimonials ---------- */
.quote-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: clamp(var(--space-6), 2.5vw, var(--space-8));
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.quote-card__mark {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 0.6;
  color: var(--accent-bright);
  height: 1.2rem;
}
.quote-card blockquote {
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text);
}
.quote-card__who {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}
.quote-card__who strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
}
.quote-card__who span {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

/* ---------- Pricing ---------- */
.tiers {
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 900px) {
  .tiers {
    grid-template-columns: repeat(3, 1fr);
  }
}
.tier {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: clamp(var(--space-6), 2.5vw, var(--space-8));
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  position: relative;
}
.tier--featured {
  border-color: var(--accent-bright);
  box-shadow: var(--shadow-md);
}
.tier__flag {
  position: absolute;
  top: -1px;
  right: -1px;
  background: var(--gold);
  color: var(--charcoal);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-4);
}
.tier__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
}
.tier__price {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1;
}
.tier__price small {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-muted);
  letter-spacing: 0;
}
.tier__from {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------- FAQ ---------- */
.faq {
  border-top: 1px solid var(--border);
}
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-5);
  padding-block: var(--space-5);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.25;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(-135deg) translateY(-2px);
}
.faq__body {
  padding-bottom: var(--space-6);
  max-width: 62ch;
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
}
.faq__body p + p {
  margin-top: var(--space-4);
}

/* ---------- Form ---------- */
.form {
  display: grid;
  gap: var(--space-5);
}
#form-fallback {
  display: grid;
  gap: var(--space-4);
  min-width: 0;
}
#form-email-fallback {
  justify-self: start;
}
.form[hidden],
#form-fallback[hidden] {
  display: none;
}
.form__row {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 640px) {
  .form__row--2 {
    grid-template-columns: 1fr 1fr;
  }
}
.field {
  display: grid;
  gap: var(--space-2);
}
.field label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field label .req {
  color: var(--accent);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  min-height: 48px;
  font-size: var(--text-sm);
  transition:
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.field textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.6;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-bright);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field__hint {
  font-size: var(--text-xs);
  color: var(--text-faint);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.chip {
  position: relative;
}
.chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.chip span {
  display: block;
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  cursor: pointer;
  color: var(--text-muted);
  white-space: nowrap;
  line-height: 1.4;
  transition: all 0.25s var(--ease);
}
.chip input:checked + span {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: #fff;
}
.chip input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.form__legal {
  font-size: var(--text-xs);
  color: var(--text-faint);
  line-height: 1.6;
}
.form-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: clamp(var(--space-6), 3vw, var(--space-10));
}
.form-success {
  display: none;
  border: 1px solid var(--accent-bright);
  background: var(--accent-soft);
  padding: var(--space-6);
}
.form-success.is-visible {
  display: block;
}
.form-success h3 {
  margin-bottom: var(--space-3);
}
.form-success p {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ---------- Contact list ---------- */
.contact-list {
  display: grid;
  gap: var(--space-6);
}
.contact-list__item {
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}
.contact-list__item dt {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--space-2);
}
.contact-list__item dd {
  font-size: var(--text-base);
  margin: 0;
}
.contact-list__item dd a:hover {
  color: var(--accent);
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
  color: #f4f2ee;
}
.cta-band__media {
  position: absolute;
  inset: 0;
}
.cta-band__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 22% 60%;
  opacity: 0.92;
}
@media (max-width: 899px) {
  .cta-band__media img {
    opacity: 0.4;
    object-position: 18% 60%;
  }
  .cta-band__scrim {
    background: linear-gradient(
      180deg,
      rgba(28, 26, 23, 0.72) 0%,
      rgba(28, 26, 23, 0.94) 45%
    ) !important;
  }
}
.cta-band__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(28, 26, 23, 0.05) 0%,
    rgba(28, 26, 23, 0.55) 34%,
    rgba(28, 26, 23, 0.9) 48%,
    rgba(28, 26, 23, 0.96) 100%
  );
}
.cta-band__inner {
  position: relative;
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  margin-left: auto;
  max-width: 620px;
}
.cta-band h2 {
  color: #f7f5f1;
  margin-top: var(--space-5);
}
.cta-band p {
  color: rgba(244, 242, 238, 0.75);
  margin-top: var(--space-5);
}
.cta-band .eyebrow {
  color: var(--gold);
}
.cta-band .eyebrow::before {
  background: var(--gold);
}
.cta-band .btn-row {
  margin-top: var(--space-8);
}

/* ---------- Insights ---------- */
.post {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  border-top: 1px solid var(--border);
  padding-top: var(--space-5);
}
.post__meta {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.post__meta .cat {
  color: var(--accent);
}
.post h3 {
  font-size: var(--text-lg);
  transition: color 0.25s var(--ease);
}
.post:hover h3 {
  color: var(--accent);
}
.post p {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: rgba(244, 242, 238, 0.72);
  font-size: var(--text-sm);
}
.site-footer .logo {
  color: #f7f5f1;
}
.site-footer .logo__sub {
  color: rgba(244, 242, 238, 0.6);
}
.footer__top {
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
  display: grid;
  gap: var(--space-10);
}
@media (min-width: 900px) {
  .footer__top {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: var(--space-8);
  }
}
.footer__brand p {
  margin-top: var(--space-5);
  max-width: 34ch;
  color: rgba(244, 242, 238, 0.6);
  font-size: var(--text-sm);
}
.footer__col h4 {
  color: var(--gold);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}
.footer__col ul {
  display: grid;
  gap: var(--space-3);
}
.footer__col a {
  color: rgba(244, 242, 238, 0.72);
  font-size: var(--text-sm);
  transition: color 0.25s var(--ease);
}
.footer__col a:hover {
  color: var(--gold);
}
.footer__bottom {
  border-top: 1px solid rgba(244, 242, 238, 0.14);
  padding-block: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-6);
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: rgba(244, 242, 238, 0.5);
}
.footer__bottom nav {
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
}
.footer__disclaimer {
  padding-bottom: var(--space-8);
  font-size: var(--text-xs);
  line-height: 1.7;
  color: rgba(244, 242, 238, 0.42);
  max-width: 92ch;
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--space-4);
  top: var(--space-4);
  z-index: 200;
  background: var(--charcoal);
  color: #fff;
  padding: var(--space-3) var(--space-5);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Accent card (soft gold invitation) ---------- */
.card--accent {
  background: linear-gradient(160deg, #fbf7ef 0%, #f6f1e6 100%);
  border-color: rgba(201, 169, 110, 0.45);
}
.card--accent .card__num {
  color: var(--accent);
}
[data-theme='dark'] .card--accent {
  background: linear-gradient(160deg, rgba(201, 169, 110, 0.14) 0%, rgba(201, 169, 110, 0.06) 100%);
  border-color: rgba(201, 169, 110, 0.32);
}

/* Stat suffix (hours / % ) */
.proof__num .suf {
  font-family: var(--font-body);
  font-size: 0.34em;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-left: 0.45em;
  color: var(--text-faint);
  vertical-align: 0.35em;
}

/* Ghost buttons on dark surfaces */
.cta-band .btn--ghost,
.section--dark .btn--ghost {
  color: #f4f2ee;
  border-color: rgba(244, 242, 238, 0.34);
}
.cta-band .btn--ghost:hover,
.section--dark .btn--ghost:hover {
  color: #fff;
  border-color: var(--gold);
  background: rgba(201, 169, 110, 0.14);
}

/* ---------- Jump nav (industries) ---------- */
.jump {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.jump__link {
  padding: var(--space-2) var(--space-5);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  color: var(--text-muted);
  transition: all 0.25s var(--ease);
}
.jump__link:hover {
  border-color: var(--accent-bright);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ---------- Featured post ---------- */
.feature {
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
@media (min-width: 900px) {
  .feature {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}
.feature:hover {
  border-color: var(--accent-bright);
  box-shadow: var(--shadow-md);
}
.feature__media {
  position: relative;
  min-height: 260px;
  overflow: hidden;
}
.feature__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature__body {
  padding: clamp(var(--space-8), 4vw, var(--space-16));
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature__body h2 {
  margin-top: var(--space-4);
  font-size: var(--text-2xl);
}
.feature__body .lede {
  margin-top: var(--space-5);
}

/* ---------- Coming-soon post ---------- */
.post--soon {
  opacity: 0.72;
  cursor: default;
}
.post--soon .cat {
  color: var(--text-faint);
}

/* ---------- Article body ---------- */
.article {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--text-muted);
}
.article > * + * {
  margin-top: var(--space-6);
}
.article h2 {
  font-size: var(--text-xl);
  color: var(--text);
  margin-top: var(--space-16);
}
.article h2 + p {
  margin-top: var(--space-5);
}
.article strong {
  color: var(--text);
  font-weight: 500;
}
.article em {
  font-style: italic;
}
.article ul,
.article ol {
  padding-left: var(--space-6);
  display: grid;
  gap: var(--space-3);
}
.article li {
  list-style: disc;
}
.legal-article {
  max-width: var(--max-prose);
  margin-inline: auto;
  overflow-wrap: anywhere;
}
.legal-article a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-article h2:first-child {
  margin-top: 0;
}

/* ---------- Numbered steps list ---------- */
.steps-list {
  display: grid;
  gap: var(--space-5);
  counter-reset: s;
  padding: 0;
  margin: 0;
  list-style: none;
}
.steps-list li {
  counter-increment: s;
  position: relative;
  padding-left: var(--space-10);
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
}
.steps-list li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-display);
  font-size: var(--text-base);
  color: var(--accent);
}
.steps-list li strong {
  color: var(--text);
  font-weight: 500;
}

@media (min-width: 900px) {
  .split--form {
    grid-template-columns: 1.35fr 0.85fr;
    gap: clamp(var(--space-10), 4vw, var(--space-16));
  }
}

/* Hero: mobile scrim needs to read vertically, not diagonally */
@media (max-width: 759px) {
  .hero__scrim {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 255, 255, 0.95) 30%,
      rgba(255, 255, 255, 0.97) 100%
    );
  }
  [data-theme='dark'] .hero__scrim {
    background: linear-gradient(
      180deg,
      rgba(20, 19, 17, 0.86) 0%,
      rgba(20, 19, 17, 0.94) 32%,
      rgba(20, 19, 17, 0.97) 100%
    );
  }
  .hero__media img {
    object-position: 60% 30%;
  }
  .hero__note {
    color: var(--text-muted);
  }
}

/* ---------- Team ---------- */
.person {
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.person:hover {
  border-color: var(--accent-bright);
  box-shadow: var(--shadow-md);
}
.person__photo {
  aspect-ratio: 4 / 3;
  background: var(--bg-cream);
  border-bottom: 1px solid var(--border);
  display: grid;
  place-items: center;
  position: relative;
}
.person__photo::after {
  content: 'Photograph to come';
  position: absolute;
  bottom: var(--space-4);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.person__photo span {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--accent-bright);
  width: 4.5rem;
  height: 4.5rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent-bright);
  border-radius: 50%;
}
.person__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.person__body h3 {
  font-size: var(--text-lg);
}
.person__role {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  min-height: 2.2em;
}
.person__body p:last-child {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
}
[data-theme='dark'] .person__photo {
  background: rgba(255, 255, 255, 0.03);
}

/* Dark theme: charcoal-on-charcoal buttons need to invert */
[data-theme='dark'] .btn--primary {
  background: #f4f2ee;
  color: var(--charcoal);
  border-color: #f4f2ee;
}
[data-theme='dark'] .btn--primary:hover {
  background: #fff;
  border-color: #fff;
}
[data-theme='dark'] .cta-band .btn--gold,
[data-theme='dark'] .btn--gold {
  background: var(--gold);
  color: var(--charcoal);
  border-color: var(--gold);
}
