/* ============================================================
   JTR.COM — COMPONENTS
   Nav, footer, hero, glass card, dossier, project blocks,
   doctrine teaser, opposition wing.
   ============================================================ */

/* ============================================================
   NAV — sticky, transparent on dark hero, opaque on scroll
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  padding: var(--s-5) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition:
    background-color var(--dur-base) var(--ease-out),
    backdrop-filter var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: var(--glass-light);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom-color: rgba(14, 14, 14, 0.08);
}

/* dark-hero variant — keep nav text light until scrolled */
.nav-dark .nav-link,
.nav-dark .nav-triad path { color: var(--paper); }

.nav.scrolled.nav-dark .nav-link { color: var(--ink); }
.nav.scrolled.nav-dark .nav-triad { filter: invert(1); }

.nav-triad img {
  width: 32px;
  height: 32px;
  display: block;
  transition: filter var(--dur-base) var(--ease-out);
}

/* logo + name inline in nav */
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  color: inherit;
}

.nav-brand-mark {
  width: 32px;
  height: 32px;
  max-width: 32px;
  max-height: 32px;
  min-width: 32px;
  object-fit: contain;
  display: block;
  flex: 0 0 32px;
  transition: filter var(--dur-base) var(--ease-out);
}

.nav-brand-text {
  font-family: var(--font-mono);
  font-size: var(--t-mono-sm);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: inherit;
  white-space: nowrap;
}

.nav-dark .nav-brand-text { color: var(--paper); }
.nav.scrolled.nav-dark .nav-brand-text { color: var(--ink); }
.nav.scrolled.nav-dark .nav-brand-mark { filter: invert(1); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-7);
}

.nav-link {
  font-family: var(--font-mono);
  font-size: var(--t-mono-sm);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--dur-fast) var(--ease-out);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--red); }

/* Opposition link in nav now uses standard .nav-link styling
   per Jared's review 2026-05-25 — visual consistency with other items. */

/* mobile nav — comfortable tap target (>= 44x44pt iOS guideline) */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid currentColor;
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-size: var(--t-mono-sm);
  font-weight: 500;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  cursor: pointer;
  color: inherit;
  min-width: 88px;
  min-height: 44px;
  position: relative;
  z-index: calc(var(--z-nav) + 10);
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.nav-toggle:hover,
.nav-toggle:active {
  background: var(--red);
  color: var(--paper);
  border-color: var(--red);
}

/* When the menu is open, the toggle becomes the close affordance — pin red */
.nav-toggle[aria-expanded="true"] {
  background: var(--red);
  color: var(--paper);
  border-color: var(--red);
}

/* Lock background scroll when the mobile menu is open */
body.menu-open {
  overflow: hidden;
  touch-action: none;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-block; }

  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-4);
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    padding: 110px var(--gutter) var(--s-9);
    /* Frosted dark glass — semi-transparent + blur lets the page
       texture show through while keeping menu text legible.
       Note: backdrop-filter on the *menu itself* is fine — it only
       breaks fixed positioning when applied to an *ancestor*. */
    background: rgba(14, 14, 14, 0.62);
    backdrop-filter: blur(28px) saturate(1.2);
    -webkit-backdrop-filter: blur(28px) saturate(1.2);
    z-index: calc(var(--z-nav) - 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Anchor the nav itself solid when the menu is open AND strip
     backdrop-filter — backdrop-filter on an ancestor turns it into
     the containing block for fixed descendants, which was clipping
     the menu overlay to the nav bar's height after any scroll. */
  body.menu-open .nav {
    background: var(--ink) !important;
    border-bottom: 1px solid rgba(244, 241, 236, 0.08);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: none !important;
    filter: none !important;
  }
  body.menu-open .nav-brand-text { color: var(--paper) !important; }
  body.menu-open .nav-brand-mark { filter: none !important; }

  /* Ensure list reset inside the open overlay */
  .nav-links.is-open li {
    list-style: none;
    width: 100%;
  }

  /* The default .nav-link inherits dark text in the scrolled/dark variants —
     bump specificity with body.menu-open so the overlay text always reads light. */
  body.menu-open .nav-links.is-open .nav-link {
    font-size: 22px;
    letter-spacing: var(--track-wide);
    color: var(--paper) !important;
    display: block;
    width: 100%;
    padding-block: var(--s-3);
    border-bottom: 1px solid rgba(244, 241, 236, 0.08);
  }

  body.menu-open .nav-links.is-open .nav-link:hover,
  body.menu-open .nav-links.is-open .nav-link[aria-current="page"] {
    color: var(--red) !important;
  }

  /* Underline animation off in the overlay — full-width border instead */
  .nav-links.is-open .nav-link::after { display: none; }
}

