/* ==============================================================
   METANEERING.COM — style.css
   Single stylesheet for the entire site. Loaded by every page
   in every language via: <link rel="stylesheet" href="/assets/style.css">

   TABLE OF CONTENTS
   ─────────────────
   1.  Design Tokens (CSS Custom Properties)
   2.  @font-face Declarations
   3.  Reset & Base
   4.  Typography
   5.  Layout Utilities (container, grid, section)
   6.  Navigation (desktop + mobile hamburger)
   7.  Language Switcher Dropdown
   8.  Hero Section
   9.  Content Sections (shared styles)
   10. Latest Section
   11. Founder Card
   12. Footer
   13. Page-specific: Perspectives / Long Voyage
   14. Page-specific: Publications
   15. Page-specific: Contact Form
   16. Reveal Animations (CLS-safe — opacity + transform only)
   17. Responsive (md: 768px, lg: 1024px)
   ============================================================== */


/* ==============================================================
   1. DESIGN TOKENS
   All colors, spacing, and type scales defined as CSS custom
   properties. Change here → changes everywhere.

   Color naming:
   - --text, --text2, --text3, --text4: primary text hierarchy
   - --line, --line2: border/divider utilities
   - --orange: burnt orange accent (#C2662D) — links, hover, CTA
   - --van-dyke: warm dark brown (#4A3C31) — secondary surfaces
   - --ecru: warm beige (#F5F0E8) — card backgrounds, highlights
   - --bg: near-white warm page background
   - --bg-footer: dark warm brown footer background (#5D5047)
   ============================================================== */
:root {
  /* Primary text hierarchy */
  --text:         #1A1D23;                   /* Main text — near black */
  --text2:        #3A2E24;                   /* Secondary text — warm dark (V2) */
  --text3:        rgba(26, 29, 35, 0.35);    /* Tertiary / inactive nav links */
  --text4:        rgba(26, 29, 35, 0.20);    /* Weakest text / placeholders */

  /* Borders and dividers */
  --line:         rgba(26, 29, 35, 0.08);    /* Subtle dividers */
  --line2:        rgba(26, 29, 35, 0.12);    /* Slightly stronger dividers */

  /* Brand accent colors */
  --orange:       #C2662D;                   /* Burnt orange — hover, links, CTAs */
  --van-dyke:     #4A3C31;                   /* Dark warm brown */
  --ecru:         #F5F0E8;                   /* Warm beige — cards, hero bg */

  /* Page backgrounds */
  --bg:           hsl(36, 33%, 97%);         /* Near-white warm background */
  --bg-footer:    #5D5047;                   /* Footer — warm dark brown */

  /* Footer-specific colors */
  --footer-text:  #F5F0E8;                   /* Footer body text */
  --footer-muted: rgba(245, 240, 232, 0.70); /* Footer muted text */
  --footer-accent:#CEB888;                   /* Footer headings — warm gold */

  /* Transitions */
  --transition:   0.2s ease;
  --transition-long: 0.3s ease;
}


/* ==============================================================
   2. @font-face DECLARATIONS
   Fonts are self-hosted as WOFF2 (smallest format, modern browsers).
   font-display: swap — body text renders immediately in fallback
   font, then swaps to the loaded font. Prevents invisible text
   during font load (FOIT), avoids blocking render.

   Files expected in /fonts/:
   - HankenGrotesk-VariableFont_wght.woff2    (UI / headlines)
   - Newsreader-VariableFont_opsz,wght.woff2  (body / editorial)
   - SpaceMono-Regular.woff2                  (labels / mono)
   - SpaceMono-Bold.woff2                     (bold mono labels)
   ============================================================== */

