/* ===================================================================
   SpireEdu Services — Design tokens & base styles
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Manrope:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&family=Pacifico&display=swap');

:root{
  /* Color tokens — SpireEdu brand palette (derived from logo purple #753192) */
  --navy-deep:   #2B0E3B;   /* deepest brand purple — header/hero/footer bg */
  --navy:        #753192;   /* brand purple (exact logo color) */
  --navy-soft:   #8F4EAE;   /* lighter brand purple — hover/secondary surfaces */
  --paper:       #F8F6FA;
  --paper-dim:   #EFE9F3;
  --teal:        #B565D6;   /* bright orchid accent — pops on dark purple bg */
  --teal-soft:   #F2E6F8;   /* pale lavender tint — icon chips on white cards */
  --amber:       #F0A500;   /* gold — primary CTA, pairs with brand purple */
  --ink:         #1C1220;
  --ink-soft:    #564A5C;
  --ink-faint:   #8A7C90;
  --line:        #E7DEED;
  --line-dark:   rgba(255,255,255,0.14);
  --white:       #FFFFFF;

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
  --font-script: 'Pacifico', cursive; /* stand-in for the "Caliway" logo font — see note in docs */

  /* Spacing / layout */
  --container: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img,svg{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family: var(--font-display); margin:0; line-height:1.12; font-weight:600; }
p{ margin:0; }
button{ font-family:inherit; cursor:pointer; }

:focus-visible{
  outline: 2.5px solid var(--teal);
  outline-offset: 3px;
}

.container{
  width:100%;
  max-width: var(--container);
  margin:0 auto;
  padding: 0 24px;
}

