/* ── TOKENS ─────────────────────────────────────────────────── */
:root {
  /* Light surfaces */
  --bg:        #ffffff;
  --bg2:       #f2f6fc;
  --surface:   #e8eef8;
  --surface2:  #dce4f2;

  /* Borders */
  --border:    rgba(10,30,90,.07);
  --border2:   rgba(10,30,90,.14);

  /* Text */
  --text:      #111827;
  --muted:     #4a5872;
  --faint:     #8898b6;

  /* Brand blue — single coherent ramp */
  --blue:      #2563eb;
  --blue-lt:   #60a5fa;
  --blue-dim:  rgba(37,99,235,.13);

  /* Accent deep blue (replaces red) */
  --red:       #1a3d7e;
  --red-lt:    #2a5298;

  /* Dark navy palette — unified */
  --navy:      #080f1e;   /* nav, footer, deepest bg */
  --navy-mid:  #0f1d38;   /* dark section bg (process, cad-viewer) */
  --navy-hero: #0c1e3e;   /* hero gradient base */

  /* Legacy alias */
  --dark: var(--navy);

  --font-mono:    'IBM Plex Mono', monospace;
  --font-display: 'Oswald', sans-serif;
  --font-serif:   'Playfair Display', serif;
  --font-body:    'Source Sans 3', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  overflow-x: hidden;
}


/* Very subtle background grid */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
}

::selection { background: var(--blue-dim); color: var(--blue); }

.accent-red { color: var(--red); }
.accent-green { color: #22a85a; font-weight: 700; }
.accent-blue  { color: var(--blue-lt); font-weight: 600; }


/* ── NAV ─────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 56px; height: 68px;
  background: rgba(12,22,50,.82);
  border-bottom: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.nav-logo img { height: 40px; width: auto; display: block; }
.nav-right { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 26px; list-style: none; }
.nav-links a {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,.78); text-decoration: none;
  transition: color .2s; position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1.5px; background: var(--blue-lt);
  transform: scaleX(0); transition: transform .25s; transform-origin: left;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.lang-toggle {
  display: flex; gap: 2px; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09); padding: 3px; border-radius: 3px;
}
.lang-btn {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 1.5px;
  font-weight: 600; padding: 5px 10px; border: none; background: transparent;
  color: rgba(255,255,255,.45); cursor: pointer; transition: color .2s, background .2s; border-radius: 2px;
}
.lang-btn.active { background: var(--blue); color: #fff; }

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 5px; cursor: pointer;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: rgba(255,255,255,.75); border-radius: 1px;
  transition: transform .25s, opacity .25s;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.nav-mobile {
  display: none; position: fixed; top: 68px; left: 0; right: 0;
  background: rgba(8,15,30,.99); border-bottom: 1px solid rgba(255,255,255,.06);
  z-index: 999; padding: 8px 24px 20px; backdrop-filter: blur(20px);
}
.nav-mobile.open { display: block; }
.nav-mobile ul { list-style: none; }
.nav-mobile ul a {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,.52); text-decoration: none;
  display: block; padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.06); transition: color .2s;
}
.nav-mobile ul a:hover { color: #fff; }
.nav-mobile ul li:last-child a { border-bottom: none; }

/* ── HERO ────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  padding-top: 68px;
  background: linear-gradient(150deg, var(--navy-hero) 0%, #1a3d7e 50%, var(--navy-hero) 100%);
  position: relative; overflow: hidden;
}
#hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 15% 60%, rgba(37,99,235,.35) 0%, transparent 55%),
    radial-gradient(ellipse at 88% 20%, rgba(96,165,250,.22) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 100%, rgba(20,60,180,.55) 0%, transparent 50%);
}
.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 64px; position: relative; z-index: 2;
  transition: opacity .15s linear; will-change: opacity;
}
.hero-tag {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 3px; color: var(--blue-lt); text-transform: uppercase;
  margin-bottom: 24px; opacity: 0; animation: fadeUp .7s .15s forwards;
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(64px, 8.5vw, 112px);
  line-height: 1.3; letter-spacing: 1px; color: #fff;
  margin-bottom: 12px; padding-bottom: 10px;
  opacity: 0; animation: fadeUp .8s .3s forwards;
  position: relative;
}
.hero-name span {
  display: inline-block;
  background: linear-gradient(90deg, var(--blue-lt) 0%, var(--blue-lt) 30%, #c8dffe 50%, var(--blue-lt) 70%, var(--blue-lt) 100%);
  background-size: 300% 100%;
  background-position: 0% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: designsSweep 7s 2s ease-in-out infinite;
}
@keyframes designsSweep {
  0%, 10%  { background-position: 0% 0; }
  55%      { background-position: 100% 0; }
  100%     { background-position: 0% 0; }
}
.hero-title {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(15px, 1.6vw, 20px);
  color: rgba(255,255,255,.55); margin-top: 8px;
  opacity: 0; animation: fadeUp .8s .45s forwards;
}
.hero-tagline {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--blue-lt); margin-top: 8px;
  opacity: 0; animation: fadeUp .8s .5s forwards;
}
.hero-desc {
  font-size: 15.5px; line-height: 1.85; color: rgba(255,255,255,.6);
  margin-top: 28px; max-width: 420px;
  opacity: 0; animation: fadeUp .8s .6s forwards;
}
.hero-desc strong { color: var(--blue-lt); font-weight: 600; }
.hero-cta {
  display: flex; gap: 14px; margin-top: 44px; flex-wrap: wrap;
  opacity: 0; animation: fadeUp .8s .75s forwards;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 32px;
  background: var(--blue); color: #fff;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; text-decoration: none;
  border: 2px solid var(--blue);
  transition: background .2s, border-color .2s, transform .25s, box-shadow .25s;
}
.btn-primary:hover {
  background: var(--blue-lt); border-color: var(--blue-lt);
  transform: translate(-2px,-2px); box-shadow: 6px 6px 0 rgba(26,95,212,.28);
}
.btn-outline {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 32px;
  border: 2px solid rgba(255,255,255,.22); color: rgba(255,255,255,.7);
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 2px; text-transform: uppercase; text-decoration: none;
  transition: border-color .25s, color .25s, transform .25s;
}
.btn-outline:hover { border-color: var(--blue-lt); color: var(--blue-lt); transform: translate(-2px,-2px); }

#hero3d {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 5; display: block;
}
#hero3d-drag {
  position: absolute; right: 0; top: 0; width: 50%; height: 100%; z-index: 6;
  cursor: default;
}
#hero3d-drag::after {
  content: 'CLICK TO EXPLODE';
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px;
  color: rgba(255,255,255,.30); white-space: nowrap;
  opacity: 0; transition: opacity .3s;
  pointer-events: none;
}
#hero3d-drag:hover::after {
  opacity: 1;
}
.hero-right {
  position: relative; z-index: 7; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
.viewer-controls {
  position: absolute; top: 18px; right: 18px;
  display: flex; flex-direction: column; gap: 5px;
  pointer-events: auto;
}
.vctrl {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 1px;
  padding: 7px 13px; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.45);
  cursor: pointer; transition: all .2s; backdrop-filter: blur(4px);
}
.vctrl:hover, .vctrl.active { border-color: var(--blue-lt); color: var(--blue-lt); background: rgba(26,95,212,.22); }
.viewer-hint {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,.25);
  pointer-events: none;
  display: flex; align-items: center; gap: 8px;
  animation: pulse 2.5s ease-in-out infinite;
}
.viewer-hint::before,.viewer-hint::after { content:''; display:block; width:18px; height:1px; background:rgba(255,255,255,.15); }

.hero-stats {
  position: absolute; bottom: 0; left: 0; right: 50%;
  padding: 24px 64px; display: flex; gap: 48px;
  background: rgba(0,0,0,.55); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,.06);
  opacity: 0; animation: fadeUp .8s 1.05s forwards;
}
.stat { display: flex; flex-direction: column; gap: 3px; }
.stat-num { font-family: var(--font-display); font-size: 44px; color: #fff; line-height: 1; }
.stat-num span { color: var(--blue-lt); }
.stat-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.38); }

/* ── TICKER ──────────────────────────────────────────────────── */
.ticker {
  background: linear-gradient(90deg, #1a52d4 0%, var(--blue) 35%, #1e65f5 70%, #1a52d4 100%);
  background-size: 200% 100%;
  padding: 12px 0; overflow: hidden; position: relative; z-index: 1;
  border-top: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.ticker-inner { display: flex; animation: ticker 28s linear infinite; white-space: nowrap; will-change: transform; }
.ticker-item { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: #fff; padding: 0 36px; flex-shrink: 0; }
.ticker-item span { color: rgba(255,255,255,.55); margin-left: 8px; }
@keyframes tickerBg { from { background-position: 0 0; } to { background-position: 200% 0; } }

/* ── SECTION SHELL ───────────────────────────────────────────── */
section { padding: 100px 64px; position: relative; z-index: 1; }
.section-header { display: flex; align-items: baseline; gap: 18px; margin-bottom: 64px; }
.section-num { font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; color: var(--blue-lt); }
.section-title {
  font-family: var(--font-display); font-size: clamp(48px, 5.5vw, 76px);
  letter-spacing: 2px; color: var(--dark); line-height: 1;
}

.section-line { flex: 1; height: 1px; margin-left: 18px; background: linear-gradient(to right, var(--border2), transparent); }

/* ── SCROLL REVEAL ───────────────────────────────────────────── */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s ease, transform .75s ease;
}
.reveal-up.revealed {
  opacity: 1;
  transform: none;
}
.reveal-up:nth-child(2) { transition-delay: .12s; }
.reveal-up:nth-child(3) { transition-delay: .24s; }
.reveal-up:nth-child(4) { transition-delay: .36s; }

/* ── ABOUT ───────────────────────────────────────────────────── */
#about { background: var(--bg2); padding-top: 56px; }
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: start; }
.about-text p { font-size: 16.5px; line-height: 1.92; color: var(--muted); margin-bottom: 22px; }
.about-text p:last-child { margin-bottom: 0; }
.about-text p strong { color: var(--dark); font-weight: 600; }
.about-highlight {
  font-family: var(--font-serif); font-style: italic;
  font-size: 20px; line-height: 1.55; color: var(--dark);
  border-left: 2px solid #1a3d7e; padding-left: 22px; margin: 32px 0;
}

/* VALUES GRID */
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.value-item {
  padding: 28px 26px 26px;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid transparent;
  position: relative;
  transition: transform .3s, box-shadow .3s, background .3s;
}
.value-item:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,.09); }

