:root {
  --bg: #fffdf9;
  --bg-soft: #fff6ec;
  --bg-paper: #fff2e3;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --text: #1d1a17;
  --muted: #62584f;
  --line: rgba(29, 26, 23, 0.12);
  --line-strong: rgba(29, 26, 23, 0.24);
  --accent: #ef6c00;
  --accent-deep: #c75100;
  --accent-soft: rgba(239, 108, 0, 0.1);
  --success: #204c38;
  --shadow: 0 18px 40px rgba(32, 24, 19, 0.08);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --container: min(1120px, calc(100vw - 2rem));
  --gutter: clamp(1.1rem, 1rem + 1vw, 1.8rem);
  --space-1: clamp(0.75rem, 0.65rem + 0.3vw, 0.9rem);
  --space-2: clamp(1rem, 0.8rem + 0.5vw, 1.3rem);
  --space-3: clamp(1.4rem, 1rem + 0.8vw, 1.8rem);
  --space-4: clamp(1.8rem, 1.4rem + 1.4vw, 2.8rem);
  --space-5: clamp(2.5rem, 2rem + 2vw, 4.5rem);
  --space-6: clamp(3.25rem, 2.6rem + 3vw, 6rem);
  --font-head: "Newsreader", Georgia, serif;
  --font-body: "Public Sans", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(239, 108, 0, 0.14), transparent 28%),
    linear-gradient(180deg, #fff5e9 0%, #fffaf4 18%, var(--bg) 44%);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration-color: rgba(239, 108, 0, 0.45);
  text-underline-offset: 0.16em;
}

a:hover {
  text-decoration-color: var(--accent);
}

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

button {
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.8rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  z-index: 1000;
  text-decoration: none;
}

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