.eyebrow{
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight:700;
  font-size:15px;
  border:1.5px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space:nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{
  background: var(--amber);
  color: var(--navy-deep);
  box-shadow: 0 8px 20px -6px rgba(240,165,0,0.55);
}
.btn-primary:hover{ box-shadow: 0 12px 26px -6px rgba(240,165,0,0.7); }
.btn-ghost{
  background: transparent;
  color: var(--white);
  border-color: var(--line-dark);
}
.btn-ghost:hover{ border-color: var(--white); }
.btn-dark{
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover{ background: var(--navy-soft); }
.btn-outline{
  background:transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn-outline:hover{ border-color: var(--navy); }

/* ---------------- Header ---------------- */
.site-header{
  position: sticky; top:0; z-index: 500;
  background: rgba(43,14,59,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding: 16px 0;
}
.logo{
  display:flex; align-items:center; gap:10px;
  color:var(--white); font-size:21px;
}
.logo .logo-icon{
  width:40px; height:40px; flex-shrink:0; display:block;
}
.logo .logo-word{
  font-family: var(--font-script);
  font-size: 26px;
  line-height:1;
  color: var(--white);
  white-space: nowrap;
  padding-top: 4px; /* optical alignment against the script font's baseline */
}
.site-footer .logo .logo-word{ color: var(--white); }
@media (max-width: 400px){
  .logo .logo-word{ display:none; } /* icon-only on very narrow phones */
}
.nav-links{ display:flex; align-items:center; gap:32px; }
.nav-links a{
  color: rgba(255,255,255,0.82); font-size:14.5px; font-weight:600;
  transition: color .15s ease;
}
.nav-links a:hover{ color: var(--white); }
.nav-actions{ display:flex; align-items:center; gap:12px; }
.nav-toggle{
  display:none; background:none; border:none; color:var(--white); padding:6px;
}
.nav-toggle svg{ width:26px; height:26px; }

@media (max-width: 880px){
  .nav-links{
    position:absolute; top:100%; left:0; right:0;
    background: var(--navy-deep);
    flex-direction:column; align-items:flex-start;
    padding: 8px 24px 20px; gap:2px;
    border-bottom:1px solid var(--line-dark);
    display:none;
  }
  .nav-links.open{ display:flex; }
  .nav-links a{ padding:12px 0; width:100%; border-bottom:1px solid rgba(255,255,255,0.06); }
  .nav-toggle{ display:flex; }
  .nav-actions .btn-primary{ padding:10px 18px; font-size:14px; }
}

/* ---------------- Hero ---------------- */
.hero{
  background:
    radial-gradient(1100px 520px at 82% -10%, rgba(181,101,214,0.25), transparent 60%),
    linear-gradient(180deg, var(--navy-deep), var(--navy) 70%);
  color: var(--white);
  padding: 84px 0 0;
  overflow:hidden;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items:center;
  padding-bottom: 64px;
}
.hero-eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--font-mono); font-size:12.5px; letter-spacing:0.1em; text-transform:uppercase;
  color: var(--teal); background: rgba(181,101,214,0.14);
  border:1px solid rgba(181,101,214,0.35);
  padding:7px 14px; border-radius:999px; margin-bottom:22px;
}
.hero-eyebrow .dot{
  width:7px; height:7px; border-radius:50%; background: var(--teal);
  animation: pulse 1.8s infinite;
}
@keyframes pulse{
  0%,100%{ opacity:1; box-shadow:0 0 0 0 rgba(181,101,214,0.55); }
  50%{ opacity:0.75; box-shadow:0 0 0 6px rgba(181,101,214,0); }
}
.hero h1{
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  letter-spacing: -0.01em;
  max-width: 15ch;
}
.hero h1 .accent{ color: var(--teal); font-style: italic; }
.hero p.lede{
  margin-top:22px; font-size:17.5px; color: rgba(255,255,255,0.72);
  max-width: 46ch;
}
.hero-ctas{ display:flex; gap:14px; margin-top: 34px; flex-wrap:wrap; }

.hero-stats{
  display:flex; gap: 34px; margin-top: 56px; flex-wrap:wrap;
}
.hero-stats .stat b{
  display:block; font-family: var(--font-display); font-size: 28px; color:var(--white);
}
.hero-stats .stat span{
  font-family: var(--font-mono); font-size:11.5px; color: rgba(255,255,255,0.55);
  text-transform:uppercase; letter-spacing:0.08em;
}

/* Signature element: live global coverage panel */
.coverage-card{
  background: rgba(255,255,255,0.045);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 26px;
  backdrop-filter: blur(6px);
}
.coverage-card .cc-head{
  display:flex; justify-content:space-between; align-items:center; margin-bottom:18px;
}
.coverage-card .cc-head .title{ font-weight:700; color:var(--white); font-size:15px; }
.coverage-card .cc-head .live{
  font-family: var(--font-mono); font-size:11px; color: var(--teal);
  display:flex; align-items:center; gap:6px;
}
.tz-row{
  display:flex; align-items:center; justify-content:space-between;
  padding: 11px 0; border-top: 1px solid var(--line-dark);
}
.tz-row:first-of-type{ border-top:none; }
.tz-country{ display:flex; align-items:center; gap:10px; }
.tz-flag{
  width:26px; height:26px; border-radius:50%; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background: var(--navy-soft); font-size:12px;
}
.tz-name{ font-size:13.5px; color: rgba(255,255,255,0.85); font-weight:600; }
.tz-time{ font-family: var(--font-mono); font-size:13.5px; color: var(--white); }
.tz-status{ font-size:10.5px; font-family:var(--font-mono); padding:3px 8px; border-radius:999px; }
.tz-status.on{ background: rgba(181,101,214,0.18); color: var(--teal); }
.tz-status.off{ background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.4); }

.marquee-wrap{
  border-top: 1px solid var(--line-dark);
  overflow:hidden; padding: 18px 0;
}
.marquee{
  display:flex; gap:52px; white-space:nowrap;
  animation: scroll 28s linear infinite;
  font-family: var(--font-mono); font-size:12.5px; color: rgba(255,255,255,0.45);
  letter-spacing:0.04em; text-transform:uppercase;
}
@keyframes scroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

@media (max-width: 880px){
  .hero-grid{ grid-template-columns: 1fr; padding-bottom:40px; }
  .hero{ padding-top:64px; }
  .hero-stats{ gap:26px; }
}

/* ---------------- Sections (generic) ---------------- */
section{ padding: 88px 0; }
.section-head{ max-width: 640px; margin-bottom: 52px; }
.section-head h2{ font-size: clamp(1.7rem, 3vw, 2.4rem); margin-top:14px; }
.section-head p{ margin-top:14px; color: var(--ink-soft); font-size:16px; }
.section-alt{ background: var(--white); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.section-dark{ background: var(--navy-deep); color:var(--white); }
.section-dark .section-head p{ color: rgba(255,255,255,0.65); }

/* Services grid */
.services-grid{
  display:grid; grid-template-columns: repeat(3, 1fr); gap:22px;
}
.service-card{
  background: var(--white);
  border:1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.service-card:hover{
  border-color: var(--teal);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -18px rgba(43,14,59,0.22);
}
.service-card .icon{
  width:44px; height:44px; border-radius:11px;
  background: var(--teal-soft); color: var(--teal);
  display:flex; align-items:center; justify-content:center; margin-bottom:18px;
}
.service-card .icon svg{ width:22px; height:22px; }
.service-card h3{ font-size:18px; margin-bottom:8px; }
.service-card p{ color: var(--ink-soft); font-size:14.5px; }
.service-card .tags{ display:flex; flex-wrap:wrap; gap:6px; margin-top:14px; }
.service-card .tags span{
  font-family: var(--font-mono); font-size:10.5px; text-transform:uppercase;
  background: var(--paper-dim); color: var(--ink-faint); padding:4px 8px; border-radius:6px;
}

@media (max-width: 980px){
  .services-grid{ grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 620px){
  .services-grid{ grid-template-columns: 1fr; }
  section{ padding: 60px 0; }
}

/* How it works */
.steps{ display:grid; grid-template-columns: repeat(4,1fr); gap:20px; counter-reset: step; }
.step{ position:relative; padding-top: 44px; }
.step::before{
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono); font-size:13px; color: var(--teal); font-weight:600;
  position:absolute; top:0; left:0;
}
.step h4{ font-size:16.5px; margin-bottom:8px; }
.step p{ color: var(--ink-soft); font-size:14px; }
@media (max-width: 880px){ .steps{ grid-template-columns: repeat(2,1fr); row-gap:34px; } }
@media (max-width: 520px){ .steps{ grid-template-columns: 1fr; } }

/* Freelancer teaser */
.split{ display:grid; grid-template-columns: 1fr 1fr; gap:56px; align-items:center; }
@media (max-width: 880px){ .split{ grid-template-columns: 1fr; gap:32px; } }
.pill-list li{
  display:flex; gap:12px; align-items:flex-start; padding:10px 0; font-size:15px; color: var(--ink-soft);
}
.pill-list li svg{ width:19px; height:19px; color: var(--teal); flex-shrink:0; margin-top:2px; }

/* Testimonials */
.testi-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:22px; }
.testi-card{
  background: var(--navy-soft); border-radius: var(--radius-md); padding:26px;
  border:1px solid var(--line-dark);
}
.testi-card p{ font-size:15px; color: rgba(255,255,255,0.85); }
.testi-card .who{ display:flex; align-items:center; gap:10px; margin-top:20px; }
.testi-card .avatar{
  width:36px; height:36px; border-radius:50%; background: var(--teal); color:var(--navy-deep);
  display:flex; align-items:center; justify-content:center; font-weight:700; font-size:14px;
}
.testi-card .who b{ font-size:13.5px; color:var(--white); display:block; }
.testi-card .who span{ font-size:12px; color: rgba(255,255,255,0.5); }
@media (max-width: 880px){ .testi-grid{ grid-template-columns:1fr; } }

/* Trust / compliance strip */
.trust-strip{
  display:flex; flex-wrap:wrap; gap:14px; justify-content:center;
}
.trust-chip{
  display:flex; align-items:center; gap:8px;
  border:1px solid var(--line); border-radius:999px; padding:9px 16px;
  font-size:13px; font-weight:600; color: var(--ink-soft); background:var(--white);
}
.trust-chip svg{ width:16px; height:16px; color: var(--teal); }

/* CTA band */
.cta-band{
  background: linear-gradient(120deg, var(--navy), var(--navy-deep));
  color:var(--white); border-radius: var(--radius-lg);
  padding: 52px; display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap;
}
.cta-band h3{ font-size: clamp(1.4rem,2.6vw,1.9rem); max-width:22ch; }
.cta-band p{ color: rgba(255,255,255,0.65); margin-top:10px; max-width:42ch; }

/* Footer */
.site-footer{ background: var(--navy-deep); color: rgba(255,255,255,0.7); padding: 64px 0 28px; }
.footer-grid{
  display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap:40px; padding-bottom:44px;
  border-bottom:1px solid var(--line-dark);
}
.footer-grid h5{
  font-family: var(--font-mono); font-size:12px; letter-spacing:0.08em; text-transform:uppercase;
  color: rgba(255,255,255,0.4); margin-bottom:18px; font-weight:500;
}
.footer-grid ul li{ padding:7px 0; }
.footer-grid ul a{ font-size:14px; color: rgba(255,255,255,0.72); }
.footer-grid ul a:hover{ color: var(--white); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center; padding-top:26px; flex-wrap:wrap; gap:14px;
  font-size:13px; color: rgba(255,255,255,0.4);
}
.footer-bottom .legal-links{ display:flex; gap:18px; }
@media (max-width: 880px){ .footer-grid{ grid-template-columns: 1fr 1fr; row-gap:32px; } }
@media (max-width: 560px){ .footer-grid{ grid-template-columns: 1fr; } }

/* ---------------- Chatbot widget ---------------- */
#se-chat-launcher{
  position: fixed; bottom: 24px; right: 24px; z-index: 900;
  width: 60px; height:60px; border-radius:50%;
  background: var(--amber); color: var(--navy-deep);
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 10px 26px -6px rgba(240,165,0,0.6);
  border:none; transition: transform .15s ease;
}
#se-chat-launcher:hover{ transform: scale(1.06); }
#se-chat-launcher svg{ width:26px; height:26px; }
#se-chat-launcher .badge{
  position:absolute; top:-4px; right:-4px; background:var(--teal); color:var(--white);
  font-size:10px; font-weight:700; width:18px; height:18px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; font-family:var(--font-mono);
}

