/* ============================================================
   LAYOUT.CSS — Grid, sections, spacing, nav, footer
   ============================================================ */

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Section base --- */
.section {
  padding: 120px 0;
}

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
  background: transparent;
}

#nav.nav-scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 2rem;
  box-shadow: 0 1px 0 var(--border);
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  transition: color 0.2s ease;
  position: relative;
}

.nav-logo:hover {
  color: var(--accent);
}

.nav-logo-name {
  position: absolute;
  top: calc(100% + 0.2rem);
  left: 0;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.nav-logo:hover .nav-logo-name {
  opacity: 1;
  transform: translateY(0);
}

.nav-logo-dot {
  color: var(--accent);
  display: inline-block;
  transform-origin: center;
}

.nav-logo:hover .nav-logo-dot {
  animation: logo-orbit 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes logo-orbit {
  0%   { transform: translate(0, 0) scale(1); }
  20%  { transform: translate(2px, -9px) scale(0.85); }
  45%  { transform: translate(-10px, -12px) scale(0.75); }
  65%  { transform: translate(-20px, -5px) scale(0.8); }
  80%  { transform: translate(-14px, 4px) scale(0.9); }
  100% { transform: translate(0, 0) scale(1); }
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--t-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--t-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-controls {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* Lucide-style SVG icon base */
.nav-icon {
  width: 15px;
  height: 15px;
  display: block;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  pointer-events: none;
  flex-shrink: 0;
}

/* All three nav control buttons share the same pill style */
#lang-toggle,
#theme-toggle,
#sound-toggle {
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: color 0.2s ease, border-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Text button (lang) needs a bit more horizontal room */
#lang-toggle {
  font-family: 'Courier New', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.65rem;
}

/* Icon-only buttons: square-ish padding */
#theme-toggle,
#sound-toggle {
  padding: 0.38rem 0.5rem;
}

#lang-toggle:hover,
#theme-toggle:hover,
#sound-toggle:hover {
  color: var(--text-primary);
  border-color: var(--accent);
}

/* Sound active state */
#sound-toggle.sound-on {
  color: var(--accent);
  border-color: var(--accent);
}

/* Extras burger — always visible in nav */
.extras-burger {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text-primary);
  padding: 0.25rem;
  cursor: pointer;
  transition: color var(--t-fast);
}

.extras-burger:hover {
  color: var(--accent);
}

/* Mobile main-nav hamburger — hidden on desktop */
.hamburger {
  display: none;
  font-size: 1.25rem;
  color: var(--text-primary);
  padding: 0.25rem;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: block;
  }
  /* Hide extras-burger on mobile — mobile-menu already has the links */
  .extras-burger {
    display: none;
  }
}

/* --- Mobile menu --- */
.mobile-menu-divider {
  width: 3rem;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
  margin: 0.5rem 0;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(var(--bg-primary-rgb, 10, 10, 10), 0.75);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
  transform: translateY(0);
}

.mobile-menu a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.mobile-menu a:hover {
  color: var(--accent);
}

.mobile-menu a.mobile-menu-sub {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-menu a.mobile-menu-sub:hover {
  color: var(--accent);
}

.mobile-menu-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 10;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  background: rgba(255,255,255,0.04);
}

.mobile-menu-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================================
   EXTRAS DRAWER
   ============================================================ */
.extras-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  background: transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background 0.35s ease, backdrop-filter 0.35s ease;
}

.extras-overlay.is-open {
  pointer-events: all;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.extras-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: clamp(300px, 36vw, 420px);
  background: #0e0e10;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.extras-overlay.is-open .extras-panel {
  transform: translateX(0);
  box-shadow: -32px 0 80px rgba(0, 0, 0, 0.6);
}

/* Close button — top right corner */
.extras-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 10;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  background: rgba(255,255,255,0.04);
}

.extras-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Nav fills the full panel height */
.extras-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* Each item = full-panel card */
.extras-item {
  position: relative;
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1.5rem 1.75rem;
  text-decoration: none;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: flex 0.3s ease;
}

.extras-item:last-child {
  border-bottom: none;
}

/* Background image layer */
.extras-item-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  transition: opacity 0.4s ease, transform 0.6s ease;
}

.extras-item:hover .extras-item-bg {
  opacity: 0.55;
  transform: scale(1.04);
}

/* Per-item background images */
.extras-item--photo .extras-item-bg {
  background-image: url('../assets/photo/india/photo-roger-tedoldi-Landscape-duo-02.jpg');
  background-position: center 40%;
}

.extras-item--drone .extras-item-bg {
  background-image: url('../assets/images/photo-roger-tedoldi-drone.jpg');
  background-position: center 40%;
}

.extras-item--books .extras-item-bg {
  background-image: url('../assets/images/books-roger-tedoldi-website-books.jpg');
  background-position: center 50%;
}

.extras-item--blog .extras-item-bg {
  background-image: url('../assets/images/roger-tedoldi-image-blog.jpg');
  background-position: center 50%;
}

/* Dark gradient overlay so text is always readable */
.extras-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 60%);
  pointer-events: none;
}

.extras-item-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.extras-item-eyebrow {
  font-family: 'Courier New', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.extras-item-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1;
  transition: text-shadow 0.3s ease;
}

.extras-item:hover .extras-item-title {
  text-shadow: 0 0 24px rgba(201, 168, 76, 0.4);
}

.extras-item-desc {
  font-family: 'Courier New', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-top: 0.15rem;
}

