/* ===== OLDSCHOOLAI.CSS ===== */

/*
  Font split:
  - Orbitron        → logo, section titles (big display only)
  - Share Tech Mono → labels, tags, dates, nav, small UI (retro feel)
  - Inter           → body text, descriptions, paragraphs (readable)
*/

:root {
  --bg:         #030008;
  --bg-alt:     #080018;
  --surface:    #130025;
  --surface2:   #1b0035;
  --border:     rgba(180,0,255,0.10);
  --green:      #6899be;
  --accent2:    #8bbad4;
  --accent-glow: rgba(104,153,190,0.22);
  --white:      #edf0f4;
  --text-muted: #9980a8;
  --muted:      #9980a8;
  --dim:        rgba(255,255,255,0.09);
  --radius:     0px;
  --radius-sm:  0px;
  --shadow:     0 4px 32px rgba(0,0,0,0.6);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: #020008; }

body {
  font-family: 'Inter', sans-serif;
  background: transparent;
  color: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ===== NAV ===== */

.os-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 52px;
  height: 64px;
  background: rgba(3,0,14,0.90);
  backdrop-filter: blur(20px);
}

.os-back {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.os-back:hover { color: var(--white); }

.os-nav-logo {
  display: flex;
  align-items: center;
}

.os-nav-wordmark {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffd800 0%, #ff8205 55%, #e10500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.os-nav-logo-accent { /* inherits gradient from parent */ }

.os-nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
}

.os-nav-link {
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.os-nav-link:hover,
.os-nav-link--active { color: var(--white); }

.os-nav-link--brand {
  background: linear-gradient(180deg, #ffd800 0%, #ff8205 55%, #e10500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.os-status {
  font-size: 11px;
  color: var(--accent2);
  letter-spacing: 0.15em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.os-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: blink-dot 1.4s step-end infinite;
}
@keyframes blink-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

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

.os-hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 26vh 52px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: transparent;
}
#os-hero-grid {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.os-hero-inner { max-width: 820px; margin: 0 auto; text-align: center; width: 100%; position: relative; z-index: 1; }


.os-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #00e676;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 8px 2px;
  margin-bottom: 20px;
  text-shadow: 0 0 6px rgba(0, 230, 118, 0.7), 0 0 14px rgba(0, 230, 118, 0.35);
}

.os-hero-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1.7rem, 4vw, 3.4rem);
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  margin-bottom: 24px;
  background-image:
    linear-gradient(rgba(160,55,0,0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160,55,0,0.18) 1px, transparent 1px),
    linear-gradient(180deg, #ffd800 0%, #ffaf00 25%, #ff8205 58%, #e10500 100%);
  background-size: 6px 6px, 6px 6px, 100% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Typed suffix — inherits gradient from parent h1 */
.os-title-typed {
  display: inline;
}

.os-hero-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  display: inline-block;
}

.os-cursor {
  color: var(--accent2);
  animation: blink 0.9s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ===== PRESS START ===== */
.os-press-start {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(0.75rem, 1.6vw, 1.1rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 120px;
  text-align: center;
  text-decoration: none;
  display: block;
  cursor: pointer;
  opacity: 0;
  animation: none;
}
.os-press-start.is-visible {
  opacity: 1;
  animation: press-start-blink 1.1s step-end infinite;
}
@keyframes press-start-blink {
  0%, 49% {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255,255,255,0.85), 0 0 24px rgba(255,255,255,0.4);
  }
  50%, 100% {
    color: #2a2a2a;
    text-shadow: none;
  }
}

/* ===== SHARED SECTION STYLES ===== */

.os-section {
  padding: 96px 52px;
}
.os-section--alt {
  background: rgba(10,0,28,0.82);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
#frameworks {
  background-color: rgba(0,20,8,0.72);
  background-image:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(0,230,118,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(0,180,80,0.04) 0%, transparent 80%);
  border-top: 1px solid rgba(0,230,118,0.18);
  border-bottom: 1px solid rgba(0,230,118,0.18);
  position: relative;
  overflow: hidden;
}
#fw-dot-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}
#frameworks .os-container--wide {
  position: relative;
  z-index: 1;
}
#deploy {
  background-color: rgba(8,0,22,0.86);
  background-image:
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(104,153,190,0.09) 0%, transparent 100%),
    linear-gradient(rgba(104,153,190,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(104,153,190,0.05) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  border-top: 1px solid rgba(104,153,190,0.18);
  border-bottom: 1px solid rgba(104,153,190,0.18);
}

/* ===== FRAMEWORKS — green-aligned card overrides ===== */
#frameworks .os-fw-card {
  background: rgba(5,16,8,0.95);
  border-color: rgba(0,230,118,0.10);
}
#frameworks .os-fw-card:hover {
  border-color: rgba(0,230,118,0.50);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(0,230,118,0.12);
}
#frameworks .os-fw-header {
  background: rgba(0,230,118,0.05);
  border-bottom-color: rgba(0,230,118,0.10);
}
#frameworks .os-fw-card:hover .os-fw-header {
  background: rgba(0,230,118,0.09);
}
#frameworks .os-fw-cta {
  border-top-color: rgba(0,230,118,0.12);
}
#frameworks .os-fw-cta:hover {
  background: rgba(0,230,118,0.08);
  color: #00e676;
}
#frameworks .os-fw-filter-btn.is-active {
  color: #00e676;
  border-color: #00e676;
  background: rgba(0,230,118,0.07);
}
#frameworks .os-fw-filter-btn:hover {
  color: var(--white);
  border-color: rgba(0,230,118,0.30);
}

/* ===== FRAMEWORKS — green title + subtitle ===== */
#frameworks .os-dt-line1,
#frameworks .os-dt-line2 {
  background: linear-gradient(180deg, #b2ffd8 0%, #00e676 40%, #00b84c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
#frameworks .os-dt-line1 .os-cursor,
#frameworks .os-dt-line2 .os-cursor {
  background: linear-gradient(180deg, #b2ffd8 0%, #00e676 40%, #00b84c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
#frameworks .os-cs-sub {
  color: rgba(0,230,118,0.60);
}

/* ===== ABOUT ("WHAT IS THIS") — warm amber-dark, distinct from cool sections ===== */
#about {
  background-color: rgba(10,0,25,0.87);
  background-image: radial-gradient(ellipse 90% 65% at 50% 115%, rgba(255,130,5,0.10) 0%, transparent 70%);
  border-top-color: rgba(255,130,5,0.12);
  border-bottom-color: rgba(255,130,5,0.12);
}

/* ===== POSTS ("REFLECTION SNIPPETS") — cool CRT scanlines ===== */
#posts {
  background-color: rgba(6,0,18,0.86);
  background-image: repeating-linear-gradient(
    0deg,
    rgba(104,153,190,0.04) 0px,
    rgba(104,153,190,0.04) 1px,
    transparent 1px,
    transparent 5px
  );
  border-top: 1px solid rgba(104,153,190,0.14);
  border-bottom: 1px solid rgba(104,153,190,0.14);
}

