:root {
  --bg-canvas: #1c1917;
  --bg-surface: #302923;
  --bg-surface-deep: #241f1b;
  --bg-surface-hover: #3b322b;
  --text-primary: #f4f1ea;
  --text-muted: #c9bfb0;
  --accent-primary: #d4a84b;
  --accent-secondary: #a87d28;
  --accent-ink: #1c1917;
  --border-subtle: rgba(212, 168, 75, 0.22);
  --radius-panel: 20px;
  --radius-btn: 10px;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 14px 36px -8px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 22px 44px -10px rgba(0, 0, 0, 0.6);
  --glow-accent: 0 0 28px -6px rgba(212, 168, 75, 0.32);
  --btn-offset: 4px 4px 0 #73571f;
  --font-editorial: Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-canvas);
}

body {
  margin: 0;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-panel);
  object-fit: cover;
}

a {
  color: var(--accent-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 0.2s var(--ease-kinetic);
}

a:hover {
  color: #ebd08c;
}

:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -120px;
  left: 16px;
  background: var(--accent-primary);
  color: var(--accent-ink);
  padding: 10px 16px;
  font-weight: 700;
  border-radius: 8px;
  z-index: 100;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.reading-measure {
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
}

/* Header: far-left brand, centered nav row beneath, scrolls away */
.site-header {
  position: relative;
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--border-subtle);
  padding: 20px 0 18px;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-editorial);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-link:hover {
  color: var(--accent-primary);
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.brand-tag {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  display: none;
}

.primary-nav {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(244, 241, 234, 0.08);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.nav-list a {
  display: inline-block;
  padding: 6px 4px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease-kinetic), border-color 0.2s var(--ease-kinetic);
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

.mobile-menu-btn {
  display: none;
  background: var(--bg-surface);
  color: var(--accent-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--ease-kinetic), transform 0.2s var(--ease-kinetic);
}

.mobile-menu-btn:hover {
  background: var(--bg-surface-hover);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-editorial);
  font-weight: 700;
  line-height: 1.16;
  color: var(--text-primary);
  margin-top: 0;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(1.75rem, 3.1vw, 2.5rem);
  margin-bottom: 16px;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin-bottom: 10px;
}

p {
  margin-top: 0;
  margin-bottom: 18px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-primary);
  margin-bottom: 14px;
}

.lead-copy {
  font-size: clamp(1.12rem, 1.6vw, 1.32rem);
  color: var(--text-muted);
  max-width: 62ch;
}

/* Buttons: gold blocks with 4px 4px hard offset shadow closing on hover */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--accent-primary);
  color: var(--accent-ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 14px 26px;
  border: 0;
  border-radius: var(--radius-btn);
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--btn-offset);
  transition: transform 0.2s var(--ease-kinetic), box-shadow 0.2s var(--ease-kinetic), background-color 0.2s var(--ease-kinetic);
}

.btn-gold:hover {
  color: var(--accent-ink);
  background-color: #dfb75f;
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 #73571f;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 13px 22px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-btn);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-kinetic), transform 0.2s var(--ease-kinetic);
}

.btn-ghost:hover {
  color: var(--accent-primary);
  background-color: var(--bg-surface-hover);
  transform: translateY(-2px);
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 28px;
}

/* Hero (solid dark field without image) */
.hero-solid {
  background-color: var(--bg-canvas);
  padding: 84px 0 64px;
}

.hero-solid h1 {
  max-width: 15ch;
  font-size: clamp(2.8rem, 6.4vw, 5.2rem);
  line-height: 1.06;
}

.page-hero {
  background-color: var(--bg-canvas);
  padding: 64px 0 40px;
  border-bottom: 1px solid rgba(244, 241, 234, 0.08);
}

.page-hero h1 {
  max-width: 22ch;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 18px;
}

/* Sections & radial gold backlights */
.section-block {
  padding: 64px 0;
  position: relative;
}