.value-item.v-blue  { border-top-color: #2563eb; }
.value-item.v-green { border-top-color: #059669; }
.value-item.v-amber { border-top-color: #d97706; }
.value-item.v-red   { border-top-color: #dc2626; }

.value-item.v-blue:hover  { background: rgba(37,99,235,.03); }
.value-item.v-green:hover { background: rgba(5,150,105,.03); }
.value-item.v-amber:hover { background: rgba(217,119,6,.03); }
.value-item.v-red:hover   { background: rgba(220,38,38,.03); }

.vi-icon-wrap {
  width: 46px; height: 46px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; flex-shrink: 0;
}
.value-item.v-blue  .vi-icon-wrap { background: rgba(37,99,235,.1);  color: #2563eb; }
.value-item.v-green .vi-icon-wrap { background: rgba(5,150,105,.1);  color: #059669; }
.value-item.v-amber .vi-icon-wrap { background: rgba(217,119,6,.1);  color: #d97706; }
.value-item.v-red   .vi-icon-wrap { background: rgba(220,38,38,.1);  color: #dc2626; }
.value-icon { display: block; flex-shrink: 0; }

.value-num {
  position: absolute; top: 16px; right: 20px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px;
  color: var(--faint); opacity: .6;
}
.value-title { font-family: var(--font-display); font-size: 22px; letter-spacing: .5px; color: var(--dark); margin-bottom: 10px; line-height: 1.1; }
.value-text { font-size: 13px; line-height: 1.76; color: var(--muted); }

/* ── PROCESS ─────────────────────────────────────────────────── */
#process {
  background: var(--navy-mid);
  padding: 64px 64px;
  border-top: 1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.process-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 4px;
  text-transform: uppercase; color: var(--blue-lt); margin-bottom: 44px;
  display: flex; align-items: center; gap: 16px;
}
.process-label::after { content: ''; flex: 1; height: 1px; background: rgba(59,130,246,.18); }
.process-cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.process-step {
  padding: 36px 36px 36px 36px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(59,130,246,.18);
  border-radius: 6px;
  border-right: 1px solid rgba(59,130,246,.18);
}
.process-step:last-child { border-right: 1px solid rgba(59,130,246,.18); padding-left: 36px; padding-right: 36px; }
.process-step:not(:first-child):not(:last-child) { padding-left: 36px; }
.process-num { font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; color: var(--blue-lt); margin-bottom: 16px; }
.process-title { font-family: var(--font-display); font-size: 36px; letter-spacing: 1px; color: #fff; margin-bottom: 12px; }
.process-text { font-size: 14px; line-height: 1.78; color: rgba(255,255,255,.82); }

/* ── PROCESS FLOW GRAPHIC — 30% LARGER ──────────────────────── */
.process-flow {
  margin-top: 52px;
  padding: 42px 0 8px;
  border-top: 1px solid rgba(59,130,246,.12);
  overflow-x: auto;
}
.process-flow-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 0; min-width: 1061px;
}
.pf-node {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  flex-shrink: 0; width: 172px;
}
.pf-icon {
  width: 84px; height: 84px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(59,130,246,.38);
  background: rgba(26,95,212,.18);
  font-size: 31px; position: relative; flex-shrink: 0;
  transition: border-color .3s, background .3s;
}
.pf-node:hover .pf-icon { border-color: var(--blue-lt); background: rgba(26,95,212,.38); }
.pf-icon-pulse {
  position: absolute; inset: -8px; border-radius: 50%;
  border: 1px solid rgba(59,130,246,.22);
  animation: pfPulse 2.5s ease-in-out infinite;
}
.pf-node:nth-child(odd) .pf-icon-pulse  { animation-delay: 0s; }
.pf-node:nth-child(even) .pf-icon-pulse { animation-delay: .7s; }
.pf-label {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 1.5px;
  text-transform: uppercase; color: rgba(255,255,255,.55); text-align: center; line-height: 1.4;
}
.pf-sub {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .5px;
  color: rgba(255,255,255,.3); text-align: center; line-height: 1.5;
}
.pf-arrow {
  flex-shrink: 0; width: 59px; position: relative; height: 2px;
  display: flex; align-items: center;
}
.pf-arrow::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(59,130,246,.25), rgba(59,130,246,.55));
}
.pf-arrow::after {
  content: ''; position: absolute; right: -1px; top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left: 8px solid rgba(59,130,246,.55);
}
/* Animated dot travelling along arrows */
.pf-arrow-dot {
  position: absolute; width: 9px; height: 9px; border-radius: 50%;
  background: var(--blue-lt); top: 50%; transform: translateY(-50%);
  animation: pfDot 3.5s linear infinite;
  box-shadow: 0 0 8px var(--blue-lt);
}
.pf-arrow:nth-child(2)  .pf-arrow-dot { animation-delay: 0s; }
.pf-arrow:nth-child(4)  .pf-arrow-dot { animation-delay: .58s; }
.pf-arrow:nth-child(6)  .pf-arrow-dot { animation-delay: 1.16s; }
.pf-arrow:nth-child(8)  .pf-arrow-dot { animation-delay: 1.74s; }
.pf-arrow:nth-child(10) .pf-arrow-dot { animation-delay: 2.32s; }

/* Loop-back line */
.pf-loop {
  display: flex; align-items: center; justify-content: center;
  margin-top: 32px; gap: 0; min-width: 1061px; padding: 0;
}
.pf-loop-line {
  flex: 1; height: 1px; background: linear-gradient(to right, rgba(59,130,246,.3), rgba(59,130,246,.12), rgba(59,130,246,.3));
  position: relative; overflow: hidden;
}
.pf-loop-line::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 60px; height: 100%;
  background: linear-gradient(to right, transparent, var(--blue-lt), transparent);
  animation: pfSweep 3.5s linear infinite;
}
.pf-loop-label {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(59,130,246,.55); padding: 0 16px; white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
}
.pf-loop-label::before, .pf-loop-label::after {
  content: '↺'; font-size: 12px; color: rgba(59,130,246,.65);
}


/* Process flow — paused off-screen, activated by JS IntersectionObserver */
.pf-icon-pulse { animation-play-state: paused; }
.pf-arrow-dot  { animation-play-state: paused; }
.pf-loop-line::after { animation-play-state: paused; }
#process.anim-active .pf-icon-pulse { animation-play-state: running; }
#process.anim-active .pf-arrow-dot  { animation-play-state: running; }
#process.anim-active .pf-loop-line::after { animation-play-state: running; }
@keyframes pfPulse { 0%,100%{opacity:.2;transform:scale(1)} 50%{opacity:.7;transform:scale(1.12)} }
@keyframes pfDot   { 0%{left:0;opacity:0} 10%{opacity:1} 90%{opacity:1} 100%{left:100%;opacity:0} }
@keyframes pfSweep { from{left:-100%} to{left:200%} }

/* ── PROCESS VALUES CARDS ────────────────────────────────────── */
.values-section { margin-top: 60px; }
.values-inner { width: 100%; }
.values-section .values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.value-card {
  padding: 40px 36px 36px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.07);
  border-top: 3px solid transparent;
  border-radius: 4px;
  position: relative;
  transition: background .3s, transform .3s;
}
.value-card:hover { background: rgba(255,255,255,.075); transform: translateY(-4px); }
.value-card .value-icon {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 3px;
  color: rgba(255,255,255,.25);
  margin-bottom: 20px;
}
.value-heading {
  font-family: var(--font-display);
  font-size: 24px; letter-spacing: .5px;
  color: #fff; line-height: 1.15;
  margin-bottom: 14px;
}
.value-card .value-text { color: rgba(255,255,255,.62); }
.value-card .accent-red { color: #f97316; font-weight: 600; }

.vc-blue  { border-top-color: var(--blue-lt); }
.vc-red   { border-top-color: #f97316; }
.vc-green { border-top-color: #34d399; }

.vc-blue:hover  { box-shadow: 0 12px 36px rgba(96,165,250,.12); }
.vc-red:hover   { box-shadow: 0 12px 36px rgba(249,115,22,.12); }
.vc-green:hover { box-shadow: 0 12px 36px rgba(52,211,153,.12); }

/* Bilingual pillar heading (EN + Greek) */
.value-bilingual { display: flex; flex-direction: column; gap: 5px; margin-bottom: 16px; }
.value-bilingual .en {
  font-family: var(--font-display);
  font-size: 24px; letter-spacing: .5px;
  color: #fff; line-height: 1.15;
}
.value-bilingual .el {
  font-family: var(--font-display);
  font-size: 14px; letter-spacing: 2px;
  line-height: 1; opacity: .5;
}
.vc-blue  .value-bilingual .el { color: var(--blue-lt); }
.vc-red   .value-bilingual .el { color: #f97316; }
.vc-green .value-bilingual .el { color: #34d399; }

/* Divider row between pillar and principle cards */
.values-row-divider {
  display: flex; align-items: center; gap: 16px;
  margin: 12px 0 4px;
}
.values-row-divider span {
  font-family: var(--font-mono); font-size: 8px;
  letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255,255,255,.2); white-space: nowrap;
}
.values-row-divider::before,
.values-row-divider::after {
  content: ''; flex: 1; height: 1px;
  background: rgba(255,255,255,.07);
}

@media (max-width: 900px) {
  .values-section .values-grid { grid-template-columns: 1fr; }
}

/* ── MODEL INDICATOR ─────────────────────────────────────────── */
.model-indicator {
  position: absolute; bottom: 46px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 8px; letter-spacing: 2.5px; text-transform: uppercase;
  color: rgba(59,130,246,.65); white-space: nowrap;
  pointer-events: none;
  animation: pulse 2.5s ease-in-out infinite;
}

/* ── PRINCIPLES (HOW WE WORK – VALUES) ───────────────────────── */
#principles {
  background: #3a3a3a;
  border-top: none;
  border-bottom: none;
  padding: 80px 64px;
}
.principles-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 4px;
  text-transform: uppercase; color: rgba(255,255,255,.38); margin-bottom: 52px;
  display: flex; align-items: center; gap: 16px;
}
.principles-label::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.07); }

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 0;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 52px;
  width: 100%;
}

.principle-card {
  padding: 52px 44px 48px;
  background: transparent;
  border: none;
  border-right: 1px solid rgba(255,255,255,.06);
  position: relative; overflow: hidden;
  transition: background .35s;
}
.principle-card:last-child { border-right: none; }

/* Vertical left accent bar — always visible */
.principle-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; bottom: 0; width: 3px;
  transition: width .35s cubic-bezier(.4,0,.2,1);
}
.principle-card:nth-child(1)::before { background: var(--blue); }
.principle-card:nth-child(2)::before { background: #1a3d7e; }
.principle-card:nth-child(3)::before { background: linear-gradient(to bottom, var(--blue), var(--blue-lt)); }
.principle-card:nth-child(4)::before { background: linear-gradient(to bottom, #0ea5e9, #38bdf8); }

/* Hover tint per card accent */
.principle-card:hover { background: rgba(255,255,255,.025); }
.principle-card:nth-child(1):hover { background: rgba(37,99,235,.08); }
.principle-card:nth-child(2):hover { background: rgba(220,38,38,.08); }
.principle-card:nth-child(3):hover { background: rgba(37,99,235,.06); }
.principle-card:nth-child(4):hover { background: rgba(14,165,233,.08); }
.principle-card:hover::before { width: 5px; }

/* Big display number — decorative watermark */
.principle-num {
  font-family: var(--font-display);
  font-size: 72px; letter-spacing: 2px; line-height: 1;
  display: block; margin-bottom: 16px;
}
.principle-card .principle-num { color: rgba(220,80,80,.32); }

.principle-cta {
  display: inline-block; margin-top: 14px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px;
  text-transform: uppercase; color: #38bdf8;
  text-decoration: none;
  transition: color .2s, letter-spacing .2s;
}
.principle-cta:hover { color: #fff; letter-spacing: 2.5px; }

.principle-title {
  font-family: var(--font-display); font-size: 44px; letter-spacing: 1px;
  color: #fff; margin-bottom: 20px; line-height: 1;
}
.principle-text { font-size: 14.5px; line-height: 1.88; color: rgba(255,255,255,.85); }
.principle-text .accent-green { color: #f97316; font-weight: 600; }
.principle-text .accent-blue  { color: #f97316; font-weight: 600; }
.principle-text .accent-red   { color: #f97316; font-weight: 600; }

/* ── TEAM SECTION ON INDEX ───────────────────────────────────── */
#team-index { background: var(--bg2); padding: 60px 64px 52px; }
.team-index-header { margin-bottom: 44px; }
.founder-card {
  display: grid; grid-template-columns: 220px 1fr; gap: 52px; align-items: center;
  max-width: 900px;
}
.founder-card-photo {
  position: relative; width: 200px; height: 200px; flex-shrink: 0;
}
.founder-card-photo::before {
  content: ''; position: absolute; inset: -3px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-lt) 0%, rgba(26,95,212,.3) 50%, var(--blue) 100%);
}
.founder-card-photo img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  position: relative; z-index: 1;
  box-shadow: 0 0 0 3px var(--bg2), 0 18px 48px rgba(0,0,0,.18);
  filter: grayscale(12%) contrast(1.04);
}
.founder-card-info { display: flex; flex-direction: column; gap: 14px; }
.founder-card-label {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--blue-lt); display: flex; align-items: center; gap: 10px;
}
.founder-card-label::before { content:''; width:16px; height:1px; background:var(--blue-lt); }
.founder-card-name { font-family: var(--font-display); font-size: clamp(32px,3vw,48px); color: var(--dark); letter-spacing:1px; line-height:1; }
.founder-card-bio { font-size:14.5px; line-height:1.82; color: var(--muted); max-width:480px; }
.founder-card-stats { display:flex; gap:0; margin-top:4px; }
.founder-card-stat {
  display:flex; flex-direction:column; gap:3px; padding:14px 22px;
  border:1px solid var(--border2); border-right:none; background: var(--surface);
}
.founder-card-stat:first-child { border-radius:3px 0 0 3px; }
.founder-card-stat:last-child  { border-right:1px solid var(--border2); border-radius:0 3px 3px 0; }
.fcs-num { font-family:var(--font-display); font-size:28px; color: var(--dark); line-height:1; letter-spacing:1px; }
.fcs-num span { color:var(--blue-lt); }
.fcs-label { font-family:var(--font-mono); font-size:8px; letter-spacing:2px; text-transform:uppercase; color: var(--faint); }
.founder-card-actions { display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin-top:4px; }

/* Founder tools row */
.founder-tools-row { display:flex; flex-wrap:wrap; gap:6px; }
.founder-tool {
  font-family:var(--font-mono); font-size:9px; letter-spacing:1.5px; text-transform:uppercase;
  color:var(--blue); background:var(--blue-dim); border:1px solid rgba(37,99,235,.22);
  padding:3px 9px; border-radius:2px;
}

/* Founder achievements */
.founder-achievements { display:flex; flex-direction:column; gap:6px; }
.founder-ach-item {
  display:flex; align-items:center; gap:8px;
  font-family:var(--font-mono); font-size:10px; letter-spacing:.5px;
  color:var(--muted);
}
.founder-ach-item svg { color:var(--blue-lt); flex-shrink:0; }

/* Buttons on light bg */
#team-index .btn-primary { background: var(--blue); border-color: var(--blue); }
#team-index .btn-outline { border-color: var(--border2); color: var(--muted); }
#team-index .btn-outline:hover { border-color: var(--blue-lt); color: var(--blue-lt); }

@media (max-width: 860px) {
  .founder-card { grid-template-columns: 1fr; gap:32px; text-align:center; }
  .founder-card-photo { margin:0 auto; }
  .founder-card-label { justify-content:center; }
  .founder-card-stats { justify-content:center; }
  .founder-card-actions { justify-content:center; }
}
@media (max-width:640px) {
  #team-index { padding: 48px 16px 40px; }
}

/* ── PORTFOLIO — 2-COLUMN ────────────────────────────────────── */
#projects { background: #ffffff; }
#projects .section-num { color: var(--blue-lt); }

.portfolio-stage {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0;
  border: 1px solid var(--border2);
  border-radius: 4px;
  overflow: hidden;
  min-height: 620px;
}

.port-sep { background: var(--border2); }

.portfolio-col {
  display: flex; flex-direction: column;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
  transition: transform .35s cubic-bezier(.19,1,.22,1), opacity .5s ease;
  background: #fff;
  overflow: hidden;
}
.portfolio-col:active { cursor: grabbing; }
.port-fade-out { opacity: 0.15 !important; }

.port-image-wrap {
  position: relative; overflow: hidden;
  height: 52vh; min-height: 300px;
  background: var(--surface);
  flex-shrink: 0;
  cursor: pointer;
}
.port-img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  background: var(--surface);
  transition: transform .8s ease, opacity .5s ease;
}
.port-image-wrap:hover .port-img { transform: scale(1.03); }
.port-img-gradient { display: none; }

/* Click hint on image */
.port-image-wrap::after {
  content: '⊕ view project';
  position: absolute; bottom: 12px; right: 14px;
  font-family: var(--font-mono); font-size: 8px; letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(0,40,120,.55);
  opacity: 0; transition: opacity .25s;
  pointer-events: none;
}
.port-image-wrap:hover::after { opacity: 1; }

/* ── PORT THUMB STRIP ──────────────────────────────────────── */
.port-thumb-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}
.port-thumb-strip {
  flex: 1;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 0 18px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.port-thumb-strip::-webkit-scrollbar { display: none; }
.port-thumb-inner {
  display: flex;
  gap: 14px;
}
.port-thumb-arrow {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--border2);
  background: #fff;
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, box-shadow .2s;
  padding: 0;
  margin-bottom: 14px;
}
.port-thumb-arrow:hover {
  border-color: var(--blue);
  box-shadow: 0 2px 8px rgba(37,99,235,.18);
}

.port-thumb-item {
  flex-shrink: 0;
  background: #fff;
  border: 1.5px solid var(--border2);
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
  width: 138px;
  overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  text-align: left;
}
.port-thumb-item:hover {
  border-color: var(--blue-lt);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37,99,235,.13);
}
.port-thumb-item.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.18), 0 8px 24px rgba(37,99,235,.12);
}