/* ===== ANALYSIS ("UNDER THE HOOD") — deep violet-dark, dual corner glows ===== */
#analysis {
  background-color: rgba(0,8,22,0.88);
  background-image:
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(30,80,200,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 60% 45% at 100% 100%, rgba(60,100,220,0.07) 0%, transparent 60%);
  border-top: 1px solid rgba(60,120,255,0.18);
  border-bottom: 1px solid rgba(60,120,255,0.18);
}

.os-container       { max-width: 840px; margin: 0 auto; }
.os-container--wide { max-width: 1040px; margin: 0 auto; }

.os-section-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 52px;
  text-align: center;
  display: block;
  line-height: 1.8;
}
.os-section-label::before { content: ''; }

/* ===== ABOUT INTRO ===== */
.os-about-intro {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

/* ===== ABOUT — centered ===== */
.os-about {
  text-align: center;
}
.os-about p {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.os-about p:last-child { margin-bottom: 0; }
.os-about strong { color: var(--white); font-weight: 600; }
.os-about em     { color: var(--accent2); font-style: italic; }

/* ===== DEPLOY SMARTLY ===== */

.os-deploy-sub {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--muted);
  margin-top: 0;
  margin-bottom: 48px;
}

.os-filter-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 52px;
  flex-wrap: wrap;
}

.os-filter-btn {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 7px 20px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.os-filter-btn:hover { color: var(--white); border-color: rgba(255,255,255,0.2); }
.os-filter-btn.is-active {
  color: var(--green);
  border-color: var(--green);
  background: rgba(104, 153, 190, 0.1);
}

.os-fw-filter-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.os-fw-filter-btn {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 7px 20px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.os-fw-filter-btn:hover { color: var(--white); border-color: rgba(255,255,255,0.2); }
.os-fw-filter-btn.is-active {
  color: var(--green);
  border-color: var(--green);
  background: rgba(104, 153, 190, 0.1);
}

.os-deploy-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.os-dc {
  position: relative;
  overflow: hidden;
  background-color: rgba(8,0,22,0.55);
  background-image:
    linear-gradient(to right, transparent 60px, rgba(180,0,255,0.12) 60px, rgba(180,0,255,0.12) calc(100% - 60px), transparent calc(100% - 60px)),
    linear-gradient(to right, transparent 60px, rgba(180,0,255,0.12) 60px, rgba(180,0,255,0.12) calc(100% - 60px), transparent calc(100% - 60px)),
    linear-gradient(to bottom, transparent 60px, rgba(180,0,255,0.12) 60px, rgba(180,0,255,0.12) calc(100% - 60px), transparent calc(100% - 60px)),
    linear-gradient(to bottom, transparent 60px, rgba(180,0,255,0.12) 60px, rgba(180,0,255,0.12) calc(100% - 60px), transparent calc(100% - 60px));
  background-position: top, bottom, left, right;
  background-size: 100% 1px, 100% 1px, 1px 100%, 1px 100%;
  background-repeat: no-repeat;
  border: none;
  border-radius: 0;
  padding: 36px 36px 32px 36px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 32px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s, background 0.25s;
}
/* Corner bracket — 4-corner targeting reticle */
.os-dc::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.90;
  transition: opacity 0.25s;
  background:
    /* top-left: vertical arm at x=0, horizontal arm at y=0 */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Crect x='12' y='0' width='8' height='8' fill='%23cc00ff'/%3E%3Crect x='24' y='0' width='8' height='8' fill='%23cc00ff'/%3E%3Crect x='36' y='0' width='8' height='8' fill='%23cc00ff'/%3E%3Crect x='0' y='12' width='8' height='8' fill='%23cc00ff'/%3E%3Crect x='12' y='12' width='8' height='8' fill='%23cc00ff'/%3E%3Crect x='0' y='24' width='8' height='8' fill='%23cc00ff'/%3E%3Crect x='0' y='36' width='8' height='8' fill='%23cc00ff'/%3E%3C/svg%3E") 0 0 / 60px 60px no-repeat,
    /* top-right: vertical arm at x=52 (flush right edge), horizontal at y=0 */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Crect x='16' y='0' width='8' height='8' fill='%23cc00ff'/%3E%3Crect x='28' y='0' width='8' height='8' fill='%23cc00ff'/%3E%3Crect x='40' y='0' width='8' height='8' fill='%23cc00ff'/%3E%3Crect x='40' y='12' width='8' height='8' fill='%23cc00ff'/%3E%3Crect x='52' y='12' width='8' height='8' fill='%23cc00ff'/%3E%3Crect x='52' y='24' width='8' height='8' fill='%23cc00ff'/%3E%3Crect x='52' y='36' width='8' height='8' fill='%23cc00ff'/%3E%3C/svg%3E") 100% 0 / 60px 60px no-repeat,
    /* bottom-left: vertical arm at x=0, horizontal arm at y=52 (flush bottom edge) */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Crect x='0' y='16' width='8' height='8' fill='%23cc00ff'/%3E%3Crect x='0' y='28' width='8' height='8' fill='%23cc00ff'/%3E%3Crect x='0' y='40' width='8' height='8' fill='%23cc00ff'/%3E%3Crect x='12' y='40' width='8' height='8' fill='%23cc00ff'/%3E%3Crect x='12' y='52' width='8' height='8' fill='%23cc00ff'/%3E%3Crect x='24' y='52' width='8' height='8' fill='%23cc00ff'/%3E%3Crect x='36' y='52' width='8' height='8' fill='%23cc00ff'/%3E%3C/svg%3E") 0 100% / 60px 60px no-repeat,
    /* bottom-right: vertical arm at x=52, horizontal at y=52 (both flush edges) */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Crect x='52' y='16' width='8' height='8' fill='%23cc00ff'/%3E%3Crect x='52' y='28' width='8' height='8' fill='%23cc00ff'/%3E%3Crect x='52' y='40' width='8' height='8' fill='%23cc00ff'/%3E%3Crect x='40' y='40' width='8' height='8' fill='%23cc00ff'/%3E%3Crect x='40' y='52' width='8' height='8' fill='%23cc00ff'/%3E%3Crect x='28' y='52' width='8' height='8' fill='%23cc00ff'/%3E%3Crect x='16' y='52' width='8' height='8' fill='%23cc00ff'/%3E%3C/svg%3E") 100% 100% / 60px 60px no-repeat;
}
/* Live pulse dot — active cards only */

.os-dc > * {
  position: relative;
  z-index: 1;
}
.os-dc-top {
  grid-column: 1;
  grid-row: 1;
}
.os-expand-btn {
  grid-column: 2;
  grid-row: 1;
  margin-top: 0;
  margin-left: 0;
  align-self: center;
  flex-shrink: 0;
}
.os-dc-expand {
  grid-column: 1 / -1;
  grid-row: 2;
}
.os-dc:hover {
  background-color: rgba(12,0,32,0.68);
  transform: translateY(-2px);
  box-shadow: 0 8px 48px rgba(0,0,0,0.45), 0 0 30px rgba(204,0,255,0.10);
}
.os-dc:hover::before {
  opacity: 1;
}
.os-dc--hidden { display: none; }

.os-dc--wip {
  position: relative;
  cursor: default;
  opacity: 0.5;
  pointer-events: none;
}
.os-dc--wip:hover {
  transform: none;
  box-shadow: none;
  background-color: rgba(8,0,22,0.55);
}
.os-dc-btn-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.os-dc-wip-badge {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: #ff8205;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  pointer-events: none;
  text-shadow: 0 0 6px rgba(0,230,118,0.7), 0 0 14px rgba(0,230,118,0.35);
}

.os-dc-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.os-dc-cat {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  padding: 3px 10px;
  border: 1px solid;
}
.os-dc-cat--gtm     { color: #ff2090; border-color: rgba(255,32,144,0.35); background: rgba(255,32,144,0.07); }
.os-dc-cat--sales   { color: #38bdf8; border-color: rgba(56,189,248,0.35); background: rgba(56,189,248,0.07); }
.os-dc-cat--content { color: #a78bfa; border-color: rgba(167,139,250,0.35); background: rgba(167,139,250,0.07); }

.os-dc-num {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  background: linear-gradient(180deg, #cc00ff 0%, #ff2090 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.os-dc-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.35;
}

.os-dc-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 760px;
}

/* Flow diagram */
.os-flow-wrap {
  margin: 28px 0;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--dim) transparent;
}
.os-flow-wrap::-webkit-scrollbar { height: 3px; }
.os-flow-wrap::-webkit-scrollbar-thumb { background: var(--dim); }

.os-fn[data-caption] { cursor: pointer; }
.os-fn[data-caption]:hover {
  border-top-color: #ff8205;
  background: rgba(255, 130, 5, 0.12);
  box-shadow: 0 0 12px rgba(255, 130, 5, 0.15);
}

.os-flow-caption {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 14px;
  padding: 9px 14px;
  border-left: 2px solid var(--dim);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
  min-height: 2.2em;
}
.os-flow-caption--visible {
  opacity: 1;
  transform: translateY(0);
  border-left-color: #ff8205;
}
.os-flow-caption::before {
  content: '> ';
  color: #ff8205;
}

.os-flow {
  display: flex;
  align-items: stretch;
  min-width: min-content;
}

.os-fn {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border);
  border-top: 2px solid;
  border-radius: var(--radius-sm);
  padding: 12px 14px 14px;
  background: var(--surface);
  gap: 3px;
}

/* Nodes: dim by default, slow soft fade to accent blue when JS adds .is-active */
.os-fn {
  border-top-color: var(--dim);
  transition: border-top-color 1.1s ease, background 1.1s ease;
}
.os-fn.is-active {
  border-top-color: var(--green);
  background: rgba(104, 153, 190, 0.09);
}
.os-fn.is-active.is-current {
  border-top-color: #ff8205;
  background: rgba(255, 130, 5, 0.09);
}
.os-fn.is-active.is-current .os-fn-type {
  color: #ff8205;
}

.os-fn-type {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  line-height: 1;
  color: var(--muted);
  transition: color 1.4s ease;
}
.os-fn.is-active .os-fn-type { color: var(--green); }

.os-fn-name {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--white);
  line-height: 1.35;
  margin-top: 4px;
}

.os-fn-tool {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-top: 4px;
}

.os-fa {
  display: flex;
  align-items: center;
  padding: 0 4px;
  font-size: 0;
  user-select: none;
  flex-shrink: 0;
  width: 28px;
  gap: 2px;
}
.os-fa::before {
  content: '';
  flex: 1;
  border-top: 1px solid var(--dim);
  transition: border-color 1.4s ease;
}
.os-fa::after {
  content: '›';
  font-size: 12px;
  color: var(--dim);
  line-height: 1;
  transition: color 1.4s ease;
}
.os-fa.is-active::before { border-color: var(--green); }
.os-fa.is-active::after  { color: var(--green); }

/* ---- Hierarchical Flow Graph ---- */
.os-flow-graph {
  position: relative;
  isolation: isolate;
  margin: 28px 0 14px;
  min-width: min-content;
}
.os-fg-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: -1;
}
/* Horizontal 9-col × 3-row hierarchical grid (col 5 = empty routing channel) */
.os-fg-h {
  display: grid;
  grid-template-columns: repeat(4, minmax(80px, 1fr)) 28px repeat(4, minmax(80px, 1fr));
  grid-template-rows: auto auto auto;
  gap: 16px 6px;
  align-items: stretch;
}
/* 11-col variant for flow-01 (col 6 = empty routing channel) */
.os-fg-h--xl {
  grid-template-columns: repeat(5, minmax(80px, 1fr)) 28px repeat(5, minmax(80px, 1fr));
}
.os-fg-h .os-fn { position: relative; z-index: 1; }
/* Smaller card variant */
.os-fn--sm {
  padding: 8px 10px 10px;
}
.os-fn--sm .os-fn-type {
  font-size: 8px;
  letter-spacing: 0.14em;
}
.os-fn--sm .os-fn-name {
  font-size: 11px;
  margin-top: 3px;
}
.os-fn--sm .os-fn-tool {
  font-size: 9px;
  margin-top: 3px;
}
/* AI agent node variant */
.os-fn--agent {
  border-top-color: rgba(56, 189, 248, 0.35);
}
.os-fn--agent .os-fn-type {
  color: rgba(56, 189, 248, 0.6);
}
.os-fn--agent.is-active {
  border-top-color: #38bdf8;
  background: rgba(56, 189, 248, 0.07);
}
.os-fn--agent.is-active .os-fn-type {
  color: #38bdf8;
}
.os-fn--agent.is-active.is-current {
  border-top-color: #ff8205;
  background: rgba(255, 130, 5, 0.09);
}
.os-fg-connector {
  fill: none;
  stroke-width: 1;
  transition: stroke 1.1s ease;
}