/* Hanken Grotesk — variable font (weight 100–900) */
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/fonts/HankenGrotesk-VariableFont_wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Newsreader — variable font (optical size + weight) */
@font-face {
  font-family: 'Newsreader';
  src: url('/fonts/Newsreader-VariableFont_opsz,wght.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* Newsreader Italic — only load if italic is actually used in content.
   Comment out this block if Newsreader italic is not used (saves 234 KB). */
@font-face {
  font-family: 'Newsreader';
  src: url('/fonts/Newsreader-Italic-VariableFont_opsz,wght.woff2') format('woff2');
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

/* Space Mono — Regular */
@font-face {
  font-family: 'Space Mono';
  src: url('/fonts/SpaceMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Space Mono — Bold */
@font-face {
  font-family: 'Space Mono';
  src: url('/fonts/SpaceMono-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* ==============================================================
   3. RESET & BASE
   Minimal reset. Preserves browser defaults where sensible.
   box-sizing: border-box on everything — padding doesn't add width.
   ============================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.0625rem;       /* 17px */
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--orange);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
}


/* ==============================================================
   4. TYPOGRAPHY
   Type scale and text utilities.

   Roles:
   - .font-sans  → Hanken Grotesk (UI, nav, headlines, buttons)
   - .font-serif → Newsreader (body text, editorial, footer)
   - .font-mono  → Space Mono (labels, technical, code)

   Heading sizes use fluid clamping between mobile and desktop.
   ============================================================== */

/* Font-family utilities */
.font-sans  { font-family: 'Hanken Grotesk', system-ui, sans-serif; }
.font-serif { font-family: 'Newsreader', Georgia, serif; }
.font-mono  { font-family: 'Space Mono', 'Courier New', monospace; }

/* Heading hierarchy */
h1, h2, h3, h4 {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  line-height: 1.15;
  font-weight: 500;
  color: var(--text);
}

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
}

h3 {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 500;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Eyebrow / label — used above section headings */
.eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.6875rem;       /* 11px */
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text3);
}

/* Claim text — used in hero "Strategy. Systems. Certainty." */
.claim {
  font-family: 'Space Mono', monospace;
  font-size: clamp(0.875rem, 1.5vw, 1.125rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Divider line — thin horizontal rule used between hero elements */
.divider {
  border: none;
  border-top: 1px solid var(--line2);
  margin: 2rem 0;
}

/* Muted text */
.text-muted { color: var(--text3); }
.text-muted2 { color: var(--text2); }


/* ==============================================================
   5. LAYOUT UTILITIES
   container: centered, max-width 80rem, horizontal padding.
   section: vertical padding for all page sections.
   ============================================================== */

/* Main content container — used inside every section */
.container {
  max-width: 80rem;             /* 1280px */
  margin: 0 auto;
  padding: 0 2rem;
}

/* Narrow container for editorial content (long-voyage, publications) */
.container--narrow {
  max-width: 50rem;             /* 800px */
  margin: 0 auto;
  padding: 0 2rem;
}

/* Section vertical rhythm */
section {
  padding: 5rem 0;
}

/* Utility: visually hidden (accessible, still in DOM for screen readers) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}


/* ==============================================================
   6. NAVIGATION
   Fixed top navigation bar. Present on every page.

   Desktop layout (≥ 768px):
     [Logo]      [Home] [Perspectives] [About ▾]     [🇬🇧 EN ▾] [Contact]
     left                center                         right

   Mobile (< 768px):
     [Logo]                                              [☰]
   Hamburger opens a fullscreen overlay with all links.

   Scroll behavior:
   - On the homepage hero, nav is transparent (class: nav--transparent)
   - After scrolling > 60px, class nav--opaque is added via JS
   - On all other pages, nav is always opaque

   Active link: current page link gets class nav__link--active
   ============================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 5rem;                 /* 80px */
  display: flex;
  align-items: center;
  transition: background-color var(--transition-long),
              border-color var(--transition-long);
  border-bottom: 1px solid transparent;
}

/* Default state: used on all non-hero pages */
.nav--opaque {
  background-color: var(--bg);
  border-bottom-color: var(--line);
}

/* Transparent state: used on homepage hero before scroll */
.nav--transparent {
  background-color: transparent;
  border-bottom-color: transparent;
}

/* Inner wrapper — handles the logo / center / right three-column layout */
.nav__inner {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* ---- Logo ---- */
.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav__logo img {
  height: 2.75rem;            /* ~44px; PNG/SVG; swap src to metlog00.svg on pics when ready */
  width: auto;
  max-height: 100%;
  object-fit: contain;
}

/* ---- Center links (desktop) ---- */
.nav__links {
  display: none;                /* Hidden on mobile; shown ≥ 768px */
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text3);
  transition: color var(--transition);
  white-space: nowrap;
}

.nav__link:hover,
.nav__link--active {
  color: var(--text);
}

/* About dropdown trigger button — styled like a nav link */
.nav__dropdown-btn {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text3);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
  padding: 0;
}

.nav__dropdown-btn:hover,
.nav__dropdown-btn[aria-expanded="true"] {
  color: var(--text);
}

/* Chevron icon inside dropdown button */
.nav__chevron {
  width: 0.625rem;
  height: 0.625rem;
  transition: transform var(--transition);
}

.nav__dropdown-btn[aria-expanded="true"] .nav__chevron {
  transform: rotate(180deg);
}

/* ---- Right side (desktop) ---- */
.nav__right {
  display: none;                /* Hidden on mobile; shown ≥ 768px */
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* Contact button — pill shape with border */
.nav__contact {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  border: 1px solid var(--line2);
  border-radius: 9999px;
  padding: 0.375rem 0.875rem;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.nav__contact:hover {
  color: var(--orange);
  border-color: var(--orange);
}

/* ---- About dropdown menu ---- */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--bg);
  border: 1px solid var(--line2);
  border-radius: 0.375rem;
  padding: 0.5rem 0;
  min-width: 12rem;
  box-shadow: 0 4px 24px rgba(26, 29, 35, 0.08);
  z-index: 10;
}

.nav__dropdown-menu--open {
  display: block;
}

.nav__dropdown-item {
  display: block;
  padding: 0.5rem 1.25rem;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text2);
  transition: color var(--transition), background-color var(--transition);
  white-space: nowrap;
}

.nav__dropdown-item:hover {
  color: var(--orange);
  background-color: var(--ecru);
}

/* Current section within About dropdown (subpages) */
.nav__dropdown-btn--active {
  color: var(--text);
}

.nav__dropdown-item--active {
  color: var(--text);
  background-color: var(--ecru);
}

/* ---- Mobile hamburger button ---- */
.nav__hamburger {
  display: flex;                /* Visible on mobile */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.3125rem;
  width: 2rem;
  height: 2rem;
  padding: 0.25rem;
  color: var(--text);
}

.nav__hamburger-line {
  display: block;
  width: 1.25rem;
  height: 1.5px;
  background-color: currentColor;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

/* Animate hamburger → X when mobile menu is open */
.nav__hamburger[aria-expanded="true"] .nav__hamburger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav__hamburger[aria-expanded="true"] .nav__hamburger-line:nth-child(2) {
  opacity: 0;
}
.nav__hamburger[aria-expanded="true"] .nav__hamburger-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ---- Mobile overlay menu ---- */
.nav__mobile-overlay {
  display: none;                /* Shown when hamburger is active */
  position: fixed;
  inset: 0;
  background-color: var(--bg);
  z-index: 99;
  flex-direction: column;
  padding: 5rem 2rem 2rem;
  overflow-y: auto;
}

.nav__mobile-overlay--open {
  display: flex;
}

.nav__mobile-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav__mobile-link {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text);
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--line);
  transition: color var(--transition);
}

.nav__mobile-link:hover {
  color: var(--orange);
}

.nav__mobile-link--active {
  font-weight: 500;
}

/* Mobile sub-links (About dropdown items) */
.nav__mobile-sublinks {
  display: flex;
  flex-direction: column;
  padding-left: 1rem;
  margin-top: 0.25rem;
}

.nav__mobile-sublink {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text3);
  padding: 0.375rem 0;
  transition: color var(--transition);
}

