/* Author: Yogabrata Mukhopadhyay
   Organization: Brahmexa
   Copyright (c) 2026 Brahmexa. All rights reserved. */

/* JSI preview — architectural building blocks & infrastructure visual theme */

.jsi-page {
  --jsi-radius: 6px;
  --jsi-radius-lg: 10px;
  --logo-opacity: 0.05;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.jsi-page .orb,
.jsi-page .planet-gap,
.jsi-page .jsi-constellation,
.jsi-page .orb-cyan,
.jsi-page .jsi-arch-orbit { display: none !important; }

.jsi-page #cosmos { opacity: 0.08; }
.jsi-page .mesh {
  opacity: 0.04;
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(15, 23, 42, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
}

/* Watermark */
.jsi-watermark {
  position: fixed;
  right: 4%;
  top: 28%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.04;
}
.jsi-watermark img {
  width: min(28vw, 220px);
  height: auto;
  transform: none;
  filter: none;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 200;
  padding: 8px 16px;
  border-radius: var(--jsi-radius);
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* Header & Brand */
.jsi-header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.jsi-header .header-inner {
  max-width: 1180px;
  gap: 24px;
  position: relative;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
}
.jsi-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.jsi-brand-mark {
  width: 80px;
  height: 80px;
  border-radius: var(--jsi-radius);
  border: 1px solid var(--border);
  background: #ffffff;
  object-fit: contain;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.jsi-brand .site-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.jsi-brand .site-tag {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 2px;
}

/* Nav */
.jsi-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
}
.jsi-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--jsi-radius);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.jsi-nav a:hover,
.jsi-nav a[aria-current="page"] {
  color: var(--text);
  background: color-mix(in srgb, var(--border) 45%, transparent);
}

.jsi-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--jsi-radius);
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.jsi-banner {
  position: relative;
  z-index: 6;
  text-align: center;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-soft) 85%, transparent);
  padding: 8px 16px;
  font-weight: 600;
}

.jsi-main.main-wrap {
  flex: 1;
  max-width: 1180px;
  width: 100%;
  padding-top: 48px;
  padding-bottom: 64px;
  z-index: 2;
}

.jsi-page h1,
.jsi-page h2,
.jsi-page h3 { color: var(--text); }
.jsi-page .eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  margin-bottom: 12px;
  border-radius: 4px;
  color: var(--text);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-soft) 80%, transparent);
}

/* Buttons */
.jsi-page .btn-primary,
.jsi-page .btn-secondary {
  border-radius: var(--jsi-radius);
  padding: 12px 24px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  box-sizing: border-box;
  transition: all 0.15s ease;
}
.jsi-page button.btn-primary,
.jsi-page button.btn-secondary {
  font: inherit;
  cursor: pointer;
}
.jsi-page .btn-primary {
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
}
.jsi-page .btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}
.jsi-page .btn-secondary {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
}
.jsi-page .btn-secondary:hover {
  border-color: var(--text);
  background: color-mix(in srgb, var(--border) 35%, transparent);
}

/* Hero Section */
.jsi-hero-arch {
  margin-bottom: 64px;
}
.jsi-hero-head {
  max-width: 44rem;
  margin-bottom: 40px;
}
.jsi-hero-head h1 {
  font-size: clamp(2.3rem, 4.8vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text);
  margin: 12px 0 16px;
}
.jsi-hero-head .lede {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 24px 0;
}
.jsi-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.jsi-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.jsi-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  color: var(--muted);
  background: color-mix(in srgb, var(--bg-soft) 60%, transparent);
}
.jsi-badge[data-status="available"] {
  color: #047857;
  border-color: rgba(4, 120, 87, 0.25);
  background: rgba(4, 120, 87, 0.08);
}
.jsi-badge[data-status="pilot"],
.jsi-badge[data-status="demonstration"],
.jsi-badge[data-status="in-flight"] {
  color: #c2410c;
  border-color: rgba(194, 65, 12, 0.25);
  background: rgba(194, 65, 12, 0.08);
}

/* Infrastructure Pillars Building Blocks Grid */
.jsi-pillars-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.jsi-pillars-header h2 { margin: 0; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; }

