/* ============================================================
   GALA HABITATS — INSIGHTS
   Decoupled stylesheet for the publication. Paper-light only.
   Structure inspired by /perspectives/, rendered in Gala tokens.
   ============================================================ */

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

:root {
  /* Surfaces */
  --paper:        #F6F1E8;
  --paper-warm:   #FBF7EE;
  --paper-deep:   #EDE5D5;
  --paper-card:   #FFFFFF;
  --paper-hover:  #F1EBDD;

  /* Ink + text */
  --ink:          #1A1814;
  --text:         #4A4540;
  --text-muted:   #7A7470;

  /* Accents */
  --jade:         #3a3733;       /* warm dark */
  --jade-deep:    #1A1814;
  --brass:        #d0b884;
  --brass-deep:   #BFA470;
  --champagne:    #E4CFA0;

  /* Rules */
  --rule:         rgba(26, 24, 20, 0.10);
  --rule-strong:  rgba(26, 24, 20, 0.20);

  /* Type */
  --serif:        'Newsreader', Georgia, serif;
  --sans:         'Plus Jakarta Sans', system-ui, sans-serif;

  /* Spacing */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;

  /* Radii (editorial, minimal) */
  --radius-s: 2px;
  --radius-m: 4px;
  --radius-pill: 999px;

  /* Motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --dur-fast: 160ms;
  --dur-base: 240ms;
  --dur-med:  400ms;

  /* Nav */
  --nav-h:   76px;
}

html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* Paper texture overlay */
.paper-texture {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.04;
  z-index: 1;
  mix-blend-mode: multiply;
}

/* Selection */
::selection { background: var(--jade); color: var(--paper); }

/* Skip link */
.skip-link {
  position: absolute;
  top: var(--space-2); left: var(--space-2);
  padding: var(--space-1) var(--space-2);
  background: var(--ink); color: var(--paper);
  font-size: 0.8125rem;
  border-radius: var(--radius-s);
  transform: translateY(-200%);
  transition: transform var(--dur-base) var(--ease-out);
  z-index: 9999;
}
.skip-link:focus-visible { transform: translateY(0); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
  border-radius: var(--radius-s);
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--brass);
  z-index: 1100;
  width: 0%;
  transition: width 0.1s linear;
}

/* ============================================================
   NAV (Insights chrome — separate from marketing pill nav)
   ============================================================ */
.insights-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(1.5rem, 4vw, 3rem);
  background: rgba(246, 241, 232, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--rule);
  min-height: var(--nav-h);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-divider {
  width: 1px;
  height: 22px;
  background: var(--rule-strong);
}

.nav-section {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--dur-base);
}
.nav-section:hover { color: var(--ink); }

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-back {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color var(--dur-base);
}
.nav-back:hover { color: var(--ink); }
.nav-back svg {
  width: 13px; height: 13px;
  stroke: currentColor; fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity var(--dur-base), transform var(--dur-base), background var(--dur-base), color var(--dur-base);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--ink);
  color: var(--paper-warm);
}
.btn-primary:hover { background: #2a2620; }

.btn-brass {
  background: var(--brass);
  color: var(--ink);
}
.btn-brass:hover { background: var(--brass-deep); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn-outline:hover { border-color: var(--ink); }

/* ============================================================
   META + TAGS
   ============================================================ */
.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.post-tag {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-deep);
}

.meta-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--rule-strong);
  flex-shrink: 0;
}

.post-date, .read-time {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ============================================================
   HUB · HERO
   ============================================================ */
.hub-hero {
  padding: calc(var(--nav-h) + 72px) clamp(1.5rem, 5vw, 3.5rem) 64px;
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}

.hero-watermark {
  position: absolute;
  bottom: -36px; right: -12px;
  font-family: var(--serif);
  font-size: clamp(96px, 18vw, 280px);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ink);
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  text-transform: uppercase;
  font-style: italic;
}

.hub-eyebrow {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.6s ease 0.05s forwards;
}

.hub-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.04;
  color: var(--ink);
  max-width: 760px;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.6s ease 0.12s forwards;
}

.hub-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--text-muted);
}