.nav__mobile-sublink:hover {
  color: var(--orange);
}

.nav__mobile-sublink--active {
  color: var(--text);
}

/* Mobile bottom: language switcher */
.nav__mobile-bottom {
  margin-top: auto;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav__mobile-contact {
  display: inline-flex;
  align-items: center;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  border: 1px solid var(--line2);
  border-radius: 9999px;
  padding: 0.625rem 1.25rem;
  width: fit-content;
  transition: color var(--transition), border-color var(--transition);
}

.nav__mobile-contact:hover {
  color: var(--orange);
  border-color: var(--orange);
}


/* ==============================================================
   7. LANGUAGE SWITCHER
   Present in both desktop nav (right side) and mobile overlay.

   Locales (fixed order in UI): EN, FR, NL, DE, IT, ES.

   Desktop: [🇬🇧 EN ▾] button opens a dropdown with all 6 options.
   Mobile: 6 flag+code links shown directly in the overlay.

   Each language option is a plain <a href="/{lang}/{page}/">.
   Static links (no JS needed) — Google can crawl them.
   Active language is visually distinguished.
   ============================================================== */

/* Desktop language switcher container */
.lang-switcher {
  position: relative;
}

/* Desktop language button */
.lang-switcher__btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text3);
  transition: color var(--transition);
  padding: 0.25rem 0;
}