.extras-item-arrow {
  position: relative;
  z-index: 1;
  font-size: 1.6rem;
  color: rgba(255,255,255,0.5);
  transition: transform 0.25s ease, color 0.25s ease;
  flex-shrink: 0;
  align-self: center;
}

.extras-item:hover .extras-item-arrow {
  transform: translate(3px, -3px);
  color: var(--accent);
}

/* Active state — current page */
.extras-item--active {
  pointer-events: none;
}
.extras-item--active .extras-item-title {
  color: var(--accent);
  text-shadow: 0 0 20px rgba(201,168,76,0.3);
}
.extras-item--active .extras-item-bg {
  opacity: 0.35;
}
.extras-item--active .extras-item-arrow {
  display: none;
}

.extras-footer {
  padding: 1rem 1.75rem;
  font-family: 'Courier New', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  border-top: 1px solid rgba(255,255,255,0.06);
}

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

/* ============================================================
   HERO SECTION
   ============================================================ */
#home {
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Noise texture layer */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
  will-change: transform;
}

/* Atmosphere: sky vignette */
.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* dark-sky vignette at top */
  background:
    linear-gradient(
      to bottom,
      rgba(0, 5, 20, 0.30) 0%,
      transparent 45%
    );
}

[data-theme="light"] .hero-atmosphere {
  background:
    radial-gradient(
      ellipse 90% 280px at 50% 108%,
      rgba(26, 26, 110, 0.07) 0%,
      transparent 100%
    ),
    linear-gradient(
      to bottom,
      rgba(200, 215, 255, 0.20) 0%,
      transparent 45%
    );
}

/* ── AERONAUTICAL CHART BACKGROUND ──────────────────────── */
.hero-chart {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  /* Lat/lon grid — faint tiling lines */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='70'%3E%3Cpath d='M 70 0 L 0 0 0 70' fill='none' stroke='%23a0c8e8' stroke-width='0.5' opacity='0.18'/%3E%3C/svg%3E");
  background-size: 70px 70px;
  background-repeat: repeat;
}

[data-theme="light"] .hero-chart {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='70'%3E%3Cpath d='M 70 0 L 0 0 0 70' fill='none' stroke='%231a3880' stroke-width='0.5' opacity='0.18'/%3E%3C/svg%3E");
}

/* ── HUD CORNER LABELS ───────────────────────────────────── */
.hero-hud {
  position: absolute;
  font-family: 'Courier New', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0;                    /* heroFadeUp sets to 1 */
  pointer-events: none;
  z-index: 3;
  line-height: 1.8;
  animation: heroFadeUp 0.7s ease both;
}

[data-theme="light"] .hero-hud {
  opacity: 0;  /* still driven by animation */
}

/* Dim a bit so they don't compete with content */
.hero-hud-tl { top: 5.5rem;  left: 2rem;  animation-delay: 1.3s;  text-align: left; }
.hero-hud-tr { top: 5.5rem;  right: 2rem; animation-delay: 1.4s;  text-align: right; }
.hero-hud-bl { bottom: 4.5rem; left: 2rem;  animation-delay: 1.5s;  text-align: left; }
.hero-hud-br { bottom: 4.5rem; right: 2rem; animation-delay: 1.6s;  text-align: right; }

/* After animation: clamp opacity to a subtle level */
.hero-hud-tl, .hero-hud-tr, .hero-hud-bl, .hero-hud-br {
  animation-fill-mode: both;
}

/* Keep HUDs subtle after fade-in */
@keyframes heroHudFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 0.38; transform: translateY(0); }
}
.hero-hud {
  animation: heroHudFade 0.7s ease both !important;
}

@media (max-width: 860px) {
  .hero-hud { display: none; }
}

/* ── FLIGHT STATUS STRIP ─────────────────────────────────── */
.flight-status {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.45rem 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.63rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  flex-wrap: wrap;
  justify-content: center;
  white-space: nowrap;
}

[data-theme="light"] .flight-status {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.15);
  color: rgba(0, 0, 0, 0.6);
}

.fs-sep {
  opacity: 0.35;
}

