/* =========================================================
   DSP DEAL SUBMISSION — STYLES
   Type system: Geist (display + body) / Geist Mono (labels).
   Mirrors join.directsolarpro.com cinematic aesthetic.
========================================================== */

:root {
  --bg:           #050507;
  --bg-deep:      #000000;
  --ink:          #f5f5f7;
  --ink-soft:     #a8a8b0;
  --ink-faint:    #6b6b75;
  --line:         rgba(255, 255, 255, 0.08);
  --line-strong:  rgba(255, 255, 255, 0.18);
  --field-bg:     rgba(255, 255, 255, 0.025);
  --field-bg-hi:  rgba(255, 255, 255, 0.05);
  --card-bg:      rgba(8, 10, 18, 0.55);
  --shadow-soft:  0 30px 80px -20px rgba(0, 0, 0, 0.6);
  --radius:       14px;
  --radius-sm:    10px;
  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft:    cubic-bezier(0.4, 0, 0.2, 1);

  --font-display: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'Geist', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono:    'Geist Mono', 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: #000000;
}

html, body {
  color: var(--ink);
  font-family: var(--font-body);
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100%;
}

body {
  background: transparent;
  min-height: 100dvh;
}

/* =========================================================
   BACKGROUND LAYERS
========================================================== */

.bg-base, .bg-mesh, .bg-particles, .bg-horizon, .bg-grain, .bg-aura, .bg-flash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-base {
  background: #000000;
  z-index: -5;
}

.bg-mesh { z-index: -4; overflow: hidden; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  will-change: transform;
}

.orb-1 {
  width: 130vw; height: 80vh;
  bottom: -40vh; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center,
    rgba(160, 185, 220, 0.32) 0%,
    rgba(100, 130, 180, 0.18) 22%,
    rgba(60, 80, 130, 0.08) 40%,
    transparent 62%);
  opacity: 0.9;
  animation: pulse-atmosphere 16s var(--ease) infinite alternate;
}

.orb-2 {
  width: 70vw; height: 60vh;
  bottom: -25vh; left: -22vw;
  background: radial-gradient(ellipse at center,
    rgba(80, 70, 140, 0.22) 0%,
    rgba(50, 45, 100, 0.10) 35%,
    transparent 65%);
  opacity: 0.7;
  animation: drift-2 38s var(--ease) infinite alternate;
}

.orb-3 {
  width: 65vw; height: 55vh;
  bottom: -25vh; right: -22vw;
  background: radial-gradient(ellipse at center,
    rgba(140, 90, 70, 0.22) 0%,
    rgba(100, 60, 50, 0.10) 35%,
    transparent 65%);
  opacity: 0.55;
  animation: drift-3 44s var(--ease) infinite alternate;
}

.orb-4 {
  width: 100vw; height: 60vh;
  top: -20vh; left: 0;
  background: radial-gradient(ellipse at 50% 70%,
    rgba(30, 30, 60, 0.25) 0%,
    transparent 60%);
  opacity: 0.6;
  animation: drift-4 60s var(--ease) infinite alternate;
}

@keyframes pulse-atmosphere {
  from { opacity: 0.78; transform: translateX(-50%) scale(1); }
  to   { opacity: 0.95; transform: translateX(-50%) scale(1.03); }
}
@keyframes drift-2 {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(8vw, -4vh, 0); }
}
@keyframes drift-3 {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-6vw, -3vh, 0); }
}
@keyframes drift-4 {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(3vw, 2vh, 0); }
}

.bg-particles { z-index: -3; }

/* Drifting aura — wide bright spotlight that visibly sways left/right */
.bg-aura {
  z-index: -3.5;
  overflow: hidden;
}
.bg-aura::before {
  content: '';
  position: absolute;
  width: 110vw;
  height: 90vh;
  top: 55%;
  left: 50%;
  background: radial-gradient(ellipse at center,
    rgba(190, 215, 250, 0.32) 0%,
    rgba(150, 185, 230, 0.20) 18%,
    rgba(100, 140, 200, 0.10) 38%,
    rgba(70, 100, 170, 0.05) 55%,
    transparent 72%);
  filter: blur(60px);
  border-radius: 50%;
  animation: aura-drift 9s var(--ease-soft) infinite alternate;
  will-change: transform, opacity;
}
@keyframes aura-drift {
  0%   { transform: translate(-50%, -50%) translateX(-22vw) scale(0.92); opacity: 0.7; }
  50%  { transform: translate(-50%, -50%) translateX(0)     scale(1.08); opacity: 1; }
  100% { transform: translate(-50%, -50%) translateX(22vw)  scale(0.92); opacity: 0.7; }
}