.lang-switcher__btn:hover,
.lang-switcher__btn[aria-expanded="true"] {
  color: var(--text);
}

/* Flag icon — circular SVG inline, 20×20px */
.lang-flag {
  display: inline-flex;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--line);
}

.lang-flag svg {
  width: 100%;
  height: 100%;
}

/* Chevron inside language button */
.lang-switcher__chevron {
  width: 0.5625rem;
  height: 0.5625rem;
  transition: transform var(--transition);
}

.lang-switcher__btn[aria-expanded="true"] .lang-switcher__chevron {
  transform: rotate(180deg);
}

/* Desktop language dropdown */
.lang-switcher__menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  background-color: var(--bg);
  border: 1px solid var(--line2);
  border-radius: 0.375rem;
  padding: 0.375rem 0;
  min-width: 10rem;
  box-shadow: 0 4px 24px rgba(26, 29, 35, 0.08);
  z-index: 10;
}

.lang-switcher__menu--open {
  display: block;
}

/* Each language option row */
.lang-switcher__option {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 1rem;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text3);
  transition: color var(--transition), background-color var(--transition);
  white-space: nowrap;
}

.lang-switcher__option:hover {
  color: var(--text);
  background-color: var(--ecru);
}

/* Active language — current page language */
.lang-switcher__option--active {
  color: var(--text);
  font-weight: 600;
  background-color: var(--ecru);
}

.lang-switcher__option-code {
  text-transform: uppercase;
  min-width: 1.5rem;
}

.lang-switcher__option-name {
  color: var(--text3);
  font-weight: 400;
}

/* Mobile language links — shown directly in overlay, no dropdown */
.lang-mobile {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lang-mobile__option {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text3);
  padding: 0.375rem 0.625rem;
  border: 1px solid var(--line);
  border-radius: 9999px;
  transition: color var(--transition), border-color var(--transition);
}

.lang-mobile__option:hover,
.lang-mobile__option--active {
  color: var(--text);
  border-color: var(--line2);
}


/* ==============================================================
   8. HERO SECTION
   Full-viewport hero on the homepage.
   Background: --ecru
   Contains animated vertical lines (CSS-only, no JS) and a
   decorative pyramid.

   CLS RULE (Patch 6):
   All animated elements use ONLY opacity and transform transitions.
   No height, width, padding, or margin animations.
   This guarantees Cumulative Layout Shift = 0.

   The H1 and claim text are visible immediately (no fade delay).
   Only decorative elements (lines, pyramid) may animate.
   ============================================================== */

.hero {
  min-height: 100vh;
  background-color: var(--ecru);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 5rem;            /* Space for fixed nav */
}

/* Animated vertical lines — pure CSS, no JS, no layout impact */
.hero__lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
  opacity: 0.12;
}

.hero__line {
  width: 1px;
  height: 100%;
  background-color: var(--text);
  transform: scaleY(0);
  transform-origin: top;
  animation: lineReveal 1s cubic-bezier(.16,1,.3,1) forwards;
}

/* Staggered delays for 6 lines */
.hero__line:nth-child(1) { animation-delay: 0.1s; }
.hero__line:nth-child(2) { animation-delay: 0.25s; }
.hero__line:nth-child(3) { animation-delay: 0.4s; }
.hero__line:nth-child(4) { animation-delay: 0.55s; }
.hero__line:nth-child(5) { animation-delay: 0.7s; }
.hero__line:nth-child(6) { animation-delay: 0.85s; }

@keyframes lineReveal {
  to { transform: scaleY(1); }
}

/* Decorative pyramid — CSS shape, bottom-right */
.hero__pyramid {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40vw;
  max-width: 28rem;
  opacity: 0.06;
  pointer-events: none;
  mix-blend-mode: multiply;
}