/* Card footer */
.os-dc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.os-dc-footer--stack {
  align-items: flex-start;
}
.os-footer-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.os-footer-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.os-footer-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--muted);
  white-space: nowrap;
  min-width: 80px;
}
.os-stack {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.os-st {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 3px 9px;
  border: 1px solid;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.os-st--n8n, .os-st--clay, .os-st--claude, .os-st--hubspot, .os-st--slack,
.os-st--perplexity, .os-st--notion, .os-st--zapier, .os-st--buffer,
.os-st--linkedin, .os-st--apollo, .os-st--phantombuster,
.os-st--marketing-mary, .os-st--sales-navigator,
.os-st--figma, .os-st--jira, .os-st--make, .os-st--teams,
.os-st--github, .os-st--hostinger, .os-st--agentops, .os-st--excel,
.os-st--framer, .os-st--tally, .os-st--gemini-nano, .os-st--loops, .os-st--mixpanel,
.os-st--customer-io, .os-st--instantly, .os-st--canva, .os-st--looker,
.os-st--segment, .os-st--stripe, .os-st--intercom, .os-st--convertkit,
.os-st--taplio, .os-st--ga4, .os-st--amplitude, .os-st--calendly, .os-st--agent {
  color: var(--muted);
  border-color: var(--dim);
  background: none;
}

.os-st--active {
  color: #ff8205 !important;
  border-color: rgba(255, 130, 5, 0.5) !important;
  background: rgba(255, 130, 5, 0.08) !important;
}

.os-st--agent-active {
  color: #38bdf8 !important;
  border-color: rgba(56, 189, 248, 0.7) !important;
  background: rgba(56, 189, 248, 0.12) !important;
}

.os-gh-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--white);
  background: none;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 8px 16px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  white-space: nowrap;
  position: relative;
  cursor: default;
}
.os-gh-btn:hover {
  border-color: var(--border);
  color: var(--text-muted);
  background: none;
}
.os-gh-btn::after {
  content: '// coming soon';
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #ff8205;
  background: var(--surface2);
  border: 1px solid rgba(255, 130, 5, 0.25);
  border-radius: 0;
  padding: 4px 9px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.os-gh-btn:hover::after {
  opacity: 1;
}

/* Expand toggle button */
.os-expand-btn {
  display: flex;
  width: fit-content;
  margin-left: auto;
  align-items: center;
  gap: 8px;
  background: rgba(255,32,144,0.08);
  border: 1px solid rgba(255,32,144,0.40);
  border-radius: 0;
  padding: 10px 20px;
  cursor: pointer;
  color: #ff2090;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
}
.os-expand-btn:hover {
  background: rgba(255,32,144,0.16);
  border-color: #ff2090;
  box-shadow: 0 0 18px rgba(204,0,255,0.3);
}
.os-expand-btn.is-open {
  background: rgba(204,0,255,0.12);
  border-color: #cc00ff;
  color: #cc00ff;
  box-shadow: 0 0 18px rgba(204,0,255,0.22);
}

.os-expand-icon {
  font-size: 9px;
  line-height: 1;
  transition: transform 0.3s ease;
  display: inline-block;
}
.os-expand-btn.is-open .os-expand-icon { transform: rotate(180deg); }

/* Expandable case study content */
.os-dc-expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.os-dc-expand.is-open {
  max-height: 3000px;
  padding-top: 32px;
}

.os-expand-sep {
  border-top: 1px solid var(--border);
  margin: 0 0 4px;
}

.os-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 24px 0 28px;
}

