/*
Theme Name: Guardian Publishing
Theme URI: https://guardian.pub/
Author: Guardian Publishing
Description: High-end financial publishing marketing theme for Guardian Publishing — dark editorial palette, gold accents, Zodiak/Switzer typography. Home, Services, Newsletters and About are coded templates; legal pages render page content verbatim.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: guardian-publishing
Tags: one-column, custom-menu, full-width-template
*/

/* base.css */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  hanging-punctuation: first last;
  scroll-padding-top: var(--space-20);
}

body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body, sans-serif);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
ul[role='list'],
ol[role='list'] {
  list-style: none;
}
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
  line-height: 1.15;
}
p,
li,
figcaption {
  text-wrap: pretty;
  max-width: 72ch;
}

::selection {
  background: oklch(from var(--color-primary) l c h / 0.35);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

button {
  cursor: pointer;
  background: none;
  border: none;
}
table {
  border-collapse: collapse;
  width: 100%;
}

a,
button,
[role='button'],
[role='link'],
input,
textarea,
select {
  transition:
    color var(--transition-interactive),
    background var(--transition-interactive),
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive),
    opacity var(--transition-interactive);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}


/* ==========================================================================
   Guardian Publishing — design tokens + components
   ========================================================================== */

:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 0.5rem + 7vw, 8rem);

  /* Spacing */
  --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;

  /* Ink + silver + gold */
  --color-bg: #0b0d11;
  --color-surface: #11141a;
  --color-surface-2: #161a21;
  --color-surface-offset: #1c2029;
  --color-divider: oklch(1 0 0 / 0.07);
  --color-border: oklch(1 0 0 / 0.12);
  --color-border-strong: oklch(1 0 0 / 0.22);

  --color-text: #e9e7e2;
  --color-text-muted: #a3a5ab;
  --color-text-faint: #6b6e76;
  --color-text-inverse: #15171c;

  --color-primary: #c8a35a;
  --color-primary-hover: #d9b86f;
  --color-primary-active: #b08e45;
  --color-primary-highlight: oklch(from #c8a35a l c h / 0.14);

  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.625rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 6px 18px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 24px 60px oklch(0 0 0 / 0.5);

  --content-narrow: 680px;
  --content-default: 1040px;
  --content-wide: 1280px;

  --font-display: 'Zodiak', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Switzer', 'Helvetica Neue', Arial, sans-serif;
  --font-wordmark: 'Cinzel', 'Trajan Pro', Georgia, serif;

  --header-h: 76px;
}

/* Light "paper" sections remap the same tokens */
.paper {
  --color-bg: #f3f1ec;
  --color-surface: #faf9f6;
  --color-surface-2: #ffffff;
  --color-surface-offset: #ebe8e1;
  --color-divider: oklch(0 0 0 / 0.08);
  --color-border: oklch(0 0 0 / 0.13);
  --color-border-strong: oklch(0 0 0 / 0.28);
  --color-text: #15171c;
  --color-text-muted: #5c5f66;
  --color-text-faint: #8d9097;
  --color-text-inverse: #f3f1ec;
  --color-primary: #a07d33;
  --color-primary-hover: #8a6a28;
  --color-primary-active: #6f551f;
  --color-primary-highlight: oklch(from #a07d33 l c h / 0.12);
  --shadow-md: 0 6px 18px oklch(0.2 0.02 80 / 0.1);
  --shadow-lg: 0 24px 60px oklch(0.2 0.02 80 / 0.14);
  background: var(--color-bg);
  color: var(--color-text);
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.container {
  width: min(100% - clamp(var(--space-8), 6vw, var(--space-16)), var(--content-wide));
  margin-inline: auto;
}
.container--default {
  max-width: var(--content-default);
}
.container--narrow {
  max-width: var(--content-narrow);
}

.section {
  padding-block: clamp(var(--space-16), 9vw, var(--space-32));
}
.section--tight {
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.05;
}
h2.display {
  font-size: var(--text-2xl);
}
h3.display {
  font-size: var(--text-xl);
}

.lead {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--color-text-muted);
  font-weight: 400;
  max-width: 56ch;
}
.muted {
  color: var(--color-text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-6);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.btn--primary {
  background: var(--color-primary);
  color: #15171c;
}
.btn--primary:hover {
  background: var(--color-primary-hover);
}
.btn--primary:active {
  background: var(--color-primary-active);
}
.btn--ghost {
  color: var(--color-text);
  border: 1px solid var(--color-border-strong);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn--sm {
  min-height: 40px;
  padding: 0 var(--space-5);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-primary);
  text-decoration: none;
}
.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-interactive);
}
.link-arrow:hover svg {
  transform: translateX(4px);
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-radius: var(--radius-sm);
}
.skip-link:focus {
  top: var(--space-4);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: oklch(from var(--color-bg) l c h / 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-divider);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}