.port-thumb-img-wrap {
  width: 100%;
  height: 83px;
  overflow: hidden;
  background: var(--surface);
}
.port-thumb-img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  background: var(--surface);
  transition: transform .4s ease;
}
.port-thumb-item:hover .port-thumb-img { transform: scale(1.07); }

.port-thumb-label {
  padding: 6px 8px 7px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .5px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-top: 1px solid var(--border);
  background: #fff;
}
.port-thumb-item.active .port-thumb-label { color: var(--blue); }

.port-thumb-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 1.5px;
  color: var(--faint);
  margin-bottom: 3px;
}

/* ── PROJECT MODAL ──────────────────────────────────────────── */
.port-modal {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.port-modal.open {
  opacity: 1; pointer-events: all;
}
.port-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(8,15,30,.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.port-modal-panel {
  position: relative; z-index: 1;
  background: #fff;
  border-radius: 6px;
  width: min(92vw, 1080px);
  height: 92vh;
  overflow: hidden;
  display: flex; flex-direction: column;
  transform: translateY(24px);
  transition: transform .3s cubic-bezier(.19,1,.22,1);
}
.port-modal.open .port-modal-panel {
  transform: translateY(0);
}
.port-modal-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; cursor: pointer;
  font-size: 22px; line-height: 1; color: var(--muted);
  font-family: var(--font-mono);
  padding: 4px 8px; border-radius: 3px;
  transition: color .15s, background .15s;
  z-index: 2;
}
.port-modal-close:hover { color: var(--text); background: var(--surface); }

.port-modal-gallery {
  position: relative;
  background: #f2f4f7;
  display: flex; align-items: center; justify-content: center;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.port-modal-img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  background: #f2f4f7;
  transition: opacity .25s ease;
}
.port-modal-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.85); border: 1px solid var(--border2);
  border-radius: 3px; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 20px; color: var(--text);
  font-family: var(--font-mono);
  transition: background .15s, transform .15s;
  z-index: 1;
}
.port-modal-nav:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.port-modal-prev { left: 12px; }
.port-modal-next { right: 12px; }
.port-modal-nav:disabled { opacity: 0.3; cursor: default; }

