/* ===================================================================
   Increment Capital — Premium Dark / High-Tech Theme
   =================================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Palette */
  --bg:          #0a0b0f;
  --bg-2:        #0d0f15;
  --bg-card:     rgba(255, 255, 255, 0.03);
  --bg-glass:    rgba(255, 255, 255, 0.04);
  --border:      rgba(255, 255, 255, 0.07);
  --border-glow: rgba(56, 189, 248, 0.25);
  --text:        #e2e8f0;
  --text-dim:    #94a3b8;
  --text-muted:  #64748b;

  /* Brand accents — pulled from logo (teal / green / blue) */
  --brand-teal:  #2bb3c9;
  --brand-green: #2fbf7a;
  --brand-blue:  #2876c4;
  --brand-logo-1:#1e6978;  /* logo "increment" teal */
  --brand-logo-2:#8b8b8b;  /* logo "capital" gray  */

  /* Primary accent (electric cyan) for dark-mode */
  --accent:      #38bdf8;
  --accent-2:    #818cf8;
  --accent-glow: rgba(56, 189, 248, 0.18);
  --white:       #ffffff;

  /* Typography */
  --font-body:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-head:  'Syne', 'Inter', sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', Consolas, monospace;

  /* Layout */
  --section-py: clamp(5rem, 10vw, 9rem);
  --container:  1200px;
  --radius:     16px;
  --radius-sm:  10px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* Subtle noise/gradient base */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(56, 189, 248, 0.06), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(129, 140, 248, 0.05), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: 90%;
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ---------- Logo (SVG) ---------- */
.logo-svg {
  width: 220px;
  height: 35px;
  display: block;
  overflow: visible;
}
.logo-svg--sm {
  width: 185px;
  height: 30px;
}
/* Dark-mode adaption: "increment" = cyan accent, "capital" = light gray */
.logo-word-1 {
  font-family: var(--font-body);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.01em;
  fill: var(--accent);
}
.logo-word-2 {
  font-family: var(--font-body);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.01em;
  fill: #c5cad3;
}
.logo-plus {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  fill: #9ca3af;
  letter-spacing: -0.02em;
}
.logo-svg rect {
  filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.3));
}

/* ---------- Scroll Progress Bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-teal), var(--brand-green), var(--brand-blue));
  z-index: 9999;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
  transition: width .1s linear;
}

/* ---------- Grid Overlay (subtle tech texture) ---------- */
.grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 1;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  transition: all .3s ease;
  border: none;
  position: relative;
}
.btn svg { transition: transform .3s ease; }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.25);
}
.btn--primary:hover {
  box-shadow: 0 0 50px rgba(56, 189, 248, 0.5);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--lg {
  padding: 1.1rem 2.8rem;
  font-size: 1rem;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all .4s ease;
}
.header.scrolled {
  background: rgba(10, 11, 15, 0.85);
  backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  padding: .7rem 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 3;
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color .3s;
  letter-spacing: .01em;
  display: inline-flex;
  align-items: baseline;
  gap: .35rem;
}
.nav__link:hover { color: var(--white); }
.nav__num {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--accent);
  opacity: .7;
}

.nav__link--cta {
  background: var(--accent);
  color: var(--bg);
  padding: .55rem 1.4rem;
  border-radius: 100px;
  font-weight: 600;
}
.nav__link--cta:hover {
  color: var(--bg);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.35);
}
.nav__link--cta .arrow {
  transition: transform .3s ease;
  display: inline-block;
}
.nav__link--cta:hover .arrow { transform: translateX(3px); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s ease;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 0 4rem;
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: left .15s ease-out, top .15s ease-out;
  filter: blur(20px);
}

/* HUD corner ornaments */
.hud {
  position: absolute;
  width: 32px;
  height: 32px;
  pointer-events: none;
  z-index: 2;
}
.hud span {
  position: absolute;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}
.hud span:nth-child(1) { width: 20px; height: 1px; }
.hud span:nth-child(2) { width: 1px; height: 20px; }
.hud--tl { top: 90px; left: 24px; }
.hud--tl span:nth-child(1) { top: 0; left: 0; }
.hud--tl span:nth-child(2) { top: 0; left: 0; }
.hud--tr { top: 90px; right: 24px; }
.hud--tr span:nth-child(1) { top: 0; right: 0; }
.hud--tr span:nth-child(2) { top: 0; right: 0; }
.hud--bl { bottom: 24px; left: 24px; }
.hud--bl span:nth-child(1) { bottom: 0; left: 0; }
.hud--bl span:nth-child(2) { bottom: 0; left: 0; }
.hud--br { bottom: 24px; right: 24px; }
.hud--br span:nth-child(1) { bottom: 0; right: 0; }
.hud--br span:nth-child(2) { bottom: 0; right: 0; }

