/* ============================================
   Base tokens & layout (dark, aurora vibes)
   ============================================ */

   :root {
    /* Brand palette */
    --brand-bg: #071729;         /* deep midnight blue */
    --brand-bg-2: #0c223a;
    --txt: #e9eef5;
    --txt-dim: #b7c3d1;
    --accent: #78e0ff;
    --accent-2: #9ee37d;
  
    /* Glass */
    --glass: rgba(255,255,255,.06);
    --glass-strong: rgba(255,255,255,.10);
    --glass-border: rgba(255,255,255,.18);
    --blur: 10px;
  
    /* Z-index scale - 100 index buckets per component */
    --z-bg: 0;
    --z-content: 10;
    
    /* Hero section (800-899) */
    --z-hero-bg: 800;
    --z-hero-net-canvas: 802;
    --z-hero-code-canvas: 803;
    --z-hero-logo: 804;
    --z-hero-content: 810;
    
    /* Footer and navigation (900-999) */
    --z-footer: 900;
    --z-footer-content: 901;
    
    --z-over: 1000;
  
    /* Sizing */
    --maxw: 1200px;
    --radius-2xl: 20px;
    --footer-height: 0px;
  
    /* Background tokens (swap per-section) */
    --bg1: radial-gradient(1200px 600px at 20% 0%, #0b1f36 0%, transparent 60%);
    --bg2: radial-gradient(900px 500px at 80% 100%, #0e2a44 0%, transparent 65%);
    --bg3: linear-gradient(180deg, var(--brand-bg) 0%, var(--brand-bg-2) 100%);
  
    /* Motion */
    --t-fast: 120ms;
    --t-med: 220ms;
  }
  
  html, body { height: 100%; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    color: var(--txt);
    background: #04111e; /* fallback if bg element fails */
    font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
    overflow: hidden;
    overscroll-behavior: none;
  }
  
  /* Persistent, controllable background (Vue toggles body[data-section]) */
  .app-bg {
    position: fixed;
    inset: 0;
    z-index: var(--z-bg);
    background: var(--bg1), var(--bg2), var(--bg3);
    will-change: opacity, transform, background;
    transition: background var(--t-med) ease;
  }
  
  /* Section-specific background themes */
  body[data-section="home"] {
    --bg1: radial-gradient(1200px 600px at 20% 0%, #0b1f36 0%, transparent 60%);
    --bg2: radial-gradient(900px 520px at 80% 100%, #0e2a44 0%, transparent 65%);
  }
  body[data-section="services"] {
    --bg1: radial-gradient(1100px 550px at 15% 10%, #0a2b37 0%, transparent 60%);
    --bg2: radial-gradient(1000px 520px at 85% 90%, #153a52 0%, transparent 65%);
  }
  body[data-section="experience"] {
    --bg1: radial-gradient(1100px 550px at 30% 5%, #13243f 0%, transparent 60%);
    --bg2: radial-gradient(900px 520px at 70% 95%, #21395a 0%, transparent 65%);
  }
  body[data-section="innovation"] {
    --bg1: radial-gradient(1100px 550px at 25% 0%, #091a33 0%, transparent 60%);
    --bg2: radial-gradient(900px 520px at 80% 100%, #18344d 0%, transparent 65%);
  }
  body[data-section="contact"] {
    --bg1: radial-gradient(1100px 560px at 10% 5%, #0e263a 0%, transparent 60%);
    --bg2: radial-gradient(900px 520px at 90% 100%, #1f4055 0%, transparent 65%);
  }
  
  /* Layout: sticky footer grid */
  .app-shell {
    height: 100dvh;
    display: flex;
    flex-direction: column;
  }
  .content-area {
    flex: 1 0 auto;
    position: relative;
    z-index: var(--z-content);
    display: flex;
    flex-direction: column;
    height: 100dvh;
    overflow-y: auto;
    overflow-x: auto;
    padding-bottom: calc(24px + var(--footer-height)); /* extra space to scroll past footer */
  }
  
  /* Helpers */
  .text-dim { color: var(--txt-dim) !important; }
  .text-accent { color: var(--accent) !important; }
  
  /* Hero sections (full screen) */
  .hero-full {
    height: 100vh;
    display: grid;
    align-content: stretch;
  }
  .hero-section-wrapper {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: visible;
  }
  #hero-tssBG {
    position: fixed !important;
    top: 0 !important;
    left: 50% !important;
    transform: translate(-50%, 0) !important;
    width: auto !important;
    height: 85vh !important;
    max-width: 90vw !important;
    opacity: 0.25 !important;
    z-index: var(--z-hero-logo) !important;
    pointer-events: none !important;
    filter: brightness(0.9);
  }
  .hero-logo-frost {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: calc(var(--z-hero-logo) + 1);
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(8,12,24,0.55) 0%, rgba(8,12,24,0.25) 45%, rgba(8,12,24,0) 85%);
    backdrop-filter: blur(48px) saturate(160%);
    opacity: 0.7;
  }
  /* Overridden by #hero-codePanel #hero-codeCanvas when panelized */
  #hero-codeCanvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: var(--z-hero-code-canvas) !important;
    pointer-events: none !important;
  }
  #hero-netCanvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: var(--z-hero-net-canvas) !important;
    pointer-events: none !important;
  }
  .hero-stack {
    position: relative;
    z-index: var(--z-hero-content);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: calc(100vh - var(--footer-height));
    padding: 48px 48px 72px;
    gap: 36px;
  }
  .hero-content {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .hero-content .hero-inner {
    width: min(1080px, 100%);
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 4vh, 32px);
  }
  .hero-main-card {
    padding: 40px 48px;
    border-radius: calc(var(--radius-2xl) * 1.2);
    background: rgba(12, 24, 40, 0.78);
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(calc(var(--blur) * 1.3)) saturate(145%);
    box-shadow: 0 24px 64px rgba(4, 12, 24, 0.5), 0 0 80px rgba(120, 220, 255, 0.15);
    display: flex;
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }
  .hero-main-icon-wrap {
    position: relative;
    width: clamp(180px, 24vw, 280px);
    aspect-ratio: 1 / 1;
    margin: -32px auto 16px;
    border-radius: calc(var(--radius-2xl) * 1.4);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
  }
  .hero-main-icon {
    position: relative;
    width: 115%;
    max-width: none;
    height: auto;
    transform: translateY(4%);
    filter: drop-shadow(0 22px 52px rgba(2, 12, 28, 0.65));
    mask-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.98) 68%, rgba(0,0,0,0) 96%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.98) 68%, rgba(0,0,0,0) 96%);
  }
  .hero-header-top {
    width: 100%;
    display: flex;
    justify-content: center;
    text-align: center;
  }
  .hero-sub-middle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero-badges-middle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }
  .hero-content h1.display-4 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
    margin: 0;
    text-align: center;
  }
  .hero-content .lead {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    max-width: 800px;
    margin: 0;
  }
  .hero-subtext {
    font-size: clamp(1.4rem, 3vw, 2.4rem);
    font-weight: 700;
    font-style: italic;
    text-align: center;
  }
  .hero-deck {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 12px;
    grid-auto-rows: minmax(160px, 1fr);
  }
  .hero-card {
    position: relative;
    width: 100%;
    min-height: clamp(180px, 28vh, 320px);
    height: 100%;
    perspective: 1400px;
    cursor: pointer;
  }
  .hero-card:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--card-accent, var(--accent)) 70%, rgba(255,255,255,0.4));
    outline-offset: 4px;
  }
  .hero-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s var(--t-med) ease;
    transform-style: preserve-3d;
  }
  .hero-card.is-active .hero-card-inner {
    transform: rotateY(180deg);
  }
  .hero-card-face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    border-radius: var(--radius-2xl);
    background: rgba(12, 24, 40, 0.72);
    border: 1px solid color-mix(in srgb, var(--card-accent, var(--accent)) 40%, transparent);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 0 45px rgba(12, 120, 220, 0.15), 0 24px 48px rgba(8, 12, 24, 0.45);
    backdrop-filter: blur(calc(var(--blur) * 1.2)) saturate(140%);
    color: var(--txt);
    backface-visibility: hidden;
    overflow: hidden;
  }
  .hero-card-front::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: radial-gradient(circle at top right, color-mix(in srgb, var(--card-accent, var(--accent)) 45%, transparent) 0%, transparent 60%);
    opacity: 0.6;
    pointer-events: none;
  }
  .hero-card-back {
    transform: rotateY(180deg);
    justify-content: space-between;
  }
  .hero-card-icon-wrap {
    width: 56px;
    height: 56px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--card-accent, var(--accent)) 35%, rgba(255,255,255,0.12));
    box-shadow: 0 0 30px rgba(0,0,0,0.35), 0 0 24px color-mix(in srgb, var(--card-accent, var(--accent)) 40%, transparent);
    color: var(--txt);
    font-size: 1.75rem;
  }
  .hero-card-icon {
    line-height: 1;
  }
  .hero-card-icon--svg {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero-card-icon--svg svg {
    width: 65%;
    height: 65%;
  }
  .hero-card-icon--fallback {
    font-weight: 700;
  }
  .hero-card-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.01em;
  }
  .hero-card-summary {
    margin: 0;
    font-size: 0.95rem;
  }
  .hero-card-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
  }
  .hero-card-stat {
    border-radius: calc(var(--radius-2xl) / 1.5);
    padding: 12px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
  }
  .hero-card-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: color-mix(in srgb, var(--card-accent, var(--accent)) 80%, var(--txt));
  }
  .hero-card-stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.65;
  }
  .hero-card-back-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .hero-card-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .hero-card-list-title {
    display: block;
    font-weight: 600;
    color: color-mix(in srgb, var(--card-accent, var(--accent)) 75%, var(--txt));
  }
  .hero-card-list-text {
    font-size: 0.85rem;
    line-height: 1.4;
  }
  .hero-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 12, 24, 0.75);
    backdrop-filter: blur(14px);
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    padding: 24px 48px calc(24px + min(var(--footer-height), 25vh)) 96px;
    z-index: var(--z-over);
    overflow: hidden;
  }
  .hero-backdrop-logo {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url('/assets/css/images/tss-logo-white.jpg');
    background-repeat: no-repeat;
    background-position: left 24px center;
    background-size: auto min(90vh, 900px);
    opacity: 0.36;
    mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0.7) 60%, rgba(0,0,0,0.2) 90%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0.7) 60%, rgba(0,0,0,0.2) 90%, rgba(0,0,0,0) 100%);
    filter: drop-shadow(0 22px 44px rgba(4, 16, 34, 0.55));
  }
  .hero-modal {
    position: relative;
    z-index: 1;
    align-self: stretch;
    height: auto;
    margin-bottom: 26px;
    max-height: calc(100vh - 96px - min(var(--footer-height), 25vh));
  width: clamp(660px, 70vw, 1040px);
    border-radius: calc(var(--radius-2xl) * 1.1);
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px;
    background: rgba(5, 11, 23, 0.9)!important;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 32px 80px rgba(4, 12, 24, 0.55), 0 0 60px color-mix(in srgb, var(--card-accent, var(--accent)) 30%, transparent);
    overflow: hidden;
    transform-origin: right center;
    will-change: transform, opacity;
  }
