/* ═══════════════════════════════════════════════════════
   ABDELWAHAB ADEL — LIGHT PREMIUM PORTFOLIO
   CodeMZ-inspired editorial light theme
   ═══════════════════════════════════════════════════════ */

/* ─── TOKENS ─────────────────────────────────────── */
:root {
  /* Background — soft blue-tinted light */
  --bg-page: #f0f4fa;
  --bg-page-2: #e8eef7;
  --bg-soft: #ffffff;
  --bg-elevated: #ffffff;
  --bg-tint: #f7f9fc;

  /* Borders */
  --border-1: rgba(10, 10, 10, 0.06);
  --border-2: rgba(10, 10, 10, 0.10);
  --border-3: rgba(10, 10, 10, 0.16);

  /* Text */
  --text-hi: #0a0a0a;
  --text-mid: #4b5563;
  --text-low: #596273;    /* 5.6:1 on --bg-page (was 4.4:1) */
  --text-faint: #636b7a;  /* 4.9:1 on --bg-page (was 2.3:1)  */

  /* Accent — subtle emerald for small touches only */
  --accent: #10b981;
  --accent-dim: rgba(16, 185, 129, 0.10);
  --accent-border: rgba(16, 185, 129, 0.30);
  --accent-strong: #047857; /* AA-contrast accent for text, icons and focus rings on light surfaces */

  /* Card shadows — soft, premium */
  --shadow-card: 0 1px 2px rgba(10, 10, 10, 0.04), 0 8px 24px -8px rgba(10, 10, 10, 0.06);
  --shadow-elevated: 0 4px 12px rgba(10, 10, 10, 0.05), 0 24px 48px -12px rgba(10, 10, 10, 0.10);

  /* Typography */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Spacing (8px base) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Layout */
  --container: 1280px;
  --container-wide: 1440px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 999px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.6s;
  --dur-fast: 0.3s;
}

/* ─── FONTS (self-hosted, latin subset, variable) ─── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ─── RESET ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  font-family: var(--font-display);
  background: var(--bg-page);
  color: var(--text-hi);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  letter-spacing: -0.011em;
  background-image:
    radial-gradient(ellipse 100% 60% at 50% -10%, rgba(255, 255, 255, 0.8), transparent 70%),
    radial-gradient(ellipse 80% 50% at 90% 30%, rgba(200, 220, 255, 0.25), transparent 60%),
    radial-gradient(ellipse 70% 40% at 10% 70%, rgba(220, 230, 250, 0.3), transparent 60%);
  background-attachment: fixed;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
em { font-style: normal; }

::selection { background: var(--text-hi); color: white; }

.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.04em; }

/* ─── INTRO PRELOADER ────────────────────────────── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9997;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-page);
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
  animation: preloader-failsafe 0.01s linear 4s forwards;
}
.preloader.is-hiding { opacity: 0; visibility: hidden; }
/* Failsafe: if script.js never runs (blocked / failed to load) the page must not stay covered. */
/* transform (unlike opacity/visibility) has no transition on this element, so nothing can hold the overlay in place */
@keyframes preloader-failsafe { to { transform: translateY(-100%); opacity: 0; visibility: hidden; pointer-events: none; } }

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 0 24px;
}

.preloader-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 8vw, 104px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text-hi);
  white-space: nowrap;
  opacity: 0;
}
.preloader-wordmark em { font-style: normal; color: var(--text-faint); padding: 0 0.05em; }
.preloader-wordmark.is-static { opacity: 1; transition: opacity 0.5s var(--ease); }

.preloader-role {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--text-mid);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.preloader-role.is-in { opacity: 1; transform: translateY(0); }

body.is-preloading { overflow: hidden; }

@media (max-width: 560px) {
  .preloader-wordmark { font-size: 9vw; }
}
@media (prefers-reduced-motion: reduce) {
  .preloader-wordmark, .preloader-role { opacity: 1 !important; transform: none !important; }
}

/* ─── ACCESSIBILITY ──────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 12px 20px;
  background: var(--text-hi);
  color: white;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius);
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 4px;
}

/* ─── BG LAYERS ──────────────────────────────────── */
.bg-grid {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(to right, rgba(10, 10, 10, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10, 10, 10, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: 0;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 80%);
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--text-hi);
  z-index: 100;
  transition: width 0.1s linear;
}

/* Custom cursor */
.cursor { display: none; }

/* ─── CONTAINER ──────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}
.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}
@media (max-width: 640px) {
  .container, .container-wide { padding: 0 20px; }
}

/* ─── BUTTONS ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: var(--radius-full);
  transition: all var(--dur-fast) var(--ease);
  position: relative;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--text-hi);
  color: white;
  font-weight: 500;
  border-color: var(--text-hi);
}
.btn-primary:hover {
  background: #1f2937;
  transform: translateY(-1px);
  box-shadow: 0 12px 32px -8px rgba(10, 10, 10, 0.25);
}
.btn-primary svg { transition: transform 0.3s var(--ease); }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost {
  background: var(--bg-soft);
  color: var(--text-hi);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover {
  border-color: var(--text-hi);
  background: var(--text-hi);
  color: white;
}
.btn-ghost svg { transition: transform 0.3s var(--ease); }
.btn-ghost:hover svg { transform: translateX(4px); }

.btn-link {
  color: var(--text-hi);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: opacity var(--dur-fast) var(--ease);
  font-weight: 500;
}
.btn-link:hover { opacity: 0.6; }

/* ─── PILL / TAG ─────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ─── NAVBAR ─────────────────────────────────────── */
.nav {
  position: fixed;
  top: 16px; left: 0; right: 0;
  z-index: 100;
  padding: 0 16px;
  transition: all var(--dur) var(--ease);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 12px 12px 24px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-full);
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.04), 0 8px 24px -8px rgba(10, 10, 10, 0.06);
}
.nav.scrolled .nav-inner {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.04), 0 12px 32px -8px rgba(10, 10, 10, 0.10);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;

  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--text-hi);
}

.logo-mark {
  width: 55px;
  height: 42px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
  border-radius: var(--radius-sm);

  background: #fff;
}

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-hi);
}