.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}
.brand__name {
  font-family: var(--font-wordmark);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.1;
  background: linear-gradient(180deg, #f2f1ec 0%, #b7b9be 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand__name span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.nav__list a {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-2) 0;
  border-bottom: 1px solid transparent;
}
.nav__list a:hover,
.nav__list a[aria-current='page'] {
  color: var(--color-text);
  border-bottom-color: var(--color-primary);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}
.nav-toggle svg {
  width: 22px;
  height: 22px;
}

@media (width < 960px) {
  .nav {
    /* The header's backdrop-filter makes it the containing block, so anchor
       to the header instead of the viewport. */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-4) clamp(var(--space-4), 4vw, var(--space-8)) var(--space-8);
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    opacity: 0;
    pointer-events: none;
    transition: opacity 240ms var(--ease-out);
  }
  .nav--open {
    opacity: 1;
    pointer-events: auto;
  }
  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav__list a {
    display: block;
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--color-divider);
    font-size: var(--text-sm);
  }
  .nav .btn {
    margin-top: var(--space-6);
  }
  .nav-toggle {
    display: inline-flex;
  }
  body.nav-locked {
    overflow: hidden;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: min(calc(92vh - var(--header-h)), 820px);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 100% 50%;
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--color-bg) 0%, var(--color-bg) 36%, oklch(from var(--color-bg) l c h / 0.55) 62%, oklch(from var(--color-bg) l c h / 0.15) 100%),
    linear-gradient(180deg, oklch(from var(--color-bg) l c h / 0.2) 0%, transparent 30%, transparent 70%, var(--color-bg) 100%);
}
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-12);
  padding-block: clamp(var(--space-16), 10vw, var(--space-32));
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-3xl);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-block: var(--space-6) var(--space-6);
  max-width: 14ch;
}
.hero__title em {
  font-style: italic;
  color: var(--color-primary);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}
.hero__meta {
  margin-top: var(--space-10);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}
.hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.hero__meta li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-primary);
}

@media (width < 960px) {
  .hero {
    min-height: 0;
  }
  .hero .container {
    grid-template-columns: 1fr;
    padding-block: var(--space-16) var(--space-12);
  }
  .hero__title {
    max-width: none;
  }
  .hero__bg img {
    object-position: 85% 50%;
  }
  .hero__bg::after {
    background:
      linear-gradient(180deg, oklch(from var(--color-bg) l c h / 0.75) 0%, oklch(from var(--color-bg) l c h / 0.85) 60%, var(--color-bg) 100%);
  }
}

/* Marquee strip */
.marquee {
  border-block: 1px solid var(--color-divider);
  background: var(--color-surface);
  overflow: hidden;
  padding-block: var(--space-4);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee__track {
  animation-play-state: paused;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-5);
  padding-inline: var(--space-6);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.marquee__item::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-primary);
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   Logo wall
   ========================================================================== */