@media (max-width: 480px) {
  .scroll-indicator {
    display: none;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .flight-status {
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.5rem 1rem;
    font-size: 0.58rem;
  }

  .fs-sep {
    display: none;
  }
}

.fs-status {
  color: var(--accent);
  font-weight: 700;
  animation: boardingBlink 2s ease-in-out infinite;
}

@keyframes boardingBlink {
  0%, 100% { opacity: 1; }
  48%       { opacity: 1; }
  52%       { opacity: 0.15; }
  56%       { opacity: 1; }
}

/* will-change hints for parallax GPU compositing */
.hero-hud,
.splitflap-wrapper,
.hero-identity,
.flight-status,
.hero-cta,
.hero-atmosphere {
  will-change: translate;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* Name + Role block (above the board) */
.hero-identity {
  text-align: center;
}

.hero-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero-role {
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.5rem;
}

/* keep .hero-label for backwards compat, but it's no longer used */
.hero-label {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ── Hero CTA ─────────────────────────────────────────────── */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0.85rem 2.25rem;
  border-radius: 2px;
  transition: color var(--t-base), border-color var(--t-base), background var(--t-base);
  margin-top: 2.5rem;
}

.hero-cta::after {
  content: '↓';
  opacity: 0.55;
  transition: opacity var(--t-fast), transform var(--t-fast);
}

.hero-cta:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

.hero-cta:hover::after {
  opacity: 1;
  transform: translateY(3px);
}

[data-theme="light"] .hero-cta {
  border-color: rgba(0, 0, 0, 0.22);
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  z-index: 2;
  color: var(--accent);
}

/* Animated dashed contrail above the plane */
.scroll-contrail {
  width: 1px;
  height: 38px;
  background: repeating-linear-gradient(
    to bottom,
    var(--accent) 0%,
    var(--accent) 45%,
    transparent 45%,
    transparent 100%
  );
  background-size: 1px 7px;
  opacity: 0.35;
  animation: contrailFlow 0.55s linear infinite;
}

@keyframes contrailFlow {
  from { background-position: 0 0; }
  to   { background-position: 0 7px; }
}

/* Compass scroll indicator */
.scroll-plane {
  font-size: 1.15rem;
  opacity: 0.65;
  animation: compassPulse 2.8s ease-in-out infinite;
}

@keyframes compassPulse {
  0%, 100% {
    transform: translateY(0) rotate(135deg);
    opacity: 0.5;
  }
  50% {
    transform: translateY(4px) rotate(135deg);
    opacity: 0.9;
  }
}


/* ============================================================
   EXPERIENCE SECTION — Flight Log
   ============================================================ */
.section-experience {
  background: var(--bg-secondary);
}

/* Column headers */
.fl-head {
  display: grid;
  grid-template-columns: 44px 130px 180px 1fr 130px 28px;
  gap: 0 1.5rem;
  padding: 0 0 0.75rem;
  border-bottom: 1px solid var(--border);
  margin: 2.5rem 0 0;
  font-family: 'Courier New', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0.55;
}

/* Flight log list */
.flight-log {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Row button */
.fl-row {
  display: grid;
  grid-template-columns: 44px 130px 180px 1fr 130px 28px;
  gap: 0 1.5rem;
  align-items: center;
  width: 100%;
  padding: 1.25rem 0;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  text-align: left;
  cursor: pointer;
  color: inherit;
  font-family: inherit;
  transition: background var(--t-fast);
}

.fl-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="light"] .fl-row:hover {
  background: rgba(0, 0, 0, 0.03);
}

.fl-entry.is-open .fl-row {
  border-bottom: none;
}

/* Year */
.fl-year {
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}

/* Company */
.fl-company {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* Role */
.fl-role-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Status badge */
.fl-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Courier New', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fl-badge--active    { color: var(--accent); }
.fl-badge--completed { color: var(--text-secondary); }
.fl-badge--archived  { color: var(--text-secondary); opacity: 0.45; }

/* Status icons (Phosphor icon font) */
.fl-icon {
  font-size: 18px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  line-height: 1;
}

/* Flight number — FL-01 … FL-05 */
.fl-num {
  font-family: 'Courier New', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  opacity: 0.38;
}

.fl-num--total {
  font-size: 0.7rem;
  opacity: 0.55;
}

/* Toggle +/− */
.fl-toggle {
  font-family: 'Courier New', monospace;
  font-size: 1.5rem;
  color: var(--text-secondary);
  opacity: 0.55;
  transition: transform var(--t-fast), opacity var(--t-fast);
  text-align: center;
  line-height: 1;
}

.fl-entry.is-open .fl-toggle {
  transform: rotate(45deg);
  opacity: 1;
}

/* Expandable detail — grid-template-rows trick */
.fl-detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.fl-entry.is-open .fl-detail {
  grid-template-rows: 1fr;
}

.fl-detail-inner {
  overflow: hidden;
  display: grid;
  grid-template-columns: calc(354px + 2rem) 1fr;
  column-gap: 2.5rem;
  align-items: start;
}

/* ---- Flight Log Window ---- */
.fl-window {
  position: relative;
  grid-column: 1;
  justify-self: start;
  margin: 1.75rem 0 2rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  min-width: 220px;
  align-self: start;
}

/* Cockpit corner bracket markers */
.fl-window::before,
.fl-window::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
}

.fl-window::before {
  top: 4px;
  left: 4px;
  border-top: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
  opacity: 0.45;
}

.fl-window::after {
  bottom: 4px;
  right: 4px;
  border-bottom: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  opacity: 0.45;
}

.fl-window-eyebrow {
  display: block;
  font-family: 'Courier New', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.6;
  margin-bottom: 0.75rem;
}

.fl-log-grid {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0.4rem 1rem;
}

.fl-log-label {
  font-family: 'Courier New', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0.5;
  padding-top: 0.12em;
}

.fl-log-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-primary);
  opacity: 0.85;
}