.hero-modal--contact {
  width: clamp(320px, 28vw, 520px);
  padding: 28px;
}
  .hero-modal-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .hero-modal-icon {
    box-shadow: 0 0 45px color-mix(in srgb, var(--card-accent, var(--accent)) 60%, transparent);
  }
  .hero-modal-title {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.01em;
  }
  .hero-modal-subtitle {
    margin: 8px 0 0;
    font-size: 0.95rem;
  }
  .hero-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.8);
  }
  .hero-modal-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  width: 100%;
  }
.hero-modal-body > * {
  width: 100%;
}
.hero-modal-intro {
  width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(233, 238, 245, 0.92);
}
.hero-modal-intro--primary {
  font-weight: 600;
  letter-spacing: 0.01em;
}
.hero-modal-intro--secondary {
  margin-top: -6px;
  color: color-mix(in srgb, var(--txt-dim) 80%, var(--accent) 20%);
  font-size: 0.98rem;
}
  .hero-modal-body form {
    width: 100%;
    max-width: 500px;
  }
.hero-modal--contact .hero-modal-body form {
  max-width: 420px;
  margin-right: 16px;
  width: calc(100% - 16px);
}
  .hero-modal-stats {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  .hero-modal-stat {
    padding: 16px;
    border-radius: calc(var(--radius-2xl) / 1.5);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
  }
  .hero-modal-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: color-mix(in srgb, var(--card-accent, var(--accent)) 70%, var(--txt));
  }
  .hero-modal-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.7;
  }
  .hero-modal-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