/* ============================================================
   HERO — Mode A: full-bleed B&W photo, vline overlay,
   typeset bottom-left
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: grayscale(100%) contrast(1.05);
  transform: scale(1.05);
  transition: transform 8s var(--ease-out);
}

.hero-photo::after {
  /* darken bottom for legibility */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14,14,14,0.25) 0%,
    rgba(14,14,14,0.15) 40%,
    rgba(14,14,14,0.85) 100%
  );
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to right,
    var(--rule-light) 0,
    var(--rule-light) 1px,
    transparent 1px,
    transparent calc(100% / 24)
  );
  background-size: 100% 100%;
}

.hero-triad {
  position: absolute;
  top: var(--s-9);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 56px;
  max-width: 56px;
  height: auto;
  display: block;
}

.hero-triad img {
  width: 100%;
  max-width: 56px;
  height: auto;
  display: block;
  filter: invert(1);
}

.hero-content {
  position: relative;
  z-index: var(--z-content);
  width: 100%;
  padding: var(--gutter);
  padding-bottom: clamp(64px, 10vh, 128px);
}

.hero-eyebrow {
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--red);
  margin-bottom: var(--s-7);
  font-family: var(--font-mono);
  font-size: var(--t-mono-sm);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--paper);
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--t-hero);
  line-height: var(--lh-tight);
  letter-spacing: var(--track-tight);
  color: var(--paper);
  max-width: 16ch;
}

.hero-subhead {
  margin-top: var(--s-5);
  max-width: 38ch;
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: var(--lh-snug);
  color: rgba(244, 241, 236, 0.85);
}

.hero-scroll-caret {
  position: absolute;
  right: var(--gutter);
  bottom: var(--s-7);
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 28px;
  z-index: var(--z-content);
  animation: caret-bob 2.4s var(--ease-in-out) infinite;
}

@keyframes caret-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* ============================================================
   DOSSIER — Section 2 case-file
   ============================================================ */
.dossier {
  background: var(--ink);
  color: var(--paper);
  padding-block: var(--section-y);
  position: relative;
}

.dossier-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: var(--t-mono-sm);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: rgba(244, 241, 236, 0.6);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid rgba(244, 241, 236, 0.15);
  margin-bottom: var(--s-7);
}

.dossier-table {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--s-5) var(--s-7);
  font-family: var(--font-body);
}

.dossier-key {
  font-family: var(--font-mono);
  font-size: var(--t-mono-sm);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: rgba(244, 241, 236, 0.55);
  align-self: center;
}

.dossier-val {
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: var(--lh-snug);
  color: var(--paper);
}

.dossier-val .accent { color: var(--red); }

@media (max-width: 700px) {
  .dossier-table { grid-template-columns: 1fr; gap: var(--s-2); }
  .dossier-key { margin-top: var(--s-4); }
}

/* ============================================================
   PROJECT BLOCK — Section 3 work
   ============================================================ */
.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-10);
}

.work-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  align-items: center;
}

.work-block-reverse { direction: rtl; }
.work-block-reverse > * { direction: ltr; }

.work-meta {
  font-family: var(--font-mono);
  font-size: var(--t-mono-xs);
  letter-spacing: var(--track-wider);
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-bottom: var(--s-3);
}

.work-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: var(--lh-tight);
  letter-spacing: var(--track-tight);
  margin-bottom: var(--s-4);
}

.work-positioning {
  font-family: var(--font-body);
  font-size: var(--t-body-lg);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--s-5);
}

.work-body {
  font-size: var(--t-body);
  line-height: var(--lh-loose);
  color: var(--ink-soft);
  margin-bottom: var(--s-5);
  max-width: 50ch;
}

.work-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--ink);
  overflow: hidden;
}

.work-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
}

