:root {
  --bg: #ffffff;
  --surface: #f3f5f8;
  --surface-2: #e9edf3;
  --text: #0a0d12;
  --text-muted: #5b6472;
  --line: #dde2e9;
  --accent: #155eef;
  --accent-rgb: 21, 94, 239;
  --accent-2: #0a2540;
  --glow: 0 0 0 rgba(21, 94, 239, 0);
  --icon-fill: #155eef;
  --shadow: 0 10px 30px rgba(10, 13, 18, 0.08);
  --radius: 14px;
}
html[data-theme='dark'] {
  --bg: #05070a;
  --surface: #0d1117;
  --surface-2: #121822;
  --text: #eef2f7;
  --text-muted: #8b99ac;
  --line: #1c2531;
  --accent: #3fb0ff;
  --accent-rgb: 63, 176, 255;
  --accent-2: #8fd6ff;
  --glow: 0 0 8px rgba(63, 176, 255, 0.9), 0 0 22px rgba(63, 176, 255, 0.5);
  --icon-fill: #3fb0ff;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  transition:
    background 0.5s ease,
    color 0.5s ease;
  overflow-x: hidden;
}
h1,
h2,
h3 {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.02em;
}
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 14px;
}
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
a {
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}

/* progress line */
#progressLine {
  position: fixed;
  top: 0;
  left: 22px;
  width: 2px;
  height: 100vh;
  z-index: 40;
  background: var(--line);
  display: none;
}
#progressFill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--accent), transparent);
  box-shadow: var(--glow);
  transition: height 0.08s linear;
}
#progressDot {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  top: 0%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: var(--glow);
  transition: top 0.08s linear;
}
@media (min-width: 1200px) {
  #progressLine {
    display: block;
  }
}

/* cursor glow */
#cursorGlow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(21, 94, 239, 0.15), transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
}
html[data-theme='dark'] #cursorGlow {
  background: radial-gradient(
    circle,
    rgba(63, 176, 255, 0.18),
    transparent 70%
  );
}

/* nav */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  gap: 18px;
}
.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  white-space: nowrap;
}
.logo span {
  color: var(--accent);
}
.navlinks {
  display: flex;
  gap: 26px;
  list-style: none;
  font-size: 0.86rem;
}
.navlinks a {
  text-decoration: none;
  color: var(--text-muted);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}
.navlinks a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 1.5px;
  width: 0%;
  background: var(--accent);
  box-shadow: var(--glow);
  transition: width 0.35s ease;
}
.navlinks a:hover {
  color: var(--text);
}
.navlinks a:hover::after {
  width: 100%;
}
@media (max-width: 900px) {
  .navlinks {
    display: none;
  }
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.lang-btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 1px;
  padding: 8px 11px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition:
    color 0.3s ease,
    background 0.3s ease;
}
.lang-btn.active {
  color: #fff;
  background: var(--accent);
}
.lang-btn:not(.active):hover {
  color: var(--text);
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.3s ease,
    transform 0.3s ease;
  flex-shrink: 0;
}
.theme-toggle:hover {
  transform: scale(1.08);
  border-color: var(--accent);
}
.theme-toggle svg {
  width: 19px;
  height: 19px;
  stroke: var(--icon-fill);
  transition: transform 0.5s cubic-bezier(0.4, 1.8, 0.5, 1);
  filter: drop-shadow(var(--glow));
}
html[data-theme='dark'] .theme-toggle svg {
  transform: rotate(180deg);
}

/* reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.7, 0.3, 1),
    transform 0.8s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.stagger > * {
  transition-delay: calc(var(--i, 0) * 90ms);
}

/* hero */
header.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 90px;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 70% 30%, black, transparent 65%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.9rem);
  line-height: 1.06;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero h1 .accent {
  color: var(--accent);
  text-shadow: none;
}
html[data-theme='dark'] .hero h1 .accent {
  text-shadow: 0 0 24px rgba(63, 176, 255, 0.55);
}
.hero p.lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 34px;
}
@media (max-width: 860px) {
  .hero p.lead {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
@media (max-width: 860px) {
  .hero-actions {
    justify-content: center;
  }
}
.btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-block;
  position: relative;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--glow);
}
.btn-primary:hover {
  transform: translateY(-3px);
}
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}
.btn-pulse {
  background: var(--accent);
  color: #fff;
  border: none;
  animation: btnPulse 2s ease-in-out infinite;
}
.btn-pulse:hover {
  transform: translateY(-3px);
  animation-play-state: paused;
  box-shadow:
    0 0 0 6px rgba(var(--accent-rgb), 0.18),
    0 0 22px rgba(var(--accent-rgb), 0.7);
}
@keyframes btnPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.55);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(var(--accent-rgb), 0);
  }
}

