/* ===========================================================
   Portfolio 2026 — Dark + Electric Blue
   =========================================================== */

:root {
  --bg: #06080c;
  --bg-2: #0a0d13;
  --bg-3: #0e1219;
  --panel: #0d1118;
  --panel-2: #11161f;
  --line: #1a2030;
  --line-soft: #141a26;
  --text: #e7ecf3;
  --text-dim: #8893a7;
  --text-mute: #5a667d;
  --accent: #2aa6ff;
  --accent-2: #6fc6ff;
  --accent-deep: #0a6bd6;
  --accent-glow: rgba(42, 166, 255, 0.55);
  --accent-soft: rgba(42, 166, 255, 0.12);
  --accent-faint: rgba(42, 166, 255, 0.06);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --font-display: "Space Grotesk", "Helvetica Neue", Helvetica, sans-serif;
  --font-body: "Manrope", "Helvetica Neue", Helvetica, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1240px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--accent-soft); color: var(--accent-2); }

/* ============== scroll reveal ============== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(.2,.7,.3,1), transform 0.9s cubic-bezier(.2,.7,.3,1);
  will-change: transform, opacity;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* page transition */
.page {
  animation: pageIn 0.55s cubic-bezier(.2,.7,.3,1);
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* ============== background atmosphere ============== */
.bg-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(42,166,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42,166,255,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 70%);
}
.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.55;
  mix-blend-mode: screen;
}
.bg-blob.a { width: 620px; height: 620px; top: -180px; right: -160px; background: radial-gradient(circle, rgba(42,166,255,0.5), transparent 65%); }
.bg-blob.b { width: 540px; height: 540px; top: 38%; left: -200px; background: radial-gradient(circle, rgba(42,166,255,0.32), transparent 65%); animation: drift 22s ease-in-out infinite alternate; }
.bg-blob.c { width: 460px; height: 460px; bottom: -100px; right: 8%; background: radial-gradient(circle, rgba(42,166,255,0.22), transparent 65%); animation: drift 28s ease-in-out -8s infinite alternate; }
@keyframes drift {
  0%   { transform: translate(0,0); }
  100% { transform: translate(60px, -40px); }
}

.particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
body.no-particles .particles { display: none; }
body.no-shimmer .shimmer {
  animation: none;
  background-position: 50% 50%;
}

/* ============== layout primitives ============== */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
}
section {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(42,166,255,0.35);
  background: rgba(42,166,255,0.08);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(1.4); }
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(48px, 7.4vw, 96px); line-height: 0.98; }
h2 { font-size: clamp(40px, 5vw, 64px); line-height: 1.02; }
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }
p  { margin: 0; color: var(--text-dim); }

.shimmer {
  background: linear-gradient(
    100deg,
    var(--accent) 0%,
    var(--accent-2) 35%,
    #b7e1ff 50%,
    var(--accent-2) 65%,
    var(--accent) 100%
  );
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 240% 50%; }
}

