@import url('https://fonts.googleapis.com/css2?family=Doto:ROND,wght@0,700;0,900&family=Manrope:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&family=JetBrains+Mono:wght@400;500&display=swap');

@font-face {
  font-family: 'Rockwell';
  src: url('fonts/rockwell.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap; 
}

/* =========================================
   IDETICA — Design System
   Precision Optics Aesthetic
   ========================================= */

:root {
  /* Light theme — shared with the Startup Boost page. Violet palette. */
  --bg:            #fdfbff;
  --bg-surface:    hsl(266, 100%, 97.5%);
  --bg-card:       #ffffff;
  --bg-card-h:     hsl(266, 100%, 98.5%);

  /* Brand accent — anchored to rgb(154, 81, 248) */
  --cyan:          rgb(154, 81, 248);
  --cyan-deep:     hsl(266, 80%, 50%);
  --cyan-glow:     hsla(258, 90%, 50%, 0.30);
  --cyan-dim:      hsl(266, 100%, 97%);
  --cyan-mid:      hsl(266, 100%, 93%);
  --pink:          hsl(250, 92%, 56%);
  --grad:          linear-gradient(115deg, hsl(266, 95%, 56%) 0%, hsl(258, 90%, 55%) 55%, hsl(254, 95%, 58%) 100%);

  --amber:         #b45309;
  --amber-dim:     #fff4dc;

  --border:        hsla(266, 60%, 45%, 0.14);
  --border-mid:    hsla(266, 60%, 45%, 0.28);
  --border-strong: hsla(266, 80%, 50%, 0.55);

  --text:          #1a0f33;
  --text-2:        #4a4166;
  --text-3:        #6f668a;

  --shadow:        0 18px 40px -18px hsla(266, 80%, 35%, 0.35);
  --shadow-sm:     0 8px 22px -12px hsla(266, 80%, 35%, 0.30);
  --shadow-btn:    0 14px 30px -12px hsla(258, 90%, 45%, 0.55);

  --nav-bg:        rgba(253, 251, 255, 0.88);
  --nav-shadow:    0 8px 24px -16px hsla(266, 80%, 35%, 0.25);
  --dots:          hsla(266, 70%, 50%, 0.16);
  --grid-line:     hsla(266, 70%, 50%, 0.08);
  --glow-1:        hsla(289, 95%, 62%, 0.20);
  --glow-2:        hsla(250, 95%, 62%, 0.08);
  --canvas-bg:     linear-gradient(160deg, #ffffff 0%, hsl(266, 100%, 97%) 100%);
  --btn-ghost-bg:  #ffffff;
  --contact-bg:    linear-gradient(135deg, hsl(266, 100%, 97%) 0%, hsl(250, 100%, 97%) 100%);
  --ph-bg:         linear-gradient(135deg, #ffffff 0%, hsl(266, 100%, 97%) 45%, hsl(250, 100%, 96%) 100%);
  --photo-ph:      linear-gradient(135deg, hsl(266, 100%, 96%), hsl(250, 100%, 96%));
  --initials:      hsl(266, 55%, 62%);
  --amber-border:  rgba(245, 158, 11, 0.40);
  --img-opacity:   1;
  --img-filter:    grayscale(15%);
  --img-filter-h:  grayscale(0%);
  --sel:           hsl(266, 100%, 90%);
  --scan-opacity:  0.35;
  --vf-ring:       rgba(255, 255, 255, 0.55);
  color-scheme:    light;

  --font-logo:    'Rockwell', Georgia, serif;
  --font-display: 'Manrope', sans-serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --nav-h:        68px;
  --r:            16px;
  --ease:         cubic-bezier(0.16, 1, 0.3, 1);
  --max-w:        1200px;
  --pad:          clamp(24px, 5vw, 80px);
}

:root[data-theme="dark"] {
  color-scheme:    dark;

  --bg:            #07090f;
  --bg-surface:    #0b0f1a;
  --bg-card:       #0f1520;
  --bg-card-h:     #131d2a;

  --cyan:          hsl(266, 100%, 72%);
  --cyan-deep:     hsl(266, 100%, 84%);
  --cyan-glow:     hsla(258, 90%, 50%, 0.35);
  --cyan-dim:      hsla(266, 100%, 60%, 0.10);
  --cyan-mid:      hsla(266, 100%, 60%, 0.30);
  --pink:          hsl(250, 92%, 56%);

  --amber:         #f59e0b;
  --amber-dim:     rgba(245, 158, 11, 0.10);
  --amber-border:  rgba(245, 158, 11, 0.30);

  --border:        hsla(266, 100%, 60%, 0.14);
  --border-mid:    hsla(266, 100%, 60%, 0.28);
  --border-strong: hsla(266, 100%, 65%, 0.55);

  --text:          #edf2f7;
  --text-2:        #8fa2ba;
  --text-3:        #6b7d95;

  --shadow:        0 18px 40px -18px rgba(0, 0, 0, 0.75);
  --shadow-sm:     0 8px 22px -12px rgba(0, 0, 0, 0.65);
  --shadow-btn:    0 14px 30px -12px hsla(258, 90%, 45%, 0.50);

  --nav-bg:        rgba(7, 9, 15, 0.88);
  --nav-shadow:    none;
  --dots:          hsla(266, 100%, 65%, 0.10);
  --grid-line:     hsla(266, 100%, 65%, 0.06);
  --glow-1:        hsla(266, 100%, 55%, 0.14);
  --glow-2:        hsla(250, 95%, 55%, 0.05);
  --canvas-bg:     var(--bg-surface);
  --btn-ghost-bg:  transparent;
  --contact-bg:    var(--bg-surface);
  --ph-bg:         linear-gradient(135deg, #07090f 0%, #0a1020 40%, #0d1828 100%);
  --photo-ph:      linear-gradient(135deg, #0b1320, #0f1c30);
  --initials:      var(--text-3);
  --img-opacity:   0.88;
  --img-filter:    grayscale(25%) brightness(0.9);
  --img-filter-h:  grayscale(0%) brightness(1);
  --sel:           hsla(266, 100%, 60%, 0.35);
  --scan-opacity:  0.22;
  --vf-ring:       rgba(255, 255, 255, 0.05);
}

/* =========================================
   RESET
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  font-weight: 700;
}

/* =========================================
   LAYOUT
   ========================================= */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}
section { padding: 100px 0; }

/* =========================================
   NAVIGATION
   ========================================= */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--border);
  box-shadow: var(--nav-shadow);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-logo);
  font-weight: 400;
  font-size: 2.45rem;
  letter-spacing: 0.04em;
  color: var(--text);
}
.nav-logo span { color: var(--cyan); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--cyan);
}
.nav-cta {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff !important;
  background: var(--cyan);
  background-origin: border-box;
  border: 2px solid transparent;
  padding: 8px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow-btn);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease) !important;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px -12px hsla(258, 90%, 45%, 0.65);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--cyan);
  background-origin: border-box;
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover {
  background: var(--cyan-deep);
  box-shadow: 0 20px 36px -12px hsla(258, 90%, 45%, 0.65);
  transform: translateY(-3px);
}
.btn-ghost {
  background: var(--btn-ghost-bg);
  color: var(--text);
  border-color: var(--border-mid);
}
.btn-ghost:hover {
  background: var(--cyan-dim);
  border-color: var(--border-strong);
  color: var(--cyan-deep);
  transform: translateY(-2px);
}

