/* ============================================================
   Q360 AUTO — ELEVATED BRUTALISM STYLESHEET
   Tech Business Consulting · AI Transformation Lead
   ============================================================ */

:root {
  --bg:           #050505;
  --bg-2:         #0d0d0d;
  --bg-3:         #111111;
  --text:         #f0f0f0;
  --text-muted:   #909090;
  --text-dim:     #707070;
  --accent:       #E8A000;
  --accent-rgb:   232, 160, 0;
  --accent-dim:   rgba(232, 160, 0, 0.12);
  --accent-2:     #7b2fff;
  --accent-2-dim: rgba(123, 47, 255, 0.15);
  --border:       #1e1e1e;
  --border-2:     #2e2e2e;
  --nav-h:        72px;
  --ease:         cubic-bezier(0.77, 0, 0.18, 1);
  --transition:   0.85s var(--ease);
  --sections:     5;
  --font-head:    'Space Grotesk', sans-serif;
  --font-mono:    'Space Mono', monospace;
}

/* Light mode overrides */
body.light {
  --bg:           #fafafa;
  --bg-2:         #f0f0f0;
  --bg-3:         #e6e6e6;
  --text:         #0a0a0a;
  --text-muted:   #484848;
  --text-dim:     #888888;
  --accent:       #CC8800;
  --accent-rgb:   204, 136, 0;
  --accent-dim:   rgba(204, 136, 0, 0.12);
  --accent-2:     #5a1fcc;
  --accent-2-dim: rgba(90, 31, 204, 0.1);
  --border:       #d4d4d4;
  --border-2:     #c0c0c0;
}
body.light .hero-bg-grid {
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
}
body.light .main-nav    { background: rgba(250, 250, 250, 0.92); }
body.light .nav-arrow   { background: rgba(250, 250, 250, 0.9); }

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  outline: none;
}

/* Restore focus ring for keyboard users */
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-head);
  cursor: none;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { border: none; background: none; font-family: inherit; }

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 100001;
  transform: translate(-50%, -50%);
}

.cursor-ring {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 100000;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s;
}

.cursor-ring.hovered {
  width: 52px;
  height: 52px;
  border-color: rgba(var(--accent-rgb), 0.7);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 200;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 40px;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  /* Hidden on load — revealed by JS on first interaction */
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
}
.main-nav.nav-visible {
  transform: translateY(0);
  opacity: 1;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--text);
}
.nav-logo .accent { color: var(--accent); }

.nav-sections {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 5px 6px;
}
body.light .nav-sections {
  background: var(--bg-2);
  border-color: var(--border);
}