.hub-desc {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--text);
  max-width: 540px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.6s ease 0.2s forwards;
}

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

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-bar {
  padding: 0 clamp(1.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--paper-warm);
}
.filter-bar::-webkit-scrollbar { display: none; }

.filter-label {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: 14px;
  white-space: nowrap;
  padding: 20px 0;
  flex-shrink: 0;
}

.filter-btn {
  padding: 8px 18px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius-pill);
  transition: all var(--dur-base);
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-btn:hover { color: var(--ink); border-color: var(--rule-strong); }
.filter-btn.active {
  color: var(--paper-warm);
  background: var(--ink);
  border-color: var(--ink);
}

/* ============================================================
   POSTS SECTION
   ============================================================ */
.posts-section { padding: 56px clamp(1.5rem, 5vw, 3.5rem) 80px; }

/* Featured post (full width, image left + content right) */
.featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--rule);
  margin-bottom: 2px;
  text-decoration: none;
  color: inherit;
  background: var(--paper-card);
  transition: border-color var(--dur-base), transform var(--dur-base);
  overflow: hidden;
}

.featured-post:hover {
  border-color: var(--rule-strong);
}

.featured-post:hover .arrow-circle {
  background: var(--ink);
  border-color: var(--ink);
}
.featured-post:hover .arrow-circle svg { stroke: var(--paper-warm); }

.featured-img {
  background: var(--paper-deep);
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.featured-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
}

.img-fallback {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  opacity: 0.4;
  text-transform: uppercase;
}

.featured-content {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid var(--rule);
}

.featured-badge {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--rule-strong);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.featured-content h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--ink);
  margin: 20px 0 16px;
}

.featured-content h2 em {
  font-style: italic;
  color: var(--text-muted);
}

.featured-content > div > p {
  font-family: var(--serif);
  font-size: 1.0625rem;
  color: var(--text);
  line-height: 1.6;
}

.featured-post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

/* Standard cards grid.
   Flex rather than grid: the filter bar hides cards at runtime, so the count is
   not fixed. justify-content centres a short last row instead of leaving a card
   stranded on the left. */
.posts-grid {
  --card-gap: 2px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--card-gap);
  margin-bottom: 2px;
}

.posts-grid > * {
  flex: 0 1 calc((100% - 2 * var(--card-gap)) / 3);
  min-width: 0;
}

.post-card {
  border: 1px solid var(--rule);
  background: var(--paper-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--dur-base), background var(--dur-base);
  position: relative;
  overflow: hidden;
}

.post-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-med);
}

.post-card:hover {
  border-color: var(--rule-strong);
  background: var(--paper-warm);
}
.post-card:hover::after { transform: scaleX(1); }
.post-card:hover .arrow-circle { background: var(--ink); border-color: var(--ink); }
.post-card:hover .arrow-circle svg { stroke: var(--paper-warm); }

.post-card h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--ink);
  flex: 1;
}

.post-card > p {
  font-family: var(--serif);
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.55;
}

.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

/* Arrow circle */
.arrow-circle {
  width: 38px; height: 38px;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-base);
  flex-shrink: 0;
}
.arrow-circle svg {
  width: 14px; height: 14px;
  stroke: var(--ink); fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* No posts message (when filter empties) */
.no-posts-msg {
  display: none;
  padding: var(--space-6) 0;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--text-muted);
}
.no-posts-msg.is-visible { display: block; }

/* ============================================================
   CTA STRIP
   ============================================================ */
.cta-strip {
  border: 1px solid var(--rule);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: var(--paper-card);
  margin-top: 40px;
}

.cta-strip h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 6px;
}
.cta-strip h3 em { font-style: italic; color: var(--text-muted); }

.cta-strip p {
  font-family: var(--serif);
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: calc(var(--nav-h) + 14px) clamp(1.5rem, 5vw, 3.5rem) 14px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--paper-warm);
}
.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--dur-base);
}
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb svg {
  width: 11px; height: 11px;
  stroke: var(--text-muted); fill: none;
  stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ============================================================
   CATEGORY LANDING HERO
   ============================================================ */
.category-hero {
  padding: 72px clamp(1.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}

.category-watermark {
  position: absolute;
  bottom: -28px; right: -8px;
  font-family: var(--serif);
  font-size: clamp(72px, 13vw, 200px);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ink);
  opacity: 0.04;
  font-style: italic;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  text-transform: uppercase;
}

.category-eyebrow {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 14px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.5s ease 0.05s forwards;
}

.post-count {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--rule-strong);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.5s ease 0.08s forwards;
}