/* ============== nav ============== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(6,8,12,0.55);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  letter-spacing: -0.01em;
}
.logo .mark {
  width: 32px; height: 38px;
  display: grid; place-items: center;
  filter: drop-shadow(0 0 14px rgba(42,166,255,0.45));
  transition: filter 0.3s, transform 0.3s;
}
.logo:hover .mark { filter: drop-shadow(0 0 22px rgba(42,166,255,0.7)); transform: translateY(-1px); }
.logo .mark img { width: 100%; height: 100%; display: block; object-fit: contain; }
.nav-links {
  display: flex; gap: 36px;
  font-size: 14px; color: var(--text-dim);
}
.nav-links a { position: relative; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -6px; left: 0; right: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
  box-shadow: 0 0 8px var(--accent);
}
.nav-links a:hover::after { transform: scaleX(1); }

/* ============== buttons ============== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  cursor: pointer;
  position: relative;
  transition: transform 0.25s cubic-bezier(.2,.7,.3,1), box-shadow 0.25s, background 0.25s;
  white-space: nowrap;
}
.btn-primary {
  color: white;
  background: linear-gradient(135deg, #38b6ff 0%, var(--accent) 50%, var(--accent-deep) 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08) inset,
    0 8px 24px -8px rgba(42,166,255,0.6),
    0 0 22px rgba(42,166,255,0.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.12) inset,
    0 14px 36px -8px rgba(42,166,255,0.75),
    0 0 38px rgba(42,166,255,0.55);
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  background-size: 300% 100%;
  background-position: 200% 0;
  transition: background-position 0.7s ease;
  pointer-events: none;
}
.btn-primary:hover::before { background-position: -100% 0; }

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-2);
  background: var(--accent-faint);
}

.btn .arr { transition: transform 0.25s; }
.btn:hover .arr { transform: translateX(3px); }

/* ============== hero ============== */
.hero {
  padding: 96px 0 80px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero h1 .accent {
  display: block;
}
.hero-eyebrow { margin-bottom: 28px; }
.hero-lede {
  margin-top: 28px;
  font-size: 18px;
  white-space: pre-line;
  line-height: 1.65;
  color: var(--text-dim);
  max-width: 520px;
}
.hero-ctas {
  display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap;
}

.hero-meta {
  margin-top: 56px;
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.hero-meta .ln {
  flex: 0 0 48px; height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

/* portrait force field */
.portrait-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  margin-left: auto;
}
.portrait-stage .force-field {
  position: absolute; inset: 0;
  pointer-events: none;
}
.portrait-stage .force-field svg {
  width: 100%; height: 100%;
  overflow: visible;
}
.ring-rot-slow { animation: spin 38s linear infinite; transform-origin: 50% 50%; }
.ring-rot-med  { animation: spin 22s linear infinite reverse; transform-origin: 50% 50%; }
.ring-rot-fast { animation: spin 14s linear infinite; transform-origin: 50% 50%; }
@keyframes spin { to { transform: rotate(360deg); } }

.portrait-frame {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #1a2030 0%, #0a0d13 70%);
  box-shadow:
    0 0 0 1px rgba(42,166,255,0.35),
    0 0 60px -10px rgba(42,166,255,0.55),
    inset 0 -40px 80px -20px rgba(42,166,255,0.18);
}
.portrait-frame image-slot {
  width: 100%; height: 100%;
  display: block;
}
.portrait-glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 55%, rgba(42,166,255,0.18) 70%, transparent 80%);
  filter: blur(8px);
  animation: breathe 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes breathe {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1.0; transform: scale(1.04); }
}

/* orbital dots */
.orbit-dot {
  fill: var(--accent);
  filter: drop-shadow(0 0 6px var(--accent-glow));
}

/* ============== stats ============== */
.stats {
  padding: 80px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(ellipse 60% 100% at 50% 50%, rgba(42,166,255,0.05), transparent 70%),
    var(--bg);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat {
  position: relative;
  text-align: center;
  padding: 28px 16px;
}
.stat-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 4.5vw, 60px);
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 28px rgba(42,166,255,0.45);
  letter-spacing: -0.03em;
  display: inline-block;
  position: relative;
}
.stat-value .plus {
  color: var(--accent-2);
  margin-left: 2px;
  opacity: 0.75;
}
.stat-label {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.stat-flow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}
.stat-flow line, .stat-flow path {
  stroke: var(--accent);
  stroke-width: 1;
  fill: none;
  opacity: 0.5;
}
.stat-flow .dash {
  stroke-dasharray: 3 6;
  animation: flow 3s linear infinite;
}
@keyframes flow {
  to { stroke-dashoffset: -36; }
}

/* ============== section header ============== */
.section { padding: 120px 0; position: relative; }
.section .head {
  margin-bottom: 56px;
  max-width: 720px;
}
.section .head .sub {
  margin-top: 14px;
  font-size: 16px;
  color: var(--text-dim);
  max-width: 540px;
}
.section.alt {
  background:
    radial-gradient(ellipse 50% 80% at 0% 0%, rgba(42,166,255,0.04), transparent 60%),
    radial-gradient(ellipse 50% 80% at 100% 100%, rgba(42,166,255,0.04), transparent 60%),
    var(--bg);
}

/* ============== about block ============== */
.about {
  padding: 60px 0 0;
  border-top: 1px solid var(--line-soft);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
}
.about-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.22;
  letter-spacing: -0.02em;
}
.about-title em {
  font-style: normal;
  color: var(--accent);
}
.about-copy { color: var(--text-dim); margin-top: 18px; font-size: 16px; line-height: 1.7; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text-dim);
  background: rgba(255,255,255,0.015);
  transition: all 0.25s ease;
}
.chip:hover {
  border-color: var(--accent);
  color: var(--accent-2);
  background: var(--accent-faint);
  box-shadow: 0 0 18px -4px var(--accent-glow);
}

