/*
Theme Name:  Ai & Beyond_1
Theme URI:   https://aiandbeyond.com
Author:      Ai & Beyond
Author URI:  https://aiandbeyond.com
Description: Premium editorial WordPress theme for Ai & Beyond — independent analysis of AI, technology, and the ideas shaping our future.
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ai-beyond
Tags:        blog, editorial, custom-colors, custom-logo, featured-images, full-width-template, sticky-post, threaded-comments
*/

/* ==========================================================================
   Ai & Beyond — Design System
   Premium editorial stylesheet.
   Google Fonts are enqueued via functions.php — not @import'd here.

   Template map:
     home.php               → Blog / Articles index
     page-templates/topics.php → Topics index
     category.php           → Topic detail
     front-page.php / single.php use assets/css/tailwind.compiled.css
   ========================================================================== */

:root {
  /* ------------------------------------------------------------------
     AI & Beyond Design System
     ------------------------------------------------------------------ */

  /* Backgrounds */
  --color-bg:     #F6F2EA;
  --color-bg-alt: #F8F5EF;

  /* Text */
  --color-text:        #151515;
  --color-heading:     #151515;
  --color-text-muted:  #B9B2A5;
  --color-text-soft:   #6B6659;

  /* Accent */
  --color-accent: #8B806E;

  /* Borders */
  --color-border:        rgba(21, 21, 21, 0.08);
  --color-border-strong: rgba(21, 21, 21, 0.14);

  /* Dark sections */
  --color-footer-bg:          #0F1214;
  --color-footer-text:        rgba(248, 245, 239, 0.72);
  --color-footer-text-strong: #F8F5EF;

  /* Typography */
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:  'JetBrains Mono', monospace;

  /* Layout */
  --container-max: 1120px;
  --header-height: 64px;
  --radius: 6px;
  --ease:   cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 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;
}

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0E0D0B;
  border-bottom: 1px solid rgba(255,255,255,.06);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: saturate(140%) blur(10px);
  transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 1px 0 rgba(17,17,17,0.02), 0 8px 24px -18px rgba(17,17,17,0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-height);
}

.brand {
  display: flex;
  color: #F6F2EA;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-right: auto;
}

.brand img,
.brand svg {
  height: 20px;
  width: auto;
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 0 auto;
}

.main-nav a {
  position: relative;
  font-size: 13px;
  color: rgba(246,242,234,.65);
  font-weight: 400;
  transition: .25s;
}

.main-nav a:hover { color: #F6F2EA; }

.main-nav a[aria-current="page"] {
  color: #F6F2EA;
  font-weight: 500;
}

/* WordPress nav menu reset — keep our styling, remove WP defaults */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav ul li { margin: 0; padding: 0; }

.main-nav ul li a {
  position: relative;
  font-size: 13px;
  color: rgba(246,242,234,.65);
  font-weight: 400;
  transition: color .25s;
}

.main-nav ul li a:hover,
.main-nav ul li.current-menu-item > a,
.main-nav ul li.current_page_item > a {
  color: #F6F2EA;
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: none;
  border: none;
  color: var(--color-text);
  border-radius: 50%;
  transition: background 0.25s var(--ease);
}
.icon-btn:hover { background: rgba(17,17,17,0.06); }
.icon-btn svg { width: 18px; height: 18px; }

.btn-subscribe {
  background: #8B806E;
  color: #151515;
  border: none;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 6px;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.btn-subscribe:hover {
  background: #7C725F;
  box-shadow: 0 8px 20px -8px rgba(198,138,58,0.7);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 36px; height: 36px;
  align-items: center;
  justify-content: center;
  color: #F6F2EA;
}

/* Mobile nav open state */
.main-nav.is-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: #0E0D0B;
  padding: 24px 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  z-index: 99;
  gap: 20px;
}

.main-nav.is-open ul {
  flex-direction: column;
  gap: 20px;
}

/* ==========================================================================
   Hero (archive page)
   ========================================================================== */

.hero {
  padding-top: 76px;
  padding-bottom: 40px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8B806E;
  margin-bottom: 18px;
}

.hero-title {
  color: #151515;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(48px, 6.5vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}

.hero-subtitle {
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text-soft);
  max-width: 460px;
}

/* ==========================================================================
   Tabs
   ========================================================================== */

.tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 34px;
  margin-bottom: 4px;
}