/* Light mode window */
[data-theme="light"] .fl-window {
  background: rgba(0, 0, 0, 0.025);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* Right column wrapper — takes grid col 2, flows naturally */
.fl-right {
  grid-column: 2;
  margin: 1.75rem 0 2rem;
}

/* Role inline — same line as context text */
.fl-role-heading {
  display: inline;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
}

.fl-role-heading::after {
  content: ' \2014  ';  /* em dash + space */
  font-weight: 400;
  opacity: 0.4;
}

/* Context paragraph — inline, flows with role on same line */
.fl-context {
  display: inline;
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.72;
  opacity: 0.8;
}

/* Impact bullets */
.fl-bullets {
  list-style: none;
  padding: 0.6rem 0 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fl-bullets li {
  position: relative;
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.55;
  padding-left: 1.25rem;
}

.fl-bullets li::before {
  content: '◇';
  position: absolute;
  left: 0;
  color: var(--accent);
  opacity: 0.6;
}

/* Career total row */
.fl-total {
  display: grid;
  grid-template-columns: 44px 130px 180px 1fr 130px 28px;
  gap: 0 1.5rem;
  align-items: center;
  padding: 1.1rem 0 1rem;
  border-top: 1px solid var(--border);
  opacity: 0.75;
}

.fl-total-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-style: italic;
  color: var(--text-secondary);
}

.fl-badge--cruise {
  color: var(--accent);
  opacity: 0.65;
}

/* Mobile */
@media (max-width: 768px) {
  .fl-head { display: none; }

  .fl-row {
    grid-template-columns: 1fr auto 24px;
    grid-template-rows: auto auto;
    gap: 0.25rem 0.75rem;
    padding: 1rem 0;
  }

  .fl-num       { display: none; }
  .fl-year      { grid-column: 1; grid-row: 2; font-size: 0.65rem; }
  .fl-company   { display: none; }
  .fl-role-name { grid-column: 1; grid-row: 1; font-size: 0.85rem; }
  .fl-badge     { grid-column: 2; grid-row: 1; font-size: 0.58rem; }
  .fl-toggle    { grid-column: 3; grid-row: 1 / 3; align-self: center; }

  .fl-total {
    grid-template-columns: 1fr auto;
    gap: 0.25rem 0.75rem;
  }
  .fl-num--total { display: block; grid-column: 1; }
  .fl-total-text { grid-column: 1; font-size: 0.75rem; }
  .fl-total .fl-year,
  .fl-total .fl-company { display: none; }
  .fl-total .fl-badge { grid-column: 2; align-self: center; }

  .fl-detail-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding-left: 0;
    column-gap: 0;
  }

  .fl-window {
    grid-column: 1;
    grid-row: auto;
    margin: 1.25rem 0 0.75rem;
    min-width: 0;
  }

  .fl-right {
    grid-column: 1;
    margin-top: 0;
  }
}

/* ============================================================
   WORK SECTION
   ============================================================ */
.section-work {
  background: var(--bg-primary);
  overflow: visible;
}

.work-header {
  margin-bottom: 4rem;
}

/* Cards sit outside the container — full viewport width with side padding */
.work-cards {
  padding: 0 clamp(1rem, 3vw, 2.5rem);
}

/* Each wrapper provides the scrollable height so the sticky card can travel */
.cs-wrapper {
  height: 130vh;
  position: relative;
  z-index: var(--zi, 1);
}

.cs-wrapper:last-child {
  height: 100vh; /* last card only needs to fully enter, not linger */
}

@media (max-width: 768px) {
  .work-header {
    margin-bottom: 2.5rem;
  }
  .work-cards {
    padding: 0 1rem;
  }
  .cs-wrapper,
  .cs-wrapper:last-child {
    height: auto;
    margin-bottom: 1.5rem;
  }
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.section-about {
  background: var(--bg-secondary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='70'%3E%3Cpath d='M 70 0 L 0 0 0 70' fill='none' stroke='%23a0c8e8' stroke-width='0.5' opacity='0.18'/%3E%3C/svg%3E");
  background-size: 70px 70px;
  overflow-x: clip; /* clip large type without creating a scroll container (sticky needs this) */
}

[data-theme="light"] .section-about {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='70'%3E%3Cpath d='M 70 0 L 0 0 0 70' fill='none' stroke='%231a3880' stroke-width='0.5' opacity='0.18'/%3E%3C/svg%3E");
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* ── Typographic identity labels ─────────────────────────── */
.about-roles {
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
  /* Top border closes the group visually */
  border-top: 1px solid var(--border);
}

/* Each row: relative for desc anchor; extra bottom pad = desc breathing room */
.about-role-wrap {
  position: relative;
  cursor: default;
  padding: 1.5rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  /* Left accent bar — sits flush at the text edge, no indent */
  border-left: 3px solid transparent;
  transition: border-left-color var(--t-fast),
              background var(--t-fast);
}

.about-role-wrap:hover {
}

/* Letter Glow — solid variant (tiles fade out over 350ms, glow is mid-transition) */
.about-role-wrap:hover .sf-top span,
.about-role-wrap:hover .sf-flap-top span {
  color: var(--accent);
  text-shadow: 0 0 18px var(--accent), 0 0 40px rgba(201, 168, 76, 0.35);
}

/* Letter Glow — outline/stroke variant (MENTOR) */
.about-role-wrap:hover .about-role--outline .sf-top span,
.about-role-wrap:hover .about-role--outline .sf-flap-top span {
  color: transparent;
  -webkit-text-stroke-color: var(--accent);
  text-shadow: none;
  filter: drop-shadow(0 0 10px var(--accent));
}

/* ── Typography — DO NOT CHANGE font-family/size/weight ─── */
.about-role {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 7.5vw, 6rem);
  font-weight: 700;
  letter-spacing: 0;         /* tiles carry their own margin */
  text-transform: uppercase;
  color: var(--text-primary);
  display: flex;             /* tiles flow as flex items */
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  user-select: none;
  /* Fade out on hover — no other property changes */
  transition: opacity 350ms ease;
}

.about-role--outline {
  -webkit-text-stroke: 2px var(--text-primary);
  color: transparent;
  transition: opacity 350ms ease;
}
/* ── End typography lock ─────────────────────────────────── */

/* ── About role tiles — sizing + text colour ─────────────── */
.about-role-tile {
  cursor: default;   /* not clickable like hero board */
  transition: none;
}

/* All tile spans in about roles: always solid white (tiles are always dark) */
.about-role .sf-top span,
.about-role .sf-flap-top span,
.about-role .sf-bot span,
.about-role .sf-flap-bot span {
  color: #ffffff;
  -webkit-text-stroke: 0;
}

/* ── Hover descriptor — fades in below the tiles ─────────── */
.about-role-desc {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1;
  /* Anchored to bottom padding zone — tiles stay visible above */
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 300ms ease, transform 300ms ease;
}

.about-role-wrap:hover .about-role-desc {
  opacity: 1;
  transform: translateY(0);
}



@media (max-width: 768px) {
  .about-role-wrap {
    padding: 1.25rem 0 2rem;
  }
  .about-role--outline {
    -webkit-text-stroke-width: 1.5px;
  }
  .about-role-desc {
    font-size: 0.85rem;
  }
}

/* Touch devices: always show desc (no hover state available) */
@media (hover: none) {
  .about-role { opacity: 1; }
  .about-role-desc {
    position: static;
    opacity: 1;
    padding: 0.4rem 0 0;
  }
}

/* ── Light mode refinements for About roles ─────────────── */
/* Borders are very faint on warm beige — increase contrast */
[data-theme="light"] .about-roles {
  border-top-color: rgba(0, 0, 0, 0.14);
}

[data-theme="light"] .about-role-wrap {
  border-bottom-color: rgba(0, 0, 0, 0.14);
}

/* Light mode glow: navy accent for letter glow */
[data-theme="light"] .about-role-wrap:hover .sf-top span,
[data-theme="light"] .about-role-wrap:hover .sf-flap-top span {
  color: var(--accent);
  text-shadow: 0 0 16px rgba(26, 26, 110, 0.6), 0 0 36px rgba(26, 26, 110, 0.25);
}

[data-theme="light"] .about-role-wrap:hover .about-role--outline .sf-top span,
[data-theme="light"] .about-role-wrap:hover .about-role--outline .sf-flap-top span {
  -webkit-text-stroke-color: var(--accent);
  filter: drop-shadow(0 0 8px rgba(26, 26, 110, 0.55));
}

/* Desc text: slightly deeper so it reads on hover tint */
[data-theme="light"] .about-role-desc {
  color: var(--accent);
  letter-spacing: 0.12em;
}

/* ── Airplane window portrait ─────────────────────────────── */
.about-window {
  position: relative;
  flex-shrink: 0;
  width: 130px;
  height: 190px;
  border-radius: 46px;
  /* Layered aluminium frame: inner light → gap → frame body → outer edge */
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.10),   /* inner glass edge highlight */
    0 0 0 6px #1e1e1e,                      /* inner channel / gap         */
    0 0 0 14px #2e2e2e,                     /* fuselage frame              */
    0 0 0 15px rgba(255, 255, 255, 0.05),   /* outer frame rim             */
    0 20px 60px rgba(0, 0, 0, 0.65);        /* ground shadow               */
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

[data-theme="light"] .about-window {
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.70),
    0 0 0 6px #d0cec8,
    0 0 0 14px #b8b4ae,
    0 0 0 15px rgba(255, 255, 255, 0.40),
    0 20px 60px rgba(0, 0, 0, 0.15);
}

.about-window:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.14),
    0 0 0 6px #1e1e1e,
    0 0 0 14px #2e2e2e,
    0 0 0 15px rgba(245, 200, 66, 0.20),
    0 28px 80px rgba(0, 0, 0, 0.75),
    0 0 40px rgba(245, 200, 66, 0.06);
}