.os-case-block {}

.os-case-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  color: var(--green);
  letter-spacing: 0.18em;
  display: block;
  margin-bottom: 12px;
}

.os-case-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* More use cases button */
.os-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}
.os-more-wrap[hidden] { display: none; }

.os-more-btn {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 13px 36px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color 0.15s, border-color 0.15s;
}
.os-more-btn:hover {
  color: var(--green);
  border-color: var(--green);
}

.os-more-icon {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  transition: transform 0.3s;
}
.os-more-btn.is-open .os-more-icon { transform: rotate(180deg); }

/* ===== CAROUSEL ===== */

.os-carousel-wrap {
  position: relative;
  padding: 0;
}

.os-carousel-track-outer {
  overflow: hidden;
  padding-top: 8px;
  margin-top: -8px;
}

.os-carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.os-carousel-item {
  min-width: 100%;
  padding: 0 12px 12px 2px;
  display: flex;
  flex-direction: column;
}

.os-posts-row {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.os-post-card {
  background: rgba(12,0,30,1);
  border: 1.5px solid rgba(104,153,190,0.75);
  border-radius: var(--radius);
  padding: 32px 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 6px 6px 0 rgba(50,80,130,0.55);
  transition: transform 0.18s, box-shadow 0.18s, opacity 0.2s;
  overflow: hidden;
}

.os-post-cover {
  margin: -32px -28px 20px;
  height: 180px;
  overflow: hidden;
  position: relative;
}

.os-post-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,80,160,0.22);
  pointer-events: none;
}

.os-post-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform 0.4s ease;
}

.os-post-card:hover .os-post-cover img {
  transform: scale(1.04);
}
.os-section--alt .os-post-card { background: var(--surface2); }

.os-post-card[data-post] {
  cursor: pointer;
}
.os-post-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 9px 9px 0 rgba(50,80,130,0.55);
}

.os-post-card--soon {
  opacity: 0.2;
  pointer-events: none;
  cursor: default;
}

/* Dim siblings when any card is hovered */
.os-posts-row:hover .os-post-card:not(:hover):not(.os-post-card--soon) {
  opacity: 0.35;
}
.os-posts-row:hover .os-post-card:hover {
  opacity: 1;
}

.os-post-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.os-post-stage {
  font-size: 10px;
  color: var(--green);
  letter-spacing: 0.22em;
}

.os-post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
}

.os-post-date {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: #ff8205;
  letter-spacing: 0.08em;
}

.os-post-tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: #ff8205;
  letter-spacing: 0.08em;
  opacity: 0.75;
}

.os-post-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 18px;
  min-height: 3.24rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.os-post-excerpt {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 560px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.os-post-read {
  font-size: 12px;
  color: var(--green);
  text-decoration: none;
  letter-spacing: 0.14em;
  transition: text-shadow 0.2s;
  margin-top: auto;
}
.os-post-read:hover {
  text-shadow: 0 0 10px rgba(104, 153, 190, 0.8);
}

/* Carousel controls */
.os-carousel-controls {
  position: absolute;
  top: 0;
  left: -44px;
  right: -44px;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  margin-top: 0;
}

.os-carousel-counter {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.15em;
}

.os-carousel-btns {
  display: contents;
}

.os-carousel-btn {
  pointer-events: auto;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff8205;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.15s;
}
.os-carousel-btn svg {
  filter: drop-shadow(0 0 5px rgba(255, 130, 5, 0.8));
}
#carousel-prev svg {
  transform: scaleX(-1);
}
.os-carousel-btn:hover {
  color: #ffaa40;
}
.os-carousel-btn:hover svg {
  filter: drop-shadow(0 0 10px rgba(255, 130, 5, 1));
}
.os-carousel-btn:active {
  transform: scale(0.94);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.6), 0 0 6px rgba(255, 130, 5, 0.2);
}
.os-carousel-btn:disabled {
  color: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.07);
  box-shadow: none;
  text-shadow: none;
  cursor: default;
  background: none;
}

.os-carousel-dots { display: none; }

.os-slide-counter {
  position: absolute;
  bottom: -30px;
  right: 2px;
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: #ff8800;
  pointer-events: none;
  z-index: 5;
  letter-spacing: 0.05em;
}

/* ===== NEWSLETTER ===== */


