

/* =========================================================
   SOURCE: style.css
   ========================================================= */

:root{
  --bg-0:#0b1020;        /* deep night */
  --bg-1:#101735;        /* indigo */
  --bg-2:#182257;        /* sapphire */
  --ink:#FDFFFC;         /* main text - white */
  --ink-dim:#85ADD6;     /* subtext / muted blue */
  --card:#16204F;        /* navy card */
  --card-2:#0E1538;      /* deeper navy for gradient */
  --edge:#65CAF6;        /* accent edge/border */
  --glow:#65CAF6;        /* cyan accent */
  --glow-2:#85ADD6;      /* softer accent */
  --glow-3:#04064D;      /* deep accent navy */
  --accent: var(--glow);
  --shadow:0 14px 36px rgba(0,0,0,.55);
  --header-text:#65CAF6; /* header color distinct from body text */
}

html,body{height:100%;}
body{
  color:var(--ink);
  background:
    radial-gradient(1200px 800px at 10% -10%, rgba(143,176,255,.12), transparent 60%),
    radial-gradient(900px 700px at 90% 120%, rgba(59,86,201,.20), transparent 70%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0) 50%, var(--bg-1));
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans";
  line-height:1.55;
}

/* Arcane swirls as page accents */
body::before, body::after{
  content:""; position:fixed; inset:-10%; pointer-events:none; z-index:0;
  background:
    radial-gradient(120px 120px at 20% 35%, rgba(143,176,255,.18), transparent 60%),
    conic-gradient(from 30deg at 80% 20%, rgba(91,123,255,.12), transparent 40%, rgba(91,123,255,.10), transparent 70%);
  filter: blur(12px) saturate(130%);
  animation: swirlA 28s linear infinite;
  opacity:.8;
}
body::after{ animation: swirlB 36s linear infinite reverse; opacity:.55; }
@keyframes swirlA{ from{ transform: rotate(0deg);} to{ transform: rotate(360deg);} }
@keyframes swirlB{ from{ transform: rotate(0deg) scale(1.02);} to{ transform: rotate(-360deg) scale(1);} }

/* Lightning bolt accent using SVG mask on headings & buttons */
.arcane-bolt{
  position:relative;
}
.arcane-bolt::after{
  content:""; position:absolute; left:-8px; top:-8px; right:-8px; bottom:-8px; border-radius:14px;
  background: radial-gradient(60px 60px at 12% 30%, rgba(143,176,255,.25), transparent 60%),
              radial-gradient(40px 40px at 85% 70%, rgba(91,123,255,.18), transparent 65%);
  mask:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox=\"0 0 120 120\"><path d=\"M56 2 L30 70 H60 L48 118 L94 46 H64 L76 2 Z\" fill=\"white\" opacity=\"0.8\"/></svg>') center/30% no-repeat,
    linear-gradient(#fff,#fff);
  mix-blend-mode: screen;
  opacity:.35;
}

/* Containers */
.wrap{
  position:relative; z-index:1;
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.0));
  border-radius: 16px;
  padding: 1.25rem;
}

/* Masthead & nav */
.masthead .brand-name{ color:var(--ink); text-shadow:0 1px 0 rgba(0,0,0,.35); }
nav ul li a{ color:var(--ink-dim); }
nav ul li a.active{ color:var(--accent); text-shadow:0 0 10px rgba(143,176,255,.35); }

/* Hero */
.hero{
  position:relative; overflow:hidden; min-height:220px; display:flex; align-items:center; justify-content:space-between; gap:1rem;
  border:1px solid rgba(91,123,255,.25);
  background: linear-gradient(180deg, rgba(16,23,53,.92), rgba(16,23,53,.78));
  border-radius:18px; padding:1.25rem; box-shadow: var(--shadow);
}
.hero .hero-copy{ max-width:720px; }
.hero .hero-title{ font-size: clamp(1.6rem, 3vw, 2.4rem); margin:0 0 .3rem 0; color:#f0f4ff; }
.hero .hero-sub{ margin:0 0 .75rem 0; color: var(--ink-dim); }
.hero .hero-cta{ display:flex; gap:.75rem; flex-wrap:wrap; }
.hero .card-fan{ position:absolute; right:-40px; bottom:-40px; display:flex; gap:.4rem; transform: rotate(-12deg);
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.6));
}
.hero .fan-card{
  width:160px; height:220px; background: linear-gradient(180deg, var(--card), var(--card-2));
  border-radius: 14px; border:1px solid rgba(91,123,255,.25);
  box-shadow: 0 6px 22px rgba(0,0,0,.55);
}