/* Status chip */
.status-chip {
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .4rem 1rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: rgba(10, 11, 15, 0.55);
  backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 8px var(--brand-green);
  position: relative;
}
.status-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--brand-green);
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { opacity: .6; transform: scale(.5); }
  100% { opacity: 0;  transform: scale(1.8); }
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 880px;
}

.hero__label {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.label-bracket {
  color: var(--text-muted);
  margin: 0 .35rem;
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.type-line {
  display: inline-block;
}
.type-line--accent {
  background: linear-gradient(90deg, var(--brand-teal), var(--brand-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  font-size: clamp(.95rem, 1.4vw, 1.12rem);
  color: var(--text-dim);
  line-height: 1.8;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

/* Data ticker */
.ticker {
  margin-top: 3rem;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: .75rem 0;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.ticker__track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: tickerSlide 40s linear infinite;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .05em;
  color: var(--text-muted);
  white-space: nowrap;
}
.ticker__item em {
  font-style: normal;
  color: var(--accent);
  margin-right: .5rem;
}
@keyframes tickerSlide {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  z-index: 2;
}
.hero__scroll span {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%      { opacity: .3; transform: scaleY(.6); }
}

/* ---------- Sections (shared) ---------- */
.section {
  padding: var(--section-py) 0;
  position: relative;
  z-index: 2;
}

.section-id {
  position: absolute;
  top: 3rem;
  right: 5%;
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--text-muted);
  letter-spacing: .05em;
  opacity: .5;
}

.section__label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
  position: relative;
  padding-left: 1.5rem;
}
.section__label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1rem;
  height: 1px;
  background: var(--accent);
}

.section__title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.02em;
  color: var(--white);
  max-width: 800px;
  margin-bottom: 2rem;
}
.section__title--left { text-align: left; }

/* ---------- Mission ---------- */
.mission {
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.mission .section__label { display: inline-block; }
.mission .section__label::before { display: none; }
.mission .section__label { padding-left: 0; }

.mission .section__title {
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  font-weight: 500;
  color: var(--text);
  line-height: 1.65;
}

/* ---------- Partnership Trajectory Graphic ---------- */
.trajectory-wrap {
  margin-top: 4rem;
  padding: 2rem 1rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(56,189,248,0.02), rgba(56,189,248,0));
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}
.trajectory-wrap::before,
.trajectory-wrap::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
  pointer-events: none;
}
.trajectory-wrap::before {
  top: 10%; left: 5%;
  background: radial-gradient(circle, rgba(56,189,248,0.5), transparent 70%);
}
.trajectory-wrap::after {
  bottom: 0; right: 5%;
  background: radial-gradient(circle, rgba(40,118,196,0.5), transparent 70%);
}

.trajectory-svg {
  width: 100%;
  height: auto;
  display: block;
  max-height: 480px;
  position: relative;
  z-index: 1;
}

/* Sources */
.tr-source-glow {
  fill: rgba(56,189,248,0.08);
}
.tr-source-ring {
  fill: none;
  stroke: rgba(56,189,248,0.4);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  transform-origin: center;
  animation: tr-rotate 30s linear infinite;
}
.tr-source:nth-of-type(2) .tr-source-ring { animation-direction: reverse; }
.tr-source-fill {
  fill: rgba(10,11,15,0.8);
  stroke: #38bdf8;
  stroke-width: 1.5;
  filter: drop-shadow(0 0 6px rgba(56,189,248,0.35));
}
.tr-source-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  fill: var(--text-dim);
  font-weight: 500;
}

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

