/* ============================================================
   THE REALITY INTERFACE — stylesheet
   Tokens: deep black / deep electric blue / muted gold / off-white
   ============================================================ */

:root{
  --bg:            #05060A;
  --bg-panel:      #0A0C14;
  --ink-blue-deep: #0E1638;
  --ink-blue:      #2E4BD9;
  --ink-blue-soft: rgba(46, 75, 217, 0.35);
  --gold:          #B8925A;
  --gold-soft:     rgba(184, 146, 90, 0.4);
  --text:          #F2F1EC;
  --text-dim:      #9A9CA8;
  --text-faint:    #5C6070;
  --hairline:      rgba(255,255,255,0.08);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'IBM Plex Mono', 'SFMono-Regular', monospace;

  --ease-slow: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-slow: 1.4s;
  --dur-med: 0.8s;

  --section-pad: clamp(5rem, 12vw, 10rem);
  --content-w: 1120px;
}

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

html{
  background: var(--bg);
}

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

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.skip-link{
  position: absolute;
  top: -60px; left: 1rem;
  background: var(--gold);
  color: #05060A;
  padding: 0.6rem 1rem;
  z-index: 1000;
  transition: top 0.3s var(--ease-slow);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.skip-link:focus{ top: 1rem; }

:focus-visible{
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

/* ---------- Cosmic background ---------- */
#cosmos{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.8;
}

.nebula{
  position: fixed;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 20% 15%, rgba(46,75,217,0.10), transparent 60%),
    radial-gradient(ellipse 50% 35% at 80% 70%, rgba(184,146,90,0.06), transparent 60%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(14,22,56,0.5), transparent 70%);
  animation: nebula-drift 60s ease-in-out infinite alternate;
}

@keyframes nebula-drift{
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(-1.5%, 1%, 0) scale(1.03); }
}

.grain{
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout helpers ---------- */
main, header, footer{ position: relative; z-index: 2; }

section{
  max-width: var(--content-w);
  margin: 0 auto;
  padding: var(--section-pad) 1.75rem;
  position: relative;
}

.eyebrow{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.25rem;
}

.section-heading{
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  letter-spacing: -0.01em;
  margin: 0 0 1.75rem;
  color: var(--text);
}

.divider{
  max-width: 320px;
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline), transparent);
}

/* reveal-on-scroll */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.65s var(--ease-slow), transform 0.65s var(--ease-slow);
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Header ---------- */
.site-header{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2.75rem 1.75rem 0;
  position: relative;
}