.tabs {
  display: flex;
  gap: 34px;
}

.tab {
  position: relative;
  background: none;
  border: none;
  padding: 0 0 16px;
  font-size: 15px;
  color: var(--color-text-muted);
  transition: color 0.3s var(--ease);
}
.tab:hover { color: var(--color-text); }

.tab .tab-underline {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
  border-radius: 2px;
}

.tab[aria-selected="true"] {
  color: var(--color-text);
  font-weight: 500;
}
.tab[aria-selected="true"] .tab-underline { transform: scaleX(1); }

.article-count {
  font-size: 13px;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.tabs-divider {
  height: 1px;
  background: var(--color-border);
  margin-bottom: 8px;
}

/* ==========================================================================
   Article list
   ========================================================================== */

.article-list {
  display: flex;
  flex-direction: column;
}

.article-row {
  display: grid;
  grid-template-columns: 292px 1fr;
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--color-border);
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 0.6s var(--ease) forwards;
}

@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

.article-media {
  position: relative;
  width: 100%;
  aspect-ratio: 292 / 200;
  overflow: hidden;
  border-radius: 2px;
  clip-path: polygon(0 0, 100% 0, 100% 84%, 92% 100%, 0 100%);
  background: #14120F;
}

.article-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  filter: brightness(0.98);
  transition: transform 0.9s var(--ease), filter 0.9s var(--ease);
}

.article-row:hover .article-media img {
  transform: scale(1.06);
  filter: brightness(1.06);
}

.article-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-top: 2px;
}

.article-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.article-category {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.article-title {
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.005em;
  margin-bottom: 12px;
  transition: color 0.3s var(--ease);
}

.article-row:hover .article-title { color: var(--color-accent); }

.article-row a.article-link { outline: none; }

.article-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--color-text-soft);
  max-width: 540px;
  margin-bottom: 18px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.author-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-border-strong);
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 600;
  color: #57534A;
  overflow: hidden;
}

.author-name { color: var(--color-text-soft); font-weight: 500; }
.meta-dot { opacity: 0.6; }

.bookmark-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-soft);
  border-radius: 50%;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}
.bookmark-btn:hover {
  background: rgba(198,138,58,0.1);
  color: var(--color-accent);
}
.bookmark-btn svg { width: 17px; height: 17px; }
.bookmark-btn[aria-pressed="true"] { color: var(--color-accent); }
.bookmark-btn[aria-pressed="true"] svg path { fill: var(--color-accent); }
.bookmark-btn.just-toggled { transform: scale(1.2); }

/* ==========================================================================
   Load more
   ========================================================================== */

.load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 48px 0 96px;
}