/* Converging lines */
.tr-converge {
  fill: none;
  stroke: url(#curveGrad);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 4 4;
  opacity: .55;
  animation: tr-dash 2s linear infinite;
}
@keyframes tr-dash {
  to { stroke-dashoffset: -16; }
}

/* Central core */
.tr-core-ring-3 {
  fill: none;
  stroke: rgba(56,189,248,0.25);
  stroke-width: 1;
  transform-origin: 220px 305px;
  animation: tr-rotate 18s linear infinite;
  stroke-dasharray: 6 6;
}
.tr-core-ring-2 {
  fill: none;
  stroke: rgba(56,189,248,0.5);
  stroke-width: 1;
}
.tr-core-ring-1 {
  animation: tr-pulse 2s ease-in-out infinite;
}
@keyframes tr-pulse {
  0%, 100% { opacity: 1;   transform: scale(1);   transform-origin: 220px 305px; }
  50%      { opacity: .65; transform: scale(1.18); transform-origin: 220px 305px; }
}

/* Trajectory curve */
.tr-curve-bg {
  fill: none;
  stroke: rgba(56,189,248,0.12);
  stroke-width: 2;
  stroke-linecap: round;
}
.tr-curve-fg {
  fill: none;
  stroke: url(#curveGrad);
  stroke-width: 2.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(56,189,248,0.45));
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: tr-draw 2.8s ease-out .6s forwards;
}
@keyframes tr-draw {
  to { stroke-dashoffset: 0; }
}

/* Milestone nodes */
.tr-milestone circle {
  fill: #0a0b0f;
  stroke: #38bdf8;
  stroke-width: 2;
  filter: drop-shadow(0 0 4px rgba(56,189,248,0.6));
  animation: tr-node-pulse 2.8s ease-in-out infinite;
}
.tr-milestone:nth-of-type(2) circle { animation-delay: .4s; }
.tr-milestone:nth-of-type(3) circle { animation-delay: .8s; }
.tr-milestone:nth-of-type(4) circle { animation-delay: 1.2s; }
@keyframes tr-node-pulse {
  0%, 100% { r: 7;   opacity: 1; }
  50%      { r: 8.5; opacity: .75; }
}
.tr-milestone-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  fill: var(--text-dim);
  font-weight: 500;
}

/* Enduring Business tower */
.tr-enduring rect[filter] {
  animation: tr-tower-glow 3s ease-in-out infinite;
}
@keyframes tr-tower-glow {
  0%, 100% { opacity: 1;   }
  50%      { opacity: .82; }
}
.tr-end-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  fill: #e2e8f0;
}

/* Traveling particle */
.tr-traveler {
  opacity: .9;
}
.tr-traveler-core {
  opacity: 1;
}

/* Axis labels */
.tr-axis-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .18em;
  fill: var(--text-muted);
  font-weight: 500;
}

/* ---------- Approach ---------- */
.approach__sub {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 760px;
  margin-bottom: 3.5rem;
  line-height: 1.8;
}

.approach__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.4rem 2rem;
  backdrop-filter: blur(12px);
  transition: all .4s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .4s ease;
}
.card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(56, 189, 248, 0.08);
}
.card:hover::before { opacity: 1; }

.card__index {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--text-muted);
  letter-spacing: .05em;
}

/* HUD corner brackets on cards */
.card__corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--accent);
  border-style: solid;
  border-width: 0;
  opacity: 0;
  transition: opacity .4s ease;
}
.card:hover .card__corner { opacity: .8; }
.card__corner--tl { top: 10px; left: 10px;  border-top-width: 1px;    border-left-width: 1px; }
.card__corner--tr { top: 10px; right: 10px; border-top-width: 1px;    border-right-width: 1px; }
.card__corner--bl { bottom: 10px; left: 10px;  border-bottom-width: 1px; border-left-width: 1px; }
.card__corner--br { bottom: 10px; right: 10px; border-bottom-width: 1px; border-right-width: 1px; }

.card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.08);
  color: var(--accent);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  transition: all .3s ease;
}
.card:hover .card__icon {
  background: rgba(56, 189, 248, 0.15);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.card__title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: .8rem;
  position: relative;
  z-index: 1;
}

.card__text {
  font-size: .9rem;
  color: var(--text-dim);
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

/* ---------- Thesis (AI Value Chain) ---------- */
.thesis {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.025) 0%, transparent 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

/* Terminal console */
.console {
  max-width: 680px;
  margin: 2rem auto 3.5rem;
  text-align: left;
  background: rgba(3, 5, 10, 0.8);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(56, 189, 248, 0.05);
  backdrop-filter: blur(10px);
}
.console__bar {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem .9rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}
.console__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.console__dot:nth-child(1) { background: #ff5f57; }
.console__dot:nth-child(2) { background: #febc2e; }
.console__dot:nth-child(3) { background: #28c840; }
.console__title {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--text-muted);
}
.console__body {
  padding: 1.1rem 1.3rem;
  font-family: var(--font-mono);
  font-size: .82rem;
  line-height: 1.85;
  color: var(--text);
}
.console__line--dim { color: var(--text-muted); }
.console__line--ok  { color: var(--brand-green); }
.console__prompt {
  color: var(--accent);
  margin-right: .5rem;
}
.console__cmd { color: var(--white); }
.console__highlight {
  color: var(--brand-green);
  font-weight: 600;
}
.console__caret {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--accent);
  vertical-align: middle;
  animation: caretBlink 1.1s steps(2) infinite;
}
@keyframes caretBlink {
  50% { opacity: 0; }
}

.thesis__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: 1rem;
}

.thesis__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
  padding: 2rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: all .35s ease;
  position: relative;
  overflow: hidden;
}
.thesis__item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transition: left .6s ease;
}
.thesis__item:hover {
  border-color: var(--border-glow);
  background: rgba(56, 189, 248, 0.04);
  transform: translateY(-3px);
}
.thesis__item:hover::before { left: 100%; }

