:root {
  /* Redline Tactix brand palette — Unified Full-Site Dark Architectural Theme */
  --ink: #1e2022;
  --ink-2: #232527;
  --ink-3: #2d2f32;
  --charcoal: #26282b;
  --charcoal-deep: #1b1d1f;
  --line: rgba(242, 239, 240, 0.13);
  --line-dark: #6a6a6a;
  --red: #7a1e33;
  --red-dark: #5c1425;
  --red-bright: #c04a63;
  --red-soft: rgba(122, 30, 51, 0.28);
  --accent-on-dark: #edaebd;
  --muted: #c9c3c5;
  --muted-light: #a0a0a0;
  --bg: #1e2022;
  --surface: rgba(42, 44, 48, 0.82);
  --surface-elevated: rgba(50, 52, 57, 0.88);
  --text: #f2eff0;
  --sub: #c9c3c5;
  --radius: 14px;
  --perspective: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 116px;
  background-color: var(--bg);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 50% 0%, #342429 0%, #222427 45%, #1a1c1e 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  position: relative;
}

/* Global Interactive Background Grid Canvas (Full Site) */
#bg-3d-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  transition: opacity 0.4s ease;
}

body.mode-flat #bg-3d-canvas {
  opacity: 0.22;
}

/* Scroll Progress HUD Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--red), var(--red-bright), var(--accent-on-dark));
  z-index: 100;
  box-shadow: 0 0 12px rgba(192, 74, 99, 0.7);
  transition: width 0.08s linear;
}

/* Staging Environment Indicator Ribbon */
.staging-ribbon {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(20, 21, 23, 0.92);
  backdrop-filter: blur(10px);
  color: #d8d3d5;
  border-bottom: 1px solid rgba(237, 174, 189, 0.18);
  padding: 6px 0;
  font-size: 0.72rem;
  height: 32px;
}

.staging-ribbon-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c04a63;
  box-shadow: 0 0 8px #c04a63;
  margin-right: 6px;
  vertical-align: middle;
  animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.55; }
}

.hud-btn {
  background: rgba(109, 24, 48, 0.35);
  border: 1px solid rgba(237, 174, 189, 0.35);
  color: #f2eff0;
  border-radius: 6px;
  padding: 3px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hud-btn:hover {
  background: var(--red);
  border-color: var(--accent-on-dark);
}

.hud-btn[aria-pressed="false"] {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  color: #a0a0a0;
}

h1, h2, h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  color: #fff;
}

a {
  color: inherit;
}