.btn-load-more {
  background: var(--color-text);
  color: var(--color-bg);
  border: none;
  font-size: 14px;
  font-weight: 500;
  padding: 14px 34px;
  border-radius: 3px;
  letter-spacing: 0.01em;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn-load-more:hover { background: #2a2a2a; transform: translateY(-1px); }
.btn-load-more:disabled { opacity: 0.5; cursor: default; transform: none; }

/* ==========================================================================
   Newsletter
   ========================================================================== */

.newsletter {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 72px 0;
  position: relative;
}

.newsletter-heading {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.4vw, 36px);
  font-weight: 500;
  line-height: 1.2;
  max-width: 380px;
}

.newsletter-form-block {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.newsletter-copy {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-form input[type="email"] {
  width: 250px;
  padding: 13px 16px;
  border: 1px solid var(--color-border-strong);
  background: var(--color-bg);
  border-radius: 3px;
  font-size: 14px;
  color: var(--color-text);
  transition: border-color 0.25s var(--ease);
}
.newsletter-form input[type="email"]::placeholder { color: var(--color-text-muted); }
.newsletter-form input[type="email"]:focus {
  border-color: var(--color-accent);
  outline: none;
}

.newsletter-form .btn-subscribe { padding: 13px 24px; }

.newsletter-decor {
  position: absolute;
  z-index: 0;
  right: -50px;
  bottom: -70px;
  width: 190px;
  height: 190px;
  pointer-events: none;
  opacity: 0.55;
}

.newsletter-logo {
  width: 160px;
  height: auto;
  opacity: .15;
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 860px) {
  .newsletter-decor,
  .newsletter-logo { display: none; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 64px 0 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand .brand {
  color: var(--color-footer-text-strong);
  margin-bottom: 14px;
}

.footer-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--color-footer-text);
  max-width: 240px;
  margin-bottom: 22px;
}

.footer-social { display: flex; gap: 14px; }

.footer-social a {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(247,243,236,0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-footer-text);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.footer-social a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.footer-social svg { width: 14px; height: 14px; }

.footer-col-title {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247,243,236,0.4);
  margin-bottom: 18px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  font-size: 14px;
  color: var(--color-footer-text);
  transition: color 0.25s var(--ease);
}
.footer-col a:hover { color: var(--color-accent); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 26px;
  border-top: 1px solid rgba(247,243,236,0.12);
  font-size: 12.5px;
  color: rgba(247,243,236,0.45);
}

/* ==========================================================================
   Logo
   ========================================================================== */

.site-logo {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-brand .site-logo { height: 42px; }

/* ==========================================================================
   Topics index page
   ========================================================================== */

.topics-hero {
  padding-top: 76px;
  padding-bottom: 40px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.topics-hero-main { max-width: 620px; }

.topics-hero-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(42px, 5.6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.topics-hero-desc {
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text-soft);
  max-width: 480px;
  margin-bottom: 18px;
}

.topics-meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.topics-meta .accent { color: #8B806E; }
.topics-meta .meta-dot { margin: 0 8px; opacity: 0.6; }

.topics-sort {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 120px;
  white-space: nowrap;
}

.topics-sort label { font-size: 13px; color: var(--color-text-muted); }

.topics-sort-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.topics-sort select {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  padding: 4px 22px 4px 0;
  cursor: pointer;
}
.topics-sort select:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.topics-sort-select-wrap::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 50%;
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--color-text);
  border-bottom: 1.5px solid var(--color-text);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

/* ---- Topics list ---- */

.topics-list {
  display: flex;
  flex-direction: column;
}

.topic-row {
  display: grid;
  grid-template-columns: 34px 52px minmax(180px, 240px) 1fr 200px 48px;
  align-items: center;
  gap: 26px;
  padding: 30px 14px;
  margin: 0 -14px;
  border-bottom: 1px solid var(--color-border);
  border-radius: 4px;
  opacity: 0;
  transform: translateY(12px);
  animation: reveal 0.55s var(--ease) forwards;
  transition: background 0.25s var(--ease);
  text-decoration: none;
  color: inherit;
}

.topic-row:hover { background: rgba(17, 17, 17, 0.025); }

.topic-number {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
}

.topic-top-line { display: contents; }

.topic-icon {
  width: 42px; height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}
.topic-icon svg {
  width: 24px; height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topic-name {
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.24;
  transition: color 0.25s var(--ease);
}
.topic-row:hover .topic-name { color: var(--color-accent); }

.topic-meta { display: flex; flex-direction: column; gap: 5px; max-width: 420px; }

.topic-count { font-size: 13px; font-weight: 600; color: var(--color-text); }

.topic-desc { font-size: 13.5px; line-height: 1.55; color: var(--color-text-soft); }

.topic-media {
  position: relative;
  width: 100%;
  aspect-ratio: 210 / 78;
  overflow: hidden;
  border-radius: 2px;
  clip-path: polygon(0 0, 100% 0, 100% 76%, 88% 100%, 0 100%);
  background: #14120F;
}
.topic-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.98);
  transition: transform 0.9s var(--ease), filter 0.9s var(--ease);
}
.topic-row:hover .topic-media img {
  transform: scale(1.06);
  filter: brightness(1.06);
}

.topic-arrow {
  justify-self: end;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #111111;
  color: #F7F3EC;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.topic-arrow svg { width: 16px; height: 16px; }
.topic-row:hover .topic-arrow {
  background: var(--color-accent);
  color: #16110A;
  transform: scale(1.08);
}

/* ==========================================================================
   Topic detail page (category.php)
   ========================================================================== */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 32px;
  font-size: 13px;
  color: var(--color-text-muted);
}
.breadcrumb a { color: var(--color-text-muted); transition: color 0.25s var(--ease); }
.breadcrumb a:hover { color: var(--color-text); }
.breadcrumb-sep { opacity: 0.5; }
.breadcrumb [aria-current="page"] { color: var(--color-text-soft); }

/* ---- Hero ---- */

.topic-hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 56px;
  padding-top: 24px;
  padding-bottom: 44px;
}

.topic-hero-main { max-width: 560px; }

.topic-hero-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(40px, 5.2vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.topic-hero-desc {
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text-soft);
  max-width: 460px;
  margin-bottom: 22px;
}

.topic-hero-meta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.topic-hero-meta .accent { color: var(--color-accent); }
.topic-hero-meta .meta-dot { margin: 0 8px; opacity: 0.6; }

.topic-hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 500 / 340;
  overflow: hidden;
  border-radius: 2px;
  clip-path: polygon(14% 0, 100% 0, 86% 100%, 0% 100%);
  background: #14120F;
}
.topic-hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.98);
}

