/* ═══════════════════════════════════════════════════════
   DESIGN SYSTEM — Oasis Change · Biolume
   A living interface: deep-water charcoal, bioluminescent
   light, glass that refracts, surfaces that breathe.
   Class contract preserved from the previous system.
   ═══════════════════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse 120% 70% at 50% -10%, #131f16 0%, transparent 60%),
    var(--abyss);
  color: var(--ink);
  line-height: 1.65;
  letter-spacing: .002em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Scrollbar: a thread of light ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--teal), var(--aurora));
  border-radius: 3px;
}

/* ── Selection ── */
::selection { background: rgba(110, 207, 160, .28); color: #fff; }

/* ── Focus Visible ── */
:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Ambient canvas layers (never occupy layout) ── */
.alive-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.alive-atmosphere { z-index: 0; }
.alive-plankton  { z-index: 1; }

/* ── Film grain: analog life over digital light ── */
/* No blend mode: overlay blending forces the compositor to re-blend the
   whole page every frame, which shows up as checkerboarding on scroll. */
.film-grain {
  position: fixed; inset: 0; z-index: 2;
  pointer-events: none; opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* ═══════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════ */
.section-wrap { padding: 140px 5vw; position: relative; }
.section-inner { max-width: 1160px; margin: 0 auto; position: relative; z-index: 2; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--font-display);
  font-size: .68rem; font-weight: 500; letter-spacing: .22em;
  text-transform: uppercase; color: var(--mint); margin-bottom: 1.3rem;
}
.eyebrow::before {
  content: ''; width: 24px; height: 1px;
  background: linear-gradient(90deg, var(--mint), transparent);
}
/* the eyebrow tick glows with the site's breath */
.eyebrow::after {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--mint); order: -1;
  box-shadow: 0 0 8px var(--glow-green);
  opacity: calc(.45 + var(--breath) * .55);
}