.brand{
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark{ display:block; }

.brand-word{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.status-pill{
  position: absolute;
  right: 1.75rem;
  top: 3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  border: 1px solid var(--hairline);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
}

.status-dot{
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold-soft);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse{
  0%, 100%{ opacity: 0.5; }
  50%{ opacity: 1; }
}

@media (max-width: 720px){
  .status-pill{ display: none; }
}

/* ---------- Hero ---------- */
.hero{
  min-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: clamp(3rem, 8vw, 6rem);
}

.hero .eyebrow{ animation: fade-in 1.4s var(--ease-slow) both; }

.hero-heading{
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.8rem, 9vw, 6.4rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  margin: 0 0 2rem;
  color: var(--text);
}

.hero-heading .line{
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: line-rise var(--dur-slow) var(--ease-slow) forwards;
}
.hero-heading .line:nth-child(1){ animation-delay: 0.15s; }
.hero-heading .line:nth-child(2){
  animation-delay: 0.4s;
  background: linear-gradient(100deg, var(--text) 40%, var(--gold) 65%, var(--ink-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@keyframes line-rise{
  to{ opacity: 1; transform: translateY(0); }
}

@keyframes fade-in{
  from{ opacity: 0; }
  to{ opacity: 1; }
}

.hero-subtitle{
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  color: var(--text-dim);
  letter-spacing: 0.02em;
  margin: 0 0 3.5rem;
  opacity: 0;
  animation: fade-in var(--dur-slow) var(--ease-slow) 0.9s forwards;
}

.hero-subtitle .dot{
  color: var(--gold);
  margin: 0 0.6em;
  opacity: 0.7;
}

.inquiry{
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text);
  min-height: 2.4em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  animation: fade-in var(--dur-slow) var(--ease-slow) 1.3s forwards;
}

.inquiry-label{
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-faint);
  text-transform: uppercase;
}

.inquiry-text{
  color: var(--text);
  transition: opacity 0.6s var(--ease-slow);
}
.inquiry-text.fading{ opacity: 0; }

.cursor{
  color: var(--gold);
  animation: blink 1.1s step-end infinite;
}

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

.scroll-cue{
  margin-top: 4.5rem;
  width: 1px;
  height: 46px;
  background: linear-gradient(var(--hairline), transparent);
  position: relative;
  opacity: 0;
  animation: fade-in var(--dur-slow) ease 2s forwards;
}
.scroll-cue span{
  position: absolute;
  top: 0; left: -1.5px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
  animation: cue-fall 2.6s ease-in-out infinite;
}
@keyframes cue-fall{
  0%{ top: 0; opacity: 0; }
  20%{ opacity: 1; }
  100%{ top: 40px; opacity: 0; }
}

/* ---------- Statement ---------- */
.statement{ text-align: center; max-width: 780px; }
.statement-text{
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.75;
  color: var(--text-dim);
}

/* ---------- Book (Featured Research Publication) ---------- */
.book-showcase{
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
  margin-top: 2.5rem;
}

.book-cover-col{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.pub-series-label{
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: center;
}

.book-cover-float{
  position: relative;
  width: 100%;
  max-width: 240px;
  perspective: 1000px;
  animation: book-float 6s ease-in-out infinite alternate;
}

@keyframes book-float{
  0%{ transform: translateY(0); }
  100%{ transform: translateY(-8px); }
}

.book-cover-glow{
  position: absolute;
  inset: -18%;
  z-index: -1;
  filter: blur(38px);
  opacity: 0.55;
  background:
    radial-gradient(circle at 28% 30%, rgba(46,75,217,0.4), transparent 62%),
    radial-gradient(circle at 74% 72%, rgba(184,146,90,0.32), transparent 60%);
  pointer-events: none;
  transition: opacity 0.6s ease, filter 0.6s ease, transform 0.6s ease;
}

.book-cover{
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  will-change: transform;
}

.book-cover-img{
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,0.75),
    -3px 0 16px -4px rgba(184,146,90,0.32),
     3px 0 18px -4px rgba(46,75,217,0.38);
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), box-shadow 0.5s ease;
}

/* Premium hover state — pure CSS, no JS required, so it can never
   silently fail to initialize: glow deepens, cover lifts slightly,
   rim light brightens on both edges. */
.book-cover-float:hover .book-cover-glow{
  opacity: 1;
  filter: blur(48px);
  transform: scale(1.1);
}

.book-cover-float:hover .book-cover-img{
  transform: translateY(-4px);
  box-shadow:
    0 38px 74px -18px rgba(0,0,0,0.8),
    -6px 0 30px -3px rgba(184,146,90,0.55),
     6px 0 34px -3px rgba(46,75,217,0.6);
}

@media (prefers-reduced-motion: reduce){
  .book-cover-glow, .book-cover-img{ transition: none; }
}

.book-cover-spine{
  position: absolute;
  left: -5px; top: 3%;
  width: 5px; height: 94%;
  background: linear-gradient(var(--bg-panel), var(--ink-blue-deep));
  transform: rotateY(90deg) translateZ(2px);
  transform-origin: right;
  opacity: 0.55;
  pointer-events: none;
}

.book-subtitle{
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin: 0 0 1rem;
}

.book-editions{
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 1.75rem;
}
.book-editions .dot{ color: var(--gold); margin: 0 0.5em; opacity: 0.6; }

.book-description{
  max-width: 46ch;
  margin: 0 0 1.75rem;
}
.book-description p{
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.8;
  margin: 0 0 0.9rem;
}
.book-description p:last-child{ margin-bottom: 0; }

.store-row{
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.store-btn{
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  background: rgba(255,255,255,0.02);
  transition: border-color 0.4s var(--ease-slow), background 0.4s var(--ease-slow), transform 0.4s var(--ease-slow);
}

.store-btn:hover{
  border-color: var(--gold-soft);
  background: rgba(184,146,90,0.06);
  transform: translateY(-2px);
}

.store-icon{
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold);
  width: 1.4em;
  text-align: center;
}

.pub-footnote{
  font-size: 0.75rem;
  font-style: italic;
  color: var(--text-faint);
  margin: 0;
}

/* ---- Why Read This Publication ---- */
.why-read{
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.subsection-heading{
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--text);
  text-align: center;
  margin: 0 0 2rem;
}

.why-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  text-align: left;
}

.why-card{
  background: var(--bg);
  padding: 2rem 1.6rem;
  transition: background 0.6s var(--ease-slow), box-shadow 0.6s var(--ease-slow);
}
.why-card:hover{
  background: var(--bg-panel);
  box-shadow: inset 0 0 0 1px rgba(184,146,90,0.12), 0 0 32px -12px rgba(46,75,217,0.25);
}
.why-card .area-icon{
  width: 28px;
  height: 28px;
  margin-bottom: 1.1rem;
}
.why-card p{
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 900px){
  .why-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .why-grid{ grid-template-columns: 1fr; }
}

/* ---- Recommended For ---- */
.recommended-for{
  margin-top: clamp(3rem, 6vw, 4rem);
  text-align: center;
}

.tag-row{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.reader-tag{
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  background: rgba(255,255,255,0.015);
  transition: border-color 0.4s var(--ease-slow), color 0.4s var(--ease-slow);
}
.reader-tag:hover{
  border-color: var(--gold-soft);
  color: var(--text);
}

@media (max-width: 820px){
  .book-showcase{ grid-template-columns: 1fr; text-align: center; }
  .book-description{ margin-left: auto; margin-right: auto; }
  .store-row{ justify-content: center; }
  .why-card{ text-align: center; }
  .why-card .area-icon{ margin-left: auto; margin-right: auto; }
}

@media (prefers-reduced-motion: reduce){
  .book-cover-float{ animation: none; }
}

/* ---------- Research Areas ---------- */
.areas{ text-align: center; }
.areas .section-heading{ }

.area-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  margin-top: 2.5rem;
  text-align: left;
}

.area-card{
  background: var(--bg);
  padding: 2.75rem 2rem;
  transition: background 0.5s var(--ease-slow);
  position: relative;
}

.area-card:hover{
  background: var(--bg-panel);
}

.area-card:hover .area-icon{
  color: var(--gold);
  transform: translateY(-2px);
}

.area-icon{
  color: var(--ink-blue);
  width: 34px;
  height: 34px;
  margin-bottom: 1.5rem;
  transition: color 0.5s var(--ease-slow), transform 0.5s var(--ease-slow);
}

.area-card h3{
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.2rem;
  margin: 0 0 0.6rem;
  color: var(--text);
}

.area-card p{
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 900px){
  .area-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px){
  .area-grid{ grid-template-columns: 1fr; }
}

/* ---------- Status ---------- */
.platform-status{ text-align: center; max-width: 720px; }
.status-text{
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.8;
  margin: 0 0 2.5rem;
}

.status-track{
  display: flex;
  justify-content: center;
  gap: 0.6rem;
}

.status-step{
  width: 34px; height: 3px;
  background: var(--hairline);
  border-radius: 2px;
}
.status-step.done{ background: var(--gold-soft); }
.status-step.active{
  background: var(--gold);
  animation: pulse 2.4s ease-in-out infinite;
}

/* ---------- Newsletter ---------- */
.newsletter{
  text-align: center;
  max-width: 560px;
}

.newsletter-copy{
  color: var(--text-dim);
  margin: 0 0 2.25rem;
}

.newsletter-form{
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Honeypot & hidden Brevo fields — hidden from sighted users AND assistive tech */
.hp-field,
.input--hidden{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.newsletter-field-group{
  display: flex;
  width: 100%;
}

.newsletter-form input[type="email"]{
  width: 100%;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--hairline);
  color: var(--text);
  padding: 0.9rem 1.1rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.newsletter-form input[type="email"]::placeholder{ color: var(--text-faint); }
.newsletter-form input[type="email"]:focus{
  outline: none;
  border-color: var(--gold-soft);
  box-shadow: 0 0 0 2px rgba(184, 146, 90, 0.15);
}

/* Consent Checkbox Row */
.newsletter-consent-row{
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  text-align: left;
}

.newsletter-consent-checkbox{
  margin-top: 0.2rem;
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 2px;
}

.newsletter-consent-checkbox:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.newsletter-consent-label{
  font-family: var(--font-body);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-dim);
  cursor: pointer;
  user-select: none;
}

.newsletter-privacy-link{
  color: var(--gold-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}
.newsletter-privacy-link:hover{
  color: var(--gold);
}

/* reCAPTCHA Centering & Responsive Scaling */
.newsletter-captcha-wrapper{
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0.25rem 0;
  min-height: 78px;
}

@media (max-width: 380px){
  .newsletter-captcha-wrapper{
    transform: scale(0.9);
    transform-origin: center top;
  }
}

.newsletter-submit-btn{
  width: 100%;
  padding: 0.95rem 1.6rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: filter 0.3s var(--ease-slow), transform 0.3s var(--ease-slow), border-color 0.3s var(--ease-slow);
}
.newsletter-submit-btn:disabled{
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.newsletter-feedback{
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold);
  min-height: 1.2em;
  line-height: 1.5;
}

/* ---------- Footer ---------- */
.site-footer{
  border-top: 1px solid var(--hairline);
  padding: 3.5rem 1.75rem 3rem;
}

.footer-inner{
  max-width: var(--content-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  text-align: center;
}

.footer-brand{
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.footer-note, .footer-copy{
  font-size: 0.78rem;
  color: var(--text-faint);
  margin: 0;
}

.footer-disclosure{
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--text-faint);
  opacity: 0.75;
  max-width: 480px;
  margin: 0.5rem 0 0.25rem;
}

.footer-links{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 0.25rem 0 0.15rem;
}

.footer-link{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover,
.footer-link:focus-visible{
  color: var(--gold);
  text-decoration: underline;
}

/* ---------- Responsive base ---------- */
@media (max-width: 480px){
  :root{ --section-pad: 4rem; }
  .hero{ min-height: 88vh; }
}

/* ============================================================
   SPLASH SCREEN — first-load preloader, duration set in script.js, then revealed
   Namespaced under .splash-* to avoid colliding with the
   main site's own tokens and classes.
   ============================================================ */

.splash{
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #060814;
  overflow: hidden;
  transform-origin: center center;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}

.splash.is-leaving{
  opacity: 0;
  transform: scale(0.94);
  pointer-events: none;
}

.splash.is-gone{
  display: none;
}

#splash-particles{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.splash-mesh{
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 40% at 18% 20%, rgba(79,124,255,0.16), transparent 60%),
    radial-gradient(ellipse 50% 45% at 85% 15%, rgba(139,92,246,0.14), transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% 95%, rgba(34,211,238,0.10), transparent 65%),
    linear-gradient(180deg, #060814 0%, #080B1C 60%, #05070F 100%);
}

.splash-blob{
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.5;
}
.splash-blob-a{
  width: 42vw; height: 42vw;
  top: -12vw; left: -10vw;
  background: radial-gradient(circle, rgba(79,124,255,0.5), transparent 70%);
  animation: splash-float-a 14s ease-in-out infinite;
}
.splash-blob-b{
  width: 36vw; height: 36vw;
  bottom: -14vw; right: -8vw;
  background: radial-gradient(circle, rgba(139,92,246,0.45), transparent 70%);
  animation: splash-float-b 16s ease-in-out infinite;
}
@keyframes splash-float-a{
  0%, 100%{ transform: translate(0,0); }
  50%{ transform: translate(3vw, 3vw); }
}
@keyframes splash-float-b{
  0%, 100%{ transform: translate(0,0); }
  50%{ transform: translate(-3vw, -3vw); }
}

.splash-inner{
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  max-width: 32rem;
  opacity: 0;
  transform: translateY(14px);
  animation: splash-in 0.9s cubic-bezier(0.16,1,0.3,1) 0.15s forwards;
}

@keyframes splash-in{
  to{ opacity: 1; transform: translateY(0); }
}

.splash-logo{
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}

.splash-wordmark{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

.splash-badge{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 22px rgba(139,92,246,0.12);
  margin-bottom: 2rem;
}
.splash-badge-dot{
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22D3EE;
  box-shadow: 0 0 10px #22D3EE, 0 0 20px rgba(34,211,238,0.6);
  animation: splash-dot-pulse 2.4s ease-in-out infinite;
}
@keyframes splash-dot-pulse{
  0%, 100%{ opacity: 0.5; transform: scale(0.85); }
  50%{ opacity: 1; transform: scale(1.15); }
}

.splash-heading{
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  line-height: 1.15;
  color: #fff;
  margin: 0 0 0.9rem;
}

.splash-subtitle{
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: clamp(0.9rem, 1.6vw, 1.02rem);
  color: rgba(255,255,255,0.55);
  margin: 0 0 2.5rem;
}

.splash-countdown{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03) inset,
    0 0 34px rgba(79,124,255,0.18);
  margin-bottom: 1.25rem;
}

.splash-count-num{
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 2.6rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #fff 20%, #22D3EE 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.splash-count-num.tick{
  animation: splash-tick 0.5s cubic-bezier(0.16,1,0.3,1);
}
@keyframes splash-tick{
  0%{ transform: scale(1.35); opacity: 0; }
  60%{ transform: scale(0.96); opacity: 1; }
  100%{ transform: scale(1); opacity: 1; }
}

.splash-hint{
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin: 0;
}

@media (prefers-reduced-motion: reduce){
  .splash, .splash-inner, .splash-count-num.tick, .splash-blob{
    animation-duration: 0.01ms !important;
  }
}

@media (max-width: 480px){
  .splash-countdown{ width: 88px; height: 88px; }
  .splash-count-num{ font-size: 2.1rem; }
}

/* ============================================================
   MAIN SITE reveal state
   Present in the DOM throughout so layout is ready before the
   splash finishes — the reveal is opacity/transform only, no
   layout shift, no re-render, no reload.
   ============================================================ */

.site-content{
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1);
}

.site-content.is-visible{
  opacity: 1;
}

/* while the splash is up, keep the main site out of the tab
   order and prevent scrolling underneath it */
.site-content[aria-hidden="true"]{
  pointer-events: none;
}

body.splash-active{
  overflow: hidden;
  height: 100vh;
}

/* ============================================================
   CURSOR GLOW — Apple-inspired ambient light
   Dual-color (electric blue + muted gold), ~15% intensity,
   soft blur, feathered edges, no visible circle outline.
   ============================================================ */

.cursor-glow{
  position: fixed;
  top: 0;
  left: 0;
  width: clamp(120px, 12vw, 180px);
  height: clamp(120px, 12vw, 180px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  filter: blur(34px);
  mix-blend-mode: screen;
  background: radial-gradient(
    circle at 35% 35%,
    rgba(91, 124, 250, 0.55) 0%,
    rgba(91, 124, 250, 0.22) 32%,
    rgba(184, 146, 90, 0.26) 58%,
    transparent 74%
  );
  transition: opacity 0.6s ease;
  will-change: transform, opacity;
}

.cursor-glow.is-active{ opacity: 0.15; }
.cursor-glow.is-idle{ opacity: 0.03; }

@media (max-width: 720px){
  .cursor-glow{ display: none; }
}

/* ============================================================
   PHASE 2 & 3 — Reveal screen + "Question everything" sequence
   ============================================================ */

.reveal-screen{
  position: fixed;
  inset: 0;
  z-index: 998;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1);
}

.reveal-screen.is-visible{
  opacity: 1;
  pointer-events: all;
}

.reveal-screen.is-gone{
  display: none;
}

.reveal-mesh{
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 45% 35% at 50% 40%, rgba(91,124,250,0.10), transparent 65%),
    radial-gradient(ellipse 40% 30% at 30% 70%, rgba(184,146,90,0.06), transparent 65%);
}

.reveal-text{
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: nowrap;
  padding: 0 1.5rem;
  font-family: -apple-system, 'SF Pro Display', 'Inter', 'Neue Haas Grotesk', sans-serif;
  font-weight: 800;
  color: #ffffff;
  font-size: clamp(2.2rem, 8vw, 6.2rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-align: center;
}

.reveal-word{
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  max-width: 1200px;
  transition: max-width 0.6s cubic-bezier(0.65,0,0.35,1), opacity 0.6s ease, margin 0.6s ease;
  opacity: 1;
}

#word-question{ margin-right: 0.32em; }

.reveal-word.erase{
  max-width: 0;
  opacity: 0;
  margin-right: 0;
}

.reveal-word.fade-out{
  opacity: 0;
  transition: opacity 0.6s ease;
}

.type-caret{
  display: inline-block;
  margin-left: 0.06em;
  color: #ffffff;
  font-weight: 300;
  animation: reveal-blink 0.9s step-end infinite;
}
.type-caret.is-hidden{ opacity: 0; animation: none; }

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

@media (prefers-reduced-motion: reduce){
  .reveal-screen, .reveal-word, .type-caret{
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ============================================================
   Custom loading cursor — Phase 3 only. Small dot + spinner +
   soft dual-color glow, ~15% intensity, follows the pointer
   with gentle easing.
   ============================================================ */

body.cursor-loading,
body.cursor-loading *{
  cursor: none !important;
}

.loading-cursor{
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
}

.loading-cursor.is-active{ opacity: 1; }

.lc-glow{
  position: absolute;
  top: -45px; left: -45px;
  width: 90px; height: 90px;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.15;
  background: radial-gradient(
    circle at 35% 35%,
    rgba(91,124,250,0.6) 0%,
    rgba(184,146,90,0.32) 55%,
    transparent 75%
  );
}

.lc-spinner{
  position: absolute;
  top: -15px; left: -15px;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.14);
  border-top-color: rgba(180,196,255,0.85);
  animation: lc-spin 0.9s linear infinite;
}

@keyframes lc-spin{
  to{ transform: rotate(360deg); }
}

.lc-dot{
  position: absolute;
  top: -3px; left: -3px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255,255,255,0.5);
}

@media (hover: none), (prefers-reduced-motion: reduce){
  .loading-cursor{ display: none; }
  body.cursor-loading, body.cursor-loading *{ cursor: auto !important; }
}

/* ============================================================
   Splash headline — shimmering gold + electric blue sparkle
   ============================================================ */

.splash-heading{
  position: relative;
  display: inline-block;
}

.splash-heading-shine{
  background: linear-gradient(
    100deg,
    #E8C077 0%,
    #FFF6DD 14%,
    #B8925A 26%,
    #6E9BFF 42%,
    #BFD4FF 52%,
    #6E9BFF 62%,
    #B8925A 78%,
    #FFF6DD 90%,
    #E8C077 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: splash-shimmer 5s linear infinite;
  filter: drop-shadow(0 0 18px rgba(184,146,90,0.25)) drop-shadow(0 0 26px rgba(110,155,255,0.15));
}

@keyframes splash-shimmer{
  0%{ background-position: 0% 50%; }
  100%{ background-position: 300% 50%; }
}

.spark{
  position: absolute;
  font-size: 0.9rem;
  line-height: 1;
  color: #E8C077;
  opacity: 0;
  pointer-events: none;
  animation: spark-twinkle 3.2s ease-in-out infinite;
  text-shadow: 0 0 8px rgba(232,192,119,0.8), 0 0 14px rgba(110,155,255,0.35);
}

.spark-1{ top: -0.6em; left: 4%;    color: #E8C077; animation-delay: 0s;    font-size: 0.7rem; }
.spark-2{ top: 0.3em;  left: 98%;   color: #8FB4FF; animation-delay: 0.7s; font-size: 1.05rem; }
.spark-3{ top: 1.9em;  left: 14%;   color: #E8C077; animation-delay: 1.4s; font-size: 0.6rem; }
.spark-4{ top: -0.9em; left: 62%;   color: #8FB4FF; animation-delay: 2s;   font-size: 0.85rem; }
.spark-5{ top: 2.2em;  left: 88%;   color: #E8C077; animation-delay: 0.4s; font-size: 0.7rem; }
.spark-6{ top: 0.8em;  left: -1.2em; color: #8FB4FF; animation-delay: 1.9s; font-size: 0.65rem; }

@keyframes spark-twinkle{
  0%, 100%{ opacity: 0; transform: scale(0.6); }
  50%{ opacity: 1; transform: scale(1.15); }
}

@media (prefers-reduced-motion: reduce){
  .splash-heading-shine{ animation: none; background-position: 40% 50%; }
  .spark{ animation: none; opacity: 0.6; }
}

@media (max-width: 480px){
  .spark{ display: none; } /* keep small screens clean and uncluttered */
}

/* ============================================================
   Reveal screen — light, mild twinkling starfield behind the
   "Question everything" text
   ============================================================ */

#reveal-stars{
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

/* ---------- Footer credit line ---------- */
.footer-credit{
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  margin: 0.35rem 0 0;
}

/* ============================================================
   LIVING RESEARCH ENVIRONMENT
   Atmospheric layers added on top of the existing, approved
   design. Nothing here touches layout, typography, or spacing —
   these are background/ambient elements only.
   ============================================================ */

/* ---- Section 6: Ambient Light Engine ---- */
.ambient-light{
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: soft-light;
  animation: ambient-cycle 60s ease-in-out infinite;
}

@keyframes ambient-cycle{
  0%   { background-color: rgba(184,146,90,0.12); }   /* muted gold */
  33%  { background-color: rgba(46,75,217,0.12); }     /* deep electric blue */
  66%  { background-color: rgba(255,255,255,0.02); }   /* neutral */
  100% { background-color: rgba(184,146,90,0.12); }
}

/* ---- Section 5: Living Background Grid ---- */
.living-grid{
  position: fixed;
  inset: -60px 0 0 -60px;
  width: calc(100% + 60px);
  height: calc(100% + 60px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image:
    linear-gradient(rgba(255,255,255,0.7) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.7) 1px, transparent 1px);
  background-size: 60px 60px;
  will-change: transform;
  animation: grid-drift 120s linear infinite;
}

@keyframes grid-drift{
  0%   { transform: translate(0, 0); }
  100% { transform: translate(-60px, -60px); } /* exactly one cell — seamless loop, ~0.5px/sec */
}

/* ---- Section 5: occasional faint research lines ---- */
.research-lines{
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.r-line{
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(184,146,90,0.5), transparent);
  opacity: 0;
}

.rl-1{ top: 18%; left: 8%;  width: 22vw; height: 1px; animation: line-ignite 19s ease-in-out infinite; animation-delay: 1s; }
.rl-2{ top: 62%; left: 55%; width: 16vw; height: 1px; animation: line-ignite 24s ease-in-out infinite; animation-delay: 6s;
       background: linear-gradient(90deg, transparent, rgba(91,124,250,0.45), transparent); }
.rl-3{ top: 34%; left: 70%; width: 1px; height: 14vh; animation: line-ignite 27s ease-in-out infinite; animation-delay: 11s; }
.rl-4{ top: 80%; left: 20%; width: 18vw; height: 1px; animation: line-ignite 21s ease-in-out infinite; animation-delay: 3s;
       background: linear-gradient(90deg, transparent, rgba(91,124,250,0.4), transparent); }
.rl-5{ top: 8%;  left: 45%; width: 1px; height: 10vh; animation: line-ignite 31s ease-in-out infinite; animation-delay: 15s; }

@keyframes line-ignite{
  0%, 92%, 100%{ opacity: 0; }
  95%{ opacity: 0.08; }
}

/* ---- Section 2: neural network canvas ---- */
#network-canvas{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ---- Section 7: mathematical presence, faint symbols behind hero text ---- */
.math-symbols{
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.math-sym{
  position: absolute;
  font-family: var(--font-display);
  color: var(--text);
  opacity: 0;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.sym-1{ top: 12%; left: 10%; font-size: 3.2rem; animation: sym-drift-a 48s infinite; animation-delay: 0s; }
.sym-2{ top: 68%; left: 16%; font-size: 2.2rem; animation: sym-drift-b 57s infinite; animation-delay: 6s; }
.sym-3{ top: 22%; left: 82%; font-size: 2.6rem; animation: sym-drift-a 63s infinite; animation-delay: 12s; }
.sym-4{ top: 78%; left: 78%; font-size: 3.6rem; animation: sym-drift-b 52s infinite; animation-delay: 3s; }
.sym-5{ top: 46%; left: 6%;  font-size: 2rem;   animation: sym-drift-a 69s infinite; animation-delay: 20s; }
.sym-6{ top: 8%;  left: 60%; font-size: 2.4rem; animation: sym-drift-b 58s infinite; animation-delay: 26s; }
.sym-7{ top: 85%; left: 44%; font-size: 2.1rem; animation: sym-drift-a 66s infinite; animation-delay: 9s; }

@keyframes sym-drift-a{
  0%, 100%{ opacity: 0; transform: translate(0,0); }
  50%{ opacity: 0.035; transform: translate(6px, -8px); }
}
@keyframes sym-drift-b{
  0%, 100%{ opacity: 0; transform: translate(0,0); }
  50%{ opacity: 0.03; transform: translate(-7px, 6px); }
}

@media (prefers-reduced-motion: reduce){
  .ambient-light, .living-grid, .r-line, .math-sym{
    animation: none !important;
  }
  .living-grid{ opacity: 0.02; }
  .r-line{ opacity: 0; }
  .math-sym{ opacity: 0.02; }
}

@media (max-width: 720px){
  /* keep small screens calm — atmosphere layers stay, fine detail drops */
  .math-symbols{ display: none; }
  .research-lines{ display: none; }
}

/* ============================================================
   Section 4 — Institution Status Indicator
   ============================================================ */

.institute-status{
  padding-top: 0;
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.status-grid{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 2rem 0;
}

.status-item{
  flex: 1 1 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border-left: 1px solid var(--hairline);
  transition: background 0.6s var(--ease-slow);
}
.status-item:first-child{ border-left: none; }
.status-item:hover{ background: rgba(184,146,90,0.03); }

.status-value{
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--gold);
}

.status-label{
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: center;
}

@media (max-width: 640px){
  .status-item{ border-left: none; border-top: 1px solid var(--hairline); flex: 1 1 45%; }
  .status-item:first-child{ border-top: none; }
}

/* ============================================================
   Section 9 — Featured Book heading kept modest in scale
   (cover sizing now lives in the main Book block above)
   ============================================================ */

.book .section-heading{
  font-size: clamp(1.6rem, 2.9vw, 2.3rem);
}

/* ============================================================
   Section 10 — institutional closing statement
   ============================================================ */

.institute-close{
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  padding-top: clamp(3.5rem, 8vw, 6rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.close-quote{
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  color: var(--text-dim);
  margin: 0 0 2.5rem;
  line-height: 1.6;
}

.close-wordmark{
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.32em;
  color: var(--text);
  margin: 0 0 0.75rem;
}

.close-tagline{
  font-family: var(--font-body);
  font-weight: 300;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.01em;
  margin: 0 0 1.75rem;
}

.close-fields{
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}
.close-fields .dot{
  color: var(--gold);
  margin: 0 0.55em;
  opacity: 0.6;
}

/* ============================================================
   Section 11 — micro-interaction polish (subtle, no bounce)
   ============================================================ */

.area-card:hover{
  box-shadow: inset 0 0 0 1px rgba(184,146,90,0.12), 0 0 32px -12px rgba(46,75,217,0.25);
}

.store-btn:active,
.newsletter-form button:active{
  transform: translateY(0) scale(0.98);
}

.status-item{ cursor: default; }

/* ============================================================
   AMBIENT PORTRAIT — fixed, right-margin, blended/transparent,
   shows the COMPLETE portrait (no cropping — sized by its own
   aspect ratio, not stretched or cover-cropped to fill a box).
   Width is CALCULATED directly from the real available margin
   — (100vw - content column - safety buffer) / 2 — rather than
   guessed fixed breakpoints, so it always sizes correctly to
   whatever space genuinely exists at any viewport width, with
   no per-screen guessing. Below ~1300px there isn't enough
   margin for anything meaningful next to the 1120px content
   column, so it's hidden entirely there.
   Vertically centered, well clear of the header at any
   reasonable viewport height.
   Gated behind min-width so browsers skip fetching the image
   below that width — no cost to laptop/tablet/mobile visitors.
   ============================================================ */

.ambient-portrait{
  display: none;
  pointer-events: none;
}

@media (min-width: 1300px){
  .ambient-portrait{
    display: block;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    right: 16px;
    /* (available margin beyond the 1120px content column) minus a
       32px safety buffer, floored at 60px, capped at 300px */
    width: clamp(60px, calc((100vw - 1120px) / 2 - 32px), 300px);
    aspect-ratio: 1124 / 1360;   /* matches the source portrait exactly — whole image, no crop */
    z-index: 1;
    opacity: 0.42;
    background-image: url('assets/portrait-ambient.webp');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    /* soft fade at all edges so it blends into the page rather
       than reading as a pasted-on rectangle */
    -webkit-mask-image: linear-gradient(
      to bottom, transparent 0%, black 14%, black 86%, transparent 100%
    );
    mask-image: linear-gradient(
      to bottom, transparent 0%, black 14%, black 86%, transparent 100%
    );
  }
}

/* comfortably clear of the reveal-screen text (z-index 998) and
   splash (999) since those sit above everything during the intro */

/* ============================================================
   ABOUT US
   ============================================================ */

.about{
  max-width: 780px;
}

.about-text p{
  font-size: 1.02rem;
  color: var(--text-dim);
  line-height: 1.85;
  margin: 0 0 1.25rem;
}
.about-text p:last-child{ margin-bottom: 0; }

.about-author{
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  margin-top: clamp(3rem, 6vw, 4rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--hairline);
}

.author-photo{
  width: 100%;
  max-width: 180px;
  aspect-ratio: 640 / 774;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow: 0 24px 50px -20px rgba(0,0,0,0.6);
}

.author-photo img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-eyebrow{
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.6rem;
}

.author-name{
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--text);
  margin: 0 0 0.9rem;
}

.author-bio{
  font-size: 0.94rem;
  color: var(--text-dim);
  line-height: 1.75;
  margin: 0 0 1.25rem;
  max-width: 52ch;
}
.author-bio p{
  margin: 0 0 1rem;
}
.author-bio p:last-child{ margin-bottom: 0; }
.author-bio em{ color: var(--text); font-style: italic; }

.author-portfolio-link{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-soft);
  padding-bottom: 0.2rem;
  transition: border-color 0.4s var(--ease-slow), color 0.4s var(--ease-slow), gap 0.3s var(--ease-slow);
}
.author-portfolio-link:hover{
  color: var(--gold);
  border-color: var(--gold);
  gap: 0.7rem;
}

@media (max-width: 640px){
  .about-author{
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .author-bio{ margin-left: auto; margin-right: auto; }
}

/* ============================================================
   THREE-PUBLICATION RESPONSIVE GRID LAYOUT
   Desktop: three publication cards in one balanced row with
   hairline dividers between them.
   Tablet: two-column top row with centered third publication.
   Mobile: clean single-column stacked layout with full-width cards.
   ============================================================ */

.publications-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(3rem, 6vw, 4.5rem);
  margin-top: 2.5rem;
}

/* Tablet (768px - 1059px): 2 columns + centered 3rd publication */
@media (min-width: 768px) and (max-width: 1059px){
  .publications-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2rem;
    align-items: start;
  }
  .publications-grid .publication:nth-child(2){
    border-left: 1px solid var(--hairline);
    padding-left: 2rem;
  }
  .publications-grid .publication:nth-child(3){
    grid-column: 1 / -1;
    max-width: 520px;
    margin: 1rem auto 0;
    width: 100%;
    border-top: 1px solid var(--hairline);
    padding-top: 2.5rem;
  }
}

/* Desktop (>= 1060px): 3 equal columns in one row */
@media (min-width: 1060px){
  .publications-grid{
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.75rem, 2.2vw, 2.5rem);
    align-items: start;
  }
  .publications-grid .publication:nth-child(2),
  .publications-grid .publication:nth-child(3){
    border-left: 1px solid var(--hairline);
    padding-left: clamp(1.75rem, 2.2vw, 2.5rem);
  }
}

.publication .book-showcase{
  grid-template-columns: 1fr;
  margin-top: 0;
  justify-items: center;
  text-align: center;
}

.publication .book-copy{
  text-align: left;
  max-width: 440px;
  margin: 0 auto;
}

.pub-title{
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  color: var(--text);
  margin: 0 0 0.6rem;
  line-height: 1.25;
}

@media (max-width: 767px){
  .publication{
    padding-bottom: clamp(2rem, 5vw, 3rem);
    border-bottom: 1px solid var(--hairline);
  }
  .publication:last-child{
    padding-bottom: 0;
    border-bottom: none;
  }
}

/* Purchase Channels & Categories */
.purchase-channels{
  margin: 1.25rem 0 1rem;
}

.purchase-category{
  margin-bottom: 1.1rem;
}
.purchase-category:last-child{
  margin-bottom: 0.5rem;
}

.purchase-category-label{
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

/* Publication Details (Why Read This Publication & Recommended For) */
.pub-details{
  margin: 1.25rem 0 1.5rem;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.4s var(--ease-slow), background 0.4s var(--ease-slow);
}

.pub-details:hover,
.pub-details[open]{
  border-color: rgba(184, 146, 90, 0.35);
  background: rgba(255, 255, 255, 0.025);
}

.pub-details-summary{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-soft);
  user-select: none;
  list-style: none;
}

.pub-details-summary::-webkit-details-marker{
  display: none;
}

.pub-details-arrow{
  font-size: 0.85rem;
  color: var(--gold);
  transition: transform 0.3s ease;
}

.pub-details[open] .pub-details-arrow{
  transform: rotate(180deg);
}

.pub-details-body{
  padding: 0.4rem 1rem 1rem;
  border-top: 1px solid var(--hairline);
}

.pub-subheading{
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--text);
  margin: 0.85rem 0 0.5rem;
  letter-spacing: 0.02em;
}

.pub-benefits-list{
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pub-benefits-list li{
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-dim);
}

.pub-benefits-list li::before{
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold-soft);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.pub-tag-row{
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.pub-tag-row .reader-tag{
  font-size: 0.64rem;
  padding: 0.35rem 0.7rem;
}

/* ============================================================
   HERO — new tagline line and CTA pair (added, hero heading/
   subtitle/inquiry rotator/scroll-cue all left untouched)
   ============================================================ */

.hero-tagline{
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 1.6vw, 0.92rem);
  letter-spacing: 0.06em;
  color: var(--gold);
  margin: 0 0 2rem;
  opacity: 0;
  animation: fade-in var(--dur-slow) var(--ease-slow) 0.7s forwards;
}

.hero-ctas{
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2.5rem;
  opacity: 0;
  animation: fade-in var(--dur-slow) var(--ease-slow) 1.5s forwards;
}

.hero-cta-primary,
.hero-cta-secondary{
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.6rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.35s var(--ease-slow), filter 0.35s var(--ease-slow), border-color 0.35s var(--ease-slow), background 0.35s var(--ease-slow);
}

.hero-cta-primary{
  background: var(--gold);
  color: #0A0904;
  font-weight: 500;
}
.hero-cta-primary:hover{ filter: brightness(1.1); transform: translateY(-2px); }

.hero-cta-secondary{
  border: 1px solid var(--hairline);
  color: var(--text);
  background: rgba(255,255,255,0.02);
}
.hero-cta-secondary:hover{ border-color: var(--gold-soft); transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce){
  .hero-tagline, .hero-ctas{ animation: none; opacity: 1; }
}

/* ============================================================
   APPLIED INTELLIGENCE
   ============================================================ */

.applied-intro{
  max-width: 680px;
  margin: 0 auto 2rem;
  text-align: center;
  color: var(--text-dim);
  line-height: 1.8;
}

.capability-flow{
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 2.5rem;
}
.capability-flow span{ color: var(--gold); margin: 0 0.5em; }

.capability-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  text-align: left;
}

.capability-card{
  position: relative;
  background: var(--bg);
  padding: 2.5rem 2rem;
  transition: background 0.6s var(--ease-slow);
}
.capability-card:hover{ background: var(--bg-panel); }

.capability-index{
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 1rem;
}

.capability-card .area-icon{
  width: 30px;
  height: 30px;
  margin-bottom: 1rem;
  color: var(--ink-blue);
}
.capability-card:hover .area-icon{ color: var(--gold); }

.capability-card h3{
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--text);
  margin: 0 0 0.6rem;
}

.capability-card p{
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.65;
  margin: 0 0 0.9rem;
}

.capability-tags{
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.03em;
  color: var(--text-faint);
  line-height: 1.7;
}
.capability-tags .dot{ color: var(--gold); margin: 0 0.4em; opacity: 0.6; }

.applied-footnote{
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-faint);
  font-style: italic;
  margin: 2.5rem 0 0;
}

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

/* ============================================================
   SELECTED WORK
   ============================================================ */

.selected-work-intro{
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-align: center;
  color: var(--text-dim);
  line-height: 1.8;
}

.selected-work-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}

.work-card{
  background: var(--bg);
  padding: 2.25rem 1.6rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: background 0.6s var(--ease-slow);
}
.work-card:hover{ background: var(--bg-panel); }

.work-card h3{
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--text);
  margin: 0 0 0.75rem;
}

.work-card p{
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0 0 1.25rem;
  flex-grow: 1;
}

.work-card-link{
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-soft);
  padding-bottom: 0.15rem;
  transition: gap 0.3s var(--ease-slow), border-color 0.3s var(--ease-slow);
}
.work-card-link:hover{ border-color: var(--gold); }

@media (max-width: 900px){
  .selected-work-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .selected-work-grid{ grid-template-columns: 1fr; }
}

/* ============================================================
   CONNECT & COLLABORATE
   ============================================================ */

.connect-intro{
  text-align: center;
  color: var(--text-dim);
  margin: 0 0 2.5rem;
}

.connect-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 820px){
  .connect-grid{
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: start;
  }
}

.connect-panel{
  padding: 2.25rem;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: rgba(255,255,255,0.015);
}

.connect-panel-primary{
  border-color: var(--gold-soft);
  background: rgba(184,146,90,0.03);
}

.connect-panel-title{
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--text);
  margin: 0 0 0.75rem;
}

.connect-panel-copy{
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin: 0 0 1.5rem;
}

/* Primary CTA — visually dominant, matches hero-cta-primary treatment */
.connect-cta-primary{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.95rem 1.6rem;
  background: var(--gold);
  color: #0A0904;
  border: none;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: filter 0.3s var(--ease-slow), transform 0.3s var(--ease-slow);
}
.connect-cta-primary:hover{ filter: brightness(1.1); transform: translateY(-1px); }

/* Secondary CTA — elegant, deliberately less dominant than primary */
.connect-cta-secondary{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color 0.3s var(--ease-slow), color 0.3s var(--ease-slow);
}
.connect-cta-secondary:hover{ border-color: var(--gold-soft); color: var(--gold); }

.enquiry-form-panel{
  margin-top: 1.5rem;
  overflow: hidden;
  animation: enquiry-reveal 0.5s var(--ease-slow);
}

@keyframes enquiry-reveal{
  from{ opacity: 0; transform: translateY(-8px); }
  to{ opacity: 1; transform: translateY(0); }
}

.enquiry-form{
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row{
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-row label{
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.form-row input,
.form-row select,
.form-row textarea{
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--hairline);
  color: var(--text);
  padding: 0.8rem 1rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  resize: vertical;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus{
  outline: none;
  border-color: var(--gold-soft);
}
.form-row select{
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23B8925A' stroke-width='1.4' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.2rem;
}
.form-row select option{ background: var(--bg-panel); color: var(--text); }

.enquiry-feedback{
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold);
  min-height: 1.2em;
}

@media (prefers-reduced-motion: reduce){
  .enquiry-form-panel{ animation: none; }
}

/* ============================================================
   LEGAL & PRIVACY POLICY PAGE STYLES
   Namespaced under .legal-* to avoid colliding with main site styles
   ============================================================ */

.legal-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 6, 10, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hairline);
  padding: 1.15rem 1.75rem;
}

.legal-header-inner{
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.legal-brand{
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.legal-brand:hover{
  opacity: 0.85;
}

.legal-back-link{
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--gold-soft);
  border-radius: 2px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.legal-back-link:hover{
  background: rgba(184, 146, 90, 0.1);
  border-color: var(--gold);
  transform: translateX(-2px);
}

.legal-main{
  flex: 1 0 auto;
  padding: 3.5rem 1.5rem 6rem;
}

.legal-container{
  max-width: 840px;
  margin: 0 auto;
}

.legal-badge{
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.legal-title{
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  margin: 0.5rem 0 1.25rem;
  letter-spacing: -0.01em;
}

.legal-intro{
  font-size: 1.12rem;
  line-height: 1.7;
  color: #D2D4DC;
  margin-bottom: 2rem;
}

.legal-meta-bar{
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  background: var(--bg-panel);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 1.1rem 1.5rem;
  margin-bottom: 2.75rem;
}

.legal-meta-item{
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.legal-meta-label{
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.legal-meta-value{
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text);
}

.legal-toc{
  background: var(--bg-panel);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 1.75rem;
  margin-bottom: 3.5rem;
}

.legal-toc-title{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--hairline);
}

.legal-toc-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0.65rem 1.75rem;
}

.legal-toc-link{
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--text-dim);
  text-decoration: none;
  line-height: 1.45;
  transition: color 0.2s ease, transform 0.2s ease;
}

.legal-toc-link:hover{
  color: var(--gold);
  transform: translateX(2px);
}

.legal-toc-link .toc-num{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold);
  flex-shrink: 0;
}

.legal-section{
  margin-top: 4.25rem;
  margin-bottom: 2.75rem;
  scroll-margin-top: 5.5rem;
}

.legal-section h2{
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 400;
  color: var(--text);
  margin: 0 0 1.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  line-height: 1.3;
}

.legal-section h2 .sec-num{
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--gold);
  flex-shrink: 0;
}