.nav-dot {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 6px 16px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.nav-dot:hover:not(.active):not(.nav-dot-cta) {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}
body.light .nav-dot:hover:not(.active):not(.nav-dot-cta) {
  background: rgba(0,0,0,0.05);
}
.nav-dot.active:not(.nav-dot-cta) {
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
  font-weight: 500;
}
body.light .nav-dot.active:not(.nav-dot-cta) {
  background: var(--bg-3);
}
/* Contact Us — solid dark pill */
.nav-dot-cta {
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  padding: 6px 18px;
}
.nav-dot-cta:hover {
  opacity: 0.85;
}
.nav-dot-cta.active {
  background: var(--accent);
  color: var(--bg);
}

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.nav-counter {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}
.nav-counter .current-section { color: var(--accent); }
.nav-counter .sep { margin: 0 4px; }

/* ── Auth0 login ── */
.nav-auth { display: flex; align-items: center; }

.nav-auth-btn {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.nav-auth-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.nav-auth-user { position: relative; display: flex; align-items: center; }

.nav-profile-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border-2);
  background: var(--bg-2);
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.nav-profile-badge:hover,
.nav-profile-badge[aria-expanded="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb, 99,102,241), 0.2);
}
.nav-auth-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nav-auth-initials {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  text-transform: uppercase;
  pointer-events: none;
}

.nav-profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 160px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 200;
  white-space: nowrap;
}
.nav-profile-dropdown.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-auth-name {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.nav-auth-logout {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 0;
  text-align: left;
  transition: color 0.2s;
}
.nav-auth-logout:hover { color: var(--accent); }

.nav-profile-edit-btn {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 0;
  text-align: left;
  transition: color 0.2s;
}
.nav-profile-edit-btn:hover { color: var(--accent); }

/* ── Auth Gate Modal ── */
.auth-gate-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.auth-gate-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  padding: 40px 44px 36px;
  max-width: 420px;
  width: 90%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-gate-close {
  position: absolute;
  top: 16px; right: 16px;
}
.auth-gate-title {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.auth-gate-body {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0 0 8px;
}
.auth-gate-login-btn {
  align-self: flex-start;
}

/* ── Profile Modal ── */
.profile-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.8);
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.profile-overlay.open {
  display: flex;
}
.profile-modal {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  width: min(480px, 90vw);
  animation: modalIn 0.18s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.profile-modal-hdr {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
}
.profile-modal-title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  margin: 4px 0 0;
  color: var(--text);
}
.profile-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.profile-field { display: flex; flex-direction: column; gap: 6px; }
.profile-label-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.profile-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.profile-linkedin-link {
  color: var(--text-dim);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.profile-linkedin-link:hover { color: #0a66c2; }
.profile-input {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.profile-input::placeholder { color: var(--text-dim); }
.profile-input:focus { border-color: var(--accent); }
.profile-input.error { border-color: #ff4d4d; }
.profile-field-error {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #ff4d4d;
  margin-top: 2px;
  display: none;
}
.profile-field-error.visible { display: block; }

.profile-field-full { grid-column: 1 / -1; }
.profile-label-note { font-family: var(--font-mono); font-size: 9px; color: var(--text-dim); font-weight: 400; letter-spacing: 0.06em; text-transform: none; }
.profile-username-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-3);
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}
.profile-username-wrap:focus-within { border-color: var(--accent); }
.profile-username-prefix {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  padding: 0 8px;
  white-space: nowrap;
  user-select: none;
  border-right: 1px solid var(--border);
}
.profile-username-input {
  border: none !important;
  background: transparent !important;
  flex: 1;
  min-width: 0;
}
.profile-username-input:focus { outline: none; box-shadow: none; }
.profile-share-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.06em;
  margin-top: 2px;
  transition: opacity 0.2s;
}
.profile-share-link:hover { opacity: 0.75; }

.profile-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.profile-save-btn { padding: 10px 28px; }

/* ── Nav right: icon buttons + waveform ── */
.nav-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
  flex-shrink: 0;
}
.nav-icon-btn:hover   { color: var(--accent); }
.nav-icon-btn.playing { color: var(--accent); }
.nav-icon-btn.light-active { color: var(--accent); }

/* Waveform bars + countdown */
.music-bars {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 20px;
  padding: 2px 4px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.music-bars:hover { opacity: 0.75; }

.music-countdown {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  min-width: 8px;
  text-align: center;
  animation: countdown-pulse 1s ease-in-out infinite;
}

@keyframes countdown-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

/* Flat gray bars by default */
.music-bars .bar {
  width: 3px;
  background: var(--border-2);
  border-radius: 1px;
  height: 5px;
  transition: background 0.3s ease, height 0.3s ease;
}

/* Colored + animated when active */
.music-bars.active .bar {
  background: var(--accent);
  animation: bar-bounce 0.9s ease-in-out infinite;
}
.music-bars.active .bar:nth-child(2) { --bar-h: 10px; animation-delay: 0s;    }
.music-bars.active .bar:nth-child(3) { --bar-h: 16px; animation-delay: 0.18s; }
.music-bars.active .bar:nth-child(4) { --bar-h: 8px;  animation-delay: 0.32s; }
.music-bars.active .bar:nth-child(5) { --bar-h: 13px; animation-delay: 0.1s;  }

@keyframes bar-bounce {
  0%, 100% { height: 3px; }
  50%       { height: var(--bar-h, 10px); }
}

/* Volume buttons */
.nav-vol-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
  line-height: 1;
  flex-shrink: 0;
}
.nav-vol-btn:hover { color: var(--accent); }

/* Quick-launch tool links (Calc / Corp / Company) */
.nav-tools {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.nav-tool-btn {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-tool-btn:hover {
  color: var(--accent);
  background: var(--border-2);
}

.nav-profile-divider {
  display: block;
  height: 1px;
  background: var(--border-2);
  margin: 4px 0;
}

/* Separator */
.nav-sep {
  width: 1px;
  height: 18px;
  background: var(--border-2);
  flex-shrink: 0;
}

/* ============================================================
   VIEWPORT LOCK & SECTIONS WRAPPER
   ============================================================ */
.viewport-lock {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0; bottom: 0;
  overflow: hidden;
}

.sections-wrapper {
  display: flex;
  height: 100%;
  width: calc(100% * var(--sections));
  transform: translateX(0%);
  transition: transform var(--transition);
  will-change: transform;
}

.section {
  width: calc(100% / var(--sections));
  height: 100%;
  flex-shrink: 0;
  padding: 48px 56px 44px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Shared accent text */
.accent-text { color: var(--accent); }

/* Shared section header */
.section-header { margin-bottom: 36px; }
.section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(36px, 4.5vw, 62px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.025em;
}

/* ============================================================
   SECTION 01 — HERO
   ============================================================ */
.section-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 80px;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.55;
  pointer-events: none;
}

.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--text-muted);
  margin-bottom: 28px;
  /* entrance animation initial state */
  opacity: 0;
  transform: translateY(20px);
}

.hero-title {
  font-size: clamp(80px, 14vw, 168px);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  user-select: none;
}
.title-line {
  display: block;
  will-change: transform;
  transition: transform 0.25s ease-out;
  /* entrance animation initial state */
  opacity: 0;
  transform: translateY(28px);
}

.hero-descriptor {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(16px);
}
.x-mark {
  color: var(--accent);
  font-size: 18px;
}

.hero-tagline {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 300;
  line-height: 1.45;
  max-width: 440px;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(16px);
}
.hero-tagline em {
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
}

.btn-explore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  padding: 15px 32px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.35s;
  /* entrance animation initial state */
  opacity: 0;
  transform: translateY(20px);
}
.btn-explore::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
  z-index: 0;
}
.btn-explore:hover::before { transform: scaleX(1); }
.btn-explore:hover { color: var(--bg); }
.btn-explore span, .btn-explore svg { position: relative; z-index: 1; }
.btn-explore svg { width: 15px; height: 15px; }