.hero-blade-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}
.hero-blade-section__header h4 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}
.hero-blade-section__sub {
  margin: 6px 0 0;
  font-size: 0.95rem;
}
.hero-blade-grid {
  display: grid;
  gap: 16px;
}
.hero-blade-grid--list {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.hero-blade-grid--kits {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.hero-blade-kits {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hero-blade-kit {
  background: rgba(0,0,0,0.32);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: calc(var(--radius-2xl) * 1.05);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}
.hero-blade-kit__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.hero-blade-kit__title h5 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}
.hero-blade-kit__title p {
  margin: 6px 0 0;
  font-size: 0.95rem;
}
.hero-blade-kit__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-blade-kit__body {
  display: grid;
  gap: 16px;
}
.hero-blade-kit__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-blade-kit__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.65;
}
.hero-blade-services {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-blade-service {
  width: 100%;
  background: rgba(0,0,0,0.32);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: calc(var(--radius-2xl) / 1.1);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}
.hero-blade-service__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-blade-service__header h5 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}
.hero-blade-service__desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}
.hero-blade-service__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero-blade-service__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.65;
}
.hero-blade-grid--clients {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.hero-blade-clients {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hero-blade-client {
  background: rgba(0,0,0,0.32);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: calc(var(--radius-2xl) * 1.05);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}
.hero-blade-client__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.hero-blade-client__title h5 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}
.hero-blade-client__role {
  margin: 6px 0 0;
  font-size: 0.95rem;
}
.hero-blade-client__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-blade-client__projects {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-blade-client-project {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: calc(var(--radius-2xl) / 1.3);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-blade-client-project__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.hero-blade-client-project__header h6 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}
.hero-blade-client-project__desc {
  margin: 0;
  font-size: 0.9rem;
}
.hero-blade-client-project__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero-blade-client-project__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.65;
}
.hero-blade-grid--stacks {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.hero-blade-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: calc(var(--radius-2xl) / 1.2);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}
.hero-blade-card--list {
  min-height: 0;
}
.hero-blade-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.hero-blade-card__header h5 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}
.hero-blade-card__desc {
  margin: 6px 0 0;
  font-size: 0.9rem;
}
.hero-blade-meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-blade-meta__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero-blade-meta__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
}
.hero-blade-meta__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hero-blade-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.hero-blade-list li {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: calc(var(--radius-2xl) / 1.4);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-blade-list__name {
  font-weight: 600;
}
.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(120, 224, 255, 0.18);
  color: rgba(233, 238, 245, 0.92);
  border: 1px solid rgba(120, 224, 255, 0.4);
}
.hero-chip--ghost {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
}
.hero-chip--outline {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
}
.hero-chip--accent {
  background: rgba(184, 148, 255, 0.22);
  border-color: rgba(184, 148, 255, 0.5);
}
.hero-chip--status {
  background: rgba(126, 255, 189, 0.2);
  border-color: rgba(126, 255, 189, 0.45);
  color: rgba(218, 255, 235, 0.95);
}
.hero-blade-subsections {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-blade-subcard {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: calc(var(--radius-2xl) / 1.4);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-blade-subcard h6 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}
  .hero-modal-item {
    padding: 18px 20px;
    border-radius: calc(var(--radius-2xl) / 1.2);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
  }
  .hero-modal-item-title {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 600;
    color: color-mix(in srgb, var(--card-accent, var(--accent)) 65%, var(--txt));
  }
  .hero-modal-item-text {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
  }
  .hero-modal-item-meta {
    margin: 8px 0 0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.6;
  }
  .hero-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 16px;
  }
  .hero-modal-footer .btn-accent {
    background: color-mix(in srgb, var(--card-accent, var(--accent)) 60%, rgba(12,24,40,0.8));
    color: var(--txt);
    border-color: color-mix(in srgb, var(--card-accent, var(--accent)) 70%, transparent);
    box-shadow: 0 0 25px color-mix(in srgb, var(--card-accent, var(--accent)) 40%, transparent);
  }
  .hero-modal-footer .btn-outline {
    border-color: rgba(255,255,255,0.25);
  }
  .btn.btn-accent {
    font-weight: 600;
    letter-spacing: 0.02em;
  }