:focus-visible {
  outline: 3px solid rgba(239, 108, 0, 0.35);
  outline-offset: 3px;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.utility-bar {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.utility-bar .container {
  padding: 0.7rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(255, 253, 249, 0.88);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #ff8a1a, #ef6c00);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.brand-text {
  display: grid;
  gap: 0.1rem;
}

.brand-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.site-nav {
  position: fixed;
  inset: 79px 0 auto;
  background: rgba(255, 253, 249, 0.98);
  border-bottom: 1px solid var(--line);
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.nav-open .site-nav {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 1rem;
  display: grid;
  gap: 0.5rem;
}

.site-nav a {
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a.is-active {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.button-row,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 26px rgba(239, 108, 0, 0.2);
}

.button-primary:hover {
  background: var(--accent-deep);
}

.button-secondary {
  background: #fff;
  color: var(--text);
  border-color: var(--line-strong);
}

.button-secondary:hover {
  border-color: rgba(239, 108, 0, 0.4);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.9rem;
}

.page-main {
  padding-bottom: var(--space-6);
}

.hero,
.page-hero {
  padding: var(--space-5) 0 var(--space-4);
}

.hero-grid,
.page-hero-grid,
.split-grid,
.article-grid,
.footer-grid {
  display: grid;
  gap: var(--space-4);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  color: var(--accent-deep);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: currentColor;
}

.headline,
.page-title,
.section-title,
.article-title {
  margin: 0;
  font-family: var(--font-head);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.headline {
  font-size: clamp(3rem, 8vw, 6rem);
  max-width: 11ch;
}

.page-title {
  font-size: clamp(2.7rem, 7vw, 5rem);
  max-width: 13ch;
}

.section-title,
.article-title {
  font-size: clamp(2rem, 4vw, 3.3rem);
  max-width: 14ch;
}

.lede,
.page-lede,
.section-lede,
.article-lede {
  font-size: clamp(1.02rem, 0.98rem + 0.45vw, 1.25rem);
  color: var(--muted);
  max-width: 62ch;
}

.frame-photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #f4e6d7;
  border: 1px solid rgba(29, 26, 23, 0.08);
  box-shadow: var(--shadow);
}

.frame-photo::after {
  content: "";
  position: absolute;
  inset: auto 1rem 1rem auto;
  width: 78px;
  height: 78px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 18px;
}

.frame-photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.caption {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-aside,
.panel,
.callout,
.stat-band,
.disclosure,
.contact-card,
.note-box {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.hero-aside,
.panel,
.callout,
.contact-card,
.note-box {
  padding: 1.25rem;
}

.panel strong,
.callout strong,
.note-box strong {
  color: var(--text);
}

.kicker {
  margin: 0 0 0.75rem;
  color: var(--accent-deep);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section {
  padding: var(--space-5) 0 0;
}

.section.alt {
  position: relative;
}

.section.alt::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(29, 26, 23, 0.14), transparent);
}

.section-header {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.metrics-grid,
.three-up,
.four-up,
.article-list,
.faq-grid,
.contact-grid,
.landing-grid {
  display: grid;
  gap: 1rem;
}

.number-card,
.post-card,
.faq-snippet,
.service-card,
.case-card {
  padding: 1.2rem;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.number-card .index {
  display: inline-flex;
  margin-bottom: 0.8rem;
  color: var(--accent-deep);
  font-family: var(--font-head);
  font-size: 2rem;
}

.number-card h3,
.post-card h3,
.service-card h3,
.case-card h3,
.faq-snippet h3,
.contact-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.12rem;
  line-height: 1.25;
}

.number-card p,
.post-card p,
.service-card p,
.case-card p,
.faq-snippet p,
.contact-card p,
.panel p,
.callout p,
.note-box p,
.article-body p,
.article-body li {
  color: var(--muted);
}

.list-clean {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.list-clean li {
  position: relative;
  padding-left: 1rem;
}

.list-clean li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--accent);
}

.stat-band {
  padding: 1rem;
}

.stat-grid {
  display: grid;
  gap: 1rem;
}

.stat-item {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.stat-item:last-child {
  border-bottom: 0;
}

.stat-label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.stat-value {
  font-family: var(--font-head);
  font-size: 1.55rem;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  padding: 1rem;
  vertical-align: top;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  background: var(--bg-soft);
}

tr:last-child td {
  border-bottom: 0;
}

.disclosure {
  padding: 1rem 1.1rem;
  margin-top: 1rem;
  color: var(--muted);
}

.disclosure strong {
  color: var(--text);
}

.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-list summary {
  list-style: none;
  padding: 1.1rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list details[open] summary {
  border-bottom: 1px solid var(--line);
}

.faq-answer {
  padding: 0 1.2rem 1.1rem;
  color: var(--muted);
}

.form-note,
.form-status,
.meta-line,
.smallprint {
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-email {
  font-weight: 600;
  word-break: break-word;
}

.status-inline {
  min-height: 1.2rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumbs a {
  text-decoration: none;
}

.article-body {
  display: grid;
  gap: 1.2rem;
}

.article-body h2,
.article-body h3 {
  margin: 0;
  font-family: var(--font-head);
  line-height: 1;
  letter-spacing: -0.02em;
}

.article-body h2 {
  font-size: clamp(1.7rem, 2vw, 2.2rem);
}

.article-body h3 {
  font-size: 1.3rem;
}

.article-body ul {
  margin: 0;
  padding-left: 1.1rem;
}

.article-rail {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.post-card .meta-line {
  margin-bottom: 0.5rem;
}

.site-footer {
  padding: var(--space-5) 0 2rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.6), rgba(255, 255, 255, 0.95));
}

.footer-grid {
  gap: 2rem;
}

.footer-links,
.legal-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-links a,
.legal-links a {
  text-decoration: none;
  color: var(--muted);
}

.footer-links a:hover,
.legal-links a:hover {
  color: var(--accent-deep);
}

.footer-bottom {
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.article-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(29, 26, 23, 0.16), transparent);
  margin: 0.5rem 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 760px) {
  .hero-grid,
  .page-hero-grid,
  .split-grid,
  .article-grid,
  .footer-grid,
  .contact-grid,
  .landing-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .hero-copy,
  .page-hero-copy {
    grid-column: span 7;
  }

  .hero-media,
  .page-hero-media {
    grid-column: span 5;
  }

  .hero-aside {
    margin-top: 1rem;
  }

  .split-copy {
    grid-column: span 6;
  }

  .split-media {
    grid-column: span 6;
  }

  .metrics-grid,
  .three-up {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .four-up {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .article-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .faq-grid,
  .contact-grid,
  .landing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-grid {
    grid-template-columns: minmax(0, 2fr) minmax(270px, 0.95fr);
  }

  .stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
  }

  .stat-item {
    border-bottom: 0;
    border-right: 1px solid var(--line);
    padding: 0.2rem 1rem 0.2rem 0;
  }

  .stat-item:last-child {
    border-right: 0;
  }

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

@media (min-width: 980px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    background: transparent;
    border: 0;
  }

  .site-nav ul {
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem;
  }

  .site-nav a {
    padding: 0.6rem 0.8rem;
  }

  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
  }
}
