/* ═══════════════════════════════════════
   @FONT-FACE — LOCAL FONTS
═══════════════════════════════════════ */
@font-face {
  font-family: 'Consolas';
  src: url('../fonts/consola.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Consolas';
  src: url('../fonts/consolab.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Consolas';
  src: url('../fonts/consolai.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Consolas';
  src: url('../fonts/consolaz.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'ElegantIcons';
  src: url('../fonts/ElegantIcons.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ═══════════════════════════════════════
   CSS CUSTOM PROPERTIES
═══════════════════════════════════════ */
:root {
  --bg:           #04091c;
  --bg-section:   #060c22;
  --bg-card:      #0a1228;
  --bg-tag:       #0d1530;

  --text:         #d8dde8;
  --text-muted:   #3a4a6a;
  --text-dim:     #1e2d50;

  --accent:       #00c8e8;
  --accent-glow:  rgba(0, 200, 232, 0.15);
  --accent-dim:   rgba(0, 200, 232, 0.08);

  --border:       #111e3a;
  --border-accent: rgba(0, 200, 232, 0.3);

  --sidebar-w:    48px;
  --section-pad:  80px;

  --font-mono:    'Consolas', 'Courier New', monospace;
  --font-display: 'Consolas', 'Courier New', monospace;
  --font-body:    'Consolas', 'Courier New', monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  background-color: var(--bg);
  background-image: url('../images/pattern-bg.jpg');
  background-repeat: repeat;
  background-size: 480px auto;
  background-blend-mode: overlay;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

ol, ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* ═══════════════════════════════════════
   UTILITY CLASSES
═══════════════════════════════════════ */
/* ElegantIcons utility — use as <span class="ei">&#xe013;</span> */
.ei {
  font-family: 'ElegantIcons';
  font-style: normal;
  font-weight: normal;
  speak: never;
  display: inline-block;
  line-height: 1;
}

.mono    { font-family: var(--font-mono); }
.accent  { color: var(--accent); }
.muted   { color: var(--text-muted); }
.italic  { font-style: italic; }
.spaced  { letter-spacing: 0.35em; }

/* ═══════════════════════════════════════
   SIDEBAR NAVIGATION
═══════════════════════════════════════ */
.sidebar-nav {
  position: fixed;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-dot {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-dim);
  transition: background 0.3s, transform 0.3s;
  text-decoration: none;
}

.nav-dot:hover {
  background: var(--text-muted);
  transform: scale(1.4);
}

.nav-dot.active {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

/* ═══════════════════════════════════════
   SECTIONS
═══════════════════════════════════════ */
.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  scroll-snap-align: start;
  position: relative;
  padding: var(--section-pad) var(--section-pad) var(--section-pad) calc(var(--sidebar-w) + 40px);
}

.section:nth-child(odd) {
  background-color: var(--bg);
}

.section:nth-child(even) {
  background-color: var(--bg-section);
}

.section-inner {
  width: 100%;
  max-width: 900px;
  position: relative;
}

/* Section 02 — contamination bg image */
#s02 {
  background-image: url('../images/contamination.png');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 45% auto;
  background-blend-mode: luminosity;
}


.section-number {
  position: absolute;
  top: -40px;
  right: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

/* Section label — small prefix line */
.section-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* Section headings */
.section-heading {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.section-heading.large  { font-size: clamp(36px, 5.5vw, 64px); }
.section-heading.xlarge { font-size: clamp(42px, 6.5vw, 80px); }

.section-sub {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: -16px;
  margin-bottom: 32px;
}

/* ═══════════════════════════════════════
   SECTION 01 — HERO
═══════════════════════════════════════ */
#s01 {
  min-height: 100vh;
  align-items: flex-start;
  padding-top: 120px;
}

.hero-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.hero-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1.0;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 48px;
  letter-spacing: -0.02em;
}

/* Interest selector */
.interest-prompt {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 560px;
}

.interest-prompt__label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  padding: 10px 14px;
  border: 1px solid var(--border);
  display: inline-block;
}

.interest-options {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
}

.interest-btn {
  flex: 1;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  border-right: 1px solid var(--border);
  transition: background 0.2s, color 0.2s;
  text-align: left;
}

.interest-btn:last-child {
  border-right: none;
}

.interest-btn .accent {
  color: var(--text-muted);
  transition: color 0.2s;
}

.interest-btn.active {
  background: var(--accent-dim);
  color: var(--text);
}

.interest-btn.active .accent {
  color: var(--accent);
}

.interest-btn:hover {
  background: var(--accent-dim);
  color: var(--text);
}

.interest-btn:hover .accent {
  color: var(--accent);
}

/* ═══════════════════════════════════════
   SECTION 03 — TAG GRID
═══════════════════════════════════════ */
.tag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 600px;
}

.tag {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  background: var(--bg-tag);
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  transition: border-color 0.2s, color 0.2s;
}

.tag:hover {
  border-color: var(--border-accent);
  color: var(--text);
}

.tag-num {
  color: var(--text-dim);
  font-size: 10px;
}

/* ═══════════════════════════════════════
   SECTION 04 — WHERE PROJECTS FAIL
═══════════════════════════════════════ */
.fail-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 32px;
  border: 1px solid var(--border);
}

.fail-card {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.fail-card:last-child {
  border-bottom: none;
}

.fail-card:hover {
  background: var(--accent-dim);
}

.fail-card__icon {
  font-size: 20px;
  font-weight: 700;
  min-width: 24px;
  padding-top: 2px;
}

.fail-card__title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.fail-card__text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════
   SECTION 05 — LAYERED CONTROL
═══════════════════════════════════════ */
.layer-tiers {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--border);
  margin-top: 8px;
}

.layer-tier {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-right: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  transition: background 0.2s;
}

.layer-tier:last-child {
  border-right: none;
}

.layer-tier.featured {
  background: var(--accent-dim);
  color: var(--text);
  border-color: var(--border-accent);
}

.tier-sep {
  font-size: 16px;
  opacity: 0.6;
}

/* ═══════════════════════════════════════
   SECTION 06 — WE DESIGN ENVIRONMENTS THAT SCALE
═══════════════════════════════════════ */
.scale-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: center;
}

.scale-image {
  position: relative;
  aspect-ratio: 4/3;
  border: 1px solid var(--border);
  overflow: hidden;
}

.scale-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) saturate(0.6);
  display: none; /* shown by JS when loaded */
}