/* ---- Section heads ---- */

.topic-section { padding: 56px 0; }
.topic-section--tight { padding-bottom: 24px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}

.section-number {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing: -0.005em;
}

.section-link {
  font-size: 14px;
  color: var(--color-text-soft);
  white-space: nowrap;
  padding-bottom: 4px;
  transition: color 0.25s var(--ease);
}
.section-link:hover { color: var(--color-accent); }

/* ---- Deep dives ---- */

.deepdive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.deep-dive-card { display: flex; flex-direction: column; }

.deep-dive-media {
  position: relative;
  width: 100%;
  aspect-ratio: 370 / 230;
  overflow: hidden;
  border-radius: 2px;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 92% 100%, 0 100%);
  background: #14120F;
  margin-bottom: 20px;
}
.deep-dive-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.98);
  transition: transform 0.9s var(--ease), filter 0.9s var(--ease);
}
.deep-dive-card:hover .deep-dive-media img { transform: scale(1.06); filter: brightness(1.06); }

.deep-dive-category {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.deep-dive-title {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.005em;
  margin-bottom: 10px;
  transition: color 0.3s var(--ease);
}
.deep-dive-card:hover .deep-dive-title { color: var(--color-accent); }

.deep-dive-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-soft);
  margin-bottom: 20px;
}

.deep-dive-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.deep-dive-meta {
  font-size: 12.5px;
  color: var(--color-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- Essential reading ---- */

.essential-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  column-gap: 56px;
}

.essential-row {
  display: grid;
  grid-template-columns: 36px 1fr 64px 32px;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}

.essential-number {
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border-strong);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
}

.essential-body { min-width: 0; display: block; }

.essential-title {
  font-family: var(--font-serif);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 4px;
  transition: color 0.25s var(--ease);
}
.essential-row:hover .essential-title { color: var(--color-accent); }

.essential-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.essential-media {
  position: relative;
  width: 64px;
  aspect-ratio: 64 / 46;
  overflow: hidden;
  border-radius: 2px;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 85% 100%, 0 100%);
  background: #14120F;
  flex-shrink: 0;
}
.essential-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.98);
  transition: transform 0.7s var(--ease);
}
.essential-row:hover .essential-media img { transform: scale(1.08); }

.bookmark-btn--sm { width: 28px; height: 28px; }
.bookmark-btn--sm svg { width: 14px; height: 14px; }

/* ---- Related topics ---- */

.related-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.related-topic-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
  padding: 24px;
  min-height: 152px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
  text-decoration: none;
  color: inherit;
}
.related-topic-card:hover {
  border-color: var(--color-border-strong);
  background: rgba(17, 17, 17, 0.015);
}