#se-chat-window{
  position: fixed; bottom: 98px; right: 24px; z-index: 900;
  width: 360px; max-width: calc(100vw - 32px);
  height: 500px; max-height: calc(100vh - 140px);
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: 0 26px 60px -20px rgba(43,14,59,0.45);
  display:flex; flex-direction:column; overflow:hidden;
  border:1px solid var(--line);
  transform-origin: bottom right;
  transition: transform .18s ease, opacity .18s ease;
}
#se-chat-window.hidden{ transform: scale(0.9); opacity:0; pointer-events:none; }

.se-chat-head{
  background: var(--navy-deep); color:var(--white); padding:16px 18px;
  display:flex; align-items:center; justify-content:space-between;
}
.se-chat-head .who{ display:flex; align-items:center; gap:10px; }
.se-chat-head .who .dot{ width:8px;height:8px;border-radius:50%; background:var(--teal); }
.se-chat-head .who b{ font-size:14.5px; display:block; }
.se-chat-head .who span{ font-size:11.5px; color: rgba(255,255,255,0.55); }
.se-chat-head button{ background:none; border:none; color: rgba(255,255,255,0.7); padding:4px; }
.se-chat-head button svg{ width:20px; height:20px; }

.se-chat-body{ flex:1; overflow-y:auto; padding: 16px; background: var(--paper); }
.se-msg{ max-width: 84%; margin-bottom:12px; font-size:13.8px; line-height:1.45; }
.se-msg.bot{
  background: var(--white); border:1px solid var(--line); padding:10px 13px; border-radius: 4px 14px 14px 14px;
}
.se-msg.user{
  background: var(--navy); color:var(--white); padding:10px 13px; border-radius: 14px 4px 14px 14px;
  margin-left:auto;
}
.se-quick-replies{ display:flex; flex-wrap:wrap; gap:8px; margin: 6px 0 14px; }
.se-quick-replies button{
  border:1px solid var(--line); background:var(--white); border-radius:999px;
  padding:7px 13px; font-size:12.5px; font-weight:600; color:var(--navy);
}
.se-quick-replies button:hover{ border-color: var(--teal); color: var(--teal); }