.bullets { margin: 14px 0 0; padding: 0; list-style: none; }
.bullets li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
}
.bullets li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px;
  background: var(--accent);
  transform: rotate(45deg);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ============== about visualization ============== */
.about-vis {
  position: relative;
  margin-top: 40px;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 0.9;
}
.about-vis svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  display: block;
}
.av-spin-slow    { animation: av-spin 48s linear infinite;          transform-origin: 50% 50%; transform-box: fill-box; }
.av-spin-med     { animation: av-spin 28s linear infinite;          transform-origin: 50% 50%; transform-box: fill-box; }
.av-spin-rev     { animation: av-spin 22s linear infinite reverse;  transform-origin: 50% 50%; transform-box: fill-box; }
.av-spin-rev-cancel { animation: av-spin 22s linear infinite;       transform-origin: 50% 50%; transform-box: fill-box; }
@keyframes av-spin { to { transform: rotate(360deg); } }

.av-readout {
  position: absolute;
  left: 0;
  bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}
.av-readout-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.av-readout-line.dim { color: var(--text-mute); letter-spacing: 0.18em; }
.av-readout-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  animation: pulse 1.8s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .av-spin-slow, .av-spin-med, .av-spin-rev, .av-spin-rev-cancel { animation: none; }
}
@media (max-width: 980px) {
  .about-vis { margin: 32px auto 0; max-width: 380px; }
}

/* ============== timeline ============== */
.timeline {
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 6px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line) 6%, var(--line) 94%, transparent);
}
.tl-item { position: relative; margin-bottom: 28px; }
.tl-item::before {
  content: '';
  position: absolute;
  left: -40px; top: 22px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px var(--bg), 0 0 14px var(--accent-glow);
}
.tl-item::after {
  content: '';
  position: absolute;
  left: -36px; top: 26px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
.tl-card {
  position: relative;
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.tl-card:hover {
  border-color: rgba(42,166,255,0.4);
  box-shadow: 0 0 0 1px rgba(42,166,255,0.2), 0 12px 40px -16px rgba(42,166,255,0.4);
}
.tl-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; margin-bottom: 14px;
}
.tl-role { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.tl-org { color: var(--accent); font-size: 14px; margin-top: 2px; font-weight: 500; }
.tl-period {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-mute);
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}
.tl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-soft);
}
.tl-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(42,166,255,0.06);
  border: 1px solid rgba(42,166,255,0.18);
  color: var(--accent-2);
  transition: all 0.25s;
}
.tl-tag:hover {
  background: rgba(42,166,255,0.12);
  border-color: rgba(42,166,255,0.4);
}

/* ============== projects ============== */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.project {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel) 0%, #090c12 100%);
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(.2,.7,.3,1), border-color 0.3s;
}
.project:hover { transform: translateY(-4px); border-color: rgba(42,166,255,0.4); }
.project::before {
  content: '';
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from 0deg,
    transparent 0deg,
    rgba(42,166,255,0.55) 30deg,
    transparent 90deg,
    transparent 270deg,
    rgba(42,166,255,0.35) 320deg,
    transparent 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  animation: spin 8s linear infinite;
  pointer-events: none;
}
.project:hover::before { opacity: 1; }

.project-vis {
  position: relative;
  height: 280px;
  display: grid; place-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(42,166,255,0.18), transparent 65%),
    linear-gradient(135deg, #0c1119 0%, #060810 100%);
}
.project-vis.has-cover {
  height: auto;
  aspect-ratio: 808 / 632;
  background: #06080c;
}
.project-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}
.project[data-mood="violet"] .project-vis {
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(42,166,255,0.16), transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 20%, rgba(120, 86, 255, 0.20), transparent 70%),
    linear-gradient(135deg, #110a1d 0%, #060810 100%);
}
.project[data-mood="rose"] .project-vis {
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(42,166,255,0.14), transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(255, 86, 150, 0.18), transparent 70%),
    linear-gradient(135deg, #1c0a14 0%, #060810 100%);
}
.project[data-mood="teal"] .project-vis {
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(42,166,255,0.18), transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 80%, rgba(0, 220, 200, 0.16), transparent 70%),
    linear-gradient(135deg, #061514 0%, #060810 100%);
}