.logo-text em {
  color: var(--text-faint);
  font-style: normal;
  padding: 0 4px;
}
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  position: relative;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  border-radius: var(--radius-full);
  transition: color var(--dur-fast) var(--ease);
}
.nav-link:hover { color: var(--text-hi); }
.nav-link.active { color: var(--text-hi); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.nav-cta { padding: 10px 20px; font-size: 13px; }

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  padding: 9px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  background: white;
}
.menu-btn span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text-hi);
  transition: all 0.3s var(--ease);
}
.menu-btn.active span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-btn.active span:nth-child(2) { transform: translateY(-0.5px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: 0; right: 0;
  width: 100%;
  max-width: 480px;
  height: 100dvh;
  background: white;
  border-left: 1px solid var(--border-1);
  z-index: 99;
  transform: translateX(100%);
  visibility: hidden; /* off-canvas links must not be reachable by keyboard / screen readers */
  transition: transform 0.5s var(--ease), visibility 0s linear 0.5s;
  overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); visibility: visible; transition-delay: 0s; }
.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: 100px 32px 32px;
}
.mobile-nav-links { display: flex; flex-direction: column; gap: 4px; }
.mobile-link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-hi);
  border-bottom: 1px solid var(--border-1);
  transition: color 0.3s, padding 0.3s;
}
.mobile-link::before {
  content: attr(data-num);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.05em;
}
.mobile-link:hover { padding-left: 8px; }
.mobile-nav-footer {
  padding-top: 32px;
  border-top: 1px solid var(--border-1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 13px;
  color: var(--text-mid);
}
.mobile-nav-footer a { color: var(--text-mid); }
.mobile-nav-footer a:hover { color: var(--text-hi); }
.mobile-socials { display: flex; gap: 16px; flex-wrap: wrap; }
.mobile-socials a { font-family: var(--font-mono); font-size: 12px; }

/* The full desktop nav (8 links + CTA) needs ~1200px. Below that the CTA is dropped,
   below 1100px the links collapse into the drawer (previously the CTA was pushed off-screen). */
@media (max-width: 1199px) { .nav-cta { display: none; } }
@media (max-width: 1100px) {
  .nav-desktop { display: none; }
  .menu-btn { display: flex; }
  .nav-inner { padding: 8px 8px 8px 16px; gap: 12px; }
}
@media (max-width: 480px) {
  .logo { gap: 8px; }
  .logo-mark { width: 44px; height: 34px; }
  .logo-text { font-size: 15px; letter-spacing: 0.5px; }
  .logo-text em { padding: 0 2px; }
}
@media (max-width: 340px) { .logo-text { font-size: 13px; letter-spacing: 0.3px; } }
/* ════════════════════════════════════════════════════
   HERO — photo portrait + typing effect
   ════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: 160px 0 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  z-index: 1;
  overflow: hidden;
}

.hero-grid-v2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}
@media (max-width: 900px) {
  /* minmax(0,1fr): the track may shrink below the portrait's min-content (was 349px wide on a 320px screen) */
  .hero-grid-v2 { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-portrait { order: -1; width: 100%; max-width: min(320px, 100%); margin: 0 auto; }
}

.status-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
}
.status-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.6); opacity: 0; }
}

.hero-title-v2 {
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--text-hi);
}
.hero-typing-line {
  display: block;
  font-size: 0.72em;
  font-weight: 400;
  color: var(--text-mid);
  margin-top: 6px;
}
.typing-text { color: var(--text-hi); font-weight: 500; }
.typing-cursor {
  display: inline-block;
  color: var(--accent-strong);
  animation: blink 1s step-end infinite;
  font-weight: 300;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-desc-v2 {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-mid);
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-socials-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
}
.hero-socials-row .mono { font-size: 11px; color: var(--text-faint); letter-spacing: 0.08em; margin-right: 4px; }
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  background: white;
  color: var(--text-mid);
  transition: all var(--dur-fast) var(--ease);
}
.social-icon:hover { background: var(--text-hi); color: white; border-color: var(--text-hi); transform: translateY(-2px); }

/* Portrait */
.hero-portrait {
  position: relative;
  aspect-ratio: 1 / 1.05;
  max-width: 420px;
  justify-self: center;
}
.portrait-frame {
  position: absolute;
  inset: -18px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-2xl);
  z-index: 0;
}
.portrait-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--border-1);
  box-shadow: var(--shadow-elevated);
  background: var(--bg-soft);
}
.portrait-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  background: linear-gradient(150deg, #eef2f9 0%, #f7f9fc 60%, #ffffff 100%);
}
.portrait-placeholder .logo-mark { width: 56px; height: 56px; font-size: 22px; border-radius: var(--radius-lg); }
.portrait-placeholder p { font-size: 11.5px; color: var(--text-faint); line-height: 1.6; }