.mono {
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* NAV */
header {
  position: sticky;
  top: 32px;
  z-index: 50;
  background: rgba(34, 36, 39, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(242, 239, 240, 0.12);
  color: #f2eff0;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

header.scrolled {
  background: rgba(26, 28, 31, 0.92);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.48);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 1.14rem;
  letter-spacing: -0.01em;
  color: #fff;
  transform-style: preserve-3d;
  transition: transform 0.25s ease;
}

.brand:hover {
  transform: perspective(600px) rotateY(6deg) translateZ(4px);
}

.brand-mark {
  width: 46px;
  height: 46px;
  background: #000;
  border-radius: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(237, 174, 189, 0.22);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand span em {
  font-style: normal;
  color: var(--accent-on-dark);
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a:not(.btn) {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(242, 239, 240, 0.84);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--accent-on-dark);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-links a:not(.btn):hover {
  color: #fff;
}

.nav-links a:not(.btn):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* 3D Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 8px;
  border: 1px solid #962842;
  transition: background 0.2s, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease;
  cursor: pointer;
  position: relative;
  transform-style: preserve-3d;
  box-shadow: 0 6px 18px rgba(122, 30, 51, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn:hover {
  background: #8f223b;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 28px rgba(192, 74, 99, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn:active {
  transform: translateY(1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: #fff !important;
  border-color: rgba(242, 239, 240, 0.32);
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(237, 174, 189, 0.1);
  text-decoration: none;
  border-color: var(--accent-on-dark);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32);
}

.menu-btn {
  display: none;
  background: none;
  border: 1px solid rgba(242, 239, 240, 0.35);
  border-radius: 8px;
  padding: 9px 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  color: #f2eff0;
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(32, 34, 37, 0.98);
    backdrop-filter: blur(16px);
    padding: 20px 24px;
    border-bottom: 1px solid rgba(242, 239, 240, 0.12);
    gap: 16px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.55);
  }
  .nav-links.open {
    display: flex;
  }
  .menu-btn {
    display: block;
  }
}

/* ==========================================================================
   3D TILT & PERSPECTIVE SYSTEM
   ========================================================================== */
.tilt-card {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

body.mode-flat .tilt-card {
  transform: none !important;
}

.card-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    420px circle at var(--glare-x, 50%) var(--glare-y, 50%),
    rgba(237, 174, 189, 0.08),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 3;
}

.tilt-card:hover .card-glare {
  opacity: 1;
}

.card-3d-inner,
.proof-3d-depth,
.step-3d-inner {
  transform: translateZ(4px);
  transform-style: preserve-3d;
  position: relative;
  z-index: 2;
}

body.mode-flat .card-3d-inner,
body.mode-flat .proof-3d-depth,
body.mode-flat .step-3d-inner {
  transform: none;
}

/* ==========================================================================
   HERO & 3D ARCHITECTURAL DIAGRAM
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: transparent;
  color: #f2eff0;
  perspective: 1400px;
}

.hero-3d-grid,
.workshops-3d-grid {
  display: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 52px;
  padding-top: 76px;
  padding-bottom: 88px;
  align-items: center;
}

.hero-inner > * {
  min-width: 0;
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 52px;
    padding-bottom: 64px;
  }
  .layer {
    flex-wrap: wrap;
  }
  .layer .tag {
    white-space: normal;
  }
}

.hero .mono {
  color: var(--accent-on-dark);
}

.eyebrow-bracket {
  color: var(--red-bright);
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.1vw, 4.05rem);
  font-weight: 900;
  margin: 18px 0 22px;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.hero h1 .strike {
  position: relative;
  white-space: nowrap;
  display: inline-block;
}

.hero h1 .strike::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  top: 54%;
  height: 0.12em;
  background: linear-gradient(90deg, #ff5c7c, #c04a63);
  transform: rotate(-2deg) translateZ(12px);
  box-shadow: 0 0 14px rgba(192, 74, 99, 0.85);
  border-radius: 2px;
}

.engineer-highlight {
  background: linear-gradient(135deg, #ffffff 30%, #edaebd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.lede {
  font-size: 1.14rem;
  color: #dcd7d9;
  max-width: 34rem;
  margin: 0 0 32px;
}

.hero-ctas {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-note {
  margin-top: 28px;
  font-size: 0.86rem;
  color: #b8b2b4;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-note::before {
  content: "";
  width: 34px;
  height: 3px;
  background: #c04a63;
  box-shadow: 0 0 8px #c04a63;
  flex: none;
}

/* 3D Interactive Diagram Panel (Fig. 01) */
.diagram {
  background: rgba(36, 38, 41, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(237, 174, 189, 0.22);
  border-radius: 18px;
  padding: 24px;
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(237, 174, 189, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.diagram-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.diagram-head strong {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.05rem;
  display: block;
  color: #fff;
}

.diagram-sub-hint {
  display: block;
  font-size: 0.62rem;
  color: #b4aeb0 !important;
  margin-top: 3px;
}

.diagram-head-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.explode-btn {
  background: rgba(192, 74, 99, 0.18);
  border: 1px solid rgba(237, 174, 189, 0.4);
  color: #f3c3cd;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.64rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.explode-btn:hover,
.explode-btn[aria-pressed="true"] {
  background: var(--red);
  color: #fff;
  border-color: var(--accent-on-dark);
  box-shadow: 0 0 12px rgba(192, 74, 99, 0.6);
}

.fig-badge {
  color: #a0a0a0 !important;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 8px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* 3D WebGL Canvas inside Diagram */
.arch-canvas-container {
  position: relative;
  width: 100%;
  height: 215px;
  background: radial-gradient(circle at 50% 50%, #3a232b 0%, #17181a 78%);
  border: 1px solid rgba(237, 174, 189, 0.24);
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
  cursor: grab;
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.72);
}

.arch-canvas-container:active {
  cursor: grabbing;
}

#arch-3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.arch-hud-overlay {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  gap: 8px;
  flex-wrap: wrap;
}

.hud-coord,
.hud-status {
  font-size: 0.61rem;
  letter-spacing: 0.11em;
  background: rgba(20, 21, 23, 0.82);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #c9c4c6 !important;
}

.hud-status {
  color: #f3c3cd !important;
  border-color: rgba(192, 74, 99, 0.45);
}

/* Layer Stack Buttons */
.layers {
  display: grid;
  gap: 9px;
  perspective: 800px;
}

.layer {
  width: 100%;
  text-align: left;
  background: rgba(58, 59, 63, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 5px solid #8a8a8a;
  color: #f2eff0;
  border-radius: 10px;
  padding: 12px 16px;
  cursor: pointer;
  font: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s, background 0.2s, box-shadow 0.2s;
  transform-style: preserve-3d;
}

.layer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.layer-index {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.36);
  color: #bdb8ba !important;
  font-size: 0.68rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.layer:hover {
  border-color: #c9c3c5;
  transform: translateX(2px);
  box-shadow: -2px 4px 12px rgba(0, 0, 0, 0.28);
}

.layer.active {
  background: linear-gradient(90deg, #622233 0%, #461b26 100%);
  border-color: #c06c7e;
  border-left: 6px solid var(--accent-on-dark);
  transform: translateX(3px);
  box-shadow: 0 6px 18px rgba(109, 24, 48, 0.38);
}

.layer.active .layer-index {
  background: var(--red);
  color: #fff !important;
  border-color: var(--accent-on-dark);
}

.layer b {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1rem;
  display: block;
}

.layer small {
  color: #c9c4c6;
  font-size: 0.82rem;
}

.layer .tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #f3c3cd;
  border: 1px solid #a05a6c;
  background: rgba(156, 43, 68, 0.28);
  padding: 4px 8px;
  border-radius: 99px;
  white-space: nowrap;
}

.diagram-detail {
  margin-top: 16px;
  border-top: 1px dashed #6a6a6a;
  padding-top: 14px;
  min-height: 112px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.detail-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.diagram-detail h3 {
  font-size: 1.06rem;
  margin: 0;
  color: #fff;
}

.detail-layer-pill {
  font-size: 0.62rem;
  color: var(--accent-on-dark) !important;
  background: rgba(109, 24, 48, 0.45);
  border: 1px solid rgba(237, 174, 189, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
}

.diagram-detail p {
  margin: 0;
  color: #d8d3d5;
  font-size: 0.93rem;
}

.diagram-detail .leak {
  margin-top: 9px;
  font-size: 0.87rem;
  color: #eec3cb;
}

.diagram-detail .leak b {
  color: var(--accent-on-dark);
}

/* ==========================================================================
   PROOF STRIP (Translucent Dark Glass over Interactive Grid)
   ========================================================================== */
.proof {
  position: relative;
  z-index: 2;
  background: rgba(30, 32, 35, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  border-top: 6px solid var(--red-bright);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 880px) {
  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .proof-grid {
    grid-template-columns: 1fr;
  }
}

.proof-item {
  padding: 28px 26px 30px;
  border-right: 1px solid var(--line);
  background: rgba(42, 44, 48, 0.45);
}

.proof-item:last-child {
  border-right: none;
}

.proof-item:hover {
  z-index: 5;
  background: rgba(56, 38, 44, 0.65);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.45);
}

@media (max-width: 880px) {
  .proof-item {
    border-bottom: 1px solid var(--line);
  }
  .proof-item:nth-child(2n) {
    border-right: none;
  }
}

.proof-item strong {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent-on-dark);
  display: block;
  letter-spacing: -0.03em;
}

.proof-item span {
  display: block;
  margin-top: 9px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--sub);
}

.proof-item span b {
  color: #fff;
  font-family: "Plus Jakarta Sans", sans-serif;
}

/* ==========================================================================
   SECTIONS & 3D CARDS (WHERE LEAKS HIDE)
   ========================================================================== */
section {
  padding: 88px 0;
  position: relative;
  z-index: 2;
  background: transparent;
}

@media (max-width: 700px) {
  section {
    padding: 60px 0;
  }
}

.sec-head {
  max-width: 44rem;
  margin-bottom: 44px;
}

.sec-head .mono {
  color: var(--accent-on-dark);
}

.sec-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 800;
  margin: 14px 0 14px;
  color: #fff;
}

.sec-head h2::after {
  content: "";
  display: block;
  width: 52px;
  height: 4px;
  background: var(--red-bright);
  box-shadow: 0 0 12px rgba(192, 74, 99, 0.6);
  margin-top: 16px;
}

.sec-head p {
  color: var(--sub);
  font-size: 1.05rem;
  margin: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  perspective: var(--perspective);
}

@media (max-width: 1000px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

.card {
  background: linear-gradient(180deg, rgba(122, 30, 51, 0.26) 0%, rgba(38, 40, 44, 0.86) 55%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-top: 7px solid var(--red-bright);
  border-radius: var(--radius);
  padding: 26px 24px;
  position: relative;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36);
  cursor: pointer;
}

.card:hover,
.card:focus-visible {
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55), 0 0 24px rgba(192, 74, 99, 0.25);
  border-color: var(--accent-on-dark);
  outline: none;
}

.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card .num {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  font-weight: 600;
  color: #fff;
  background: var(--red);
  border: 1px solid rgba(237, 174, 189, 0.28);
  letter-spacing: 0.12em;
  padding: 5px 10px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.leak-beacon {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent-on-dark);
  box-shadow: 0 0 0 6px var(--red-soft);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.card:hover .leak-beacon {
  background: #ff4769;
  box-shadow: 0 0 0 8px rgba(192, 74, 99, 0.35), 0 0 14px #ff4769;
  transform: scale(1.15);
}

.card h3 {
  font-size: 1.14rem;
  margin: 16px 0 10px;
  color: #fff;
}

.card h3::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  background: var(--red-bright);
  margin-top: 10px;
  transition: width 0.25s ease;
}

.card:hover h3::after {
  width: 72px;
}

.card p {
  color: var(--sub);
  font-size: 0.95rem;
  margin: 0;
}

.card-telemetry {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
  font-size: 0.62rem;
  color: var(--accent-on-dark);
  opacity: 0.9;
}

/* ==========================================================================
   THE ARCHITECT & CREDENTIALS
   ========================================================================== */
.architect {
  background: rgba(24, 26, 29, 0.42);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.arch-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
  perspective: var(--perspective);
}

@media (max-width: 880px) {
  .arch-grid {
    grid-template-columns: 1fr;
  }
}

.portrait {
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  background: var(--ink);
  color: #f2eff0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin: 0;
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(237, 174, 189, 0.28);
}

.portrait-frame-3d {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(237, 174, 189, 0.28);
  border-radius: 10px;
  pointer-events: none;
  z-index: 2;
  transform: translateZ(26px);
}

.portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.portrait:hover img {
  transform: scale(1.035);
}

.portrait .who {
  position: relative;
  z-index: 2;
  padding: 64px 30px 26px;
  background: linear-gradient(transparent, rgba(20, 21, 23, 0.94) 62%);
  transform: translateZ(30px);
}

.portrait .who::before {
  content: "";
  position: absolute;
  left: 30px;
  right: 30px;
  top: 44px;
  height: 4px;
  background: #c04a63;
  box-shadow: 0 0 12px rgba(192, 74, 99, 0.7);
}

.portrait .who b {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.3rem;
  display: block;
  color: #fff;
}

.portrait .who span {
  color: #d8d3d5;
  font-size: 0.92rem;
}

.arch-copy h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 800;
  margin: 14px 0 16px;
}

.arch-copy .mono {
  color: var(--accent-on-dark);
}

.arch-copy p {
  color: var(--sub);
  font-size: 1.03rem;
  margin: 0 0 16px;
  max-width: 36rem;
}

.arch-points {
  display: grid;
  gap: 0;
  margin-top: 26px;
  border-top: 1px solid var(--line);
}

.arch-point-row {
  display: flex;
  gap: 16px;
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  border-radius: 8px;
  transition: transform 0.22s ease, background 0.22s ease, padding-left 0.22s ease;
}

.arch-point-row:hover,
.arch-point-row:focus-visible {
  background: rgba(192, 74, 99, 0.14);
  transform: translateX(6px);
  padding-left: 18px;
  outline: none;
}

.arch-points b {
  font-family: "Plus Jakarta Sans", sans-serif;
  min-width: 118px;
  font-size: 0.98rem;
  color: var(--accent-on-dark);
}

.arch-points span {
  color: var(--sub);
  font-size: 0.95rem;
}

/* Credentials */
.credentials {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  padding-top: 44px;
}

.cred-head {
  max-width: 44rem;
  margin-bottom: 28px;
}

.cred-head .mono {
  color: var(--accent-on-dark);
}

.cred-head h3 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  margin: 12px 0 10px;
  color: #fff;
}

.cred-head h3::after {
  content: "";
  display: block;
  width: 52px;
  height: 4px;
  background: var(--red-bright);
  margin-top: 14px;
}

.cred-head p {
  color: var(--sub);
  margin: 0;
  font-size: 1rem;
}

.cred-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  perspective: var(--perspective);
}

@media (max-width: 760px) {
  .cred-grid {
    grid-template-columns: 1fr;
  }
}

.cred-item {
  background: rgba(38, 40, 44, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-top: 5px solid var(--red-bright);
  border-radius: 12px;
  padding: 22px 22px 20px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.cred-item:hover {
  border-color: var(--accent-on-dark);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.5), 0 0 20px rgba(192, 74, 99, 0.2);
}

.cred-item .mono {
  color: var(--accent-on-dark);
  display: block;
  margin-bottom: 10px;
}

.cred-item p {
  margin: 0;
  color: var(--sub);
  font-size: 0.95rem;
  line-height: 1.6;
}

.cred-item p strong {
  color: #fff;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.cred-awards {
  margin-top: 18px;
  background: linear-gradient(135deg, #7a1e33 0%, #48101e 100%);
  border: 1px solid rgba(237, 174, 189, 0.3);
  color: #fff;
  border-radius: 12px;
  padding: 22px 24px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.45);
}

.cred-awards .mono {
  color: #f3c3cd;
}

.cred-awards p {
  margin: 8px 0 0;
  font-size: 0.97rem;
  line-height: 1.6;
  max-width: 52rem;
  color: #fff;
}

.cred-awards p strong {
  font-family: "Plus Jakarta Sans", sans-serif;
}

/* ==========================================================================
   HOW WE WORK (PROCESS)
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(38, 40, 44, 0.84);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  perspective: var(--perspective);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.4);
}

@media (max-width: 880px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  padding: 30px 26px;
  border-right: 1px solid var(--line);
  position: relative;
  background: transparent;
  cursor: pointer;
}

.step:last-child {
  border-right: none;
}

@media (max-width: 880px) {
  .step {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .step:last-child {
    border-bottom: none;
  }
}

.step-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.step .mono {
  color: var(--accent-on-dark);
}

.step-node {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--red-bright);
  background: transparent;
  transition: all 0.25s ease;
}

.step:hover .step-node,
.step.active-step .step-node {
  background: #ff4769;
  border-color: #ff4769;
  box-shadow: 0 0 12px #ff4769;
  transform: scale(1.25);
}

.step.active-step {
  background: linear-gradient(180deg, rgba(192, 74, 99, 0.22), rgba(38, 40, 44, 0.4));
}

.step h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 12px 0 8px;
  color: #fff;
}

.step h3::after {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  background: var(--red-bright);
  margin-top: 10px;
  transition: width 0.25s ease;
}

.step:hover h3::after,
.step.active-step h3::after {
  width: 76px;
}

.step p {
  color: var(--sub);
  font-size: 0.94rem;
  margin: 0;
}

.process-note {
  margin-top: 26px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background: rgba(92, 24, 42, 0.42);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(237, 174, 189, 0.28);
  border-radius: 12px;
  padding: 22px 26px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.process-note p {
  margin: 0;
  font-size: 0.98rem;
  max-width: 46rem;
  color: #f2eff0;
}

.process-note b {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: #fff;
}

/* Disclaimers */
.disclaimer {
  margin-top: 22px;
  background: rgba(34, 36, 40, 0.86);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-left: 6px solid var(--accent-on-dark);
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.disclaimer .mono {
  color: var(--accent-on-dark);
  display: block;
  margin-bottom: 10px;
}

.disclaimer p {
  margin: 0;
  color: var(--text);
  font-size: 0.97rem;
  line-height: 1.65;
  max-width: 62rem;
}

.disclaimer p strong {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: #fff;
}

.disclaimer p + p {
  margin-top: 10px;
}

.disclaimer-short {
  font-weight: 700;
  color: #fff;
}

.cta-disclaimer {
  margin-top: 28px;
}

/* ==========================================================================
   WORKSHOPS & FIRESIDE CHATS
   ========================================================================== */
.workshops {
  background: rgba(20, 22, 25, 0.45);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #f2eff0;
  position: relative;
  overflow: hidden;
}

.workshops .wrap {
  position: relative;
}

.workshops .sec-head .mono {
  color: var(--accent-on-dark);
}

.workshops .sec-head p {
  color: #d8d3d5;
}

.workshops .sec-head h2::after {
  background: #c04a63;
}

.ws-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  perspective: var(--perspective);
}

@media (max-width: 880px) {
  .ws-grid {
    grid-template-columns: 1fr;
  }
}

.ws {
  background: rgba(40, 42, 46, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 5px solid var(--red-bright);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.ws:hover {
  border-color: var(--accent-on-dark);
  box-shadow: 0 22px 44px rgba(109, 24, 48, 0.42);
}

.ws .mono {
  color: var(--accent-on-dark);
}

.ws h3 {
  font-size: 1.22rem;
  margin: 14px 0 10px;
  color: #fff;
}

.ws p {
  color: #c9c4c6;
  font-size: 0.95rem;
  margin: 0;
}

.ws .slot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed #6a6a6a;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #bdb8ba;
}

/* ==========================================================================
   CTA & FOOTER
   ========================================================================== */
.cta {
  padding: 96px 0;
  text-align: left;
}

.cta-box {
  background: rgba(38, 40, 44, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-top: 6px solid var(--red-bright);
  border-radius: 16px;
  padding: 40px 36px;
  display: flex;
  justify-content: space-between;
  gap: 36px;
  align-items: flex-end;
  flex-wrap: wrap;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.48);
}

.cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  max-width: 22ch;
  color: #fff;
}

.cta p {
  color: var(--sub);
  max-width: 38rem;
  margin: 16px 0 0;
  font-size: 1.05rem;
}

.btn-cta-large {
  font-size: 1.05rem;
  padding: 16px 30px;
}

footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  padding: 34px 0 44px;
  color: var(--sub);
  font-size: 0.88rem;
  background: rgba(20, 21, 23, 0.9);
  backdrop-filter: blur(12px);
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #fff;
}

.footer-brand .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.footer-short {
  font-weight: 700;
  color: #fff;
  text-align: right;
}

@media (max-width: 700px) {
  .footer-short {
    text-align: left;
  }
}

.footer-disclaimer {
  flex-basis: 100%;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 6px;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--sub);
}

.footer-disclaimer strong {
  color: #fff;
  font-family: "Plus Jakarta Sans", sans-serif;
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