[data-theme="light"] .about-window:hover {
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.80),
    0 0 0 6px #d0cec8,
    0 0 0 14px #b8b4ae,
    0 0 0 15px rgba(0, 0, 0, 0.08),
    0 28px 80px rgba(0, 0, 0, 0.18);
}

/* Vignette — depth at window edges */
.about-window::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 46px;
  background: radial-gradient(
    ellipse at center,
    transparent 55%,
    rgba(0, 0, 0, 0.22) 100%
  );
  pointer-events: none;
  z-index: 2;
}

/* Glass reflection — diagonal highlight */
.about-window::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 46px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.06) 25%,
    transparent 55%
  );
  pointer-events: none;
  z-index: 3;
}

[data-theme="light"] .about-window::after {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.15) 30%,
    transparent 60%
  );
}

.about-portrait {
  width: 130px;
  height: 190px;
  border-radius: 46px;
  object-fit: cover;
  object-position: center 10%;
  display: block;
  position: relative;
  z-index: 1;
}

.about-bio-header {
  display: flex;
  align-items: flex-start; /* align text to top of window */
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.about-bio p {
  margin-bottom: 1rem;
}

/* ── About scroll-stack (mirrors .work-cards / .cs-wrapper) ── */
.about-cards {
  padding: 0;
}

.about-card-wrap {
  height: 130vh;
  position: relative;
  z-index: var(--zi, 1);
}

/* Roles card: scroll height before next card appears */
.about-card-wrap--roles {
  height: 110vh;
}

/* Profile card (last): natural height — bio card grows with content */
.about-card-wrap--profile {
  height: auto;
}

.about-card-sticky {
  position: sticky;
  top: 12vh;
  height: clamp(520px, 78vh, 880px);
  transform: scale(0.82);
  opacity: 0.55;
  transform-origin: center top;
  will-change: transform, opacity;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Roles card sticky: auto height to fit the large type */
.about-card-wrap--roles .about-card-sticky {
  height: auto;
  min-height: clamp(480px, 68vh, 780px);
}

/* Profile card sticky: natural height, no scroll-stick needed */
.about-card-wrap--profile .about-card-sticky {
  position: static;
  height: auto;
  transform: none;
  opacity: 1;
}

.about-card-inner {
  width: 100%;
  max-width: 720px;
}

/* Roles card inner: matches .container alignment exactly */
.about-roles-card {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Profile card: boarding pass + bio side by side ─────── */
.about-profile-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  max-width: 1060px;
  width: 100%;
}

/* Column wrapper: boarding pass stacked above seat pocket */
.bp-with-pocket {
  flex: 0 0 380px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 9vh;
  align-self: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

.about-profile-card .boarding-pass {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 0;
}

/* ── Seat Pocket ─────────────────────────────────────────── */
.seat-pocket {
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.seat-pocket:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.sp-peek {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 68px;
  font-family: 'Courier New', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0.6;
  transition: opacity var(--t-fast);
}

.seat-pocket:hover .sp-peek {
  opacity: 1;
  color: var(--accent);
}

.sp-caret {
  display: none;
}

/* Always expanded */
.sp-content {
  display: grid;
  grid-template-rows: 1fr;
}

.sp-content-inner {
  overflow: hidden;
  display: flex;
  gap: 1.25rem;
  padding: 0 1.25rem 1.25rem;
  align-items: flex-start;
}

/* Mini cover */
.sp-cover {
  flex-shrink: 0;
  width: 64px;
  aspect-ratio: 2/3;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 4px 4px 12px rgba(0,0,0,0.45), -2px 0 0 rgba(0,0,0,0.5);
}

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

.sp-cover-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #1a1a2e, #0f0f1a);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.5rem 0.4rem;
}

.sp-cp-label {
  font-family: 'Courier New', monospace;
  font-size: 0.42rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
}

.sp-cp-author {
  font-family: 'Courier New', monospace;
  font-size: 0.38rem;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
}

/* Book info */
.sp-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.sp-eyebrow {
  font-family: 'Courier New', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.7;
}

.sp-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin: 0;
}

.sp-desc {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0.1rem 0 0.4rem;
}

.sp-cta {
  font-family: 'Courier New', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  transition: opacity var(--t-fast);
  align-self: flex-start;
}

.sp-cta:hover {
  opacity: 0.7;
}

.about-bio-card {
  flex: 1;
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 3.5rem;
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--t-base), border-color var(--t-fast);
}

.about-bio-card:hover {
  box-shadow: var(--shadow-hover-accent);
  border-color: var(--accent);
}

.about-bio-text {
  flex: 1;
  min-width: 0;
}

.about-bio-text p {
  margin-bottom: 0.9rem;
  line-height: 1.72;
}

.about-bio-text p:last-of-type {
  margin-bottom: 0;
}

/* CTA — opens principles overlay, inherits hero-cta style */
.principles-cta {
  margin-top: 1.75rem;
  cursor: pointer;
  align-self: flex-start;   /* prevents full-width stretch in flex column */
}

.principles-cta::after {
  content: '↗';
}

/* ============================================================
   PRINCIPLES STUB — boarding pass tear-off at top of panel
   Mirrors the boarding pass card; decorative (aria-hidden)
   ============================================================ */
.principles-stub {
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.13);
}