.portrait-badge {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: var(--radius-lg);
  background: white;
  border: 1px solid var(--border-1);
  box-shadow: var(--shadow-elevated);
  color: var(--text-hi);
  animation: float 8s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.portrait-badge.b1 { top: 8%; left: -10%; animation-duration: 7s; }
.portrait-badge.b2 { bottom: 18%; right: -12%; animation-duration: 9s; animation-delay: -3s; }
.portrait-badge.b3 { bottom: -6%; left: 12%; animation-duration: 10s; animation-delay: -5s; color: var(--accent-strong); }
/* two-column hero on narrow desktops: keep the floating badges inside the viewport */
@media (min-width: 901px) and (max-width: 1100px) {
  .portrait-badge.b1 { left: -16px; }
  .portrait-badge.b2 { right: -16px; }
}
@media (max-width: 640px) {
  .portrait-badge { width: 42px; height: 42px; }
  .portrait-badge.b1 { left: -6%; }
  .portrait-badge.b2 { right: -6%; }
}

@media (max-width: 768px) {
  .hero { padding: 130px 0 60px; }
  .hero-cta { flex-wrap: wrap; }
}

/* ════════════════════════════════════════════════════
   STATS
   ════════════════════════════════════════════════════ */
.stats {
  padding: 80px 0;
  border-top: 1px solid var(--border-1);
  border-bottom: 1px solid var(--border-1);
  background: var(--bg-soft);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 32px;
  border-left: 1px solid var(--border-1);
}
.stat:first-child { border-left: 0; padding-left: 0; }
@media (max-width: 768px) {
  .stat { padding: 20px 0; border-left: 0; border-top: 1px solid var(--border-1); }
  .stat:first-child, .stat:nth-child(2) { border-top: 0; }
}
.stat-num {
  font-size: clamp(56px, 7vw, 88px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text-hi);
  font-feature-settings: 'tnum';
  display: inline-block;
}
.stat-suffix {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 300;
  color: var(--text-faint);
  line-height: 1;
  display: inline-block;
  margin-left: 2px;
}
.stat-num-group { display: flex; align-items: baseline; }
.stat-label {
  font-size: 11px;
  color: var(--text-low);
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

/* ════════════════════════════════════════════════════
   MARQUEE — tech stack strip (two identical groups → seamless loop at any width)
   ════════════════════════════════════════════════════ */
.marquee {
  --marquee-gap: 55px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border-1);
  overflow: hidden;
  background: var(--bg-page);
}
.marquee-track {
  display: flex;
  gap: var(--marquee-gap);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-group {
  flex: 0 0 auto;
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: var(--marquee-gap);
  animation: marquee 30s linear infinite;
}
.marquee-group li { display: flex; }
.marquee-group img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  opacity: 0.75;
  filter: grayscale(100%);
  transition: 0.3s ease;
}
.marquee-group img:hover { opacity: 1; filter: grayscale(0%); transform: scale(1.1); }
@keyframes marquee {
  to { transform: translateX(calc(-100% - var(--marquee-gap))); }
}

/* ════════════════════════════════════════════════════
   SECTIONS — generic
   ════════════════════════════════════════════════════ */
.section {
  padding: 120px 0;
  position: relative;
  z-index: 1;
}
.section-alt { background: var(--bg-page-2); }
@media (max-width: 768px) {
  .section { padding: 80px 0; }
}

.section-head {
  max-width: 980px;
  margin-bottom: 64px;
}
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .title-row { justify-content: center; }
.section-head.with-side {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: end;
  max-width: 100%;
}
@media (max-width: 900px) {
  .section-head.with-side { grid-template-columns: 1fr; gap: 24px; }
}

.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
  background: white;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .title-row { white-space: normal; align-items: flex-start; }
  .pixel-icon { margin-top: 6px; }
}
#solutions .title-row,
#services .title-row {
  align-items: flex-start;
}
#solutions .pixel-icon,
#services .pixel-icon {
  margin-top: 6px;
}



.pixel-icon {
  width: 60px;
  height: 60px;
  display: block;
  flex-shrink: 0;
  image-rendering: pixelated;
}

.section-title {
  font-size: 50px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text-hi);
  margin: 0;
}
.section-title strong,
.section-title em { font-weight: 400; }
.section-desc {
  font-size: 16px;
  color: var(--text-mid);
  margin-top: 20px;
  max-width: 480px;
  line-height: 1.55;
}
.section-head.center .section-desc { margin-left: auto; margin-right: auto; }

/* ════════════════════════════════════════════════════
   ABOUT
   ════════════════════════════════════════════════════ */
.about-hero {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 40px;
}
@media (max-width: 900px) {
  .about-hero { grid-template-columns: 1fr; gap: 32px; }
}
.about-photo {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--border-1);
  box-shadow: var(--shadow-card);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-photo-ph {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: linear-gradient(150deg, #eef2f9 0%, #f7f9fc 60%, #ffffff 100%);
  text-align: center;
}
.about-photo-ph .logo-mark { width: 56px; height: 56px; font-size: 22px; border-radius: var(--radius-lg); }
.about-photo-ph p { font-size: 11.5px; color: var(--text-faint); line-height: 1.6; }
.about-heading {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text-hi);
  margin-bottom: 18px;
  line-height: 1.3;
}
.about-lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-mid);
  margin-bottom: 32px;
  font-weight: 400;
}
.about-lead strong { color: var(--text-hi); font-weight: 600; }

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  margin-bottom: 32px;
}
.tag {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--text-hi);
  background: white;
  font-weight: 500;
  transition: all var(--dur-fast) var(--ease);
}
.tag:hover { border-color: var(--text-hi); transform: translateY(-1px); }

.about-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  padding: 28px 0;
  margin-bottom: 28px;
  border-top: 1px solid var(--border-1);
  border-bottom: 1px solid var(--border-1);
}
@media (max-width: 560px) { .about-stats { grid-template-columns: repeat(2, 1fr); row-gap: 24px; } }
.about-stat { display: flex; flex-direction: column; gap: 6px; }
.about-stat-num {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-hi);
}
.about-stat-label {
  font-size: 10.5px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
}

.about-side-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 768px) { .about-side-grid { grid-template-columns: 1fr; } }

.about-card {
  padding: 24px;
  border: 1px solid var(--border-1);
  background: white;
  border-radius: var(--radius-lg);
  transition: all var(--dur-fast) var(--ease);
  box-shadow: var(--shadow-card);
}
.about-card:hover { box-shadow: var(--shadow-elevated); }
.card-label {
  display: block;
  font-size: 11px;
  color: var(--text-low);
  margin-bottom: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-weight: 500;
}
.about-card p { color: var(--text-mid); font-size: 14px; line-height: 1.6; }

/* ════════════════════════════════════════════════════
   SOLUTIONS — numbered checklist grid
   ════════════════════════════════════════════════════ */
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-1);
  border-left: 1px solid var(--border-1);
}
@media (max-width: 900px) { .checklist-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .checklist-grid { grid-template-columns: 1fr; } }

