* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
a:hover {
  color: var(--accent-text);
}
::selection {
  background: var(--accent);
  color: var(--on-accent);
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  width: min(var(--content-width), 100% - (var(--page-gutter) * 2));
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 100;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.8rem 1rem;
}
.skip-link:focus {
  top: 1rem;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: var(--border);
}
.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.wordmark {
  display: inline-flex;
  flex-direction: column;
  gap: 0.12rem;
  text-decoration: none;
  flex-shrink: 0;
}
.wordmark strong {
  font-size: 1.18rem;
  letter-spacing: 0.3em;
  line-height: 1.15;
  font-weight: 600;
}
.wordmark span {
  font-family: var(--font-label);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent-text);
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.5vw, 2rem);
}
.nav a {
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-2);
}
.nav a:hover {
  color: var(--accent-text);
}
.nav a[aria-current='page'] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.45rem;
}
.nav .nav-cta {
  padding: 0.72rem 1.1rem;
  border: 1px solid var(--accent);
  color: var(--accent-text);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}
.nav .nav-cta:hover {
  background: var(--accent-grad);
  color: var(--on-accent);
  box-shadow: 0 8px 24px var(--accent-glow);
}
.menu-toggle {
  display: none;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text);
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
}
.eyebrow {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent-text);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-weight: 500;
  font-family: var(--font-display);
}
h1 {
  font-size: clamp(3rem, 7.2vw, 6.8rem);
  max-width: 950px;
  margin-bottom: 1.6rem;
}
h2 {
  font-size: clamp(2.15rem, 4vw, 4rem);
  margin-bottom: 1.25rem;
}
h3 {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  margin-bottom: 0.8rem;
}
.lead {
  font-size: clamp(1.08rem, 1.8vw, 1.3rem);
  max-width: 720px;
  color: var(--text-2);
  line-height: 1.65;
}
.muted {
  color: var(--color-graphite);
}
.hero {
  padding: clamp(5rem, 11vw, 10rem) 0 clamp(4rem, 8vw, 7rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.6fr);
  gap: 4rem;
  align-items: end;
}
.hero .eyebrow {
  margin-bottom: 2rem;
}
.hero-aside {
  border-left: 1px solid var(--color-stone);
  padding: 0.3rem 0 0.3rem 1.5rem;
  max-width: 280px;
  color: var(--color-graphite);
  font-size: 0.95rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.2rem;
}
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.35rem;
  border: 1px solid transparent;
  background: var(--accent-grad);
  color: var(--on-accent);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}