.work-visual-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink-soft);
  color: rgba(244, 241, 236, 0.4);
  font-family: var(--font-mono);
  font-size: var(--t-mono-sm);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
}

@media (max-width: 800px) {
  .work-block, .work-block-reverse { grid-template-columns: 1fr; direction: ltr; }
}

/* ============================================================
   GLASS CARD — Section 4 the operator at work (Mode C)
   ============================================================ */
.glass-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.glass-section-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.glass-section-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%) sepia(0.15) contrast(1.0);
}

.glass-section-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14,14,14,0.55) 0%,
    rgba(14,14,14,0.65) 100%
  );
}

.glass-section-grid {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to right,
    rgba(244,241,236,0.12) 0,
    rgba(244,241,236,0.12) 1px,
    transparent 1px,
    transparent 8px
  );
}

.glass-card {
  position: relative;
  z-index: var(--z-glass);
  max-width: 540px;
  padding: var(--s-7) var(--s-7);
  background: rgba(244, 241, 236, 0.06);
  backdrop-filter: blur(28px) saturate(1.1);
  -webkit-backdrop-filter: blur(28px) saturate(1.1);
  border: 1px solid rgba(244, 241, 236, 0.18);
  color: var(--paper);
}

.glass-card-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--t-mono-sm);
  letter-spacing: var(--track-wider);
  text-transform: uppercase;
  color: rgba(244, 241, 236, 0.8);
  margin-bottom: var(--s-5);
}

.glass-card-eyebrow .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.85); }
}

.glass-card-list {
  font-size: var(--t-body-lg);
  line-height: var(--lh-loose);
}

.glass-card-list li {
  padding-block: var(--s-2);
  border-bottom: 1px solid rgba(244, 241, 236, 0.08);
}

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

.glass-card-meta {
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid rgba(244, 241, 236, 0.15);
  font-family: var(--font-mono);
  font-size: var(--t-mono-xs);
  letter-spacing: var(--track-wider);
  text-transform: uppercase;
  color: rgba(244, 241, 236, 0.6);
}

/* ============================================================
   DOCTRINE — Section 5 code of conduct teaser
   ============================================================ */
.doctrine {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
  background: var(--paper);
}

.doctrine-photo {
  position: relative;
  background: var(--ink);
}

.doctrine-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
}

.doctrine-content {
  padding: var(--section-y) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.doctrine-tenets {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-4) var(--s-6);
  margin-block: var(--s-7);
}

.doctrine-tenet-num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 16px;
  color: var(--red);
  align-self: start;
  padding-top: 2px;
}

.doctrine-tenet-text {
  font-size: var(--t-body-lg);
  line-height: var(--lh-snug);
  color: var(--ink);
}

@media (max-width: 800px) {
  .doctrine { grid-template-columns: 1fr; }
  .doctrine-photo { min-height: 50vh; }
}

/* ============================================================
   OPPOSITION WING — Section 6 ihatejaredtross
   ============================================================ */
.opposition {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  min-height: 90vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.opposition-photo {
  position: relative;
  order: 2;
}

.opposition-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1);
}

.opposition-content {
  position: relative;
  order: 1;
  padding: var(--section-y) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.opposition-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 5vw, 72px);
  line-height: var(--lh-snug);
  margin-bottom: var(--s-6);
  color: var(--paper);
  transition: color var(--dur-base) var(--ease-out);
  display: inline-block;
}

.opposition-title:hover { color: var(--red); }

.opposition-meta {
  font-family: var(--font-mono);
  font-size: var(--t-mono-sm);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--s-5);
}

.opposition-body {
  max-width: 42ch;
  font-size: var(--t-body-lg);
  line-height: var(--lh-loose);
  color: rgba(244, 241, 236, 0.85);
  margin-bottom: var(--s-6);
}

@media (max-width: 800px) {
  .opposition { grid-template-columns: 1fr; }
  .opposition-photo { order: 1; min-height: 40vh; }
  .opposition-content { order: 2; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  color: rgba(244, 241, 236, 0.8);
  padding: var(--s-10) 0 var(--s-6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--s-8);
  padding-bottom: var(--s-9);
  border-bottom: 1px solid rgba(244, 241, 236, 0.12);
}

.footer-col-head {
  font-family: var(--font-mono);
  font-size: var(--t-mono-xs);
  letter-spacing: var(--track-wider);
  text-transform: uppercase;
  color: rgba(244, 241, 236, 0.5);
  margin-bottom: var(--s-5);
}

.footer-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  line-height: var(--lh-snug);
  color: var(--paper);
  margin-bottom: var(--s-2);
}