.checklist-col {
  padding: 40px 36px;
  border-right: 1px solid var(--border-1);
  border-bottom: 1px solid var(--border-1);
  transition: background var(--dur-fast) var(--ease);
}
.checklist-col:hover { background: rgba(255, 255, 255, 0.6); }
.checklist-num {
  display: block;
  font-size: 13px;
  color: var(--accent-strong);
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}
.checklist-col h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text-hi);
  margin-bottom: 8px;
}
.checklist-col > p {
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: 22px;
}
.check-list { display: flex; flex-direction: column; gap: 12px; }
.check-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  color: var(--text-mid);
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ════════════════════════════════════════════════════
   SKILLS & TECH
   ════════════════════════════════════════════════════ */
.skills-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) { .skills-layout { grid-template-columns: 1fr; } }

.skills-info-card {
  background: var(--bg-soft);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-2xl);
  padding: 40px;
  box-shadow: var(--shadow-card);
}
.skills-info-card > .checklist-num { display: block; margin-bottom: 14px; }
.skills-info-card h3 {
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text-hi);
  line-height: 1.35;
  margin-bottom: 14px;
}
.skills-info-card > p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-mid);
  margin-bottom: 24px;
}
.tech-pills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.philosophy-mini-card {
  display: flex;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-tint);
  border: 1px solid var(--border-1);
}
.philosophy-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--border-2);
  color: var(--accent-strong);
}
.philosophy-mini-card .card-label { margin-bottom: 4px; }
.philosophy-mini-card strong { display: block; font-size: 14.5px; color: var(--text-hi); font-weight: 600; margin-bottom: 4px; }
.philosophy-mini-card p { font-size: 12.5px; color: var(--text-mid); line-height: 1.5; }

.skills-bars {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 8px 0;
}
.skill-progress-item { display: flex; flex-direction: column; gap: 10px; }
.skill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.skill-name {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-hi);
}
.skill-name svg { flex-shrink: 0; color: var(--accent-strong); }
.skill-value { font-family: var(--font-mono); font-size: 13px; color: var(--text-mid); }
.progress-track {
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--border-1);
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--text-hi), var(--accent));
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ════════════════════════════════════════════════════
   SERVICES — large feature cards
   ════════════════════════════════════════════════════ */
.services-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 12vh;
}

.services-list .service-feature:nth-child(1)  { z-index: 1; }
.services-list .service-feature:nth-child(2)  { z-index: 2; }
.services-list .service-feature:nth-child(3)  { z-index: 3; }
.services-list .service-feature:nth-child(4)  { z-index: 4; }
.services-list .service-feature:nth-child(5)  { z-index: 5; }
.services-list .service-feature:nth-child(6)  { z-index: 6; }
.services-list .service-feature:nth-child(7)  { z-index: 7; }
.services-list .service-feature:nth-child(8)  { z-index: 8; }
.services-list .service-feature:nth-child(9)  { z-index: 9; }
.services-list .service-feature:nth-child(10) { z-index: 10; }




.service-feature {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 420px;
  margin-bottom: 24px;
  padding: 56px;
  box-sizing: border-box;
  overflow: hidden;
  background: white;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  box-shadow: var(--shadow-elevated);
  transition: box-shadow var(--dur) var(--ease);
  will-change: transform;
  transform-origin: center top;
}

.service-feature-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  width: 100%;
  padding: 0 56px;
}

@media (max-width: 768px) {
  .service-feature {
    min-height: auto;
    padding: 32px 24px;
  }

  .service-feature-title {
    font-size: 32px;
  }

  .service-feature-desc {
    font-size: 15px;
  }
}
@media (max-width: 900px) { .service-feature-content { padding: 32px; } }

.service-feature-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
  background: var(--bg-tint);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-full);
}
.service-feature-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-hi);
  line-height: 1.1;
}
.service-feature-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-mid);
}
.service-feature-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.service-feature-stack span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-low);
  padding: 4px 10px;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-full);
  background: var(--bg-tint);
}
/* Code panel visual */
.code-panel {
  width: 80%;
  max-width: 320px;
  background: white;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: 0 12px 32px -8px rgba(10, 10, 10, 0.15);
  position: relative;
  z-index: 1;
}
.code-panel-head {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}
.code-panel-head span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-2);
}
.code-panel-head span:nth-child(1) { background: #ff5f57; }
.code-panel-head span:nth-child(2) { background: #febc2e; }
.code-panel-head span:nth-child(3) { background: #28c840; }
.code-panel-body {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.6;
  color: var(--text-mid);
}
.code-panel-body .key { color: var(--text-hi); }
.code-panel-body .str { color: #16a34a; }
.code-panel-body .num { color: #2563eb; }
.code-panel-body .cmt { color: var(--text-faint); }

/* ════════════════════════════════════════════════════
   PROCESS — "How I Work" clickable workflow tabs
   ════════════════════════════════════════════════════ */
.workflow-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) {
  .workflow-grid { grid-template-columns: 1fr; gap: 32px; }
}

.workflow-steps { display: flex; flex-direction: column; gap: 12px; }

.workflow-step {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  background: var(--bg-soft);
  border: 1px solid var(--border-1);
  border-radius: 18px;
  padding: 18px 20px;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.workflow-step:hover { border-color: var(--border-2); }
.workflow-step.is-active {
  background: var(--bg-page-2);
  border-color: var(--border-2);
}
.workflow-step.is-active .step-num {
  background: var(--bg-soft);
  color: var(--accent-strong);
}
.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  background: var(--bg-tint);
  border-radius: 12px;
  letter-spacing: 0;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.step-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.step-text strong {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-hi);
}
.step-text small {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-mid);
}
.step-duration {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
}
.step-duration::before {
  content: '·';
  margin-right: 6px;
  color: var(--border-2);
}
@media (max-width: 560px) {
  .step-duration { display: none; }
}

/* Sticky code panel */
.process-panel {
  position: sticky;
  top: 120px;
}

/* ── Terminal-style process panel ── */
.process-code-panel {
  width: 100%;
  padding: 22px;
  border-radius: var(--radius-xl);
}
@media (min-width: 761px) {
  .process-code-panel { max-width: 560px; }
}
.process-code-panel .code-panel-head {
  position: relative;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
/* Neutralize the base macOS-dot span styling (nth-child colors) now that
   the label + dots are the only two spans in this header. */
.process-code-panel .code-panel-head > span {
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
}
.process-filename {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  margin-left: 0;
}
.process-dots {
  margin-left: auto;
  display: flex;
  gap: 6px;
}
.process-dots i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--border-3);
}

.process-code-body { position: relative; min-height: 300px; }
.process-code-frame {
  position: absolute;
  inset: 0;
  padding: 28px 32px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  pointer-events: none;
  background: var(--bg-tint);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 2;
}
.process-code-frame.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}

/* Terminal line types */
.pt-cmt { color: var(--text-faint); }
.pt-prompt { color: var(--accent-strong); font-weight: 600; margin-right: 8px; }
.pt-cmd { color: var(--text-hi); font-weight: 600; }
.pt-gap { height: 12px; }
.pt-out { color: var(--text-mid); }
.pt-cursor {
  display: inline-block;
  width: 7px; height: 7px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--text-hi);
  vertical-align: middle;
  animation: blink 1s steps(2) infinite;
}
.pt-ok { color: var(--accent-strong); font-weight: 500; }
.pt-pending { color: #b45309; font-weight: 500; }
.pt-link { color: #2563eb; }
.pt-url { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 480px) {
  .process-code-frame { padding: 22px; font-size: 12px; }
}

@media (max-width: 760px) {
.process-panel {
 margin-left: auto;
        margin-right: auto;}
      }

      @media (max-width: 900px) {
.process-panel {
 margin-left: auto;
        margin-right: auto;}
      }
/* Footer strip below the workflow */
.workflow-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border-1);
}
.workflow-footer p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-mid);
}
.workflow-footer svg { flex-shrink: 0; color: var(--accent-strong); }
.workflow-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-hi);
  padding: 12px 22px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-full);
  background: white;
  flex-shrink: 0;
  transition: all var(--dur-fast) var(--ease);
}
.workflow-cta:hover { background: var(--text-hi); color: white; border-color: var(--text-hi); }
.workflow-cta svg { transition: transform var(--dur-fast) var(--ease); }
.workflow-cta:hover svg { transform: translateX(3px); }