.btn-accent--confirm {
  background: linear-gradient(135deg, rgba(158, 227, 125, 0.85), rgba(76, 169, 96, 0.9));
  color: #04111e !important;
  border: 1px solid rgba(158, 227, 125, 0.8);
  box-shadow: 0 12px 30px rgba(76, 169, 96, 0.4);
}
.btn-accent--confirm:disabled {
  background: rgba(158, 227, 125, 0.3);
  border-color: rgba(158, 227, 125, 0.3);
  color: rgba(4, 17, 30, 0.6) !important;
  box-shadow: none;
}
  .hero-modal-fade-enter-active,
  .hero-modal-fade-leave-active {
    transition: opacity 840ms ease, transform 840ms ease;
  }
  .hero-modal-fade-enter-from,
  .hero-modal-fade-leave-to {
    opacity: 0;
    transform: translateX(40px);
  }
  /* Smooth blade (panel) animation tied to the backdrop transition states */
  .hero-modal-fade-enter-active .hero-modal,
  .hero-modal-fade-leave-active .hero-modal {
    transition: transform 840ms cubic-bezier(0.22, 0.61, 0.36, 1), opacity 840ms ease;
  }
  .hero-modal-fade-enter-from .hero-modal {
    transform: translateX(24px) scale(0.98);
    opacity: 0;
  }
  .hero-modal-fade-leave-to .hero-modal {
    transform: translateX(24px) scale(0.98);
    opacity: 0;
  }
  @media (max-width: 1200px) {
    .hero-content .hero-inner {
      width: min(680px, 92%);
    }
    .hero-main-card {
      padding: 36px 32px;
    }
    .hero-main-icon-wrap {
      width: clamp(160px, 32vw, 240px);
      margin: -24px auto 12px;
    }
    .hero-main-icon {
      width: 110%;
    }
    .hero-deck {
      width: min(960px, 100%);
    }
  }
  @media (max-width: 991px) {
    .hero-stack {
      align-items: center;
      padding: 32px 24px 56px;
      gap: 40px;
    }
    .hero-content {
      justify-content: center;
      text-align: center;
    }
    .hero-header-top {
      justify-content: center;
      text-align: center;
    }
    .hero-content .hero-inner {
      width: 100%;
    }
    .hero-main-card {
      padding: 32px 24px;
    }
    .hero-main-icon-wrap {
      width: clamp(150px, 40vw, 220px);
      margin: -20px auto 10px;
    }
    .hero-main-icon {
      width: 112%;
    }
    .hero-deck {
      width: 100%;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 20px;
    }
    .hero-card-inner {
      transform: none !important;
    }
    .hero-card-back {
      display: none;
    }
    .hero-card-front::after {
      opacity: 0.45;
    }
    .hero-modal-backdrop {
      padding: 24px 24px calc(16px + min(var(--footer-height), 25vh));
      justify-content: flex-end;
    }
    .hero-modal {
      width: 56vw;
      height: 100%;
    }
  }
  @media (max-width: 640px) {
    .hero-stack {
      padding: 24px 16px 48px;
    }
    .hero-card {
      height: auto;
      min-height: 300px;
    }
    .hero-backdrop-logo {
      background-position: left 16px center;
      background-size: auto min(70vh, 640px);
      opacity: 0.24;
    }
    .hero-backdrop-logo {
      display: none;
    }
    .hero-modal-logo-bg img {
      width: 160%;
    }
    .hero-modal-logo-bg img {
      width: 180%;
      transform: translateY(4%);
    }
    .hero-main-icon-wrap {
      width: clamp(140px, 56vw, 200px);
      margin: -16px auto 8px;
    }
    .hero-main-icon {
      width: 108%;
      transform: translateY(2%);
    }
    .hero-modal-backdrop {
      padding: 16px 12px calc(12px + min(var(--footer-height), 25vh));
    }
    .hero-modal {
      padding: 24px;
      height: 100%;
    }
    .hero-main-card {
      padding: 28px 20px;
      gap: 24px;
    }
    .hero-subtext {
      font-size: clamp(1.2rem, 5vw, 1.6rem);
    }
  }
  /* Page sections: fixed viewport height layout */
  .page-full {
    height: 100vh;
    display: grid;
    align-content: start;
    overflow: hidden;
  }
  
  /* Footer base (structure + glass handled in glass-bootstrap.css) */
  .site-footer {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: var(--z-footer);
  }
  
  /* A11y utilities */
  .sr-only, .visually-hidden, .visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute !important; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
  }
  .visually-hidden-focusable:focus, .visually-hidden-focusable:focus-within {
    position: static !important; width: auto; height: auto; margin: 0; clip: auto; white-space: normal;
  }
  
  /* Placeholder look for empty cards */
  .placeholder-glass {
    color: var(--txt-dim);
    opacity: .9;
  }
  
  /* Section accent bars without affecting layout height */
  #home { box-shadow: inset 0 4px 0 0 #78e0ff; }
  #services { box-shadow: inset 0 4px 0 0 #9ee37d; }
  #experience { box-shadow: inset 0 4px 0 0 #ff9f66; }
  #innovation { box-shadow: inset 0 4px 0 0 #b894ff; }
  #contact { box-shadow: inset 0 4px 0 0 #ff7b9d; }

  /* Allow scroll and relaxed layout on small screens */
  @media (max-width: 768px) {
    :root {
      --footer-height: 180px;
    }
    html, body { overflow: hidden; overscroll-behavior: auto; }
    .app-shell { height: 100dvh; }
    .content-area { height: 100dvh; overflow-y: auto; overflow-x: auto; }
    .hero-full,
    .hero-section-wrapper,
    .page-full {
      height: auto;
      min-height: 100vh;
    }
    .hero-section-wrapper { overflow: visible; }
    .hero-stack {
      min-height: 100vh;
      padding-bottom: calc(24px + var(--footer-height));
      overflow: visible;
    }
    /* Let footer take up layout space so it doesn't cover content */
    .site-footer { position: fixed; left: 0; right: 0; bottom: 0; }
  }
  
  /* Hero right-side log panel - aligned with code canvas layer */
  #hero-logPanel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(49.4vw, 728px);
    height: 100vh;
    z-index: var(--z-hero-code-canvas);
    pointer-events: none;
  }
  #hero-logPanel #hero-logCanvas {
    width: 100%;
    height: 100%;
    display: block;
  }
  
  /* Hero left-side code panel - mirror width to log panel */
  #hero-codePanel {
    position: fixed;
    top: 0;
    left: 0;
    width: min(49.4vw, 728px);
    height: 100vh;
    z-index: var(--z-hero-code-canvas);
    pointer-events: none;
  }
  #hero-codePanel #hero-codeCanvas {
    position: static !important;
    width: 100% !important;
    height: 100% !important;
    display: block;
    pointer-events: none !important;
  }
  