.port-modal-img-counter {
  position: absolute; bottom: 10px; right: 14px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 1.5px;
  color: var(--muted); background: rgba(255,255,255,.7);
  padding: 2px 8px; border-radius: 2px;
}

.port-modal-dots-row {
  display: flex; gap: 6px; justify-content: center;
  padding: 8px 0 6px;
  flex-shrink: 0;
  background: var(--surface);
}
.port-modal-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--border2); border: none; cursor: pointer;
  transition: background .2s, transform .2s;
  padding: 0;
}
.port-modal-dot.active { background: var(--blue); transform: scale(1.3); }

.port-modal-info {
  padding: 14px 36px 18px;
  flex-shrink: 0;
}
.port-modal-cat {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--faint); margin-bottom: 6px;
  display: flex; align-items: center; gap: 8px;
}
.port-modal-cat::before { content: ''; display: inline-block; width: 14px; height: 1.5px; background: var(--blue-lt); flex-shrink: 0; }
.port-modal-title {
  font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 36px);
  letter-spacing: 1px; color: var(--dark); line-height: 1.05; margin-bottom: 6px;
}
.port-modal-desc {
  font-size: 13px; line-height: 1.6; color: var(--muted); max-width: 640px;
}

@media (max-width: 600px) {
  .port-modal-info { padding: 10px 18px 18px; }
  .port-modal-desc { font-size: 12.5px; }
}

/* ── MOBILE PEEK CAROUSEL ───────────────────────────────────── */
.cflow-stage { display: none; }

@media (max-width: 768px) {
  /* Panel: frosted glass card — not full screen */
  .port-modal-panel {
    height: auto !important;
    max-height: 94vh;
    width: 90vw;
    max-width: 430px;
    border-radius: 22px;
    background: #f0f2f5;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(200,205,215,0.7);
    box-shadow: 0 24px 64px rgba(0,0,0,.45);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  /* Close button: visible on frosted glass */
  .port-modal-close {
    color: #5a6070;
    background: rgba(255,255,255,0.55);
    border-radius: 50%;
    width: 30px; height: 30px;
    padding: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    position: absolute;
    top: 14px; right: 14px;
    z-index: 9999;
  }
  .port-modal-close:hover {
    background: rgba(255,255,255,0.85);
    color: #111;
  }

  /* Gallery: dark strip, contains the peek carousel */
  .port-modal-gallery {
    background: #0d1520;
    height: 104vw;
    max-height: 520px;
    min-height: 350px;
    overflow: hidden;
    position: relative;
    perspective: none;
    perspective-origin: unset;
    flex-shrink: 0;
  }

  /* Hide the desktop single-image controls */
  .port-modal-img,
  .port-modal-nav,
  .port-modal-img-counter { display: none !important; }

  /* Stage fills the gallery */
  .cflow-stage {
    display: block;
    position: absolute;
    inset: 0;
    transform-style: flat;
  }

  /* Each peek card */
  .cflow-card {
    position: absolute;
    width: 76%;
    height: calc(100% - 18px);
    left: 12%;
    top: 9px;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(0,0,0,.45);
    will-change: transform, opacity;
  }

  .cflow-card img {
    width: 100%; height: 100%;
    object-fit: contain;
    background: #0d1520;
    display: block;
    pointer-events: none;
    -webkit-user-select: none; user-select: none;
    -webkit-user-drag: none;
  }

  /* Snap animation */
  .cflow-card.cflow-snap {
    transition: transform .38s cubic-bezier(.25,.46,.45,.94),
                opacity   .38s ease;
  }

  /* Dots row: transparent bg on frosted panel */
  .port-modal-dots-row {
    background: transparent;
    padding: 10px 0 6px;
  }
  .port-modal-dot { width: 7px; height: 7px; }

  /* Info: clean typography on frosted glass */
  .port-modal-info {
    padding: 4px 22px 22px;
  }
  .port-modal-title {
    font-size: clamp(18px, 5vw, 26px);
    color: #111;
  }
  .port-modal-cat {
    color: #7a8498;
  }
  .port-modal-desc {
    font-size: 13px;
    color: #4a5260;
    line-height: 1.55;
  }
}

.port-info { padding: 28px 36px 36px; flex: 1; }
.port-badge {
  display: inline-block;
  font-family: var(--font-mono); font-size: 8px; letter-spacing: 2px; text-transform: uppercase;
  padding: 3px 9px; margin-bottom: 12px;
  border: 1px solid var(--blue-dim); color: var(--blue); background: var(--blue-dim); border-radius: 2px;
}
.port-cat {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--faint); margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.port-cat::before { content: ''; display: inline-block; width: 14px; height: 1.5px; background: var(--blue-lt); flex-shrink: 0; }
.port-title {
  font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 38px);
  letter-spacing: 1px; color: var(--dark); line-height: 1.05; margin-bottom: 12px;
}
.port-desc { font-size: 14px; line-height: 1.74; color: var(--muted); margin-bottom: 20px; }

.project-link {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--blue-lt); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap .25s, color .2s;
}
.project-link:hover { gap: 14px; color: var(--blue); }

/* Port footer: dots + hint */
.port-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 4px; margin-top: 20px;
}
.port-dots { display: flex; gap: 9px; }
.port-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--faint); border: none; cursor: pointer; padding: 0;
  transition: background .25s, transform .25s;
}
.port-dot.active { background: var(--blue-lt); transform: scale(1.5); }
.port-hint-txt {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--faint);
}