/* ════════════════════════════════════════════════════
   PROJECTS — horizontal moving marquee, codemz-style
   ════════════════════════════════════════════════════ */
.projects-wrap { position: relative; }

/* Filter chips */
.projects-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  background: var(--bg-soft);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-full);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  cursor: pointer;
  will-change: transform;
}
.filter-chip:hover { border-color: var(--text-hi); color: var(--text-hi); }
.filter-chip.active {
  background: var(--text-hi);
  color: white;
  border-color: var(--text-hi);
  box-shadow: 0 8px 20px -8px rgba(10, 10, 10, 0.35);
}
.filter-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.filter-chip.active .filter-dot { background: white; }
.filter-chip[data-filter="all"] .filter-dot { display: none; }

/* Marquee track — cards move continuously, pause on hover */
.project-marquee {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  margin: 0 -32px;
  padding: 8px 0 32px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.project-marquee.is-pinned {
  overflow: hidden;
  scroll-snap-type: none;
}
.project-track {
  display: flex;
  gap: 24px;
  width: max-content;
  padding-left: 32px;
  will-change: transform;
}
.project-track.is-static {
  transform: none !important;
  padding-bottom: 8px;
}

/* Dark device-mockup card */
.project-card {
  position: relative;
  flex: 0 0 auto;
  width: min(600px, 82vw);
  min-height: 400px;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: linear-gradient(150deg, #14161c 0%, #1d212b 55%, #22283a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 60px -24px rgba(8, 10, 16, 0.45);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  scroll-snap-align: start;
  transition: transform 0.25s ease-out, opacity 0.35s var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.project-card:hover { box-shadow: 0 34px 70px -20px rgba(8, 10, 16, 0.55); }
.project-card.hide { opacity: 0 !important; transform: scale(0.92) !important; pointer-events: none; }

/* Full-bleed screenshot filling the entire card */
.project-device {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.project-device img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s var(--ease);
}
.project-card:hover .project-device img { transform: scale(1.045); }

/* Dark scrim over the image so the overlaid text stays readable */
.project-card-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10, 12, 16, 0.05) 0%, rgba(10, 12, 16, 0.35) 38%, rgba(10, 12, 16, 0.94) 78%, rgba(10, 12, 16, 0.97) 100%);
  pointer-events: none;
}

.project-card-content {
  position: relative;
  z-index: 2;
  pointer-events: none;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.project-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}
.project-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: white;
  font-size: 10px;
  font-weight: 700;
}
.project-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-full);
}
.project-card-content h3 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: white;
  line-height: 1.15;
}
.project-card-content p {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.6);
}
.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.project-stack span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.65);
  padding: 3px 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
}
.project-links {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: white;
  font-weight: 500;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  transition: all var(--dur-fast) var(--ease);
}
.project-link:hover { background: white; color: var(--text-hi); border-color: white; }
.project-link svg { transition: transform var(--dur-fast) var(--ease); }
.project-link:hover svg { transform: translate(2px, -2px); }

/* Whole card opens the project modal. A real <button> is stretched over the card;
   the content layer lets clicks fall through to it, except on the links themselves. */
.project-open {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}
.project-open:focus-visible { outline: 3px solid #fff; outline-offset: -8px; }
.project-card-content a { pointer-events: auto; }

.project-view-hint {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 12, 16, 0.5);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease);
}
.project-card:hover .project-view-hint,
.project-open:focus-visible ~ .project-view-hint { opacity: 1; }
.project-view-hint span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  background: white;
  color: var(--text-hi);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-elevated);
  transform: translateY(8px);
  transition: transform var(--dur-fast) var(--ease);
}
.project-card:hover .project-view-hint span,
.project-open:focus-visible ~ .project-view-hint span { transform: translateY(0); }

/* ─── Project details modal (pm-*) — shared, populated per card ─── */
.pm-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 12, 16, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  /* visibility must flip to visible immediately on open, otherwise closeBtn.focus() runs while the
     dialog is still "hidden" and silently fails; on close it flips after the fade-out. */
  transition: opacity 0.25s var(--ease), visibility 0s linear 0.25s;
}
.pm-overlay.open { opacity: 1; visibility: visible; transition-delay: 0s; }