/* schematic browser mock */
.mockup {
  position: relative;
  width: 78%; height: 80%;
  background: linear-gradient(180deg, #0f141d 0%, #090c12 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(42,166,255,0.05),
    0 30px 60px -20px rgba(0,0,0,0.6),
    0 0 60px -20px rgba(42,166,255,0.35);
  overflow: hidden;
}
.mockup-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #0c1019;
}
.mockup-bar i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line);
  display: inline-block;
}
.mockup-bar i:nth-child(1) { background: #2a2f3a; }
.mockup-bar i:nth-child(2) { background: #2a2f3a; }
.mockup-bar i:nth-child(3) { background: #2a2f3a; }
.mockup-bar .url {
  margin-left: 10px;
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #141a26, #1a2030);
}
.mockup-body {
  padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
  height: calc(100% - 38px);
}
.skel { background: linear-gradient(90deg, #131822, #1a2030); border-radius: 4px; }
.skel.h-3 { height: 8px; }
.skel.h-2 { height: 5px; }
.skel.w-2-3 { width: 66%; }
.skel.w-1-2 { width: 50%; }
.skel.w-1-3 { width: 33%; }
.skel.w-3-4 { width: 75%; }
.skel.w-full { width: 100%; }
.skel.blue {
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  box-shadow: 0 0 12px var(--accent-glow);
}

.mockup-row { display: flex; gap: 8px; }
.mockup-tile {
  flex: 1; aspect-ratio: 4/3;
  background: linear-gradient(135deg, #11161f 0%, #0a0d13 100%);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  position: relative; overflow: hidden;
}
.mockup-tile::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, var(--accent-soft), transparent 60%);
}

.project-pulse {
  position: absolute;
  width: 280px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(ellipse, var(--accent-glow), transparent 70%);
  filter: blur(28px);
  opacity: 0.55;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: breathe 2.6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.mockup { position: relative; z-index: 1; }

.project-meta { padding: 24px 28px 28px; }
.project-tag {
  display: inline-flex; gap: 8px; align-items: center;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent-2);
}
.project-tag .sep { color: var(--text-mute); }
.project-tag .org { color: var(--text-mute); }
.project-title {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 24px; font-weight: 600;
  letter-spacing: -0.01em;
}
.project-desc {
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.55;
}
.project-cta {
  margin-top: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--accent-2);
  font-weight: 500;
}
.project-cta svg { transition: transform 0.3s; }
.project:hover .project-cta svg { transform: translateX(4px); }

/* ============== philosophy ============== */
.phil-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.phil {
  position: relative;
  padding: 32px 28px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel) 0%, #090c12 100%);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.phil:hover {
  transform: translateY(-3px);
  border-color: rgba(42,166,255,0.4);
  box-shadow: 0 12px 40px -20px var(--accent-glow);
}
.phil::after {
  content: '';
  position: absolute; top: -1px; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.phil:hover::after { opacity: 1; }
.phil .icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(42,166,255,0.08);
  border: 1px solid rgba(42,166,255,0.25);
  margin-bottom: 22px;
  color: var(--accent);
  transition: background 0.3s, box-shadow 0.3s;
}
.phil:hover .icon {
  background: rgba(42,166,255,0.14);
  box-shadow: 0 0 22px -4px var(--accent-glow);
}
.phil h3 { font-size: 18px; margin-bottom: 10px; }
.phil p { font-size: 14px; color: var(--text-dim); line-height: 1.6; }

/* ============== contact ============== */
.contact {
  padding: 140px 0 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  width: 800px; height: 400px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(42,166,255,0.18), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.contact h2 { font-size: clamp(40px, 6.5vw, 88px); position: relative; }
.contact .lede {
  margin: 18px auto 36px;
  max-width: 520px;
  font-size: 17px;
  color: var(--text-dim);
}
.contact .links {
  display: flex; justify-content: center; gap: 28px;
  margin-top: 36px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.contact .links a { transition: color 0.2s; }
.contact .links a:hover { color: var(--accent-2); }

/* ============== contact form ============== */
.contact-form {
  max-width: 560px;
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  text-align: left;
}
.contact-form .field {
  position: relative;
}
.contact-form .field.full { grid-column: 1 / -1; }
.contact-form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 8px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  resize: vertical;
}
.contact-form input:hover,
.contact-form textarea:hover {
  border-color: rgba(42,166,255,0.3);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(42,166,255,0.04);
  box-shadow: 0 0 0 3px rgba(42,166,255,0.12);
}
.contact-form textarea { min-height: 130px; line-height: 1.5; }
.contact-form .submit-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

/* ============== footer ============== */
.foot {
  padding: 32px 0;
  border-top: 1px solid var(--line-soft);
  text-align: center;
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 80px;
}

/* ============== project detail page ============== */
.project-page {
  padding-top: 40px;
  padding-bottom: 80px;
}
.back-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.25s;
}
.back-btn:hover {
  color: var(--accent-2);
  border-color: var(--accent);
  background: var(--accent-faint);
  transform: translateX(-3px);
}
.back-btn svg { transition: transform 0.25s; }
.back-btn:hover svg { transform: translateX(-2px); }

.project-hero {
  margin-top: 32px;
  padding: 56px 0;
  position: relative;
}
.project-hero .tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 20px;
}
.project-hero .tag .sep { color: var(--text-mute); }
.project-hero h1 {
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
.project-hero p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 720px;
}
.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel) 0%, #090c12 100%);
}
.project-meta-grid .cell .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 6px;
}
.project-meta-grid .cell .v {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--text);
}