.legal-section h3{
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 400;
  color: #FFFFFF;
  margin: 1.9rem 0 0.75rem;
  line-height: 1.4;
}

.legal-section p{
  font-size: 0.98rem;
  line-height: 1.74;
  color: #D2D4DC;
  margin: 0 0 1rem;
}

.legal-section ul,
.legal-section ol{
  color: #D2D4DC;
  line-height: 1.75;
  padding-left: 1.4rem;
  margin: 0 0 1.25rem;
}

.legal-section li{
  margin-bottom: 0.55rem;
  line-height: 1.72;
}

.legal-section strong{
  color: var(--text);
  font-weight: 500;
}

.legal-callout{
  background: rgba(184, 146, 90, 0.05);
  border-left: 2px solid var(--gold);
  padding: 1.15rem 1.35rem;
  margin: 1.5rem 0;
  border-radius: 0 4px 4px 0;
}

.legal-callout p:last-child{
  margin-bottom: 0;
}

.legal-callout-info{
  background: rgba(46, 75, 217, 0.07);
  border-left: 2px solid var(--ink-blue);
  padding: 1.15rem 1.35rem;
  margin: 1.5rem 0;
  border-radius: 0 4px 4px 0;
}

.legal-callout-info p:last-child{
  margin-bottom: 0;
}