/* Horizon */
.bg-horizon {
  z-index: -2;
  overflow: hidden;
  --horizon-y: 78%;
  opacity: 0;
  animation: horizon-rise 2400ms var(--ease) 200ms forwards;
}
@keyframes horizon-rise {
  0%   { opacity: 0; }
  35%  { opacity: 0.7; }
  100% { opacity: 1; }
}
.bg-horizon::before {
  content: '';
  position: absolute;
  left: 50%;
  top: var(--horizon-y);
  width: 280vw;
  height: 280vw;
  border-radius: 50%;
  transform: translateX(-50%);
  background: #000000;
  box-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.95),
    0 -4px 14px rgba(230, 235, 245, 0.55),
    0 -18px 48px rgba(180, 195, 225, 0.32),
    0 -50px 120px rgba(120, 140, 190, 0.20),
    0 -110px 240px rgba(80, 100, 160, 0.13),
    0 -200px 380px rgba(60, 80, 140, 0.07);
  pointer-events: none;
}

.bg-flash {
  z-index: -1.5;
  background: radial-gradient(ellipse at 50% 70%,
    rgba(255, 255, 255, 0.10) 0%,
    rgba(180, 210, 255, 0.06) 30%,
    transparent 65%);
  opacity: 0;
  pointer-events: none;
  animation: load-brighten 2600ms var(--ease) 80ms 1 forwards;
}
@keyframes load-brighten {
  0%   { opacity: 0;    transform: scale(1.3); }
  35%  { opacity: 0.9;  transform: scale(1.05); }
  70%  { opacity: 0.5;  transform: scale(1.0); }
  100% { opacity: 0;    transform: scale(1.0); }
}

.bg-grain {
  z-index: -1;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}

/* =========================================================
   FIXED CORNER MARKS
========================================================== */

.corner {
  position: fixed;
  z-index: 10;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.corner-tl {
  top: 26px;
  left: 30px;
  gap: 10px;
}

.corner-tr {
  top: 26px;
  right: 30px;
}

.corner-burst {
  width: 26px;
  height: 26px;
  display: block;
  object-fit: contain;
}

.corner-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.24em;
  color: var(--ink);
  line-height: 1;
  text-transform: uppercase;
}

.corner-meta {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

/* =========================================================
   STAGE / LAYOUT
========================================================== */

.stage {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto;
  padding: clamp(80px, 12vh, 110px) 22px clamp(48px, 8vw, 80px);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 5vw, 40px);
}

/* =========================================================
   HERO
========================================================== */

.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.display {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.04em;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01';
}

.display-line {
  display: block;
  font-size: clamp(34px, 6.4vw, 68px);
  font-weight: 900;
  letter-spacing: -0.045em;
  color: var(--ink);
}

.display-line .word {
  background: linear-gradient(
    100deg,
    #d8d8de 0%,
    #f5f5f7 35%,
    #ffffff 50%,
    #f5f5f7 65%,
    #d8d8de 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: shimmer 8s linear infinite;
}

@keyframes shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -100% center; }
}

.display-sub {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(13px, 1.9vw, 19px);
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  text-transform: uppercase;
  white-space: nowrap;
}

.word {
  display: inline-block;
  margin-right: 0.18em;
}
.word:last-child { margin-right: 0; }
.display-sub .word { margin-right: 0.32em; }

.kicker {
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: 0.005em;
}

.rule {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 100%);
  margin-top: 20px;
}

/* =========================================================
   FORM CARD
========================================================== */

.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 5vw, 32px);
  backdrop-filter: blur(32px) saturate(160%);
  -webkit-backdrop-filter: blur(32px) saturate(160%);
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hidden { display: none !important; }
.field.hidden { display: none; }