.jsi-pillars-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.jsi-pillar-block {
  border: 1px solid var(--border);
  border-radius: var(--jsi-radius-lg);
  background: var(--panel);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  overflow: hidden;
}
.jsi-pillar-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--text);
  opacity: 0.15;
  transition: opacity 0.2s ease;
}
.jsi-pillar-block:hover {
  border-color: var(--text);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
}
.jsi-pillar-block:hover::before {
  opacity: 1;
}

.jsi-pillar-num {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 12px;
}
.jsi-pillar-block h3 {
  font-size: 1.02rem;
  font-weight: 750;
  margin: 0 0 8px;
  color: var(--text);
  line-height: 1.3;
}
.jsi-pillar-block p {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
  flex: 1;
}
.jsi-pillar-link {
  margin-top: 16px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Doors Section & Grid */
.jsi-section { margin: 32px 0 56px; }
.jsi-detail { margin-top: 8px; }
.jsi-sol-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 16px 0 28px;
  font-size: 0.9rem;
  font-weight: 600;
}
.jsi-sol-index a {
  color: var(--muted);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.jsi-sol-index a:hover { color: var(--text); }
.jsi-section h2 {
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 8px 0 16px;
}

.jsi-sol-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.jsi-door-card {
  border: 1px solid var(--border);
  border-radius: var(--jsi-radius-lg);
  background: var(--panel);
  padding: 24px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  position: relative;
}
.jsi-door-card:hover {
  border-color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}
.jsi-door-card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin: 12px 0 8px;
  color: var(--text);
}
.jsi-door-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  flex: 1;
  margin: 0;
}
.jsi-door-link {
  margin-top: 18px;
  color: var(--text);
  font-weight: 700;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Navigation Doors Strip */
.jsi-nav-doors-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 24px 0 48px;
}
.jsi-nav-door-item {
  border: 1px solid var(--border);
  border-radius: var(--jsi-radius);
  background: var(--panel);
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s ease;
  text-align: center;
}
.jsi-nav-door-item:hover {
  border-color: var(--text);
  background: color-mix(in srgb, var(--border) 30%, transparent);
}
.jsi-nav-door-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--text);
}
.jsi-nav-door-item p {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
}

/* Closing Section */
.jsi-close-clean {
  border-radius: var(--jsi-radius-lg);
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 56px;
}
.jsi-close-clean h2 { margin: 0 0 8px; }
.jsi-close-clean p { margin: 0; color: var(--muted); font-size: 1.05rem; }

/* Prose & Specs */
.jsi-prose {
  max-width: 48rem;
  font-size: 1.02rem;
  line-height: 1.65;
}
.jsi-prose p, .jsi-prose li { color: var(--muted); }
.jsi-prose h3 { margin: 24px 0 8px; color: var(--text); font-weight: 700; }
.jsi-prose ul { padding-left: 1.2rem; }
.jsi-prose li { margin-bottom: 8px; }

.jsi-spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--jsi-radius);
  overflow: hidden;
}
.jsi-spec-table th,
.jsi-spec-table td {
  padding: 12px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.jsi-spec-table th {
  background: color-mix(in srgb, var(--bg-soft) 80%, transparent);
  color: var(--text);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
}
.jsi-spec-table tr:last-child td { border-bottom: 0; }

.ym-swan-reel {
  margin: 8px 0 28px;
  max-width: 42rem;
}
.ym-swan-reel-stage {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--jsi-radius);
  background: #1a1d22;
}
.ym-swan-reel-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: ym-swan-reel 20s infinite;
}
.ym-swan-reel-stage img:nth-child(1) { animation-delay: 0s; opacity: 1; }
.ym-swan-reel-stage img:nth-child(2) { animation-delay: 5s; }
.ym-swan-reel-stage img:nth-child(3) { animation-delay: 10s; }
.ym-swan-reel-stage img:nth-child(4) { animation-delay: 15s; }
.ym-swan-reel:hover .ym-swan-reel-stage img,
.ym-swan-reel:focus-within .ym-swan-reel-stage img {
  animation-play-state: paused;
}
@keyframes ym-swan-reel {
  0%, 22% { opacity: 1; }
  27%, 100% { opacity: 0; }
}
.ym-swan-reel figcaption { margin: 10px 0 0; }
.ym-swan-reel-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ae3024;
}
.ym-swan-reel ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 8px 0 0;
  padding: 0;
}
.ym-swan-reel li {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  .ym-swan-reel-stage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    aspect-ratio: auto;
    gap: 6px;
    background: transparent;
  }
  .ym-swan-reel-stage img {
    position: static;
    opacity: 1 !important;
    animation: none;
    height: auto;
    aspect-ratio: 3 / 2;
  }
}