.banner {
  margin-top: 56px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #0c1119 0%, #060810 100%);
  position: relative;
  aspect-ratio: 16/9;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.5), 0 0 60px -20px rgba(42,166,255,0.3);
}
.banner img,
.banner .project-cover-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.banner::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(6,8,12,0.4) 100%);
  pointer-events: none;
}

.proj-section {
  margin-top: 96px;
}
.proj-section .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 10px;
}
.proj-section .label::before {
  content: ''; width: 24px; height: 1px;
  background: var(--accent);
}
.proj-section h2 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 20px;
}
.proj-section p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-dim);
  max-width: 760px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.process-card {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel) 0%, #090c12 100%);
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
}
.process-card:hover {
  border-color: rgba(42,166,255,0.4);
  transform: translateY(-3px);
}
.process-card .step {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 14px;
}
.process-card h3 { font-size: 17px; margin-bottom: 8px; }
.process-card p { font-size: 14px; }

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}
.gallery .tile {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #0c1119, #060810);
  position: relative;
  transition: transform 0.4s, border-color 0.3s;
}
.gallery .tile:hover { transform: translateY(-4px); border-color: rgba(42,166,255,0.4); }
.gallery .tile.wide { grid-column: 1 / -1; aspect-ratio: 21/9; }
.gallery .tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery .tile::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(42,166,255,0.15), transparent 60%);
  pointer-events: none;
  opacity: 0; transition: opacity 0.3s;
}
.gallery .tile:hover::after { opacity: 1; }

.gallery-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
}
.gallery-row {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #0c1119, #060810);
  transition: transform 0.4s, border-color 0.3s, box-shadow 0.3s;
}
.gallery-row:hover {
  transform: translateY(-3px);
  border-color: rgba(42,166,255,0.35);
  box-shadow: 0 20px 60px -20px rgba(42,166,255,0.35);
}
.gallery-row img {
  width: 100%;
  height: auto;
  display: block;
}

.next-cta {
  margin-top: 96px;
  padding: 56px 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 60% 100% at 50% 50%, rgba(42,166,255,0.06), transparent 70%),
    linear-gradient(180deg, var(--panel) 0%, #090c12 100%);
  text-align: center;
}
.next-cta h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 18px;
}
.next-cta p { max-width: 480px; margin: 0 auto 26px; }

@media (max-width: 980px) {
  .contact-form { grid-template-columns: 1fr; }
  .project-meta-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .project-meta-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
}

/* ============== responsive ============== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .portrait-stage { max-width: 360px; margin: 0 auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .projects-grid { grid-template-columns: 1fr; }
  .phil-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-inner { justify-content: center; }
  .nav-inner > .btn { display: none; }
  .section { padding: 80px 0; }
}
@media (max-width: 560px) {
  .container { padding: 0 22px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat { padding: 18px 8px; }
  .tl-head { flex-direction: column; gap: 8px; }
}

/* embedded case presentations */
.case-frame {
  margin-top: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  position: relative;
}