.legal-table-wrapper{
  overflow-x: auto;
  margin: 1.75rem 0;
  border: 1px solid var(--hairline);
  border-radius: 4px;
}

.legal-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.legal-table th{
  background: var(--bg-panel);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--hairline);
}

.legal-table td{
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--hairline);
  color: #D2D4DC;
  vertical-align: top;
  line-height: 1.6;
}

.legal-table tr:last-child td{
  border-bottom: none;
}

.badge-active{
  display: inline-block;
  background: rgba(46, 75, 217, 0.2);
  color: #8FA2FF;
  padding: 0.18rem 0.5rem;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(46, 75, 217, 0.35);
  white-space: nowrap;
}

.badge-planned,
.badge-pending{
  display: inline-block;
  background: rgba(184, 146, 90, 0.15);
  color: #E8CBA5;
  padding: 0.18rem 0.5rem;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(184, 146, 90, 0.3);
  white-space: nowrap;
}

.badge-inactive{
  display: inline-block;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-faint);
  padding: 0.18rem 0.5rem;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--hairline);
  white-space: nowrap;
}

.legal-contact-card{
  background: var(--bg-panel);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 2rem;
  margin: 2.25rem 0 1.5rem;
}

.legal-contact-card h3{
  margin-top: 0;
  color: var(--text);
}