.thesis__icon {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.06);
  font-family: var(--font-mono);
}

.thesis__name {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
}

/* ---------- Experience ---------- */
.experience__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.exp-card {
  padding: 2.2rem 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  transition: all .35s ease;
  position: relative;
}
.exp-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: var(--accent);
  border-radius: 0 0 3px 3px;
  transition: height .4s ease;
  box-shadow: 0 0 10px var(--accent);
}
.exp-card:hover {
  border-color: var(--border-glow);
}
.exp-card:hover::after {
  height: 100%;
}

.exp-card__title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: .6rem;
}

.exp-card__text {
  font-size: .88rem;
  color: var(--text-dim);
  line-height: 1.75;
}

/* ---------- Portfolio ---------- */
.portfolio { text-align: center; }
.portfolio .section__label { display: inline-block; }
.portfolio .section__label::before { display: none; }
.portfolio .section__label { padding-left: 0; }

.portfolio .section__title {
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 500;
  color: var(--text);
  line-height: 1.65;
}

.portfolio__sub {
  font-size: .95rem;
  color: var(--text-dim);
  max-width: 720px;
  margin: 0 auto 3.5rem;
  line-height: 1.8;
}

.portfolio__marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.portfolio__track {
  display: flex;
  gap: 1.5rem;
  animation: marquee 45s linear infinite;
  width: max-content;
}

.portfolio__company {
  flex-shrink: 0;
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-glass);
  font-family: var(--font-mono);
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-dim);
  white-space: nowrap;
  transition: all .3s;
  letter-spacing: .02em;
}
.portfolio__company:hover {
  color: var(--accent);
  border-color: var(--border-glow);
  background: rgba(56, 189, 248, 0.05);
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Contact ---------- */
.contact {
  text-align: center;
  padding: var(--section-py) 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(56, 189, 248, 0.08) 0%, transparent 70%);
  position: relative;
}
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black, transparent);
  pointer-events: none;
}

.contact__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact .section__label { display: inline-block; padding-left: 0; }
.contact .section__label::before { display: none; }

.contact .btn { margin-top: 1rem; }

.contact__locations {
  margin-top: 2.5rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--text-muted);
  letter-spacing: .08em;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  position: relative;
  z-index: 2;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__logo { display: flex; align-items: center; }

.footer__nav {
  display: flex;
  gap: 1.5rem;
}
.footer__nav a {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--text-muted);
  transition: color .3s;
  letter-spacing: .04em;
}
.footer__nav a:hover { color: var(--white); }

.footer__copy {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--text-muted);
  letter-spacing: .05em;
}

/* ---------- Scroll-reveal animation ---------- */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 1024px) {
  .approach__grid { grid-template-columns: 1fr 1fr; }
  .thesis__grid   { grid-template-columns: repeat(3, 1fr); }
  .hud { display: none; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: 0;
    background: rgba(10, 11, 15, 0.96);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
    z-index: 999;
  }
  .nav.open {
    opacity: 1;
    pointer-events: all;
  }
  .nav__link { font-size: 1.2rem; }
  .nav__link--cta { font-size: 1rem; }

  .hero__title { font-size: clamp(2rem, 6vw, 2.8rem); }
  .status-chip { font-size: .65rem; padding: .35rem .8rem; }
  .section-id { display: none; }

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

  .mission__stats { gap: 1rem; }
  .stat { min-width: 140px; padding: 1.2rem 1rem; }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
  .footer__nav { justify-content: center; flex-wrap: wrap; }

  .logo-svg { width: 140px; height: 30px; }
  .console { font-size: .7rem; }
}

@media (max-width: 480px) {
  .thesis__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}