.related-topic-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.related-topic-icon {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}
.related-topic-icon svg {
  width: 22px; height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.related-topic-arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #111111;
  color: #F7F3EC;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.related-topic-arrow svg { width: 14px; height: 14px; }
.related-topic-card:hover .related-topic-arrow {
  background: var(--color-accent);
  color: #16110A;
  transform: scale(1.08);
}

.related-topic-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 4px;
  transition: color 0.25s var(--ease);
}
.related-topic-card:hover .related-topic-name { color: var(--color-accent); }

.related-topic-count {
  display: block;
  font-size: 12.5px;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-top .footer-col:nth-child(4) { grid-column: 2; }
  .related-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .container { padding: 0 24px; }
  .newsletter-inner { flex-direction: column; align-items: flex-start; gap: 28px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input[type="email"] { width: 100%; }
  .newsletter-form .btn-subscribe { width: 100%; }
  .topics-hero { flex-direction: column; gap: 24px; }
  .topics-sort { padding-top: 0; }
  .topic-row { grid-template-columns: 30px 44px 1fr 160px 44px; gap: 18px; }
  .topic-meta { display: none; }
  .topic-hero { grid-template-columns: 1fr; gap: 28px; }
  .topic-hero-media { order: -1; aspect-ratio: 16/9; }
  .deepdive-grid { grid-template-columns: repeat(2, 1fr); }
  .site-logo { height: 34px; }
}

@media (max-width: 700px) {
  .article-row { grid-template-columns: 1fr; gap: 18px; }
  .article-media { aspect-ratio: 16/10; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 10px; align-items: flex-start; }
  .essential-list { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  .essential-row { grid-template-columns: 30px 1fr 50px 28px; gap: 12px; }
  .essential-desc { white-space: normal; }
  .deepdive-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .topic-row {
    grid-template-columns: 1fr;
    row-gap: 14px;
    padding: 26px 0;
  }
  .topic-row .topic-media { order: 4; aspect-ratio: 16/9; }
  .topic-row .topic-meta {
    display: flex;
    order: 3;
    grid-column: 1 / -1;
  }
  .topic-row .topic-arrow { order: 5; justify-self: start; }
  .topic-row .topic-top-line {
    display: flex;
    align-items: center;
    gap: 14px;
    grid-column: 1 / -1;
    order: 1;
  }
}

@media (max-width: 520px) {
  .hero { padding: 48px 0 28px; }
  .tabs { gap: 20px; overflow-x: auto; }
  .tabs::-webkit-scrollbar { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .essential-row { grid-template-columns: 26px 1fr 0 28px; }
  .essential-media { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Single Article page — component styles
   These were inline styles in article.html. Now consolidated here so
   single.php (which uses tailwind.compiled.css + style.css) renders
   identically to the original.
   ========================================================================== */

/* Selection colour */
::selection { background: #8B806E; color: #151515; }

/* Utility aliases matching Tailwind custom classes */
.serif { font-family: 'Fraunces', Georgia, serif; }
.mono  { font-family: 'JetBrains Mono', monospace; }

/* Reveal animation (single + front-page) */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s cubic-bezier(0.19,1,0.22,1), transform .7s cubic-bezier(0.19,1,0.22,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* Grain texture overlay */
.grain { position: relative; }
.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Duotone image filter */
.duotone { filter: sepia(0.3) saturate(1.25) hue-rotate(2deg) contrast(1.08) brightness(0.88); }

/* Image shade overlay */
.img-shade { position: relative; }
.img-shade::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(139,128,110,0.1), rgba(14,13,11,0.22) 90%);
  mix-blend-mode: multiply;
}

/* Arc underline nav decoration */
.arc-underline { position: relative; }
.arc-underline svg {
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 6px;
  opacity: 0;
  transition: opacity .35s ease;
}
.arc-underline:hover svg { opacity: 1; }

/* Gold button (homepage + single nav) */
.btn-gold {
  background: linear-gradient(160deg, #A79A82, #8B806E);
  box-shadow: 0 1px 1px rgba(0,0,0,.15) inset, 0 8px 20px -10px rgba(139,128,110,0.55);
}
.btn-gold:hover { filter: brightness(1.04); }

/* Drop cap for first paragraph */
.lede::first-letter {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 3.8rem;
  font-weight: 500;
  float: left;
  line-height: .8;
  padding-right: .14em;
  padding-top: .06em;
  color: #8B806E;
}

/* Article body typography */
.article-content p        { margin-bottom: 1.5em; font-size: 1.08rem; line-height: 1.8; color: #2b2a27; }
.article-content h2       { font-family: 'Fraunces', Georgia, serif; font-weight: 500; }
.article-content blockquote {
  position: relative;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.55;
  padding: .2em 0 .2em 1.6em;
  margin: 2em 0;
  border-left: 2px solid #8B806E;
  color: #151515;
}
.article-content pre {
  background: #EFEAE0;
  border-radius: 10px;
  padding: 1.1em 1.3em;
  font-family: 'JetBrains Mono', monospace;
  font-size: .82rem;
  overflow-x: auto;
}

/* TOC sidebar items */
.toc-item {
  display: block;
  padding: 7px 0;
  font-size: 13px;
  color: #8a8578;
  transition: color .3s ease;
  border-left: 2px solid transparent;
  padding-left: 14px;
  margin-left: -15px;
}
.toc-item.active  { color: #151515; border-left-color: #8B806E; }
.toc-item:hover   { color: #151515; }

/* Diagonal image clip paths (homepage curated section) */
.diagonal-r { clip-path: polygon(18% 0, 100% 0, 100% 100%, 0% 100%); }
.diagonal-l { clip-path: polygon(0 0, 100% 0, 82% 100%, 0% 100%); }

/* Homepage topic cell */
.topic-cell {
  border-right: 1px solid rgba(246,242,234,0.12);
  transition: background .4s ease;
}
.topic-cell:last-child { border-right: none; }
.topic-cell:hover { background: rgba(246,242,234,0.03); }
.topic-cell:hover .tarc { transform: rotate(90deg); opacity: 1; }
.tarc { transition: all .5s cubic-bezier(0.19,1,0.22,1); opacity: .55; }

/* Card hover (homepage curated) */
.card { transition: transform .45s cubic-bezier(0.19,1,0.22,1), box-shadow .45s cubic-bezier(0.19,1,0.22,1); }
.card:hover { transform: translateY(-5px); }

/* Homepage observatory instrument animations */
:root { --ease: cubic-bezier(0.19,1,0.22,1); }

.orbit { transform-origin: 50% 50%; transition: transform 1.1s var(--ease); }

@media (prefers-reduced-motion: no-preference) {
  .layer-bg   { animation: spin 260s linear infinite; }
  .layer-mid-a { animation: spin 150s linear infinite reverse; }
  .layer-mid-b { animation: spin 110s linear infinite; }
  .traveler-a { animation: spin 46s linear infinite; }
  .traveler-b { animation: spin 72s linear infinite reverse; }
  .pulse-dot  { animation: pulse 4.5s ease-in-out infinite; }
  .breathe    { animation: breathe 11s ease-in-out infinite; }
  .ping-ring  { animation: ping 5.5s ease-out infinite; }
  .scanline   { animation: scanmove 9s linear infinite; }
}

.instrument.paused * { animation-play-state: paused !important; }

@keyframes spin     { to { transform: rotate(360deg); } }
@keyframes pulse    { 0%,100% { opacity: .22; } 50% { opacity: .85; } }
@keyframes breathe  { 0%,100% { transform: scale(1); opacity: .5; } 50% { transform: scale(1.05); opacity: .75; } }
@keyframes ping     { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(4.2); opacity: 0; } }
@keyframes scanmove {
  0%   { transform: translateY(-46%); opacity: 0; }
  12%  { opacity: .5; }
  50%  { opacity: .28; }
  88%  { opacity: .5; }
  100% { transform: translateY(46%);  opacity: 0; }
}

.instrument-triangle {
  stroke-dasharray: 490;
  stroke-dashoffset: 490;
  transition: stroke-dashoffset 2.4s var(--ease), filter .9s ease-out;
}
.instrument-triangle.built     { stroke-dashoffset: 0; }
.instrument-construction       { opacity: 0; transition: opacity 1.4s ease; }
.instrument.sc-40 .instrument-construction { opacity: 1; }
.instrument-ticks              { opacity: 0; transition: opacity 1.2s ease; }
.instrument.sc-60 .instrument-ticks { opacity: 1; }
.instrument-coord              { opacity: 0; transition: opacity 1s ease .2s; }
.instrument.sc-60 .instrument-coord { opacity: .4; }

/* darkbg modifier (homepage dark sections) */
.darkbg .article-row { border-top: 1px solid rgba(246,242,234,0.1); }

/* ==========================================================================
   Generic page and error page layouts
   ========================================================================== */

.page-content-wrap {
  padding-top: 80px;
  padding-bottom: 80px;
  max-width: 720px;
}

.page-header {
  margin-bottom: 40px;
}

.page-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #2b2a27;
}

.error-page-wrap {
  padding-top: 120px;
  padding-bottom: 100px;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.error-page-wrap .hero-title {
  margin-bottom: 20px;
}

.error-page-wrap .hero-subtitle {
  margin-bottom: 36px;
}

.btn-load-more--inline {
  display: inline-block;
  text-decoration: none;
}

.no-posts-message {
  padding: 40px 0;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Logo sizing
   Defined here (not as Tailwind utilities) because the compiled Tailwind
   build only contains classes present in the original static HTML.
   style.css loads on every template, so these always apply.
   ========================================================================== */

.aib-logo {
  display: block;
  width: auto;
  max-width: 100%;
}

/* Header / nav bar logo */
.aib-logo--nav {
  height: 28px;
  width: auto;
}

/* Footer brand logo */
.aib-logo--footer {
  height: 28px;
  width: auto;
  margin-bottom: 16px;
}

/* Newsletter centred mark */
.aib-logo--mark {
  width: 56px;
  height: auto;
  margin: 0 auto;
}

@media (max-width: 860px) {
  .aib-logo--nav,
  .aib-logo--footer { height: 24px; }
}

/* ==========================================================================
   Editorial page templates — About / Contact / Authors / Legal
   Built from the existing design tokens only. No new colours or fonts.
   ========================================================================== */

/* ---- Shared page hero ---- */

.page-hero {
  padding-top: 76px;
  padding-bottom: 56px;
  max-width: 780px;
}

.page-hero-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(40px, 5.4vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}

.page-hero-lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text-soft);
  max-width: 620px;
}

.page-hero-meta {
  margin-top: 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.page-hero-meta .accent { color: var(--color-accent); }
.page-hero-meta .meta-dot { margin: 0 8px; opacity: 0.6; }

/* ---- Editorial prose column ---- */

.prose {
  max-width: 680px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #2b2a27;
}
.prose > * + * { margin-top: 1.4em; }
.prose h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--color-heading);
  margin-top: 2em;
}
.prose h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.3;
  color: var(--color-heading);
  margin-top: 1.8em;
}
.prose a {
  color: var(--color-accent);
  border-bottom: 1px solid rgba(139, 128, 110, 0.4);
  transition: border-color 0.25s var(--ease);
}
.prose a:hover { border-bottom-color: var(--color-accent); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.5em; }
.prose blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.55;
  padding: 0.2em 0 0.2em 1.5em;
  border-left: 2px solid var(--color-accent);
  color: var(--color-text);
}

/* ---- Numbered value / principle cards ---- */

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-border);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.value-card {
  background: var(--color-bg);
  padding: 36px 30px 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.value-number {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--color-accent);
}

.value-title {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

.value-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--color-text-soft);
}

/* ---- Statement band (dark) ---- */

.statement-band {
  background: var(--color-footer-bg);
  color: var(--color-footer-text-strong);
  padding: 88px 0;
  margin: 72px 0;
}

.statement-quote {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 820px;
}

.statement-attr {
  margin-top: 26px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(248, 245, 239, 0.5);
}

/* ---- Stats row ---- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 48px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stat-value {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-heading);
  margin-bottom: 10px;
}

.stat-label {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--color-text-soft);
}

/* ---- Contact cards ---- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.contact-card {
  display: block;
  padding: 30px 26px 32px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.contact-card:hover {
  border-color: var(--color-border-strong);
  background: rgba(17, 17, 17, 0.015);
}

.contact-icon {
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  margin-bottom: 18px;
}
.contact-icon svg {
  width: 22px; height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-label {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 8px;
  transition: color 0.25s var(--ease);
}
.contact-card:hover .contact-label { color: var(--color-accent); }

.contact-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-soft);
  margin-bottom: 14px;
}

.contact-value {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-accent);
  word-break: break-word;
}

/* ---- Contact form ---- */

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 720px;
}

.contact-form .field-full { grid-column: 1 / -1; }

.contact-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  margin-bottom: 8px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--color-border-strong);
  background: var(--color-bg);
  border-radius: 3px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: var(--color-text);
  transition: border-color 0.25s var(--ease);
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--color-accent);
  outline: none;
}
.contact-form ::placeholder { color: var(--color-text-muted); }