/* Hero content wrapper */
.hero__content {
  position: relative;          /* Above the lines layer */
  z-index: 1;
  padding: 4rem 2rem;
  max-width: 80rem;
  margin: 0 auto;
  width: 100%;
}

/* Hero headline — visible immediately, no delay */
.hero__headline {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--text);
  max-width: 22ch;
  margin-bottom: 1.5rem;
}

/* Hero subheading — Newsreader serif */
.hero__sub {
  font-family: 'Newsreader', serif;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 400;
  color: var(--text2);
  max-width: 44ch;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Hero claim — "Strategy. Systems. Certainty." */
.hero__claim {
  font-family: 'Space Mono', monospace;
  font-size: clamp(0.75rem, 1.2vw, 0.9375rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
}

/* Hero footer — bottom bar with company name + est. year */
.hero__footer {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.hero__footer-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text3);
}


/* ==============================================================
   8b. INNER PAGE HERO + BODY (About, Founder, etc.)
   Compact hero below fixed nav — not full-viewport homepage hero.
   ============================================================== */
section.page-hero {
  padding: 7rem 0 3rem;
  background-color: var(--ecru);
  border-bottom: 1px solid var(--line);
}

.page-hero__inner {
  max-width: 50rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.page-hero h1 {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin-top: 1rem;
  margin-bottom: 0.75rem;
}

.page-hero .page-hero__lead {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text2);
  max-width: 42rem;
}

section.page-inner {
  padding: 4rem 0 5rem;
}

.page-inner__prose {
  max-width: 50rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.page-inner__prose p {
  margin-bottom: 1.25rem;
  color: var(--text2);
  max-width: 52ch;
}

.page-inner__prose p:last-child {
  margin-bottom: 0;
}

.page-inner__prose h2 {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.page-inner__prose h2:first-child {
  margin-top: 0;
}


/* ==============================================================
   9. CONTENT SECTIONS (SHARED STYLES)
   Reusable patterns used across multiple page sections.
   ============================================================== */

/* Section with ecru background (warm beige) */
.section--ecru {
  background-color: var(--ecru);
}

/* Section with white background */
.section--white {
  background-color: #fff;
}

/* Centered section layout */
.section--centered {
  text-align: center;
}

/* Section label: eyebrow text + decorative line */
.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.section-label::after {
  content: '';
  display: block;
  flex: 1;
  height: 1px;
  background-color: var(--line2);
}

/* Card — bordered box used for Latest entries, Founder card */
.card {
  border: 1px solid var(--line2);
  border-radius: 0.25rem;
  padding: 2rem;
  transition: border-color var(--transition);
}

.card:hover {
  border-color: rgba(26, 29, 35, 0.25);
}

/* Read arrow link — "Read →" / "Full profile →" */
.read-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text3);
  transition: color var(--transition), gap var(--transition);
}

.read-link:hover {
  color: var(--orange);
  gap: 0.625rem;
}


/* ==============================================================
   10. LATEST SECTION
   Two entries (book chapter + position paper) separated by a
   divider line. On the homepage below the hero.
   ============================================================== */

.latest {
  padding: 5rem 0;
}

.latest__entry {
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.latest__entry:first-of-type {
  border-top: 1px solid var(--line);
}

.latest__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.latest__type {
  font-family: 'Space Mono', monospace;
  font-size: 0.625rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text3);
}

.latest__title {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.latest__title a:hover {
  color: var(--orange);
}

.latest__teaser {
  font-family: 'Newsreader', serif;
  font-size: 1rem;
  color: var(--text2);
  line-height: 1.6;
  max-width: 60ch;
  margin-bottom: 1.25rem;
}


/* ==============================================================
   11. FOUNDER CARD
   Portrait image + name + description + profile link.
   Used on homepage (compact) and /founder/ page (full).
   ============================================================== */

.founder-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.founder-card__portrait {
  width: 6rem;                  /* 96px */
  height: 6rem;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  filter: grayscale(100%);
  background-color: var(--ecru);
}

.founder-card__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-card__body {
  flex: 1;
}

.founder-card__label {
  font-family: 'Space Mono', monospace;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text3);
  margin-bottom: 0.375rem;
}

.founder-card__name {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.founder-card__bio {
  font-family: 'Newsreader', serif;
  font-size: 0.9375rem;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 1rem;
  max-width: 52ch;
}

/* Founder page — hero tagline, expertise panel, publications, projects */
.founder-page__tagline {
  margin: 0 0 1.5rem;
  padding: 0;
  border: none;
  font-family: 'Newsreader', serif;
  font-size: 1rem;
  color: var(--text2);
  line-height: 1.5;
}

.founder-page__tagline p {
  margin: 0 0 0.25rem;
}

.founder-page__tagline footer {
  font-family: 'Space Mono', monospace;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text3);
}

.founder-page__role {
  font-family: 'Space Mono', monospace;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text3);
  margin: -0.25rem 0 0.75rem;
}