.logos__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}
.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--color-divider);
  border: 1px solid var(--color-divider);
}
.logo-grid li {
  background: var(--color-bg);
  min-height: clamp(84px, 10vw, 150px);
  align-self: stretch;
  display: grid;
  place-items: center;
  padding: clamp(var(--space-5), 3vw, var(--space-8));
}
.logo-grid img {
  width: 100%;
  max-width: min(180px, 100%);
  max-height: 52px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.62;
  transition: opacity 220ms var(--ease-out);
}
.logo-grid li:hover img {
  opacity: 1;
}
.logo-grid li.logo-grid__note {
  padding: var(--space-6);
  text-align: left;
  place-items: start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
@media (width < 900px) {
  .logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (width < 560px) {
  .logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .logo-grid img {
    max-width: 130px;
    max-height: 40px;
  }
  .logo-grid li.logo-grid__note {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: var(--space-4);
  }
  .logo-grid li.logo-grid__note .link-arrow {
    flex-shrink: 0;
    white-space: nowrap;
  }
  /* odd logo count: let the last logo span the row instead of leaving a hole */
  .logo-grid li:nth-last-child(2):nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* ==========================================================================
   Services (editorial list)
   ========================================================================== */

.services {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(var(--space-10), 6vw, var(--space-24));
  align-items: start;
}
.services__intro {
  position: sticky;
  top: calc(var(--header-h) + var(--space-8));
}
.services__intro h2 {
  margin-block: var(--space-5) var(--space-6);
}
.services__intro .btn {
  margin-top: var(--space-8);
}
.service-list {
  border-top: 1px solid var(--color-border);
}
.service {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: var(--space-6);
  padding-block: clamp(var(--space-8), 4vw, var(--space-12));
  border-bottom: 1px solid var(--color-border);
}
.service__num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary);
  line-height: 1;
  padding-top: 0.25em;
}
.service h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-xl);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
}
.service p {
  color: var(--color-text-muted);
  max-width: 58ch;
}
.service .link-arrow {
  margin-top: var(--space-5);
}
@media (width < 900px) {
  .services {
    grid-template-columns: 1fr;
  }
  .services__intro {
    position: static;
  }
  .service {
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: var(--space-4);
  }
}

/* ==========================================================================
   Full-bleed quote band
   ========================================================================== */

.band {
  position: relative;
  isolation: isolate;
  min-height: min(62vh, 640px);
  display: grid;
  align-items: end;
  overflow: hidden;
}
.band > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.band::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, oklch(from #0b0d11 l c h / 0.25) 0%, oklch(from #0b0d11 l c h / 0.6) 55%, #0b0d11 100%);
}
.band .container {
  padding-block: clamp(var(--space-16), 10vw, var(--space-32)) clamp(var(--space-12), 7vw, var(--space-20));
}
@media (width < 960px) {
  .band {
    min-height: 0;
  }
  .band .container {
    padding-block: var(--space-32) var(--space-12);
  }
}
.band blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  max-width: 30ch;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: #f1efe9;
}
.band blockquote p::before {
  content: '\201C';
  color: var(--color-primary);
}
.band blockquote p::after {
  content: '\201D';
  color: var(--color-primary);
}
.band figcaption {
  margin-top: var(--space-6);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Newsletters (nameplates)
   ========================================================================== */

.newsletters__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-8);
  align-items: end;
  margin-bottom: var(--space-12);
}
.newsletters__head h2 {
  margin-top: var(--space-5);
}
.nameplates {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-4);
}
.nameplate {
  grid-column: span 4;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
  padding: clamp(var(--space-6), 3vw, var(--space-10));
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 220ms var(--ease-out), background 220ms var(--ease-out);
}
.nameplate::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), transparent 70%);
}
.nameplate:hover {
  border-color: var(--color-border-strong);
  background: var(--color-surface-2);
}
.nameplate__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}
.nameplate__kicker {
  color: var(--color-primary);
}
.nameplate__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 1.1rem + 1.6vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-block: var(--space-10) var(--space-3);
  max-width: none;
  overflow-wrap: anywhere;
}
.nameplate__rule {
  width: 56px;
  height: 1px;
  background: var(--color-primary);
  margin-bottom: var(--space-5);
}
.nameplate__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.nameplate--soon {
  grid-column: span 12;
  min-height: 0;
  flex-direction: row;
  align-items: center;
  border-style: dashed;
}
.nameplate--soon::before {
  display: none;
}
.nameplate--soon .nameplate__title {
  font-size: var(--text-xl);
  margin: 0;
  font-weight: 400;
  max-width: none;
}
.nameplate {
  min-height: 280px;
}
.nameplate--soon {
  min-height: 0;
}
@media (width < 960px) {
  .nameplate {
    grid-column: span 6;
  }
}
@media (width < 640px) {
  .nameplate {
    grid-column: span 12;
    min-height: 0;
  }
  .nameplate__title {
    margin-block: var(--space-6) var(--space-3);
  }
  .newsletters__head {
    grid-template-columns: 1fr;
  }
  .nameplate--soon {
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }
}