.pm-dialog {
  position: relative;
  width: min(640px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--bg-soft);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-elevated);
  transform: translateY(24px) scale(0.98);
  transition: transform 0.3s var(--ease);
}
.pm-overlay.open .pm-dialog { transform: translateY(0) scale(1); }

.pm-media { position: relative; background: #0d0e12; border-radius: var(--radius-2xl) var(--radius-2xl) 0 0; overflow: hidden; }
.pm-media img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; object-position: top; }

.pm-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(10, 12, 16, 0.55);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease); /* not `all`: that includes visibility and delays focus() */
}
.pm-close:hover { background: rgba(10, 12, 16, 0.85); transform: scale(1.06); }

.pm-body { padding: 32px; }
@media (max-width: 560px) { .pm-body { padding: 24px 20px; } }

.pm-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.pm-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
}
.pm-badge-dark { background: var(--text-hi); color: white; }
.pm-badge-success { background: var(--accent-dim); color: #047857; border: 1px solid var(--accent-border); }
.pm-dot { width: 6px; height: 6px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 3px var(--accent-dim); }

.pm-title { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; color: var(--text-hi); margin-bottom: 10px; }
@media (max-width: 560px) { .pm-title { font-size: 22px; } }
.pm-desc { font-size: 14px; line-height: 1.6; color: var(--text-mid); margin-bottom: 22px; }

.pm-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.pm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-full);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease); /* not `all`: that includes visibility and delays focus() */
}
.pm-btn-primary { background: var(--text-hi); color: white; }
.pm-btn-primary:hover { background: var(--accent); }
.pm-btn-ghost { display: none; background: transparent; color: var(--text-hi); border: 1px solid var(--border-2); }
.pm-btn-ghost:hover { border-color: var(--text-hi); background: var(--bg-tint); }

.pm-tech { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 26px; }
.pm-tech span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mid);
  padding: 4px 11px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-full);
}

.pm-divider { height: 1px; background: var(--border-1); margin-bottom: 26px; }

.pm-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-hi);
  margin-bottom: 14px;
}
.pm-section-label svg { color: var(--accent-strong); flex-shrink: 0; }

.pm-about-text p { font-size: 14px; line-height: 1.7; color: var(--text-mid); margin-bottom: 12px; }
.pm-about-text p:last-child { margin-bottom: 0; }

body.pm-open { overflow: hidden; }

/* "+N more" CTA tile — closes out the row */
.project-more-tile {
    position: relative;
    flex: 0 0 auto;
    width: 255px;
    min-height: 400px;
    display: flex;
    flex-direction: revert;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 32px;
    background: var(--text-hi);
    color: white;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    scroll-snap-align: start;
    will-change: transform;
    transition: transform 0.25s ease-out, opacity 0.35s var(--ease);
}
.project-more-tile.hide { opacity: 0 !important; transform: scale(0.92) !important; pointer-events: none; }
.project-more-tile::before {
  content: '';
  position: absolute;
  inset: -40% -20%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.28), transparent 60%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.project-more-tile:hover::before { opacity: 1; }
.project-more-num {
  position: relative;
  font-size: 40px;
  font-weight: 300;
  letter-spacing: -0.03em;
}
.project-more-label {
  position: relative;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
}
.project-more-arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  margin-top: 8px;
  transition: all var(--dur-fast) var(--ease);
}
.project-more-tile:hover .project-more-arrow {
  background: white;
  color: var(--text-hi);
  transform: translate(4px, -4px);
}

.projects-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--border-1);
}
.projects-controls-text { font-size: 13px; color: var(--text-low); }
.projects-controls-text strong { color: var(--text-hi); font-weight: 600; }
.projects-page-link { flex-shrink: 0; }

@media (max-width: 640px) {
  .projects-controls { justify-content: center; text-align: center; }
  .project-marquee { margin: 0 -20px; padding: 8px 0 24px; }
  .project-track { padding-left: 20px; }
  .project-card { width: 88vw; min-height: 440px; padding: 24px; }
  .project-card-content { max-width: 100%; }
  .project-more-tile { width: 390px;
        min-height: 385px; }
}

/* ════════════════════════════════════════════════════
   ENGINEERING / TECHNICAL
   ════════════════════════════════════════════════════ */
.eng-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) {
  .eng-grid { grid-template-columns: 1fr; gap: 48px; }
}
.eng-capabilities h3 {
  font-size: 12px;
  color: var(--text-low);
  letter-spacing: 0.1em;
  margin-bottom: 32px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-weight: 500;
}
.cap-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
@media (max-width: 600px) { .cap-list { grid-template-columns: 1fr; } }
.cap-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: white;
  border: 1px solid var(--border-1);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-hi);
  transition: all var(--dur-fast) var(--ease);
  box-shadow: var(--shadow-card);
}
.cap-list li:hover { box-shadow: var(--shadow-elevated); transform: translateY(-2px); }
.cap-num { color: var(--accent-strong); font-size: 14px; font-weight: 600; }