.founder-card--full {
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem;
  border: 1px solid var(--line2);
  border-radius: 0.25rem;
  background: #fff;
}

.founder-card--full .founder-card__portrait {
  width: 12.5rem;
  height: 12.5rem;
}

.founder-expertise-panel {
  margin: 1.125rem 0 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line2);
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.6);
}

.founder-expertise-panel__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.founder-expertise-panel__list li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.founder-expertise-panel__hint {
  font-family: 'Newsreader', serif;
  font-size: 0.875rem;
  color: var(--text3);
  line-height: 1.45;
}

.founder-word-quote {
  margin: 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--orange);
  background: rgba(255, 255, 255, 0.6);
}

.founder-word-quote p {
  margin: 0;
  font-family: 'Newsreader', serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text2);
}

.founder-section-h2 {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 1rem;
  text-align: center;
}

.founder-section-lead {
  text-align: center;
  margin: 0 auto 2.5rem;
  max-width: 48ch;
  color: var(--text2);
  line-height: 1.6;
}

.founder-pub-list .pub-entry:first-child {
  padding-top: 0;
}

.founder-project {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.founder-project:first-of-type {
  margin-top: 1.5rem;
  border-top: 0;
  padding-top: 0;
}

.founder-project__meta {
  font-family: 'Space Mono', monospace;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text3);
  margin-bottom: 0.5rem;
}

.founder-nav-links {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}


/* ==============================================================
   12. FOOTER
   Dark warm-brown background (#5D5047).
   Three-column layout on desktop, stacked on mobile.

   Columns:
   1. Company description (wide)
   2. Location + Explore links
   3. Connect (LinkedIn, Contact)

   Bottom bar: copyright + legal links
   ============================================================== */

.footer {
  background-color: var(--bg-footer);
  color: var(--footer-text);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(245, 240, 232, 0.15);
}

/* Footer column 1 — company description */
.footer__col-company {
  /* max column width for readability */
}

.footer__logo {
  margin-bottom: 1.25rem;
}

.footer__logo img {
  height: 2rem;
  width: auto;
  object-fit: contain;
  /* Invert logo for dark background if logo is dark */
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer__description {
  font-family: 'Newsreader', serif;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--footer-muted);
  max-width: 34ch;
}

/* Footer column headings */
.footer__heading {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--footer-accent);
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

.footer__heading:first-child {
  margin-top: 0;
}

/* Footer link list */
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__link {
  font-family: 'Newsreader', serif;
  font-size: 0.875rem;
  color: var(--footer-muted);
  transition: color var(--transition);
  line-height: 1.4;
}

.footer__link:hover {
  color: var(--footer-text);
}

/* Footer address */
.footer__address {
  font-family: 'Newsreader', serif;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--footer-muted);
  font-style: normal;
}

/* Footer bottom bar */
.footer__bottom {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer__copyright {
  font-family: 'Space Mono', monospace;
  font-size: 0.625rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--footer-muted);
}

.footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer__legal-link {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.6875rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--footer-muted);
  transition: color var(--transition);
}

.footer__legal-link:hover {
  color: var(--footer-text);
}


/* ==============================================================
   13. PAGE-SPECIFIC: PERSPECTIVES / LONG VOYAGE
   Magazine-style index page and individual article page.
   ============================================================== */

/* Perspectives index — numbered entry list */
.perspectives-entry {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1.5rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
}

.perspectives-entry__number {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--text4);
  padding-top: 0.25rem;
}

.perspectives-entry__type {
  font-family: 'Space Mono', monospace;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--orange);
  margin-bottom: 0.5rem;
}