.hero-hint {
  position: absolute;
  bottom: 28px;
  right: 56px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--text-dim);
}

.hero-side-label {
  position: absolute;
  right: 56px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center center;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.3em;
  color: var(--text-dim);
  white-space: nowrap;
}

/* ============================================================
   HERO VIDEO
   ============================================================ */
.hero-video-wrap {
  position: absolute;
  left: 38%;
  right: 4%;
  top: 12%;
  bottom: 12%;
  border-radius: 12px;
  overflow: hidden;
  pointer-events: none;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   SECTION 02 — SERVICES (BENTO GRID)
   ============================================================ */
.section-services {
  display: flex;
  flex-direction: column;
  padding-bottom: 80px;
  overflow-y: auto;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  grid-auto-rows: auto;
  gap: 10px;
  flex: 1;
}


.bento-item {
  border: 1px solid var(--border-2);
  background: var(--bg-2);
  padding: 22px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.bento-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), var(--accent-dim), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.bento-item:hover::before { opacity: 1; }
.bento-item:hover { border-color: rgba(var(--accent-rgb), 0.35); }

.bento-large {
  grid-row: span 2;
  align-self: stretch;
}
.bento-wide {
  grid-column: span 2;
}
.bento-accent {
  background: var(--accent-2-dim);
  border-color: rgba(123, 47, 255, 0.25) !important;
}
.bento-accent:hover {
  border-color: rgba(123, 47, 255, 0.6) !important;
}
.bento-accent .bento-tag {
  color: var(--accent-2);
  border-color: rgba(123, 47, 255, 0.4);
}

.bento-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.bento-item h3 {
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 8px;
}
.bento-large h3 {
  font-size: clamp(22px, 2.4vw, 32px);
}

.bento-item p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.bento-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  padding: 4px 9px;
  display: inline-block;
  margin-top: 18px;
  align-self: flex-start;
}

/* ============================================================
   SECTION 03 — APPROACH
   ============================================================ */
.section-approach {
  display: flex;
  flex-direction: column;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border-2);
  flex: 1;
}


.approach-step {
  padding: 36px 32px 32px;
  border-right: 1px solid var(--border-2);
  background: var(--bg-2);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: background 0.3s ease;
}
.approach-step:last-child { border-right: none; }
.approach-step:hover { background: rgba(var(--accent-rgb), 0.025); }

.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  margin-bottom: 48px;
}

.approach-step h3 {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 16px;
}

.approach-step p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  flex: 1;
}

.step-arrow {
  position: absolute;
  bottom: 28px;
  right: 28px;
  font-size: 20px;
  color: var(--border-2);
  font-family: var(--font-mono);
  transition: color 0.3s;
}
.approach-step:hover .step-arrow { color: var(--text-muted); }
.step-arrow.final { color: var(--accent) !important; }

.approach-tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ============================================================
   SECTION 04 — IMPACT
   ============================================================ */
.section-impact {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  flex: 1;
}

.stat-block {
  border: 1px solid var(--border-2);
  background: var(--bg-2);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}
.stat-block::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.stat-block:hover { background: rgba(var(--accent-rgb), 0.02); }
.stat-block:hover::after { transform: scaleX(1); }

.stat-row {
  display: flex;
  align-items: baseline;
  line-height: 1;
  margin-bottom: 12px;
}
.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 700;
  color: var(--text);
}
.stat-suffix {
  font-family: var(--font-mono);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 700;
  color: var(--accent);
  margin-left: 4px;
}
.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.industries-bar { display: none; } /* replaced by sector-panel */

/* ── Sector panel (Impact section) ── */
.sector-panel {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-height: 0;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}
.sector-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sector-tab {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  padding: 5px 11px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}
.sector-tab:hover { border-color: var(--accent); color: var(--accent); }
.sector-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  font-weight: 700;
}
.sector-feed {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-top: 12px;
  padding-right: 4px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-content: start;
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
}
.sector-feed::-webkit-scrollbar { width: 4px; }
.sector-feed::-webkit-scrollbar-track { background: transparent; }
.sector-feed::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 2px; }
.sector-feed::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }
.sector-feed-empty {
  grid-column: 1/-1;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  padding: 20px 0;
  text-align: center;
}
/* Lock badge on locked bento cards */
.bento-lock-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  border: 1px solid var(--border-2);
  background: var(--bg-3);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
  pointer-events: none;
}
.bento-lock-badge svg { display: block; }
.bento-locked { cursor: not-allowed; }
.bento-locked:hover .bento-lock-badge { opacity: 0.9; }