/* =========================================
   TAGS
   ========================================= */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid;
}
.tag-cyan {
  color: var(--cyan-deep);
  border-color: var(--cyan-mid);
  background: var(--cyan-dim);
}
.tag-amber {
  color: var(--amber);
  border-color: var(--amber-border);
  background: var(--amber-dim);
}

/* =========================================
   SECTION EYEBROW
   ========================================= */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-deep);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: var(--grad);
  flex-shrink: 0;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 560px;
  line-height: 1.72;
}

/* =========================================
   HERO — INDEX
   ========================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--dots) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}
.hero-grid-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 65% 50%, transparent 0%, var(--bg) 72%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px var(--pad);
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 80px;
  align-items: center;
  width: 100%;
}
.hero-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-deep);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.1s forwards;
}
.hero-label::before {
  content: '';
  width: 44px;
  height: 1px;
  background: var(--cyan);
}
.hero h1 {
  font-size: clamp(3rem, 6vw, 5.2rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.2s forwards;
}
.hero h1 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 1.08rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 48px;
  max-width: 440px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.35s forwards;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.45s forwards;
}
.hero-visual {
  position: relative;
  height: 460px;
  opacity: 0;
  animation: fadeIn 1.2s var(--ease) 0.5s forwards;
}

/* Image-processing pipeline illustration (style shared with the Startup Boost page) */
.viewfinder {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  background: var(--canvas-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow), 0 0 0 10px var(--vf-ring);
  overflow: hidden;
}
.vf-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 34px 34px;
}
.vf-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 3px solid var(--cyan);
  opacity: 0.5;
}
.vf-corner.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.vf-corner.tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.vf-corner.bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.vf-corner.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }

.pipeline {
  position: absolute;
  inset: 40px 32px;
  display: flex;
  flex-direction: column;
  --tile: 48px;
  --np: 16px;
}
.pipeline .stage {
  position: relative;
  flex: 0 0 auto;
  height: 22%;
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 var(--np);
  background: var(--bg-card);
  border: 2px solid var(--cyan-mid);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}
.pipeline .stage:nth-of-type(1) { animation: chase1 5s infinite; }
.pipeline .stage:nth-of-type(2) { animation: chase2 5s infinite; }
.pipeline .stage:nth-of-type(3) { animation: chase3 5s infinite; }
.pipeline .stage:nth-of-type(4) { animation: chase4 5s infinite; }
.pipeline .tile {
  flex: none;
  width: var(--tile);
  height: var(--tile);
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 10px 18px -10px hsla(266, 80%, 30%, 0.55);
}
.pipeline .tile svg { width: 24px; height: 24px; }
.pipeline .t-1 { background: linear-gradient(135deg, #a855f7, #7c3aed); }
.pipeline .t-2 { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.pipeline .t-3 { background: linear-gradient(135deg, hsl(250, 85%, 74%), hsl(250, 85%, 64%)); }
.pipeline .t-4 { background: var(--grad); }
.pipeline .st-text { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.pipeline .st-text b { font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; letter-spacing: -0.01em; color: var(--text); }
.pipeline .st-text span { margin-top: 3px; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cyan-deep); }
.pipeline .ok {
  margin-left: auto;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #34d399, #16a34a);
  box-shadow: 0 6px 12px -6px rgba(22, 163, 74, 0.7);
  opacity: 0;
  transform: scale(0.4);
}
.pipeline .stage:nth-of-type(1) .ok { animation: chaseOk1 5s infinite; }
.pipeline .stage:nth-of-type(2) .ok { animation: chaseOk2 5s infinite; }
.pipeline .stage:nth-of-type(3) .ok { animation: chaseOk3 5s infinite; }
.pipeline .stage:nth-of-type(4) .ok { animation: chaseOk4 5s infinite; }
.pipeline .ok svg { width: 14px; height: 14px; }
.pipeline .link {
  flex: 1 1 14px;
  min-height: 10px;
  width: 3px;
  margin-left: calc(var(--np) + var(--tile) / 2 - 1.5px);
  background: repeating-linear-gradient(to bottom, hsla(266, 90%, 55%, 0.7) 0 6px, transparent 6px 12px);
  background-size: 3px 12px;
  animation: pipelineFlow 0.7s linear infinite;
}
@keyframes pipelineFlow { to { background-position: 0 12px; } }
/* All four stages share one 5s cycle: Acquire lights up and stays lit,
   then Understand joins it (Acquire still lit), then Act, then Improve --
   so they accumulate until all four are lit together, then all switch
   off at once and the cycle restarts from Acquire. */
@keyframes chase1 {
  0%, 2%    { border-color: var(--cyan-mid); box-shadow: var(--shadow-sm); }
  6%, 84%   { border-color: hsla(266, 70%, 55%, 0.55); box-shadow: var(--shadow-sm); }
  88%, 100% { border-color: var(--cyan-mid); box-shadow: var(--shadow-sm); }
}
@keyframes chase2 {
  0%, 22%   { border-color: var(--cyan-mid); box-shadow: var(--shadow-sm); }
  26%, 84%  { border-color: hsla(266, 70%, 55%, 0.55); box-shadow: var(--shadow-sm); }
  88%, 100% { border-color: var(--cyan-mid); box-shadow: var(--shadow-sm); }
}
@keyframes chase3 {
  0%, 42%   { border-color: var(--cyan-mid); box-shadow: var(--shadow-sm); }
  46%, 84%  { border-color: hsla(266, 70%, 55%, 0.55); box-shadow: var(--shadow-sm); }
  88%, 100% { border-color: var(--cyan-mid); box-shadow: var(--shadow-sm); }
}
@keyframes chase4 {
  0%, 62%   { border-color: var(--cyan-mid); box-shadow: var(--shadow-sm); }
  66%, 84%  { border-color: hsla(266, 70%, 55%, 0.55); box-shadow: var(--shadow-sm); }
  88%, 100% { border-color: var(--cyan-mid); box-shadow: var(--shadow-sm); }
}
@keyframes chaseOk1 {
  0%, 2%    { opacity: 0; transform: scale(0.4); }
  6%, 84%   { opacity: 1; transform: none; }
  88%, 100% { opacity: 0; transform: scale(0.4); }
}
@keyframes chaseOk2 {
  0%, 22%   { opacity: 0; transform: scale(0.4); }
  26%, 84%  { opacity: 1; transform: none; }
  88%, 100% { opacity: 0; transform: scale(0.4); }
}
@keyframes chaseOk3 {
  0%, 42%   { opacity: 0; transform: scale(0.4); }
  46%, 84%  { opacity: 1; transform: none; }
  88%, 100% { opacity: 0; transform: scale(0.4); }
}
@keyframes chaseOk4 {
  0%, 62%   { opacity: 0; transform: scale(0.4); }
  66%, 84%  { opacity: 1; transform: none; }
  88%, 100% { opacity: 0; transform: scale(0.4); }
}

/* =========================================
   STATS BAR
   ========================================= */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}
.stats-bar .container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-top: 60px;
  padding-bottom: 60px;
  gap: 40px;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.035em;
  line-height: 1;
}
.stat-num sup {
  font-size: 1.4rem;
  color: var(--cyan);
  vertical-align: super;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 8px;
}

/* =========================================
   SERVICE CARDS
   ========================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--border);
  box-shadow: var(--shadow-sm);
}
.service-card {
  background: var(--bg-card);
  padding: 40px 32px;
  transition: background 0.3s;
  position: relative;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
  transform-origin: left;
}
.service-card:hover { background: var(--bg-card-h); }
.service-card:hover::before { transform: scaleX(1); }
.service-num {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-3);
  letter-spacing: 0.12em;
  margin-bottom: 24px;
}
.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
  letter-spacing: 0.01em;
}
.service-card ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-card li {
  font-size: 0.84rem;
  color: var(--text-2);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}
.service-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 1px;
  background: var(--cyan);
}

/* =========================================
   PROJECT TEASERS (index)
   ========================================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.project-teaser {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color 0.35s, transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.project-teaser:hover {
  border-color: var(--border-mid);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.project-teaser-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}
.project-teaser-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
  opacity: var(--img-opacity);
}
.project-teaser:hover .project-teaser-img img { transform: scale(1.05); }
.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-placeholder-gpu {
  background: var(--ph-bg);
  position: relative;
  overflow: hidden;
}
.img-placeholder-gpu::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, var(--grid-line) 0px, var(--grid-line) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(0deg, var(--grid-line) 0px, var(--grid-line) 1px, transparent 1px, transparent 40px);
}
.placeholder-icon {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 1;
}
.project-teaser-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.project-teaser-body .tag { margin-bottom: 16px; }
.project-teaser-body h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text);
}
.project-teaser-body p {
  font-size: 0.87rem;
  color: var(--text-2);
  line-height: 1.65;
  flex: 1;
}
.teaser-link {
  margin-top: 24px;
  font-size: 0.76rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--cyan-deep);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.25s var(--ease);
}
.project-teaser:hover .teaser-link { gap: 12px; }

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.contact-section .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.contact-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 14px;
  letter-spacing: -0.025em;
}
.contact-text p {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 460px;
  line-height: 1.7;
}
.contact-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.contact-startup-link { margin-top: 22px; }

/* =========================================
   FOOTER
   ========================================= */
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 44px var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  border-top: 1px solid var(--border);
}
.footer-logo {
  font-family: var(--font-logo);
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
}
.footer-logo span { color: var(--cyan); }
.footer-copy {
  font-size: 0.72rem;
  color: var(--text-3);
  font-family: var(--font-mono);
}