.footer-role {
  font-size: 16px;
  color: rgba(244, 241, 236, 0.65);
  margin-bottom: var(--s-5);
}

.footer-faith {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--paper);
}

.footer-list { display: flex; flex-direction: column; gap: var(--s-3); }

.footer-link {
  color: rgba(244, 241, 236, 0.7);
  font-size: 15px;
  transition: color var(--dur-fast) var(--ease-out);
}

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

.footer-subscribe {
  font-family: var(--font-mono);
  font-size: var(--t-mono-sm);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--paper);
  margin-top: var(--s-5);
  display: inline-block;
  padding-bottom: 2px;
  position: relative;
}

.footer-subscribe::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--red);
}

.footer-subscribe:hover { color: var(--red); }

.footer-strip {
  margin-top: var(--s-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--t-mono-xs);
  letter-spacing: var(--track-wider);
  text-transform: uppercase;
  color: rgba(244, 241, 236, 0.5);
}

.footer-strip-triad img { width: 24px; filter: invert(1); opacity: 0.7; }

.footer-strip-opposition {
  font-family: var(--font-serif);
  font-style: italic;
  text-transform: lowercase;
  letter-spacing: 0;
  font-size: 13px;
  color: rgba(244, 241, 236, 0.6);
  transition: color var(--dur-fast) var(--ease-out);
}

.footer-strip-opposition:hover { color: var(--red); }

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--s-7); }
}

/* ============================================================
   SUB-PAGE HERO — lighter version of main hero
   ============================================================ */
.subhero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding-top: 120px;
}

.subhero-photo {
  position: absolute; inset: 0; z-index: 0;
}

.subhero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
}

.subhero-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(14,14,14,0.35) 0%, rgba(14,14,14,0.85) 100%);
}

.subhero-grid-overlay {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to right,
    var(--rule-light) 0,
    var(--rule-light) 1px,
    transparent 1px,
    transparent calc(100% / 24)
  );
}

.subhero-content {
  position: relative;
  z-index: var(--z-content);
  padding: var(--gutter);
  padding-bottom: clamp(48px, 8vh, 96px);
}

.subhero-eyebrow {
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--red);
  margin-bottom: var(--s-6);
  font-family: var(--font-mono);
  font-size: var(--t-mono-sm);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--paper);
}

.subhero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--t-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--track-tight);
  color: var(--paper);
}

/* ============================================================
   CONTENT PROSE — for sub-page bodies
   ============================================================ */
.prose {
  max-width: var(--max-w-prose);
  margin-inline: auto;
  padding: var(--section-y) var(--gutter);
}

.prose p {
  font-size: var(--t-body-lg);
  line-height: var(--lh-loose);
  color: var(--ink-soft);
  margin-bottom: var(--s-5);
}

.prose h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--t-h3);
  margin-top: var(--s-9);
  margin-bottom: var(--s-5);
  color: var(--ink);
}

.prose a {
  border-bottom: 1px solid var(--red);
  padding-bottom: 1px;
  transition: color var(--dur-fast) var(--ease-out);
}

.prose a:hover { color: var(--red); }

/* ============================================================
   CURRENTLY — 2-column: glass card + live map
   ============================================================ */
.currently-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: stretch;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.currently-photo {
  position: absolute; inset: 0; z-index: 0;
}

.currently-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%) sepia(0.15) contrast(1.0);
}

.currently-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14,14,14,0.65) 0%,
    rgba(14,14,14,0.78) 100%
  );
}

.currently-grid-overlay {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to right,
    rgba(244,241,236,0.12) 0,
    rgba(244,241,236,0.12) 1px,
    transparent 1px,
    transparent 8px
  );
}

.currently-grid {
  position: relative;
  z-index: var(--z-glass);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: stretch;
  padding: var(--section-y) var(--gutter);
  max-width: var(--max-w);
  margin-inline: auto;
}