.sector-blog-card {
  border: 1px solid var(--border);
  background: var(--bg-2);
  padding: 14px 16px;
  cursor: pointer;
  text-decoration: none;
  display: block;
  transition: border-color 0.18s, background 0.18s;
}
.sector-blog-card:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.sbc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}
.sbc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.sbc-tag {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  border: 1px solid var(--border-2);
  padding: 2px 7px;
  transition: border-color 0.2s, background 0.2s;
}
.sbc-tag-primary {
  color: var(--accent);
  border-color: rgba(var(--accent-rgb), 0.4);
  background: var(--accent-dim);
}
.sector-blog-card:hover .sbc-tag {
  border-color: rgba(var(--accent-rgb), 0.35);
}
.sector-blog-card:hover .sbc-tag-primary {
  border-color: var(--accent);
}
.sbc-views {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.sbc-views svg { flex-shrink: 0; }
.sbc-read-cta {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.18s;
  flex-shrink: 0;
  margin-left: auto;
}
.sector-blog-card:hover .sbc-read-cta { opacity: 1; }
.sbc-title {
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* ── Blog overlay body ── */
.blog-ovl-body {
  flex: 1;
  overflow-y: visible;
  padding: 28px 36px 48px;
}
/* Whole blog overlay scrolls as one page */
#blogOvlInner {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
}
#blogOvlInner::-webkit-scrollbar { width: 4px; }
#blogOvlInner::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 2px; }
/* Blog title — half the service overlay size */
#blogOvlInner .step-ovl-title {
  font-size: clamp(18px, 2.5vw, 32px);
}
.blog-ovl-content h1,.blog-ovl-content h2,.blog-ovl-content h3 { color:var(--text);margin:1.4em 0 .5em;font-weight:700 }
.blog-ovl-content p  { margin-bottom:.9em;line-height:1.75;color:var(--text) }
.blog-ovl-content a  { color:var(--accent) }
.blog-ovl-content img { max-width:100%;border-radius:2px;margin:12px 0 }
.blog-ovl-content blockquote { border-left:3px solid var(--accent);padding-left:16px;color:var(--text-muted);margin:1em 0 }
.blog-ovl-content pre { background:var(--bg-3);border:1px solid var(--border-2);padding:16px;border-radius:2px;font-family:var(--font-mono);font-size:13px;overflow-x:auto }
.blog-ovl-content table { border-collapse:collapse;width:100%;margin:12px 0 }
.blog-ovl-content td,.blog-ovl-content th { border:1px solid var(--border-2);padding:8px 12px }
.blog-ovl-content th { background:var(--bg-3);font-weight:600 }
.blog-ovl-content ul,.blog-ovl-content ol { padding-left:24px;margin-bottom:.9em;color:var(--text) }

.sbc-excerpt {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   SECTION 05 — CONTACT
   ============================================================ */
.section-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  gap: 0 60px;
  position: relative;
}

.contact-content {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-title {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 14px 0 24px;
}

.contact-sub {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 44px;
}

.contact-timestamp {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.contact-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 17px 34px;
  transition: all 0.3s ease;
}
.btn-primary svg { width: 15px; height: 15px; }
.btn-primary:hover {
  background: var(--text);
  transform: translate(-3px, -3px);
  box-shadow: 5px 5px 0 var(--accent);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-2);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  padding: 17px 34px;
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  border-color: var(--text);
  background: rgba(240, 240, 240, 0.04);
}

.contact-details {
  display: flex;
  gap: 48px;
}
.contact-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.contact-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--text-dim);
}
.contact-value {
  font-size: 14px;
  color: var(--text-muted);
}