/* =========================================
   PAGE HERO (inner pages)
   ========================================= */
.page-hero {
  padding-top: calc(var(--nav-h) + 90px);
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--dots) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}
.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, var(--bg) 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-3);
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}
.page-hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  font-weight: 800;
}
.page-hero p {
  font-size: 1.08rem;
  color: var(--text-2);
  max-width: 580px;
  line-height: 1.72;
}

/* =========================================
   PROJECT ARTICLES (projects.html)
   ========================================= */
.project-article {
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg-card);
  transition: border-color 0.3s;
  box-shadow: var(--shadow-sm);
}
.project-article:hover { border-color: var(--border-mid); }
.project-article + .project-article { margin-top: 24px; }

.pa-header {
  padding: 48px 48px 40px;
}
.pa-header .tag { margin-bottom: 20px; }
.pa-header h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  margin-bottom: 14px;
  letter-spacing: -0.025em;
}
.pa-header .summary {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 700px;
  line-height: 1.72;
}

.pa-body {
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 360px 1fr;
}
.pa-body.no-img {
  grid-template-columns: 1fr;
}
.pa-img {
  border-right: 1px solid var(--border);
  overflow: hidden;
  max-height: 360px;
  display: flex;
  align-items: center;
  background: var(--bg-surface);
}
.pa-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: var(--img-opacity);
}
.pa-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pa-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.pa-col {
  padding: 36px 36px;
  border-right: 1px solid var(--border);
}
.pa-col:last-child { border-right: none; }
.pa-col h4 {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-deep);
  margin-bottom: 20px;
}
.pa-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pa-col li {
  font-size: 0.84rem;
  color: var(--text-2);
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}
.pa-col li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 1px;
  background: var(--cyan);
}