/* ---- Author cards ---- */

.author-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 30px;
}

.author-card {
  display: flex;
  flex-direction: column;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--color-border);
}

.author-photo {
  width: 64px; height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-border-strong);
  margin-bottom: 18px;
  flex-shrink: 0;
}
.author-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.author-card-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 6px;
  transition: color 0.25s var(--ease);
}
.author-card:hover .author-card-name { color: var(--color-accent); }

.author-role {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.author-bio {
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-text-soft);
  margin-bottom: 16px;
}

.author-count {
  margin-top: auto;
  font-size: 12.5px;
  color: var(--color-text-muted);
}

/* ---- Legal layout (sidebar + prose) ---- */

.legal-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  padding-bottom: 80px;
}

.legal-sidebar { position: relative; }

.legal-sidebar-inner {
  position: sticky;
  top: calc(var(--header-height) + 32px);
}

.legal-sidebar-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.legal-nav {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--color-border);
}

.legal-nav a {
  padding: 8px 0 8px 14px;
  margin-left: -1px;
  font-size: 13.5px;
  color: var(--color-text-soft);
  border-left: 2px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.legal-nav a:hover { color: var(--color-text); }
.legal-nav a[aria-current="page"] {
  color: var(--color-text);
  border-left-color: var(--color-accent);
  font-weight: 500;
}

.legal-updated {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* ---- CTA band ---- */

.cta-band {
  padding: 72px 0 88px;
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.cta-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.2;
  max-width: 520px;
  margin: 0 auto 14px;
}

.cta-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-soft);
  max-width: 480px;
  margin: 0 auto 28px;
}

/* ---- Responsive ---- */

@media (max-width: 960px) {
  .value-grid    { grid-template-columns: repeat(2, 1fr); }
  .author-grid   { grid-template-columns: repeat(2, 1fr); }
  .stat-row      { grid-template-columns: repeat(2, 1fr); gap: 34px 24px; }
  .legal-layout  { grid-template-columns: 1fr; gap: 36px; }
  .legal-sidebar-inner { position: static; }
  .legal-nav { flex-direction: row; flex-wrap: wrap; border-left: none; gap: 4px; }
  .legal-nav a { border-left: none; border-bottom: 2px solid transparent; padding: 6px 14px 6px 0; }
  .legal-nav a[aria-current="page"] { border-left-color: transparent; border-bottom-color: var(--color-accent); }
}

@media (max-width: 700px) {
  .page-hero      { padding-top: 52px; padding-bottom: 40px; }
  .value-grid     { grid-template-columns: 1fr; }
  .contact-grid   { grid-template-columns: 1fr; }
  .author-grid    { grid-template-columns: 1fr; }
  .contact-form   { grid-template-columns: 1fr; }
  .statement-band { padding: 64px 0; margin: 56px 0; }
}