.field label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.field label .req {
  color: rgba(180, 200, 240, 0.55);
  margin-left: 2px;
  letter-spacing: 0;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: var(--field-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.field textarea {
  height: auto;
  min-height: 88px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.5;
  font-family: var(--font-body);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(168, 168, 176, 0.55);
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  background: var(--field-bg-hi);
  border-color: rgba(255, 255, 255, 0.14);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--line-strong);
  background: var(--field-bg-hi);
}

.field input.invalid,
.field select.invalid,
.field textarea.invalid {
  border-color: rgba(248, 113, 113, 0.5);
}

/* Locked / read-only display value (Sales Org) */
.locked-value {
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: var(--field-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.005em;
}

/* Native date picker — make it match dark fields */
input[type="date"] {
  color-scheme: dark;
}

.select-wrap { position: relative; }
.select-wrap select { padding-right: 36px; cursor: pointer; }
.select-chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-soft);
  pointer-events: none;
}
.field select option {
  background: #15151a;
  color: var(--ink);
}
.field select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Custom checkbox */
.check-label {
  display: flex !important;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: var(--ink) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  user-select: none;
  padding: 4px 0;
}

.check-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.check-box {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 6px;
  background: var(--field-bg);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: background 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease);
}

.check-box svg {
  width: 14px;
  height: 14px;
  display: block;
}

.check-label:hover .check-box {
  background: var(--field-bg-hi);
  border-color: rgba(255, 255, 255, 0.28);
}

.check-label input[type="checkbox"]:checked + .check-box {
  background: var(--ink);
  border-color: var(--ink);
  color: #0a0a0c;
}

.check-label input[type="checkbox"]:focus-visible + .check-box {
  outline: 2px solid rgba(180, 210, 255, 0.6);
  outline-offset: 2px;
}

.check-text {
  line-height: 1.4;
}

/* Submit button */
.submit-btn {
  margin-top: 4px;
  height: 52px;
  background: var(--ink);
  color: #0a0a0c;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 220ms var(--ease), box-shadow 320ms var(--ease);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 36px -8px rgba(255, 255, 255, 0.28);
}
.submit-btn:active { transform: translateY(0); }
.submit-btn:disabled {
  opacity: 0.55;
  cursor: progress;
  transform: none;
}
.submit-arrow { transition: transform 240ms var(--ease); }
.submit-btn:hover .submit-arrow { transform: translateX(4px); }
.submit-btn.loading .submit-label::after { content: '...'; }

/* Ghost button (secondary actions on confirm screen) */
.ghost-btn {
  height: 44px;
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
}
.ghost-btn:hover {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.22);
  background: var(--field-bg-hi);
}
.ghost-btn-quiet {
  border-color: transparent;
  background: transparent;
}
.ghost-btn-quiet:hover {
  color: var(--ink-soft);
  border-color: var(--line);
}

/* =========================================================
   DOCUMENTS DIVIDER (between general fields and uploads)
========================================================== */

.docs-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 8px 0 4px;
  position: relative;
}

.docs-divider::before,
.docs-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.16) 50%,
    transparent 100%);
}

.docs-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* =========================================================
   FILE UPLOAD WIDGET
========================================================== */

.upload-widget {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.upload-trigger {
  /* Reset .field label inheritance (was ALL CAPS mono small text) */
  height: 48px;
  padding: 0 16px;
  background: var(--field-bg);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--ink-soft);
  cursor: pointer;
  font-family: var(--font-mono) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  transition: border-color 200ms var(--ease), background 200ms var(--ease), color 200ms var(--ease);
  user-select: none;
}

.upload-trigger:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: var(--field-bg-hi);
  color: var(--ink);
}

.upload-trigger:active {
  transform: translateY(1px);
}

.upload-trigger svg {
  flex-shrink: 0;
  opacity: 0.85;
}

.upload-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.upload-list:empty {
  display: none;
}

.upload-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--field-bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  font-family: var(--font-body);
}