/* =========================================
   ABOUT — TEAM
   ========================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  box-shadow: var(--shadow-sm);
}
.team-card:hover {
  border-color: var(--border-mid);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.team-photo {
  height: 260px;
  overflow: hidden;
  background: var(--bg-surface);
  position: relative;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--img-filter);
  transition: filter 0.4s, transform 0.5s var(--ease);
}
.team-card:hover .team-photo img {
  filter: var(--img-filter-h);
  transform: scale(1.03);
}
.team-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--photo-ph);
}
.team-initials {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--initials);
  letter-spacing: -0.02em;
}
.team-info {
  padding: 22px 24px;
  border-top: 1px solid var(--border);
}
.team-info h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}
.team-role {
  font-size: 0.72rem;
  color: var(--cyan-deep);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

/* =========================================
   ABOUT — PILLARS
   ========================================= */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--border);
}
.pillar {
  background: var(--bg-card);
  padding: 44px 36px;
  position: relative;
  transition: background 0.3s;
}
.pillar:hover { background: var(--bg-card-h); }
.pillar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.pillar:hover::before { transform: scaleX(1); }
.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-3);
  letter-spacing: 0.12em;
  margin-bottom: 24px;
}
.pillar h3 {
  font-size: 1.1rem;
  margin-bottom: 14px;
  font-weight: 700;
}
.pillar p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.68;
}

/* =========================================
   ABOUT — TECH STACK
   ========================================= */
.stack-category { margin-bottom: 36px; }
.stack-category-title {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.stack-pill {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-mid);
  color: var(--text-2);
  transition: all 0.2s;
  background: var(--bg-card);
}
.stack-pill:hover {
  border-color: var(--cyan-deep);
  color: var(--cyan);
  background: var(--cyan-dim);
}

/* =========================================
   SCAN DIVIDER
   ========================================= */
.scan-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--cyan) 30%, var(--cyan) 70%, transparent 100%);
  opacity: var(--scan-opacity);
}

/* =========================================
   SCROLL ANIMATIONS
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* =========================================
   KEYFRAMES
   ========================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 0; }
  .hero-visual { display: none; }
  .projects-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  section { padding: 72px 0; }
  .pa-body { grid-template-columns: 1fr; }
  .pa-img { border-right: none; border-bottom: 1px solid var(--border); max-height: 260px; }
  .pa-header { padding: 32px 28px 28px; }
  .contact-section .container { flex-direction: column; }
  .pillars-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .pa-details { grid-template-columns: 1fr; }
  .pa-col { border-right: none; border-bottom: 1px solid var(--border); }
  .pa-col:last-child { border-bottom: none; }
  .footer-inner { flex-direction: column; text-align: center; }
  .hero h1 { font-size: 2.8rem; }
}

/* =========================================
   LIGHT THEME EXTRAS
   ========================================= */
::selection { background: var(--sel); color: var(--text); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 8px; }

/* =========================================
   THEME TOGGLE
   ========================================= */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-mid);
  background: var(--bg-card);
  color: var(--text-2);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.25s var(--ease);
}
.theme-toggle:hover {
  color: var(--cyan-deep);
  border-color: var(--border-strong);
  background: var(--cyan-dim);
  transform: rotate(12deg);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
@media (max-width: 640px) {
  .nav-links { gap: 14px; }
}