/* ORB */
.contact-visual {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb-outer {
  width: min(280px, 22vw);
  height: min(280px, 22vw);
  border: 1px solid var(--border-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: spin-slow 25s linear infinite;
}
.orb-outer::before {
  content: '';
  position: absolute;
  width: 115%;
  height: 115%;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: var(--accent);
  border-bottom-color: rgba(var(--accent-rgb), 0.2);
  animation: spin-slow 12s linear infinite reverse;
}
.orb-outer::after {
  content: '';
  position: absolute;
  width: 85%;
  height: 85%;
  border-radius: 50%;
  border: 1px solid rgba(123, 47, 255, 0.3);
  border-left-color: transparent;
  animation: spin-slow 18s linear infinite;
}

.orb-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: spin-slow 25s linear infinite reverse;
}
.orb-text {
  font-family: var(--font-mono);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.1em;
  line-height: 1;
}
.orb-sub {
  font-family: var(--font-mono);
  font-size: clamp(10px, 1.2vw, 14px);
  color: var(--accent);
  letter-spacing: 0.35em;
  margin-top: 4px;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.site-footer {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}

/* ============================================================
   ARROW NAVIGATION
   ============================================================ */
.nav-arrows {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 200;
  opacity: 1;
  transition: opacity 0.6s ease;
}
.nav-arrows.hidden { opacity: 0; pointer-events: none; }

.nav-arrow {
  width: 46px;
  height: 46px;
  border: 1px solid var(--border-2);
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(10px);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.nav-arrow:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}
.nav-arrow:disabled {
  opacity: 0.18;
  cursor: not-allowed;
}
.nav-arrow svg { width: 17px; height: 17px; }

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress-track {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
  z-index: 200;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width var(--transition);
}

/* ============================================================
   MOBILE / TABLET — VERTICAL SCROLL LAYOUT  (≤ 1023px)
   The horizontal snap system is replaced with a natural
   vertical scroll page so all content is accessible.
   ============================================================ */
@media (max-width: 1023px) {
  /* Keep horizontal viewport lock — sections swipe left/right */
  html, body {
    overflow: hidden;
    height: 100%;
    cursor: auto;
  }

  /* Hide custom cursor on touch devices */
  .cursor-dot, .cursor-ring { display: none !important; }

  /* Nav floats over content so viewport-lock fills full screen */
  .main-nav { position: fixed; }
  .viewport-lock { top: 0; }

  /* Each section scrolls its own content vertically — pad top for floating nav */
  .section {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: calc(var(--nav-h) + 32px) 20px 48px;
  }

  /* Hero: text on top of dimmed full-bleed video — extra top pad for nav overlay */
  .section-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--nav-h) + 48px) 24px 64px;
  }
  .hero-content { position: relative; z-index: 2; }
  .hero-video-wrap {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    border-radius: 0;
    z-index: 1;
  }

  /* Services — internal scroll already set via overflow-y: auto on .section */
  /* Impact — let sector feed grow to natural height within section scroll */
  .section-impact { overflow-y: auto; }
  .sector-panel   { flex: none; height: auto; min-height: unset; }
  .sector-feed    {
    overflow-y: visible !important;
    height: auto !important;
    max-height: unset !important;
    padding-bottom: 24px;
  }

  /* Approach & Contact sections */
  .section-approach { overflow-y: auto; }
  .section-contact  { overflow-y: auto; }

  /* Hide desktop-only chrome */
  .nav-arrows     { display: none !important; }
  .progress-track { display: none !important; }
  .hero-hint      { display: none; }
  .hero-side-label { display: none; }

  /* ── Bottom-sheet drawers ── */
  /* Backdrop aligns to bottom edge */
  .step-overlay {
    align-items: flex-end;
    padding: 0;
  }
  /* Drawer card slides up from bottom */
  .step-ovl-inner {
    max-width: 100%;
    width: 100%;
    max-height: 88vh;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .step-overlay.open .step-ovl-inner {
    transform: translateY(0);
  }
  /* Drag handle pill */
  .step-ovl-inner::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--border-2);
    border-radius: 2px;
    margin: 12px auto 0;
    flex-shrink: 0;
  }
  /* Blog overlay full-width */
  #blogOverlay .ovl-card-wrap { max-width: 100%; width: 100%; }
  /* Hide side nav arrows in drawer */
  .ovl-nav-btn { display: none !important; }

  /* Auth gate — bottom sheet */
  .auth-gate-overlay { align-items: flex-end; }
  .auth-gate-card {
    width: 100%;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    padding-bottom: max(32px, env(safe-area-inset-bottom));
  }

  /* Touch-friendly tap targets */
  .nav-dot { padding: 8px 14px; min-height: 36px; }
  .overlay-close { width: 40px; height: 40px; }

  /* ── Service / Approach drawer content ── */
  #svcOverlay .ovl-card-wrap,
  #stepOverlay .ovl-card-wrap { max-width: 100%; width: 100%; }
  .step-ovl-hdr { padding: 16px 18px 14px; }
  /* Hide stat/duration — too dense for mobile */
  .svc-stat-block,
  .step-ovl-duration-block { display: none; }
  /* Smaller title */
  .step-ovl-title { font-size: clamp(20px, 5vw, 30px); line-height: 1.05; margin: 6px 0 8px; }
  /* Single-column body */
  .step-ovl-body { grid-template-columns: 1fr; }
  .step-ovl-activities { grid-template-columns: 1fr; border-right: none; }
  .step-ovl-deliverables { border-top: 1px solid var(--border-2); }
  /* Stack insight footer */
  .svc-insight-block { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 18px; }
  .svc-insight-right { align-items: flex-start; text-align: left; }

  /* ── Edit Profile — bottom-sheet drawer ── */
  .profile-overlay { align-items: flex-end; padding: 0; }
  .profile-modal {
    width: 100%;
    max-width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    border-radius: 20px 20px 0 0;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    animation: none;
  }
  .profile-modal::before {
    content: '';
    display: block;
    width: 40px; height: 4px;
    background: var(--border-2);
    border-radius: 2px;
    margin: 12px auto 4px;
  }
}

/* ============================================================
   RESPONSIVE — TABLET & MOBILE
   ============================================================ */