.headline {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.2vw, 4rem);
  font-weight: 500; line-height: 1.06; letter-spacing: -.028em;
  color: var(--ink);
}
.headline em {
  font-family: var(--font-accent);
  font-style: italic; font-weight: 400;
  letter-spacing: 0; font-size: 1.06em;
  background: linear-gradient(120deg, var(--mint) 10%, var(--cyan) 55%, var(--gold) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  background-position: calc(var(--breath) * 100%) 50%;   /* hue slowly wanders */
}

.sub {
  font-size: 1.02rem; font-weight: 300; line-height: 1.85;
  color: var(--text-2); max-width: 560px; margin-top: 1.3rem;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
  margin: 4rem 0;
}

/* Masked line reveal (shared) */
.hl-mask { display: block; overflow: hidden; padding: 0 .1em .14em; margin: 0 -.1em -.14em; }
.hl-line {
  display: block; transform: translateY(112%); opacity: 0;
  transition: transform .95s var(--ease-out), opacity .7s ease;
  will-change: transform;
}
.hl-mask.in .hl-line { transform: translateY(0); opacity: 1; }

/* ═══════════════════════════════════════════════════════
   BUTTONS — energized, not pressed
   ═══════════════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .9rem 2.1rem; border-radius: 100px;
  background: linear-gradient(135deg, #58b98d 0%, #3e9e77 100%);
  color: #0b1f15; font-family: var(--font-display);
  font-size: .85rem; font-weight: 600; letter-spacing: .03em;
  text-decoration: none; border: none; cursor: pointer;
  position: relative; overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    0 4px 18px -6px rgba(20, 40, 28, .45);
  transition: box-shadow .35s, transform .3s var(--ease-spring), filter .25s;
  transform: translate(var(--mag-x, 0px), var(--mag-y, 0px));
}
.btn-primary:hover {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.45),
    0 10px 34px -8px rgba(20, 40, 28, .6),
    0 0 0 1px rgba(110, 207, 160, .35);
  transform: translate(var(--mag-x, 0px), calc(var(--mag-y, 0px) - 2px));
  filter: brightness(1.06) saturate(1.05);
}
.btn-primary:active { transform: translate(var(--mag-x, 0px), var(--mag-y, 0px)) scale(.985); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .9rem 2.1rem; border-radius: 100px;
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(10px);
  color: var(--text-2); font-family: var(--font-display);
  font-size: .85rem; font-weight: 500; letter-spacing: .03em;
  text-decoration: none; border: 1px solid rgba(255,255,255,.14); cursor: pointer;
  position: relative; overflow: hidden;
  transition: border-color .35s, color .3s, background .3s, box-shadow .35s, transform .3s var(--ease-spring);
  transform: translate(var(--mag-x, 0px), var(--mag-y, 0px));
}
.btn-ghost:hover {
  border-color: rgba(110, 207, 160, .45);
  color: var(--ink);
  background: rgba(110, 207, 160, .07);
  box-shadow: 0 8px 28px -10px rgba(0,0,0,.5), 0 0 20px -6px var(--glow-mint);
  transform: translate(var(--mag-x, 0px), calc(var(--mag-y, 0px) - 2px));
}

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .75rem 1.5rem; border-radius: 100px;
  background: rgba(255,255,255,.045); color: var(--ink);
  font-family: var(--font-display); font-size: .82rem; font-weight: 500; letter-spacing: .03em;
  text-decoration: none; border: 1px solid rgba(255,255,255,.12); cursor: pointer;
  position: relative; overflow: hidden;
  transition: border-color .25s, background .25s, box-shadow .3s;
}
.btn-secondary:hover {
  border-color: rgba(255,255,255,.26);
  background: rgba(255,255,255,.08);
  box-shadow: 0 6px 20px -8px rgba(0,0,0,.5);
}

.btn-danger {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .9rem 2.1rem; border-radius: 100px;
  background: linear-gradient(135deg, #e0526b, #c73e58);
  color: #fff; font-family: var(--font-display);
  font-size: .85rem; font-weight: 600; letter-spacing: .03em;
  text-decoration: none; border: none; cursor: pointer;
  position: relative; overflow: hidden;
  transition: box-shadow .3s, transform .25s;
}
.btn-danger:hover {
  box-shadow: 0 12px 36px -8px rgba(224, 82, 107, .5);
  transform: translateY(-2px);
}
.btn-danger:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-sm { padding: .5rem 1.1rem; font-size: .74rem; border-radius: 100px; }

/* ripple + arrow (engine-driven) */
.btn-ripple {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.4) 0%, rgba(255,255,255,.15) 55%, transparent 100%);
  transform: scale(0); pointer-events: none;
  animation: rippleOut .65s var(--ease-out) forwards;
}
@keyframes rippleOut { to { transform: scale(3.2); opacity: 0; } }
.btn-arrow { display: inline-block; transition: transform .35s var(--ease-spring); }
.btn-primary:hover .btn-arrow, .btn-ghost:hover .btn-arrow { transform: translateX(4px); }

.magnetic-btn { position: relative; }

/* light sweep across a hovered button */
.shine-btn::after {
  content: '';
  position: absolute; top: -50%; left: -60%;
  width: 30%; height: 200%;
  background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,.16) 50%, transparent 80%);
  transform: skewX(-15deg);
  transition: left .7s var(--ease-out);
  pointer-events: none;
}
.shine-btn:hover::after { left: 130%; }

/* ═══════════════════════════════════════════════════════
   GLASS — physical, refractive, breathing
   ═══════════════════════════════════════════════════════ */
.glass-card {
  background: linear-gradient(150deg, rgba(255,255,255,.065) 0%, rgba(255,255,255,.02) 55%, rgba(122,184,217,.025) 100%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  position: relative; overflow: hidden;
  box-shadow:
    inset 0 1px 0 var(--glass-edge),
    inset 0 -28px 48px -34px rgba(0,0,0,.5),
    0 14px 38px -16px rgba(0,0,0,.55);
  transition: border-color .35s, box-shadow .45s, transform .35s var(--ease-out);
  will-change: transform;
}
.glass-card:hover {
  border-color: rgba(110, 207, 160, .22);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -28px 48px -34px rgba(0,0,0,.5),
    0 26px 64px -20px rgba(0,0,0,.6),
    0 0 30px -8px var(--glow-mint);
  transform: translateY(-2px);
}
/* pointer-following internal light (engine writes --card-mx/my) */
.glass-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--card-mx, 50%) var(--card-my, 50%),
    rgba(255,255,255,.1) 0%, rgba(122,184,217,.04) 30%, transparent 55%);
  border-radius: inherit;
  opacity: 0; transition: opacity .35s;
  pointer-events: none; z-index: 1;
}
.glass-card:hover::before { opacity: 1; }
/* ambient under-glow that inhales with the page */
.glass-card::after {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  background: radial-gradient(ellipse 90% 60% at 50% 110%, var(--glow-mint) 0%, transparent 60%);
  opacity: calc(.12 + var(--breath) * .22);
  pointer-events: none; z-index: 0;
}

