/*
Theme Name: The Signal
Theme URI: https://permanent-underclass.ai
Author: permanent-underclass.ai
Author URI: https://permanent-underclass.ai
Description: Brutalist WordPress theme for permanent-underclass.ai — The Signal
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: the-signal
*/

/* ============================================
   THE SIGNAL v2 — style.css
   Brutalist. Rich. Every detail hits.
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #0a0a0a;
  --black-rich: #0d0d0d;
  --white: #f5f5f5;
  --red: #e11d48;
  --red-dim: rgba(225, 29, 72, 0.4);
  --red-glow: rgba(225, 29, 72, 0.15);
  --grey: #888;
  --grey-dark: #333;
  --grey-line: rgba(255, 255, 255, 0.08);
  --mono: 'JetBrains Mono', 'Space Mono', monospace;
  --sans: 'Space Grotesk', 'Inter', sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  line-height: 1.4;
  overflow-x: hidden;
  position: relative;
}

::selection {
  background: var(--red);
  color: var(--white);
}

/* ============================================
   BACKGROUND GRID & TEXTURE
   ============================================ */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: 0 var(--grid-offset, 0px);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.35;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* All content above texture layers */
body > * {
  position: relative;
  z-index: 2;
}

/* ============================================
   TOP PROGRESS BAR
   ============================================ */

.progress-bar {
  position: fixed;
  top: 56px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--red);
  z-index: 1000;
  transition: none;
  box-shadow: 0 0 8px var(--red-dim);
}

/* ============================================
   SIDE PROGRESS / NAVIGATION
   ============================================ */

.side-nav {
  position: fixed;
  left: clamp(1rem, 2vw, 2rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.side-nav__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  cursor: pointer;
  text-decoration: none;
  color: var(--grey-dark);
  transition: color 0.3s ease;
}

.side-nav__item:hover {
  color: var(--grey);
}

.side-nav__item.active {
  color: var(--white);
}

.side-nav__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grey-dark);
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}

.side-nav__item.active .side-nav__dot {
  background: var(--red);
  box-shadow: 0 0 8px var(--red-dim);
  transform: scale(1.5);
}

.side-nav__label {
  font-family: var(--mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.side-nav__item.active .side-nav__label,
.side-nav__item:hover .side-nav__label {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================
   SECTION LABEL (floating)
   ============================================ */

.section-label {
  position: fixed;
  top: calc(56px + clamp(0.75rem, 1.5vw, 1.5rem));
  right: clamp(1rem, 3vw, 3rem);
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--grey-dark);
  z-index: 100;
  transition: opacity 0.4s ease, color 0.4s ease;
}

/* ============================================
   PRIMARY NAVIGATION BAR
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 3vw, 3rem);
  height: 56px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grey-line);
  transition: transform 0.3s ease, background 0.3s ease;
}

body.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

.site-header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.site-header__logo svg {
  width: 28px;
  height: 28px;
  transition: opacity 0.2s ease;
}

.site-header__logo:hover svg {
  opacity: 0.7;
}

/* Nav menu */
.site-header__nav {
  display: flex;
  align-items: center;
}

.site-header__menu {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-header__menu li {
  margin: 0;
  padding: 0;
}

.site-header__menu a {
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--grey);
  text-decoration: none;
  padding: 0.4em 0;
  position: relative;
  transition: color 0.2s ease;
}

.site-header__menu a:hover {
  color: var(--white);
}

.site-header__menu .current-menu-item a,
.site-header__menu .current_page_item a {
  color: var(--white);
}

.site-header__menu .current-menu-item a::after,
.site-header__menu .current_page_item a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--red);
}

/* Hamburger toggle */
.site-header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 600;
}

.site-header__toggle span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-header__toggle[aria-expanded="true"] span:first-child {
  transform: rotate(45deg) translate(2px, 2px);
}

.site-header__toggle[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg) translate(2px, -2px);
}