/* Architecture Page Stack */
.jsi-arch {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: start;
  margin-top: 24px;
}
.jsi-arch-stack { display: grid; gap: 12px; }
.jsi-arch-layer {
  border: 1px solid var(--border);
  border-radius: var(--jsi-radius);
  background: var(--panel);
  padding: 16px;
}
.jsi-arch-layer h3 {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 6px;
}
.jsi-arch-layer p {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.jsi-arch-nodes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.jsi-node {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-soft) 50%, transparent);
  color: var(--text);
  border-radius: var(--jsi-radius);
  padding: 10px 14px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 650;
  cursor: pointer;
  min-height: 44px;
}
.jsi-node[aria-pressed="true"] {
  border-color: var(--text);
  color: var(--bg);
  background: var(--text);
}
.jsi-arch-detail {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--jsi-radius-lg);
  padding: 24px;
  min-height: 240px;
  position: sticky;
  top: 108px;
}

/* Contact & Leadership */
.jsi-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 24px 0;
}
.jsi-contact-card {
  border: 1px solid var(--border);
  border-radius: var(--jsi-radius-lg);
  background: var(--panel);
  padding: 24px;
}
.jsi-contact-card h3 { font-size: 1.08rem; margin-top: 0; margin-bottom: 8px; color: var(--text); }
.jsi-contact-card p { color: var(--muted); font-size: 0.9rem; margin-bottom: 14px; }
.jsi-contact-card a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.jsi-leader {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: start;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--jsi-radius-lg);
  padding: 28px;
  margin-top: 36px;
}
.jsi-leader img {
  width: 200px;
  height: 240px;
  object-fit: cover;
  object-position: center 18%;
  border-radius: var(--jsi-radius);
  border: 1px solid var(--border);
}

.jsi-address-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.jsi-address-item {
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: var(--jsi-radius);
  background: color-mix(in srgb, var(--bg-soft) 40%, transparent);
}
.jsi-address-item h4 { margin: 0 0 4px; font-size: 0.92rem; color: var(--text); }
.jsi-address-item p { margin: 0; font-size: 0.85rem; color: var(--muted); }

/* Offerings Page */
.jsi-offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}
.jsi-offer-card {
  border: 1px solid var(--border);
  border-radius: var(--jsi-radius-lg);
  background: var(--panel);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.jsi-offer-card h3 { font-size: 1.1rem; margin: 12px 0 8px; color: var(--text); }
.jsi-offer-card p { color: var(--muted); font-size: 0.9rem; flex: 1; margin-bottom: 18px; }

/* Footer */
.jsi-footer.site-footer {
  margin-top: auto;
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  padding: 28px 0;
  text-align: center;
  font-size: 0.88rem;
}

@media (max-width: 1080px) {
  .jsi-pillars-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 980px) {
  .jsi-sol-grid,
  .jsi-nav-doors-strip,
  .jsi-offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .jsi-menu-toggle { display: none; }
  .jsi-nav {
    display: flex;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    gap: 4px 8px;
  }
  .jsi-nav a { padding: 8px 10px; }
  .jsi-arch,
  .jsi-leader,
  .jsi-close-clean { grid-template-columns: 1fr; }
  .jsi-leader img { width: 160px; height: 192px; }
  .jsi-arch-detail { position: static; }
  .jsi-brand-mark { width: 48px; height: 48px; }
  .jsi-address-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .jsi-pillars-grid,
  .jsi-sol-grid,
  .jsi-nav-doors-strip,
  .jsi-offer-grid { grid-template-columns: 1fr; }
}