.perspectives-entry__title {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: clamp(1rem, 2vw, 1.375rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.625rem;
  line-height: 1.3;
}

.perspectives-entry__teaser {
  font-family: 'Newsreader', serif;
  font-size: 0.9375rem;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 1rem;
  max-width: 56ch;
}

.perspectives-entry__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1rem;
}

.tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text3);
  border: 1px solid var(--line2);
  border-radius: 9999px;
  padding: 0.1875rem 0.5625rem;
}

/* Article / Long Voyage page */
.article__header {
  padding: 8rem 0 3rem;
  background-color: var(--ecru);
}

.article__header-grid {
  display: grid;
  grid-template-columns: 1fr minmax(200px, 38%);
  gap: 2rem 3rem;
  align-items: start;
}

@media (max-width: 900px) {
  .article__header-grid {
    grid-template-columns: 1fr;
  }

  .article__header-visual {
    order: -1;
    max-width: 20rem;
    margin: 0 auto;
  }
}

.article__header-text {
  min-width: 0;
}

.article__kicker {
  font-family: 'Space Mono', monospace;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text3);
  margin: 0 0 0.5rem;
}

.article__pubdate {
  font-family: 'Space Mono', monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--text4);
  margin: 0 0 1.25rem;
}

.article__title {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 1rem;
}

.article__h1-sub {
  display: block;
  font-weight: 400;
  font-size: 0.92em;
  color: var(--text2);
  margin-top: 0.35rem;
}

.article__tagline {
  margin-top: 0.5rem !important;
  margin-bottom: 1rem !important;
}

.article__author {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--text3);
  margin: 0 0 1.25rem;
}

.article__pdf-row {
  margin: 0 0 0.5rem;
}

.article__header-img {
  width: 100%;
  height: auto;
  max-width: 420px;
  margin-left: auto;
  display: block;
  mix-blend-mode: multiply;
  opacity: 0.92;
}

.article__back {
  margin-top: 3rem;
}

.article__body .article__disclaimer:last-of-type,
.article__body p.article__copyright {
  font-size: 0.9375rem;
  color: var(--text3);
}

.article__disclaimer-heading {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.article__byline {
  font-family: 'Space Mono', monospace;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text3);
  margin-bottom: 1.5rem;
}

.article__byline a:hover {
  color: var(--orange);
}

.article__date {
  font-variant-numeric: tabular-nums;
}

/* Article body text */
.article__body h2 {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 500;
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.article__body p {
  font-family: 'Newsreader', serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text2);
  margin-bottom: 1.25rem;
}

.article__body blockquote {
  border-left: 3px solid var(--orange);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  color: var(--text2);
  font-style: italic;
}

/* Optional support / donation line under PDF download */
.article__donate {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  max-width: 42rem;
  border: 1px solid var(--line2);
  border-radius: 2px;
  background-color: rgba(255, 255, 255, 0.45);
}

.article__donate__text {
  font-family: 'Newsreader', serif;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text2);
  margin: 0 0 0.75rem;
}

.article__donate .read-link {
  margin-top: 0;
}

/* Perspectives hub — article teaser row */
.perspectives-teaser {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.perspectives-teaser:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.perspectives-teaser__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: baseline;
  margin-top: 1rem;
}


/* ==============================================================
   14. PAGE-SPECIFIC: PUBLICATIONS
   Chronological list of academic / professional publications.
   ============================================================== */

.pub-entry {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

.pub-entry__date {
  font-family: 'Space Mono', monospace;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text3);
  margin-bottom: 0.375rem;
}

.pub-entry__type {
  font-family: 'Space Mono', monospace;
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orange);
  margin-bottom: 0.5rem;
}

.pub-entry__title {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.375rem;
  line-height: 1.35;
}

.pub-entry__publisher {
  font-family: 'Newsreader', serif;
  font-size: 0.875rem;
  color: var(--text3);
  margin-bottom: 0.625rem;
}

.pub-entry__link {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  transition: opacity var(--transition);
}

.pub-entry__link:hover {
  opacity: 0.7;
  color: var(--orange);
}


/* ==============================================================
   15. PAGE-SPECIFIC: CONTACT FORM
   Consultation booking form on /contact/.
   ============================================================== */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-label {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text3);
}