.section-gold-glow {
  background: radial-gradient(ellipse 75% 60% at 50% 42%, rgba(212, 168, 75, 0.16), rgba(212, 168, 75, 0.04) 48%, rgba(28, 25, 23, 0) 78%);
}

.section-header {
  max-width: 72ch;
  margin-bottom: 36px;
}

/* Panels & borderless cards */
.panel {
  background-color: var(--bg-surface);
  border: 0;
  border-radius: var(--radius-panel);
  padding: 32px;
  box-shadow: var(--shadow-elevation);
  transition: transform 0.32s var(--ease-kinetic), box-shadow 0.32s var(--ease-kinetic), background-color 0.32s var(--ease-kinetic);
}

.panel-interactive:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover), var(--glow-accent);
  background-color: var(--bg-surface-hover);
}

.oversized-lead {
  padding: 44px;
  margin-bottom: 24px;
  background: linear-gradient(150deg, #352d26 0%, #2a241f 100%);
}

.oversized-lead h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  max-width: 24ch;
}

.editorial-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.fluid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* Annotated Workflow */
.workflow-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.workflow-step {
  background-color: var(--bg-surface);
  border-radius: var(--radius-panel);
  padding: 28px 24px;
  box-shadow: var(--shadow-elevation);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.32s var(--ease-kinetic), box-shadow 0.32s var(--ease-kinetic);
}

.workflow-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover), var(--glow-accent);
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(212, 168, 75, 0.16);
  color: var(--accent-primary);
  font-family: var(--font-editorial);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.step-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(244, 241, 234, 0.08);
  font-size: 0.88rem;
  color: var(--accent-primary);
}

/* Paired Editorial Tiles */
.gateway-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: var(--text-primary);
  height: 100%;
}

.gateway-card p {
  color: var(--text-muted);
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-weight: 700;
  color: var(--accent-primary);
  font-size: 0.94rem;
}

/* Transcript excerpts with source notes */
.transcript-box {
  background-color: var(--bg-surface-deep);
  border-left: 4px solid var(--accent-primary);
  border-radius: 0 var(--radius-panel) var(--radius-panel) 0;
  padding: 24px 28px;
  margin: 24px 0;
  box-shadow: var(--shadow-elevation);
}

.transcript-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-primary);
  font-weight: 700;
  margin-bottom: 8px;
}

.transcript-quote {
  font-family: var(--font-editorial);
  font-size: 1.14rem;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.transcript-source {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Horizontally scrollable capability table */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-panel);
  background: var(--bg-surface);
  box-shadow: var(--shadow-elevation);
  margin: 28px 0;
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  text-align: left;
}

th, td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(244, 241, 234, 0.08);
  vertical-align: top;
}

th {
  font-family: var(--font-editorial);
  color: var(--accent-primary);
  background: var(--bg-surface-deep);
  font-size: 0.98rem;
}

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

/* Media figures & aspect ratios */
.media-card {
  background: var(--bg-surface);
  border-radius: var(--radius-panel);
  overflow: hidden;
  box-shadow: var(--shadow-elevation);
  transition: transform 0.32s var(--ease-kinetic), box-shadow 0.32s var(--ease-kinetic);
}

.media-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover), var(--glow-accent);
}

.media-frame {
  width: 100%;
  background-color: var(--bg-surface-deep);
  overflow: hidden;
  border-radius: var(--radius-panel) var(--radius-panel) 0 0;
}