/* Mobile nav */
/* Mobile nav */
@media (max-width: 768px) {
  .site-header__toggle {
    display: flex;
  }

  .site-header__nav {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0a0a0a;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  body.admin-bar .site-header__nav {
    top: calc(56px + 46px);
  }

  .site-header__nav.open {
    opacity: 1;
    pointer-events: auto;
  }

  .site-header__menu {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .site-header__menu a {
    font-size: 1rem;
    display: block;
    padding: 1.2rem 2rem;
    border-bottom: 1px solid var(--grey-line);
    letter-spacing: 0.15em;
    color: var(--white);
  }

  .site-header__menu li:first-child a {
    border-top: 1px solid var(--grey-line);
  }

  .site-header__menu .current-menu-item a::after,
  .site-header__menu .current_page_item a::after {
    display: none;
  }

  .site-header__menu .current-menu-item a,
  .site-header__menu .current_page_item a {
    color: var(--red);
  }
}

/* Offset body content for fixed header */
body {
  padding-top: 56px;
}

body.admin-bar {
  padding-top: calc(56px + 32px);
}

@media (max-width: 782px) {
  body.admin-bar {
    padding-top: calc(56px + 46px);
  }
}

/* ============================================
   SCROLL REVEAL SYSTEM
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Stagger children */
.reveal-stagger .reveal-child {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Slide from left */
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Scale in */
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ============================================
   SECTION DIVIDERS
   ============================================ */

.section-divider {
  width: 100%;
  height: clamp(60px, 8vw, 120px);
  position: relative;
  overflow: hidden;
}

.section-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ============================================
   GLITCH ANIMATION
   ============================================ */

@keyframes glitch {
  0%, 92%, 100% {
    transform: translate(0);
    text-shadow: none;
  }
  93% {
    transform: translate(-3px, 1px);
    text-shadow: 3px 0 var(--red), -3px 0 cyan;
  }
  94% {
    transform: translate(3px, -1px);
    text-shadow: -3px 0 var(--red), 3px 0 cyan;
  }
  95% {
    transform: translate(-1px, 2px);
    text-shadow: 1px 0 var(--red), -1px 0 cyan;
  }
  96% {
    transform: translate(2px, -1px);
    text-shadow: -2px 0 var(--red), 2px 0 cyan;
  }
  97% {
    transform: translate(0);
    text-shadow: none;
  }
}

@keyframes glitch-subtle {
  0%, 95%, 100% {
    clip-path: inset(0);
    transform: translate(0);
  }
  96% {
    clip-path: inset(20% 0 60% 0);
    transform: translate(-4px, 0);
  }
  97% {
    clip-path: inset(50% 0 20% 0);
    transform: translate(4px, 0);
  }
  98% {
    clip-path: inset(10% 0 70% 0);
    transform: translate(-2px, 0);
  }
  99% {
    clip-path: inset(0);
    transform: translate(0);
  }
}

.glitch-text {
  animation: glitch 8s infinite;
}

/* ============================================
   SCAN LINE
   ============================================ */

@keyframes scanline {
  0% {
    top: -2px;
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  95% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

.scanline {
  position: fixed;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red-dim), var(--red), var(--red-dim), transparent);
  z-index: 99;
  pointer-events: none;
  animation: scanline 12s linear infinite;
  animation-delay: 3s;
  opacity: 0;
}

/* ============================================
   BREATHING RED PULSE
   ============================================ */

@keyframes breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.breathe {
  animation: breathe 4s ease-in-out infinite;
}

/* ============================================
   SECTION 1: THE HOOK
   ============================================ */

.section-hook {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 6rem);
  padding-left: clamp(3rem, 8vw, 10rem);
  position: relative;
}

.hook-main {
  font-family: var(--sans);
  font-size: clamp(2.5rem, 7.5vw, 7.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 0.3em;
  position: relative;
}

.hook-main .typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: var(--red);
  margin-left: 4px;
  vertical-align: baseline;
  animation: blink-cursor 0.8s step-end infinite;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hook-sub {
  font-family: var(--sans);
  font-size: clamp(1.2rem, 3vw, 2.5rem);
  font-weight: 400;
  color: var(--grey);
  line-height: 1.3;
  max-width: 20ch;
  opacity: 0;
  transition: opacity 1s ease 0.3s;
}

.hook-sub.visible {
  opacity: 1;
}

.hook-sub--line2 {
  font-size: clamp(1.4rem, 3.5vw, 3rem);
  font-weight: 600;
  color: var(--white);
  max-width: 25ch;
  margin-top: 0.3em;
}

.hook-sub--line3 {
  font-size: clamp(1rem, 2vw, 1.6rem);
  font-weight: 400;
  color: var(--grey);
  max-width: 30ch;
  margin-top: 0.2em;
}

.hook-sub .accent {
  color: var(--red);
  font-weight: 600;
}

/* Annotation below hook */
.hook-annotation {
  font-family: var(--mono);
  font-size: clamp(0.6rem, 1vw, 0.75rem);
  color: var(--grey-dark);
  margin-top: 3rem;
  letter-spacing: 0.05em;
  max-width: 40ch;
  line-height: 1.6;
}

.hook-annotation .red-mark,
.red-mark {
  color: var(--red);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.4;
  animation: pulse 2s ease-in-out infinite;
}

.scroll-indicator span {
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
}

.scroll-indicator .arrow {
  width: 1px;
  height: 40px;
  background: var(--white);
  position: relative;
}

.scroll-indicator .arrow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 6px;
  height: 6px;
  border-right: 1px solid var(--white);
  border-bottom: 1px solid var(--white);
  transform: translateX(-50%) rotate(45deg);
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.12; }
}

/* ============================================
   SECTION: THE TIMELINE
   ============================================ */

.section-timeline {
  padding: clamp(4rem, 8vw, 10rem) clamp(2rem, 5vw, 6rem);
  padding-left: clamp(3rem, 8vw, 10rem);
  position: relative;
}

.section-timeline .section-tag {
  font-family: var(--mono);
  font-size: clamp(0.6rem, 1vw, 0.75rem);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--grey-dark);
  margin-bottom: 3rem;
}