.se-chat-form{ border-top:1px solid var(--line); padding:12px; background:var(--white); }
.se-chat-form.stacked{ display:flex; flex-direction:column; gap:8px; }
.se-chat-form input, .se-chat-form select, .se-chat-form textarea{
  width:100%; border:1px solid var(--line); border-radius:8px; padding:9px 11px;
  font-family:inherit; font-size:13.5px; background: var(--paper);
}
.se-chat-form .row{ display:flex; gap:8px; }
.se-chat-form .row input, .se-chat-form .row button{ flex:1; }
.se-send-btn{
  background: var(--amber); color: var(--navy-deep); border:none; border-radius:8px;
  font-weight:700; font-size:13.5px; padding: 9px 14px;
}
.se-chat-note{ font-size:10.5px; color: var(--ink-faint); margin-top:6px; text-align:center; }

@media (max-width: 480px){
  #se-chat-window{ width: calc(100vw - 24px); right:12px; bottom:86px; }
  #se-chat-launcher{ right:16px; bottom:16px; }
}

/* ---------------- Full-page forms (application / payment / contact) ---------------- */
.page-hero{
  background: linear-gradient(180deg, var(--navy-deep), var(--navy) 85%);
  color: var(--white); padding: 64px 0 56px;
}
.page-hero .eyebrow{ margin-bottom:12px; display:inline-block; }
.page-hero h1{ font-size: clamp(1.9rem, 3.6vw, 2.8rem); max-width: 22ch; }
.page-hero p{ margin-top:14px; color: rgba(255,255,255,0.68); max-width: 56ch; font-size:16px; }