.card-inner, .glass-card-inner { position: relative; z-index: 2; }

.card-interactive { cursor: pointer; }
.card-interactive::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--card-mx, 50%) var(--card-my, 50%), rgba(255,255,255,.1) 0%, transparent 55%);
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.card-interactive:hover::before { opacity: 1; }

.card-glass-highlight { position: relative; }
.card-glass-highlight::before {
  content: '';
  position: absolute; top: -50%; left: -60%;
  width: 50%; height: 200%;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.07) 50%, transparent 70%);
  transform: skewX(-10deg);
  transition: left .6s var(--ease-out);
  pointer-events: none;
}
.card-glass-highlight:hover::before { left: 150%; }

.card-3d {
  transform-style: preserve-3d;
  transition: box-shadow .3s ease, transform .18s ease-out;
  will-change: transform;
}

/* ═══════════════════════════════════════════════════════
   FORMS — quiet glass instruments
   ═══════════════════════════════════════════════════════ */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-family: var(--font-display);
  font-size: .72rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: .55rem;
}

.glass-input {
  width: 100%;
  padding: .9rem 1.2rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(150deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.015) 100%);
  border: 1px solid rgba(255,255,255,.11);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .92rem;
  transition: border-color .3s, box-shadow .3s, background .3s;
  outline: none;
}
.glass-input::placeholder { color: var(--text-4); }
.glass-input:focus {
  border-color: rgba(110, 207, 160, .55);
  background: linear-gradient(150deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,.025) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 0 0 3px rgba(110, 207, 160, .13),
    0 0 24px -6px var(--glow-mint);
}
.glass-input.error {
  border-color: rgba(224, 82, 107, .55);
  box-shadow: 0 0 0 3px rgba(224, 82, 107, .13);
}

.form-error {
  font-size: .75rem;
  color: #f29aab;
  margin-top: .35rem;
  display: none;
}
.form-error.visible { display: block; }

select.glass-input {
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='rgba(244,242,236,.4)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
select.glass-input option { background: var(--charcoal); color: var(--ink); }

textarea.glass-input { resize: vertical; min-height: 100px; font-family: var(--font-body); }

/* ── Badges: status as small lights ── */
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-display);
  font-size: .63rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; padding: 4px 12px;
  border-radius: 100px; white-space: nowrap;
  border: 1px solid transparent;
}
.badge-pending  { background: rgba(227,185,120,.1);  color: var(--gold); border-color: rgba(227,185,120,.3); }
.badge-approved { background: rgba(110,207,160,.1);   color: var(--mint); border-color: rgba(110,207,160,.3); }
.badge-rejected { background: rgba(224,82,107,.1);   color: #f29aab;     border-color: rgba(224,82,107,.3); }
.badge-changes  { background: rgba(122,184,217,.1);   color: var(--cyan); border-color: rgba(122,184,217,.3); }

/* ═══════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════ */
.main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.1rem 5vw;
  display: flex; align-items: center; gap: 2rem;
  transition: background .5s, backdrop-filter .5s, border-color .5s, padding .5s, box-shadow .5s;
  border-bottom: 1px solid transparent;
  background: transparent;
}
.main-nav.scrolled {
  background: rgba(10, 16, 12, .72);
  backdrop-filter: blur(24px) saturate(160%);
  border-color: rgba(255,255,255,.06);
  box-shadow: 0 12px 40px -18px rgba(0,0,0,.7);
  padding-top: .75rem; padding-bottom: .75rem;
}

.nav-brand {
  display: flex; align-items: center; gap: .65rem;
  text-decoration: none; color: var(--ink);
  font-family: var(--font-display); font-size: 1.02rem; font-weight: 600;
  letter-spacing: -.015em; flex-shrink: 0;
  transition: color .25s;
}
.nav-brand:hover { color: var(--mint); }

.brand-leaf {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, rgba(110,207,160,.16), rgba(122,184,217,.08));
  border: 1px solid rgba(110,207,160,.3);
  box-shadow: 0 0 16px -4px var(--glow-mint), inset 0 1px 0 rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--mint);
  flex-shrink: 0;
}