.os-nl-section {
  position: relative;
  padding: 100px 52px;
  text-align: center;
  overflow: hidden;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.os-nl-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(104,153,190,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(104,153,190,0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.os-nl-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(255,130,5,0.09) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.os-nl-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.os-nl-eyebrow {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  margin-bottom: 28px;
  display: block;
}

.os-nl-cursor {
  display: none;
}
.os-nl-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  line-height: 1.7;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  background: linear-gradient(180deg, #ffd800 0%, #ffaf00 25%, #ff8205 58%, #e10500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.os-nl-desc {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 480px;
  text-align: center;
}

.os-nl-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.os-nl-input-wrap {
  display: flex;
  width: 100%;
  max-width: 500px;
  border: 1px solid rgba(104,153,190,0.3);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(17,24,40,0.9);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.os-nl-input-wrap:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 20px rgba(104,153,190,0.15);
}

.os-nl-prompt {
  font-family: 'Share Tech Mono', monospace;
  font-size: 14px;
  color: #ff8205;
  padding: 0 6px 0 16px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  -webkit-text-fill-color: #ff8205;
}

.os-nl-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 15px 12px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  color: var(--white);
  letter-spacing: 0.04em;
}
.os-nl-input::placeholder { color: var(--text-muted); }

.os-nl-btn {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #080808;
  background: linear-gradient(135deg, #ffaf00, #ff8205);
  border: none;
  padding: 15px 22px;
  cursor: pointer;
  transition: opacity 0.2s, filter 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.os-nl-btn:hover { opacity: 0.88; filter: brightness(1.1); }

.os-nl-note {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.12em;
}

.os-nl-success {
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  color: #ffaf00;
  letter-spacing: 0.08em;
  min-height: 1.5em;
}

@media (max-width: 640px) {
  .os-nl-section { padding: 72px 24px; }
  .os-nl-title { font-size: 1.1rem; }
  .os-nl-input-wrap { flex-direction: column; border-radius: var(--radius-sm); }
  .os-nl-btn { padding: 14px; width: 100%; }
  .os-nl-prompt { display: none; }
}

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

.os-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 36px 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.os-footer-brand {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffd800 0%, #ff8205 55%, #e10500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.os-footer-brand span { /* inherits gradient */ }

.os-footer-copy {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.os-footer-disclaimer {
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0.35;
  letter-spacing: 0.02em;
  font-style: italic;
  max-width: 520px;
}

.os-footer-link {
  font-size: 12px;
  color: var(--green);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.os-footer-link:hover { color: var(--accent2); }

/* ===== STRATEGIC ANALYSIS — CASE CARDS ===== */

/* ===== DISPLAY TITLE (mixed font) ===== */
.os-display-title {
  display: block;
  text-align: center;
  line-height: 1;
  margin-bottom: 40px;
}
.os-dt-line1 {
  display: block;
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  line-height: 1.7;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffd800 0%, #ffaf00 25%, #ff8205 58%, #e10500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.os-dt-line2 {
  display: block;
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1.4rem, 3.5vw, 2.4rem);
  line-height: 1.7;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #ffd800 0%, #ffaf00 25%, #ff8205 58%, #e10500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.os-dt-line1 .os-cursor,
.os-dt-line2 .os-cursor {
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.os-cs-sub {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--muted);
  margin-top: 0;
  margin-bottom: 52px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.os-cs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* ── Retro panel cards ── */
.os-cs-card {
  --card-accent: #cc00ff;
  --card-bg:     #0e0025;
  --card-shadow: rgba(100,0,180,0.50);
  position: relative;
  background: var(--card-bg);
  border: 1.5px solid var(--card-accent);
  border-radius: 0;
  padding: 16px 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  cursor: pointer;
  box-shadow: 6px 6px 0 var(--card-shadow);
  transition: transform 0.18s, box-shadow 0.18s;
}
.os-cs-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 9px 9px 0 var(--card-shadow);
}

/* Per-card color themes */
.os-cs-card:nth-child(1)  { --card-accent:#cc00ff; --card-bg:#0e0025; --card-shadow:rgba(100,0,180,0.50);  }
.os-cs-card:nth-child(2)  { --card-accent:#ff2090; --card-bg:#1a0010; --card-shadow:rgba(160,0,80,0.50);   }
.os-cs-card:nth-child(3)  { --card-accent:#00d4ff; --card-bg:#001420; --card-shadow:rgba(0,120,170,0.50);  }
.os-cs-card:nth-child(4)  { --card-accent:#00e676; --card-bg:#001a08; --card-shadow:rgba(0,140,60,0.50);   }
.os-cs-card:nth-child(5)  { --card-accent:#cc00ff; --card-bg:#0e0025; --card-shadow:rgba(100,0,180,0.50);  }
.os-cs-card:nth-child(6)  { --card-accent:#ff2090; --card-bg:#1a0010; --card-shadow:rgba(160,0,80,0.50);   }
.os-cs-card:nth-child(7)  { --card-accent:#00d4ff; --card-bg:#001420; --card-shadow:rgba(0,120,170,0.50);  }
.os-cs-card:nth-child(8)  { --card-accent:#00e676; --card-bg:#001a08; --card-shadow:rgba(0,140,60,0.50);   }
.os-cs-card:nth-child(9)  { --card-accent:#cc00ff; --card-bg:#0e0025; --card-shadow:rgba(100,0,180,0.50);  }
.os-cs-card:nth-child(10) { --card-accent:#ff2090; --card-bg:#1a0010; --card-shadow:rgba(160,0,80,0.50);   }

.os-cs-tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--card-accent);
  opacity: 0.75;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.os-cs-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 12px;
  width: 100%;
}
.os-cs-logo {
  height: 38px;
  width: auto;
  min-width: 38px;
  max-width: 88px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.os-cs-logo img {
  max-height: 38px;
  width: auto;
  max-width: 88px;
  object-fit: contain;
  filter: brightness(1.1);
}
.os-cs-company {
  font-family: 'Share Tech Mono', monospace;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.95);
  text-align: left;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0;
}

.os-cs-divider {
  width: 100%;
  height: 1px;
  background: var(--card-accent);
  opacity: 0.22;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.os-cs-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.48);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 14px;
  width: 100%;
}

.os-cs-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 18px;
}

.os-cs-metric-val {
  font-family: 'Share Tech Mono', monospace;
  font-size: 1rem;
  color: var(--card-accent);
  display: block;
  margin-bottom: 4px;
}

.os-cs-metric-lbl {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  line-height: 1.4;
}

.os-cs-cta {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--card-accent);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0.70;
  transition: opacity 0.18s;
  margin-top: auto;
  align-self: flex-start;
}
.os-cs-cta:hover { opacity: 1; }

.os-cs-queued { display: none; }

.os-cs-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.os-cs-toggle {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 13px 36px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color 0.15s, border-color 0.15s;
}
.os-cs-toggle:hover { color: var(--green); border-color: var(--green); }

.os-cs-toggle-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.3s;
  stroke: currentColor;
}
.os-cs-toggle.is-open .os-cs-toggle-icon { transform: rotate(180deg); }

/* ===== CASE STUDY MODAL (os-cm-*) ===== */

.os-cm-window {
  max-width: 860px;
  background: rgba(12,0,30,0.96);
}

.os-cm-body {
  overflow-y: auto;
  padding: 52px 48px 48px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.os-cm-body::-webkit-scrollbar { width: 5px; }
.os-cm-body::-webkit-scrollbar-thumb { background: var(--border); }

.os-cm-case-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.os-cm-logo {
  height: 44px;
  max-width: 160px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.os-cm-logo img {
  height: 100%;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

.os-cm-company {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
  margin-bottom: 5px;
}

.os-cm-card-tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: rgba(104,153,190,0.65);
  letter-spacing: 0.1em;
}

.os-cm-title {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.os-cm-prose p {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.os-cm-prose p:last-child { margin-bottom: 0; }

.os-cm-prose blockquote {
  border-left: 3px solid var(--green);
  margin: 32px 0;
  padding: 14px 24px;
  background: rgba(104, 153, 190, 0.06);
  border-radius: 0;
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.72;
  font-weight: 500;
}

.os-cm-bridge { margin-top: 36px; }
.os-cm-bridge blockquote {
  border-left: 3px solid var(--green);
  margin: 0;
  padding: 14px 24px;
  background: rgba(104, 153, 190, 0.06);
  border-radius: 0;
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.72;
  font-weight: 500;
}

.os-cm-use-cases {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.os-cm-uc-intro {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--green);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.os-cm-uc-p {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--text-muted);
  margin: 0 0 18px 0;
  padding: 0;
}
.os-cm-uc-p:last-of-type { margin-bottom: 0; }

.os-cm-closing-wrap {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.os-cm-closing-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--green);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.os-cm-closing-q {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--text-muted);
  margin: 0;
}

.os-cm-disclaimer {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
  line-height: 1.7;
  padding-top: 24px;
  border-top: 1px solid var(--dim);
  margin-top: 32px;
}

/* ===== BLOG MODAL ===== */

.os-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.os-modal-overlay.active { display: flex; }

body.os-modal-open { overflow: hidden; }

.os-modal-window {
  position: relative;
  background: rgba(12,0,30,0.97);
  border: 1px solid rgba(104,153,190,0.18);
  border-top: 3px solid rgba(104,153,190,0.55);
  border-radius: var(--radius);
  width: 100%;
  max-width: 760px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  animation: os-modal-enter 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow);
}

.os-modal-window.os-fw-window {
  border-color: rgba(104,153,190,0.18);
  border-top: 3px solid rgba(104,153,190,0.55);
  box-shadow: var(--shadow);
}

@keyframes os-modal-enter {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

.os-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}
.os-modal-close:hover { border-color: var(--accent2); color: var(--accent2); }

.os-modal-body {
  overflow-y: auto;
  padding: 52px 48px 48px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.os-modal-body::-webkit-scrollbar { width: 5px; }
.os-modal-body::-webkit-scrollbar-track { background: transparent; }
.os-modal-body::-webkit-scrollbar-thumb { background: var(--border); }

.os-modal-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.os-modal-date {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: #ff8205;
  letter-spacing: 0.08em;
}
.os-modal-tags {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: #ff8205;
  letter-spacing: 0.08em;
  opacity: 0.75;
}

.os-modal-title {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.os-modal-content p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.os-modal-content p:last-child { margin-bottom: 0; }
.os-modal-content p.os-cm-disclaimer {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
  line-height: 1.7;
  padding-top: 24px;
  border-top: 1px solid var(--dim);
  margin-top: 32px;
}
.os-modal-content strong { color: var(--white); font-weight: 600; }
.os-modal-content em { color: var(--accent2); font-style: italic; }
.os-modal-content h3 {
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  font-weight: normal;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-top: 40px;
  margin-bottom: 12px;
}
.os-modal-content h3::before { content: '// '; }
.os-modal-content blockquote {
  border-left: 3px solid var(--green);
  margin: 32px 0;
  padding: 14px 24px;
  background: rgba(104, 153, 190, 0.06);
  border-radius: 0;
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.72;
  font-weight: 500;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  .os-nav        { padding: 0 24px; }
  .os-nav-links  { gap: 20px; }
  .os-status     { display: none; }
  .os-hero    { padding: 100px 24px 64px; }
  .os-section { padding: 64px 24px; }
  .os-post-card { padding: 28px 24px; }
  .os-footer  { padding: 28px 24px; flex-direction: column; text-align: center; }
  .os-posts-row { grid-template-columns: 1fr; }
  .os-modal-body { padding: 52px 24px 32px; }
  .os-dc { padding: 28px 20px 24px; }
  .os-dc-title { font-size: 17px; }
  .os-dc-footer { flex-direction: column; align-items: flex-start; }
  .os-case-grid { grid-template-columns: 1fr; gap: 20px; }
  .os-dc-expand.is-open { max-height: 3000px; }
  .os-cs-grid { grid-template-columns: 1fr; }
  .os-cs-more.is-open { max-height: 8000px; }
  .os-cm-body { padding: 52px 24px 32px; }
}

/* ===== FRAMEWORKS SECTION ===== */

.os-fw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.os-fw-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.os-fw-card:hover {
  border-color: var(--green);
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px var(--accent-glow);
}
.os-fw-card:hover .os-fw-header {
  background: rgba(104,153,190,0.13);
}

/* ===== FRAMEWORK CARD — logo band (replaces header band) ===== */
.os-fw-logo-band {
  padding: 20px 24px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0,230,118,0.10);
}
.os-fw-source-logo {
  height: 14px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.4);
}
.os-fw-source-text {
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.65);
}
.os-fw-seq {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(0,230,118,0.55);
  text-transform: uppercase;
}
#frameworks .os-fw-card:hover .os-fw-logo-band {
  border-bottom-color: rgba(0,230,118,0.20);
}

.os-fw-card--soon {
  opacity: 0.2;
  cursor: default;
  pointer-events: none;
}

.os-fw-header {
  background: rgba(104,153,190,0.08);
  border-bottom: 1px solid rgba(104,153,190,0.14);
  padding: 20px 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: background 0.3s;
}

.os-fw-module {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--green);
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  flex-shrink: 0;
}

.os-fw-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}

.os-fw-body {
  padding: 22px 24px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.os-fw-title {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
}

.os-fw-question {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-style: italic;
  color: var(--muted);
  line-height: 1.6;
}

.os-fw-desc {
  display: none;
}

.os-fw-cta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.13em;
  color: var(--green);
  background: transparent;
  border: none;
  border-top: 1px solid rgba(104,153,190,0.14);
  border-radius: 0;
  padding: 14px 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  width: 100%;
  text-align: center;
  margin-top: auto;
}
.os-fw-cta:hover {
  background: rgba(104,153,190,0.1);
  color: var(--white);
}

.os-fw-soon {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ff8205;
  background: transparent;
  border: none;
  border-top: 1px solid rgba(255,130,5,0.18);
  border-radius: 0;
  padding: 14px 0;
  width: 100%;
  text-align: center;
  margin-top: auto;
  text-shadow: 0 0 6px rgba(0,230,118,0.5);
}

/* Framework modal */
.os-fw-window {
  max-width: 780px;
}

.os-fw-modal-body {
  padding: 48px 52px 52px;
}

.os-fw-modal-body h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.25;
}

.os-fw-modal-body .os-fw-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}

.os-fw-modal-body .os-fw-meta-module {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent2);
  padding: 0;
}

.os-fw-modal-body .os-fw-meta-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

.os-fw-modal-body .os-fw-core-q {
  font-size: 15px;
  font-style: italic;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  border-left: 2px solid rgba(255,255,255,0.2);
  padding-left: 16px;
  margin-bottom: 36px;
}

.os-fw-modal-body h3 {
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  font-weight: normal;
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 36px 0 14px;
}
.os-fw-modal-body h3::before { content: '// '; }

.os-fw-modal-body h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin: 24px 0 10px;
}

.os-fw-modal-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 14px;
}

.os-fw-modal-body strong {
  color: var(--white);
  font-weight: 600;
}

.os-fw-modal-body blockquote {
  border-left: 3px solid var(--green);
  padding: 14px 24px;
  margin: 32px 0;
  background: rgba(104,153,190,0.06);
  border-radius: 0;
}
.os-fw-modal-body blockquote p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--white);
  margin: 0 0 6px;
  font-size: 14px;
}
.os-fw-modal-body blockquote cite {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  font-style: normal;
  letter-spacing: 0.05em;
}

.os-fw-modal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  font-size: 13px;
}
.os-fw-modal-body th {
  text-align: left;
  padding: 10px 14px;
  background: var(--surface2);
  color: var(--accent2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.os-fw-modal-body td {
  padding: 10px 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  line-height: 1.55;
  vertical-align: top;
}
.os-fw-modal-body tr:last-child td { border-bottom: none; }
.os-fw-modal-body td strong { color: var(--white); }

.os-fw-modal-body pre {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--accent2);
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 20px 22px;
  overflow-x: auto;
  margin: 20px 0 28px;
  white-space: pre;
}

.os-fw-modal-body ul {
  padding-left: 20px;
  margin-bottom: 16px;
}
.os-fw-modal-body ul li {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 6px;
}
.os-fw-modal-body ul li strong { color: var(--white); }

.os-fw-modal-body .os-fw-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}

.os-fw-modal-body .os-fw-source {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  opacity: 0.6;
  margin-top: 40px;
}

@media (max-width: 900px) {
  .os-fw-grid { grid-template-columns: 1fr; }
  .os-fw-modal-body { padding: 32px 24px 40px; }
}

/* ===== ICON DESKTOP FRAMEWORK SECTION ===== */

.os-icon-filter-bar {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 28px 0 40px;
  flex-wrap: wrap;
}
#frameworks .os-icon-filter-bar .os-fw-filter-btn {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.35);
  padding: 5px 14px;
  cursor: pointer;
  border-radius: 0;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}