.scale-image img.loaded {
  display: block;
}

.image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
}

.scale-image img.loaded + .image-placeholder {
  display: none;
}

.process-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
}

.process-step {
  font-size: 11px;
  color: var(--text-muted);
  padding: 6px 10px;
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
}

.process-step:hover {
  border-color: var(--border-accent);
  color: var(--text);
}

.process-arrow {
  font-size: 12px;
  opacity: 0.5;
}

/* ═══════════════════════════════════════
   SECTION 07 — PRECISION MATTERS MOST
═══════════════════════════════════════ */
.industry-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.industry-item {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.industry-item:first-child {
  border-top: 1px solid var(--border);
}

.industry-num {
  font-size: 10px;
  min-width: 20px;
  color: var(--text-dim);
}

.industry-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 4vw, 40px);
  letter-spacing: 0.02em;
  line-height: 1;
  transition: letter-spacing 0.3s;
}

.industry-item:hover .industry-name {
  letter-spacing: 0.08em;
}

/* ═══════════════════════════════════════
   SECTION 08 — FASTER / SAFER / CLEANER
═══════════════════════════════════════ */
.benefit-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 24px;
  width: 100%;
}

.benefit-row {
  display: grid;
  grid-template-columns: 160px 32px 1fr;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.benefit-row:first-child {
  border-top: 1px solid var(--border);
}

.benefit-label {
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
}

.benefit-sep {
  font-size: 18px;
  text-align: center;
  opacity: 0.5;
}

.benefit-desc {
  font-size: 12px;
  color: var(--text-muted);
  padding: 10px 16px;
  border: 1px solid var(--border);
  display: inline-block;
  transition: border-color 0.2s, color 0.2s;
}

.benefit-row:hover .benefit-desc {
  border-color: var(--border-accent);
  color: var(--text);
}

/* ═══════════════════════════════════════
   SECTION 09 — FROM DENVER TO THE WORLD
═══════════════════════════════════════ */
.global-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: center;
}

.global-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.global-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.global-item:first-child {
  border-top: 1px solid var(--border);
}

.global-num {
  font-size: 10px;
  min-width: 20px;
  color: var(--text-dim);
}

.global-image {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--border);
  overflow: hidden;
  border-radius: 50%;
}

.global-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6) saturate(0.4) hue-rotate(200deg);
  display: none;
}

.global-image img.loaded {
  display: block;
}

.global-image .image-placeholder {
  background: var(--bg-card);
  border-radius: 50%;
}

/* ═══════════════════════════════════════
   SECTION 10 — CTA
═══════════════════════════════════════ */
#s10 {
  min-height: 100vh;
  background: var(--bg) !important;
  border-bottom: none;
}

.cta-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cta-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 88px);
  line-height: 1.0;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.cta-actions {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  margin-top: 16px;
  max-width: 560px;
}

.cta-btn {
  flex: 1;
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  border-right: 1px solid var(--border);
  text-align: left;
  transition: background 0.2s, color 0.2s;
}

.cta-btn:last-child {
  border-right: none;
}

.cta-btn .accent {
  color: var(--text-muted);
  transition: color 0.2s;
}

.cta-btn:hover {
  background: var(--accent-dim);
  color: var(--text);
}

.cta-btn:hover .accent {
  color: var(--accent);
}

.cta-btn.primary {
  background: var(--accent-dim);
}

.cta-btn.primary .accent {
  color: var(--accent);
}

/* ═══════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
═══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ═══════════════════════════════════════
   NOISE TEXTURE OVERLAY
═══════════════════════════════════════ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  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");
  background-repeat: repeat;
  background-size: 128px 128px;
}

/* ═══════════════════════════════════════
   SCANLINE EFFECT (subtle)
═══════════════════════════════════════ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 199;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.04) 2px,
    rgba(0,0,0,0.04) 4px
  );
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 768px) {
  :root {
    --section-pad: 48px;
  }

  .section {
    padding-left: calc(var(--sidebar-w) + 16px);
  }

  .tag-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .scale-layout,
  .global-layout {
    grid-template-columns: 1fr;
  }

  .scale-image,
  .global-image {
    max-width: 240px;
  }

  .benefit-row {
    grid-template-columns: 120px 24px 1fr;
  }

  .benefit-label {
    font-size: 16px;
  }

  .layer-tiers {
    flex-direction: column;
  }

  .layer-tier {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .interest-options {
    flex-direction: column;
  }

  .interest-btn {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .cta-actions {
    flex-direction: column;
  }

  .cta-btn {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}