.currently-grid .glass-card,
.currently-grid .live-map {
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 360px;
  align-self: stretch;
}

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

/* the live regional-map column — sized to match glass-card */
.live-map {
  position: relative;
  background: #0a0a0a;
  border: 1px solid rgba(244, 241, 236, 0.18);
  overflow: hidden;
}

/* Leaflet map container — fills .live-map */
.se-asia-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Override Leaflet base styles to match the brutalist aesthetic */
.leaflet-container {
  background: #0a0a0a !important;
  font-family: var(--font-mono) !important;
  outline: 0;
}

.leaflet-control-attribution {
  background: rgba(14, 14, 14, 0.75) !important;
  color: rgba(244, 241, 236, 0.55) !important;
  font-family: var(--font-mono) !important;
  font-size: 9px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  padding: 4px 8px !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.leaflet-control-attribution a {
  color: rgba(244, 241, 236, 0.75) !important;
}

.leaflet-control-zoom {
  border: 1px solid rgba(244, 241, 236, 0.2) !important;
  box-shadow: none !important;
}

.leaflet-control-zoom a {
  background: rgba(14, 14, 14, 0.7) !important;
  color: var(--paper) !important;
  border-bottom-color: rgba(244, 241, 236, 0.1) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.leaflet-control-zoom a:hover {
  background: rgba(14, 14, 14, 0.9) !important;
  color: var(--red) !important;
}

/* Custom divIcon marker — wrapper has no fill, the .live-dot child carries the pulse */
.live-dot-marker {
  background: transparent !important;
  border: 0 !important;
  pointer-events: none;
}

/* The .live-dot inside the marker keeps the existing pulse animation, but
   needs to reposition relative to its marker container (not absolute %). */
.live-dot-marker .live-dot {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  margin: 0;
}

/* Permanent label next to the pin */
.live-map-tooltip {
  background: rgba(14, 14, 14, 0.85) !important;
  color: var(--paper) !important;
  border: 1px solid rgba(74, 222, 128, 0.4) !important;
  border-radius: 0 !important;
  font-family: var(--font-mono) !important;
  font-size: 10px !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  padding: 4px 8px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.live-map-tooltip::before {
  display: none !important;
}

/* Bring corner labels above the Leaflet canvas */
.live-map > .live-map-label,
.live-map > .live-map-coords {
  z-index: 10;
  background: rgba(14, 14, 14, 0.7);
  padding: 4px 8px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.live-map-svg {
  width: 100%; height: 100%;
  display: block;
  fill: rgba(244, 241, 236, 0.22);
  stroke: rgba(244, 241, 236, 0.4);
  stroke-width: 0.4;
}

.live-map-grid {
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(to right, rgba(244,241,236,0.06) 0, rgba(244,241,236,0.06) 1px, transparent 1px, transparent calc(100% / 24)),
    repeating-linear-gradient(to bottom, rgba(244,241,236,0.06) 0, rgba(244,241,236,0.06) 1px, transparent 1px, transparent calc(100% / 12));
}

.live-map-label {
  position: absolute;
  top: var(--s-3);
  left: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--t-mono-xs);
  letter-spacing: var(--track-wider);
  text-transform: uppercase;
  color: rgba(244, 241, 236, 0.7);
}

.live-map-coords {
  position: absolute;
  bottom: var(--s-3);
  right: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--t-mono-xs);
  letter-spacing: var(--track-wider);
  text-transform: uppercase;
  color: rgba(244, 241, 236, 0.7);
}

.live-dot {
  /* absolute-positioned via inline style on the element (left/top %) */
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--live);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.5);
}

.live-dot::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.35);
  animation: live-pulse 2s ease-in-out infinite;
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.18);
  animation: live-pulse 2s ease-in-out 0.4s infinite;
}

@keyframes live-pulse {
  0%   { transform: scale(0.7); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.live-city-label {
  position: absolute;
  transform: translate(8px, -50%);
  font-family: var(--font-mono);
  font-size: var(--t-mono-xs);
  letter-spacing: var(--track-wider);
  text-transform: uppercase;
  color: var(--paper);
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(14,14,14,0.6);
}

/* ============================================================
   SPEAKER REEL + TOPIC CARDS (L-shape layout)
   ============================================================ */
.speaker-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: var(--s-5);
  margin-block: var(--s-7);
}

.speaker-reel {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  overflow: hidden;
}

.speaker-reel-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  background: var(--ink);
  color: rgba(244, 241, 236, 0.5);
  font-family: var(--font-mono);
  font-size: var(--t-mono-sm);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  text-align: center;
  padding: var(--s-5);
}