.category-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.5s ease 0.12s forwards;
}
.category-hero h1 em { font-style: italic; color: var(--text-muted); }

.category-hero > p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--text);
  max-width: 560px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.5s ease 0.18s forwards;
}

/* ============================================================
   ARTICLE
   ============================================================ */
.article-hero {
  padding: 88px clamp(1.5rem, 5vw, 3.5rem) 56px;
  max-width: 1100px;
  margin: 0 auto;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.5s ease 0.05s forwards;
}

.article-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.5s ease 0.12s forwards;
}
.article-hero h1 em { font-style: italic; color: var(--text-muted); }

.article-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text);
  line-height: 1.55;
  max-width: 620px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.5s ease 0.18s forwards;
}

.hero-image {
  width: 100%;
  aspect-ratio: 21 / 9;
  background: var(--paper-deep);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
}

/* Article body grid */
.article-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 80px;
  align-items: start;
}

.article-content { padding: 64px 0; }

.article-content p {
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 24px;
}

.article-content p:first-of-type::first-letter {
  font-size: 3.5rem;
  float: left;
  line-height: 0.9;
  padding-right: 0.5rem;
  padding-top: 0.4rem;
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
}

.article-content h2 {
  font-family: var(--serif);
  font-size: 1.625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
  margin: 56px 0 20px;
  padding-top: 56px;
  border-top: 1px solid var(--rule);
}

.article-content h3 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin: 40px 0 14px;
}

.article-content strong { color: var(--ink); font-weight: 600; }
.article-content em { font-style: italic; }

.article-content a {
  color: var(--ink);
  border-bottom: 1px solid var(--brass);
  transition: color var(--dur-base), border-color var(--dur-base);
}
.article-content a:hover {
  color: var(--brass-deep);
  border-bottom-color: var(--brass-deep);
}

/* Pull quote */
.pull-quote {
  border-left: 2px solid var(--brass);
  padding: 8px 28px;
  margin: 40px 0;
  background: rgba(208, 184, 132, 0.06);
}
.pull-quote p {
  font-family: var(--serif);
  font-size: 1.375rem !important;
  font-style: italic;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  color: var(--ink) !important;
  margin: 0 !important;
}

/* Callout */
.callout {
  border: 1px solid var(--rule);
  padding: 28px 32px;
  margin: 40px 0;
  background: var(--paper-warm);
}
.callout-label {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 12px;
}
.callout p {
  font-family: var(--serif);
  font-size: 1rem !important;
  color: var(--text) !important;
  margin: 0 !important;
  font-style: normal !important;
}

/* Lists */
.article-content ul {
  margin: 24px 0;
  padding-left: 0;
}
.article-content ul li {
  position: relative;
  padding-left: 24px;
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 10px;
}
.article-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px; height: 6px;
  background: var(--brass);
  border-radius: 50%;
}

.article-content ol {
  margin: 24px 0;
  counter-reset: item;
  padding: 0;
}
.article-content ol li {
  counter-increment: item;
  display: flex;
  gap: 20px;
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.article-content ol li:first-child { border-top: 1px solid var(--rule); }
.article-content ol li::before {
  content: counter(item, decimal-leading-zero);
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--brass-deep);
  letter-spacing: 0.1em;
  flex-shrink: 0;
  padding-top: 4px;
  min-width: 24px;
}

/* Sidebar */
.article-sidebar {
  padding: 64px 0;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.sidebar-section { margin-bottom: 40px; }
.sidebar-label {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.toc-list a {
  display: block;
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding: 7px 0 7px 14px;
  border-left: 2px solid var(--rule);
  transition: all var(--dur-base);
}
.toc-list a:hover { color: var(--ink); border-left-color: var(--rule-strong); }
.toc-list a.active { color: var(--ink); border-left-color: var(--brass); }

.related-mini-item {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  transition: opacity var(--dur-base);
}
.related-mini-item:hover { opacity: 0.65; }
.related-mini-tag {
  font-family: var(--sans);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 6px;
}
.related-mini-title {
  font-family: var(--serif);
  font-size: 0.9375rem;
  color: var(--ink);
  line-height: 1.4;
}

/* Article end */
.article-end {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 3.5rem) 80px;
}

.article-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 64px;
}
.tag-label {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: 8px;
}
.tag-item {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--rule-strong);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transition: all var(--dur-base);
}
.tag-item:hover { border-color: var(--ink); color: var(--ink); }