.nav-links { list-style: none; display: flex; gap: 2rem; margin-left: auto; }
.nav-links a {
  font-family: var(--font-display);
  font-size: .8rem; font-weight: 500; letter-spacing: .04em;
  color: var(--text-2); text-decoration: none;
  transition: color .25s, text-shadow .3s; position: relative; padding-bottom: 3px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--mint), var(--cyan), var(--aurora));
  border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  transform: scaleX(1);
  box-shadow: none;
}

.nav-cta {
  font-family: var(--font-display);
  font-size: .74rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mint); text-decoration: none;
  padding: .5rem 1.2rem;
  border: 1px solid rgba(110,207,160,.32); border-radius: 100px;
  background: rgba(110,207,160,.04);
  transition: background .3s, border-color .3s, color .3s, box-shadow .35s;
  flex-shrink: 0;
}
.nav-cta:hover {
  background: rgba(110,207,160,.12);
  border-color: rgba(110,207,160,.55);
  color: var(--ink);
  box-shadow: 0 0 24px -6px var(--glow-mint);
}

/* ── User Menu ── */
.user-menu { position: relative; margin-left: auto; }
.user-trigger {
  display: flex; align-items: center; gap: .5rem;
  background: linear-gradient(150deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.02) 100%);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 100px;
  padding: .4rem .6rem .4rem .4rem;
  cursor: pointer;
  transition: border-color .3s, box-shadow .3s;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .82rem;
}
.user-trigger:hover {
  border-color: rgba(110,207,160,.4);
  box-shadow: 0 0 0 3px rgba(110,207,160,.09);
}
.user-avatar, .user-avatar-img {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover; border: 1px solid rgba(255,255,255,.15);
  background: var(--charcoal);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--text-3);
  flex-shrink: 0;
}
.user-avatar-placeholder {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--text-3);
  flex-shrink: 0;
}
.user-email { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chevron {
  font-size: .6rem; color: var(--text-3);
  transition: transform .25s var(--ease-out);
}
.user-trigger[aria-expanded="true"] .user-chevron { transform: rotate(180deg); }

.user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: linear-gradient(160deg, rgba(21,32,24,.96) 0%, rgba(12,18,14,.98) 100%);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: var(--radius);
  padding: .5rem;
  min-width: 220px;
  backdrop-filter: blur(24px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 24px 60px -12px rgba(0,0,0,.7);
  opacity: 0; visibility: hidden;
  transform: translateY(-8px) scale(.98);
  transition: opacity .28s var(--ease-out), transform .28s var(--ease-out), visibility .28s;
  z-index: 100;
}
.user-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.dropdown-item {
  display: flex; align-items: center; gap: .6rem;
  padding: .7rem 1rem;
  color: var(--ink);
  text-decoration: none;
  font-size: .85rem;
  border-radius: var(--radius-sm);
  transition: background .2s, color .2s, transform .25s var(--ease-out);
  width: 100%; text-align: left;
  border: none; background: transparent; cursor: pointer;
}
.dropdown-item:hover {
  background: rgba(110,207,160,.07);
  color: var(--mint);
  transform: translateX(3px);
}
.dropdown-divider { height: 1px; background: rgba(255,255,255,.08); margin: .4rem 0; }

/* ── Mobile ── */
.nav-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: .4rem;
  color: var(--text-2);
}

.mob-menu {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(8, 12, 9, .95); backdrop-filter: blur(28px);
  flex-direction: column; align-items: center; justify-content: center; gap: 1.8rem;
}
.mob-menu.open { display: flex; }
.mob-menu a {
  font-family: var(--font-display); font-size: 1.9rem; font-weight: 500;
  letter-spacing: -.02em;
  color: var(--ink); text-decoration: none;
  transition: color .25s, text-shadow .3s;
}
.mob-menu a:hover { color: var(--mint); }
.mob-close {
  position: absolute; top: 1.5rem; right: 5vw;
  background: none; border: none; color: var(--text-3);
  font-size: 1.4rem; cursor: pointer;
}