/* ==========================================================================
   Stats
   ========================================================================== */

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--color-divider);
}
.stat {
  padding: clamp(var(--space-8), 4vw, var(--space-12)) clamp(var(--space-4), 3vw, var(--space-10));
  border-right: 1px solid var(--color-divider);
}
.stat:last-child {
  border-right: 0;
}
.stat__value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-text);
}
.stat__value sup {
  font-size: 0.45em;
  color: var(--color-primary);
  vertical-align: top;
  margin-left: 0.1em;
}
.stat__label {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
@media (width < 700px) {
  .stats {
    grid-template-columns: 1fr;
  }
  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--color-divider);
  }
  .stat:last-child {
    border-bottom: 0;
  }
}

/* ==========================================================================
   About (two column)
   ========================================================================== */

.about {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(var(--space-10), 6vw, var(--space-24));
  align-items: center;
}
.about__media {
  position: relative;
}
.about__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about__media figcaption {
  position: absolute;
  left: var(--space-6);
  bottom: var(--space-6);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: oklch(from #0b0d11 l c h / 0.72);
  color: #e9e7e2;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.about__media figcaption img {
  width: 22px;
  height: 22px;
  aspect-ratio: 1;
  border-radius: 0;
  box-shadow: none;
}
.about__copy h2 {
  margin-block: var(--space-5) var(--space-6);
}
.about__copy p + p {
  margin-top: var(--space-4);
}
.about__copy .link-arrow {
  margin-top: var(--space-8);
}
@media (width < 900px) {
  .about {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.contact__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.contact__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0% 50%;
  opacity: 0.7;
}
.contact__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, oklch(from #0b0d11 l c h / 0.4) 0%, oklch(from #0b0d11 l c h / 0.92) 50%, #0b0d11 100%);
}
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(var(--space-10), 6vw, var(--space-24));
  align-items: start;
}
.contact__copy h2 {
  margin-block: var(--space-5) var(--space-6);
}
.contact__copy address {
  font-style: normal;
  margin-top: var(--space-10);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
}
.form {
  background: oklch(from var(--color-surface) l c h / 0.85);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 3vw, var(--space-10));
  backdrop-filter: blur(10px);
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}
.field label {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.field input,
.field select,
.field textarea {
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a3a5ab' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-highlight);
}
.form .btn {
  width: 100%;
  margin-top: var(--space-2);
}
.form__note {
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-align: center;
}
@media (width < 900px) {
  .contact__grid {
    grid-template-columns: 1fr;
  }
}
@media (width < 560px) {
  .form__row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--color-divider);
  background: var(--color-surface);
  padding-block: clamp(var(--space-12), 6vw, var(--space-20)) var(--space-8);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr));
  gap: var(--space-10) var(--space-8);
}
.footer__brand p {
  margin-top: var(--space-5);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  max-width: 34ch;
}
.footer__col h3 {
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  font-weight: 500;
  margin-bottom: var(--space-4);
}
.footer__col ul {
  display: grid;
  gap: var(--space-2);
}
.footer__col a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
}
.footer__col a:hover {
  color: var(--color-text);
}
.footer__bottom {
  margin-top: clamp(var(--space-10), 5vw, var(--space-16));
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.footer__bottom address {
  font-style: normal;
}
@media (width < 960px) {
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}

/* ==========================================================================
   Interior pages
   ========================================================================== */

.page-head {
  padding-block: clamp(var(--space-12), 7vw, var(--space-24)) clamp(var(--space-8), 4vw, var(--space-12));
  border-bottom: 1px solid var(--color-divider);
}
.page-head h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-2xl);
  letter-spacing: -0.02em;
  margin-block: var(--space-5) var(--space-5);
  max-width: 18ch;
}
.page-head .lead {
  max-width: 60ch;
}