.legal-contact-card a{
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-soft);
  transition: border-color 0.2s ease;
}

.legal-contact-card a:hover{
  border-color: var(--gold);
}

.legal-back-top{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  width: 100%;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-back-top:hover{
  color: var(--gold);
}

@media (max-width: 768px){
  .legal-main{
    padding: 2.5rem 1.25rem 4.5rem;
  }
  .legal-toc-list{
    grid-template-columns: 1fr;
  }
  .legal-meta-bar{
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  .legal-contact-card{
    padding: 1.25rem;
  }
}

@media (max-width: 680px){
  .legal-table-wrapper{
    border: none;
    overflow-x: visible;
    margin: 1.25rem 0;
  }
  .legal-table,
  .legal-table thead,
  .legal-table tbody,
  .legal-table tr,
  .legal-table th,
  .legal-table td{
    display: block;
    width: 100%;
  }
  .legal-table thead{
    display: none;
  }
  .legal-table tr{
    background: var(--bg-panel);
    border: 1px solid var(--hairline);
    border-radius: 4px;
    margin-bottom: 1.15rem;
    padding: 1.15rem 1.25rem;
  }
  .legal-table td{
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .legal-table td:last-child{
    border-bottom: none;
    padding-bottom: 0;
  }
  .legal-table td::before{
    content: attr(data-label);
    display: block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.2rem;
  }
}

@media (max-width: 480px){
  .legal-header{
    padding: 0.9rem 1rem;
  }
  .legal-title{
    font-size: 2.1rem;
  }
  .legal-intro{
    font-size: 1rem;
  }
  .legal-section h2{
    font-size: 1.35rem;
    flex-direction: column;
    gap: 0.25rem;
  }
}