@media (max-width: 900px) {
  .main-nav { padding: 0 20px; }
  .section { padding: 36px 24px 36px; }
  .section-hero { padding: 36px 28px; }
  .hero-side-label { display: none; }
  /* Reduce nav clutter at tablet widths — keep music icon, hide +/- */
  .nav-vol-btn { display: none !important; }
  .nav-right { gap: 10px; }
  /* Allow active nav dot to scroll to center */
  .nav-sections {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-shrink: 1;
  }
  .nav-sections::-webkit-scrollbar { display: none; }

  .bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .bento-large { grid-row: auto; grid-column: span 2; align-self: auto; }
  .bento-wide  { grid-column: span 2; }

  .sector-feed { grid-template-columns: 1fr 1fr; }

  .approach-grid { grid-template-columns: 1fr 1fr; }
  .approach-step { border-right: none; border-bottom: 1px solid var(--border-2); }
  .approach-step:nth-child(odd) { border-right: 1px solid var(--border-2); }

  .stats-grid { grid-template-columns: 1fr 1fr; }

  .section-contact {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .contact-visual { grid-column: 1; grid-row: 2; justify-content: flex-start; }
  .site-footer    { grid-row: 3; }
}

@media (max-width: 600px) {
  :root { --nav-h: 56px; }

  /* ── NAV ── */
  .main-nav {
    padding: 0 14px;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
  }
  /* Make the section pill scroll instead of overflow */
  .nav-sections {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-shrink: 1;
    padding: 4px 5px;
  }
  .nav-sections::-webkit-scrollbar { display: none; }
  .nav-dot { padding: 5px 10px; font-size: 11px; }
  .nav-dot-cta { padding: 5px 12px; }
  /* Hide bulky nav-right items to reclaim space — keep music icon */
  .nav-vol-btn,
  .nav-sep,
  .nav-counter,
  .nav-tools { display: none !important; }
  .nav-right { gap: 8px; }

  /* ── HERO: fix video overlapping text ── */
  .hero-content {
    position: relative;
    z-index: 2;
  }
  /* Push video behind text, dim it, stretch full-bleed */
  .hero-video-wrap {
    left: 0; right: 0; top: 0; bottom: 0;
    opacity: 0.18;
    border-radius: 0;
    z-index: 1;
  }
  .section-hero { padding: 36px 24px 64px; }
  .hero-title { font-size: clamp(52px, 15vw, 80px); }
  .hero-tagline { font-size: 16px; max-width: 100%; margin-bottom: 36px; }
  .hero-descriptor { font-size: 9px; gap: 8px; flex-wrap: wrap; }
  .hero-hint { right: 16px; font-size: 8px; letter-spacing: 0.15em; }

  /* ── BENTO / SERVICES ── */
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .bento-large,
  .bento-wide { grid-column: span 1; }

  /* ── APPROACH ── */
  .approach-grid { grid-template-columns: 1fr; }
  .approach-step { border-right: none !important; }

  /* ── IMPACT ── */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .sector-tabs { gap: 4px; }
  .sector-tab { font-size: 9px; padding: 5px 10px; letter-spacing: 0.06em; }
  .sector-feed { grid-template-columns: 1fr; }
  .industries-bar { display: none; }

  /* ── CONTACT ── */
  .contact-visual { display: none; }
  .section-contact { grid-template-columns: 1fr; }
  .contact-title { font-size: clamp(36px, 10vw, 56px); }
  .btn-primary, .btn-secondary { padding: 13px 24px; font-size: 11px; }

  /* ── SECTION OVERLAYS ── */
  .step-overlay { padding: 12px; }
  .ovl-nav-btn { display: none; }
  .step-ovl-inner { max-height: 92vh; }
  .step-ovl-hdr { padding: 20px 18px 16px; }
  .step-ovl-body { padding: 18px; gap: 16px; }
  .svc-insight-block { flex-direction: column; gap: 8px; padding: 16px 18px; }
  /* Blog overlay: tighter on mobile */
  .blog-ovl-body { padding: 18px 18px 36px; }
  #blogOvlInner .step-ovl-title { font-size: clamp(16px, 5vw, 22px); }

  /* ── MISC ── */
  .site-version { position: static; display: none; } /* hide floating badge on mobile */
}

/* ============================================================
   VERSION BADGE
   ============================================================ */
.site-version {
  position: fixed;
  bottom: 10px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  z-index: 199;
  pointer-events: none;
  user-select: none;
}

/* ============================================================
   SECTION 03 — STEP EXPAND HINT
   ============================================================ */
.step-expand-hint {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  position: absolute;
  bottom: 28px;
  left: 32px;
  opacity: 0;
  transition: color 0.3s ease, opacity 0.3s ease;
}
.approach-step:hover .step-expand-hint,
.approach-step:focus-visible .step-expand-hint {
  opacity: 1;
  color: var(--text-muted);
}
.approach-step { cursor: pointer; }

/* ============================================================
   STEP DETAIL OVERLAY
   ============================================================ */
/* ---- STEP POPUP BACKDROP ---- */
.step-overlay {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
body.light .step-overlay { background: rgba(0, 0, 0, 0.45); }
.step-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ---- POPUP NAV ARROWS ---- */
.ovl-card-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 1044px; /* 960px card + 2×(44px btn + 12px gap) */
}
.ovl-card-wrap .step-ovl-inner { flex: 1; min-width: 0; }
.ovl-nav-btn {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.ovl-nav-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--bg-3); }
.ovl-nav-btn:disabled { opacity: 0.25; cursor: default; pointer-events: none; }
.ovl-nav-btn svg { width: 20px; height: 20px; }

/* ---- POPUP CARD ---- */
.step-ovl-inner {
  background: var(--bg);
  border: 1px solid var(--border-2);
  width: 100%;
  max-width: 960px;
  max-height: 88vh;
  overflow: hidden;
  padding: 0;
  position: relative;
  transform: scale(0.96) translateY(14px);
  transition: transform 0.35s var(--ease);
  display: flex;
  flex-direction: column;
}
.step-overlay.open .step-ovl-inner {
  transform: scale(1) translateY(0);
}