.dash {
  background: white;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-1);
  background: var(--bg-tint);
}
.dash-traffic { display: flex; gap: 5px; }
.dash-traffic span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--border-2);
}
.dash-traffic span:nth-child(1) { background: #ff5f57; }
.dash-traffic span:nth-child(2) { background: #febc2e; }
.dash-traffic span:nth-child(3) { background: #28c840; }
.dash-title { font-size: 10px; color: var(--text-low); font-family: var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.dash-time { font-size: 10px; color: var(--text-faint); font-family: var(--font-mono); }
.dash-body { padding: 20px 18px; }
.dash-row {
  display: grid;
  grid-template-columns: 90px 1fr 70px;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 11px;
}
.dash-key { color: var(--text-low); font-family: var(--font-mono); letter-spacing: 0.05em; text-transform: uppercase; font-weight: 500; }
.dash-bar {
  display: block;
  height: 4px;
  background: var(--bg-page-2);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.dash-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--text-hi);
  border-radius: 2px;
  animation: barFill 1.5s var(--ease-out) forwards;
  animation-delay: 0.5s;
}
@keyframes barFill { to { width: var(--w); } }
.dash-val { text-align: right; font-size: 10px; font-family: var(--font-mono); color: var(--text-hi); font-weight: 500; }
.dash-divider { height: 1px; background: var(--border-1); margin: 12px 0; }
.dash-foot {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-low);
  font-family: var(--font-mono);
}
.dash-foot .ok { color: var(--accent-strong); font-weight: 500; }

/* ════════════════════════════════════════════════════
   EXPERIENCE — clean table rows
   ════════════════════════════════════════════════════ */
.exp-table { display: flex; flex-direction: column; border-top: 1px solid var(--border-1); }
.exp-row {
  display: grid;
  grid-template-columns: 190px 280px 140px 1fr;
  align-items: center;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border-1);
  transition: background var(--dur-fast) var(--ease), padding-left var(--dur-fast) var(--ease);
}
.exp-row:hover { background: rgba(255, 255, 255, 0.5); padding-left: 12px; }
.exp-date {
  font-size: 12.5px;
  color: var(--accent-strong);
  letter-spacing: 0.03em;
}
.exp-role {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text-hi);
}
.exp-company { font-size: 14.5px; color: var(--text-mid); }
.exp-desc { font-size: 14px; color: var(--text-mid); line-height: 1.55; }
@media (max-width: 1024px) {
  .exp-row { grid-template-columns: 1fr;
        gap: 6px;
        padding: 24px 0; row-gap: 8px; }
  .exp-date { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 640px) {
  .exp-row { grid-template-columns: 1fr; gap: 6px; padding: 24px 0; }
  .exp-date { order: -1; }
}

/* ════════════════════════════════════════════════════
   EDUCATION
   ════════════════════════════════════════════════════ */
.edu-section { padding: 80px 0; }
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 24px;
}
.edu-card {
  padding: 32px;
  background: white;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-xl);
  transition: all var(--dur-fast) var(--ease);
  box-shadow: var(--shadow-card);
}
.edu-card:hover { box-shadow: var(--shadow-elevated); }
.edu-year-alt { border-color: #ddd6fe; color: #7c3aed; }
.edu-year {
  display: inline-block;
  font-size: 11px;
  color: var(--text-mid);
  padding: 4px 10px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}
.edu-card h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text-hi);
}
.edu-school {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mid);
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}
.edu-card p:not(.edu-school) {
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.6;
}

.edu-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 190px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--bg-tint);
  border: 1px solid var(--border-1);
  margin-bottom: 18px;
  box-shadow: var(--shadow-card);
}

.edu-icon-box img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.edu-card:hover .edu-icon-box img {
  transform: scale(1.06);
}

/* ════════════════════════════════════════════════════
   COURSES & CERTS
   ════════════════════════════════════════════════════ */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px;
}
.cert-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--dur-fast) var(--ease);
}
.cert-badge:hover {
  border-color: var(--border-3);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.cert-badge img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 6px;
}
.cert-badge span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-mid);
  line-height: 1.35;
}
@media (max-width: 560px) {
  .cert-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .cert-badge { padding: 18px 10px; }
}

/* ════════════════════════════════════════════════════
   WHY
   ════════════════════════════════════════════════════ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .why-grid { grid-template-columns: 1fr; } }
.why-item {
  padding: 32px;
  background: white;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-xl);
  transition: all var(--dur-fast) var(--ease);
  box-shadow: var(--shadow-card);
}
.why-item:hover { box-shadow: var(--shadow-elevated); }
.why-num {
  font-size: 11px;
  color: var(--text-faint);
  display: block;
  margin-bottom: 24px;
  transition: color var(--dur-fast) var(--ease);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}
.why-item h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text-hi);
}
.why-item p { color: var(--text-mid); font-size: 14px; line-height: 1.6; }

/* ════════════════════════════════════════════════════
   STATUS / AVAILABILITY
   ════════════════════════════════════════════════════ */
.status-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .status-grid { grid-template-columns: 1fr; gap: 48px; }
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: white;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--text-hi);
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}
.status-pill .status-dot { background: var(--accent); }
.status-left p {
  color: var(--text-mid);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 480px;
}
.status-list { display: flex; flex-direction: column; gap: 8px; }
.status-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  font-size: 14px;
  color: var(--text-hi);
  border-bottom: 1px solid var(--border-1);
}
.status-list li:last-child { border-bottom: 0; }
.status-list li span { color: var(--text-faint); font-family: var(--font-mono); }

.terminal {
  width: 100%;
  background: white;
  border: 1px solid var(--border-1);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.terminal-body { padding: 24px; font-family: var(--font-mono); font-size: 13px; line-height: 1.8; }
.t-line { color: var(--text-mid); }
.t-prompt { color: var(--text-faint); margin-right: 8px; }
.t-cmd { color: var(--text-hi); }
.t-ok { color: var(--accent-strong); }
.t-divider { height: 1px; background: var(--border-1); margin: 12px 0; }
.t-cursor { display: inline-flex; align-items: center; }
.t-blink { color: var(--text-faint); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ════════════════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════════════════ */
.contact {
  padding: 140px 0;
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(200, 220, 255, 0.3) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.contact-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.contact .section-pill { margin-bottom: 20px; }
.contact .section-title { margin-bottom: 4px; }
.contact .section-desc { margin-left: auto; margin-right: auto; margin-bottom: 40px; max-width: 560px; }

/* ─── Contact grid: info cards (left) + form (right) ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  text-align: left;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

.contact-info-list { display: flex; flex-direction: column; gap: 12px; }

.contact-info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease);
}
a.contact-info-card:hover {
  border-color: var(--border-3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.contact-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--accent-dim);
  color: var(--accent-strong);
}
.contact-info-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.contact-info-text .label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); font-family: var(--font-mono); }
.contact-info-text .value {
  color: var(--text-hi);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-wrap: anywhere;
}
.contact-info-text .value .status-dot { flex-shrink: 0; }

.contact-social-block { margin-top: 24px; }
.contact-social-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
  font-weight: 600;
  font-family: var(--font-mono);
  margin-bottom: 12px;
}
.contact-socials-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ─── Contact form ───────────────────────────────── */
.contact-form {
  background: var(--bg-soft);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-2xl);
  padding: 40px;
  box-shadow: var(--shadow-card);
}
@media (max-width: 560px) { .contact-form { padding: 28px 20px; } }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-size: 13px; font-weight: 500; color: var(--text-hi); }
.field input, .field textarea {
  width: 100%;
  font-family: var(--font-display);
  font-size: 14px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border-2);
  background: var(--bg-tint);
  color: var(--text-hi);
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.field textarea { resize: vertical; min-height: 100px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--accent-strong);
  outline-offset: 1px;
  border-color: var(--accent-strong);
  background: var(--bg-soft);
}
.field.invalid input, .field.invalid textarea { border-color: #dc2626; }
.error-msg {
  display: block;
  min-height: 15px;
  font-size: 12px;
  color: #dc2626;
}

.contact-submit { width: 100%; justify-content: center; margin-top: 6px; }
.contact-submit[disabled] { opacity: 0.6; cursor: default; pointer-events: none; }

.form-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--text-faint);
  text-align: center;
}