/* Buttons & links */
a{ color:#cfe1ff; text-decoration:none; }
a:hover{ color:#8fb0ff; text-decoration:underline; text-underline-offset:2px; }
.button{
  display:inline-block; padding:.6rem 1rem; border-radius:12px;
  background: linear-gradient(180deg, rgba(143,176,255,.12), rgba(59,86,201,.08));
  border:1px solid rgba(91,123,255,.35); color:#f2f6ff;
  box-shadow: 0 8px 26px rgba(34,40,84,.55), inset 0 0 0 1px rgba(255,255,255,.04);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.button:hover{ transform: translateY(-2px);
  border-color: rgba(143,176,255,.8);
  box-shadow: 0 16px 40px rgba(34,40,84,.65), 0 0 0 2px rgba(143,176,255,.25) inset;
}

/* Card grid */
.card-grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap:1rem; margin-top:1rem; }
.card{
  position:relative; background: linear-gradient(180deg, var(--card), var(--card-2));
  border-radius: 16px; border:1px solid rgba(91,123,255,.25); box-shadow: var(--shadow);
  padding: 1rem; transform: translateZ(0);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover{ transform: translateY(-4px); box-shadow: 0 20px 48px rgba(0,0,0,.6); border-color: rgba(143,176,255,.5); }
.card h3{ margin:0 0 .5rem 0; font-weight:700; color:#eaf0ff; }
.card .meta{ color:#c7d2f3; font-size:.9rem; }

/* Flip cards */
.card.flip{ perspective: 1000px; padding:0; background: transparent; border:none; box-shadow:none; }
.card.flip .flip-inner{ position:relative; width:100%; height:260px; transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.2,.6,.2,1);
}
.card.flip:hover .flip-inner{ transform: rotateY(180deg); }
.card.flip .face{
  position:absolute; inset:0; border-radius: 16px; overflow:hidden;
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border:1px solid rgba(91,123,255,.25); box-shadow: var(--shadow);
  backface-visibility: hidden; -webkit-backface-visibility: hidden; padding:1rem;
}
.card.flip .back{ transform: rotateY(180deg); background: linear-gradient(180deg, rgba(24,34,87,.95), rgba(24,34,87,.85)); color:#eaf0ff; }

/* PDF viewer panels */
.pdf-viewer{
  background: linear-gradient(180deg, rgba(16,23,53,.9), rgba(16,23,53,.7));
  border: 1px solid rgba(91,123,255,.35); border-radius: 16px; padding: .75rem; box-shadow: var(--shadow);
}
.pdf-viewer iframe{ background:#0a0f22; border-radius: 10px; }

/* Modal */
.modal{ position: fixed; inset:0; display:none; align-items:center; justify-content:center; background: rgba(5,8,18,.75); z-index: 50; padding: 2vw; }
.modal[open]{ display:flex; }
.modal .modal-card{ background: linear-gradient(180deg, rgba(16,23,53,.95), rgba(16,23,53,.8));
  border: 1px solid rgba(143,176,255,.35); border-radius: 16px; width: min(1100px, 96vw); box-shadow: var(--shadow);
  padding: .75rem;
}
.modal header{ display:flex; justify-content:space-between; align-items:center; color:#eaf0ff; padding:.25rem .5rem .5rem .5rem; }
.modal .close{ background: transparent; border:1px solid rgba(143,176,255,.35); color:#dfe8ff; border-radius:8px; padding:.25rem .5rem; cursor:pointer; }
.modal iframe{ width:100%; height:75vh; border-radius: 10px; display:block; background:#0a0f22; border:1px solid rgba(91,123,255,.35); }

footer{ color:#cbd6f6; }

/* Utility */
.grid-2{ display:grid; grid-template-columns: 1.2fr .8fr; gap: 1rem; }
@media (max-width: 900px){ .grid-2{ grid-template-columns: 1fr; } .hero .card-fan{ display:none; } }


/* === ARCANE BLUE OVERHAUL === */
:root{
  --bg-deep:#0a1026;
  --bg-mid:#121937;
  --bg-glow:#1f2e70;
  --parchment:#0f1531; /* dark parchment */
  --ink:#cfe1ff;       /* cool ink */
  --accent:#4b6bce;    /* sapphire */
  --accent-bright:#8fb0ff;
  --accent-soft:#1b2a64;
  --gold:#b8891a; /* legacy var kept; unused visually */
  --shadow:0 14px 40px rgba(4,8,24,.55);
}

html, body { height:100%; }

body{
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height:1.55;
  background:
    radial-gradient(900px 500px at 65% -10%, rgba(79,118,255,.16), transparent 60%),
    radial-gradient(1200px 700px at -10% 110%, rgba(80,110,255,.12), transparent 60%),
    linear-gradient(180deg, var(--bg-mid), var(--bg-deep));
}

/* Containers */
.wrap{
  background:
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01)),
    radial-gradient(500px 180px at 50% 0, rgba(143,176,255,.06), transparent 60%);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 10px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.03);
}

/* Nav */
nav ul li a{ color: #cfe1ff; }
nav ul li a.active{ color: var(--accent-bright); text-shadow: 0 0 8px rgba(143,176,255,.4); }

/* Buttons & Links */
body a{ color:#cfe1ff; text-decoration: none; }
body a:hover{ color: var(--accent-bright); text-decoration: underline; text-underline-offset: 2px; }
.button{
  display:inline-block; padding:.6rem 1rem; border-radius:999px;
  border:1px solid rgba(143,176,255,.25);
  background: linear-gradient(180deg, rgba(30,50,120,.35), rgba(10,18,48,.55));
  color:#eaf1ff;
  box-shadow: inset 0 0 0 1px rgba(143,176,255,.15), 0 8px 24px rgba(6,12,32,.6);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.button:hover{ transform: translateY(-2px); border-color: var(--accent-bright); box-shadow: 0 12px 34px rgba(16,30,80,.65); }
.button:focus-visible{ outline: 2px solid var(--accent-bright); outline-offset: 2px; }

/* Hero */
.hero{
  position: relative;
  background: linear-gradient(180deg, rgba(18,26,64,.85), rgba(12,18,46,.75));
  border: 1px solid rgba(143,176,255,.14);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
  overflow:hidden;
}
.hero .hero-copy{ color:#e6eeff; }
.hero .hero-title{ font-size: clamp(1.6rem, 3vw, 2.4rem); margin:0 0 .3rem 0; text-shadow: 0 2px 18px rgba(120,160,255,.25); }
.hero .hero-sub{ opacity:.95; margin:0 0 .75rem 0; color:#c7d8ff; }

/* (Lightning removed) */

/* Magical swirl overlay (subtle) */
.swirl-overlay{
  position:fixed; inset:0; pointer-events:none; z-index: 1;
  background:
    radial-gradient(60px 200px at 20% 30%, rgba(120,160,255,.09), transparent 70%),
    radial-gradient(120px 400px at 75% 70%, rgba(120,160,255,.08), transparent 70%),
    conic-gradient(from 210deg at 20% 30%, rgba(100,140,255,.05), transparent 40%, rgba(100,140,255,.05), transparent 80%);
  mix-blend-mode: screen;
}

/* Card grid */
.card-grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-top: 1rem; position:relative; z-index:2; }
.card{
  position:relative; background: linear-gradient(180deg, rgba(24,32,72,.85), rgba(14,20,52,.9));
  border-radius: 16px; border: 1px solid rgba(143,176,255,.14); box-shadow: var(--shadow);
  padding: 1rem; transform: translateZ(0);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover{ transform: translateY(-6px); box-shadow: 0 18px 45px rgba(10,18,48,.8); border-color: rgba(143,176,255,.3); }
.card h3{ margin:0 0 .5rem 0; font-weight:700; color:#e6eeff; }
.card .meta{ color:#b9cbff; font-size:.9rem; }

/* Flip card */
.card.flip{ background: transparent; border:none; box-shadow:none; padding:0; }
.card.flip .flip-inner{ position:relative; width:100%; height:260px; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2,.6,.2,1); }
.card.flip:hover .flip-inner{ transform: rotateY(180deg); }
.card.flip .face{
  position:absolute; inset:0; border-radius: 16px; overflow:hidden;
  background: linear-gradient(180deg, rgba(24,32,72,.9), rgba(14,20,52,.95));
  border:1px solid rgba(143,176,255,.16); box-shadow: var(--shadow);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  padding:1rem; color:#dbe7ff;
}
.card.flip .back{
  transform: rotateY(180deg);
  background: linear-gradient(180deg, rgba(40,56,120,.9), rgba(18,28,80,.92));
  border:1px solid rgba(143,176,255,.25);
}

/* PDF viewer panels */
.pdf-viewer{
  background: linear-gradient(180deg, rgba(18,26,64,.85), rgba(12,18,46,.75));
  border: 1px solid rgba(143,176,255,.18);
  border-radius: 16px; padding: .75rem;
  box-shadow: var(--shadow);
}
.pdf-viewer iframe{ background: #0a0f24; border-radius: 10px; }

/* Footer */
footer{ color:#b3c6ff; }

/* Responsive */
@media (max-width: 900px){ .hero .lightning{ display:none; } }


/* Hero-local swirls (decorative, non-blocking) */
.hero{
  position: relative;
}
.hero .swirls{
  position:absolute; inset:0; pointer-events:none; z-index: 0;
  background:
    radial-gradient(120px 380px at 15% 35%, rgba(120,160,255,.10), transparent 70%),
    radial-gradient(220px 520px at 85% 60%, rgba(120,160,255,.08), transparent 70%),
    conic-gradient(from 260deg at 30% 40%, rgba(120,160,255,.08), transparent 35%, rgba(120,160,255,.06), transparent 80%);
  mix-blend-mode: screen;
  animation: swirl-shift 24s linear infinite;
}
@keyframes swirl-shift {
  0% { transform: translate3d(0,0,0) rotate(0deg); }
  50% { transform: translate3d(0,-1%,0) rotate(2deg); }
  100% { transform: translate3d(0,0,0) rotate(0deg); }
}

/* Ensure text / buttons are above any decorations */
.hero .hero-copy.on-top{ position: relative; z-index: 2; }
.card, .pdf-viewer { position: relative; z-index: 1; }

/* Remove any chance of decorative layers blocking interactions */
.swirl-overlay, .hero .swirls { pointer-events: none; }


/* Home */
nav ul li:nth-child(2) a::before{ content:"📜"; } /* Project Details */
nav ul li:nth-child(3) a::before{ content:"🧙"; } /* Team */
nav ul li:nth-child(4) a::before{ content:"📚"; } /* Documents */
nav ul li:nth-child(5) a::before{ content:"🧪"; } /* Code & Demo */
nav ul li:nth-child(6) a::before{ content:"✉️"; } /* Contact */

/* Make cards obviously interactive */
.card[data-pdf], .card.flip{ cursor: pointer; }
.card[data-pdf]:hover .front h3, .card.flip:hover .front h3 { text-decoration: underline; text-decoration-color: var(--accent-bright); }


/* Page icons in nav (custom SVGs) */
nav ul li a::before{
  content:"";
  display:inline-block;
  width:1.1em; height:1.1em;
  margin-right:.45rem;
  vertical-align:-0.15em;
  background-size: contain;
  background-repeat: no-repeat;
  filter: drop-shadow(0 1px 2px rgba(16,30,80,.35));
}
nav ul li:nth-child(1) a::before{ background-image:url('icons/home-quill.svg'); }
nav ul li:nth-child(2) a::before{ background-image:url('icons/project-scroll.svg'); }
nav ul li:nth-child(3) a::before{ background-image:url('icons/team-wizardhat.svg'); }
nav ul li:nth-child(4) a::before{ background-image:url('icons/docs-books.svg'); }
nav ul li:nth-child(5) a::before{ background-image:url('icons/code-flask.svg'); }
nav ul li:nth-child(6) a::before{ background-image:url('icons/contact-envelope.svg'); }


/* Brighter section headers for readability */
main h1, main h2, main h3,
section > h1, section > h2, section > h3,
.section h1, .section h2, .section h3 {
  color: #eaf1ff; /* very light sapphire-white */
  text-shadow: 0 2px 10px rgba(120,160,255,.25);
}

/* Slight spacing to separate headers from content */
main h2 { margin-top: 1.2rem; margin-bottom: .6rem; }
main h3 { margin-top: 1rem; margin-bottom: .5rem; }


/* Document card fronts: icon-centric */
.face.front .doc-icon{
  display:flex; align-items:center; justify-content:center;
  padding-top:.5rem;
}
.face.front .doc-icon img{
  width: 72%; max-width: 220px; height:auto; display:block;
  filter: drop-shadow(0 8px 24px rgba(16,30,80,.45));
}
.face.front .doc-label{
  text-align:center; margin-top:.5rem; color:#eaf1ff; font-weight:600; letter-spacing:.2px;
  opacity:.95;
}

/* Backs: description text and actions */
.face.back .doc-desc{ color:#d2e0ff; margin: .25rem 0 .75rem 0; line-height:1.45; }
.face.back .doc-actions{ display:flex; gap:.6rem; flex-wrap:wrap; }


/* Arcane blue pulsing logo effect */
.brand img {
  height: 80px;  /* adjust size as you like */
  animation: pulseGlow 6s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(120,160,255,0.4));
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 6px rgba(120,160,255,0.4));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 14px rgba(160,200,255,0.6));
  }
}



/* Modern Split Navigation */
.modern-nav {
  width: 100%;
  background: #0a0a0a;
  border-bottom: 1px solid #222;
  padding: 10px 0;
}
.nav-wrap {
  max-width: 1300px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}
.nav-logo img {
  height: 48px;
}
.nav-links a {
  color: #ddd;
  margin-left: 28px;
  font-size: 1.05rem;
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-links a:hover {
  color: #76baff;
}


/* FORCE HORIZONTAL NAV FIX */
.nav-links {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 28px;
}
.nav-links a {
    display: inline-block !important;
    white-space: nowrap !important;
}


/* --- Modern Split Logo + Spaced Wordmark + Hamburger Menu --- */

.nav-container {
  width: 100%;
  background: #0a0a0a;
  border-bottom: 1px solid #222;
  padding: 10px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.nav-left, .nav-center, .nav-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-left { justify-content: flex-start; padding-left: 20px; }
.nav-right { justify-content: flex-end; padding-right: 20px; }

.nav-logo {
  height: 50px;
}

.wordmark {
  font-size: 1.4rem;
  color: #eaeaea;
  letter-spacing: 0.25rem;
}

.hamburger {
  font-size: 2rem;
  background: none;
  border: none;
  color: #eaeaea;
  cursor: pointer;
}

/* Slide-in Panel */
.side-menu {
  position: fixed;
  right: -320px;
  top: 0;
  height: 100vh;
  width: 300px;
  background: #111;
  padding: 30px;
  transition: right 0.35s ease;
  z-index: 9999;
  display: flex;
  flex-direction: column;
}

.side-menu.open {
  right: 0;
}

.close-btn {
  font-size: 2rem;
  background: none;
  border: none;
  color: #eaeaea;
  margin-left: auto;
  cursor: pointer;
}

.side-nav {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.side-nav a {
  color: #ddd;
  text-decoration: none;
  font-size: 1.2rem;
}

.side-nav a:hover {
  color: #76baff;
}


/* Glow effect for side menu links instead of underline */
.side-nav a {
  position: relative;
  text-decoration: none !important;
  border-bottom: none !important;
}

.side-nav a::after {
  content: none !important;
}

.side-nav a:hover,
.side-nav a:focus,
.side-nav a.active {
  color: #ffffff !important;
  text-shadow: 0 0 6px #76baff, 0 0 14px #76baff;
}


/* MORE INTENSE GLOW EFFECT */
.side-nav a:hover,
.side-nav a:focus,
.side-nav a.active {
  color: #ffffff !important;
  text-shadow:
      0 0 8px #76baff,
      0 0 16px #76baff,
      0 0 28px #76baff,
      0 0 42px #76baff;
}


/* --- Modernization Tweaks (Consistent Theme) --- */

/* Unified header colors */
h1, h2, h3 {
    color: #e8e8f8 !important;
    letter-spacing: 0.5px;
}

/* Even box spacing for all slice containers */
.slice-inner {
    padding: 40px 50px !important;
}

/* Clean card spacing */
.team-grid, .grid {
    gap: 40px !important;
}

/* Card faces cleaned */
.card.flip-card .face {
    border-radius: 10px;
}

/* Page-wide consistent container width */
.wrap, .slice-inner {
    max-width: 1300px;
    margin: auto;
}

/* Normalize paragraph spacing */
p {
    line-height: 1.5;
    margin-bottom: 14px;
}

/* Improve link visibility */
a {
    color: #9ac7ff;
}

a:hover {
    color: #cfe6ff;
}

/* Soft shadow panels */
.section, .slice-inner {
    background: rgba(20,20,30,0.35);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Navbar minor refinements */
.nav-container {
    border-bottom: 1px solid #333;
}

/* Wordmark slight glow */
.wordmark {
    text-shadow: 0 0 4px #222;
}

/* Even buttons */
button, .btn {
    padding: 10px 18px;
    border-radius: 6px;
    background: #222;
    border: 1px solid #333;
    color: #eaeaea;
}


/* === Global responsive helpers (added for cross-device scaling) === */

/* Ensure all iframes and embedded objects shrink within their containers */
iframe,
embed,
object{
  max-width: 100%;
}

/* Inline PDF viewer shell used on the Documents page */
.pdf-inline-shell{
  width: 100%;
  max-width: 1100px;
  margin: 1.5rem auto 0;
}

.pdf-inline-frame{
  width: 100%;
  min-height: 70vh;
  border: 1px solid rgba(91,123,255,.35);
  border-radius: 10px;
  background:#0a0f22;
  box-shadow: var(--shadow);
}

/* Slightly shorter PDFs on narrow screens so the navbar stays accessible */
@media (max-width: 600px){
  .pdf-inline-frame{
    min-height: 60vh;
  }
}



/* === Decked Out custom header hierarchy override === */
h1, h2, h3,
.section h1, .section h2, .section h3,
.hero .hero-title {
  color: var(--header-text) !important;
}

/* Subtext utility using the dimmed ink color */
.muted, .meta, .caption, .subtext {
  color: var(--ink-dim) !important;
}


/* Brighter card override */
.card, .timeline-event, .project-card, .tech-card {
  background: var(--card) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.45) !important;
}


/* Documents grid safeguard */
body[data-page="documents"] .card-grid,
.card-grid.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  align-items: stretch;
}
main.wrap,
main.immersive,
main.site-wide {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}


/* =========================================================
   SOURCE: overhaul.css
   ========================================================= */

html[data-theme="dark"]{
  --ink: #e8eefc;
  --ink-dim: #c7d2ff;
  --card: #0e162e;
  --edge: #3a52a0;
  --bg-0: #0b1020;
  --bg-1: #101735;
  --glow: #5b7bff;
}

html{scroll-behavior:smooth}
body{
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Wider canvas with breathing room */
.wrap{max-width: 1200px; margin-inline:auto; padding-inline: 28px}

/* Sticky, translucent header with pill nav */
header[role="banner"]{
  position: sticky; top: 0; z-index: 80;
  backdrop-filter: saturate(130%) blur(10px);
  background: linear-gradient(180deg, rgba(10,16,40,.75), rgba(10,16,40,.45));
  border-bottom: 1px solid rgba(120,160,255,.12);
}
.masthead{display:flex; align-items:center; justify-content:space-between; gap:20px; padding-block:12px}
.brand{display:flex; align-items:center; gap:10px}
.brand img{height:34px; width:auto; filter: drop-shadow(0 2px 10px rgba(80,120,255,.25))}

nav[aria-label="Primary"] ul{display:flex; gap:18px; margin:0; padding:0; list-style:none; flex-wrap:wrap}
nav[aria-label="Primary"] a{
  display:inline-block; padding:10px 12px; border-radius:999px;
  text-decoration:none; color:inherit; opacity:.96;
  transition: transform .12s ease, background-color .12s ease, opacity .12s ease;
}
nav[aria-label="Primary"] a:hover{opacity:1; transform: translateY(-1px); background: rgba(120,160,255,.10)}
nav[aria-label="Primary"] a.active{background: rgba(120,160,255,.16); box-shadow: inset 0 0 0 1px rgba(120,160,255,.25)}

/* Typography */
h1{font-size: clamp(30px, 2.2vw + 1rem, 44px); line-height:1.14; margin: 18px 0 10px}
h2{font-size: clamp(20px, 1.1vw + .9rem, 26px); line-height:1.22; margin: 12px 0 8px}
p, li{color: var(--ink); line-height:1.7}
.muted{color: var(--ink-dim)}

/* Free‑flowing sections: remove heavy card boxes */
.card{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Instead, use gentle separators and spacing */
.grid{display: grid; gap: 26px}
@media (min-width: 760px){
  .grid{grid-template-columns: repeat(12, minmax(0,1fr))}
  .grid > * {grid-column: span 6}
}
/* Each item gets a soft halo and bottom divider, not a box */
.grid > * > .pair{
  padding: 14px 0 20px;
  border-bottom: 1px solid rgba(140,180,255,.18);
}
.grid > *:last-child > .pair{border-bottom: 0}

.pair{display:flex; gap:14px; align-items:flex-start}
.pair img{width:32px; height:32px; filter: drop-shadow(0 0 10px rgba(120,160,255,.28))}

/* Document tiles and modal: lighten surfaces, keep readability */
[class*="tile"], [data-pdf], .doc, .document-card{
  background: linear-gradient(180deg, rgba(18,26,52,.35), rgba(16,22,44,.25)) !important;
  border: 0 !important;
  box-shadow: 0 16px 40px rgba(0,0,0,.40) !important;
  border-radius: 16px !important;
}
.modal[open]{backdrop-filter: blur(3px)}

/* Subtle section glow on first block only */
main.wrap > :first-child{
  /* remove legacy white outline box & extra padding */
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Links */
a:not([class]){color: inherit; text-decoration-color: rgba(160,200,255,.6); text-underline-offset: 2px}
a:not([class]):hover{opacity:.96}

/* HR divider */
hr{border:0; height:1px; background:linear-gradient(90deg, transparent, rgba(120,160,255,.22), transparent); margin:24px 0}



/* === Home page layout (no borders, arcane bands) === */
.home .hero{
  position: relative;
  padding: clamp(32px, 4vw, 80px) 0 clamp(16px, 2vw, 32px);
  background:
    radial-gradient(1200px 600px at 120% -20%, rgba(120,160,255,.16), transparent 40%),
    radial-gradient(1000px 500px at -10% 20%, rgba(80,140,255,.12), transparent 40%);
  border-radius: 20px;
}
.hero .sub{font-size: clamp(16px, .9vw + .8rem, 20px); color: var(--ink-dim); max-width: 62ch}
.cta-row{display:flex; gap:12px; flex-wrap:wrap; margin-top: 14px}
.btn{cursor:pointer; text-decoration:none}
.btn.pill{
  border-radius:999px; padding:12px 16px;
  background: radial-gradient(120% 120% at 120% -20%, rgba(120,160,255,.26), rgba(120,160,255,.18));
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(140,180,255,.28), 0 10px 24px rgba(0,0,0,.35);
  transition: transform .12s ease;
}
.btn.pill:hover{transform: translateY(-1px)}
.btn.ghost{
  border-radius:999px; padding:12px 16px;
  background: rgba(120,160,255,.08);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(140,180,255,.22);
}

/* Bands: full-bleed feel without boxes */
.band{margin-top: clamp(26px, 4vw, 48px)}
.band .band-inner{
  padding: clamp(16px, 2vw, 28px);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(18,26,52,.60), rgba(16,22,44,.55)),
    radial-gradient(1200px 600px at 120% -20%, rgba(120,160,255,.10), transparent 40%);
  box-shadow: 0 20px 48px rgba(0,0,0,.45);
}
.features .band-inner{display:grid; gap:22px}
@media (min-width: 840px){
  .features .band-inner{grid-template-columns: repeat(3, minmax(0,1fr))}
}
.f{display:flex; gap:14px}
.f img{width:36px; height:36px; filter: drop-shadow(0 0 12px rgba(120,160,255,.32))}
.f h2{margin:2px 0 6px}

/* Quick links — flowing tiles without borders */
.grid-3{display:grid; gap:16px}
@media (min-width: 840px){ .grid-3{grid-template-columns: repeat(3, minmax(0,1fr))} }
.q{
  display:flex; flex-direction:column; gap:4px; padding:16px 18px; border-radius:16px;
  text-decoration:none; color:var(--ink);
  background: linear-gradient(180deg, rgba(18,26,52,.45), rgba(16,22,44,.35));
  box-shadow: 0 16px 40px rgba(0,0,0,.40);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.q .kicker{font-size:12px; letter-spacing:.3px; text-transform:uppercase; color: var(--ink-dim)}
.q .hint{color: var(--ink-dim); font-size: 14px}
.q:hover{transform: translateY(-2px); filter: drop-shadow(0 0 10px rgba(120,160,255,.22))}

/* Callout */
.callout .band-inner{ text-align:center }
.callout .cta-row{ justify-content:center }


/* Legacy content smoothing on Home */
.home.legacy .card,
.home.legacy [class*="card"]{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.home.legacy section, 
.home.legacy .section, 
.home.legacy .wrap-inner{
  border: 0 !important;
}



/* === Home Rev3: restructure with original content preserved === */
.home.rev3 .hero--rev3{
  padding: clamp(44px, 6vw, 128px) 0 clamp(24px, 3vw, 48px);
  background:
    radial-gradient(1200px 600px at 120% -20%, rgba(120,160,255,.18), transparent 40%),
    radial-gradient(1000px 500px at -10% 20%, rgba(80,140,255,.12), transparent 40%);
  border-radius: 20px;
}
.home.rev3 .features--rev3 .band-inner{display:grid; gap:22px}
@media (min-width: 880px){
  .home.rev3 .features--rev3 .band-inner{grid-template-columns: repeat(3, minmax(0,1fr))}
}
.home.rev3 .content-flow{
  /* strip borders/boxes from legacy nodes and create breathing rhythm */
  --flow: 18px;
}
.home.rev3 .content-flow > * + *{margin-top: var(--flow)}
.home.rev3 .content-flow h1,
.home.rev3 .content-flow h2,
.home.rev3 .content-flow h3{margin-top: calc(var(--flow) * 1.2)}
.home.rev3 .content-flow .card,
.home.rev3 .content-flow [class*="card"],
.home.rev3 .content-flow [class*="box"],
.home.rev3 .content-flow [class*="panel"]{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.home.rev3 .legacy-content .band-inner{
  background:
    linear-gradient(180deg, rgba(18,26,52,.58), rgba(16,22,44,.50)),
    radial-gradient(1200px 600px at 120% -20%, rgba(120,160,255,.08), transparent 40%);
  box-shadow: 0 20px 48px rgba(0,0,0,.45);
  border-radius: 20px;
  padding: clamp(16px, 2vw, 28px);
}
/* Keep readable ink */
.home.rev3 .content-flow, 
.home.rev3 .content-flow p, 
.home.rev3 .content-flow li{color: var(--ink)}

/* Spacing + hover affordances for quicklinks remain from v2 */



/* === Immersive Narrative Homepage (no CTAs/links added) === */
.home.immersive .story{
  display:block;
  margin-top: clamp(18px, 3vw, 36px);
}
.home.immersive .slice{
  position: relative;
  /* less vertical gap between sections */
  margin: clamp(8px, 1.8vw, 20px) 0;
  padding: 0;
  border: 0;
}
.home.immersive .slice-inner{
  padding: clamp(10px, 2vw, 18px) clamp(8px, 1.8vw, 16px);
  border-radius: 18px;
  background:
    radial-gradient(900px 420px at 110% -10%, rgba(120,160,255,.10), transparent 40%),
    linear-gradient(180deg, rgba(18,26,52,.55), rgba(16,22,44,.45));
  box-shadow: 0 16px 40px rgba(0,0,0,.38);
}
/* Alternate glow intensity to avoid a repetitive feel */
.home.immersive .slice:nth-of-type(2n) .slice-inner{
  background:
    radial-gradient(900px 420px at -10% 10%, rgba(120,160,255,.08), transparent 40%),
    linear-gradient(180deg, rgba(18,26,52,.48), rgba(16,22,44,.40));
}
/* Typography & readability */
.home.immersive .slice-inner p{ 
  color: var(--ink);
  line-height: 1.75;
  margin: 0;
}
/* First paragraph gets a lede treatment (styling only) */
.home.immersive .slice:first-of-type .slice-inner p{
  font-size: clamp(18px, 1.1vw + .95rem, 22px);
}
/* Optional drop cap for the very first paragraph */
.home.immersive .slice:first-of-type .slice-inner p::first-letter{
  float: left;
  font-size: 2.6em;
  line-height: .9;
  padding-right: .06em;
  color: var(--glow);
  font-weight: 700;
  filter: drop-shadow(0 0 8px rgba(120,160,255,.3));
}
/* Headings & other blocks preserved if present */
.home.immersive .slice-inner h1,
.home.immersive .slice-inner h2,
.home.immersive .slice-inner h3{margin: 0 0 8px; color: var(--header-text)}
.home.immersive .slice-inner ul, 
.home.immersive .slice-inner ol{margin: 6px 0 0 1.2em}
.home.immersive .slice-inner img{max-width:100%; height:auto; display:block; margin: 6px 0}

/* Remove any residual borders from legacy classes inside */
.home.immersive .slice-inner .card,
.home.immersive .slice-inner [class*="card"],
.home.immersive .slice-inner [class*="box"],
.home.immersive .slice-inner [class*="panel"]{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}



/* === Immersive (Strict) — No extra CTAs/links injected === */
.home.immersive.strict .story{margin-top: clamp(18px, 3vw, 36px)}
.home.immersive.strict .slice{position:relative; margin: clamp(60px, 8vw, 140px) 0}
.home.immersive.strict .slice-inner{
  padding: clamp(10px, 2vw, 18px) clamp(8px, 1.8vw, 16px);
  border-radius: 18px;
  background:
    radial-gradient(900px 420px at 110% -10%, rgba(120,160,255,.10), transparent 40%),
    linear-gradient(180deg, rgba(18,26,52,.55), rgba(16,22,44,.45));
  box-shadow: 0 16px 40px rgba(0,0,0,.38);
}
.home.immersive.strict .slice:nth-of-type(2n) .slice-inner{
  background:
    radial-gradient(900px 420px at -10% 10%, rgba(120,160,255,.08), transparent 40%),
    linear-gradient(180deg, rgba(18,26,52,.48), rgba(16,22,44,.40));
}
.home.immersive.strict .slice-inner p,
.home.immersive.strict .slice-inner li{color: var(--ink); line-height:1.75; margin:0}
.home.immersive.strict .slice-inner h1,
.home.immersive.strict .slice-inner h2,
.home.immersive.strict .slice-inner h3{margin: 0 0 8px; color: var(--ink)}
.home.immersive.strict .slice-inner img{max-width:100%; height:auto; display:block; margin: 6px 0}

/* Remove any legacy borders/shadows that might sneak in */
.home.immersive.strict .slice-inner .card,
.home.immersive.strict .slice-inner [class*="card"],
.home.immersive.strict .slice-inner [class*="box"],
.home.immersive.strict .slice-inner [class*="panel"]{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}


/* Subtle marker styling for retained headings */
.home.immersive.strict.curated .slice-inner h2{
  opacity:.9;
  letter-spacing:.2px;
}
.home.immersive.strict.curated .slice-inner h2:after{
  content:"";
  display:block;
  margin-top:8px;
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(120,160,255,.22), transparent);
}


/* === Site-wide immersive narrative wrappers === */
main.wrap.immersive.site-wide .story{margin-top: clamp(18px, 3vw, 36px)}
main.wrap.immersive.site-wide .slice{position:relative; margin: clamp(12px, 2.6vw, 28px) 0}
main.wrap.immersive.site-wide .slice-inner{
  padding: clamp(10px, 2vw, 18px) clamp(8px, 1.8vw, 16px);
  border-radius: 18px;
  background:
    radial-gradient(900px 420px at 110% -10%, rgba(120,160,255,.10), transparent 40%),
    linear-gradient(180deg, rgba(18,26,52,.55), rgba(16,22,44,.45));
  box-shadow: 0 16px 40px rgba(0,0,0,.38);
}
main.wrap.immersive.site-wide .slice:nth-of-type(2n) .slice-inner{
  background:
    radial-gradient(900px 420px at -10% 10%, rgba(120,160,255,.08), transparent 40%),
    linear-gradient(180deg, rgba(18,26,52,.48), rgba(16,22,44,.40));
}
main.wrap.immersive.site-wide .slice-inner p,
main.wrap.immersive.site-wide .slice-inner li{color: var(--ink); line-height:1.75; margin:0}
main.wrap.immersive.site-wide .slice-inner h1,
main.wrap.immersive.site-wide .slice-inner h2,
main.wrap.immersive.site-wide .slice-inner h3{margin: 0 0 8px; color: var(--ink)}
main.wrap.immersive.site-wide .slice-inner img{max-width:100%; height:auto; display:block; margin: 6px 0}


/* Demo gallery */
.demo-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.demo-item img {
  width: 100%;
  height: 220px;
  max-width: 100%;
  border-radius: 12px;
  display: block;
  margin: 0 auto 0.75rem;
  object-fit: cover;
}
.demo-item p {
  text-align: center;
  font-size: 0.95rem;
}

/* Links + timeline layout */
.links-layout {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .links-layout {
    grid-template-columns: 1fr 1fr;
  }
}
.quick-links-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
}
.quick-links-list li + li {
  margin-top: 0.5rem;
}
.timeline-image {
  max-width: 100%;
  border-radius: 8px;
  display: block;
  margin-top: 1rem;
}

/* Added enhancements */
.home #hero {
  position: relative;
  /* tighter hero so content starts higher */
  padding: clamp(20px, 3vw, 48px) 0 clamp(12px, 2vw, 24px);
  background:
    radial-gradient(1200px 600px at 120% -20%, rgba(120,160,255,.16), transparent 40%),
    radial-gradient(1000px 500px at -10% 20%, rgba(80,140,255,.12), transparent 40%);
  border-radius: 20px;
}
#hero .hero-subtitle {
  font-size: clamp(16px, .9vw + .8rem, 20px);
  color: var(--ink-dim);
  max-width: 62ch;
}
.home.immersive .slice-inner,
main.wrap.immersive.site-wide .slice-inner {
  /* keep subtle inner padding but remove card look */
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  border: 0 !important;
}

/* === Technologies page layout & visuals === */

.tech-page .page-title{
  margin-bottom: 10px;
}

.tech-page .lede{
  max-width: 70ch;
  margin-bottom: 24px;
  color: var(--ink-dim);
}

/* Tech cards grid */
.tech-grid{
  display:grid;
  gap:18px;
  margin-top: 8px;
}
@media (min-width: 860px){
  .tech-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 600px){
  .tech-grid{
    grid-template-columns: minmax(0, 1fr);
  }
}

.tech-card{
  position:relative;
  padding:16px 16px 18px;
  border-radius:18px;
  background:
    linear-gradient(160deg, rgba(102,168,255,0.98), rgba(60,126,230,0.99));
  box-shadow: 0 18px 40px rgba(0,0,0,.60);
  border: 1px solid rgba(91,123,255,.40);
  overflow:hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.tech-card::before{
  content:"";
  position:absolute;
  inset:-20%;
  opacity:0;
  background: radial-gradient(circle at top left, rgba(91,123,255,.35), transparent 55%);
  transition: opacity .20s ease;
  pointer-events:none;
}
.tech-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 26px 60px rgba(0,0,0,.75);
  border-color: rgba(132,162,255,.85);
}
.tech-card:hover::before{
  opacity:1;
}

.tech-card-header{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom: 6px;
}

.tech-tagline{
  margin:0;
  font-size: 13px;
  color: var(--ink-dim);
}

/* Simple icon chips instead of vendor logos */
.tech-icon{
  width:42px;
  height:42px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  font-weight:600;
  letter-spacing:.03em;
  box-shadow: 0 0 18px rgba(0,0,0,.75);
}
.tech-android{
  background: radial-gradient(circle at 20% 0, #a4c639, #4b8b1e);
}
.tech-compose{
  background: radial-gradient(circle at 20% 0, #55e0ff, #3054ff);
}
.tech-aws{
  background: radial-gradient(circle at 20% 0, #ffe082, #ff9800);
}
.tech-room{
  background: radial-gradient(circle at 20% 0, #ffab91, #ff7043);
}
.tech-python{
  background: radial-gradient(circle at 20% 0, #ffd54f, #1976d2);
}
.tech-webflow{
  background: radial-gradient(circle at 20% 0, #c5b3ff, #673ab7);
}

/* Architecture band */
.architecture-section.band{
  margin-top: 24px;
}
.architecture-layout{
  display:flex;
  flex-direction:column;
  gap:18px;
}
.architecture-copy p{
  color: var(--ink-dim);
}
.architecture-figure{
  margin:0;
}
.architecture-figure img{
  max-width:100%;
  height:auto;
  border-radius:20px;
  display:block;
  box-shadow: 0 20px 48px rgba(0,0,0,.60);
}
.architecture-figure figcaption{
  margin-top:8px;
  font-size: 13px;
  color: var(--ink-dim);
  text-align:center;
}
@media (min-width: 900px){
  .architecture-layout{
    flex-direction:row;
    align-items:center;
    gap:26px;
  }
  .architecture-copy{
    flex: 1 1 0;
  }
  .architecture-figure{
    flex: 1 1 0;
  }
}

/* === Soft scroll-in animations === */

.reveal-up{
  opacity:0;
  transform: translateY(80px);
  transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1);
}
.reveal-up.is-visible{
  opacity:1;
  transform: translateY(0);
}


/* Directional variants for home hero + slice headers */
.slide-from-left.reveal-up{
  transform: translateX(-140px);
}
.slide-from-right.reveal-up{
  transform: translateX(140px);
}
.slide-from-left.reveal-up.is-visible,
.slide-from-right.reveal-up.is-visible{
  transform: translateX(0);
}

/* Staggered reveal delays */
.reveal-delay-1{
  transition-delay: .15s;
}
.reveal-delay-2{
  transition-delay: .3s;
}
.reveal-delay-3{
  transition-delay: .45s;
}

@media (prefers-reduced-motion: reduce){
  .reveal-up,
  .slide-from-left.reveal-up,
  .slide-from-right.reveal-up{
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* === Full-width feel: remove boxed wrap background === */
.wrap{
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

/* === Home slices: dramatic spacing & alternating slide directions === */
.home.immersive .story{
  margin-top: clamp(24px, 4vw, 48px);
}

.home.immersive .slice{
  position: relative;
  margin: clamp(60px, 10vh, 160px) 0 !important;
}

/* Alternate slide-in direction for each slice block on the home page */
.home.immersive .story .slice:nth-of-type(odd) .slice-inner.reveal-up{
  transform: translateX(-220px);
}
.home.immersive .story .slice:nth-of-type(even) .slice-inner.reveal-up{
  transform: translateX(220px);
}
.home.immersive .story .slice .slice-inner.reveal-up.is-visible{
  transform: translateX(0);
}

/* Ensure slice headings inside animated blocks inherit the motion */
.home.immersive .story .slice .slice-inner.reveal-up h2{
  margin-top: 0;
}

/* Respect reduced motion preference for these too */
@media (prefers-reduced-motion: reduce){
  .home.immersive .story .slice .slice-inner.reveal-up{
    transform: none !important;
  }
}


/* === Global: remove boxy slice-inner background/frame for full-page feel === */
.slice-inner{
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  border: 0 !important;
}


/* === Hybrid hero card + carousel styling === */

.hero-section .hero-card{
  position: relative;
  padding: clamp(22px, 3vw, 30px) clamp(22px, 3.5vw, 36px);
  border-radius: 22px;
  background:
    radial-gradient(900px 420px at 110% -10%, rgba(120,160,255,.18), transparent 40%),
    radial-gradient(900px 420px at -10% 80%, rgba(90,120,255,.12), transparent 40%),
    linear-gradient(160deg, rgba(102,168,255,0.98), rgba(60,126,230,0.99));
  box-shadow: 0 26px 80px rgba(0,0,0,.82);
  border: 1px solid rgba(124,152,255,.55);
  overflow:hidden;
}

.hero-card-chip{
  position:absolute;
  top:14px;
  left:16px;
  width:34px;
  height:34px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  background: rgba(8,14,36,.92);
  box-shadow: 0 0 0 1px rgba(124,152,255,.65), 0 8px 24px rgba(0,0,0,.8);
}

.hero-card h1{
  margin-left: 52px;
  margin-bottom: 4px;
}

.hero-card .hero-subtitle{
  margin-left: 52px;
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--ink-dim);
}

.hero-intro-copy{
  margin: 0;
  color: var(--ink-dim);
  line-height: 1.7;
}

/* Hero carousel layout */
.hero-carousel-section .slice-inner{
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(102,168,255,0.98), rgba(60,126,230,0.99));
  box-shadow: 0 22px 70px rgba(0,0,0,.85);
  border: 1px solid rgba(124,152,255,.5);
}

.hero-carousel{
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-carousel-track{
  display:flex;
  gap: 18px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  padding: 14px 4px 10px;
  scroll-behavior:smooth;
}

.hero-carousel-track::-webkit-scrollbar{
  height: 6px;
}
.hero-carousel-track::-webkit-scrollbar-thumb{
  background: rgba(124,152,255,.55);
  border-radius: 999px;
}

.hero-carousel-card{
  position: relative;
  min-width: min(260px, 80vw);
  max-width: 300px;
  padding: 16px 16px 18px;
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(102,168,255,0.98), rgba(60,126,230,0.99));
  box-shadow: 0 18px 46px rgba(0,0,0,.78);
  border: 1px solid rgba(91,123,255,.45);
  scroll-snap-align: center;
  transition:
    transform .18s ease-out,
    box-shadow .18s ease-out,
    border-color .18s ease-out,
    background .18s ease-out,
    opacity .18s ease-out;
  opacity:.72;
}

.hero-carousel-card .hero-card-chip{
  position: static;
  margin-bottom: 6px;
  width: 30px;
  height: 30px;
  font-size: 16px;
  border-radius: 999px;
}

.hero-carousel-card h3{
  margin: 0 0 4px;
  font-size: 16px;
}
.hero-card-tagline{
  margin:0 0 8px;
  font-size: 13px;
  color: var(--ink-dim);
}
.hero-card-body{
  margin:0;
  font-size: 13px;
  color: var(--ink-dim);
}

/* Active card emphasis */
.hero-carousel-card.is-active{
  opacity:1;
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 26px 70px rgba(0,0,0,.95);
  border-color: rgba(159,190,255,.95);
}

/* Carousel nav buttons */
.hero-carousel-nav{
  border:none;
  background: rgba(6,10,28,.9);
  color: var(--ink);
  width:32px;
  height:32px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  cursor:pointer;
  box-shadow: 0 0 0 1px rgba(124,152,255,.6), 0 10px 30px rgba(0,0,0,.9);
  transition: background .15s ease-out, transform .15s ease-out, box-shadow .15s ease-out;
}
.hero-carousel-nav:hover{
  background: rgba(18,26,60,1);
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(0,0,0,.95);
}

@media (max-width: 720px){
  .hero-carousel{
    gap: 8px;
  }
  .hero-carousel-nav{
    display:none;
  }
  .hero-card h1,
  .hero-card .hero-subtitle{
    margin-left: 0;
  }
  .hero-card-chip{
    position: static;
    margin-bottom: 8px;
  }
}


/* === Alternating timeline cards with status bars === */

.timeline-section .slice-inner{
  position:relative;
}

.timeline-shell{
  position:relative;
  margin-top: 8px;
  padding: 20px 0 10px;
}

.timeline-line{
  position:absolute;
  z-index:0;
  left:50%;
  top:0;
  bottom:0;
  width:3px;
  transform:translateX(-50%);
  background: linear-gradient(180deg, rgba(124,152,255,.2), rgba(124,152,255,.85), rgba(124,152,255,.2));
  box-shadow: 0 0 18px rgba(124,152,255,.6);
  pointer-events:none;
}

.timeline-rows{
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  gap: 14px;
}

.timeline-row{
  position:relative;
  display:flex;
  align-items:flex-start;
  gap: 16px;
}

.timeline-row[data-side="left"]{
  justify-content:flex-start;
}
.timeline-row[data-side="right"]{
  justify-content:flex-end;
}

/* Node aligned on center line */
.timeline-node{
  position:absolute;
  z-index:1;
  left:50%;
  transform:translateX(-50%);
  width:16px;
  height:16px;
  border-radius:999px;
  background: #9ab0ff;
  box-shadow: 0 0 14px rgba(154,176,255,.9);
}

/* Card container that matches hero/tech style but more compact */
.timeline-card{
  position:relative;
  max-width: 420px;
  padding: 14px 14px 16px;
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(102,168,255,0.98), rgba(60,126,230,0.99));
  box-shadow: 0 20px 50px rgba(0,0,0,.82);
  border: 1px solid rgba(124,152,255,.55);
  display:flex;
  flex-direction:column;
  gap:4px;
}

.timeline-card .hero-card-chip{
  position: static;
  width:28px;
  height:28px;
  font-size:15px;
  border-radius:999px;
  margin-bottom:4px;
}

.timeline-card h3{
  margin:0 0 2px;
  font-size: 15px;
}

.timeline-date{
  margin:0 0 6px;
  font-size: 12px;
  color: var(--ink-dim);
}

/* Status pill bar */
.timeline-status-pill{
  align-self:flex-start;
  margin-top:4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.08em;
  border:1px solid transparent;
  box-shadow:0 0 0 1px rgba(255,255,255,.04), 0 0 16px rgba(0,0,0,.7);
}

.timeline-status-pill.completed{
  background: linear-gradient(90deg, #00d88a, #00ffb0);
  border-color: rgba(0,255,176,.9);
  box-shadow: 0 0 14px rgba(0,255,176,.75);
  color:#021a10;
}

.timeline-status-pill.not-completed{
  background: linear-gradient(90deg, #ff4b4b, #ff7a5f);
  border-color: rgba(255,122,111,.9);
  box-shadow: 0 0 14px rgba(255,105,105,.8);
  color:#2b0505;
}

/* Responsive: collapse to single column on small screens */
@media (max-width: 780px){
  .timeline-line{
    left:12px;
    transform:none;
  }
  .timeline-node{
    left:12px;
    transform:none;
  }
  .timeline-row{
    justify-content:flex-start !important;
    padding-left: 32px;
  }
  .timeline-card{
    max-width: 100%;
  }
}

.timeline-status-pill.in-progress{
  background: linear-gradient(90deg, #ffce3a, #ffb300);
  border-color: rgba(255,200,80,.9);
  box-shadow:0 0 14px rgba(255,200,80,.8);
  color:#3a2400;
}


/* === Home info panel: merged Sponsor + Quick Links === */

.home-info-panel{
  position:relative;
  border-radius: 22px;
  background:
    radial-gradient(900px 420px at 110% -10%, rgba(120,160,255,.16), transparent 40%),
    radial-gradient(900px 420px at -10% 80%, rgba(90,120,255,.12), transparent 40%),
    linear-gradient(160deg, rgba(102,168,255,0.98), rgba(60,126,230,0.99));
  box-shadow: 0 26px 80px rgba(0,0,0,.82);
  border: 1px solid rgba(124,152,255,.55);
  overflow:hidden;
  padding: 18px 18px 20px;
}

.home-info-layout{
  display:grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
  align-items:flex-start;
}

.home-info-col{
  position:relative;
  display:flex;
  flex-direction:column;
  gap: 8px;
}

.home-info-col .hero-card-chip{
  position: static;
  margin-bottom: 4px;
  width: 30px;
  height: 30px;
  font-size: 16px;
  border-radius: 999px;
}

.home-info-col h2{
  margin: 0 0 6px;
  font-size: 18px;
}

.home-info-col p{
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--ink-dim);
}

/* Quick links styling inside the panel */
.home-info-col .quick-links-list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.home-info-col .quick-links-list a{
  font-size: 14px;
  text-decoration:none;
  color: var(--ink);
  opacity:.9;
}

.home-info-col .quick-links-list a:hover{
  text-decoration:underline;
  opacity:1;
}

/* Pill-style external link button */
.pill-link{
  align-self:flex-start;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(159,190,255,.9);
  background: rgba(12,20,54,.9);
  font-size: 13px;
  text-decoration:none;
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(0,0,0,.85);
  transition:
    background .18s ease-out,
    transform .18s ease-out,
    box-shadow .18s ease-out,
    border-color .18s ease-out;
}

.pill-link:hover{
  background: rgba(28,46,104,1);
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(0,0,0,.95);
  border-color: rgba(191,210,255,1);
}

@media (max-width: 840px){
  .home-info-layout{
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}


/* === Project page visual overhaul === */

.project-page .story{
  display:flex;
  flex-direction:column;
  gap: 22px;
}

/* Hero card at top of project page */
.project-hero-card{
  position:relative;
  padding: clamp(22px, 3vw, 30px) clamp(22px, 3.5vw, 36px);
  border-radius: 22px;
  background:
    radial-gradient(900px 420px at 110% -10%, rgba(120,160,255,.18), transparent 40%),
    radial-gradient(900px 420px at -10% 80%, rgba(90,120,255,.12), transparent 40%),
    linear-gradient(160deg, rgba(102,168,255,0.98), rgba(60,126,230,0.99));
  box-shadow: 0 26px 80px rgba(0,0,0,.82);
  border: 1px solid rgba(124,152,255,.55);
  overflow:hidden;
}

.project-hero-card .hero-card-chip{
  position:absolute;
  top:16px;
  left:18px;
  width:34px;
  height:34px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  background: rgba(8,14,36,.92);
  box-shadow: 0 0 0 1px rgba(124,152,255,.65), 0 8px 24px rgba(0,0,0,.8);
}

.project-hero-card h1{
  margin-left: 56px;
  margin-bottom: 6px;
}

.project-hero-tagline{
  margin: 0 0 10px;
  margin-left: 56px;
  color: var(--ink-dim);
  max-width: 60ch;
}

.project-hero-meta{
  display:flex;
  flex-wrap:wrap;
  gap: 6px;
  margin-left: 56px;
}

.project-pill{
  padding: 4px 10px;
  border-radius:999px;
  font-size: 11px;
  text-transform:uppercase;
  letter-spacing:.08em;
  border:1px solid rgba(159,190,255,.85);
  background: rgba(8,14,36,.95);
  box-shadow: 0 6px 18px rgba(0,0,0,.85);
}

/* Project content grid */
.project-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 6px;
}

.project-card{
  position:relative;
  padding: 16px 16px 18px;
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(102,168,255,0.98), rgba(60,126,230,0.99));
  box-shadow: 0 20px 50px rgba(0,0,0,.82);
  border: 1px solid rgba(124,152,255,.55);
  display:flex;
  flex-direction:column;
  gap: 6px;
  transition:
    transform .18s ease-out,
    box-shadow .18s ease-out,
    border-color .18s ease-out,
    background .18s ease-out;
}

.project-card h2{
  margin: 0 0 4px;
  font-size: 17px;
}

.project-card p,
.project-card ul{
  margin: 0;
  font-size: 14px;
  color: var(--ink-dim);
}

.project-card ul{
  padding-left: 18px;
}

/* Hover lift for project cards */
.project-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 26px 70px rgba(0,0,0,.9);
  border-color: rgba(159,190,255,.95);
  background:
    linear-gradient(160deg, rgba(102,168,255,0.98), rgba(60,126,230,0.99));
}

/* Responsive: stack project cards on small screens */
@media (max-width: 900px){
  .project-grid{
    grid-template-columns: minmax(0, 1fr);
  }
  .project-hero-card h1,
  .project-hero-tagline,
  .project-hero-meta{
    margin-left: 0;
  }
  .project-hero-card .hero-card-chip{
    position: static;
    margin-bottom: 8px;
  }
}


/* === Project page: chapter-based narrative layout === */

.project-page .project-story{
  display:flex;
  flex-direction:column;
  gap: 20px;
}

/* Chapter general card styling */
.project-chapter-card{
  position:relative;
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(102,168,255,0.98), rgba(60,126,230,0.99));
  box-shadow: 0 24px 70px rgba(0,0,0,.88);
  border: 1px solid rgba(124,152,255,.65);
  padding: clamp(20px, 2.4vw, 26px) clamp(20px, 3vw, 32px);
}

.project-chapter .hero-card-chip{
  position:absolute;
  top:16px;
  left:18px;
  width:32px;
  height:32px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  background: rgba(8,14,36,.95);
  box-shadow: 0 0 0 1px rgba(124,152,255,.65), 0 8px 24px rgba(0,0,0,.8);
}

.project-chapter-intro .hero-card-chip{
  top:18px;
}

.project-chapter-intro .chapter-title{
  margin-left: 56px;
}
.project-chapter-intro .chapter-lead,
.project-chapter-intro .chapter-highlights{
  margin-left: 56px;
}

.chapter-kicker{
  margin: 0 0 4px;
  font-size: 11px;
  text-transform:uppercase;
  letter-spacing:.16em;
  color: rgba(191,210,255,.75);
}

.chapter-title{
  margin: 0 0 8px;
}

.chapter-lead{
  margin:0 0 10px;
  color: var(--ink-dim);
}

.chapter-highlights{
  display:flex;
  flex-wrap:wrap;
  gap: 6px;
}

.chapter-pill{
  padding: 4px 10px;
  border-radius:999px;
  font-size: 11px;
  text-transform:uppercase;
  letter-spacing:.08em;
  border:1px solid rgba(159,190,255,.85);
  background: rgba(8,14,36,.98);
  box-shadow: 0 6px 18px rgba(0,0,0,.85);
}

/* Generic chapter layouts */
.chapter-layout{
  margin-top: 6px;
}

.chapter-layout.two-column{
  display:grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 18px;
}

.chapter-layout.feature-rows{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.chapter-layout.stretch-tags{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.chapter-column{
  display:flex;
  flex-direction:column;
  gap: 4px;
}

.chapter-points ul{
  margin:0;
  padding-left: 18px;
}

/* Mini feature cards used inside chapters */
.mini-feature-card,
.tag-card{
  border-radius: 16px;
  background:
    linear-gradient(160deg, rgba(102,168,255,0.98), rgba(60,126,230,0.99));
  box-shadow: 0 16px 46px rgba(0,0,0,.85);
  border: 1px solid rgba(98,130,245,.7);
  padding: 10px 12px 12px;
}

.mini-feature-card h3,
.tag-card h3{
  margin:0 0 4px;
  font-size: 14px;
}

.mini-feature-card ul,
.tag-card ul{
  margin:0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--ink-dim);
}

.chapter-footnote{
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-dim);
}

/* Responsive behavior */
@media (max-width: 960px){
  .chapter-layout.two-column{
    grid-template-columns: minmax(0, 1fr);
  }
  .chapter-layout.feature-rows{
    grid-template-columns: minmax(0, 1fr);
  }
  .chapter-layout.stretch-tags{
    grid-template-columns: minmax(0, 1fr);
  }
  .project-chapter .hero-card-chip{
    position: static;
    margin-bottom: 8px;
  }
  .project-chapter-intro .chapter-title,
  .project-chapter-intro .chapter-lead,
  .project-chapter-intro .chapter-highlights{
    margin-left: 0;
  }
}


/* === Project page: Blueprint theme (medium intensity) === */

.project-page .blueprint-page{
  display:flex;
  flex-direction:column;
  gap: 20px;
}

/* Panel container */
.blueprint-panel{
  position:relative;
  border-radius: 22px;
  background:
    radial-gradient(900px 420px at 110% -10%, rgba(74,112,204,0.18), transparent 40%),
    radial-gradient(900px 420px at -10% 80%, rgba(64,92,196,0.14), transparent 40%),
    linear-gradient(160deg, rgba(102,168,255,0.98), rgba(60,126,230,0.99));
  box-shadow: 0 24px 70px rgba(0,0,0,0.9);
  border: 1px solid rgba(120,158,255,0.85);
  overflow:hidden;
  padding: clamp(18px, 2.4vw, 24px) clamp(20px, 3vw, 30px);
}

/* Faint grid overlay inside panel */
.blueprint-panel::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(transparent 11px, rgba(140,170,255,0.05) 12px),
    linear-gradient(90deg, transparent 11px, rgba(140,170,255,0.05) 12px);
  background-size: 12px 12px;
  opacity:0.35;
  pointer-events:none;
  mix-blend-mode:soft-light;
}

/* Wireframe corner brackets */
.blueprint-corners::before,
.blueprint-corners::after{
  content:"";
  position:absolute;
  inset:10px;
  border-radius:18px;
  border: 1px solid rgba(140,170,255,0.45);
  border-top:none;
  border-bottom:none;
  pointer-events:none;
}
.blueprint-corners::after{
  inset:16px;
  border-radius: 14px;
  border: 1px dashed rgba(140,170,255,0.32);
  border-left:none;
  border-right:none;
}

/* Header row */
.blueprint-header{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 10px;
  z-index:1;
}

.blueprint-header-left{
  display:flex;
  align-items:center;
  gap: 8px;
}

.blueprint-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  border-radius:999px;
  font-size:16px;
  background: rgba(7,11,30,0.95);
  box-shadow: 0 0 0 1px rgba(148,176,255,0.85), 0 8px 24px rgba(0,0,0,0.86);
}

.blueprint-header-label{
  font-size: 11px;
  text-transform:uppercase;
  letter-spacing:0.18em;
  color: rgba(191,210,255,0.86);
}



/* Body */
.blueprint-body{
  position:relative;
  z-index:1;
}

.blueprint-body-hero{
  margin-top: 8px;
}

.blueprint-title{
  margin: 0 0 8px;
}

.blueprint-lead{
  margin:0 0 10px;
  color: var(--ink-dim);
}





/* Layouts inside panels */
.blueprint-layout{
  margin-top: 6px;
}

.blueprint-layout.two-col{
  display:grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 18px;
}

.blueprint-layout.three-col{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 6px;
}

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

.blueprint-spec-list ul{
  margin:0;
  padding-left: 18px;
  font-size:14px;
  color: var(--ink-dim);
}

/* Internal spec cards */
.spec-card{
  border-radius: 16px;
  background:
    linear-gradient(160deg, rgba(102,168,255,0.98), rgba(60,126,230,0.99));
  box-shadow: 0 16px 48px rgba(0,0,0,0.88);
  border: 1px solid rgba(106,138,245,0.8);
  padding: 10px 12px 12px;
}

.spec-card h3{
  margin:0 0 4px;
  font-size:14px;
}

.spec-card ul{
  margin:0;
  padding-left: 18px;
  font-size:13px;
  color: var(--ink-dim);
}

/* Footnote */
.blueprint-footnote{
  margin-top: 12px;
  font-size: 12px;
  color: var(--ink-dim);
}

/* Blueprint hero slight emphasis */
/*.blueprint-panel-hero .blueprint-panel{
  /* no-op; hero uses same class but we might boost margin in HTML */
/*}

/* Responsive behavior */
@media (max-width: 960px){
  .blueprint-layout.two-col{
    grid-template-columns: minmax(0, 1fr);
  }
  .blueprint-layout.three-col{
    grid-template-columns: minmax(0, 1fr);
  }
  .blueprint-header{
    flex-direction:column;
    align-items:flex-start;
  }
}


/* === Code & Demo page styling === */

.code-story{ gap:2px;
}

/* Hero for Code & Demo */
.code-hero-card{
  position:relative;
  padding: clamp(22px, 3vw, 30px) clamp(22px, 3.2vw, 34px);
  border-radius: 22px;
  background:
    radial-gradient(900px 420px at 110% -10%, rgba(120,160,255,.18), transparent 40%),
    radial-gradient(900px 420px at -10% 80%, rgba(90,120,255,.12), transparent 40%),
    linear-gradient(160deg, rgba(102,168,255,0.98), rgba(60,126,230,0.99));
  box-shadow: 0 26px 80px rgba(0,0,0,.82);
  border: 1px solid rgba(124,152,255,.55);
  overflow:hidden;
}

.code-hero-card .hero-card-chip{
  position:absolute;
  top:16px;
  left:18px;
  width:34px;
  height:34px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  background: rgba(8,14,36,.92);
  box-shadow: 0 0 0 1px rgba(124,152,255,.65), 0 8px 24px rgba(0,0,0,.8);
}

.code-hero-card h1{
  margin-left: 56px;
  margin-bottom: 6px;
}
.code-hero-lead{
  margin: 0;
  margin-left: 56px;
  max-width: 60ch;
  color: var(--ink-dim);
}

/* Gallery wrapper */
.code-gallery-card{
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(102,168,255,0.98), rgba(60,126,230,0.99));
  box-shadow: 0 22px 70px rgba(0,0,0,.85);
  border: 1px solid rgba(124,152,255,.5);
  padding: clamp(20px, 2.2vw, 26px) clamp(20px, 3vw, 32px);
}

.code-gallery-card h2{
  margin-top:0;
  margin-bottom:4px;
}
.code-gallery-lead{
  margin:0 0 12px;
  color: var(--ink-dim);
}

/* Demo grid */
.demo-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.demo-card{
  position:relative;
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(102,168,255,0.98), rgba(60,126,230,0.99));
  box-shadow: 0 18px 48px rgba(0,0,0,.82);
  border: 1px solid rgba(124,152,255,.60);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

/* Thumbnail: unified sizing */
.demo-thumb-wrap{
  position:relative;
  width:100%;
  max-height: 600px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.demo-thumb-wrap img{
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  object-fit:contain;
  display:block;
}

/* Caption */
.demo-card figcaption{
  padding: 10px 12px 12px;
}
.demo-card h3{
  margin:0 0 4px;
  font-size: 15px;
}
.demo-card p{
  margin:0;
  font-size: 13px;
  color: var(--ink-dim);
}

/* Hover effect */
.demo-card:hover{
  box-shadow: 0 26px 70px rgba(0,0,0,.9);
  border-color: rgba(159,190,255,.95);
  transform: translateY(-3px);
  transition:
    transform .18s ease-out,
    box-shadow .18s ease-out,
    border-color .18s ease-out;
}

/* Responsive hero alignment */
@media (max-width: 840px){
  .code-hero-card h1,
  .code-hero-lead{
    margin-left: 0;
  }
  .code-hero-card .hero-card-chip{
    position: static;
    margin-bottom: 8px;
  }
}


/* Contact Page Enhancements */
.contact-story{display:flex;flex-direction:column;gap:14px;}
.contact-hero-card{
  border-radius:22px;
  background:linear-gradient(160deg,rgba(10,16,40,.98),rgba(6,10,30,.98));
  box-shadow:0 26px 80px rgba(0,0,0,.82);
  border:1px solid rgba(124,152,255,.55);
  padding:28px;
  text-align:center;
}
.contact-grid-inner{
  border-radius:22px;
  background:linear-gradient(160deg,rgba(12,18,46,.96),rgba(6,10,30,.99));
  box-shadow:0 22px 70px rgba(0,0,0,.85);
  border:1px solid rgba(124,152,255,.5);
  padding:26px;
}
.contact-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:16px;
}
.contact-card{
  background:linear-gradient(160deg,rgba(18,26,52,.92),rgba(10,18,40,.98));
  border:1px solid rgba(124,152,255,.6);
  border-radius:18px;
  padding:14px;
  box-shadow:0 18px 48px rgba(0,0,0,.82);
}


/* === Decked Out: brighter card surfaces for key content === */
/* Homepage hero cards, roadmap timeline, project specs, and technologies grid */
.hero-carousel-card,
.timeline-card,
.spec-card,
.tech-card,
.contact-card {
  background:
    linear-gradient(160deg, rgba(102,168,255,0.98), rgba(60,126,230,0.99)) !important;
  border-color: rgba(142,200,255,0.92) !important;
}


/* === Even Brighter Card Surfaces (High‑Contrast Blue) === */
.hero-carousel-card,
.timeline-card,
.spec-card,
.tech-card,
.contact-card {
  background:
    linear-gradient(160deg, rgba(102,168,255,0.98), rgba(60,126,230,0.99)) !important;
  border-color: rgba(165,220,255,0.96) !important;
  box-shadow: 0 22px 55px rgba(0,0,0,0.75) !important;
}


/* === GLOBAL ENHANCEMENTS PACKAGE === */

/* 1. Softer swirl background for better contrast */
body::before,
body::after {
  opacity: 0.65 !important;
}

/* 2. Header hierarchy refinement */
.page-title, .hero-title {
  color: var(--header-text) !important;
  text-shadow: 0 0 12px rgba(101,202,246,0.45);
}
section h2 {
  color: var(--ink-dim) !important;
}
.card h3 {
  color: var(--header-text) !important;
}

/* 3. Card inner glow */
.hero-carousel-card,
.timeline-card,
.spec-card,
.tech-card,
.contact-card {
  position: relative;
}
.hero-carousel-card::after,
.timeline-card::after,
.spec-card::after,
.tech-card::after,
.contact-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 50% 30%, rgba(255,255,255,0.07), transparent 75%);
  opacity: 0.9;
}

/* 4. Blueprint/grid subtle texture */
.slice-inner {
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* 5. Nav hover animation */
.nav-links a {
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--glow);
  transition: all 0.25s ease;
}
.nav-links a:hover::after {
  width: 100%;
  left: 0;
}

/* 6. Subtle top strip on cards */
.hero-carousel-card::before,
.timeline-card::before,
.spec-card::before,
.tech-card::before,
.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(255,255,255,0.12), transparent);
  border-radius: 18px 18px 0 0;
  pointer-events: none;
}

/* 7. Differentiated timeline brightness */
.timeline-card {
  background:
    linear-gradient(160deg, rgba(102,168,255,0.98), rgba(60,126,230,0.99)) !important;
}

/* 8. CTA & link interactions */
a:hover {
  text-shadow: 0 0 6px rgba(101,202,246,0.65);
}


/* Force homepage headers colored */
.hero-subtitle,
.home-info-panel h2,
.home-info-col h2 {
  color: var(--header-text) !important;
  text-shadow: 0 0 10px rgba(101,202,246,0.35);
}


/* Timeline & architecture section headers use full header effect */
.timeline-section .slice-inner > h2,
.architecture-copy > h2 {
  color: var(--header-text) !important;
  text-shadow: 0 0 12px rgba(101,202,246,0.45);
}

/* Timeline event titles: keep colored but without glow */
.timeline-card h3 {
  text-shadow: none !important;
}


/* === Card-specific typography: white body text, dark-blue card titles === */
.hero-carousel-card,
.timeline-card,
.spec-card,
.tech-card,
.contact-card {
  color: #FFFFFF;
}

.hero-carousel-card h2,
.hero-carousel-card h3,
.timeline-card h3,
.spec-card h3,
.tech-card h2,
.contact-card h3 {
  color: #0F2C6A !important; /* darker blue than card bg, distinct from cyan headers */
  text-shadow: none !important;
}



/* Home video card section */
.home-video-section {
  margin-top: 56px;
  margin-bottom: 40px;
}
.home-video-section .slice-inner {
  max-width: 960px;
  margin: 0 auto;
}
.video-card {
  background:
    linear-gradient(160deg, rgba(18,26,52,0.96), rgba(10,18,40,0.99));
  border-radius: 20px;
  padding: 20px 20px 24px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.85);
  border: 1px solid rgba(124,152,255,0.6);
}
.video-header {
  margin: 0 0 16px;
  font-size: clamp(20px, 1.2vw + 1rem, 26px);
  color: var(--header-text);
  text-align: left;
}
.video-frame-wrapper {
  border-radius: 16px;
  overflow: hidden;
}
.video-frame-wrapper iframe {
  display: block;
  width: 100%;
  border: 0;
}


/* === Timeline dividers + sprint tags === */
.timeline-divider{
  position: relative;
  z-index: 4;
  display:flex;
  justify-content:center;
  margin: 18px 0 8px;
}

.timeline-divider-node{
  position:absolute;
  z-index: 1;
  left:50%;
  top: 18px;
  transform:translateX(-50%);
  width:22px;
  height:22px;
  border-radius:999px;
  background: radial-gradient(circle at 35% 35%, #d9e5ff, #7ea0ff 58%, #4069da 100%);
  box-shadow: 0 0 18px rgba(124,152,255,.9);
  border:1px solid rgba(255,255,255,.28);
}

.timeline-divider-card{
  position: relative;
  z-index: 5;
  width:min(560px, calc(100% - 120px));
  text-align:center;
  padding: 14px 18px 16px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(22,33,78,.95), rgba(13,20,40,.96));
  border: 1px solid rgba(124,152,255,.4);
  box-shadow: 0 18px 40px rgba(0,0,0,.52);
}

.timeline-divider-label,
.timeline-sprint-tag{
  margin:0 0 6px;
  font-size: 11px;
  letter-spacing:.12em;
  text-transform: uppercase;
  font-weight:700;
  color:#a9beff;
}

.timeline-sprint-tag{
  margin-bottom:4px;
}

.timeline-divider-card h3{
  margin:0;
  font-size: 19px;
}

.timeline-divider-range{
  margin:6px 0 0;
  color: var(--ink-dim);
  font-size: 13px;
}

.timeline-card{
  min-width: min(420px, calc(50% - 42px));
}

.timeline-status-not-completed{
  opacity:.94;
}

@media (max-width: 780px){
  .timeline-divider{
    justify-content:flex-start;
    padding-left: 32px;
  }
  .timeline-divider-node{
    left:12px;
    transform:none;
  }
  .timeline-divider-card{
    width:100%;
    text-align:left;
  }
  .timeline-card{
    min-width: 0;
  }
}


/* Prototype gallery refresh */
.prototype-groups {
  display: grid;
  gap: 2rem;
}

.prototype-group {
  border: 1px solid rgba(143, 176, 255, 0.18);
  border-radius: 22px;
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(17, 24, 48, 0.9), rgba(13, 20, 40, 0.92));
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}

.prototype-group-head {
  margin-bottom: 1rem;
}

.prototype-group-head h3 {
  margin-bottom: 0.35rem;
}

.prototype-group-head p {
  margin: 0;
}

.grouped-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grouped-grid.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.phone-shot {
  padding: 1rem;
  background: linear-gradient(180deg, rgba(10, 18, 48, 0.92), rgba(7, 11, 25, 0.96));
}

.phone-shot img {
  width: auto;
  max-width: 100%;
  max-height: 620px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
  border-radius: 22px;
}

.demo-card figcaption h4 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

@media (max-width: 1100px) {
  .grouped-grid,
  .grouped-grid.three-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .prototype-group {
    padding: 1.1rem;
  }

  .grouped-grid,
  .grouped-grid.three-up {
    grid-template-columns: 1fr;
  }

  .phone-shot img {
    max-height: 540px;
  }
}
/* === Demo / Gallery alternating showcase layout === */

.demo-gallery-alt-page {
  width: 100%;
}

.demo-gallery-hero {
  margin-top: 18px;
}

.demo-gallery-hero-block {
  max-width: 980px;
}

.demo-gallery-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(191,210,255,.78);
}

.demo-gallery-lead {
  max-width: 76ch;
  margin: 0;
  color: var(--ink-dim);
  line-height: 1.75;
}

.demo-showcase-row {
  margin-top: 22px;
}

.demo-showcase-row .slice-inner {
  max-width: 1220px;
  margin: 0 auto;
}

.demo-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.72fr);
  gap: 24px;
  align-items: center;
}

.demo-showcase-image-right {
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.05fr);
}

.demo-showcase-media {
  margin: 0;
}

.demo-showcase-media img {
  width: 100%;
  max-width: 820px;
  display: block;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(0,0,0,.34);
  margin: 0 auto;
}

.demo-showcase-copy {
  max-width: 420px;
}

.tech-style-copy {
  position: relative;
  padding: 18px 18px 20px;
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(102,168,255,0.98), rgba(60,126,230,0.99));
  box-shadow: 0 18px 40px rgba(0,0,0,.60);
  border: 1px solid rgba(91,123,255,.40);
  overflow: hidden;
}

.tech-style-copy::before {
  content: "";
  position: absolute;
  inset: -20%;
  opacity: .45;
  background: radial-gradient(circle at top left, rgba(91,123,255,.28), transparent 55%);
  pointer-events: none;
}

.demo-showcase-tag {
  position: relative;
  z-index: 1;
  margin: 0 0 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(232,238,252,.82);
}

.tech-style-copy h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  font-size: 24px;
  color: #0F2C6A !important;
  text-shadow: none !important;
}

.tech-style-copy p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #ffffff !important;
  line-height: 1.72;
}

@media (max-width: 980px) {
  .demo-showcase,
  .demo-showcase-image-right {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .demo-showcase-copy {
    max-width: none;
  }

  .demo-showcase-media img {
    max-width: 100%;
  }
}
/* === Demo / Gallery refinements === */

/* Make images smaller + centered */
.demo-showcase-media {
  display: flex;
  justify-content: center;
}

.demo-showcase-media img {
  width: 100%;
  max-width: 680px; /* smaller than before */
  border-radius: 20px;
  box-shadow: 0 14px 36px rgba(0,0,0,.28);
  transition: transform .35s ease, box-shadow .35s ease;
}

/* Hover effect (subtle, clean) */
.demo-showcase-media img:hover {
  transform: scale(1.035);
  box-shadow: 0 22px 60px rgba(0,0,0,.45);
}

/* Rebalance layout: give text more presence */
.demo-showcase {
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
}

.demo-showcase-image-right {
  grid-template-columns: minmax(360px, 1.1fr) minmax(0, 0.9fr);
}

/* Make text panels larger + more readable */
.demo-showcase-copy {
  max-width: 520px;
}

.tech-style-copy {
  padding: 22px 22px 24px; /* larger box */
}

/* Make text slightly more substantial */
.tech-style-copy p {
  font-size: 15px;
  line-height: 1.8;
}

/* Make headings slightly stronger */
.tech-style-copy h2 {
  font-size: 26px;
}

/* Slight vertical breathing room between sections */
.demo-showcase-row {
  margin-top: 28px;
}

/* === Home Demo CTA === */

.home-demo-cta {
  text-align: center;
  margin-top: 18px;
}

.home-demo-button {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;

  background: linear-gradient(160deg, rgba(102,168,255,0.95), rgba(60,126,230,0.98));
  color: #0F2C6A;
  font-weight: 600;
  text-decoration: none;

  border: 1px solid rgba(91,123,255,.45);
  box-shadow: 0 10px 24px rgba(0,0,0,.35);

  transition: transform .25s ease, box-shadow .25s ease;
}

.home-demo-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(0,0,0,.5);
}
/* === Contact team layout (side-by-side, no photos) === */

.contact-team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.contact-card {
  padding: 18px;
  border-radius: 18px;

  background: linear-gradient(160deg, rgba(102,168,255,0.95), rgba(60,126,230,0.98));
  border: 1px solid rgba(91,123,255,.45);

  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}

.contact-card h3 {
  margin: 0 0 6px;
}

.contact-card .role {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.85;
  margin-bottom: 8px;
}

.contact-card p {
  margin: 0 0 8px;
}

.contact-card a {
  color: #ffffff;
  font-weight: 500;
  text-decoration: none;
}

/* Mobile fallback */
@media (max-width: 900px) {
  .contact-team-grid {
    grid-template-columns: 1fr;
  }
}
main.wrap,
main.immersive,
main.site-wide {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}
/* === UNIFIED LIGHT BLUE CARD STYLE === */
.card-blue {
  background: linear-gradient(160deg, rgba(102,168,255,0.98), rgba(60,126,230,0.99));
  border: 1px solid rgba(165,220,255,0.96);
  border-radius: 18px;
  box-shadow: 0 22px 55px rgba(0,0,0,0.75);

  color: #0b1020; /* deep readable ink */
}

/* Typography inside blue cards */
.card-blue h1,
.card-blue h2,
.card-blue h3,
.card-blue h4 {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0b1020;
}

.card-blue p,
.card-blue li,
.card-blue span {
  color: rgba(11,16,32,0.9);
  line-height: 1.5;
}

.card-blue a {
  color: #102a66;
  text-decoration: underline;
}


/* =========================================================
   SOURCE: app.css
   ========================================================= */

/* ===== Decked Out — Blue/White/Black Theme (self-contained) ===== */
:root{
  --bg:#f6f8fb; --card:#ffffff; --ink:#0b0b0b; --muted:#5b6573; --line:#e6ecf3;
  --blue-700:#0a4e96; --blue-600:#0e60ba; --blue-500:#1670d8; --blue-100:#e8f1ff;
  --shadow:0 6px 18px rgba(13,39,80,.08); --radius:14px; --radius-sm:10px; --radius-xs:8px; --max:1000px;
}
*{box-sizing:border-box}
html,body{margin:0;height:100%}
body{
  font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--ink);
  background:
    radial-gradient(1200px 600px at 120% -10%, rgba(22,112,216,0.12), transparent 50%),
    radial-gradient(800px 400px at -10% -20%, rgba(14,96,186,0.10), transparent 40%),
    var(--bg);
  line-height:1.55;
}
a{color:var(--blue-600);text-decoration:none}
a:hover{text-decoration:underline}
a:focus-visible{outline:3px solid #9ec6ff;outline-offset:2px;border-radius:6px}

.wrap{max-width:var(--max);margin:0 auto;padding:24px}
header{background:linear-gradient(180deg,#0b1a2e 0%,#0f2541 100%);color:#fff;border-bottom:1px solid rgba(255,255,255,.08)}
.masthead{display:flex;gap:16px;align-items:center;justify-content:space-between}
.brand{display:flex;gap:12px;align-items:center}
.brand img{width:52px;height:52px;object-fit:contain;filter:drop-shadow(0 1px 4px rgba(0,0,0,.25))}
.brand-name{font-weight:800;letter-spacing:.2px}

nav ul{list-style:none;display:flex;gap:10px;margin:0;padding:0;flex-wrap:wrap}
nav a{
  display:inline-block;padding:9px 14px;font-weight:700;letter-spacing:.1px;color:#eaf2ff;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.15);
  border-radius:10px;backdrop-filter:saturate(120%) blur(2px);
  transition:transform .18s ease, background .18s ease, border-color .18s ease;
}
nav a:hover{transform:translateY(-1px);background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.25)}
nav a.active{background:#1670d8;border-color:#1670d8;color:#fff}

main {
  margin-top: 22px;
}
section{padding:26px;border-top:1px solid #f0f4fa}
section:first-child{border-top:none}

h1{margin:0 0 8px;font-size:clamp(1.6rem,2.6vw,2.1rem);line-height:1.2}
h2{margin:18px 0 10px;font-size:1.1rem;text-transform:uppercase;letter-spacing:.12em;color:#0f2541}
p{margin:0 0 10px}
ul{margin:0 0 10px 20px}
.muted{color:var(--muted)}

.tag{
  display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border-radius:999px;
  background:var(--blue-100);color:var(--blue-600);font-weight:800;font-size:.92rem
}
.tag::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--blue-600);box-shadow:0 0 0 3px rgba(22,112,216,.15)}

.btn{
  display:inline-flex;align-items:center;gap:8px;padding:11px 16px;border-radius:12px;
  border:1px solid var(--blue-600);color:#fff;background:linear-gradient(180deg,var(--blue-600),var(--blue-700));
  font-weight:800;text-decoration:none;box-shadow:0 4px 10px rgba(15,37,65,.18);
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(15,37,65,.24)}
.btn.secondary{background:#fff;color:var(--blue-600);border-color:var(--blue-600)}
.btn.secondary:hover{filter:brightness(.98)}

.figure{
  border:1px dashed var(--line);border-radius:var(--radius-xs);padding:14px;text-align:center;
  background:linear-gradient(180deg,#fbfdff 0%,#f6f9ff 100%)
}

footer{text-align:center;font-size:.92rem;color:var(--muted);padding:22px 0 40px}
:focus-visible{outline:3px solid #9ec6ff;outline-offset:2px;border-radius:8px}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
@media print{header,nav,.btn{display:none} main,section{border:none;box-shadow:none} a{text-decoration:underline}}


body a{color:var(--link-color)!important;} body a:hover{color:var(--link-hover)!important;}

/* === style.css === */

:root{
  --bg-0:#0b1020;        /* deep night */
  --bg-1:#101735;        /* indigo */
  --bg-2:#182257;        /* sapphire */
  --ink:#e8eefc;         /* pale ink */
  --ink-dim:#bcc7e9;
  --card:#111830;        /* dark card */
  --card-2:#0d1428;
  --edge:#2a3d86;        /* edge/border */
  --glow:#5b7bff;        /* arcane blue */
  --glow-2:#8fb0ff;
  --glow-3:#3b56c9;
  --accent: var(--glow);
  --shadow:0 14px 36px rgba(0,0,0,.55);
}

html,body{height:100%;}
body{
  color:var(--ink);
  background:
    radial-gradient(1200px 800px at 10% -10%, rgba(143,176,255,.12), transparent 60%),
    radial-gradient(900px 700px at 90% 120%, rgba(59,86,201,.20), transparent 70%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0) 50%, var(--bg-1));
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans";
  line-height:1.55;
}

/* Arcane swirls as page accents */
body::before, body::after{
  content:""; position:fixed; inset:-10%; pointer-events:none; z-index:0;
  background:
    radial-gradient(120px 120px at 20% 35%, rgba(143,176,255,.18), transparent 60%),
    conic-gradient(from 30deg at 80% 20%, rgba(91,123,255,.12), transparent 40%, rgba(91,123,255,.10), transparent 70%);
  filter: blur(12px) saturate(130%);
  animation: swirlA 28s linear infinite;
  opacity:.8;
}
body::after{ animation: swirlB 36s linear infinite reverse; opacity:.55; }
@keyframes swirlA{ from{ transform: rotate(0deg);} to{ transform: rotate(360deg);} }
@keyframes swirlB{ from{ transform: rotate(0deg) scale(1.02);} to{ transform: rotate(-360deg) scale(1);} }

/* Lightning bolt accent using SVG mask on headings & buttons */
.arcane-bolt{
  position:relative;
}
.arcane-bolt::after{
  content:""; position:absolute; left:-8px; top:-8px; right:-8px; bottom:-8px; border-radius:14px;
  background: radial-gradient(60px 60px at 12% 30%, rgba(143,176,255,.25), transparent 60%),
              radial-gradient(40px 40px at 85% 70%, rgba(91,123,255,.18), transparent 65%);
  mask:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox=\"0 0 120 120\"><path d=\"M56 2 L30 70 H60 L48 118 L94 46 H64 L76 2 Z\" fill=\"white\" opacity=\"0.8\"/></svg>') center/30% no-repeat,
    linear-gradient(#fff,#fff);
  mix-blend-mode: screen;
  opacity:.35;
}

/* Containers */
.wrap{
  position:relative; z-index:1;
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.0));
  border-radius: 16px;
  padding: 1.25rem;
}

/* Masthead & nav */
.masthead .brand-name{ color:var(--ink); text-shadow:0 1px 0 rgba(0,0,0,.35); }
nav ul li a{ color:var(--ink-dim); }
nav ul li a.active{ color:var(--accent); text-shadow:0 0 10px rgba(143,176,255,.35); }

/* Hero */
.hero{
  position:relative; overflow:hidden; min-height:220px; display:flex; align-items:center; justify-content:space-between; gap:1rem;
  border:1px solid rgba(91,123,255,.25);
  background: linear-gradient(180deg, rgba(16,23,53,.92), rgba(16,23,53,.78));
  border-radius:18px; padding:1.25rem; box-shadow: var(--shadow);
}
.hero .hero-copy{ max-width:720px; }
.hero .hero-title{ font-size: clamp(1.6rem, 3vw, 2.4rem); margin:0 0 .3rem 0; color:#f0f4ff; }
.hero .hero-sub{ margin:0 0 .75rem 0; color: var(--ink-dim); }
.hero .hero-cta{ display:flex; gap:.75rem; flex-wrap:wrap; }
.hero .card-fan{ position:absolute; right:-40px; bottom:-40px; display:flex; gap:.4rem; transform: rotate(-12deg);
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.6));
}
.hero .fan-card{
  width:160px; height:220px; background: linear-gradient(180deg, var(--card), var(--card-2));
  border-radius: 14px; border:1px solid rgba(91,123,255,.25);
  box-shadow: 0 6px 22px rgba(0,0,0,.55);
}

/* Buttons & links */
a{ color:#cfe1ff; text-decoration:none; }
a:hover{ color:#8fb0ff; text-decoration:underline; text-underline-offset:2px; }
.button{
  display:inline-block; padding:.6rem 1rem; border-radius:12px;
  background: linear-gradient(180deg, rgba(143,176,255,.12), rgba(59,86,201,.08));
  border:1px solid rgba(91,123,255,.35); color:#f2f6ff;
  box-shadow: 0 8px 26px rgba(34,40,84,.55), inset 0 0 0 1px rgba(255,255,255,.04);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.button:hover{ transform: translateY(-2px);
  border-color: rgba(143,176,255,.8);
  box-shadow: 0 16px 40px rgba(34,40,84,.65), 0 0 0 2px rgba(143,176,255,.25) inset;
}

/* Card grid */
.card-grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap:1rem; margin-top:1rem; }
.card{
  position:relative; background: linear-gradient(180deg, var(--card), var(--card-2));
  border-radius: 16px; border:1px solid rgba(91,123,255,.25); box-shadow: var(--shadow);
  padding: 1rem; transform: translateZ(0);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover{ transform: translateY(-4px); box-shadow: 0 20px 48px rgba(0,0,0,.6); border-color: rgba(143,176,255,.5); }
.card h3{ margin:0 0 .5rem 0; font-weight:700; color:#eaf0ff; }
.card .meta{ color:#c7d2f3; font-size:.9rem; }

/* Flip cards */
.card.flip{ perspective: 1000px; padding:0; background: transparent; border:none; box-shadow:none; }
.card.flip .flip-inner{ position:relative; width:100%; height:260px; transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.2,.6,.2,1);
}
.card.flip:hover .flip-inner{ transform: rotateY(180deg); }
.card.flip .face{
  position:absolute; inset:0; border-radius: 16px; overflow:hidden;
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border:1px solid rgba(91,123,255,.25); box-shadow: var(--shadow);
  backface-visibility: hidden; -webkit-backface-visibility: hidden; padding:1rem;
}
.card.flip .back{ transform: rotateY(180deg); background: linear-gradient(180deg, rgba(24,34,87,.95), rgba(24,34,87,.85)); color:#eaf0ff; }

/* PDF viewer panels */
.pdf-viewer{
  background: linear-gradient(180deg, rgba(16,23,53,.9), rgba(16,23,53,.7));
  border: 1px solid rgba(91,123,255,.35); border-radius: 16px; padding: .75rem; box-shadow: var(--shadow);
}
.pdf-viewer iframe{ background:#0a0f22; border-radius: 10px; }

/* Modal */
.modal{ position: fixed; inset:0; display:none; align-items:center; justify-content:center; background: rgba(5,8,18,.75); z-index: 50; padding: 2vw; }
.modal[open]{ display:flex; }
.modal .modal-card{ background: linear-gradient(180deg, rgba(16,23,53,.95), rgba(16,23,53,.8));
  border: 1px solid rgba(143,176,255,.35); border-radius: 16px; width: min(1100px, 96vw); box-shadow: var(--shadow);
  padding: .75rem;
}
.modal header{ display:flex; justify-content:space-between; align-items:center; color:#eaf0ff; padding:.25rem .5rem .5rem .5rem; }
.modal .close{ background: transparent; border:1px solid rgba(143,176,255,.35); color:#dfe8ff; border-radius:8px; padding:.25rem .5rem; cursor:pointer; }
.modal iframe{ width:100%; height:75vh; border-radius: 10px; display:block; background:#0a0f22; border:1px solid rgba(91,123,255,.35); }

footer{ color:#cbd6f6; }

/* Utility */
.grid-2{ display:grid; grid-template-columns: 1.2fr .8fr; gap: 1rem; }
@media (max-width: 900px){ .grid-2{ grid-template-columns: 1fr; } .hero .card-fan{ display:none; } }


/* === ARCANE BLUE OVERHAUL === */
:root{
  --bg-deep:#0a1026;
  --bg-mid:#121937;
  --bg-glow:#1f2e70;
  --parchment:#0f1531; /* dark parchment */
  --ink:#cfe1ff;       /* cool ink */
  --accent:#4b6bce;    /* sapphire */
  --accent-bright:#8fb0ff;
  --accent-soft:#1b2a64;
  --gold:#b8891a; /* legacy var kept; unused visually */
  --shadow:0 14px 40px rgba(4,8,24,.55);
}

html, body { height:100%; }

body{
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height:1.55;
  background:
    radial-gradient(900px 500px at 65% -10%, rgba(79,118,255,.16), transparent 60%),
    radial-gradient(1200px 700px at -10% 110%, rgba(80,110,255,.12), transparent 60%),
    linear-gradient(180deg, var(--bg-mid), var(--bg-deep));
}

/* Containers */
.wrap{
  background:
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01)),
    radial-gradient(500px 180px at 50% 0, rgba(143,176,255,.06), transparent 60%);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 10px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.03);
}

/* Nav */
nav ul li a{ color: #cfe1ff; }
nav ul li a.active{ color: var(--accent-bright); text-shadow: 0 0 8px rgba(143,176,255,.4); }

/* Buttons & Links */
body a{ color:#cfe1ff; text-decoration: none; }
body a:hover{ color: var(--accent-bright); text-decoration: underline; text-underline-offset: 2px; }
.button{
  display:inline-block; padding:.6rem 1rem; border-radius:999px;
  border:1px solid rgba(143,176,255,.25);
  background: linear-gradient(180deg, rgba(30,50,120,.35), rgba(10,18,48,.55));
  color:#eaf1ff;
  box-shadow: inset 0 0 0 1px rgba(143,176,255,.15), 0 8px 24px rgba(6,12,32,.6);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.button:hover{ transform: translateY(-2px); border-color: var(--accent-bright); box-shadow: 0 12px 34px rgba(16,30,80,.65); }
.button:focus-visible{ outline: 2px solid var(--accent-bright); outline-offset: 2px; }

/* Hero */
.hero{
  position: relative;
  background: linear-gradient(180deg, rgba(18,26,64,.85), rgba(12,18,46,.75));
  border: 1px solid rgba(143,176,255,.14);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
  overflow:hidden;
}
.hero .hero-copy{ color:#e6eeff; }
.hero .hero-title{ font-size: clamp(1.6rem, 3vw, 2.4rem); margin:0 0 .3rem 0; text-shadow: 0 2px 18px rgba(120,160,255,.25); }
.hero .hero-sub{ opacity:.95; margin:0 0 .75rem 0; color:#c7d8ff; }

/* (Lightning removed) */

/* Magical swirl overlay (subtle) */
.swirl-overlay{
  position:fixed; inset:0; pointer-events:none; z-index: 1;
  background:
    radial-gradient(60px 200px at 20% 30%, rgba(120,160,255,.09), transparent 70%),
    radial-gradient(120px 400px at 75% 70%, rgba(120,160,255,.08), transparent 70%),
    conic-gradient(from 210deg at 20% 30%, rgba(100,140,255,.05), transparent 40%, rgba(100,140,255,.05), transparent 80%);
  mix-blend-mode: screen;
}

/* Card grid */
.card-grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-top: 1rem; position:relative; z-index:2; }
.card{
  position:relative; background: linear-gradient(180deg, rgba(24,32,72,.85), rgba(14,20,52,.9));
  border-radius: 16px; border: 1px solid rgba(143,176,255,.14); box-shadow: var(--shadow);
  padding: 1rem; transform: translateZ(0);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover{ transform: translateY(-6px); box-shadow: 0 18px 45px rgba(10,18,48,.8); border-color: rgba(143,176,255,.3); }
.card h3{ margin:0 0 .5rem 0; font-weight:700; color:#e6eeff; }
.card .meta{ color:#b9cbff; font-size:.9rem; }

/* Flip card */
.card.flip{ background: transparent; border:none; box-shadow:none; padding:0; }
.card.flip .flip-inner{ position:relative; width:100%; height:260px; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2,.6,.2,1); }
.card.flip:hover .flip-inner{ transform: rotateY(180deg); }
.card.flip .face{
  position:absolute; inset:0; border-radius: 16px; overflow:hidden;
  background: linear-gradient(180deg, rgba(24,32,72,.9), rgba(14,20,52,.95));
  border:1px solid rgba(143,176,255,.16); box-shadow: var(--shadow);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  padding:1rem; color:#dbe7ff;
}
.card.flip .back{
  transform: rotateY(180deg);
  background: linear-gradient(180deg, rgba(40,56,120,.9), rgba(18,28,80,.92));
  border:1px solid rgba(143,176,255,.25);
}

/* PDF viewer panels */
.pdf-viewer{
  background: linear-gradient(180deg, rgba(18,26,64,.85), rgba(12,18,46,.75));
  border: 1px solid rgba(143,176,255,.18);
  border-radius: 16px; padding: .75rem;
  box-shadow: var(--shadow);
}
.pdf-viewer iframe{ background: #0a0f24; border-radius: 10px; }

/* Footer */
footer{ color:#b3c6ff; }

/* Responsive */
@media (max-width: 900px){ .hero .lightning{ display:none; } }


/* Hero-local swirls (decorative, non-blocking) */
.hero{
  position: relative;
}
.hero .swirls{
  position:absolute; inset:0; pointer-events:none; z-index: 0;
  background:
    radial-gradient(120px 380px at 15% 35%, rgba(120,160,255,.10), transparent 70%),
    radial-gradient(220px 520px at 85% 60%, rgba(120,160,255,.08), transparent 70%),
    conic-gradient(from 260deg at 30% 40%, rgba(120,160,255,.08), transparent 35%, rgba(120,160,255,.06), transparent 80%);
  mix-blend-mode: screen;
  animation: swirl-shift 24s linear infinite;
}
@keyframes swirl-shift {
  0% { transform: translate3d(0,0,0) rotate(0deg); }
  50% { transform: translate3d(0,-1%,0) rotate(2deg); }
  100% { transform: translate3d(0,0,0) rotate(0deg); }
}

/* Ensure text / buttons are above any decorations */
.hero .hero-copy.on-top{ position: relative; z-index: 2; }
.card, .pdf-viewer { position: relative; z-index: 1; }

/* Remove any chance of decorative layers blocking interactions */
.swirl-overlay, .hero .swirls { pointer-events: none; }


/* Home */
nav ul li:nth-child(2) a::before{ content:"📜"; } /* Project Details */
nav ul li:nth-child(3) a::before{ content:"🧙"; } /* Team */
nav ul li:nth-child(4) a::before{ content:"📚"; } /* Documents */
nav ul li:nth-child(5) a::before{ content:"🧪"; } /* Code & Demo */
nav ul li:nth-child(6) a::before{ content:"✉️"; } /* Contact */

/* Make cards obviously interactive */
.card[data-pdf], .card.flip{ cursor: pointer; }
.card[data-pdf]:hover .front h3, .card.flip:hover .front h3 { text-decoration: underline; text-decoration-color: var(--accent-bright); }


/* Page icons in nav (custom SVGs) */
nav ul li a::before{
  content:"";
  display:inline-block;
  width:1.1em; height:1.1em;
  margin-right:.45rem;
  vertical-align:-0.15em;
  background-size: contain;
  background-repeat: no-repeat;
  filter: drop-shadow(0 1px 2px rgba(16,30,80,.35));
}
nav ul li:nth-child(1) a::before{ background-image:url('icons/home-quill.svg'); }
nav ul li:nth-child(2) a::before{ background-image:url('icons/project-scroll.svg'); }
nav ul li:nth-child(3) a::before{ background-image:url('icons/team-wizardhat.svg'); }
nav ul li:nth-child(4) a::before{ background-image:url('icons/docs-books.svg'); }
nav ul li:nth-child(5) a::before{ background-image:url('icons/code-flask.svg'); }
nav ul li:nth-child(6) a::before{ background-image:url('icons/contact-envelope.svg'); }


/* Brighter section headers for readability */
main h1, main h2, main h3,
section > h1, section > h2, section > h3,
.section h1, .section h2, .section h3 {
  color: #eaf1ff; /* very light sapphire-white */
  text-shadow: 0 2px 10px rgba(120,160,255,.25);
}

/* Slight spacing to separate headers from content */
main h2 { margin-top: 1.2rem; margin-bottom: .6rem; }
main h3 { margin-top: 1rem; margin-bottom: .5rem; }


/* Document card fronts: icon-centric */
.face.front .doc-icon{
  display:flex; align-items:center; justify-content:center;
  padding-top:.5rem;
}
.face.front .doc-icon img{
  width: 72%; max-width: 220px; height:auto; display:block;
  filter: drop-shadow(0 8px 24px rgba(16,30,80,.45));
}
.face.front .doc-label{
  text-align:center; margin-top:.5rem; color:#eaf1ff; font-weight:600; letter-spacing:.2px;
  opacity:.95;
}

/* Backs: description text and actions */
.face.back .doc-desc{ color:#d2e0ff; margin: .25rem 0 .75rem 0; line-height:1.45; }
.face.back .doc-actions{ display:flex; gap:.6rem; flex-wrap:wrap; }


/* Arcane blue pulsing logo effect */
.brand img {
  height: 80px;  /* adjust size as you like */
  animation: pulseGlow 6s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(120,160,255,0.4));
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 6px rgba(120,160,255,0.4));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 14px rgba(160,200,255,0.6));
  }
}



/* === overhaul.css === */

/* === Decked Out UI Overhaul v2 — Arcane Minimal, freer flow, readable ink === */

/* Ensure readable light ink in dark theme */
html[data-theme="dark"]{
  --ink: #e8eefc;
  --ink-dim: #c7d2ff;
  --card: #0e162e;
  --edge: #3a52a0;
  --bg-0: #0b1020;
  --bg-1: #101735;
  --glow: #5b7bff;
}

html{scroll-behavior:smooth}
body{
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Wider canvas with breathing room */
.wrap{max-width: 1200px; margin-inline:auto; padding-inline: 28px}

/* Sticky, translucent header with pill nav */
header[role="banner"]{
  position: sticky; top: 0; z-index: 80;
  backdrop-filter: saturate(130%) blur(10px);
  background: linear-gradient(180deg, rgba(10,16,40,.75), rgba(10,16,40,.45));
  border-bottom: 1px solid rgba(120,160,255,.12);
}
.masthead{display:flex; align-items:center; justify-content:space-between; gap:20px; padding-block:12px}
.brand{display:flex; align-items:center; gap:10px}
.brand img{height:34px; width:auto; filter: drop-shadow(0 2px 10px rgba(80,120,255,.25))}

nav[aria-label="Primary"] ul{display:flex; gap:18px; margin:0; padding:0; list-style:none; flex-wrap:wrap}
nav[aria-label="Primary"] a{
  display:inline-block; padding:10px 12px; border-radius:999px;
  text-decoration:none; color:inherit; opacity:.96;
  transition: transform .12s ease, background-color .12s ease, opacity .12s ease;
}
nav[aria-label="Primary"] a:hover{opacity:1; transform: translateY(-1px); background: rgba(120,160,255,.10)}
nav[aria-label="Primary"] a.active{background: rgba(120,160,255,.16); box-shadow: inset 0 0 0 1px rgba(120,160,255,.25)}

/* Typography */
h1{font-size: clamp(30px, 2.2vw + 1rem, 44px); line-height:1.14; margin: 18px 0 10px}
h2{font-size: clamp(20px, 1.1vw + .9rem, 26px); line-height:1.22; margin: 12px 0 8px}
p, li{color: var(--ink); line-height:1.7}
.muted{color: var(--ink-dim)}

/* Free‑flowing sections: remove heavy card boxes */
.card{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Instead, use gentle separators and spacing */
.grid{display: grid; gap: 26px}
@media (min-width: 760px){
  .grid{grid-template-columns: repeat(12, minmax(0,1fr))}
  .grid > * {grid-column: span 6}
}
/* Each item gets a soft halo and bottom divider, not a box */
.grid > * > .pair{
  padding: 14px 0 20px;
  border-bottom: 1px solid rgba(140,180,255,.18);
}
.grid > *:last-child > .pair{border-bottom: 0}

.pair{display:flex; gap:14px; align-items:flex-start}
.pair img{width:32px; height:32px; filter: drop-shadow(0 0 10px rgba(120,160,255,.28))}

/* Document tiles and modal: lighten surfaces, keep readability */
[class*="tile"], [data-pdf], .doc, .document-card{
  background: linear-gradient(180deg, rgba(18,26,52,.35), rgba(16,22,44,.25)) !important;
  border: 0 !important;
  box-shadow: 0 16px 40px rgba(0,0,0,.40) !important;
  border-radius: 16px !important;
}
.modal[open]{backdrop-filter: blur(3px)}

/* Subtle section glow on first block only */
main.wrap > :first-child{
  background: radial-gradient(1000px 500px at 120% -10%, rgba(120,160,255,.10), transparent 40%), transparent;
  padding: clamp(6px, 1vw, 12px);
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(120,160,255,.06);
}

/* Links */
a:not([class]){color: inherit; text-decoration-color: rgba(160,200,255,.6); text-underline-offset: 2px}
a:not([class]):hover{opacity:.96}

/* HR divider */
hr{border:0; height:1px; background:linear-gradient(90deg, transparent, rgba(120,160,255,.22), transparent); margin:24px 0}



/* === Home page layout (no borders, arcane bands) === */
.home .hero{
  position: relative;
  padding: clamp(40px, 6vw, 120px) 0 clamp(24px, 3vw, 48px);
  background:
    radial-gradient(1200px 600px at 120% -20%, rgba(120,160,255,.16), transparent 40%),
    radial-gradient(1000px 500px at -10% 20%, rgba(80,140,255,.12), transparent 40%);
  border-radius: 20px;
}
.hero .sub{font-size: clamp(16px, .9vw + .8rem, 20px); color: var(--ink-dim); max-width: 62ch}
.cta-row{display:flex; gap:12px; flex-wrap:wrap; margin-top: 14px}
.btn{cursor:pointer; text-decoration:none}
.btn.pill{
  border-radius:999px; padding:12px 16px;
  background: radial-gradient(120% 120% at 120% -20%, rgba(120,160,255,.26), rgba(120,160,255,.18));
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(140,180,255,.28), 0 10px 24px rgba(0,0,0,.35);
  transition: transform .12s ease;
}
.btn.pill:hover{transform: translateY(-1px)}
.btn.ghost{
  border-radius:999px; padding:12px 16px;
  background: rgba(120,160,255,.08);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(140,180,255,.22);
}

/* Bands: full-bleed feel without boxes */
.band{margin-top: clamp(26px, 4vw, 48px)}
.band .band-inner{
  padding: clamp(16px, 2vw, 28px);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(18,26,52,.60), rgba(16,22,44,.55)),
    radial-gradient(1200px 600px at 120% -20%, rgba(120,160,255,.10), transparent 40%);
  box-shadow: 0 20px 48px rgba(0,0,0,.45);
}
.features .band-inner{display:grid; gap:22px}
@media (min-width: 840px){
  .features .band-inner{grid-template-columns: repeat(3, minmax(0,1fr))}
}
.f{display:flex; gap:14px}
.f img{width:36px; height:36px; filter: drop-shadow(0 0 12px rgba(120,160,255,.32))}
.f h2{margin:2px 0 6px}

/* Quick links — flowing tiles without borders */
.grid-3{display:grid; gap:16px}
@media (min-width: 840px){ .grid-3{grid-template-columns: repeat(3, minmax(0,1fr))} }
.q{
  display:flex; flex-direction:column; gap:4px; padding:16px 18px; border-radius:16px;
  text-decoration:none; color:var(--ink);
  background: linear-gradient(180deg, rgba(18,26,52,.45), rgba(16,22,44,.35));
  box-shadow: 0 16px 40px rgba(0,0,0,.40);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.q .kicker{font-size:12px; letter-spacing:.3px; text-transform:uppercase; color: var(--ink-dim)}
.q .hint{color: var(--ink-dim); font-size: 14px}
.q:hover{transform: translateY(-2px); filter: drop-shadow(0 0 10px rgba(120,160,255,.22))}

/* Callout */
.callout .band-inner{ text-align:center }
.callout .cta-row{ justify-content:center }


/* Legacy content smoothing on Home */
.home.legacy .card,
.home.legacy [class*="card"]{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.home.legacy section, 
.home.legacy .section, 
.home.legacy .wrap-inner{
  border: 0 !important;
}



/* === Home Rev3: restructure with original content preserved === */
.home.rev3 .hero--rev3{
  padding: clamp(44px, 6vw, 128px) 0 clamp(24px, 3vw, 48px);
  background:
    radial-gradient(1200px 600px at 120% -20%, rgba(120,160,255,.18), transparent 40%),
    radial-gradient(1000px 500px at -10% 20%, rgba(80,140,255,.12), transparent 40%);
  border-radius: 20px;
}
.home.rev3 .features--rev3 .band-inner{display:grid; gap:22px}
@media (min-width: 880px){
  .home.rev3 .features--rev3 .band-inner{grid-template-columns: repeat(3, minmax(0,1fr))}
}
.home.rev3 .content-flow{
  /* strip borders/boxes from legacy nodes and create breathing rhythm */
  --flow: 18px;
}
.home.rev3 .content-flow > * + *{margin-top: var(--flow)}
.home.rev3 .content-flow h1,
.home.rev3 .content-flow h2,
.home.rev3 .content-flow h3{margin-top: calc(var(--flow) * 1.2)}
.home.rev3 .content-flow .card,
.home.rev3 .content-flow [class*="card"],
.home.rev3 .content-flow [class*="box"],
.home.rev3 .content-flow [class*="panel"]{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.home.rev3 .legacy-content .band-inner{
  background:
    linear-gradient(180deg, rgba(18,26,52,.58), rgba(16,22,44,.50)),
    radial-gradient(1200px 600px at 120% -20%, rgba(120,160,255,.08), transparent 40%);
  box-shadow: 0 20px 48px rgba(0,0,0,.45);
  border-radius: 20px;
  padding: clamp(16px, 2vw, 28px);
}
/* Keep readable ink */
.home.rev3 .content-flow, 
.home.rev3 .content-flow p, 
.home.rev3 .content-flow li{color: var(--ink)}

/* Spacing + hover affordances for quicklinks remain from v2 */



/* === Immersive Narrative Homepage (no CTAs/links added) === */
.home.immersive .story{
  display:block;
  margin-top: clamp(18px, 3vw, 36px);
}
.home.immersive .slice{
  position: relative;
  margin: clamp(12px, 2.6vw, 28px) 0;
  padding: 0;
  border: 0;
}
.home.immersive .slice-inner{
  padding: clamp(10px, 2vw, 18px) clamp(8px, 1.8vw, 16px);
  border-radius: 18px;
  background:
    radial-gradient(900px 420px at 110% -10%, rgba(120,160,255,.10), transparent 40%),
    linear-gradient(180deg, rgba(18,26,52,.55), rgba(16,22,44,.45));
  box-shadow: 0 16px 40px rgba(0,0,0,.38);
}
/* Alternate glow intensity to avoid a repetitive feel */
.home.immersive .slice:nth-of-type(2n) .slice-inner{
  background:
    radial-gradient(900px 420px at -10% 10%, rgba(120,160,255,.08), transparent 40%),
    linear-gradient(180deg, rgba(18,26,52,.48), rgba(16,22,44,.40));
}
/* Typography & readability */
.home.immersive .slice-inner p{ 
  color: var(--ink);
  line-height: 1.75;
  margin: 0;
}
/* First paragraph gets a lede treatment (styling only) */
.home.immersive .slice:first-of-type .slice-inner p{
  font-size: clamp(18px, 1.1vw + .95rem, 22px);
}
/* Optional drop cap for the very first paragraph */
.home.immersive .slice:first-of-type .slice-inner p::first-letter{
  float: left;
  font-size: 2.6em;
  line-height: .9;
  padding-right: .06em;
  color: var(--glow);
  font-weight: 700;
  filter: drop-shadow(0 0 8px rgba(120,160,255,.3));
}
/* Headings & other blocks preserved if present */
.home.immersive .slice-inner h1,
.home.immersive .slice-inner h2,
.home.immersive .slice-inner h3{margin: 0 0 8px; color: var(--ink)}
.home.immersive .slice-inner ul, 
.home.immersive .slice-inner ol{margin: 6px 0 0 1.2em}
.home.immersive .slice-inner img{max-width:100%; height:auto; display:block; margin: 6px 0}

/* Remove any residual borders from legacy classes inside */
.home.immersive .slice-inner .card,
.home.immersive .slice-inner [class*="card"],
.home.immersive .slice-inner [class*="box"],
.home.immersive .slice-inner [class*="panel"]{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}



/* === Immersive (Strict) — No extra CTAs/links injected === */
.home.immersive.strict .story{margin-top: clamp(18px, 3vw, 36px)}
.home.immersive.strict .slice{position:relative; margin: clamp(12px, 2.6vw, 28px) 0}
.home.immersive.strict .slice-inner{
  padding: clamp(10px, 2vw, 18px) clamp(8px, 1.8vw, 16px);
  border-radius: 18px;
  background:
    radial-gradient(900px 420px at 110% -10%, rgba(120,160,255,.10), transparent 40%),
    linear-gradient(180deg, rgba(18,26,52,.55), rgba(16,22,44,.45));
  box-shadow: 0 16px 40px rgba(0,0,0,.38);
}
.home.immersive.strict .slice:nth-of-type(2n) .slice-inner{
  background:
    radial-gradient(900px 420px at -10% 10%, rgba(120,160,255,.08), transparent 40%),
    linear-gradient(180deg, rgba(18,26,52,.48), rgba(16,22,44,.40));
}
.home.immersive.strict .slice-inner p,
.home.immersive.strict .slice-inner li{color: var(--ink); line-height:1.75; margin:0}
.home.immersive.strict .slice-inner h1,
.home.immersive.strict .slice-inner h2,
.home.immersive.strict .slice-inner h3{margin: 0 0 8px; color: var(--ink)}
.home.immersive.strict .slice-inner img{max-width:100%; height:auto; display:block; margin: 6px 0}

/* Remove any legacy borders/shadows that might sneak in */
.home.immersive.strict .slice-inner .card,
.home.immersive.strict .slice-inner [class*="card"],
.home.immersive.strict .slice-inner [class*="box"],
.home.immersive.strict .slice-inner [class*="panel"]{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}


/* Subtle marker styling for retained headings */
.home.immersive.strict.curated .slice-inner h2{
  opacity:.9;
  letter-spacing:.2px;
}
.home.immersive.strict.curated .slice-inner h2:after{
  content:"";
  display:block;
  margin-top:8px;
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(120,160,255,.22), transparent);
}


/* === Site-wide immersive narrative wrappers === */
main.wrap.immersive.site-wide .story{margin-top: clamp(18px, 3vw, 36px)}
main.wrap.immersive.site-wide .slice{position:relative; margin: clamp(12px, 2.6vw, 28px) 0}
main.wrap.immersive.site-wide .slice-inner{
  padding: clamp(10px, 2vw, 18px) clamp(8px, 1.8vw, 16px);
  border-radius: 18px;
  background:
    radial-gradient(900px 420px at 110% -10%, rgba(120,160,255,.10), transparent 40%),
    linear-gradient(180deg, rgba(18,26,52,.55), rgba(16,22,44,.45));
  box-shadow: 0 16px 40px rgba(0,0,0,.38);
}
main.wrap.immersive.site-wide .slice:nth-of-type(2n) .slice-inner{
  background:
    radial-gradient(900px 420px at -10% 10%, rgba(120,160,255,.08), transparent 40%),
    linear-gradient(180deg, rgba(18,26,52,.48), rgba(16,22,44,.40));
}
main.wrap.immersive.site-wide .slice-inner p,
main.wrap.immersive.site-wide .slice-inner li{color: var(--ink); line-height:1.75; margin:0}
main.wrap.immersive.site-wide .slice-inner h1,
main.wrap.immersive.site-wide .slice-inner h2,
main.wrap.immersive.site-wide .slice-inner h3{margin: 0 0 8px; color: var(--ink)}
main.wrap.immersive.site-wide .slice-inner img{max-width:100%; height:auto; display:block; margin: 6px 0}



/* === Upgraded Navbar (full-width, splayed) === */
header{position:relative}
header .wrap{max-width:var(--max);}
.masthead{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:20px}
nav{width:100%}
nav ul{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;padding:0;margin:0;list-style:none}
nav a{flex:1;text-align:center}
@media (max-width:720px){
  .masthead{grid-template-columns:1fr}
  nav ul{flex-wrap:wrap;justify-content:center}
  nav a{flex:0 1 auto}
}



/* === Team Flip Cards (updated) === */
.team-grid {display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:20px}
@media (max-width:900px){ .team-grid{grid-template-columns:repeat(2, minmax(0,1fr))} }
@media (max-width:600px){ .team-grid{grid-template-columns:1fr} }

.flip-card{ perspective: 1000px; }
.flip-inner{ position:relative; transform-style:preserve-3d; transition: transform .5s ease; }
.flip-card:hover .flip-inner, .flip-card:focus-within .flip-inner, .flip-card.flipped .flip-inner { transform: rotateY(180deg); }
.flip-front, .flip-back{ backface-visibility:hidden; -webkit-backface-visibility:hidden; }
.flip-front{ position:relative; }
.flip-back{ position:absolute; inset:0; transform: rotateY(180deg); }




/* === Uniform team card height (desktop only) === */
@media (min-width: 900px){
  .team-grid .card,
  .team-grid .flip-card { height: 440px; }
  .team-grid .flip-inner { height: 100%; }
  .team-grid .flip-front, .team-grid .flip-back { height: 100%; overflow: hidden; }
  .team-grid img { width: 100%; height: 100%; object-fit: cover; display:block; }
}


/* === PATCH: ensure uniform height applies to actual team container (.grid) and all flip-cards === */
@media (min-width: 900px){
  .grid .card,
  .grid .flip-card,
  .flip-card { height: 440px; }
  .flip-inner { height: 100%; }
  .flip-front, .flip-back { height: 100%; overflow: hidden; }
  .flip-front img { width: 100%; height: 100%; object-fit: cover; display:block; }
}


/* === Navbar: Pill Tabs style === */
header{background:linear-gradient(180deg,#0b1a2e 0%,#0f2541 100%);color:#fff;border-bottom:1px solid rgba(255,255,255,.08)}
.masthead{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:16px}
.brand{display:flex;gap:12px;align-items:center}
.brand img{width:52px;height:52px;object-fit:contain;filter:drop-shadow(0 1px 4px rgba(0,0,0,.25))}
.brand-name{font-weight:800;letter-spacing:.2px}

/* Base nav container */
nav{width:100%}
nav ul{display:flex;gap:12px;margin:0;padding:0;list-style:none}

/* Mobile: horizontal scroll pills */
@media (max-width: 719px){
  nav ul{overflow-x:auto;white-space:nowrap;-webkit-overflow-scrolling:touch;padding-bottom:6px}
  nav li{flex:0 0 auto}
  nav a{display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;border-radius:9999px;border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.06);color:#eaf2ff;text-decoration:none}
  nav a:hover{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.28)}
  nav a.active,[aria-current="page"]{background:#1670d8;border-color:#1670d8;color:#fff}
}

/* Desktop: equal-width segmented pills */
@media (min-width: 720px){
  nav{display:block}
  nav ul{align-items:center}
  nav li{flex:1 1 0}
  nav a{display:flex;align-items:center;justify-content:center;padding:12px 16px;border-radius:9999px;border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.06);color:#eaf2ff;text-decoration:none;font-weight:700;letter-spacing:.15px;backdrop-filter:saturate(120%) blur(2px);transition:transform .18s ease, background .18s ease, border-color .18s ease}
  nav a:hover{transform:translateY(-1px);background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.28)}
  nav a.active,[aria-current="page"]{background:#1670d8;border-color:#1670d8;color:#fff}
}


/* === PATCH: keep pill nav single-line and make header full-width on desktop === */
@media (min-width: 900px){
  header .wrap{max-width:none;padding-left:24px;padding-right:24px}
  nav ul{flex-wrap:nowrap}
  nav li{min-width:0}
}


/* === Arcane Glow enhancements === */

/* Hover fade-in is already subtle; add a touch more clarity */
nav a{ position:relative; isolation:isolate }
@media (min-width: 720px){
  nav a{ transition: transform .18s ease, background .18s ease, border-color .18s ease, opacity .18s ease }
  nav a:hover{ opacity: .98 }
}

/* Full-width glowing underline for active & hover */
nav a::after{
  content:"";
  position:absolute; left:0; right:0; bottom:-6px; height:3px;
  background:#1670d8;
  border-radius:999px;
  opacity:0; transform: translateY(4px);
  box-shadow: 0 0 10px rgba(22,112,216,.7), 0 0 18px rgba(22,112,216,.45);
  transition: opacity .22s ease, transform .22s ease;
  pointer-events:none;
}
/* Active page shows persistent glow */
nav a.active::after, nav a[aria-current="page"]::after{ opacity:1; transform: translateY(0) }
/* Hover reveals glow */
nav a:hover::after{ opacity:1; transform: translateY(0) }

/* Header shadow on scroll */
header{ transition: box-shadow .25s ease }
header.scrolled{ box-shadow: 0 8px 24px rgba(4, 14, 28, .28) }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  nav a, nav a::after, header{ transition: none !important }
}


/* Hero subtitle styling */
.hero-subtitle{
  margin-top: 6px;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 600;
  color: var(--blue-500);
  letter-spacing: .15px;
}


/* === Team grid: 3 / 2 / 1 columns with 20px gaps === */
.team-grid { display:grid; gap:20px }
@media (min-width: 900px){ .team-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 600px) and (max-width: 899px){ .team-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 599px){ .team-grid { grid-template-columns: 1fr; } }


/* === Team layout: horizontal (desktop), centered === */
@media (min-width: 900px){
  .team-grid{
    display:flex;
    justify-content:center;          /* center the row within container */
    align-items:stretch;
    gap:20px;
    flex-wrap:nowrap;                /* single row */
  }
  .team-grid > .flip-card,
  .team-grid > .card{
    flex: 0 1 calc((100% - 40px) / 3); /* three across with 20px gaps */
    max-width: calc((100% - 40px) / 3);
  }
}

/* Tablet: 2-up grid */
@media (min-width: 600px) and (max-width: 899px){
  .team-grid{
    display:grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap:20px;
    justify-items:center;
  }
}

/* Mobile: 1-up */
@media (max-width: 599px){
  .team-grid{
    display:grid;
    grid-template-columns: 1fr;
    gap:16px;
    justify-items:center;
  }
}


/* === Technologies page clean flow (no boxes/lines) === */
body.page-technologies section.story .slice{ border:0; background:transparent; box-shadow:none; padding:0; margin:0 }
body.page-technologies section.story .slice + .slice{ border-top:0 }
body.page-technologies section.story .slice .slice-inner{ padding:0 }

/* Uniform rhythm: icon, heading, paragraph */
body.page-technologies section.story img[aria-hidden="true"]{ width:48px; height:48px; margin-bottom:10px; display:block; filter:drop-shadow(0 0 0 rgba(0,0,0,0)) }
body.page-technologies section.story h1{ margin:0 0 8px }
body.page-technologies section.story h2{ margin:18px 0 8px; font-size:clamp(1.15rem, 2vw, 1.25rem) }
body.page-technologies section.story p{ margin:0 0 28px; line-height:1.65 }

/* Keep the container centered like the rest of the site */
body.page-technologies .wrap{ max-width:var(--max); margin:0 auto; padding:24px }


/* === Technologies page cleanup === */
.tech-page section{ border-top: none !important; }
.tech-list, .project-list{ display:flex; flex-direction:column; gap: 26px; }
.tech-item, .project-item{ padding: 0; border: none; background: transparent; box-shadow: none; }
.tech-item h2, .project-item h2{ margin: 0 0 8px; font-size: clamp(1.2rem, 2.2vw, 1.4rem); }
.tech-item p, .project-item p{ margin: 0; max-width: 72ch; }


/* === Technologies: soft box layout === */
.tech-list, .project-list{
  display:flex;
  flex-direction:column;
  gap:32px;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0 60px;
}
.tech-item, .project-item{
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.tech-item:hover, .project-item:hover{
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
.tech-item h2, .project-item h2{
  margin-top:0;
  margin-bottom:10px;
  font-size: clamp(1.2rem, 2.2vw, 1.4rem);
  color: var(--blue-300);
}
.tech-item p, .project-item p{
  margin:0;
  line-height:1.55;
  color: #e9ecf5;
}


/* === Technologies: Arcane Glow (cool blue) === */
.tech-item, .project-item{
  background: linear-gradient(180deg, #0f1b2f 0%, #122a4f 100%);
  border: 1px solid rgba(22,112,216,0.25);
  border-radius: 18px;
  padding: 28px 32px;
  box-shadow: 
    inset 0 0 6px rgba(0,0,0,0.4),
    0 0 18px rgba(22,112,216,0.25);
  transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}
.tech-item:hover, .project-item:hover{
  transform: translateY(-3px);
  border-color: rgba(22,112,216,0.45);
  box-shadow:
    inset 0 0 8px rgba(0,0,0,0.45),
    0 0 24px rgba(22,112,216,0.45),
    0 0 40px rgba(22,112,216,0.25);
}
.tech-item h2, .project-item h2{
  color: #5aa9ff;
  text-shadow: 0 0 6px rgba(22,112,216,0.45);
}
.tech-item p, .project-item p{
  color: #eaf3ff;
}


/* === Arcane Glow: Header + Navbar harmonization === */

/* Header background matches tech boxes (cool blue gradient) */
header{
  background: linear-gradient(180deg, #0f1b2f 0%, #122a4f 100%) !important;
  border-bottom: 1px solid rgba(22,112,216,0.25) !important;
}

/* Pill tabs: use arcane-blue outline + subtle fill */
@media (min-width: 720px){
  nav a{
    background: rgba(10, 24, 48, 0.22);
    border-color: rgba(22,112,216,0.25);
    color: #eaf3ff;
    box-shadow: 0 0 12px rgba(22,112,216,0.12) inset;
  }
  nav a:hover{
    background: rgba(10, 24, 48, 0.34);
    border-color: rgba(22,112,216,0.38);
  }
  nav a.active, nav a[aria-current="page"]{
    background: linear-gradient(180deg, rgba(22,112,216,0.22) 0%, rgba(22,112,216,0.34) 100%);
    border-color: rgba(22,112,216,0.55);
    color: #ffffff;
    box-shadow:
      inset 0 0 8px rgba(0,0,0,0.35),
      0 0 18px rgba(22,112,216,0.45);
  }
  /* Full-width glowing underline already implemented; slightly brighten */
  nav a::after{
    box-shadow: 0 0 12px rgba(22,112,216,.8), 0 0 22px rgba(22,112,216,.5);
  }
}

/* Mobile pills maintain consistent look */
@media (max-width: 719px){
  nav a{
    background: rgba(10, 24, 48, 0.22);
    border-color: rgba(22,112,216,0.25);
    color: #eaf3ff;
  }
  nav a.active, nav a[aria-current="page"]{
    background: linear-gradient(180deg, rgba(22,112,216,0.22) 0%, rgba(22,112,216,0.34) 100%);
    border-color: rgba(22,112,216,0.55);
    color: #ffffff;
    box-shadow:
      inset 0 0 8px rgba(0,0,0,0.35),
      0 0 18px rgba(22,112,216,0.45);
  }
}

/* Slightly stronger shadow on scroll to match tech cards */
header.scrolled{
  box-shadow: 0 10px 28px rgba(4,14,28,.35);
}


/* === Canonical Header + Pill Tabs (match index exactly) === */

  /* Header background + border */
  header{
    background: linear-gradient(180deg, #0f1b2f 0%, #122a4f 100%) !important;
    border-bottom: 1px solid rgba(22,112,216,0.25) !important;
  }
  /* Layout */
  header .wrap{ max-width:none; padding-left:24px; padding-right:24px }
  .masthead{ display:grid; grid-template-columns:auto 1fr; align-items:center; gap:16px }
  .brand{ display:flex; gap:12px; align-items:center }
  .brand img{ width:52px; height:52px; object-fit:contain; filter:drop-shadow(0 1px 4px rgba(0,0,0,.25)) }
  .brand-name{ font-weight:800; letter-spacing:.2px }

  /* Pills */
  nav{ width:100% }
  nav ul{ display:flex; gap:12px; margin:0; padding:0; list-style:none; flex-wrap:nowrap }
  nav li{ flex:1 1 0; min-width:0 }
  nav a{
    display:flex; align-items:center; justify-content:center;
    padding:12px 16px; border-radius:9999px;
    text-decoration:none; font-weight:700; letter-spacing:.15px;
    background: rgba(10, 24, 48, 0.22); color:#eaf3ff;
    border:1px solid rgba(22,112,216,0.25);
    backdrop-filter:saturate(120%) blur(2px);
    position:relative; isolation:isolate;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, opacity .18s ease;
  }
  nav a:hover{ transform:translateY(-1px); background:rgba(10,24,48,0.34); border-color:rgba(22,112,216,0.38) }
  nav a.active, nav a[aria-current="page"]{
    background: linear-gradient(180deg, rgba(22,112,216,0.22) 0%, rgba(22,112,216,0.34) 100%);
    border-color: rgba(22,112,216,0.55); color:#fff;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.35), 0 0 18px rgba(22,112,216,0.45);
  }
  /* Full-width underline glow */
  nav a::after{
    content:""; position:absolute; left:0; right:0; bottom:-6px; height:3px;
    background:#1670d8; border-radius:999px; opacity:0; transform:translateY(4px);
    box-shadow: 0 0 12px rgba(22,112,216,.8), 0 0 22px rgba(22,112,216,.5);
    transition: opacity .22s ease, transform .22s ease; pointer-events:none;
  }
  nav a.active::after, nav a[aria-current="page"]::after,
  nav a:hover::after{ opacity:1; transform:translateY(0) }

  /* Mobile: horizontal scroll pills */
  @media (max-width: 719px){
    nav ul{ overflow-x:auto; white-space:nowrap; -webkit-overflow-scrolling:touch; padding-bottom:6px }
    nav li{ flex:0 0 auto }
    nav a{ padding:10px 16px }
  }

  /* Scroll shadow */
  header{ transition: box-shadow .25s ease }
  header.scrolled{ box-shadow: 0 10px 28px rgba(4,14,28,.35) }


/* === Override: remove boxed wrap background for full-page feel === */
.wrap{
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}


/* Inline company/technology logo badge used in technologies grid */
.tech-company-logo{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:1.75em;
  height:1.75em;
  margin-right:0.45em;
  border-radius:999px;
  background:rgba(255,255,255,0.08);
  box-shadow:0 0 0 1px rgba(255,255,255,0.12);
  font-size:0.9em;
}


.tech-company-logo img{
  width:1.25em;
  height:1.25em;
  object-fit:contain;
  display:block;
}
/* Remove unintended main box */
main {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Remove leftover section divider lines */
section {
  border-top: none !important;
}/* Remove remaining background outlines on immersive pages */
main.wrap > :first-child {
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
}

main.wrap.immersive.site-wide .slice-inner {
  box-shadow: none !important;
  border: none !important;
}
/* === Home: case-study navigation redesign === */

.case-paths,
.partner-frame {
  margin-top: clamp(36px, 5vw, 72px);
}

.case-paths h2,
.partner-frame h2 {
  color: #ffffff;
  margin-bottom: 10px;
}

.section-lede,
.partner-frame p {
  max-width: 72ch;
  color: #c7d8ff;
  line-height: 1.7;
}

.case-path-grid {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

@media (min-width: 840px) {
  .case-path-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.case-path {
  display: flex;
  flex-direction: column;
  min-height: 210px;
  padding: 24px;
  border-radius: 22px;
  text-decoration: none;
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(90,169,255,.13), transparent 55%),
    linear-gradient(180deg, rgba(18,30,58,.68), rgba(10,18,42,.58));
  border: 1px solid rgba(143,176,255,.14);
  box-shadow: 0 18px 42px rgba(0,0,0,.34);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.case-path:hover {
  transform: translateY(-4px);
  border-color: rgba(143,176,255,.34);
  box-shadow:
    0 24px 54px rgba(0,0,0,.45),
    0 0 28px rgba(22,112,216,.18);
  text-decoration: none;
}

.case-path span {
  color: #8fb0ff;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.case-path strong {
  color: #ffffff;
  font-size: 1.16rem;
  line-height: 1.3;
  margin-bottom: 10px;
}

.case-path p {
  color: #c7d8ff;
  line-height: 1.6;
  margin: 0;
}

.partner-frame {
  padding: clamp(24px, 4vw, 44px);
  border-radius: 24px;
  background:
    radial-gradient(700px 320px at 100% 0%, rgba(90,169,255,.14), transparent 50%),
    linear-gradient(180deg, rgba(18,30,58,.54), rgba(10,18,42,.42));
  border: 1px solid rgba(143,176,255,.12);
  box-shadow: 0 18px 42px rgba(0,0,0,.30);
}

.partner-inner {
  max-width: 820px;
}
/* === Partner / Monte Cook section === */

.partner-frame {
  margin-top: clamp(40px, 6vw, 80px);
  padding: clamp(24px, 4vw, 48px);
  border-radius: 24px;
  background:
    radial-gradient(700px 320px at 100% 0%, rgba(90,169,255,.14), transparent 50%),
    linear-gradient(180deg, rgba(18,30,58,.55), rgba(10,18,42,.45));
  border: 1px solid rgba(143,176,255,.12);
  box-shadow: 0 18px 42px rgba(0,0,0,.30);
}

.partner-inner {
  max-width: 900px;
  margin: 0 auto;
}

.partner-header {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Logo */
.partner-logo {
  width: 140px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.4));
}

/* Text */
.partner-text h2 {
  margin: 0 0 8px;
  color: #ffffff;
}

.partner-text p {
  margin: 0;
  color: #c7d8ff;
  line-height: 1.7;
}

/* Link styling */
.partner-text a {
  color: #8fb0ff;
  font-weight: 600;
}

.partner-text a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 700px) {
  .partner-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .partner-logo {
    width: 120px;
  }
}

/* === FINAL OVERRIDES: carousel-style cards + dark-blue text === */

:root {
  --ink-strong: #0B1F4F;
  --ink: #0F2C6A;
  --ink-soft: rgba(15,44,106,0.7);
}

.case-path,
.partner-frame {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(102,168,255,0.98), rgba(60,126,230,0.99)) !important;
  border: 1px solid rgba(165,220,255,0.96) !important;
  box-shadow: 0 22px 55px rgba(0,0,0,0.75) !important;
  color: var(--ink) !important;
  text-decoration: none;
  transition: transform .18s ease-out, box-shadow .18s ease-out, border-color .18s ease-out, background .18s ease-out;
}

.case-path {
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 16px 16px 18px;
}

.partner-frame {
  padding: clamp(22px, 4vw, 38px);
}

.case-path::before,
.partner-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(255,255,255,0.12), transparent);
  border-radius: 18px 18px 0 0;
  pointer-events: none;
}

.case-path::after,
.partner-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 50% 30%, rgba(255,255,255,0.07), transparent 75%);
  opacity: 0.9;
}

.case-path:hover,
.partner-frame:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 26px 70px rgba(0,0,0,.95) !important;
  border-color: rgba(159,190,255,.95) !important;
  text-decoration: none;
}

.case-path > *,
.partner-frame > * {
  position: relative;
  z-index: 1;
}

.case-path span,
.partner-text .eyebrow {
  display: block;
  margin: 0 0 6px;
  color: var(--ink-soft) !important;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.15;
  text-transform: uppercase;
  text-shadow: none !important;
}

.case-path strong,
.partner-text h2 {
  display: block;
  margin: 0 0 8px;
  color: var(--ink-strong) !important;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: normal;
  line-height: 1.2;
  text-shadow: none !important;
}

.case-path p,
.partner-text p {
  margin: 0;
  color: var(--ink) !important;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  text-shadow: none !important;
}

.partner-header {
  align-items: center;
}

.partner-logo {
  background: rgba(255,255,255,.92);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 8px 22px rgba(0,0,0,.35);
}

@media (max-width: 700px) {
  .partner-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .partner-logo {
    width: 120px;
  }
}

.tech-style-copy,
.tech-style-copy *,
.gallery-card,
.gallery-card * {
  color: var(--ink) !important;
  text-shadow: none !important;
}

.tech-style-copy h2,
.gallery-card h3 {
  color: var(--ink-strong) !important;
  font-weight: 800;
}

.tech-style-copy p,
.tech-style-copy .demo-showcase-tag,
.gallery-card p {
  color: var(--ink) !important;
}


/* =========================================================
   FINAL CONSOLIDATION SAFEGUARDS
   These keep the shared light-blue card theme consistent after merging.
   ========================================================= */

.card-blue,
.hero-carousel-card.card-blue,
.timeline-card.card-blue,
.spec-card.card-blue,
.tech-card.card-blue,
.contact-card.card-blue,
.demo-showcase.card-blue,
.case-path.card-blue,
.partner-frame.card-blue {
  background: linear-gradient(160deg, rgba(102,168,255,0.98), rgba(60,126,230,0.99));
  border: 1px solid rgba(165,220,255,0.96);
  border-radius: 18px;
  box-shadow: 0 22px 55px rgba(0,0,0,0.75);
  color: #0b1020;
}

.card-blue h1,
.card-blue h2,
.card-blue h3,
.card-blue h4,
.card-blue strong {
  color: #0b1020 !important;
  text-shadow: none !important;
}

.card-blue p,
.card-blue li,
.card-blue span {
  color: rgba(11,16,32,0.9) !important;
  text-shadow: none !important;
}

.card-blue a {
  color: #102a66 !important;
  text-decoration: underline;
}
.home-demo-button {
  color: #0b1020;
  font-weight: 500; /* keeps it readable without bold */
}

.home-demo-button:hover {
  color: #0b1020;
}

/* === UNIFY BUTTON TEXT COLOR WITH CARD SYSTEM === */

/* All CTA buttons that sit on light-blue card surfaces */
.home-demo-button,
.case-path .button,
.hero-carousel-card .button,
.demo-showcase .button,
.spec-card .button,
.tech-card .button,
.timeline-card .button {
  color: #0b1020 !important;
  font-weight: 500;
}

/* Preserve color on hover/focus/visited */
.home-demo-button:hover,
.home-demo-button:focus,
.home-demo-button:visited,
.case-path .button:hover,
.case-path .button:focus,
.case-path .button:visited {
  color: #0b1020 !important;
}

/* === GLOBAL SPACING TIGHTENING PATCH === */

/* Reduce page-wide section gaps */
.slice,
.demo-showcase-row,
.hero-carousel-section,
.home-video-section,
.case-paths,
.partner-frame,
.timeline-section,
.blueprint-panel-section {
  margin-top: 24px !important;
  margin-bottom: 24px !important;
}

/* Tighten inner section padding */
.slice-inner,
.hero-card,
.blueprint-panel,
.tech-card,
.spec-card,
.timeline-card,
.contact-card,
.demo-showcase,
.partner-frame,
.case-path {
  padding-top: 18px !important;
  padding-bottom: 18px !important;
}

/* Reduce huge home-page animated spacing */
.home.immersive .slice,
.home.immersive.strict .slice {
  margin: 28px 0 !important;
}

/* Reduce story/page vertical rhythm */
.story,
.project-page .story,
.project-page .blueprint-page,
.contact-story,
.code-story {
  gap: 18px !important;
}

/* Reduce heading-to-content gaps */
h1,
h2,
h3 {
  margin-top: 10px !important;
  margin-bottom: 8px !important;
}

/* Reduce paragraph/list bottom spacing */
p,
ul,
ol {
  margin-bottom: 8px !important;
}

/* Keep footer closer */
footer {
  padding-top: 18px !important;
  padding-bottom: 24px !important;
}

.partner-frame {
  max-width: 1200px;
  margin: 24px auto !important;
}

/* === FIX MONTE COOK SECTION WIDTH + LEFT SPACE === */

.partner-frame {
  max-width: 960px;
  margin: 24px auto !important;
  padding: 22px 24px !important;
  box-sizing: border-box;
}

.partner-inner {
  max-width: none !important;
  width: 100%;
  margin: 0 !important;
}

.partner-header {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
}

.partner-logo {
  flex: 0 0 auto;
  width: 120px;
}

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

.partner-text h2,
.partner-text p {
  margin-left: 0 !important;
}

/* === PROJECT PAGE: TIGHT GAP ONLY, KEEP PANEL SIZE === */

/* Only reduce space between blueprint segments */
.project-page .slice,
.project-page .blueprint-panel-section {
  margin-top: 4px !important;
  margin-bottom: 4px !important;
}

/* Only reduce flex gap between sections */
.project-page .blueprint-page {
  gap: 4px !important;
}

/* Restore original roomy panel shape */
.project-page .slice-inner {
  padding: clamp(10px, 2vw, 18px) clamp(8px, 1.8vw, 16px) !important;
}

.project-page .blueprint-panel {
  padding: clamp(18px, 2.4vw, 24px) clamp(20px, 3vw, 30px) !important;
}

/* Restore internal readability */
.project-page .blueprint-header {
  margin-bottom: 10px !important;
}

.project-page .blueprint-layout {
  margin-top: 6px !important;
}
.contact-large-image {
  width: 70%;
  max-width: 800px;

  position: relative;
  left: 50%;
  transform: translateX(56%); /* was -50%, now nudged right */
}

.contact-large-image {
  width: 300%;
  max-width: 800px;
  height: auto;

  display: inline-block;  /* works with text-align centering */

  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}
/* two prototype groups per row */
.prototype-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 42px;
  align-items: center;
}

/* each group = text card + image */
.prototype-item {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  align-items: center;
  gap: 0;
  overflow: visible;
}

/* text card */
.prototype-text,
.prototype-text.card-blue {
  width: auto;
  height: auto;
  min-height: unset;
  max-height: none;
  overflow: visible;

  padding: 22px;
  border-radius: 16px 0 0 16px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;

  box-shadow: 0 16px 38px rgba(0,0,0,0.35);
  z-index: 2;
}

/* heading */
.prototype-text h3 {
  margin: 0 0 10px 0;
}

/* paragraph */
.prototype-text p {
  margin: 0;
  line-height: 1.45;
  font-size: 0.9rem;

  display: block;
  overflow: visible;
  max-height: none;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
}

/* image */
.prototype-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0 16px 16px 0;
  box-shadow: 0 16px 38px rgba(0,0,0,0.35);
}

/* mobile */
@media (max-width: 900px) {
  .prototype-pair {
    grid-template-columns: 1fr;
  }

  .prototype-item {
    grid-template-columns: 1fr;
  }

  .prototype-text,
  .prototype-text.card-blue {
    border-radius: 16px 16px 0 0;
  }

  .prototype-item img {
    border-radius: 0 0 16px 16px;
  }
}
/* =========================================================
   PROTOTYPE GALLERY — CARD / IMAGE / IMAGE / CARD LAYOUT
   ========================================================= */

.prototype-gallery-section {
  margin-top: 40px;
}

.prototype-gallery-heading {
  max-width: 900px;
  margin: 0 auto 42px;
  text-align: center;
}

.prototype-gallery-heading h2 {
  margin-bottom: 14px;
}

.prototype-gallery-heading p {
  line-height: 1.65;
}

/* Main row: card | image | image | card */
.prototype-row-4 {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1.15fr 1fr;
  gap: 22px;
  align-items: center;
  margin-bottom: 48px;
}

/* Text cards */
.prototype-text,
.prototype-text.card-blue {
  min-height: 260px;
  padding: 26px;
  border-radius: 18px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.38);
  overflow: visible;
}

.prototype-text h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.prototype-text p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.58;
  overflow: visible;
}

/* Image wrapper */
.prototype-image {
  width: 100%;
}

/* IMAGE — FULL, NO CROPPING */
.prototype-image img {
  width: 100%;
  height: auto;              /* keeps full image */
  display: block;

  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.38);
}

/* Final row with one card + one image */
.prototype-row-4.single-final {
  grid-template-columns: 1fr 1.15fr 1.15fr 1fr;
}

.prototype-row-4.single-final .prototype-text {
  grid-column: 1 / 2;
}

.prototype-row-4.single-final .prototype-image {
  grid-column: 2 / 3;
}

/* Tablet layout */
@media (max-width: 1100px) {
  .prototype-row-4 {
    grid-template-columns: 1fr 1fr;
  }

  .prototype-row-4.single-final {
    grid-template-columns: 1fr 1fr;
  }

  .prototype-row-4.single-final .prototype-text,
  .prototype-row-4.single-final .prototype-image {
    grid-column: auto;
  }
}

/* Mobile layout */
@media (max-width: 700px) {
  .prototype-row-4,
  .prototype-row-4.single-final {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 38px;
  }

  .prototype-text,
  .prototype-text.card-blue {
    min-height: auto;
    padding: 22px;
  }

  .prototype-image img {
    aspect-ratio: 3 / 4;
  }
}
.prototype-image {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 420px;   /* keeps row height consistent */
}
/* Clickable prototype images */
.prototype-image img {
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

/* Hover glow */
.prototype-image img:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 18px rgba(80, 170, 255, 0.55),
    0 0 36px rgba(80, 170, 255, 0.28),
    0 18px 45px rgba(0, 0, 0, 0.45);
  filter: brightness(1.08);
}

/* Lightbox overlay */
.prototype-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 18, 0.88);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 32px;
}

.prototype-lightbox.active {
  display: flex;
}

.prototype-lightbox img {
  max-width: 92vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 18px;
  box-shadow:
    0 0 28px rgba(80, 170, 255, 0.45),
    0 30px 90px rgba(0, 0, 0, 0.75);
}

.prototype-lightbox-close {
  position: fixed;
  top: 24px;
  right: 32px;
  font-size: 42px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}
/* Mentor + Sponsor row */
.team-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 900px;
  margin: 40px auto 0;
}

/* Keep consistent card styling */
.team-card {
  text-align: center;
}

/* Mobile */
@media (max-width: 700px) {
  .team-secondary {
    grid-template-columns: 1fr;
  }
}

.team-secondary {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.team-secondary .card {
  width: 300px;
}

/* FULL IMAGE — NO CROPPING */
.portrait {
  width: 100%;
  height: auto;          /* preserves full image */
  object-fit: contain;   /* ensures entire image is visible */
  display: block;

  border-radius: 16px;
  background: #111;      /* subtle frame if aspect ratios differ */
}

.flip-front {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
/* === FULL IMAGE for Mentor & Sponsor === */
.team-secondary .flip-inner {
  height: auto !important;   /* remove fixed height */
}

/* Allow front to grow naturally */
.team-secondary .flip-front {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

/* Show full image */
.team-secondary .portrait {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
/* === Mentor/Sponsor: force same card size as team cards === */

.team-secondary .card.flip-card {
  width: 260px !important;
  height: 320px !important;
  padding: 0 !important;
}

.team-secondary .flip-inner {
  width: 100%;
  height: 100% !important;
}

.team-secondary .flip-front,
.team-secondary .flip-back {
  width: 100%;
  height: 100% !important;
  box-sizing: border-box;
}

.team-secondary .flip-front {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  overflow: hidden;
}

.team-secondary .portrait {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 14px;
}
/* === Mentor/Sponsor: match normal team card dimensions exactly === */

.team-secondary {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 40px !important;
  max-width: 860px;
  margin: 40px auto 0;
  align-items: stretch;
}

/* Force same dimensions as desktop team cards */
.team-secondary > .flip-card,
.team-secondary > .card.flip-card {
  width: 100% !important;
  height: 440px !important;
  min-height: 440px !important;
  max-height: 440px !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Fill full card */
.team-secondary .flip-inner,
.team-secondary .flip-front,
.team-secondary .flip-back {
  width: 100% !important;
  height: 440px !important;
  min-height: 440px !important;
  max-height: 440px !important;
  box-sizing: border-box;
}

/* Front/back positioning */
.team-secondary .flip-inner {
  position: relative;
}

.team-secondary .flip-front,
.team-secondary .flip-back {
  position: absolute !important;
  inset: 0 !important;
  overflow: hidden;
  border-radius: 18px;
}

/* Keep full image visible while preserving the same card size */
.team-secondary .portrait {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  display: block !important;
  margin: 0 !important;
  padding: 12px !important;
  box-sizing: border-box;
}

/* Match flip behavior */
.team-secondary .flip-back {
  transform: rotateY(180deg);
  padding: 24px !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Mobile */
@media (max-width: 900px) {
  .team-secondary {
    grid-template-columns: 1fr !important;
    max-width: 420px;
  }
}