.media-frame img {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.ratio-16x9 {
  aspect-ratio: 16 / 9;
}

.ratio-4x3 {
  aspect-ratio: 4 / 3;
}

.ratio-1x1 {
  aspect-ratio: 1 / 1;
}

.media-caption {
  padding: 20px 24px 24px;
}

.media-caption h3 {
  font-size: 1.18rem;
  margin-bottom: 8px;
}

.media-caption p {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin-bottom: 0;
}

.article-figure {
  margin: 32px 0;
}

.article-figure figcaption {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Horizontal split card for articles */
.split-feature {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  background: var(--bg-surface);
  border-radius: var(--radius-panel);
  padding: 28px;
  box-shadow: var(--shadow-elevation);
  margin: 32px 0;
}

/* Article layout with editorial sidebar */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 44px;
  align-items: start;
  padding: 48px 0 72px;
}

.article-body {
  max-width: 70ch;
}

.article-body h2 {
  margin-top: 38px;
}

.article-body ul, .article-body ol {
  padding-left: 22px;
  margin-bottom: 20px;
}

.article-body li {
  margin-bottom: 8px;
}

.editorial-aside {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.aside-card {
  background: var(--bg-surface);
  border-radius: var(--radius-panel);
  padding: 24px;
  box-shadow: var(--shadow-elevation);
}

.aside-card h3 {
  font-size: 1.12rem;
  color: var(--accent-primary);
  margin-bottom: 12px;
}

.aside-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.aside-list li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(244, 241, 234, 0.08);
  font-size: 0.92rem;
  color: var(--text-muted);
}

.aside-list li:last-child {
  border-bottom: 0;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-surface);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-elevation);
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--text-primary);
  font-family: var(--font-editorial);
  font-size: 1.15rem;
  font-weight: 700;
  text-align: left;
  padding: 22px 26px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-trigger:hover {
  color: var(--accent-primary);
}

.faq-icon {
  color: var(--accent-primary);
  font-family: var(--font-body);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.25s var(--ease-kinetic);
}

.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-panel {
  padding: 0 26px 22px;
  color: var(--text-muted);
}

.faq-panel[hidden] {
  display: none;
}

/* Contact Newsroom Sheet */
.sheet-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.field-group {
  margin-bottom: 18px;
}

.field-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 6px;
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  background: var(--bg-surface-deep);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.98rem;
}

.field-group textarea {
  min-height: 130px;
  resize: vertical;
}

.preview-output {
  background: var(--bg-surface-deep);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-primary);
  white-space: pre-wrap;
  min-height: 240px;
  margin-bottom: 18px;
}

.status-line {
  font-size: 0.9rem;
  color: var(--accent-primary);
  min-height: 1.4em;
  margin-top: 10px;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s var(--ease-kinetic), transform 0.65s var(--ease-kinetic);
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer: editorial remit, topic links, Contact, legal links, company block */
.site-footer {
  background-color: var(--bg-surface-deep);
  border-top: 1px solid var(--border-subtle);
  padding: 56px 0 36px;
  margin-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.9fr 0.9fr 1.3fr;
  gap: 28px;
  margin-bottom: 36px;
}

.footer-heading {
  font-family: var(--font-editorial);
  font-size: 1.02rem;
  color: var(--accent-primary);
  margin-bottom: 14px;
}

.footer-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 9px;
  font-size: 0.92rem;
}

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

.footer-links a:hover {
  color: var(--accent-primary);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid rgba(244, 241, 234, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Breakpoints */
@media (min-width: 769px) {
  .brand-tag {
    display: inline-block;
  }
}

@media (max-width: 1024px) {
  .workflow-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: inline-flex;
  }
  .primary-nav {
    display: none;
    margin-top: 14px;
    padding: 14px 0 6px;
    background: var(--bg-surface);
    border-radius: 16px;
    border-top: 0;
    box-shadow: var(--shadow-elevation);
  }
  .primary-nav.is-open {
    display: block;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 0 14px;
  }
  .nav-list a {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(244, 241, 234, 0.08);
  }
  .nav-list li:last-child a {
    border-bottom: 0;
  }
  .editorial-two-col,
  .split-feature,
  .sheet-grid,
  .workflow-track {
    grid-template-columns: 1fr;
  }
  .hero-solid {
    padding: 56px 0 42px;
  }
  .oversized-lead,
  .panel {
    padding: 26px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .brand-link {
    font-size: 1.12rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .panel, .workflow-step, .media-card, .btn-gold, .btn-ghost {
    transition: none;
  }
}