.upload-item-name {
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.upload-item-size {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.upload-item-remove {
  background: none;
  border: none;
  color: var(--ink-faint);
  cursor: pointer;
  padding: 4px 6px;
  font-size: 16px;
  line-height: 1;
  border-radius: 4px;
  transition: color 160ms var(--ease), background 160ms var(--ease);
  flex-shrink: 0;
}

.upload-item-remove:hover {
  color: rgba(248, 113, 113, 0.95);
  background: rgba(248, 113, 113, 0.08);
}

/* Hint text under upload widget (and other fields if needed) */
.field-hint {
  font-family: var(--font-body);
  font-size: 11.5px;
  color: var(--ink-faint);
  line-height: 1.5;
  margin-top: 2px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

/* Submit button "uploading" state */
.submit-btn.uploading {
  opacity: 0.85;
  cursor: progress;
}
.submit-btn.uploading .submit-label::after {
  content: '';
  display: inline-block;
  width: 1.6em;
  text-align: left;
  animation: dots 1.4s steps(4, end) infinite;
}
@keyframes dots {
  0%   { content: ''; }
  25%  { content: '.'; }
  50%  { content: '..'; }
  75%  { content: '...'; }
  100% { content: ''; }
}

.fineprint {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--ink-faint);
  text-align: center;
  line-height: 1.55;
  margin-top: 4px;
}

.fineprint code {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 1px 6px;
  background: var(--field-bg-hi);
  border-radius: 4px;
  color: var(--ink-soft);
}

/* =========================================================
   CONFIRMATION CARD
========================================================== */

.confirm.hidden { display: none; }

.confirm {
  align-items: stretch;
  text-align: center;
}

.confirm-mark {
  align-self: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(168, 240, 200, 0.10);
  border: 1px solid rgba(168, 240, 200, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a8f0c8;
  margin-bottom: 6px;
}

.confirm-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 5vw, 40px);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 4px;
}

.confirm-sub {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 6px;
  line-height: 1.5;
}

.confirm-summary {
  background: var(--field-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--ink);
  margin: 6px 0 4px;
}
.confirm-summary .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.confirm-summary .row:last-child { border-bottom: none; }
.confirm-summary .key {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-soft);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.confirm-summary .val {
  text-align: right;
  word-break: break-word;
  color: var(--ink);
}

.tron-btn {
  margin-top: 8px;
}

/* =========================================================
   FOOTER
========================================================== */

.footer {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-faint);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer .dot { opacity: 0.35; }

/* =========================================================
   FADE-IN ANIMATIONS
========================================================== */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 1100ms var(--ease),
    transform 1100ms var(--ease);
  transition-delay: 0ms;
  will-change: opacity, transform;
}

.fade-in.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  .orb, .bg-aura::before, .bg-flash { animation: none; }
  .bg-horizon { opacity: 1; animation: none; }
}

/* =========================================================
   MOBILE — performance optimizations
========================================================== */

@media (max-width: 768px), (pointer: coarse) {
  .orb { filter: blur(48px); }
  .bg-aura::before { filter: blur(32px); }

  .card {
    backdrop-filter: blur(14px) saturate(125%);
    -webkit-backdrop-filter: blur(14px) saturate(125%);
  }

  .display-line .word {
    animation: none;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    color: var(--ink);
    -webkit-text-fill-color: var(--ink);
  }

  .fade-in {
    transform: none;
    transition: opacity 700ms var(--ease);
  }
  .fade-in.in-view {
    transform: none;
  }

  .bg-horizon::before {
    box-shadow:
      0 -1px 0 rgba(255, 255, 255, 0.9),
      0 -8px 24px rgba(220, 235, 255, 0.4),
      0 -30px 80px rgba(140, 170, 220, 0.22),
      0 -90px 180px rgba(80, 110, 170, 0.10);
  }

  .bg-aura::before { animation-duration: 12s; }

  .bg-flash { animation: none; opacity: 0; }
}

@media (max-width: 600px) {
  .corner-tl { top: 20px; left: 20px; gap: 8px; }
  .corner-tr { top: 20px; right: 20px; }
  .corner-burst { width: 22px; height: 22px; }
  .corner-wordmark { font-size: 16px; letter-spacing: 0.20em; }
  .corner-meta { font-size: 9.5px; }

  .stage { padding-top: 84px; }

  .display-line { font-size: clamp(48px, 13vw, 64px); }
  .display-sub  { font-size: clamp(13px, 3.4vw, 17px); letter-spacing: 0.20em; }
}

@media (max-width: 380px) {
  .stage { padding: 80px 18px 40px; }
  .display-line { font-size: 50px; }
  .display-sub  { font-size: 13px; }
}