.timeline {
  position: relative;
  padding-left: 2rem;
}

/* The vertical line */
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--red), var(--grey-dark) 60%, rgba(255,255,255,0.05));
}

.timeline-node {
  position: relative;
  padding: 0 0 clamp(3rem, 5vw, 5rem) 2.5rem;
}

.timeline-node:last-child {
  padding-bottom: 0;
}

/* The dot */
.timeline-node::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--grey-dark);
  border: 2px solid var(--black);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.timeline-node--active::before {
  background: var(--red);
  box-shadow: 0 0 12px var(--red-dim), 0 0 4px var(--red);
}

.timeline-node--future::before {
  background: var(--grey-dark);
  border-color: var(--grey-dark);
}

.timeline-year {
  font-family: var(--mono);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.3em;
}

.timeline-node--active .timeline-year {
  color: var(--red);
}

.timeline-node--present::before {
  background: var(--white);
  box-shadow: 0 0 8px rgba(255,255,255,0.3);
}

.timeline-node--present .timeline-year {
  color: var(--white);
}

.timeline-node--future .timeline-year {
  color: var(--grey-dark);
}

.timeline-title {
  font-family: var(--sans);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 600;
  margin-bottom: 0.4em;
  color: var(--white);
}

.timeline-node--future .timeline-title {
  color: var(--grey);
}

.timeline-desc {
  font-family: var(--sans);
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: var(--grey);
  line-height: 1.5;
  max-width: 40ch;
}

.timeline-node--future .timeline-desc {
  color: var(--grey-dark);
}

/* ============================================
   SECTION 2: THE NUMBERS
   ============================================ */

.section-numbers {
  padding: clamp(4rem, 8vw, 10rem) clamp(2rem, 5vw, 6rem);
  padding-left: clamp(3rem, 8vw, 10rem);
  display: flex;
  flex-direction: column;
  gap: clamp(5rem, 10vw, 10rem);
}

.section-numbers .section-tag {
  font-family: var(--mono);
  font-size: clamp(0.6rem, 1vw, 0.75rem);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--grey-dark);
  margin-bottom: -2rem;
}

.stat-block {
  border-left: 3px solid var(--red);
  padding-left: clamp(1.5rem, 3vw, 3rem);
  position: relative;
}

.stat-number {
  font-family: var(--mono);
  font-size: clamp(1.8rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 0.4em;
}

.stat-number .red {
  color: var(--red);
}

.stat-text {
  font-family: var(--sans);
  font-size: clamp(1.1rem, 2.5vw, 1.8rem);
  font-weight: 400;
  color: var(--grey);
  line-height: 1.4;
  max-width: 38ch;
}

/* Side annotation for stats */
.stat-annotation {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--grey-dark);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 1rem;
  line-height: 1.6;
}

/* Visual data bar */
.stat-visual {
  margin-top: 1.5rem;
  position: relative;
}

.data-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.data-bar__track {
  flex: 1;
  height: 4px;
  background: var(--grey-dark);
  position: relative;
  max-width: 300px;
}

.data-bar__fill {
  height: 100%;
  background: var(--red);
  width: 0%;
  transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 0 6px var(--red-dim);
}