.pstub-airline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Courier New', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0.38;
  margin-bottom: 1rem;
}

.pstub-airline .ph {
  font-size: 13px;
}

.pstub-route {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.pstub-iata-group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.pstub-code {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  opacity: 0.55;
  line-height: 1;
}

.pstub-city {
  font-family: 'Courier New', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0.38;
}

.pstub-arrow {
  flex: 1;
  text-align: center;
  font-size: 1rem;
  color: var(--text-secondary);
  opacity: 0.25;
}

.pstub-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem 0.5rem;
}

.pstub-field {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.pstub-label {
  font-family: 'Courier New', monospace;
  font-size: 0.48rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0.38;
}

.pstub-value {
  font-family: 'Courier New', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
  opacity: 0.6;
  font-weight: 600;
}

/* Light mode adjustments */
[data-theme="light"] .principles-stub {
  border-bottom-color: rgba(0, 0, 0, 0.12);
}

/* ============================================================
   PRINCIPLES OVERLAY — fullscreen manifesto poster
   ============================================================ */
.principles-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.principles-overlay.is-open {
  pointer-events: all;
  opacity: 1;
}

.principles-panel {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 10, 0.78);
  backdrop-filter: blur(28px) saturate(1.3);
  -webkit-backdrop-filter: blur(28px) saturate(1.3);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  padding: clamp(1.5rem, 4vw, 3.5rem) clamp(1.5rem, 7vw, 8rem);
  overflow-y: auto;
  transform: translateY(32px);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.principles-overlay.is-open .principles-panel {
  transform: translateY(0);
}

/* ── Portrait background ───────────────────────────────────── */
.principles-portrait {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.principles-portrait img {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 55%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.12;
  filter: blur(2px) grayscale(40%);
  /* Fade left edge so portrait blends into the dark bg */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.6) 30%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.6) 30%, #000 100%);
}

/* Ensure all panel content sits above the portrait */
.principles-header,
.principles-title-row,
.principles-body,
.principles-footer {
  position: relative;
  z-index: 1;
}