.button:hover {
  color: var(--on-accent);
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px var(--accent-glow);
}
.button.secondary {
  background: transparent;
  color: var(--accent-text);
  border-color: var(--accent);
}
.button.secondary:hover {
  background: rgba(201, 165, 90, 0.1);
  color: var(--text);
  box-shadow: none;
}
.section {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
  border-top: var(--border);
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}
.section-heading > div {
  max-width: 700px;
}
.section-heading p {
  max-width: 440px;
  margin-bottom: 0.3rem;
  color: var(--color-graphite);
}
.meta {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--color-stone);
  border: 1px solid var(--color-stone);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--color-stone);
  border: 1px solid var(--color-stone);
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--color-stone);
  border: 1px solid var(--color-stone);
}
.card {
  padding: clamp(1.35rem, 3vw, 2.3rem);
  background: var(--surface);
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.card p {
  color: var(--color-graphite);
  margin-bottom: 1.3rem;
}
.card .meta {
  margin-bottom: 1.5rem;
}
.card-link {
  margin-top: auto;
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid var(--color-stone);
  padding-bottom: 0.2rem;
}
.band {
  background: var(--band-bg);
  color: var(--band-text);
  padding: clamp(3rem, 7vw, 6rem);
  border: 1px solid var(--line-strong);
}
.band .eyebrow {
  color: #d9b970;
}
.band .muted,
.band-muted {
  color: var(--band-muted);
}
.band h2 {
  max-width: 850px;
}
.band p {
  max-width: 700px;
}
.band .button {
  background: var(--accent-grad);
  color: #0b0a08;
  border-color: transparent;
}
.band .button:hover {
  color: #0b0a08;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: var(--border);
  border-bottom: var(--border);
}
.stat {
  padding: 1.5rem 1rem 1.5rem 0;
}
.stat strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
}
.stat span {
  display: block;
  color: var(--color-graphite);
  font-size: 0.84rem;
  margin-top: 0.3rem;
}
.page-hero {
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.page-hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  max-width: 1000px;
}
.page-hero .lead {
  max-width: 760px;
}
.prose {
  max-width: 780px;
}
.prose h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-top: 3rem;
}
.prose h3 {
  margin-top: 2rem;
}
.prose li {
  margin-bottom: 0.55rem;
}
.list-rows {
  border-top: var(--border);
}
.list-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 24px;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: var(--border);
  align-items: start;
}
.list-row .number {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 1.35rem;
  line-height: 1;
}
.list-row h3 {
  margin: 0 0 0.5rem;
}
.list-row p {
  color: var(--color-graphite);
  margin: 0;
  max-width: 700px;
}
.case-card {
  border: var(--border);
  padding: 2rem;
  background: var(--surface);
}
.case-card .placeholder {
  background: var(--color-sand);
  aspect-ratio: 16 / 8;
  display: grid;
  place-items: center;
  margin-bottom: 1.4rem;
  color: var(--color-graphite);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-align: center;
  padding: 1rem;
}
.form {
  display: grid;
  gap: 1.2rem;
  max-width: 760px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.field {
  display: grid;
  gap: 0.45rem;
}
.field label {
  font-size: 0.84rem;
  font-weight: 600;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line-2);
  background: var(--surface-raised);
  padding: 0.85rem 0.9rem;
  border-radius: 6px;
  color: var(--text);
  transition: border-color 0.2s ease;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  opacity: 0.8;
}
.field input:hover,
.field textarea:hover,
.field select:hover {
  border-color: var(--line-strong);
}
.field textarea {
  min-height: 150px;
  resize: vertical;
}
.field input:focus,
.field textarea:focus,
.field select:focus,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.form-note {
  color: var(--color-graphite);
  font-size: 0.84rem;
}
.site-footer {
  background: var(--footer-bg);
  color: var(--band-text);
  padding: 4rem 0 1.5rem;
  margin-top: 0;
  border-top: 1px solid var(--line-strong);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.site-footer .wordmark span {
  color: #d9b970;
}
.footer-description {
  color: var(--band-muted);
  max-width: 380px;
  margin-top: 1.3rem;
}
.footer-links {
  display: grid;
  align-content: start;
  gap: 0.6rem;
}
.footer-links .meta {
  color: #d9b970;
  margin-bottom: 0.5rem;
}
.footer-links a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--band-text);
}
.footer-links a:hover {
  color: #d9b970;
}
.footer-bottom {
  border-top: 1px solid rgba(242, 236, 223, 0.12);
  padding-top: 1.3rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--band-muted);
  font-size: 0.78rem;
}
.inline-note {
  border-left: 2px solid var(--color-sage);
  padding: 0.2rem 0 0.2rem 1rem;
  color: var(--color-graphite);
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}
.tag-list li {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-text);
}
.article-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.article {
  padding: 1.6rem;
  border: var(--border);
  display: flex;
  flex-direction: column;
  min-height: 220px;
}
.article p {
  color: var(--color-graphite);
}
.article a {
  margin-top: auto;
}
.small-print {
  font-size: 0.82rem;
  color: var(--color-graphite);
}
@media (max-width: 1220px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1rem var(--page-gutter) 1.5rem;
    background: var(--bg);
    border-bottom: var(--border);
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }
  .nav.is-open {
    display: flex;
  }
  .nav a {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
  }
  .nav .nav-cta {
    text-align: center;
    margin-top: 0.8rem;
    border: 1px solid var(--accent);
  }
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-aside {
    max-width: 520px;
  }
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-top > :first-child {
    grid-column: 1 / -1;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
  }
}
@media (max-width: 640px) {
  .header-inner {
    min-height: 72px;
  }
  h1 {
    font-size: clamp(2.8rem, 14vw, 4.4rem);
  }
  .grid-2,
  .grid-3,
  .grid-4,
  .article-list,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(2) {
    border-left: 1px solid var(--color-stone);
    padding-left: 1rem;
  }
  .list-row {
    grid-template-columns: 45px minmax(0, 1fr) 18px;
    gap: 0.8rem;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1rem;
  }
  .footer-top > :first-child {
    grid-column: 1 / -1;
  }
  .footer-bottom {
    flex-direction: column;
  }
  .band {
    padding: 2rem 1.35rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
/* Safety net for long business names: the wordmark may wrap between words
   rather than push into the navigation. No effect while it fits. */
.wordmark {
  flex-shrink: 1;
  min-width: 0;
}
.wordmark strong {
  overflow-wrap: break-word;
}
/* ↗ / ↘ arrows, drawn as icons so phones don't show them as emoji
   (tools/i18n/arrows.py swaps the characters for these spans). */
.arw {
  display: inline-block;
  width: 0.72em;
  height: 0.72em;
  vertical-align: -0.02em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 12 12 4M5.5 4H12v6.5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 12 12 4M5.5 4H12v6.5' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.arw-se {
  transform: rotate(90deg);
}
/* Buttons are flex boxes, which drop the space before the arrow icon; put it back. */
.button > .arw,
.button > span[aria-hidden='true'] {
  margin-inline-start: 0.4em;
}