/* ═══════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(8, 12, 9, .82);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  backdrop-filter: blur(18px);
  animation: overlayIn .3s var(--ease-out);
}
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }

.modal-box {
  background: linear-gradient(165deg, var(--surface) 0%, var(--charcoal) 100%);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: boxIn .45s var(--ease-spring);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.1),
    0 50px 130px -20px rgba(0,0,0,.8),
    0 0 60px -20px var(--glow-mint);
}
@keyframes boxIn {
  from { opacity: 0; transform: scale(.9) translateY(24px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.8rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.modal-head-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; }

.modal-close {
  background: none; border: none; color: var(--text-3);
  font-size: 1rem; cursor: pointer; padding: 6px 8px;
  border-radius: 8px; transition: color .2s, background .2s, transform .3s var(--ease-spring);
}
.modal-close:hover { color: var(--ink); background: rgba(255,255,255,.06); transform: rotate(90deg); }
.modal-body { padding: 2rem; overflow-y: auto; flex: 1; }

/* auth modal internals (injected by oasis-shared.js) */
.auth-tabs {
  display: flex; gap: .4rem; margin-bottom: 1.6rem;
  background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.07);
  border-radius: 100px; padding: .3rem;
}
.auth-tab {
  flex: 1; padding: .6rem 1rem; border-radius: 100px;
  background: transparent; border: none; cursor: pointer;
  font-family: var(--font-display); font-size: .8rem; font-weight: 500;
  letter-spacing: .04em; color: var(--text-3);
  transition: background .3s, color .3s, box-shadow .3s;
}
.auth-tab:hover { color: var(--text-2); }
.auth-tab.active {
  background: linear-gradient(135deg, rgba(110,207,160,.16), rgba(122,184,217,.1));
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 0 16px -6px var(--glow-mint);
}
.auth-switch {
  margin-top: 1.2rem; text-align: center;
  font-size: .82rem; color: var(--text-3);
}
.auth-switch a { color: var(--mint); cursor: pointer; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }
.auth-success {
  background: rgba(110,207,160,.08);
  border: 1px solid rgba(110,207,160,.3);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  font-size: .88rem; color: var(--mint);
  text-align: center;
}

/* ── Panel ── */
.panel {
  background: linear-gradient(155deg, rgba(255,255,255,.06), rgba(255,255,255,.02) 60%, rgba(122,184,217,.02));
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-lg);
  box-shadow:
    inset 0 1px 0 var(--glass-edge),
    0 16px 44px -20px rgba(0,0,0,.6);
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
}
.panel h2 {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em;
  margin-bottom: 1.2rem;
  color: var(--ink);
}
.panel h3 {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 600;
  margin: 1.6rem 0 .8rem;
  color: var(--mint);
}

/* ── Back Link ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-size: .74rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-3);
  text-decoration: none;
  transition: color .2s, transform .35s var(--ease-spring);
}
.back-link:hover { color: var(--mint); transform: translateX(-4px); }

/* ── Messages ── */
.message {
  display: none; border-radius: var(--radius);
  padding: .85rem 1.1rem; font-size: .84rem; margin-bottom: 1rem;
  animation: msgSlideIn .35s var(--ease-out);
}
@keyframes msgSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.message-error {
  background: rgba(224,82,107,.1);
  border: 1px solid rgba(224,82,107,.35);
  color: #f29aab;
}
.message-success {
  background: rgba(110,207,160,.08);
  border: 1px solid rgba(110,207,160,.3);
  color: var(--mint);
}
.message.visible { display: block; }

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.site-footer {
  padding: 5rem 5vw 3rem;
  border-top: 1px solid rgba(255,255,255,.07);
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, transparent, rgba(8,12,9,.6));
}
.footer-inner {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  position: relative;
}
.footer-brand {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600;
  letter-spacing: -.02em;
  margin-bottom: .8rem; display: flex; align-items: center; gap: 10px;
}
.footer-desc {
  font-size: .88rem; font-weight: 300; line-height: 1.75;
  color: var(--text-2);
}
.footer-heading {
  font-family: var(--font-display); font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 1.1rem; color: var(--text-3);
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .65rem; }
.footer-links a {
  font-size: .88rem; font-weight: 300; color: var(--text-2);
  text-decoration: none; transition: color .2s, transform .3s var(--ease-out);
  display: inline-block;
}
.footer-links a:hover { color: var(--mint); transform: translateX(3px); }
.footer-copy {
  font-size: .75rem; color: var(--text-4);
  text-align: center; margin-top: 3rem;
}

/* ═══════════════════════════════════════════════════════
   BACK TO TOP — a rising bubble
   ═══════════════════════════════════════════════════════ */