.form-shell{ padding: 56px 0 90px; }
.form-card{
  background: var(--white); border:1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px; max-width: 760px; margin: 0 auto;
  box-shadow: 0 20px 50px -30px rgba(43,14,59,0.2);
}
.form-section-title{
  font-family: var(--font-mono); font-size:12px; text-transform:uppercase; letter-spacing:0.08em;
  color: var(--teal); font-weight:600; margin: 30px 0 14px;
  padding-top: 22px; border-top: 1px solid var(--line);
}
.form-section-title:first-child{ margin-top:0; padding-top:0; border-top:none; }
.field-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:16px; }
.field-grid.cols-3{ grid-template-columns: 1fr 1fr 1fr; }
.field{ display:flex; flex-direction:column; gap:6px; }
.field.full{ grid-column: 1 / -1; }
.field label{ font-size:13px; font-weight:700; color: var(--ink); }
.field .hint{ font-size:11.5px; color: var(--ink-faint); font-weight:400; margin-left:4px; }
.field input, .field select, .field textarea{
  border:1px solid var(--line); border-radius:10px; padding:11px 13px;
  font-family:inherit; font-size:14.5px; background: var(--paper); color: var(--ink);
  width:100%;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none; border-color: var(--teal); background: var(--white);
  box-shadow: 0 0 0 3px var(--teal-soft);
}
.field-other{ display:none; margin-top:8px; }
.field-other.show{ display:block; }