/* ── TEAM / EDUCATION ────────────────────────────────────────── */
#team { background: var(--bg2); padding: 60px 64px 52px; }
.edu-strip-title {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--faint); margin-bottom: 36px; text-align: center;
}
.edu-cards { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; }
.edu-card {
  background: #fff; border: 1px solid var(--border2);
  border-radius: 6px; padding: 20px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  transition: background .25s, border-color .25s, transform .3s;
  position: relative; overflow: hidden;
  text-decoration: none; color: inherit; cursor: pointer;
}
.edu-card::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; opacity:0; transition:opacity .3s; }
.edu-card.blue::before   { background: var(--blue-lt); }
.edu-card.red::before    { background: #1a3d7e; }
.edu-card.green::before  { background: #38a169; }
.edu-card.purple::before { background: #805ad5; }
.edu-card.navy::before   { background: #2b6cb0; }
.edu-card:hover { background: var(--surface); border-color: var(--border2); transform: translateY(-4px); }
.edu-card:hover::before { opacity:1; }
.edu-logo-wrap { width:64px; height:64px; border-radius:50%; background:#fff !important; display:flex; align-items:center; justify-content:center; font-size:22px; flex-shrink:0; border:2px solid rgba(0,0,0,.25); box-shadow:0 2px 8px rgba(0,0,0,.15); }
.edu-logo-wrap img { width:46px; height:46px; object-fit:contain; filter:none; }
.edu-degree { font-family:var(--font-mono); font-size:9px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:var(--blue-lt); }
.edu-name { font-size:12px; font-weight:600; color: var(--dark); line-height:1.3; }
.edu-country { font-family:var(--font-mono); font-size:9px; letter-spacing:1px; color: var(--faint); text-transform:uppercase; }
.team-linkedin { margin-top:32px; text-align:center; }
.team-linkedin-btn {
  display:inline-flex; align-items:center; gap:9px;
  font-family:var(--font-mono); font-size:10px; letter-spacing:2px; text-transform:uppercase;
  color: var(--muted); text-decoration:none;
  padding:10px 22px; border:1px solid var(--border2); border-radius:2px;
  transition:color .2s, border-color .2s;
}
.team-linkedin-btn:hover { color:var(--blue-lt); border-color:var(--blue-lt); }

/* ── SOFTWARE ────────────────────────────────────────────────── */
#software { background: var(--bg2); }
.software-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: 6px; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr;
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
  border: 1px solid var(--border); position: relative;
}
.software-card::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; background:linear-gradient(to right,var(--blue),var(--blue-lt)); }
.sw-left { padding: 48px 44px; }
.sw-label { font-family:var(--font-mono); font-size:9px; letter-spacing:3px; text-transform:uppercase; color:var(--blue-lt); margin-bottom:14px; display:flex; align-items:center; gap:10px; }
.sw-label::before { content:''; width:18px; height:1px; background:var(--blue-lt); }
.sw-title { font-family:var(--font-display); font-size:46px; letter-spacing:1px; color:#fff; line-height:1; margin-bottom:18px; }
.sw-desc { font-size:15px; line-height:1.8; color:rgba(255,255,255,.58); margin-bottom:28px; }
.sw-features { list-style:none; display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-bottom:32px; }
.sw-features li { font-family:var(--font-mono); font-size:10px; letter-spacing:.5px; color:rgba(255,255,255,.55); display:flex; align-items:center; gap:7px; }
.sw-features li::before { content:'▸'; color:var(--blue-lt); font-size:9px; }
.sw-right { background:rgba(0,0,0,.25); display:flex; align-items:center; justify-content:center; padding:36px; }

/* ── CONTACT ─────────────────────────────────────────────────── */
#contact {
  background: var(--bg2);
  text-align: center; padding: 120px 64px; position: relative; overflow: hidden;
}
#contact::before {
  content:''; position:absolute; inset:0; pointer-events:none;
  background:
    radial-gradient(ellipse at 50% 55%, rgba(37,99,235,.07) 0%, transparent 60%),
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size:auto,60px 60px,60px 60px;
}
.contact-label { font-family:var(--font-mono); font-size:13px; letter-spacing:4px; text-transform:uppercase; color:var(--blue-lt); margin-bottom:18px; position:relative; opacity:.9; }
.contact-heading { font-family:var(--font-display); font-size:clamp(36px,5vw,64px); letter-spacing:2px; color:#1e3a8a; line-height:1.1; margin-bottom:26px; position:relative; white-space:nowrap; }
.contact-sub { font-size:16px; color:var(--muted); line-height:1.72; max-width:460px; margin:0 auto 44px; position:relative; }
.contact-direct { position:relative; margin-bottom:48px; }
.contact-info-row { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:28px; }
.contact-info-item { display:inline-flex; align-items:center; gap:8px; font-family:var(--font-mono); font-size:14px; letter-spacing:1px; color:var(--muted); text-decoration:none; transition:color .2s; white-space:nowrap; }
.contact-info-item:hover { color:var(--blue-lt); }
.contact-info-item svg { flex-shrink:0; opacity:.7; }
.contact-email { color:var(--blue); font-style:italic; }
.contact-email:hover { color:var(--blue-lt); }
.contact-location { cursor:default; }

.contact-form { max-width:680px; margin:0 auto; position:relative; text-align:left; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:16px; }
.form-group { display:flex; flex-direction:column; gap:6px; margin-bottom:16px; }
.form-row .form-group { margin-bottom:0; }
.form-group label { font-family:var(--font-mono); font-size:9px; letter-spacing:2px; text-transform:uppercase; color:var(--faint); }
.form-group input,
.form-group textarea {
  background:#fff; border:1px solid var(--border2);
  color:var(--text); font-family:var(--font-body); font-size:15px;
  padding:12px 16px; border-radius:2px; outline:none;
  transition:border-color .2s,background .2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color:var(--faint); }
.form-group input:focus,
.form-group textarea:focus { border-color:rgba(59,130,246,.55); background:#fff; box-shadow: 0 0 0 3px rgba(59,130,246,.08); }
.form-group textarea { resize:vertical; min-height:110px; }
.form-submit { width:100%; justify-content:center; margin-top:4px; cursor:pointer; }
.form-submit:disabled { opacity:.5; }
.form-success {
  display:none; align-items:center; justify-content:center; gap:10px;
  max-width:680px; margin:0 auto; padding:20px 28px;
  background:rgba(59,130,246,.08); border:1px solid rgba(59,130,246,.25);
  border-radius:4px;
  font-family:var(--font-mono); font-size:12px; letter-spacing:1.5px;
  text-transform:uppercase; color:var(--blue-lt); position:relative;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
footer {
  background: var(--navy); padding: 24px 64px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,.04);
  position: relative; z-index: 1;
}
.footer-logo img { height: 28px; width: auto; opacity: .55; }
.footer-text { font-family:var(--font-mono); font-size:9px; letter-spacing:2px; color:rgba(255,255,255,.28); text-transform:uppercase; }

/* ── ANIMATIONS ──────────────────────────────────────────────── */
@keyframes fadeUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:none} }
@keyframes ticker    { from{transform:translateX(0)} to{transform:translateX(-50%)} }
@keyframes thumbScroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }
@keyframes pulse  { 0%,100%{opacity:.25} 50%{opacity:.75} }
@keyframes titleShimmer { 0%,100%{color:var(--text)} 50%{color:var(--blue)} }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  section { padding: 80px 40px; }
  #process { padding: 56px 40px; }
  #principles { padding: 64px 40px; }
  .process-step { padding-right: 28px; }
  .process-step:not(:first-child):not(:last-child) { padding-left: 28px; }
  .process-step:last-child { padding-left: 28px; }
  .principles-grid { grid-template-columns: repeat(2,1fr); }
  .principle-card:nth-child(2) { border-right: none; }
  .principle-card:nth-child(1),
  .principle-card:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.06); }
}

@media (max-width: 960px) {
  nav { padding: 0 20px; }
  .nav-links { display: none !important; }
  .nav-hamburger { display: flex; }

  #hero { grid-template-columns: 1fr; }
  .hero-left { padding: 56px 28px 36px; }
  .hero-right { display: none; }
  #hero3d { display: none; }
  #hero3d-drag { display: none; }
  .hero-stats { left: 0; right: 0; padding: 14px 0; gap: 0; justify-content: center; background: transparent; border-top: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .hero-stats .stat { align-items: center; padding: 0 20px; }
  .hero-stats .stat + .stat { border-left: 1px solid rgba(255,255,255,.25); }
  .stat-num { font-size: 15px; }

  section { padding: 64px 24px; }
  #process { padding: 48px 24px; }
  #principles { padding: 56px 24px; }
  .process-cols { grid-template-columns: 1fr; }
  .process-step { border: 1px solid rgba(59,130,246,.18); padding: 28px 24px; }
  .process-step:last-child { border: 1px solid rgba(59,130,246,.18); padding-left: 24px; padding-right: 24px; }
  .process-step:not(:first-child):not(:last-child) { padding-left: 24px; }
  .process-step:last-child { padding-left: 24px; }

  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .values-grid { grid-template-columns: 1fr 1fr; }

  .principles-grid { grid-template-columns: 1fr; }
  .principle-card { border-right: none; border-bottom: 1px solid rgba(255,255,255,.06); }
  .principle-card:last-child { border-bottom: none; }

  .portfolio-stage { grid-template-columns: 1fr; }
  .port-sep { display: none; }
  .portfolio-col { border-bottom: 1px solid var(--border); }
  .portfolio-col:last-child { border-bottom: none; }
  .port-image-wrap { height: 40vh; min-height: 240px; }

  #team { padding: 48px 24px 40px !important; }
  .edu-cards { grid-template-columns: repeat(3,1fr); }
  .form-row { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 10px; text-align: center; padding: 20px; }
}

@media (max-width: 640px) {
  nav { padding: 0 16px; }
  .hero-left { padding: 48px 16px 32px; }
  .hero-stats { padding: 12px 0; }
  .stat-num { font-size: 14px; }

  section { padding: 52px 16px; }
  #process { padding: 40px 16px; }
  #principles { padding: 44px 16px; }
  .values-grid { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: 1fr; }

  .port-image-wrap { height: 50vw; min-height: 200px; }
  .port-info { padding: 20px 20px 28px; }
  .port-footer { flex-direction: column; gap: 14px; align-items: flex-start; padding: 16px 4px; }

  #team { padding: 40px 16px 36px !important; }
  .edu-cards { grid-template-columns: repeat(2,1fr); }
  #contact { padding: 72px 20px; }
  footer { padding: 20px 16px; }
}

@media (max-width: 400px) {
  .edu-cards { grid-template-columns: 1fr 1fr; }
  .hero-cta { flex-direction: column; }
  .btn-primary, .btn-outline { justify-content: center; }
}

/* ── TOUCH: PORTFOLIO COL DEFAULT CURSOR ───────────────────── */
@media (pointer: coarse) {
  .portfolio-col { cursor: default; }
}

/* ══════════════════════════════════════════════════════════════
   MOBILE-FIRST OVERRIDES — ~75% mobile traffic
   Desktop (≥961px) is intentionally unchanged.
   All rules below live inside breakpoints only.
   ══════════════════════════════════════════════════════════════ */

/* ── ≤960px: nav hamburger — 44×44 tap target ─────────────── */
@media (max-width: 960px) {
  .nav-hamburger {
    padding: 10px 8px;
    min-width: 44px; min-height: 44px;
    justify-content: center; align-items: center;
  }
  /* Lang toggle: slightly larger tap area */
  .lang-btn { padding: 7px 12px; }
}

/* ── ≤640px: small mobile ──────────────────────────────────── */
@media (max-width: 640px) {

  /* Nav mobile links: 48px minimum touch target */
  .nav-mobile ul a {
    padding: 15px 0;
    min-height: 48px;
    display: flex; align-items: center;
  }

  /* Buttons: 44px min touch height */
  .btn-primary, .btn-outline { min-height: 44px; }

  /* Contact heading: fix white-space: nowrap overflow on mobile */
  .contact-heading {
    white-space: normal;
    font-size: clamp(28px, 8vw, 40px);
    letter-spacing: 1px;
  }

  /* Contact info row: stack vertically, centered */
  .contact-info-row { flex-direction: column; align-items: center; gap: 14px; }
  .contact-info-item { min-height: 44px; }

  /* Contact section: tighter padding */
  #contact { padding: 56px 16px; }

  /* Form inputs: 16px prevents iOS auto-zoom; 48px touch target */
  .form-group input,
  .form-group textarea {
    font-size: 16px;
    min-height: 48px;
  }
  .form-group textarea { min-height: 100px; }

  /* Process flow: stack nodes vertically instead of horizontal scroll */
  .process-flow { overflow-x: visible; padding: 16px 0 4px; }
  .process-flow-inner {
    flex-direction: column;
    min-width: 0;
    align-items: flex-start;
    gap: 0;
  }
  .pf-node {
    display: grid;
    grid-template-columns: 52px 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    row-gap: 2px;
    width: 100%;
    padding: 10px 4px;
    align-items: start;
  }
  .pf-icon {
    grid-row: 1 / 3; grid-column: 1;
    width: 52px; height: 52px;
    font-size: 20px;
    align-self: center;
  }
  .pf-label {
    grid-row: 1; grid-column: 2;
    text-align: left; font-size: 11px;
    align-self: end;
  }
  .pf-sub {
    grid-row: 2; grid-column: 2;
    text-align: left; align-self: start;
  }
  /* Vertical connector arrows */
  .pf-arrow {
    width: 2px; height: 20px;
    margin: 0 0 0 29px; /* centers under 52px icon + 4px node padding */
    display: block; flex-shrink: 0;
  }
  .pf-arrow::before {
    background: linear-gradient(to bottom, rgba(59,130,246,.25), rgba(59,130,246,.55));
  }
  .pf-arrow::after {
    right: auto; left: 50%;
    top: auto; bottom: -1px;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top: 7px solid rgba(59,130,246,.55);
  }
  .pf-arrow-dot { display: none; }
  .pf-loop { display: none; min-width: 0; }

  /* Value cards: less padding */
  .value-card { padding: 24px 20px 20px; }

  /* Portfolio thumb: slightly smaller for more visible items */
  .port-thumb-item { width: 108px; }
  .port-thumb-img-wrap { height: 66px; }
  .port-thumb-arrow { width: 36px; height: 36px; min-width: 36px; }
}

/* ── ≤480px: very small screens ────────────────────────────── */
@media (max-width: 480px) {
  /* Hero tag: reduce letter-spacing to prevent overflow */
  .hero-tag { font-size: 9px; letter-spacing: 1.5px; }
  .hero-tagline { letter-spacing: 2px; }

  /* Tighter section padding */
  section { padding: 44px 14px; }
  #process { padding: 36px 14px; }
  #team-index { padding: 40px 14px 36px; }

  /* Founder stats: wrap to 2×2 at very small sizes */
  .founder-card-stats { flex-wrap: wrap; }
  .founder-card-stat { flex: 1 0 44%; padding: 10px 14px; }

  /* Process nodes: slightly more compact */
  .pf-icon { width: 44px; height: 44px; font-size: 18px; }
  .pf-node { grid-template-columns: 44px 1fr; }
  .pf-arrow { margin-left: 25px; } /* (44/2 + 4) − 1 = 25 */
}

/* ── CAD VIEWER ─────────────────────────────────────────────── */
#cad-viewer {
  padding: 100px 56px 80px;
  background: var(--navy-mid);
  position: relative;
}
#cad-viewer .section-num  { color: rgba(96,165,250,.55); }
#cad-viewer .section-title { color: #fff; }
#cad-viewer .section-line  { background: rgba(96,165,250,.25); }