#backToTop {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(160deg, rgba(255,255,255,.09) 0%, rgba(255,255,255,.03) 100%);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
  color: var(--mint);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; transform: translateY(20px);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), box-shadow .35s, border-color .3s;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 10px 30px -10px rgba(0,0,0,.6);
}
#backToTop.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#backToTop:hover {
  border-color: rgba(110,207,160,.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 10px 34px -8px rgba(0,0,0,.6), 0 0 26px -6px var(--glow-mint);
  transform: translateY(-3px);
}

/* ═══════════════════════════════════════════════════════
   PAGE TRANSITION VEIL
   ═══════════════════════════════════════════════════════ */
#pageTransition {
  position: fixed; inset: 0; z-index: 99999;
  background:
    radial-gradient(ellipse 80% 60% at 50% 55%, rgba(79,174,158,.08) 0%, transparent 60%),
    var(--void);
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease-smooth);
}
#pageTransition.active { opacity: 1; pointer-events: auto; }

/* ═══════════════════════════════════════════════════════
   SPINNER → LIVING LOADER
   ═══════════════════════════════════════════════════════ */
.spinner {
  display: inline-block; width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.14);
  border-top-color: var(--mint); border-radius: 50%;
  box-shadow: 0 0 12px -2px var(--glow-mint);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* organic alternative: three cells finding each other */
.loader-cells { display: inline-flex; gap: 6px; align-items: center; }
.loader-cells span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--glow-green);
  animation: cellPulse 1.4s ease-in-out infinite;
}
.loader-cells span:nth-child(2) { animation-delay: .18s; background: var(--teal); }
.loader-cells span:nth-child(3) { animation-delay: .36s; background: var(--cyan); }
@keyframes cellPulse {
  0%, 100% { transform: scale(.6); opacity: .4; }
  40% { transform: scale(1.15); opacity: 1; }
}

/* ═══════════════════════════════════════════════════════
   REVEALS (both naming schemes kept)
   ═══════════════════════════════════════════════════════ */
.reveal, .r { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease-organic), transform .9s var(--ease-organic); }
.reveal.in, .r.in { opacity: 1; transform: translateY(0); }
.reveal-scale, .rs { opacity: 0; transform: scale(.94) translateY(18px); transition: opacity .8s var(--ease-organic), transform .8s var(--ease-spring); }
.reveal-scale.in, .rs.in { opacity: 1; transform: scale(1) translateY(0); }
.reveal-left, .rl { opacity: 0; transform: translateX(-28px); transition: opacity .9s var(--ease-organic), transform .9s var(--ease-organic); }
.reveal-left.in, .rl.in { opacity: 1; transform: translateX(0); }
.reveal-right, .rr { opacity: 0; transform: translateX(28px); transition: opacity .9s var(--ease-organic), transform .9s var(--ease-organic); }
.reveal-right.in, .rr.in { opacity: 1; transform: translateX(0); }

.stagger > * {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s var(--ease-organic), transform .7s var(--ease-spring);
}
.stagger.in > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s; }
.stagger.in > *:nth-child(2) { opacity: 1; transform: none; transition-delay: .09s; }
.stagger.in > *:nth-child(3) { opacity: 1; transform: none; transition-delay: .18s; }
.stagger.in > *:nth-child(4) { opacity: 1; transform: none; transition-delay: .27s; }
.stagger.in > *:nth-child(5) { opacity: 1; transform: none; transition-delay: .36s; }
.stagger.in > *:nth-child(6) { opacity: 1; transform: none; transition-delay: .45s; }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
/* the nav carries brand + links + user menu + CTA — thin it in stages */
@media (max-width: 1260px) {
  .main-nav, #mainNav { gap: 1.2rem; }
  .nav-links { gap: 1.2rem; }
  .user-email { max-width: 100px; }
}
@media (max-width: 1080px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .user-menu { margin-left: 0; }
}
@media (max-width: 960px) {
  #authNavSlot { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
  .back-link { font-size: .72rem; }
  .message { padding: .7rem 1rem; font-size: .8rem; }
  .section-wrap { padding: 100px 5vw; }
}

/* ═══════════════════════════════════════════════════════
   REDUCED MOTION — the world holds still, nothing is lost
   ═══════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal, .r, .rs, .rl, .rr, .reveal-scale, .reveal-left, .reveal-right,
  .stagger > *, .hl-line { opacity: 1 !important; transform: none !important; }
}