.form-submit-row{ display:flex; align-items:center; gap:16px; margin-top:30px; flex-wrap:wrap; }
.form-msg{ border-radius: var(--radius-md); padding: 18px 20px; font-size:14.5px; margin-top:20px; }
.form-msg.success{ background: var(--teal-soft); border:1px solid rgba(181,101,214,0.3); color:#5B2170; }
.form-msg.error{ background: #FDEBEB; border:1px solid #F3B4B4; color:#9B2C2C; }
.form-msg .id-box{
  display:flex; gap:10px; margin-top:12px; flex-wrap:wrap;
}
.form-msg .id-chip{
  font-family: var(--font-mono); background: var(--white); border:1px solid rgba(181,101,214,0.3);
  border-radius:8px; padding:8px 12px; font-size:13px; font-weight:600;
}

@media (max-width: 640px){
  .field-grid, .field-grid.cols-3{ grid-template-columns: 1fr; }
  .form-card{ padding: 24px; }
}

/* ---------------- Cross-device refinement pass ---------------- */
/* Images never overflow their container on any device */
img{ max-width: 100%; height: auto; }

/* Tablet range (iPad portrait/landscape, ~768–1024px):
   tighten container padding and hero spacing slightly so nothing
   feels too sparse or too cramped at this in-between size. */
@media (max-width: 1024px) and (min-width: 881px){
  .hero-grid{ gap: 32px; }
  .services-grid{ gap: 18px; }
  .container{ padding: 0 20px; }
}

/* Small/older phones (iPhone SE and similar, ≤ 375px):
   drop font sizes and spacing another notch for comfortable reading. */
@media (max-width: 375px){
  .container{ padding: 0 16px; }
  .hero{ padding-top: 56px; }
  .hero h1{ font-size: 1.9rem; }
  .hero p.lede{ font-size: 16px; }
  section{ padding: 44px 0; }
  .form-card{ padding: 18px; }
  .cta-band{ padding: 32px 22px; }
  .btn{ padding: 12px 20px; font-size: 14px; }
}

/* Landscape phones (short viewport height): keep the sticky chat
   launcher from covering content and shrink the hero a touch. */
@media (max-height: 480px) and (orientation: landscape){
  #se-chat-window{ height: 84vh; bottom: 70px; }
  .hero{ padding-top: 44px; }
}

/* ---------------- Homepage intro sequence ---------------- */
#introOverlay{
  position: fixed; inset: 0; z-index: 2000;
  background:
    radial-gradient(1200px 600px at 50% 15%, rgba(181,101,214,0.18), transparent 60%),
    linear-gradient(180deg, var(--navy-deep), #1C0827 85%);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  cursor: pointer;
  transition: opacity 0.6s ease;
}
#introOverlay.intro-hide{ opacity:0; pointer-events:none; }

.intro-type{
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--white);
  font-size: clamp(1.4rem, 4.2vw, 2.4rem);
  text-align:center;
  padding: 0 24px;
  min-height: 1.4em;
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.intro-type.intro-exit{ opacity:0; transform: translateX(60px); }
.intro-cursor{
  display:inline-block; width: 2px; margin-left:3px;
  background: var(--teal);
  animation: introBlink 0.9s steps(1) infinite;
}
@keyframes introBlink{ 50%{ opacity:0; } }

.intro-brand{
  position:absolute;
  display:flex; align-items:center; gap:16px;
  opacity:0; transform: scale(0.85);
  transition: opacity 0.7s ease, transform 0.9s cubic-bezier(.2,.8,.2,1), top 1.1s cubic-bezier(.2,.8,.2,1), left 1.1s cubic-bezier(.2,.8,.2,1), translate 1.1s cubic-bezier(.2,.8,.2,1);
  top: 50%; left: 50%; translate: -50% -50%;
}
.intro-brand.intro-show{ opacity:1; transform: scale(1); }
.intro-brand.intro-dock{
  top: 27px; left: 32px; translate: 0 0; transform: scale(0.62);
}
.intro-brand .logo-icon{ width:56px; height:56px; flex-shrink:0; }
.intro-brand .intro-divider{
  width:1px; height:38px; background: var(--line-dark);
}
.intro-brand .intro-wordwrap{ display:flex; flex-direction:column; gap:2px; white-space:nowrap; }
.intro-brand .intro-word{
  font-family: var(--font-script); color:var(--white); font-size:30px; line-height:1;
}
.intro-brand .intro-tagline{
  font-family: var(--font-mono); font-size:11.5px; letter-spacing:0.18em; text-transform:uppercase;
  color: var(--teal);
}

.intro-scroll{
  position:absolute; bottom: 46px; left:50%; transform: translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:6px;
  opacity:0; transition: opacity 0.6s ease;
}
.intro-scroll.intro-show{ opacity:1; }
.intro-scroll span{
  font-family: var(--font-mono); font-size:10.5px; letter-spacing:0.14em; text-transform:uppercase;
  color: rgba(255,255,255,0.5);
}
.intro-scroll svg{ width:22px; height:22px; color: var(--teal); animation: introBlip 1.6s ease-in-out infinite; }
@keyframes introBlip{
  0%,100%{ transform: translateY(0); opacity:0.5; }
  50%{ transform: translateY(7px); opacity:1; }
}

@media (max-width: 480px){
  .intro-brand .logo-icon{ width:44px; height:44px; }
  .intro-brand .intro-word{ font-size:24px; }
  .intro-brand.intro-dock{ top: 18px; left: 20px; transform: scale(0.55); }
}

/* Respect reduced-motion preference: skip straight to end state */
@media (prefers-reduced-motion: reduce){
  #introOverlay{ display:none !important; }
}