.photo-wrap {
  position: relative;
  justify-self: center;
}
.photo-ring {
  width: 280px;
  border-radius: 22px;
  position: relative;
  background: linear-gradient(
    155deg,
    var(--accent),
    transparent 55%,
    var(--accent) 100%
  );
  padding: 3px;
  box-shadow: var(--glow);
}
.photo-inner {
  width: 100%;
  border-radius: 19px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 4px solid var(--bg);
}
.photo-inner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.photo-placeholder {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 100px 0;
}
.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scroll-cue .line {
  width: 1px;
  height: 34px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.scroll-cue .line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue {
  0% {
    top: -100%;
  }
  60% {
    top: 100%;
  }
  100% {
    top: 100%;
  }
}

/* sections */
section {
  padding: 120px 0;
  position: relative;
}
.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 600;
}

.about-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.about-paragraphs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 60px;
}
@media (max-width: 640px) {
  .about-paragraphs {
    grid-template-columns: 1fr;
  }
}
.about-paragraphs p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 18px;
  transition:
    color 0.5s ease,
    text-shadow 0.5s ease;
  cursor: default;
}
.about-paragraphs p:hover {
  color: var(--accent);
  text-shadow:
    0 0 1px rgba(var(--accent-rgb), 0.5),
    0 0 14px rgba(var(--accent-rgb), 0.35);
}
.about-paragraphs .accent {
  color: var(--accent);
  font-weight: 600;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 8px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition:
    transform 0.35s ease,
    border-color 0.35s ease;
}
.stat:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.stat .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--accent);
}
.stat .lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.value-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition:
    transform 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease;
  transform-style: preserve-3d;
}
.value-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}
.icon-neon {
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  stroke: var(--icon-fill);
  fill: none;
  stroke-width: 1.6;
  filter: drop-shadow(var(--glow));
}
.value-card h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
  font-weight: 600;
}
.value-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.looking-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.looking-item {
  display: flex;
  gap: 14px;
  padding: 20px;
  border-left: 2px solid var(--line);
  transition:
    border-color 0.35s ease,
    transform 0.35s ease;
}
.looking-item:hover {
  border-color: var(--accent);
  transform: translateX(6px);
}
.looking-item .n {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--accent);
  font-size: 0.8rem;
  padding-top: 2px;
}
.looking-item h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  font-weight: 600;
}
.looking-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.segments {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.segment {
  border-top: 1px solid var(--line);
  padding: 38px 0;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 36px;
}
.segment:last-child {
  border-bottom: 1px solid var(--line);
}
@media (max-width: 760px) {
  .segment {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
.segment .seg-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.segment .seg-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.segment h3 {
  font-size: 1.35rem;
  font-weight: 600;
  transition: transform 0.4s ease;
}
.segment:hover h3 {
  transform: translateX(6px);
  color: var(--accent);
}
.segment .seg-org {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.segment-body p {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.7;
  margin-bottom: 14px;
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-muted);
  transition:
    border-color 0.3s ease,
    color 0.3s ease;
}
.segment:hover .tag {
  border-color: var(--accent);
}
.seg-btn {
  align-self: flex-start;
  margin-top: 20px;
  padding: 11px 22px;
  font-size: 0.72rem;
}

.ideas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.idea-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.4s ease,
    border-color 0.4s ease;
}
.idea-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: var(--accent);
}
.idea-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -40%;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21, 94, 239, 0.12), transparent 70%);
  transition: opacity 0.4s ease;
  opacity: 0;
}
.idea-card:hover::before {
  opacity: 1;
}
.idea-quote {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;
}
.idea-card p.desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

footer {
  padding: 100px 0 60px;
  text-align: center;
}
footer h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 18px;
}
footer p {
  color: var(--text-muted);
  margin-bottom: 34px;
}
.contact-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 70px;
}
.foot-bottom {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-family: 'IBM Plex Mono', monospace;
}

.magnetic {
  display: inline-block;
}