/* ── Header row ────────────────────────────────────────────── */
.principles-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* Close button — absolute top-left, matches extras-close style */
.principles-close {
  position: absolute;
  top: clamp(1.5rem, 4vw, 3.5rem);
  left: clamp(1.5rem, 7vw, 8rem);
  z-index: 10;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.principles-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Document meta (header right side) ──────────────────────── */
.principles-doc-header {
  display: flex;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: flex-end;
}

.principles-doc-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.pdm-label {
  font-family: 'Courier New', monospace;
  font-size: 0.45rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
}

.pdm-value {
  font-family: 'Courier New', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.pdm-cleared {
  color: var(--accent);
}

@media (max-width: 600px) {
  .pdm-hide-mobile { display: none; }
}

/* ── Document title row ──────────────────────────────────────── */
.principles-title-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  z-index: 1;
}

.principles-doc-title {
  font-family: 'Courier New', monospace;
  font-size: clamp(0.9rem, 2vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
}

.principles-doc-subtitle {
  font-family: 'Courier New', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

/* ── Checklist body ──────────────────────────────────────────── */
.principles-body {
  display: flex;
  flex-direction: column;
  padding: clamp(0.5rem, 1vw, 1rem) 0;
  gap: 0;
}

.pcl-item {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  gap: clamp(1rem, 2vw, 2rem);
  align-items: center;
  padding: clamp(1.2rem, 2.5vw, 2rem) 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
  cursor: default;
}

.pcl-item:first-child {
  border-top: 1px dashed rgba(255, 255, 255, 0.07);
}

.pcl-item:hover .pcl-text {
  color: var(--accent);
}

.pcl-number {
  font-family: 'Courier New', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.2);
  align-self: flex-start;
  padding-top: 0.4rem;
}

.pcl-content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pcl-category {
  font-family: 'Courier New', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.85;
}

.pcl-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
  margin: 0;
  transition: color 0.2s ease;
}

.pcl-check {
  font-family: 'Courier New', monospace;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--accent);
  opacity: 0.85;
  align-self: center;
  line-height: 1;
}

/* ── Footer ────────────────────────────────────────────────── */
.principles-footer {
  display: flex;
  justify-content: space-between;
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  font-family: 'Courier New', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.2);
}

/* Light mode — keep the dark cockpit feel */
[data-theme="light"] .principles-panel {
  background: rgba(10, 10, 12, 0.82);
}

.about-bio-location {
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: block;
}

@media (max-width: 900px) {
  .about-profile-card {
    flex-direction: column;
    height: auto;
  }

  .bp-with-pocket {
    flex: 1 1 auto;
    width: 100%;
    position: static;
  }

  .about-profile-card .boarding-pass {
    width: 100%;
    flex: 1;
  }
}

@media (max-width: 768px) {
  .about-card-wrap,
  .about-card-wrap--roles,
  .about-card-wrap--profile {
    height: auto;
    margin-bottom: 1.5rem;
  }

  .about-card-sticky,
  .about-card-wrap--roles .about-card-sticky {
    position: static;
    height: auto;
    min-height: unset;
    transform: scale(1) !important;
    opacity: 1 !important;
  }

  .about-bio-card {
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem;
    gap: 1.75rem;
    text-align: center;
  }

  .about-bio-text {
    text-align: left;
  }
}

/* ============================================================
   SKILLS SECTION
   ============================================================ */
.section-skills {
  background: var(--bg-primary);
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 3rem;
}

/* --- Experience Timeline --- */
.st-grid {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Axis row */
.st-axis-row {
  display: grid;
  grid-template-columns: 15rem 1fr 3.5rem;
  align-items: center;
  margin-bottom: 1.25rem;
  gap: 1rem;
}

.st-axis-spacer { /* empty cell to align with name column */ }

.st-axis-track {
  position: relative;
  height: 1.25rem;
}

.st-yr {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
  user-select: none;
}

.st-yr--now {
  color: var(--accent);
  font-weight: 700;
}

/* Each skill row */
.st-row {
  display: grid;
  grid-template-columns: 15rem 1fr 3.5rem;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--border);
}

.st-row:last-child {
  border-bottom: 1px solid var(--border);
}

.st-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.18), 0 0 40px rgba(255, 255, 255, 0.06);
  white-space: nowrap;
  transition: color 350ms ease, text-shadow 350ms ease;
}

[data-theme="light"] .st-name {
  color: var(--text-primary);
  text-shadow: none;
}

.st-row:hover .st-name {
  color: var(--accent);
  text-shadow: 0 0 18px var(--accent), 0 0 40px rgba(201, 168, 76, 0.35);
}

[data-theme="light"] .st-row:hover .st-name {
  color: var(--accent);
  text-shadow: 0 0 16px rgba(201, 168, 76, 0.5);
}

.st-track {
  position: relative;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
}

.st-bar {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
  opacity: 0.85;
  /* position from start year */
  left: calc((var(--sy, 2000) - 2000) / 26 * 100%);
  /* animate width from 0 → target on .is-visible */
  width: 0;
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0s);
}

.st-bar--new {
  background: var(--accent);
  opacity: 1;
  box-shadow: 0 0 8px rgba(201, 168, 76, 0.55);
}

/* Triggered by IntersectionObserver */
.st-grid.is-visible .st-bar {
  width: calc(var(--yrs, 1) / 26 * 100%);
}

.st-count {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-align: right;
  white-space: nowrap;
}

.st-unit {
  font-size: 0.6rem;
  font-weight: 400;
  opacity: 0.7;
}

/* Hover: highlight row + bar */
.st-row:hover .st-name {
  color: var(--text-primary);
}

.st-row:hover .st-bar {
  opacity: 1;
  box-shadow: 0 0 12px rgba(201, 168, 76, 0.4);
}

/* Mobile */
@media (max-width: 600px) {
  .st-axis-row,
  .st-row {
    grid-template-columns: 8rem 1fr 2.5rem;
    gap: 0.75rem;
  }
  .st-name { font-size: 0.72rem; }
}

/* ============================================================
   BOOKS SECTION
   ============================================================ */