/* Header */
.step-ovl-hdr {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 32px 36px 28px;
  border-bottom: 1px solid var(--border-2);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.step-ovl-hdr-left { position: relative; z-index: 1; flex: 1; }
.step-ovl-hdr-right {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  padding-left: 24px;
}
.step-ovl-title {
  font-family: var(--font-mono);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--accent);
  line-height: 0.92;
  margin: 10px 0 16px;
}
.step-ovl-tagline {
  font-size: clamp(14px, 1.3vw, 16px);
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.65;
  font-weight: 400;
}
.step-ovl-duration-block {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: right;
  padding-top: 4px;
}
.step-ovl-duration {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.step-ovl-bg-num {
  position: absolute;
  right: -8px;
  bottom: -16px;
  font-family: var(--font-mono);
  font-size: clamp(80px, 14vw, 160px);
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* Body */
.step-ovl-body {
  display: grid;
  grid-template-columns: 1fr 256px;
  gap: 0;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

/* Activities grid */
.step-ovl-activities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  align-content: start;
  background: var(--border);
  border-right: 1px solid var(--border-2);
}
.activity-block {
  background: var(--bg-2);
  padding: 22px 24px;
  transition: background 0.2s ease;
}
.activity-block:hover { background: var(--bg-3); }
.activity-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}
.activity-block ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.activity-block ul li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.55;
}
.activity-block ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--border-2);
  font-size: 10px;
}

/* Deliverables sidebar */
.step-ovl-deliverables {
  background: var(--bg-3);
  padding: 24px;
  border-left: none;
}
.step-ovl-deliverables ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.step-ovl-deliverables ul li {
  font-size: 14px;
  color: var(--text-muted);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
}
.step-ovl-deliverables ul li:last-child { border-bottom: none; }
.step-ovl-deliverables ul li::before {
  content: '◈';
  color: var(--accent);
  font-size: 10px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---- Bento clickable ---- */
.bento-clickable { cursor: pointer; }

/* ---- Bento hashtags ---- */
.bento-hashtags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
  padding-top: 12px;
  flex-shrink: 0;
}
.bento-hashtag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  padding: 3px 8px;
  transition: background 0.2s, border-color 0.2s;
}
.bento-item:hover .bento-hashtag {
  border-color: rgba(var(--accent-rgb), 0.5);
  background: rgba(var(--accent-rgb), 0.06);
}
/* Primary tag — mustard/amber fill */
.bento-hashtag-primary {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}
body.light .bento-hashtag-primary { color: #fff; }
.bento-item:hover .bento-hashtag-primary {
  background: var(--accent);
  border-color: var(--accent);
}
/* Accent (purple) card overrides */
.bento-accent .bento-hashtag {
  color: var(--accent-2);
  border-color: rgba(123,47,255,0.3);
}
.bento-accent:hover .bento-hashtag {
  border-color: rgba(123,47,255,0.55);
  background: rgba(123,47,255,0.08);
}
.bento-accent .bento-hashtag-primary {
  color: #fff;
  background: var(--accent-2);
  border-color: var(--accent-2);
}
.bento-accent:hover .bento-hashtag-primary {
  background: var(--accent-2);
}

/* ---- Locked bento items ---- */

/* ---- Service overlay lock gate ---- */
.svc-lock-gate {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(5,5,5,0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
  text-align: center;
  padding: 40px;
}
.svc-lock-gate svg { color: var(--accent); opacity: 0.9; }
.svc-lock-title { font-size: 1.5rem; font-weight: 700; margin: 4px 0; }
.svc-lock-body  { color: var(--text-muted); font-size: 0.9rem; max-width: 340px; line-height: 1.6; }
.svc-lock-btn   { margin-top: 8px; }
/* Blur overlay content when locked */
#svcOverlay.locked .step-ovl-hdr,
#svcOverlay.locked .step-ovl-body,
#svcOverlay.locked .svc-insight-block,
#stepOverlay.locked .step-ovl-hdr,
#stepOverlay.locked .step-ovl-body,
#stepOverlay.locked .svc-insight-block { filter: blur(6px); pointer-events: none; user-select: none; }

/* ---- Service overlay stat block ---- */
.svc-stat-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
  padding-top: 4px;
  max-width: 180px;
}
.svc-stat-num {
  font-family: var(--font-mono);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.svc-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}
.svc-stat-src {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ---- HBR insight block — full-width footer ---- */
.svc-insight-block {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--border-2);
  background: var(--bg-3);
  padding: 14px 24px;
  flex-shrink: 0;
}
.svc-insight-label {
  flex-shrink: 0;
  white-space: nowrap;
}
.svc-insight-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 5px;
}
.svc-insight-text {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.5;
  margin: 0;
}
.svc-insight-link {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}
.svc-insight-link:hover { color: var(--accent); }

@media (max-width: 760px) {
  /* Blog overlay header at mid-mobile */
  .step-ovl-hdr-right { gap: 12px; padding-left: 12px; }
}

/* ============================================================
   SECTION 03 — EXPAND BUTTON
   ============================================================ */
.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.btn-expand-approach {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border-2);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 11px 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-bottom: 4px;
}
.btn-expand-approach:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-expand-approach svg { width: 14px; height: 14px; }