.brand-band {
  position: relative;
  width: 100%;
  max-width: 100vw;
  aspect-ratio: 21 / 7;
  min-height: 260px;
  max-height: 520px;
  overflow: hidden;
  border-bottom: 1px solid var(--color-divider);
}
.brand-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prose {
  max-width: var(--content-narrow);
}
.prose p {
  color: var(--color-text-muted);
}
.prose p + p,
.prose p + ul,
.prose ul + p {
  margin-top: var(--space-5);
}
.prose strong {
  color: var(--color-text);
  font-weight: 600;
}
.prose h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-xl);
  margin-block: var(--space-12) var(--space-5);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
}
.prose h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-block: var(--space-8) var(--space-2);
}
.prose ul {
  padding-left: 1.2em;
  color: var(--color-text-muted);
  display: grid;
  gap: var(--space-2);
}
.prose ul li::marker {
  color: var(--color-primary);
}
.prose a {
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px solid oklch(from var(--color-primary) l c h / 0.4);
}
.prose a:hover {
  border-bottom-color: var(--color-primary);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(var(--space-10), 6vw, var(--space-24));
  align-items: start;
}
.aside-card {
  position: sticky;
  top: calc(var(--header-h) + var(--space-8));
  padding: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.aside-card h3 {
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  font-weight: 500;
  margin-bottom: var(--space-4);
}
.aside-card ul {
  display: grid;
  gap: var(--space-3);
}
.aside-card li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-divider);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.aside-card li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.aside-card li strong {
  color: var(--color-text);
  font-weight: 500;
  text-align: right;
}
.aside-card .btn {
  width: 100%;
  margin-top: var(--space-6);
}
@media (width < 900px) {
  .two-col {
    grid-template-columns: 1fr;
  }
  .aside-card {
    position: static;
  }
}

/* Service detail blocks (services page) */
.service-detail {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(var(--space-8), 5vw, var(--space-20));
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
  border-bottom: 1px solid var(--color-divider);
}
.service-detail:last-of-type {
  border-bottom: 0;
}
.service-detail__num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.service-detail h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-2xl);
  letter-spacing: -0.02em;
  max-width: 12ch;
}
.service-detail__body p {
  color: var(--color-text-muted);
}
.service-detail__body p + p {
  margin-top: var(--space-4);
}
.service-detail__body ul {
  margin-top: var(--space-8);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3) var(--space-8);
}
.service-detail__body li {
  display: flex;
  gap: var(--space-3);
  align-items: baseline;
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--color-divider);
  font-size: var(--text-sm);
}
.service-detail__body li::before {
  content: '';
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  transform: translateY(-2px);
}
@media (width < 900px) {
  .service-detail {
    grid-template-columns: 1fr;
  }
}
@media (width < 560px) {
  .service-detail__body ul {
    grid-template-columns: 1fr;
  }
}

/* CTA strip */
.cta-strip {
  border-top: 1px solid var(--color-divider);
}
.cta-strip .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
}
.cta-strip h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-xl);
  max-width: 22ch;
}

/* Reveal — opacity only, no layout shift. JS adds .js to <html> and
   .is-visible on intersect; without JS everything is visible. */
.reveal {
  opacity: 1;
}
.js .reveal {
  opacity: 0;
  transition: opacity 0.7s ease;
}
.js .reveal.is-visible {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transition: none;
  }
}