.speaker-reel-placeholder span { color: rgba(244, 241, 236, 0.85); }

.topic-card {
  background: var(--paper);
  border: 1px solid rgba(14,14,14,0.10);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}

.topic-card:hover { border-color: var(--red); }

.topic-card-num {
  font-family: var(--font-mono);
  font-size: var(--t-mono-xs);
  letter-spacing: var(--track-wider);
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: var(--s-3);
}

.topic-card-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: var(--lh-snug);
  color: var(--ink);
  letter-spacing: var(--track-tight);
  margin-bottom: var(--s-3);
}

.topic-card-body {
  font-size: 14px;
  line-height: var(--lh-loose);
  color: var(--ink-soft);
  margin-top: var(--s-3);
}

.topic-card.t1 { grid-column: 3; grid-row: 1; }
.topic-card.t2 { grid-column: 3; grid-row: 2; }
.topic-card.t3 { grid-column: 1; grid-row: 3; }
.topic-card.t4 { grid-column: 2; grid-row: 3; }
.topic-card.t5 { grid-column: 3; grid-row: 3; }

@media (max-width: 900px) {
  .speaker-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto auto;
  }
  .speaker-reel { grid-column: 1 / 3; grid-row: 1; }
  .topic-card.t1 { grid-column: 1; grid-row: 2; }
  .topic-card.t2 { grid-column: 2; grid-row: 2; }
  .topic-card.t3 { grid-column: 1; grid-row: 3; }
  .topic-card.t4 { grid-column: 2; grid-row: 3; }
  .topic-card.t5 { grid-column: 1 / 3; grid-row: 4; }
}

@media (max-width: 600px) {
  .speaker-grid { grid-template-columns: 1fr; }
  .speaker-reel,
  .topic-card.t1, .topic-card.t2, .topic-card.t3, .topic-card.t4, .topic-card.t5 {
    grid-column: 1; grid-row: auto;
  }
}

/* ============================================================
   LETTER FROM JARED + signature
   Two-column: letter content + portrait, side by side
   ============================================================ */
.letter-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s-8);
  align-items: stretch;
}

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

.letter {
  padding: var(--s-7);
  background: var(--paper);
  border: 1px solid rgba(14,14,14,0.10);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.letter-portrait {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  background: var(--ink);
}

.letter-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
}

.letter-signature img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
}

.letter-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--t-mono-xs);
  letter-spacing: var(--track-wider);
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-bottom: var(--s-4);
}

.letter-body p {
  font-size: var(--t-body-lg);
  line-height: var(--lh-loose);
  color: var(--ink-soft);
  margin-bottom: var(--s-4);
}

.letter-signature {
  margin-top: var(--s-5);
  max-width: 220px;
}

.letter-signature-placeholder {
  width: 220px;
  height: 80px;
  border: 1px dashed rgba(14,14,14,0.25);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--t-mono-xs);
  letter-spacing: var(--track-wider);
  text-transform: uppercase;
  color: var(--ink-mid);
}

/* ============================================================
   VIDEO EMBED (16:9 responsive)
   ============================================================ */
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  overflow: hidden;
}

.video-embed iframe,
.video-embed > div {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-embed-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--ink);
  color: rgba(244, 241, 236, 0.55);
  font-family: var(--font-mono);
  font-size: var(--t-mono-sm);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
}

/* ============================================================
   MEDIA THUMBNAILS — uniform 16:9 landscape, same size everywhere
   display:block is critical because most .media-thumb elements
   are <a> tags — inline elements ignore aspect-ratio.
   ============================================================ */
.media-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink);
  margin-bottom: var(--s-4);
}

.media-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%) contrast(1.05);
  transition: filter var(--dur-base) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}

.media-thumb:hover img {
  filter: grayscale(70%) contrast(1.1);
  transform: scale(1.02);
}