.data-bar__fill.animated {
  width: var(--target-width, 100%);
}

.data-bar__label {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--grey);
  white-space: nowrap;
  min-width: 5ch;
}

/* Dot grid visualization */
.dot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 260px;
  margin-top: 1rem;
}

.dot-grid__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grey-dark);
  transition: background 0.1s ease;
}

.dot-grid__dot--active {
  background: var(--red);
  box-shadow: 0 0 4px var(--red-dim);
}

/* Counter animation */
.counter {
  display: inline-block;
}

/* Scale comparison */
.scale-compare {
  display: flex;
  align-items: flex-end;
  gap: clamp(1rem, 2vw, 2rem);
  margin-top: 1.5rem;
  height: 80px;
}

.scale-compare__bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.scale-compare__fill {
  width: clamp(30px, 5vw, 50px);
  background: var(--red);
  transition: height 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  height: 0;
}

.scale-compare__fill.animated {
  height: var(--target-height, 0);
}

.scale-compare__fill--dim {
  background: var(--grey-dark);
}

.scale-compare__label {
  font-family: var(--mono);
  font-size: 0.55rem;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Divider between stat blocks */
.stat-divider {
  width: 60px;
  height: 1px;
  background: var(--grey-line);
  margin: 0;
  border: none;
}

/* ============================================
   SECTION 3: THE GROUPS
   ============================================ */

.section-groups {
  padding: clamp(4rem, 8vw, 10rem) 0;
}

.groups-header {
  font-family: var(--sans);
  font-size: clamp(2.5rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  padding: 0 clamp(2rem, 5vw, 6rem);
  padding-left: clamp(3rem, 8vw, 10rem);
  margin-bottom: clamp(3rem, 6vw, 6rem);
}

.group-block {
  padding: clamp(3rem, 5vw, 5rem) clamp(2rem, 5vw, 6rem);
  padding-left: clamp(3rem, 8vw, 10rem);
  border-top: 1px solid var(--grey-line);
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
  cursor: pointer;
  transition: background 0.4s ease;
}

.group-block:last-child {
  border-bottom: 1px solid var(--grey-line);
}

.group-block:hover {
  background: rgba(255,255,255,0.015);
}

/* Group icon area */
.group-icon {
  width: clamp(48px, 6vw, 72px);
  height: clamp(48px, 6vw, 72px);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.group-block:hover .group-icon {
  opacity: 1;
}

.group-icon svg {
  width: 100%;
  height: 100%;
}

.group-content {
  min-width: 0;
}

.group-name {
  font-family: var(--mono);
  font-size: clamp(0.7rem, 1.5vw, 0.9rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--red);
  margin-bottom: 1.2em;
}

.group-description {
  font-family: var(--sans);
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1.35;
  max-width: 32ch;
  color: var(--white);
}

/* Group hover detail */
.group-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease;
  opacity: 0;
}

.group-block:hover .group-detail,
.group-block.expanded .group-detail {
  max-height: 200px;
  opacity: 1;
}

.group-detail__text {
  font-family: var(--mono);
  font-size: clamp(0.7rem, 1.2vw, 0.85rem);
  color: var(--grey);
  line-height: 1.6;
  margin-top: 1em;
  padding-top: 1em;
  border-top: 1px solid var(--grey-line);
  max-width: 50ch;
}

/* Individual group treatments */
.group-block--surplus {
  background: rgba(225, 29, 72, 0.02);
}

.group-block--adapters .group-description {
  color: var(--grey);
}

.group-block--orchestrators {
  background: rgba(255, 255, 255, 0.015);
}

.group-block--orchestrators .group-description {
  font-style: italic;
}

.group-block--reclaimed {
  background: rgba(225, 29, 72, 0.03);
  border-left: 3px solid var(--red);
}

/* ============================================
   SECTION: THE IN-BETWEEN (Precariat Spectrum)
   ============================================ */

.section-inbetween {
  padding: clamp(4rem, 8vw, 10rem) clamp(2rem, 5vw, 6rem);
  padding-left: clamp(3rem, 8vw, 10rem);
}

.inbetween-header {
  font-family: var(--sans);
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.4em;
}

.inbetween-sub {
  font-family: var(--mono);
  font-size: clamp(0.65rem, 1vw, 0.8rem);
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: clamp(3rem, 5vw, 5rem);
}

/* Spectrum bar */
.spectrum {
  position: relative;
  margin-bottom: clamp(4rem, 6vw, 6rem);
}

.spectrum__bar {
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--grey-dark) 40%, var(--grey-dark) 60%, #2d6a4f);
  position: relative;
}

.spectrum__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.75rem;
}