/* ---------- Legal documents ---------- */
.two-col--legal {
  grid-template-columns: minmax(0, 8fr) minmax(0, 3fr);
}
@media (width < 900px) {
  .two-col--legal {
    grid-template-columns: 1fr;
  }
  .two-col--legal .aside-card {
    order: -1;
  }
}
.legal {
  max-width: 72ch;
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-muted);
}
.legal > * + * {
  margin-top: var(--space-5);
}
.legal h1,
.legal h2,
.legal h3,
.legal h4,
.legal h5,
.legal h6 {
  color: var(--color-text);
  font-weight: 600;
  line-height: 1.3;
}
.legal h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-xl);
  letter-spacing: -0.01em;
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
}
.legal h2:first-child,
.legal h2.legal__doc-title {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.legal h6 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}
.legal strong {
  color: var(--color-text);
  font-weight: 600;
}
.legal em {
  font-style: italic;
}
.legal u {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.legal a {
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px solid oklch(from var(--color-primary) l c h / 0.4);
  overflow-wrap: anywhere;
}
.legal a:hover {
  border-bottom-color: var(--color-primary);
}
.legal a[id]:not([href]) {
  color: inherit;
  border-bottom: 0;
  scroll-margin-top: calc(var(--header-h) + var(--space-6));
}
.legal ol,
.legal ul {
  padding-left: 1.5em;
  display: grid;
  gap: var(--space-2);
}
.legal ul li::marker {
  color: var(--color-primary);
}
.legal ol li::marker {
  color: var(--color-text);
  font-weight: 500;
}
.legal li > ol,
.legal li > ul {
  margin-top: var(--space-2);
}
/* Preserve editorial markup exactly as published */
.legal ins {
  text-decoration: underline;
  text-decoration-color: oklch(from var(--color-primary) l c h / 0.6);
  text-underline-offset: 0.15em;
}
.legal del {
  text-decoration: line-through;
  color: var(--color-text-faint);
}
.legal p:empty {
  display: none;
}

.legal-aside .btn {
  margin-top: var(--space-6);
}
.legal-aside__nav li {
  display: block;
  padding: 0;
  border: 0;
}
.legal-aside__nav a {
  display: block;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: color 180ms var(--ease-out);
}
.legal-aside__nav li:last-child a {
  border-bottom: 0;
}
.legal-aside__nav a:hover,
.legal-aside__nav a[aria-current="page"] {
  color: var(--color-primary);
}
.legal-aside__meta {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.legal-aside__meta strong {
  color: var(--color-text);
  font-weight: 500;
}

/* Do Not Sell form */
.legal-form {
  margin-top: var(--space-10);
  max-width: 72ch;
}
.req {
  color: var(--color-primary);
}
.check {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  margin-block: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  cursor: pointer;
}
.check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--color-primary);
}
.check strong {
  color: var(--color-text);
  font-weight: 600;
}
.legal-form .field label {
  text-transform: none;
  letter-spacing: 0;
  font-size: var(--text-sm);
}
@media (width < 900px) {
  .legal-aside {
    padding: var(--space-5);
  }
  .aside-card .legal-aside__nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
  }
  .legal-aside__nav a,
  .legal-aside__nav li:last-child a {
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: var(--text-xs);
  }
  .legal-aside__nav a[aria-current="page"] {
    border-color: var(--color-primary);
  }
  .legal-aside .btn,
  .legal-aside__meta {
    display: none;
  }
}