/* ============================================================
   APPROACH OVERLAY
   ============================================================ */
.approach-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--bg);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.approach-overlay.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.overlay-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 40px 56px 80px;
}

.overlay-hdr {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 44px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-2);
}
.overlay-title {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
  margin-top: 12px;
}
.overlay-close {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-2);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.25s ease;
}
.overlay-close:hover { border-color: var(--accent); color: var(--accent); }
.overlay-close svg { width: 18px; height: 18px; }

/* Phase flow */
.ovl-phases {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  margin-bottom: 28px;
}
.ovl-phase-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--accent);
  padding: 0 18px;
}
.ovl-phase {
  border: 1px solid var(--border-2);
  background: var(--bg-2);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.ovl-phase-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.ovl-phase h3 {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 20px;
}
.ovl-phase-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  margin-bottom: 20px;
}
.ovl-phase-item {
  font-size: 14px;
  color: var(--text-muted);
  padding: 9px 13px;
  border: 1px solid var(--border);
  background: var(--bg-3);
  line-height: 1.45;
}
.ovl-phase-output {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.output-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--text-dim);
}
.ovl-phase-output span:last-child {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

/* Middle row */
.ovl-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.ovl-sub-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  margin-bottom: 20px;
  text-transform: uppercase;
}
.ovl-timeline {
  color: var(--accent);
}

/* Maturity staircase */
.ovl-maturity {
  border: 1px solid var(--border-2);
  background: var(--bg-2);
  padding: 28px;
}
.maturity-stair { display: flex; flex-direction: column; }
.stair-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 11px 16px;
  border: 1px solid var(--border);
  background: var(--bg-3);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.stair-step + .stair-step { border-top: none; }
.stair-step:hover { background: var(--accent-dim); border-color: rgba(var(--accent-rgb), 0.3); }
.stair-num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  width: 22px;
  flex-shrink: 0;
}
.stair-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  width: 116px;
  flex-shrink: 0;
}
.stair-desc {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}
.s5 .stair-num { color: var(--accent); }
.s4 .stair-num { color: rgba(var(--accent-rgb), 0.80); }
.s3 .stair-num { color: rgba(var(--accent-rgb), 0.65); }
.s2 .stair-num { color: rgba(var(--accent-rgb), 0.52); }
.s1 .stair-num { color: rgba(var(--accent-rgb), 0.40); }

/* Target state */
.ovl-target {
  border: 1px solid var(--border-2);
  background: var(--bg-2);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.ovl-target-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.ovl-target-pillars { display: flex; flex-direction: column; gap: 12px; }
.target-pillar {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.pillar-icon { color: var(--accent); flex-shrink: 0; margin-top: 1px; }

/* Roadmap */
.ovl-roadmap {
  border: 1px solid var(--border-2);
  background: var(--bg-2);
  padding: 28px;
}
.roadmap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.roadmap-item {
  border: 1px solid var(--border);
  background: var(--bg-3);
  padding: 20px;
  transition: border-color 0.25s ease;
}
.roadmap-item:hover { border-color: rgba(var(--accent-rgb), 0.3); }
.roadmap-num {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.roadmap-item h5 {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.roadmap-item ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.roadmap-item ul li {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}
.roadmap-item ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--border-2);
  font-size: 10px;
}

@media (max-width: 900px) {
  .overlay-inner { padding: 28px 24px 60px; }
  .ovl-phases { grid-template-columns: 1fr; }
  .ovl-phase-arrow { padding: 10px 0; transform: rotate(90deg); }
  .ovl-row { grid-template-columns: 1fr; }
  .roadmap-grid { grid-template-columns: 1fr; }
  .section-header-row { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   SECTION IMAGES — proximity focus reveal
   ============================================================ */
.section-img-wrap {
  position: absolute;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.section-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  --img-focus: 0;
  filter: blur(calc(14px * (1 - var(--img-focus))))
          brightness(calc(0.18 + 0.42 * var(--img-focus)));
  opacity: calc(0.5 + 0.5 * var(--img-focus));
  transform: scale(calc(1.08 - 0.08 * var(--img-focus)));
  transition: filter 0.55s ease, opacity 0.55s ease, transform 0.55s ease;
}

/* Per-section placements */
.img-hero     { right: 0;   top: 0;    width: 40%; height: 100%; }
.img-services { right: 0;   bottom: 0; width: 34%; height: 46%;  }
.img-approach { right: 0;   top: 0;    width: 38%; height: 38%;  }
.img-impact   { right: 0;   top: 0;    width: 30%; height: 100%; }
.img-contact  { right: 0;   top: 0;    width: 50%; height: 100%; }

/* Fade the image edge inward so it blends with the dark section */
.img-hero::after,
.img-services::after,
.img-approach::after,
.img-impact::after,
.img-contact::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg) 0%, transparent 40%);
  pointer-events: none;
}

.img-services::after { background: linear-gradient(to top, var(--bg) 0%, transparent 40%); }
.img-approach::after { background: linear-gradient(to bottom, var(--bg) 0%, transparent 40%); }

@media (max-width: 600px) {
  .section-img-wrap { display: none; }
}