.section-books {
  background: var(--bg-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='70'%3E%3Cpath d='M 70 0 L 0 0 0 70' fill='none' stroke='%23a0c8e8' stroke-width='0.5' opacity='0.18'/%3E%3C/svg%3E");
  background-size: 70px 70px;
}

[data-theme="light"] .section-books {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='70'%3E%3Cpath d='M 70 0 L 0 0 0 70' fill='none' stroke='%231a3880' stroke-width='0.5' opacity='0.18'/%3E%3C/svg%3E");
}

.section-sub {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 560px;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 3rem;
}

.book-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
  border-color: rgba(201, 168, 76, 0.4);
}

.book-cover-wrap {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--bg-primary);
  position: relative;
}

.book-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.book-card:hover .book-cover-wrap img {
  transform: scale(1.04);
}

.book-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border);
  font-size: 3.5rem;
}

.book-info {
  padding: 1.15rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.35rem;
}

.book-author {
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--accent);
  font-weight: 600;
}

.book-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

.book-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-top: 0.2rem;
}

.book-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.85rem;
  font-size: 0.72rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.2s ease;
  align-self: flex-start;
}

.book-cta:hover { gap: 0.5rem; }

.books-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.books-empty i {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
  color: var(--border);
}

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

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

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.section-contact {
  background: var(--bg-secondary);
  text-align: center;
  padding: 100px 0 80px;
}

.contact-eyebrow {
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.contact-email-hero {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.25s ease, text-shadow 0.25s ease;
  margin-bottom: 3rem;
}

.contact-email-hero:hover {
  color: var(--accent);
  text-shadow: 0 0 40px rgba(201, 168, 76, 0.35);
}

.contact-socials {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.contact-socials a {
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.contact-socials a:hover {
  color: var(--accent);
}

/* ── Contact Form ──────────────────────────────────────────── */
.contact-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2.5rem;
}

.contact-form {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 480px) {
  .contact-form-row {
    grid-template-columns: 1fr;
  }
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
}

.contact-label {
  font-family: 'Courier New', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.contact-input,
.contact-select,
.contact-textarea {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
}

.contact-input:focus,
.contact-select:focus,
.contact-textarea:focus {
  border-color: var(--accent);
}

.contact-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23999' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.contact-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.contact-charcount {
  font-family: 'Courier New', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-align: right;
  margin-top: -0.2rem;
}

.contact-submit {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--bg-primary);
  background: var(--accent);
  border: none;
  border-radius: 8px;
  padding: 0.85rem 2rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  align-self: center;
  margin-top: 0.5rem;
}

.contact-submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.contact-alt {
  margin-top: 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.contact-alt a {
  color: var(--accent);
  text-decoration: none;
  margin-left: 0.3rem;
}

.contact-alt a:hover {
  text-decoration: underline;
}

/* ── Contact Success Toast ──────────────────────────────────── */
.contact-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  padding: 3rem 2rem;
  animation: successFlyIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-success.is-visible {
  display: flex;
}

.contact-success-icon {
  color: #c9a84c;
  font-size: 40px;
  animation: successPlane 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  position: relative;
}

/* Contrail below the plane (vertical) */
.contact-success-icon::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 30px;
  background: linear-gradient(to bottom, rgba(201, 168, 76, 0.4), transparent);
  animation: contrailVertical 2s ease-out forwards;
}

@keyframes contrailVertical {
  0% { opacity: 0; height: 0; }
  30% { opacity: 0.5; height: 30px; }
  100% { opacity: 0; height: 40px; }
}

.contact-success-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  animation: successTextIn 0.5s ease 1.2s both;
}

.contact-success-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
  animation: successTextIn 0.5s ease 1.5s both;
}

@keyframes successFlyIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes successPlane {
  0% {
    transform: translateY(80px) scale(0.5);
    opacity: 0;
  }
  40% {
    opacity: 1;
    transform: translateY(-10px) scale(1.1);
  }
  60% {
    transform: translateY(-20px) scale(1);
  }
  75% {
    transform: translateY(-8px) scale(1);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes contrailFade {
  0% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes successTextIn {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.contact-copyright {
  font-family: 'Courier New', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  opacity: 0.45;
}


/* ── Site Footer ─────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
  padding: 2rem 0 1.5rem;
}

.site-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Flight rule */
.footer-rule {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-family: 'Courier New', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-track {
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    var(--border) 0px,
    var(--border) 4px,
    transparent 4px,
    transparent 8px
  );
}

.footer-plane {
  width: 14px;
  height: 14px;
  color: var(--accent);
  flex-shrink: 0;
}

.footer-origin,
.footer-dest {
  color: var(--accent);
  letter-spacing: 0.2em;
}

/* Main row */
.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-id {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.footer-role {
  font-family: 'Courier New', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Social icons */
.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.footer-socials a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(201, 168, 76, 0.06);
}

.footer-socials svg {
  width: 15px;
  height: 15px;
}

/* Bottom bar */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy,
.footer-email {
  font-family: 'Courier New', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-email {
  text-decoration: none;
  transition: color 0.18s ease;
}
.footer-email:hover { color: var(--accent); }

.footer-legal {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-legal-link {
  font-family: 'Courier New', monospace;
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.18s ease;
}
.footer-legal-link:hover { color: var(--accent); }

.footer-legal-sep {
  font-family: 'Courier New', monospace;
  font-size: 0.56rem;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .footer-main { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
}

/* Back to Top button in footer rule */
.footer-btt {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.35rem 0.9rem 0.35rem 0.6rem;
  color: var(--text-muted);
  font-family: 'Courier New', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.footer-btt:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.footer-btt svg {
  width: 13px;
  height: 13px;
  color: var(--accent);
  flex-shrink: 0;
}