.form-input,
.form-textarea {
  font-family: 'Newsreader', serif;
  font-size: 1rem;
  color: var(--text);
  background-color: transparent;
  border: 1px solid var(--line2);
  border-radius: 0.1875rem;
  padding: 0.75rem 1rem;
  transition: border-color var(--transition);
  width: 100%;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--orange);
}

.form-textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-required {
  color: var(--orange);
  margin-left: 0.125rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.75rem 1.75rem;
  border-radius: 9999px;
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition);
  cursor: pointer;
}

.btn--primary {
  background-color: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
}

.btn--primary:hover {
  background-color: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.btn--outline {
  background-color: transparent;
  color: var(--text);
  border: 1px solid var(--line2);
}

.btn--outline:hover {
  border-color: var(--orange);
  color: var(--orange);
}


/* ==============================================================
   16. REVEAL ANIMATIONS
   CLS-safe entrance animations. Uses ONLY opacity and transform.
   No height, width, padding, or margin changes — those cause CLS.

   Usage:
   - Add class="reveal" to any element that should animate in
   - The IntersectionObserver in nav.js adds class "visible"
   - CSS transitions handle the visual effect

   Reduced motion: users who prefer reduced motion get no animation.
   ============================================================== */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s cubic-bezier(.16,1,.3,1),
              transform 0.6s cubic-bezier(.16,1,.3,1);
}

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

/* Stagger delay utilities for sibling elements */
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* Respect user's motion preference */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero__line,
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}


/* ==============================================================
   17. RESPONSIVE
   Mobile-first base styles above. These overrides apply at
   larger breakpoints.

   Breakpoints:
   - sm: 640px  — small tablets
   - md: 768px  — tablets / desktop nav threshold
   - lg: 1024px — desktop
   - xl: 1280px — wide desktop
   ============================================================== */

/* ---- sm (640px) ---- */
@media (min-width: 640px) {
  .container {
    padding: 0 2rem;
  }

  .founder-card {
    gap: 2rem;
  }
}

/* ---- md (768px) — Desktop navigation appears ---- */
@media (min-width: 768px) {
  /* Show desktop nav elements */
  .nav__links {
    display: flex;
  }

  .nav__right {
    display: flex;
  }

  /* Hide mobile hamburger */
  .nav__hamburger {
    display: none;
  }

  /* Footer grid — 3 columns */
  .footer__grid {
    grid-template-columns: 2fr 1.5fr 1fr;
  }

  /* Hero content wider */
  .hero__content {
    padding: 5rem 2rem;
  }
}

/* ---- lg (1024px) ---- */
@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }

  .hero__content {
    padding: 6rem 2rem;
  }

  section {
    padding: 6rem 0;
  }
}

/* ---- Mobile overrides (< 768px) ---- */
@media (max-width: 767px) {
  /* Footer: single column */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  /* Perspectives entry: single column */
  .perspectives-entry {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .perspectives-entry__number {
    display: none;
  }

  /* Founder card: stack on very small screens */
  .founder-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .container,
  .container--narrow {
    padding: 0 1.25rem;
  }

  .hero__content {
    padding: 3rem 1.25rem;
  }

  .card {
    padding: 1.25rem;
  }
}

/* Long Voyage PDF: post-open donation dialog (same tab, after window.open) */
.donate-pdf-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.donate-pdf-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.donate-pdf-modal__panel {
  max-width: 28rem;
  width: 100%;
  background: var(--ecru);
  color: var(--text);
  border-radius: 0.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 1.5rem 1.5rem 1.25rem;
}

.donate-pdf-modal__title {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

.donate-pdf-modal__body {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 1.25rem;
}

.donate-pdf-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.donate-pdf-modal__actions .read-link {
  margin: 0;
}

.donate-pdf-modal__close {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line2);
  border-radius: 0.375rem;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.donate-pdf-modal__close:hover,
.donate-pdf-modal__close:focus-visible {
  border-color: var(--text3);
  outline: none;
}

.donate-pdf-modal__blocked {
  display: none;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 0.9rem;
  color: var(--text2);
  margin: 0 0 1rem;
}

.donate-pdf-modal__blocked.is-visible {
  display: block;
}