.cad-viewer-layout {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 24px;
  align-items: start;
  margin-top: 40px;
}

.cad-canvas-wrap {
  position: relative;
  width: 100%;
  height: 1040px;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: hidden;
}
#stepCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

.cad-loading-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px;
  background: var(--navy-mid);
  transition: opacity .4s;
  z-index: 5;
}
.cad-spinner {
  width: 32px; height: 32px;
  border: 2px solid rgba(59,130,246,.2);
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: cadSpin 1s linear infinite;
}
@keyframes cadSpin { to { transform: rotate(360deg); } }
.cad-loading-text {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,.5);
  letter-spacing: 1px;
}

.cad-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 4px;
}
.cad-file-label {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,.7);
  background: rgba(96,165,250,.08);
  border: 1px solid rgba(96,165,250,.18);
  border-radius: 5px;
  padding: 10px 14px;
  letter-spacing: .5px;
}
.cad-file-icon { color: #60a5fa; font-size: 15px; }

.cad-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cad-btn {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.6);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  padding: 10px 14px;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
  transition: background .2s, color .2s, border-color .2s;
}
.cad-btn:hover { background: rgba(96,165,250,.12); color: #fff; border-color: rgba(96,165,250,.35); }
.cad-btn.active { background: rgba(96,165,250,.2); color: #60a5fa; border-color: rgba(96,165,250,.5); }

.cad-hint {
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(255,255,255,.28);
  letter-spacing: .5px;
  line-height: 1.8;
}
.cad-legend { display: flex; flex-direction: column; gap: 8px; }
.cad-legend-row {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(255,255,255,.35);
  letter-spacing: .5px;
}
.cad-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

@media (max-width: 900px) {
  #cad-viewer { padding: 72px 20px 60px; }
  .cad-viewer-layout { grid-template-columns: 1fr; }
  .cad-canvas-wrap { height: 380px; }
  .cad-sidebar { flex-direction: row; flex-wrap: wrap; }
  .cad-controls { flex-direction: row; }
  .cad-legend { display: none; }
}

/* ── SOFTWARE PAGE (software.html) ──────────────────────────── */
.sw-page {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 70px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  position: relative; overflow: hidden;
}
.sw-page::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 25% 60%, rgba(37,99,235,.22) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 30%, rgba(96,165,250,.10) 0%, transparent 45%),
    linear-gradient(rgba(37,99,235,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.04) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
}
.sw-page-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 1400px; margin: 0 auto;
  padding: 70px 56px;
  display: grid; grid-template-columns: minmax(340px,420px) 1fr; gap: 72px; align-items: start;
}
.sw-page-label {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--blue-lt); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.sw-page-label::before { content: ''; width: 18px; height: 1px; background: var(--blue-lt); }
.sw-page-title {
  font-family: var(--font-display); font-size: clamp(52px, 5.5vw, 78px);
  letter-spacing: 1px; color: #fff; line-height: .95; margin-bottom: 22px;
}
.sw-page-desc {
  font-size: 16px; line-height: 1.82; color: rgba(255,255,255,.62); margin-bottom: 30px;
}
.sw-page-features {
  list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 36px;
}
.sw-page-features li {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .5px;
  color: rgba(255,255,255,.6); display: flex; align-items: center; gap: 7px;
}
.sw-page-features li::before { content: '▸'; color: var(--blue-lt); font-size: 9px; }
.sw-page-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.sw-page-right {
  display: flex; align-items: center; justify-content: center;
}
.sw-page-img {
  width: 140%;
  margin-left: calc(-20% + 5cm);
  border-radius: 0;
  box-shadow: none;
  border: none;
}
@media (max-width: 960px) {
  .sw-page-inner { grid-template-columns: 1fr; gap: 40px; padding: 50px 24px; }
  .sw-page-right { order: -1; }
  .sw-page-img { width: 140%; margin-left: calc(-10% + 8px); display: block; }
}
@media (max-width: 640px) {
  .sw-page-inner { padding: 40px 16px; }
}

/* ── SOFTWARE TOOLKIT SECTION ───────────────────────────────── */
.sw-toolkit {
  background: var(--bg2);
  padding: 64px 56px;
  border-top: 1px solid var(--border);
}
.sw-toolkit-inner { max-width: 1000px; margin: 0 auto; }
.sw-toolkit-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 4px;
  text-transform: uppercase; color: var(--blue-lt); margin-bottom: 36px;
  display: flex; align-items: center; gap: 16px;
}
.sw-toolkit-label::after { content: ''; flex: 1; height: 1px; background: var(--border2); }
.sw-toolkit-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px; margin-bottom: 32px;
}
.sw-tool-card {
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border2);
  border-left: 3px solid var(--border2);
  border-radius: 4px;
  transition: border-left-color .2s, box-shadow .2s, transform .2s;
}
.sw-tool-card:hover {
  border-left-color: var(--blue);
  box-shadow: 0 6px 20px rgba(37,99,235,.08);
  transform: translateY(-2px);
}
.sw-tool-card--hl { border-left-color: #059669; }
.sw-tool-card--hl:hover { border-left-color: #059669; box-shadow: 0 6px 20px rgba(5,150,105,.10); }
.sw-tool-name {
  font-family: var(--font-display); font-size: 18px; color: var(--dark);
  letter-spacing: .5px; margin-bottom: 4px;
}
.sw-tool-cat {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--faint);
}
.sw-toolkit-note {
  font-size: 13px; line-height: 1.78; color: var(--muted);
  max-width: 700px;
  border-left: 2px solid var(--border2);
  padding-left: 16px;
}
@media (max-width: 640px) {
  .sw-toolkit { padding: 44px 20px; }
  .sw-toolkit-grid { grid-template-columns: 1fr 1fr; }
}

/* ── WEB DESIGN PAGE (webdesign.html) ───────────────────────── */
.wd-page {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 70px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  position: relative; overflow-x: clip; overflow-y: hidden;
}
.wd-page::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 65%, rgba(37,99,235,.20) 0%, transparent 52%),
    radial-gradient(ellipse at 82% 28%, rgba(96,165,250,.10) 0%, transparent 42%),
    linear-gradient(rgba(37,99,235,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.04) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
}
.wd-page-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 1400px; margin: 0 auto;
  padding: 70px 56px;
  display: grid; grid-template-columns: minmax(320px,400px) 1fr; gap: 56px; align-items: stretch;
}
.wd-page-label {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--blue-lt); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.wd-page-label::before { content: ''; width: 18px; height: 1px; background: var(--blue-lt); }
.wd-page-title {
  font-family: var(--font-display); font-size: clamp(52px, 5.5vw, 78px);
  letter-spacing: 1px; color: #fff; line-height: .95; margin-bottom: 22px;
}
.wd-page-desc {
  font-size: 16px; line-height: 1.82; color: rgba(255,255,255,.62); margin-bottom: 30px;
}
.wd-page-features {
  list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 36px;
}
.wd-page-features li {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .5px;
  color: rgba(255,255,255,.6); display: flex; align-items: center; gap: 7px;
}
.wd-page-features li::before { content: '▸'; color: var(--blue-lt); font-size: 9px; }
.wd-page-left { display: flex; flex-direction: column; justify-content: center; }
.wd-page-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.wd-page-right { display: flex; align-items: stretch; margin-right: -56px; }