/* When the thumbnail IS a YouTube embed, the iframe replaces the image
   and fills the 16:9 container the same way. No filter — let the video
   play in color so the play UI reads cleanly. */
.media-thumb iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ============================================================
   WORK SCREENSHOT — for index.html work blocks
   Same crop as media-thumb but slightly different feel
   ============================================================ */
.work-screenshot {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--concrete);
  border: 1px solid rgba(14,14,14,0.10);
}

.work-screenshot img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform var(--dur-vslow) var(--ease-out);
}

.work-screenshot:hover img {
  transform: scale(1.03);
}

/* ============================================================
   OPPOSITION — Section 6 — font fix per review
   ============================================================ */
.opposition-title-display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 5vw, 72px);
  line-height: var(--lh-tight);
  letter-spacing: var(--track-tight);
  color: var(--paper);
  display: inline-block;
  transition: color var(--dur-base) var(--ease-out);
  margin-bottom: var(--s-5);
}

.opposition-title-display:hover { color: var(--red); }

/* The "File a complaint" CTA — visible on dark background */
.opposition-cta {
  display: inline-block;
  margin-top: var(--s-5);
  font-family: var(--font-mono);
  font-size: var(--t-mono-sm);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--paper);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--dur-fast) var(--ease-out);
}

.opposition-cta::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--red);
}

.opposition-cta:hover { color: var(--red); }
.opposition-cta .caret { color: var(--red); margin-left: var(--s-2); }

/* ============================================================
   MOBILE OPTIMIZATION PASS — tighten things below 600px
   ============================================================ */
@media (max-width: 768px) {
  /* Hero photo: keep face higher in frame on portrait viewports */
  .hero-photo img { object-position: 50% 22%; }

  /* Subhero tighter on mobile */
  .subhero { min-height: 50vh; padding-top: 96px; }

  /* Currently cards shorter when stacked */
  .currently-grid {
    gap: var(--s-5);
    padding-block: clamp(48px, 8vh, 96px);
  }
  .currently-grid .glass-card,
  .currently-grid .live-map { min-height: 320px; }

  /* Glass card padding less aggressive */
  .glass-card { padding: var(--s-6) var(--s-5); }

  /* Letter portrait shrinks when stacked */
  .letter-portrait { min-height: 320px; }
  .letter { padding: var(--s-6); }

  /* Work block stack: tighten the gap between content + visual */
  .work-grid { gap: var(--s-8); }

  /* Doctrine: photo height capped on mobile to keep flow */
  .doctrine-photo { min-height: 40vh; max-height: 60vh; }

  /* Footer strip wraps on narrow screens */
  .footer-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-3);
    text-align: left;
  }

  /* Dossier header should wrap rather than collide */
  .dossier-head { flex-wrap: wrap; gap: var(--s-2); }

  /* Hero scroll caret a bit smaller and not overlapping subhead */
  .hero-scroll-caret { font-size: 22px; bottom: var(--s-5); right: var(--s-5); }

  /* Section vertical rhythm lighter on mobile */
  .section { padding-block: clamp(48px, 9vh, 96px); }

  /* Topic cards: stronger min-height for tap target */
  .topic-card { min-height: 140px; }

  /* Footer grid spacing */
  .footer { padding: var(--s-9) 0 var(--s-5); }
  .footer-grid { padding-bottom: var(--s-7); }

  /* 12-col grids (e.g. speaking appearances) collapse to single column on mobile.
     Inline `grid-column: span 6` is overridden so each card spans full width. */
  .grid-12 {
    grid-template-columns: 1fr;
    gap: var(--s-7);
  }
  .grid-12 > * {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 500px) {
  /* Nav brand text hidden below 500px — just the Triad. Prevents wrap. */
  .nav-brand-text {
    display: none;
  }

  /* Ensure mobile menu items have ample tap area */
  .nav-links.is-open .nav-link { padding-block: var(--s-2); }

  /* Hero subhead size dial */
  .hero-subhead { font-size: 15px; }

  /* Subhero title smaller on tiny phones */
  .subhero-title { font-size: clamp(36px, 11vw, 52px); }

  /* Coordinates label smaller on mobile so it doesn't overflow */
  .live-map-coords { font-size: 9px; padding: 3px 6px; }
  .live-map-label { font-size: 9px; padding: 3px 6px; }
}