.form-feedback {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  text-align: center;
}
.form-feedback.success { background: var(--accent-dim); color: #047857; border: 1px solid var(--accent-border); }
.form-feedback.error { background: rgba(220, 38, 38, 0.08); color: #b91c1c; border: 1px solid rgba(220, 38, 38, 0.25); }
.form-feedback[hidden] { display: none; }

/* ════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════ */
.footer {
  padding: 80px 0 32px;
  background: var(--bg-soft);
  border-top: 1px solid var(--border-1);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 0fr;
  gap: 48px;
  margin-bottom: 64px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 3fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
.footer-brand { max-width: 360px; }
.footer-role {
  display: block;
  font-size: 11px;
  color: var(--text-low);
  letter-spacing: 0.1em;
  margin: 16px 0 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
}
.footer-desc {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
}

.footer-col .footer-col-title {
  font-size: 11px;
  color: var(--text-low);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-weight: 500;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px;
  color: var(--text-mid);
  transition: color var(--dur-fast) var(--ease);
}
.footer-col a:hover { color: var(--text-hi); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-1);
  font-size: 12px;
  color: var(--text-low);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom .mono {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

/* ════════════════════════════════════════════════════
   SPLIT TEXT — char + word mask utilities (GSAP-driven)
   ════════════════════════════════════════════════════ */
.char {
  display: inline-block;
  will-change: transform, opacity;
}
.char-word { display: inline-block; white-space: nowrap; }
.word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.word-inner {
  display: inline-block;
  will-change: transform;
}

/* ════════════════════════════════════════════════════
   REVEAL ANIMATIONS
   ════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
}
.no-gsap .reveal { transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
[data-reveal-delay="100"] { transition-delay: 0.1s; }
[data-reveal-delay="200"] { transition-delay: 0.2s; }
[data-reveal-delay="300"] { transition-delay: 0.3s; }
[data-reveal-delay="400"] { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important; /* 0.01ms + infinite = strobing */
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  /* Static, user-scrollable strip instead of an endless animation */
  .marquee-track { overflow-x: auto; }
  .marquee-group[aria-hidden="true"] { display: none; }
}

/* ════════════════════════════════════════════════════
   RESPONSIVE FINE TUNING
   ════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .section-title { font-size: 44px; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .service-feature-content { padding: 28px; }
}

/* ════════════════════════════════════════════════════
   PROJECTS PAGE — standalone full listing
   ════════════════════════════════════════════════════ */
.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-low);
  margin-bottom: 28px;
}
.page-breadcrumb a { color: var(--text-mid); transition: color var(--dur-fast) var(--ease); }
.page-breadcrumb a:hover { color: var(--text-hi); }
.page-breadcrumb span:last-child { color: var(--text-hi); font-weight: 500; }

.projects-page-hero { padding-top: 160px; }
@media (max-width: 768px) { .projects-page-hero { padding-top: 136px; } }

.projects-page-body { padding-top: 56px; }

.projects-full-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 8px;
}
.projects-full-grid .project-card { width: 100%; min-height: 420px; }
@media (max-width: 900px) {
  .projects-full-grid { grid-template-columns: 1fr; }
}

.projects-empty-msg {
  text-align: center;
  padding: 60px 0;
}

.more-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding: 40px;
  background: var(--text-hi);
  border-radius: var(--radius-2xl);
  color: white;
}
.more-panel-text h3 {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.more-panel-text p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  max-width: 46ch;
  line-height: 1.6;
}
.more-panel .btn-primary {
  background: white;
  color: var(--text-hi);
  flex-shrink: 0;
}
.more-panel .btn-primary:hover { background: rgba(255, 255, 255, 0.9); }
@media (max-width: 640px) {
  .more-panel { padding: 28px; }
}

.contact-teaser { padding-bottom: 40px; }
.contact-teaser-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.contact-teaser-inner h2 {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text-hi);
}
.contact-teaser-inner p {
  font-size: 16px;
  color: var(--text-mid);
  margin-bottom: 32px;
}

/* ════════════════════════════════════════════════════
   UTILITIES / SMALL ADDITIONS
   ════════════════════════════════════════════════════ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.projects-controls-link { color: var(--text-hi); font-weight: 500; }
.dash-bar i.w-88 { --w: 88%; }
.dash-bar i.w-91 { --w: 91%; }
.dash-bar i.w-92 { --w: 92%; }
.dash-bar i.w-94 { --w: 94%; }
.dash-bar i.w-96 { --w: 96%; }
.dash-bar i.w-97 { --w: 97%; }
.dash-bar i.w-100 { --w: 100%; }
/* Programmatic focus targets (skip link, in-page anchors) shouldn't draw a ring around a whole section */
[tabindex="-1"]:focus { outline: none; }
.project-tag-pill--spaced { margin-bottom: 14px; }
