:root {
  --bg: #0a0b14;
  --surface: #121520;
  --panel: #181b2a;
  --panel-glow: rgba(31, 184, 255, 0.2);
  --text-primary: #f8f9fc;
  --text-secondary: #8fa8f3;
  --text-muted: #bdbdbd;
  --accent: #1fb8ff;
  --accent-alt: #6be2ff;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 35px 65px rgba(0, 0, 0, 0.55);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Text selection styling to match design system */
::selection {
  background-color: var(--accent);
  color: var(--bg);
}

::-moz-selection {
  background-color: var(--accent);
  color: var(--bg);
}

body {
  background-color: var(--bg);
  font-family: "Stack Sans Notch", sans-serif;
  line-height: 1.6;
  color: var(--text-muted);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Ccircle cx='6' cy='6' r='4' fill='%236be2ff'/%3E%3C/svg%3E") 6 6, auto;
}

.header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

h1 {
  color: var(--text-primary);
  font-family: "Stack Sans Notch", sans-serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
  max-width: 900px;
}

h2 {
  color: var(--text-muted);
  font-family: "Stack Sans Text", sans-serif;
  font-weight: 400;
  font-size: clamp(0.9375rem, 2vw, 1.125rem);
  line-height: 1.7;
  font-style: italic;
  letter-spacing: -0.005em;
  max-width: 700px;
  margin: 0 auto;
  margin-bottom: 1rem;
}

.header .authors {
  color: var(--text-muted);
  font-family: "Stack Sans Text", sans-serif;
  font-size: clamp(0.75rem, 1.5vw, 0.875rem);
  font-weight: 400;
  margin-top: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.85;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  opacity: 0.7;
  animation: bounce 2s infinite;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-indicator svg {
  display: block;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

.section-wrapper {
  position: relative;
}

.section-divider {
  position: sticky;
  top: 0;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  text-align: center;
  background: rgba(10, 11, 20, 0.95);
  backdrop-filter: blur(10px);
  z-index: 100;
  box-sizing: border-box;
  border-bottom: 1px solid var(--border);
}

.section-divider h3 {
  color: var(--text-primary);
  font-family: "Stack Sans Text", sans-serif;
  font-weight: 600;
  font-size: clamp(0.6875rem, 1.5vw, 0.8125rem);
  line-height: 1.5;
  letter-spacing: 0.01em;
  padding-bottom: 0.25rem;
  margin: 0;
  display: inline-block;
  max-width: 900px;
}

.section-divider h3 em {
  font-style: italic;
  font-weight: 400;
  letter-spacing: normal;
  font-size: clamp(0.75rem, 1.5vw, 0.875rem);
  color: var(--text-muted);
}

.container {
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  gap: 1.5rem;
  padding-top: 0.5rem;
}

.text-column {
  width: 25%;
  padding: 1rem;
  position: relative;
  color: var(--text-muted);
}

.viz-column {
  width: 75%;
  position: relative;
}

.scroll-section {
  position: relative;
  width: 100%;
}

.sticky-viz {
  position: sticky;
  top: 3.5rem;
  width: 100%;
  height: calc(100vh - 3.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: transparent !important;
  border: none !important;
  outline: none !important;
}

.sticky-viz>div {
  width: 100%;
  padding: 0;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

.sticky-viz svg {
  max-width: 100%;
  height: auto;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

#tech-job-vulnerability,
#tech-job-vulnerability-container,
#tech-job-vulnerability svg,
#tech-job-vulnerability-container svg,
#section-2,
#section-2 .sticky-viz,
#section-2 .sticky-viz > div,
#section-2 .scroll-section,
#section-2 * {
  border: none !important;
  outline: none !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border-width: 0 !important;
  border-style: none !important;
  border-color: transparent !important;
}

#section-2 .sticky-viz {
  padding: 0 !important;
}

/* Remove any default SVG background */
#tech-job-vulnerability svg,
#section-2 svg {
  background-color: transparent !important;
  background-image: none !important;
  border: none !important;
  border-width: 0 !important;
  stroke: none !important;
  stroke-width: 0 !important;
}

/* Ensure no white background from browser defaults */
.scroll-section,
.viz-column {
  background: transparent !important;
}

/* Force remove any white backgrounds from SVG and containers */
#tech-job-vulnerability-container,
#tech-job-vulnerability-container *,
#tech-job-vulnerability,
#tech-job-vulnerability *,
#section-2,
#section-2 * {
  background-color: transparent !important;
  background: transparent !important;
  border: none !important;
  border-width: 0 !important;
  border-style: none !important;
  border-color: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Specifically target SVG elements */
svg {
  background-color: transparent !important;
  background: transparent !important;
}

.text-section {
  position: relative;
  width: 100%;
  display: flex;
  align-items: flex-start;
  padding: 1rem 0;
}

.text-section-content {
  width: 100%;
  padding: 1rem 0;
  /* Position content to appear earlier in the section */
  padding-top: calc(30vh + 1rem);
  margin-top: calc(800px - 30vh);
}

.text-section-content p {
  margin-bottom: 8rem;
  font-size: clamp(0.875rem, 2.5vw, 1.0625rem);
  line-height: 1.75;
  color: var(--text-muted);
  font-family: "Stack Sans Text", sans-serif;
  letter-spacing: -0.01em;
  font-weight: 400;
}

.text-section-content h3 {
  font-family: "Stack Sans Notch", sans-serif;
  font-weight: 600;
  font-size: clamp(0.875rem, 1.75vw, 1rem);
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  margin-top: 0;
  color: var(--text-primary);
}

.text-section-content h3 em {
  font-style: italic;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: normal;
  font-size: clamp(0.9375rem, 2vw, 1.125rem);
  color: var(--text-muted);
}

.text-section-content a {
  text-decoration: none;
  color: var(--text-secondary);
}

.text-section-content a:hover {
  opacity: 0.8;
}

.text-section-content a:visited {
  color: var(--text-secondary);
}

footer {
  max-width: 1400px;
  margin: 2rem auto 1rem;
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

footer p {
  font-size: clamp(0.8125rem, 1.75vw, 0.9375rem);
  color: var(--text-muted);
  margin-bottom: 0;
  font-family: "Stack Sans Text", sans-serif;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

footer a {
  text-decoration: none;
  color: var(--text-secondary);
}

footer a:hover {
  opacity: 0.8;
}

footer a:visited {
  color: var(--text-secondary);
}

/* Mobile message: show desktop-only message below 900px */
@media (max-width: 900px) {
  body::before {
    content: 'This experience is best viewed on a Desktop';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    font-family: "Stack Sans Notch", sans-serif;
    font-size: clamp(1.25rem, 4vw, 1.75rem);
    color: var(--text-primary);
    text-align: center;
    padding: 2rem;
    box-sizing: border-box;
  }

  .header,
  .section-wrapper,
  footer {
    display: none;
  }
}