.related-label {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.related-grid {
  --card-gap: 2px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--card-gap);
}

.related-grid > * {
  flex: 0 1 calc((100% - 2 * var(--card-gap)) / 3);
  min-width: 0;
}

.related-card {
  border: 1px solid var(--rule);
  background: var(--paper-card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color var(--dur-base), background var(--dur-base);
}
.related-card:hover { border-color: var(--rule-strong); background: var(--paper-warm); }
.related-card h4 {
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ink);
}
.related-card p {
  font-family: var(--serif);
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.55;
}

/* ============================================================
   FOOTER
   ============================================================ */
.insights-footer {
  border-top: 1px solid var(--rule);
  padding: 32px clamp(1.5rem, 5vw, 3.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  background: var(--paper-warm);
}

.footer-copy {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
}
.footer-links a {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: color var(--dur-base);
}
.footer-links a:hover { color: var(--ink); }

/* ============================================================
   MODAL (enquire)
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(26, 24, 20, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal {
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 48px;
  width: 90%;
  max-width: 460px;
  position: relative;
  transform: translateY(22px);
  transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay.active .modal { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 18px; right: 22px;
  color: var(--text-muted);
  font-size: 26px;
  line-height: 1;
  transition: color var(--dur-base);
}
.modal-close:hover { color: var(--ink); }

.modal-eyebrow {
  font-family: var(--sans);
  font-size: 0.625rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 10px;
}

.modal-h {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.875rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 8px;
}

.modal-sub {
  font-family: var(--serif);
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.55;
}

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-family: var(--sans);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-group input,
.form-group select {
  width: 100%;
  background: var(--paper-card);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-m);
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 0.9375rem;
  color: var(--ink);
  outline: none;
  transition: border-color var(--dur-base);
}
.form-group input::placeholder { color: var(--text-muted); opacity: 0.6; }
.form-group input:focus,
.form-group select:focus { border-color: var(--ink); }

.modal-submit {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  font-size: 0.875rem;
}

.modal-note {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 14px;
  line-height: 1.55;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--paper-warm);
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.rd1 { transition-delay: 0.1s; }
.rd2 { transition-delay: 0.2s; }
.rd3 { transition-delay: 0.3s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .featured-post { grid-template-columns: 1fr; }
  .featured-img { min-height: 280px; }
  .featured-content { border-left: none; border-top: 1px solid var(--rule); }
  .article-body { grid-template-columns: 1fr; gap: 0; }
  .article-sidebar { display: none; }
  .cta-strip { flex-direction: column; align-items: flex-start; }
}

/* Post cards carry an image, a two-line title and meta, so they need real width.
   They stay 3-up down to tablet and then stack outright — a 2-up step would
   both squeeze them and strand the third card of a set of three. */
@media (max-width: 1023px) {
  .post-card, .related-card { padding: 24px; }
}

@media (max-width: 767px) {
  .posts-grid > *,
  .related-grid > * { flex-basis: 100%; }
}

@media (max-width: 768px) {
  .insights-nav { padding: 12px 20px; }
  .nav-logo img { height: 32px; }
  .nav-section, .nav-divider, .nav-back { display: none; }

  .hub-hero { padding: 110px 24px 56px; }
  .filter-bar { padding: 0 24px; }
  .posts-section { padding: 40px 24px 64px; }
  .featured-content { padding: 32px 24px; }
  .category-hero { padding: 112px 24px 48px; }
  .article-hero { padding: 108px 24px 40px; }
  .article-body { padding: 0 24px; }
  .article-end { padding: 0 24px 56px; }
  .cta-strip { padding: 32px 24px; }
  .modal { padding: 36px 28px; }

  .insights-footer {
    padding: 32px 24px;
    gap: 20px;
  }
  .footer-links { justify-content: flex-start; }
}