#frameworks .os-icon-filter-bar .os-fw-filter-btn:hover {
  color: #00e676;
  border-color: rgba(0,230,118,0.4);
}
#frameworks .os-icon-filter-bar .os-fw-filter-btn.is-active {
  color: #00e676;
  border-color: rgba(0,230,118,0.5);
  background: rgba(0,230,118,0.06);
}

.os-icon-desktop {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px 24px;
  padding: 8px 0 48px;
}

.os-desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 170px;
  padding: 20px 12px 18px;
  border-radius: 0;
  border: none;
  background: none;
  cursor: pointer;
  transition: background 0.15s;
  text-align: center;
}
.os-desktop-icon:not(.os-fw-card--soon):hover {
  background: rgba(0,230,118,0.08);
}
.os-fw-card--soon.os-desktop-icon {
  cursor: default;
  opacity: 0.38;
  pointer-events: none;
}

.os-di-frame {
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.os-di-svg {
  width: 120px;
  height: 120px;
  filter: drop-shadow(2px 3px 0 rgba(0,0,0,0.7));
  transition: filter 0.2s, transform 0.35s ease;
}
.os-di-svg--sm {
  width: 88px;
  height: 88px;
}
.os-di-svg--xs {
  width: 64px;
  height: 64px;
}
.os-di-svg--md {
  width: 104px;
  height: 104px;
}
.os-desktop-icon:not(.os-fw-card--soon):hover .os-di-svg {
  filter: drop-shadow(2px 3px 0 rgba(0,230,118,0.3)) brightness(1.15);
  transform: translateY(-2px);
}

/* Alien (MIT Series 1): bounce on hover */
@keyframes di-bounce {
  0%, 100% { transform: translateY(0); }
  45%       { transform: translateY(-14px); }
  65%       { transform: translateY(-10px); }
}
[data-fw="1"]:hover .os-di-svg {
  animation: di-bounce 0.65s ease-in-out infinite;
  transform: none;
}

/* 2pcs (Mktg & Sales, fw=4): data packet traveling left → right through the pipe */
@keyframes di-packet-travel {
  0%   { transform: translateX(0px);  opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateX(96px); opacity: 0; }
}
[data-fw="4"] .os-di-frame::after {
  content: '';
  position: absolute;
  top: 53%;
  left: 22px;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  background: radial-gradient(circle,
    rgba(255,255,255,1)   0%,
    rgba(80,200,255,0.85) 35%,
    transparent           70%
  );
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  filter: blur(0.8px);
}
[data-fw="4"]:hover .os-di-frame::after {
  animation: di-packet-travel 1.1s ease-in-out infinite;
}

/* Rocket (MIT Series 3): engine vibrate + exhaust plume */
@keyframes di-rocket-vibrate {
  0%   { transform: translate(0,      0); }
  15%  { transform: translate(-1.5px, 0.5px); }
  30%  { transform: translate(1.5px, -0.5px); }
  45%  { transform: translate(-1px,   0.5px); }
  60%  { transform: translate(1px,   -1px); }
  75%  { transform: translate(-1.5px, 0); }
  90%  { transform: translate(1px,    0.5px); }
}
@keyframes di-exhaust {
  0%   { height: 16px; width: 14px; opacity: 0.9;  filter: blur(2px); }
  30%  { height: 28px; width: 18px; opacity: 1;    filter: blur(1px); }
  60%  { height: 22px; width: 16px; opacity: 0.85; filter: blur(2.5px); }
  100% { height: 18px; width: 12px; opacity: 0.7;  filter: blur(3px); }
}
[data-fw="3"]:hover .os-di-svg {
  animation: di-rocket-vibrate 0.09s linear infinite;
  transition: filter 0.2s;
}
[data-fw="3"] .os-di-frame::after {
  content: '';
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  opacity: 0;
  background: radial-gradient(ellipse at top,
    rgba(255,255,180,1)   0%,
    rgba(255,160,0,0.9)  25%,
    rgba(255,60,0,0.65)  55%,
    transparent          100%
  );
  border-radius: 40% 40% 60% 60%;
  pointer-events: none;
}
[data-fw="3"]:hover .os-di-frame::after {
  animation: di-exhaust 0.18s ease-in-out infinite;
}

/* canva — glitch effect on hover */
@keyframes di-glitch {
  0%, 5%, 100% { transform: translate(0, 0); filter: drop-shadow(2px 3px 0 rgba(0,0,0,0.7)); }
  1%  { transform: translate(-5px, 0); filter: drop-shadow(2px 3px 0 rgba(0,0,0,0.7)) hue-rotate(90deg) saturate(4) brightness(1.3); }
  2%  { transform: translate(5px, 1px); filter: drop-shadow(2px 3px 0 rgba(0,0,0,0.7)) hue-rotate(210deg) saturate(2); }
  3%  { transform: translate(-3px, -1px); filter: drop-shadow(2px 3px 0 rgba(0,0,0,0.7)) hue-rotate(300deg) saturate(3); }
  4%  { transform: translate(0, 0); filter: drop-shadow(2px 3px 0 rgba(0,0,0,0.7)); }
  50%, 56% { transform: translate(0, 0); filter: drop-shadow(2px 3px 0 rgba(0,0,0,0.7)); }
  51% { transform: translate(4px, 0); filter: drop-shadow(2px 3px 0 rgba(0,0,0,0.7)) hue-rotate(180deg) saturate(3) brightness(1.2); }
  52% { transform: translate(-4px, -1px); filter: drop-shadow(2px 3px 0 rgba(0,0,0,0.7)) hue-rotate(90deg) saturate(2); }
  53% { transform: translate(2px, 1px); filter: drop-shadow(2px 3px 0 rgba(0,0,0,0.7)) hue-rotate(270deg) saturate(4); }
  54% { transform: translate(-2px, 0); filter: drop-shadow(2px 3px 0 rgba(0,0,0,0.7)) hue-rotate(30deg) saturate(2); }
  55% { transform: translate(0, 0); filter: drop-shadow(2px 3px 0 rgba(0,0,0,0.7)); }
}
@keyframes di-glitch-block {
  0%, 4%, 50%, 55%, 100% { opacity: 0; }
  1%  { opacity: 0.75; clip-path: inset(15% 0 72% 0); transform: translateX(-7px); background: rgba(255, 0, 80, 0.55); }
  2%  { opacity: 0.75; clip-path: inset(58% 0 25% 0); transform: translateX(7px);  background: rgba(0, 220, 255, 0.55); }
  3%  { opacity: 0; }
  51% { opacity: 0.75; clip-path: inset(35% 0 50% 0); transform: translateX(5px);  background: rgba(0, 255, 120, 0.5); }
  52% { opacity: 0.75; clip-path: inset(68% 0 14% 0); transform: translateX(-5px); background: rgba(255, 60, 0, 0.55); }
  53% { opacity: 0.75; clip-path: inset(80% 0 5%  0); transform: translateX(6px);  background: rgba(100, 0, 255, 0.5); }
  54% { opacity: 0; }
}
[data-fw="5"] .os-di-frame::after {
  content: '';
  position: absolute;
  top: 38px;
  left: 38px;
  width: 64px;
  height: 64px;
  pointer-events: none;
  opacity: 0;
}
.os-desktop-icon[data-fw="5"]:hover .os-di-svg {
  filter: drop-shadow(2px 3px 0 rgba(0,0,0,0.7));
  transform: none;
  animation: di-glitch 2.5s step-end infinite;
}
[data-fw="5"]:hover .os-di-frame::after {
  animation: di-glitch-block 2.5s step-end infinite;
}

.os-di-name {
  font-family: 'Share Tech Mono', monospace;
  font-size: 15px;
  color: rgba(255,255,255,0.92);
  line-height: 1.45;
  transition: color 0.15s;
}
.os-desktop-icon:not(.os-fw-card--soon):hover .os-di-name {
  color: #00e676;
}
.os-di-meta {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: rgba(0,230,118,0.7);
  letter-spacing: 0.06em;
}
.os-di-desc {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  line-height: 1.55;
  margin-top: 2px;
}

@media (max-width: 700px) {
  .os-icon-desktop { gap: 16px 8px; }
  .os-desktop-icon { width: 130px; }
  .os-di-frame { width: 100px; height: 100px; }
  .os-di-svg { width: 88px; height: 88px; }
}

/* ===== TERMINAL FRAMEWORK SECTION ===== */

.os-terminal-wrap {
  background: #080b0e;
  border: 1px solid rgba(0,230,118,0.14);
  border-radius: 0;
  overflow: hidden;
  margin-top: 32px;
  font-family: 'JetBrains Mono', monospace;
}

.os-terminal-chrome {
  background: #111518;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.os-td { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.os-td-r { background: #ff5f57; }
.os-td-y { background: #febc2e; }
.os-td-g { background: #28c840; }
.os-terminal-wintitle {
  margin-left: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.04em;
}

.os-terminal-cmd-line {
  padding: 20px 28px 4px;
  font-size: 13px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.os-tc-path { color: rgba(0,230,118,0.55); }
.os-tc-arrow { color: #00e676; margin: 0 4px; }
.os-tc-command { color: rgba(255,255,255,0.65); }

.os-terminal-filter-bar {
  padding: 2px 28px 16px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  border-bottom: none;
  margin-bottom: 0;
}
.os-tc-flag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}
#frameworks .os-fw-filter-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.3);
  padding: 2px 8px;
  cursor: pointer;
  border-radius: 0;
  transition: color 0.18s, background 0.18s;
  letter-spacing: 0.04em;
}
#frameworks .os-fw-filter-btn:hover { color: rgba(0,230,118,0.7); }
#frameworks .os-fw-filter-btn.is-active {
  color: #00e676;
  background: rgba(0,230,118,0.08);
}

.os-terminal-divider {
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 4px;
}

.os-terminal-output { padding: 8px 0 4px; }

.os-terminal-row {
  padding: 7px 28px;
  transition: background 0.18s;
  border: none;
  background: none;
  border-radius: 0;
  cursor: pointer;
}
.os-terminal-row:not(.os-fw-card--soon):hover {
  background: rgba(0,230,118,0.04);
}
.os-fw-card--soon.os-terminal-row {
  cursor: default;
  opacity: 0.45;
  pointer-events: none;
}

.os-tr-main {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
}
.os-tr-branch { color: rgba(0,230,118,0.3); min-width: 20px; flex-shrink: 0; }
.os-tr-num { color: rgba(0,230,118,0.65); font-weight: 700; font-size: 12px; min-width: 34px; flex-shrink: 0; }
.os-tr-source { color: rgba(255,255,255,0.42); font-size: 11px; letter-spacing: 0.08em; min-width: 110px; flex-shrink: 0; }
.os-tr-line { flex: 1; min-width: 16px; border-bottom: 1px dashed rgba(0,230,118,0.10); margin: 0 4px; align-self: center; }
.os-tr-name { color: #edf0f4; font-size: 13px; font-weight: 600; flex-shrink: 0; transition: color 0.18s; }
.os-terminal-row:not(.os-fw-card--soon):hover .os-tr-name { color: #00e676; }
.os-tr-cat { color: rgba(0,230,118,0.38); font-size: 10px; letter-spacing: 0.1em; flex-shrink: 0; min-width: 120px; text-align: right; }
.os-tr-action { color: #00e676; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; flex-shrink: 0; opacity: 0; transition: opacity 0.18s; min-width: 56px; text-align: right; }
.os-terminal-row:not(.os-fw-card--soon):hover .os-tr-action { opacity: 1; }
.os-tr-locked-tag { color: rgba(255,80,80,0.55); font-size: 10px; letter-spacing: 0.12em; flex-shrink: 0; min-width: 56px; text-align: right; }

.os-tr-sub { display: flex; align-items: flex-start; gap: 8px; padding: 2px 0 8px 20px; }
.os-tr-pipe { color: rgba(0,230,118,0.18); flex-shrink: 0; font-size: 13px; }
.os-tr-q { color: rgba(255,255,255,0.28); font-style: italic; font-size: 12px; line-height: 1.55; transition: color 0.18s; }
.os-terminal-row:not(.os-fw-card--soon):hover .os-tr-q { color: rgba(255,255,255,0.5); }

.os-terminal-status {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 10px 28px;
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 11px;
}
.os-ts-ok { color: rgba(0,230,118,0.5); }
.os-ts-sep { color: rgba(255,255,255,0.18); }
.os-ts-lock { color: rgba(255,80,80,0.42); }
.os-ts-cursor { margin-left: 8px; color: rgba(0,230,118,0.6); }

@media (max-width: 700px) {
  .os-tr-cat { display: none; }
  .os-tr-source { min-width: 80px; }
  .os-terminal-cmd-line, .os-terminal-filter-bar, .os-terminal-row, .os-terminal-status { padding-left: 16px; padding-right: 16px; }
}

/* ===== SCROLL REVEAL ===== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