/* ---------- WordPress integration ---------- */
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.gp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__notice { padding: var(--space-3) var(--space-4); border-radius: 6px; font-size: var(--text-sm); border: 1px solid var(--color-border); }
.form__notice--ok { border-color: var(--color-primary); color: var(--color-primary); }
.form__notice--error { border-color: #c0583f; color: #e39a86; }
.page-single { max-width: 820px; }
.legal--generic { color: var(--color-text); }
.legal--generic h2, .legal--generic h3 { color: var(--color-text); }
.legal--generic p { color: var(--color-text); }
.legal--generic a { color: var(--color-primary); }
.legal img, .entry-content img { height: auto; max-width: 100%; }
.entry-content .wp-block-image figcaption { font-size: var(--text-sm); color: var(--color-text-muted); }
.entry-content .wp-block-table table { width: 100%; border-collapse: collapse; }
.entry-content .wp-block-table td, .entry-content .wp-block-table th { border: 1px solid var(--color-border); padding: var(--space-2) var(--space-3); }
.entry-content .wp-block-buttons .wp-block-button__link { background: var(--color-primary); color: var(--color-ink); border-radius: 999px; padding: var(--space-3) var(--space-5); text-decoration: none; }
.entry-content .alignwide, .entry-content .alignfull { max-width: 100%; }

/* ---------- Blog / archive ---------- */
.cat-chips { margin-bottom: var(--space-8); }
.cat-chips ul { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.cat-chips a { display: inline-block; padding: 0.4rem 0.9rem; border: 1px solid var(--color-border); border-radius: var(--radius-full); font-size: var(--text-sm); color: var(--color-text-muted); text-decoration: none; transition: color .2s, border-color .2s; }
.cat-chips a:hover, .cat-chips a[aria-current="page"] { color: var(--color-primary); border-color: var(--color-primary); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
@media (width < 960px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (width < 640px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); overflow: hidden; transition: border-color .2s, transform .2s; }
.post-card:hover { border-color: var(--color-primary); transform: translateY(-2px); }
.post-card__media { display: block; aspect-ratio: 16 / 10; background: var(--color-surface-2); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.post-card:hover .post-card__media img { transform: scale(1.03); }
.post-card--text { border-top: 2px solid var(--color-primary); }
.post-card__body { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); flex: 1; }
.post-card__meta { font-size: var(--text-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--color-primary); margin: 0; }
.post-card__meta a { color: inherit; text-decoration: none; }
.post-card__title { font-family: var(--font-display); font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.5rem); line-height: 1.3; margin: 0; text-wrap: pretty; }
.post-card__title a { color: var(--color-text); text-decoration: none; }
.post-card__title a:hover { color: var(--color-primary); }
.post-card__excerpt { color: var(--color-text-muted); font-size: var(--text-sm); margin: 0; flex: 1; }
.pagination { margin-top: var(--space-10); }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.5rem; padding: 0.5rem 0.9rem; border: 1px solid var(--color-border); border-radius: var(--radius-full); color: var(--color-text-muted); text-decoration: none; font-size: var(--text-sm); }
.pagination .page-numbers:hover, .pagination .page-numbers.current { color: var(--color-text-inverse); background: var(--color-primary); border-color: var(--color-primary); }
.pagination .page-numbers.dots { border: 0; }
.page-head--article .eyebrow a { color: inherit; text-decoration: none; }
.page-head--article .eyebrow a:hover { text-decoration: underline; }
.article__title { max-width: 900px; }
.article__meta { color: var(--color-text-muted); font-size: var(--text-sm); margin-top: var(--space-4); }
.article__figure { margin-top: calc(-1 * var(--space-6)); }
.article__figure img { width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--color-border); display: block; }
.article__body { font-size: var(--text-lg); }
.article__body h2, .article__body h3 { color: var(--color-text); }
.article__body p { color: var(--color-text); }
.article__body a { color: var(--color-primary); }
.article__body figure, .article__body .wp-block-embed { margin: var(--space-6) 0; }
.article__tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-8); font-size: var(--text-sm); }
.article__tags a { color: var(--color-text-muted); text-decoration: none; }
.article__nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-top: var(--space-10); padding-top: var(--space-6); border-top: 1px solid var(--color-border); }
.article__nav-item span { display: block; font-size: var(--text-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--color-primary); margin-bottom: var(--space-2); }
.article__nav-item a { color: var(--color-text); text-decoration: none; font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.3; }
.article__nav-item a:hover { color: var(--color-primary); }
.article__nav-item--next { text-align: right; }
@media (width < 640px) { .article__nav { grid-template-columns: 1fr; } .article__nav-item--next { text-align: left; } }