.spectrum__label {
  font-family: var(--mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.spectrum__label--left {
  color: var(--red);
}

.spectrum__label--right {
  color: #2d6a4f;
}

/* Precariat cards */
.precariat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.precariat-card {
  border: 1px solid var(--grey-line);
  padding: clamp(1.5rem, 3vw, 2rem);
  position: relative;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.precariat-card:hover {
  border-color: var(--red-dim);
  background: rgba(225, 29, 72, 0.02);
}

.precariat-card__position {
  position: absolute;
  top: -1px;
  left: 1.5rem;
  width: 30px;
  height: 3px;
  background: var(--grey-dark);
}

.precariat-card:nth-child(1) .precariat-card__position { background: var(--red-dim); }
.precariat-card:nth-child(2) .precariat-card__position { background: var(--grey); }
.precariat-card:nth-child(3) .precariat-card__position { background: var(--grey); }
.precariat-card:nth-child(4) .precariat-card__position { background: var(--grey-dark); }

.precariat-card__name {
  font-family: var(--mono);
  font-size: clamp(0.65rem, 1.2vw, 0.8rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 1em;
  margin-top: 0.5em;
}

.precariat-card__text {
  font-family: var(--sans);
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: var(--grey);
  line-height: 1.5;
}

/* ============================================
   SECTION 4: THE TURN
   ============================================ */

.section-turn {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 8vw, 10rem) clamp(2rem, 5vw, 6rem);
  padding-left: clamp(3rem, 8vw, 10rem);
  position: relative;
}

.turn-line {
  font-family: var(--sans);
  font-size: clamp(1.8rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 1em;
  max-width: 22ch;
}

.turn-line .red {
  color: var(--red);
  text-decoration: underline;
  text-decoration-color: var(--red-dim);
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

.turn-line--gut-punch {
  font-size: clamp(2.2rem, 6vw, 5rem);
  letter-spacing: -0.02em;
  color: var(--white);
  margin-top: 1em;
  margin-bottom: 0;
}

.turn-line--small {
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  font-weight: 400;
  color: var(--grey);
  font-family: var(--mono);
  margin-top: 2em;
  max-width: 45ch;
  line-height: 1.6;
}

/* Redacted text effect */
.redacted {
  background: var(--red);
  color: var(--red);
  padding: 0 0.3em;
  transition: color 0.3s ease, background 0.3s ease;
  cursor: pointer;
}

.redacted:hover,
.redacted.revealed {
  background: transparent;
  color: var(--white);
}

/* Strikethrough as design element */
.strike {
  text-decoration: line-through;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  color: var(--grey);
}

/* ============================================
   SECTION 5: THE DOOR
   ============================================ */

.section-door {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 8vw, 10rem) clamp(2rem, 5vw, 6rem);
  padding-left: clamp(3rem, 8vw, 10rem);
  border-top: 1px solid var(--grey-line);
}

.door-statement {
  font-family: var(--mono);
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  font-weight: 400;
  color: var(--grey);
  line-height: 1.7;
  margin-bottom: 3em;
  max-width: 48ch;
}

/* Large logo in door section */
.door-logo {
  margin-bottom: 2rem;
}

.door-logo svg {
  width: clamp(280px, 50vw, 600px);
  height: auto;
}

.door-subtitle {
  font-family: var(--mono);
  font-size: clamp(0.65rem, 1vw, 0.8rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--grey);
  margin-bottom: 4em;
}

.door-cta {
  font-family: var(--sans);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 600;
  line-height: 1.5;
  max-width: 30ch;
  margin-bottom: 2em;
}

.door-links {
  display: flex;
  flex-direction: column;
  gap: 0.8em;
  margin-top: 1em;
}

.door-links a {
  font-family: var(--mono);
  font-size: clamp(0.8rem, 1.3vw, 1rem);
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid var(--red);
  padding-bottom: 0.3em;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  width: fit-content;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.door-links a:hover {
  color: var(--red);
  border-color: var(--white);
  transform: translateX(4px);
}

.door-links a::before {
  content: '\2192';
  color: var(--red);
  transition: transform 0.2s ease;
}

.door-links a:hover::before {
  transform: translateX(3px);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  padding: clamp(4rem, 8vw, 8rem) clamp(2rem, 5vw, 6rem);
  padding-left: clamp(3rem, 8vw, 10rem);
  border-top: 1px solid var(--grey-line);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: clamp(2rem, 4vw, 4rem);
  margin-bottom: 4rem;
}

.footer-col__title {
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--red);
  margin-bottom: 1.5em;
}

.footer-col__links {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}

.footer-col__links a {
  font-family: var(--mono);
  font-size: clamp(0.7rem, 1vw, 0.85rem);
  color: var(--grey);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col__links a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--grey-line);
}

.footer-logo svg {
  width: 28px;
  height: 28px;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.footer-logo:hover svg {
  opacity: 1;
}

.footer-quote {
  font-family: var(--mono);
  font-size: clamp(0.65rem, 1vw, 0.8rem);
  color: var(--grey-dark);
  font-style: italic;
  max-width: 35ch;
}

.footer-meta {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: rgba(255,255,255,0.15);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Social icons */
.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--grey-dark);
  color: var(--grey);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-social a:hover {
  border-color: var(--red);
  color: var(--white);
}

.footer-social svg {
  width: 14px;
  height: 14px;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
  /* Hide side nav on mobile */
  .side-nav {
    display: none;
  }

  /* Fix section label below fixed header */
  .section-label {
    right: 1rem;
    top: calc(56px + 0.5rem);
    font-size: 0.55rem;
  }

  /* Tighter padding on mobile */
  .section-hook,
  .section-timeline,
  .section-numbers,
  .groups-header,
  .group-block,
  .section-inbetween,
  .section-turn,
  .section-door,
  .footer {
    padding-left: clamp(1.5rem, 5vw, 3rem);
    padding-right: clamp(1.5rem, 5vw, 3rem);
  }

  /* HOOK: content starts from top, not centered in empty space */
  .section-hook {
    min-height: calc(100vh - 56px);
    min-height: calc(100dvh - 56px);
    justify-content: flex-start;
    padding-top: clamp(3rem, 12vw, 5rem);
    padding-bottom: 2rem;
  }

  .hook-main {
    font-size: clamp(2.5rem, 12vw, 5rem);
  }

  .hook-sub--line2 {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
  }

  .hook-sub--line3 {
    font-size: clamp(0.9rem, 3.5vw, 1.2rem);
  }

  .hook-annotation {
    margin-top: 1.5rem;
    font-size: 0.72rem;
    color: #777;
    max-width: 100%;
  }

  .scroll-indicator {
    bottom: 1.5rem;
  }

  .scroll-indicator .arrow {
    height: 24px;
  }

  /* TIMELINE */
  .section-timeline {
    padding-top: clamp(3rem, 6vw, 6rem);
    padding-bottom: clamp(3rem, 6vw, 6rem);
  }

  .timeline {
    padding-left: 1.5rem;
  }

  .timeline-node {
    padding-left: 1.5rem;
    padding-bottom: clamp(2rem, 4vw, 3rem);
  }

  /* NUMBERS */
  .section-numbers {
    padding-top: clamp(3rem, 6vw, 6rem);
    padding-bottom: clamp(3rem, 6vw, 6rem);
    gap: clamp(3rem, 6vw, 5rem);
  }

  .stat-number {
    font-size: clamp(1.5rem, 7vw, 2.5rem);
  }

  .stat-text {
    font-size: clamp(1rem, 4vw, 1.3rem);
  }

  /* GROUPS */
  .group-block {
    grid-template-columns: 1fr;
    padding-top: clamp(2rem, 4vw, 3rem);
    padding-bottom: clamp(2rem, 4vw, 3rem);
  }

  .group-icon {
    width: 40px;
    height: 40px;
  }

  .group-description {
    font-size: clamp(1.1rem, 4.5vw, 1.5rem);
  }

  .group-block .group-detail {
    max-height: 200px;
    opacity: 1;
  }

  .groups-header {
    font-size: clamp(2rem, 10vw, 4rem);
    margin-bottom: clamp(2rem, 4vw, 3rem);
  }

  /* IN-BETWEEN */
  .section-inbetween {
    padding-top: clamp(3rem, 6vw, 6rem);
    padding-bottom: clamp(3rem, 6vw, 6rem);
  }

  .precariat-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .precariat-card {
    padding: clamp(1.2rem, 3vw, 1.5rem);
  }

  /* TURN */
  .section-turn {
    min-height: auto;
    padding-top: clamp(4rem, 8vw, 6rem);
    padding-bottom: clamp(4rem, 8vw, 6rem);
  }

  .turn-line {
    font-size: clamp(1.5rem, 7vw, 2.5rem);
    margin-bottom: 0.8em;
  }

  /* DOOR */
  .section-door {
    min-height: auto;
    padding-top: clamp(3rem, 6vw, 6rem);
    padding-bottom: clamp(3rem, 6vw, 6rem);
  }

  .door-logo svg {
    width: clamp(220px, 70vw, 350px);
  }

  .door-subtitle {
    margin-bottom: 2em;
    font-size: 0.6rem;
  }

  .door-cta {
    font-size: clamp(1.1rem, 4.5vw, 1.5rem);
  }

  /* FOOTER */
  .footer {
    padding-top: clamp(3rem, 6vw, 5rem);
    padding-bottom: clamp(2rem, 4vw, 3rem);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .section-divider {
    height: clamp(40px, 6vw, 60px);
  }

  .scale-compare {
    height: 60px;
  }
}

/* Small phones (iPhone SE) */
@media (max-width: 390px) {
  .hook-main {
    font-size: clamp(2rem, 11vw, 3.5rem);
  }

  .hook-sub--line2 {
    font-size: clamp(1rem, 4.5vw, 1.4rem);
  }

  .section-hook {
    padding-top: 2.5rem;
  }

  .stat-number {
    font-size: clamp(1.3rem, 6vw, 2rem);
  }

  .turn-line {
    font-size: clamp(1.3rem, 6.5vw, 2rem);
  }
}

@media (min-width: 768px) {
  .section-numbers {
    max-width: 900px;
  }
}

@media (min-width: 1200px) {
  .section-hook,
  .section-turn,
  .section-door {
    max-width: 1400px;
  }

  .section-numbers {
    max-width: 1000px;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  body {
    background: white;
    color: black;
  }

  body::before,
  body::after,
  .scanline,
  .progress-bar,
  .side-nav,
  .section-label,
  .logo-fixed,
  .scroll-indicator {
    display: none;
  }

  .reveal,
  .reveal-left,
  .reveal-scale,
  .reveal-stagger .reveal-child {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================
   WORDPRESS-SPECIFIC STYLES
   ============================================ */

/* Admin bar compatibility */
body.admin-bar .progress-bar {
  top: calc(56px + 32px);
}

@media (max-width: 782px) {
  body.admin-bar .progress-bar {
    top: calc(56px + 46px);
  }
}

/* WordPress entry content area (single posts/pages) */
.entry-content {
  font-family: var(--sans);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.7;
  color: var(--grey);
  max-width: 700px;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  font-family: var(--sans);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-top: 2em;
  margin-bottom: 0.6em;
}

.entry-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

.entry-content h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  letter-spacing: -0.01em;
}

.entry-content h3 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
}

.entry-content h4 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
}

.entry-content p {
  margin-bottom: 1.5em;
}

.entry-content a {
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid var(--red-dim);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.entry-content a:hover {
  color: var(--white);
  border-color: var(--white);
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.5em;
  margin-bottom: 1.5em;
}

.entry-content li {
  margin-bottom: 0.5em;
}

.entry-content li::marker {
  color: var(--red);
}

.entry-content blockquote {
  border-left: 3px solid var(--red);
  padding-left: 1.5em;
  margin: 2em 0;
  font-style: italic;
  color: var(--white);
}

.entry-content blockquote p {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.5;
}

.entry-content pre,
.entry-content code {
  font-family: var(--mono);
  background: var(--black-rich);
  border: 1px solid var(--grey-line);
}

.entry-content code {
  font-size: 0.85em;
  padding: 0.15em 0.4em;
}

.entry-content pre {
  padding: 1.5em;
  overflow-x: auto;
  margin-bottom: 1.5em;
}

.entry-content pre code {
  padding: 0;
  border: none;
  background: none;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  margin: 2em 0;
}

.entry-content hr {
  width: 60px;
  height: 1px;
  background: var(--grey-line);
  margin: 3em 0;
  border: none;
}

.entry-content strong {
  color: var(--white);
  font-weight: 600;
}

.entry-content em {
  color: var(--grey);
}

/* WordPress navigation (wp_nav_menu output) */
.wp-nav-menu,
.wp-nav-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col .menu {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col .menu a {
  font-family: var(--mono);
  font-size: clamp(0.7rem, 1vw, 0.85rem);
  color: var(--grey);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col .menu a:hover {
  color: var(--white);
}

/* Single post / page template styles */
.single-header {
  padding: clamp(8rem, 15vw, 14rem) clamp(2rem, 5vw, 6rem) clamp(3rem, 5vw, 5rem);
  padding-left: clamp(3rem, 8vw, 10rem);
}

.single-back {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--grey-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  transition: color 0.2s ease;
  margin-bottom: 3rem;
}

.single-back:hover {
  color: var(--red);
}

.single-title {
  font-family: var(--sans);
  font-size: clamp(2.5rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 0.3em;
}

.single-meta {
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--grey-dark);
  margin-top: 1.5rem;
}

.single-content {
  padding: clamp(2rem, 5vw, 5rem) clamp(2rem, 5vw, 6rem);
  padding-left: clamp(3rem, 8vw, 10rem);
}

/* Blog index listing */
.blog-header {
  padding: clamp(8rem, 15vw, 14rem) clamp(2rem, 5vw, 6rem) clamp(2rem, 4vw, 4rem);
  padding-left: clamp(3rem, 8vw, 10rem);
}

.blog-title {
  font-family: var(--sans);
  font-size: clamp(2.5rem, 8vw, 7rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--white);
}

.blog-list {
  padding: 0 clamp(2rem, 5vw, 6rem);
  padding-left: clamp(3rem, 8vw, 10rem);
  padding-bottom: clamp(4rem, 8vw, 8rem);
}

.blog-post {
  border-top: 1px solid var(--grey-line);
  padding: clamp(2rem, 3vw, 3rem) 0;
  transition: background 0.3s ease;
}

.blog-post:last-child {
  border-bottom: 1px solid var(--grey-line);
}

.blog-post__link {
  text-decoration: none;
  display: block;
}

.blog-post__title {
  font-family: var(--sans);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 0.5em;
  transition: color 0.2s ease;
}

.blog-post__link:hover .blog-post__title {
  color: var(--red);
}

.blog-post__meta {
  font-family: var(--mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--grey-dark);
  margin-bottom: 0.8em;
}

.blog-post__excerpt {
  font-family: var(--sans);
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: var(--grey);
  line-height: 1.5;
  max-width: 50ch;
}

/* 404 page */
.page-404 {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(4rem, 8vw, 10rem) clamp(2rem, 5vw, 6rem);
  padding-left: clamp(3rem, 8vw, 10rem);
}

.page-404__code {
  font-family: var(--mono);
  font-size: clamp(6rem, 20vw, 16rem);
  font-weight: 700;
  line-height: 1;
  color: var(--red);
  letter-spacing: -0.03em;
  opacity: 0.8;
}

.page-404__message {
  font-family: var(--sans);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: var(--grey);
  line-height: 1.5;
  margin-top: 1em;
  max-width: 30ch;
}

.page-404__submessage {
  font-family: var(--mono);
  font-size: clamp(0.7rem, 1.2vw, 0.85rem);
  color: var(--grey-dark);
  margin-top: 1em;
  letter-spacing: 0.05em;
}

.page-404__link {
  font-family: var(--mono);
  font-size: clamp(0.8rem, 1.3vw, 1rem);
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid var(--red);
  padding-bottom: 0.3em;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 3em;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-404__link:hover {
  color: var(--red);
  border-color: var(--white);
}

/* Responsive adjustments for WP-specific styles */
@media (max-width: 768px) {
  .single-header,
  .single-content,
  .blog-header,
  .blog-list,
  .page-404 {
    padding-left: clamp(1.5rem, 5vw, 3rem);
  }
}

/* ============================================
   MOBILE NAV OPEN — hide page content
   ============================================ */
body.nav-open > *:not(.site-header) {
  visibility: hidden !important;
  pointer-events: none !important;
}

body.nav-open {
  overflow: hidden;
}

/* Groups section subtitles */
.groups-sub {
  font-family: var(--mono);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--grey-dark);
  padding: 0 clamp(2rem, 5vw, 6rem);
  padding-left: clamp(3rem, 8vw, 10rem);
  margin-top: -2rem;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
  line-height: 1.5;
}
.groups-sub--cta {
  color: var(--red);
  margin-bottom: clamp(3rem, 6vw, 6rem);
  letter-spacing: 0.08em;
  font-weight: 500;
}