/* Hero canvas wrapper */
.wd-hero-canvas-wrap {
  flex: 1;
  display: flex; flex-direction: column;
  border: none;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  min-height: 520px;
}
#wdAnimCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999;
  pointer-events: none;
  display: block;
}

/* Code preview widget */
.wd-code-preview {
  background: #060c1a;
  border: 1px solid rgba(96,165,250,.22);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(37,99,235,.08);
  width: 100%;
}
.wd-code-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 16px;
  background: #04091a;
  border-bottom: 1px solid rgba(96,165,250,.14);
}
.wd-code-dot { width: 11px; height: 11px; border-radius: 50%; }
.wd-dot-r { background: #ff5f57; }
.wd-dot-y { background: #febc2e; }
.wd-dot-g { background: #28c840; }
.wd-code-filename {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 1px;
  color: rgba(255,255,255,.4); margin-left: 8px;
}
.wd-code-body {
  padding: 24px 28px;
  font-family: var(--font-mono); font-size: 12px; line-height: 1.9;
  overflow-x: auto; white-space: pre;
}
.wd-code-body code { display: block; }
.wc-tag     { color: var(--blue-lt); }
.wc-attr    { color: #60a5fa; }
.wc-eq      { color: rgba(255,255,255,.4); }
.wc-str     { color: #f59e0b; }
.wc-text    { color: #e5e7eb; }
.wc-comment { color: rgba(255,255,255,.28); font-style: italic; }

@media (max-width: 960px) {
  /* flatten grid into flex so we can order canvas between title & desc */
  .wd-page-inner { display: flex; flex-direction: column; gap: 20px; padding: 50px 24px; }
  .wd-page-left  { display: contents; } /* dissolve wrapper — children become direct flex items */
  .wd-page-label    { order: 1; text-align: center; align-self: center; }
  .wd-page-title    { order: 2; text-align: center; }
  .wd-page-right    { order: 3; width: 100%; margin-right: 0; } /* fix overflow: reset negative margin */
  .wd-page-desc     { order: 4; text-align: center; }
  .wd-page-features { order: 5; width: 100%; }
  .wd-page-cta      { order: 6; justify-content: center; }
  .wd-hero-canvas-wrap { min-height: 260px; }
}
@media (max-width: 640px) {
  .wd-page-inner { padding: 40px 16px; }
  .wd-hero-canvas-wrap { min-height: 220px; }
  .wd-code-body { font-size: 10px; padding: 16px 18px; }
}

/* ── HERO ANIMATION phase bar (lives inside .wd-hero-canvas-wrap) */
.wd-build-phase-row {
  display: flex; align-items: center; gap: 14px;
  padding: 9px 14px;
  border-top: 1px solid rgba(96,165,250,.1);
  background: rgba(4,9,26,.85);
  flex-shrink: 0;
}
.wd-build-phase-track { display: flex; align-items: center; gap: 5px; }
.wd-build-phase-dot {
  display: block; width: 6px; height: 6px; border-radius: 50%;
  background: rgba(96,165,250,.2);
  transition: background .3s, box-shadow .3s;
}
.wd-build-phase-dot.active {
  background: var(--blue-lt);
  box-shadow: 0 0 6px rgba(96,165,250,.7);
}
.wd-build-phase-name {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(96,165,250,.5);
}

/* ── CODE PREVIEW standalone section ────────────────────────── */
.wd-codebox {
  background: var(--bg);
  padding: 72px 56px;
  border-top: 1px solid var(--border);
}
.wd-codebox-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: center;
}
.wd-codebox-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 4px;
  text-transform: uppercase; color: var(--blue-lt); margin-bottom: 16px;
}
.wd-codebox-body {
  font-size: 14px; line-height: 1.85; color: var(--muted);
}
@media (max-width: 900px) {
  .wd-codebox-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 768px) { .wd-codebox { padding: 56px 24px; } }
@media (max-width: 640px) { .wd-codebox { padding: 44px 20px; } }

/* What We Build */
.wd-offerings {
  background: var(--bg2);
  padding: 80px 56px;
  border-top: 1px solid var(--border);
}
.wd-offerings-inner { max-width: 1100px; margin: 0 auto; }
.wd-offerings-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 4px;
  text-transform: uppercase; color: var(--blue-lt); margin-bottom: 40px;
  display: flex; align-items: center; gap: 16px;
}
.wd-offerings-label::after { content: ''; flex: 1; height: 1px; background: var(--border2); }
.wd-offerings-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 16px;
}
.wd-offer-card {
  padding: 28px 24px;
  background: var(--bg);
  border: 1px solid var(--border2);
  border-top: 3px solid var(--border2);
  border-radius: 4px;
  transition: border-top-color .2s, box-shadow .2s, transform .2s;
}
.wd-offer-card:hover {
  border-top-color: var(--blue);
  box-shadow: 0 6px 24px rgba(37,99,235,.10);
  transform: translateY(-3px);
}
.wd-offer-card--hl { border-top-color: var(--blue); }
.wd-offer-card--hl:hover { box-shadow: 0 8px 28px rgba(37,99,235,.16); }
.wd-offer-num {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px;
  color: var(--blue-lt); margin-bottom: 10px;
}
.wd-offer-name {
  font-family: var(--font-display); font-size: 22px; color: var(--dark);
  letter-spacing: .5px; margin-bottom: 10px;
}
.wd-offer-text { font-size: 13px; line-height: 1.75; color: var(--muted); }

@media (max-width: 768px) { .wd-offerings { padding: 56px 24px; } }
@media (max-width: 640px) {
  .wd-offerings { padding: 44px 20px; }
  .wd-offerings-grid { grid-template-columns: 1fr; }
}

/* Why Custom Code */
.wd-why {
  background: var(--navy-mid);
  padding: 80px 56px;
  border-top: 1px solid rgba(37,99,235,.12);
}
.wd-why-inner { max-width: 1100px; margin: 0 auto; }
.wd-why-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 4px;
  text-transform: uppercase; color: var(--blue-lt); margin-bottom: 48px;
  display: flex; align-items: center; gap: 16px;
}
.wd-why-label::after { content: ''; flex: 1; height: 1px; background: rgba(96,165,250,.2); }
.wd-compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.wd-compare-col { padding: 32px 28px; border-radius: 6px; }
.wd-compare-col--bad {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
}
.wd-compare-col--good {
  background: rgba(37,99,235,.08);
  border: 1px solid rgba(96,165,250,.22);
}
.wd-compare-head {
  font-family: var(--font-display); font-size: 20px; letter-spacing: .5px;
  margin-bottom: 22px; display: flex; align-items: center; gap: 10px;
}
.wd-compare-col--bad  .wd-compare-head { color: rgba(255,255,255,.45); }
.wd-compare-col--good .wd-compare-head { color: var(--blue-lt); }
.wd-compare-list { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.wd-compare-list li {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .4px; line-height: 1.6;
  display: flex; align-items: flex-start; gap: 8px;
}
.wd-compare-col--bad  .wd-compare-list li { color: rgba(255,255,255,.38); }
.wd-compare-col--good .wd-compare-list li { color: rgba(255,255,255,.75); }
.wd-compare-list li::before { flex-shrink: 0; margin-top: 1px; font-size: 9px; }
.wd-compare-col--bad  .wd-compare-list li::before { content: '✕'; color: rgba(255,100,100,.55); }
.wd-compare-col--good .wd-compare-list li::before { content: '✓'; color: var(--blue-lt); }

/* CTA Section */
.wd-cta {
  background: var(--bg2);
  padding: 100px 56px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.wd-cta-inner { max-width: 640px; margin: 0 auto; }
.wd-cta-label {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 4px;
  text-transform: uppercase; color: var(--blue-lt); margin-bottom: 18px;
}
.wd-cta-title {
  font-family: var(--font-display); font-size: clamp(38px, 5vw, 62px);
  color: var(--dark); line-height: .95; letter-spacing: .5px; margin-bottom: 20px;
}
.wd-cta-text {
  font-size: 15px; line-height: 1.82; color: var(--muted); margin-bottom: 40px;
}
.wd-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 768px) {
  .wd-why     { padding: 56px 24px; }
  .wd-compare { grid-template-columns: 1fr; }
  .wd-cta     { padding: 72px 24px; }
}
@media (max-width: 640px) {
  .wd-why { padding: 44px 20px; }
  .wd-cta { padding: 56px 20px; }
}

/* ── 3D MODELS PAGE (cad.html) ──────────────────────────────── */
.cadpg-page {
  min-height: 100vh;
  display: flex; align-items: stretch;
  padding-top: 70px;
  background: var(--navy-mid);
  position: relative; overflow: hidden;
}
.cadpg-page::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 15% 60%, rgba(37,99,235,.20) 0%, transparent 52%),
    radial-gradient(ellipse at 85% 25%, rgba(96,165,250,.08) 0%, transparent 48%),
    linear-gradient(rgba(37,99,235,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.04) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
}
.cadpg-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 1400px; margin: 0 auto;
  padding: 60px 56px;
  display: grid; grid-template-columns: minmax(300px,380px) 1fr; gap: 48px; align-items: stretch;
}
.cadpg-left {
  display: flex; flex-direction: column; justify-content: center;
}
.cadpg-label {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--blue-lt); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.cadpg-label::before { content: ''; width: 18px; height: 1px; background: var(--blue-lt); }
.cadpg-title {
  font-family: var(--font-display); font-size: clamp(52px, 5.5vw, 78px);
  letter-spacing: 1px; color: #fff; line-height: .95; margin-bottom: 22px;
}
.cadpg-desc {
  font-size: 16px; line-height: 1.82; color: rgba(255,255,255,.62); margin-bottom: 28px;
}
.cadpg-features {
  list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 32px;
}
.cadpg-features li {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .5px;
  color: rgba(255,255,255,.6); display: flex; align-items: center; gap: 7px;
}
.cadpg-features li::before { content: '▸'; color: var(--blue-lt); font-size: 9px; }
.cadpg-sidebar {
  display: flex; flex-direction: column; gap: 16px;
}
.cad-filelist-label {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255,255,255,.35);
}
.cad-filelist {
  list-style: none; display: flex; flex-direction: column; gap: 2px;
  max-height: 260px; overflow-y: auto;
}
.cad-filelist-item {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .4px;
  color: rgba(255,255,255,.55);
  padding: 6px 10px; border-radius: 4px;
  cursor: pointer; transition: background .15s, color .15s;
}
.cad-filelist-item:hover { background: rgba(96,165,250,.1); color: rgba(255,255,255,.85); }
.cad-filelist-item.active { background: rgba(96,165,250,.18); color: #60a5fa; }
.cadpg-right {
  display: flex; align-items: stretch;
}
.cadpg-canvas-wrap {
  background: transparent;
  height: auto !important;
  min-height: 520px;
  flex: 1;
  transition: box-shadow .2s;
}
.cadpg-canvas-wrap.drop-hover {
  box-shadow: inset 0 0 0 2px rgba(96,165,250,.6);
}
.cadpg-canvas-wrap.drop-hover::after {
  content: 'Drop STEP file here';
  position: absolute; inset: 0; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 14px; letter-spacing: 2px;
  color: #60a5fa; background: rgba(15,29,56,.7);
  pointer-events: none;
}
@media (max-width: 960px) {
  .cadpg-page { overflow: visible; }
  .cadpg-inner { grid-template-columns: 1fr; gap: 36px; padding: 50px 24px; align-items: start; }
  .cadpg-canvas-wrap {
    min-height: 760px;
  }
  .cadpg-sidebar { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .cadpg-inner { padding: 40px 16px; }
  .cadpg-canvas-wrap { min-height: 600px; }
}

/* ══════════════════════════════════════════════════════════════
   MOBILE PRIORITY OVERRIDES — all new mobile-first fixes
   ══════════════════════════════════════════════════════════════ */

/* ── LANG TOGGLE: flags look better slightly larger tap target ── */
.lang-btn { font-size: 10px; padding: 5px 10px; }

/* ── ABOUT BULLETS — hidden on desktop, visible on mobile ──── */
.about-bullets {
  display: none;
}

/* ── TICKER: strict contain so animation can't bleed out ────── */
.ticker { contain: layout; overflow: hidden; }

/* ── EXPERTEASE CREDIT: ensure it's never hidden by overflow ── */
.expertease-credit { overflow: hidden; z-index: 2; }
hr.ec-rule { position: relative; z-index: 2; }

/* ══════════════════════════════════════════════════════════════
   ≤960px  — tablet / large mobile
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {

  /* 3D MODEL: fixed as full-page background on mobile, z-index BELOW text */
  #hero3d {
    display: block;
    position: fixed !important;
    left: 0; top: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 0;          /* behind everything */
    opacity: 0.4;
    transition: opacity 0.6s ease;
    pointer-events: none;
  }
  /* Drag overlay: disabled on mobile (scroll drives the animation instead) */
  #hero3d-drag { display: none !important; }

  /* Hero text: above the fixed canvas */
  .hero-left    { z-index: 2; position: relative; }
  .hero-right   { position: relative; z-index: 2; }
  .hero-stats   { z-index: 2; position: relative; }

  /* Hero titles: bright white with depth shadow for readability */
  .hero-name    { color: #fff; text-shadow: 0 2px 24px rgba(0,5,30,0.55); }
  .hero-title   { color: rgba(255,255,255,0.82) !important; text-shadow: 0 1px 14px rgba(0,5,30,0.45); }
  .hero-tag     { text-shadow: 0 1px 12px rgba(0,5,30,0.45); }
  .hero-tagline { text-shadow: 0 1px 10px rgba(0,5,30,0.4); }
  .hero-desc    { color: rgba(255,255,255,0.78) !important; text-shadow: 0 1px 10px rgba(0,5,30,0.35); }
  .hero-stats   { background: transparent; }

  /* Sections: sit above the fixed canvas; slight transparency lets model show faintly */
  #about        { position: relative; z-index: 1; background: rgba(242,246,252,0.93); }
  #process      { position: relative; z-index: 1; background: rgba(15,29,56,0.95); }
  #projects     { position: relative; z-index: 1; background: rgba(255,255,255,0.93); }
  #team-index   { position: relative; z-index: 1; background: rgba(242,246,252,0.93); }
  #contact      { position: relative; z-index: 1; background: rgba(242,246,252,0.93); }
  footer        { position: relative; z-index: 1; }
  .ticker       { position: relative; z-index: 1; }
  .expertease-credit { position: relative; z-index: 1; }

  /* UNIVERSITY BANNERS: all 5 in one row, equal width, no scroll */
  .edu-cards {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 4px 0 8px;
    grid-template-columns: none;
  }
  .edu-card {
    flex: 1;
    min-width: 0;
    padding: 12px 6px;
    gap: 6px;
    text-align: center;
    align-items: center;
  }
  .edu-logo-wrap { width: 40px; height: 40px; }
  .edu-logo-wrap img { width: 28px; height: 28px; }
  .edu-name    { font-size: 9.5px; line-height: 1.3; overflow-wrap: break-word; word-break: break-word; width: 100%; text-align: center; }
  .edu-degree  { font-size: 7.5px; text-align: center; }
  .edu-country { font-size: 7.5px; overflow-wrap: break-word; word-break: break-word; width: 100%; text-align: center; }
  .edu-city { display: block; }
  .edu-sep  { display: none; }
  .edu-nation { display: block; }

  /* FOOTER: keep as one horizontal line */
  footer {
    flex-direction: row;
    flex-wrap: nowrap;
    padding: 12px 20px;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
  .footer-logo img { height: 22px; }
  .footer-text { font-size: 8px; letter-spacing: 1px; }
}

/* ══════════════════════════════════════════════════════════════
   ≤640px  — small mobile
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {

  /* FONT SIZES: section titles & hero — reduce minimums */
  .section-title  { font-size: clamp(30px, 8.5vw, 52px); }
  .hero-name      { font-size: clamp(42px, 13vw, 70px); }
  .process-title  { font-size: clamp(22px, 6vw, 32px); }
  .contact-heading { font-size: clamp(26px, 7.5vw, 40px); }

  /* HERO 3D on small mobile — slightly more subtle */
  #hero3d { opacity: 0.32; }

  /* FOOTER compact on small mobile */
  footer {
    flex-direction: row;
    flex-wrap: nowrap;
    padding: 10px 14px;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
  .footer-logo img { height: 18px; }
  .footer-text { font-size: 7.5px; letter-spacing: 0.8px; }
  .footer-social-link svg { width: 14px; height: 14px; }

  /* UNIVERSITY BANNERS: even smaller on small mobile — still all in one row */
  .edu-card { flex: 1; min-width: 0; padding: 10px 5px; gap: 5px; text-align: center; align-items: center; }
  .edu-logo-wrap { width: 34px; height: 34px; }
  .edu-logo-wrap img { width: 24px; height: 24px; }
  .edu-name { font-size: 8.5px; line-height: 1.25; overflow-wrap: break-word; word-break: break-word; width: 100%; text-align: center; }
  .edu-degree { font-size: 7px; text-align: center; }
  .edu-country { font-size: 7px; overflow-wrap: break-word; word-break: break-word; width: 100%; text-align: center; }

  /* PROCESS VALUE CARDS: compact, clamp description text */
  .value-card {
    padding: 20px 16px 16px;
  }
  .value-card .value-text {
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .value-bilingual .en { font-size: 20px; }
  .value-heading { font-size: 20px; }

  /* ABOUT VALUE ITEMS: compact, clamp text */
  .value-item { padding: 18px 16px 16px; }
  .value-item .value-text {
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .value-title  { font-size: 18px; }
  .vi-icon-wrap { width: 38px; height: 38px; margin-bottom: 12px; }

  /* ABOUT SECTION: show mobile bullet summary, hide long paragraphs */
  .about-text #about-p2,
  .about-text #about-p3,
  .about-text #about-p4 { display: none; }

  .about-bullets {
    display: block;
    list-style: none;
    padding: 8px 0 4px;
    margin: 0;
  }
  .about-bullets li {
    font-size: 14px;
    line-height: 1.65;
    color: var(--muted);
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }
  .about-bullets li:last-child { border-bottom: none; }
  .about-bullets li::before {
    content: '▸';
    color: var(--blue);
    font-size: 10px;
    flex-shrink: 0;
    margin-top: 4px;
  }

  /* PROJECT VIEWER: single-col already; improve info area */
  .port-info { padding: 18px 16px 24px; }
  .port-title { font-size: clamp(22px, 6vw, 32px); }
  .port-desc  { font-size: 13px; }
  /* Thumbnail hint: tap instead of drag */
  .port-hint-txt::before { content: '↕ tap · '; }

  /* PROCESS FLOW: no overflow on small screens */
  .process-flow { max-width: 100%; }

  /* SECTION HEADERS: less margin-bottom */
  .section-header { margin-bottom: 36px; }
}

/* ══════════════════════════════════════════════════════════════
   ≤480px  — very small mobile
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .section-title { font-size: clamp(26px, 8vw, 40px); }
  .hero-name     { font-size: clamp(36px, 12vw, 56px); }

  /* Footer: hide location text to save space */
  #footer-loc { display: none; }
  footer { padding: 10px 12px; }

  /* Edu cards tiny on very small screens */
  .edu-card { padding: 8px 4px; gap: 4px; text-align: center; align-items: center; }
  .edu-logo-wrap { width: 28px; height: 28px; }
  .edu-logo-wrap img { width: 20px; height: 20px; }
  .edu-name { font-size: 7.5px; overflow-wrap: break-word; word-break: break-word; width: 100%; text-align: center; }
  .edu-degree { display: none; }
  .edu-country { font-size: 6.5px; overflow-wrap: break-word; word-break: break-word; width: 100%; text-align: center; }
}
