/* ══════════════════════════════════════════════
   DESIGN TOKENS
══════════════════════════════════════════════ */
:root {
  --bg:          #020510;
  --bg-2:        #060c1e;
  --bg-3:        #010306;
  --accent:      #6366f1;
  --accent-hi:   #818cf8;
  --accent-dim:  rgba(99, 102, 241, 0.16);
  --cyan:        #22d3ee;
  --text:        #e8eaf4;
  --text-2:      #9ba3c2;
  --muted:       #3d4467;
  --border:      rgba(255, 255, 255, 0.06);
  --border-acc:  rgba(99, 102, 241, 0.28);
  --glow:        rgba(99, 102, 241, 0.18);

  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ══════════════════════════════════════════════
   RESET + BASE
══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
em { font-style: normal; }
.mono { font-family: var(--font-mono); }

/* TEXT SELECTION — decorative elements only; real content stays selectable */
.sec-watermark, .eyebrow-num, .eyebrow-label,
.work-idx, .cap-idx, .pw-idx, .tl-period, .tl-dot,
.sn-label, .sn-dot, .eco-label, .hub-initials,
.hub-sub, .hub-ring, .jr-label, .rail-tick,
.work-hero-tag, .work-badge, .work-status,
.work-tags span, .cap-tags span,
.intro-tag, .avail-dot, .whv-label, .whv-grid, .whv-glow,
.cap-corner, .scroll-track, .intro-scroll,
.wv-grid, .wv-glow, .work-accent-bar,
.eco-hub-dot, .eco-hub-line, .node-tick,
.c-dot, .c-ring, .click-ripple,
.work-visual, .contact-ambient { user-select: none; }

/* ══════════════════════════════════════════════
   PRELOADER
══════════════════════════════════════════════ */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9995;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Corners */
.pre-corner {
  position: absolute;
  width: 22px; height: 22px;
  opacity: 0;
}
.pre-corner-tl { top: 44px; left: 44px;  border-top:    1px solid var(--border-acc); border-left:  1px solid var(--border-acc); }
.pre-corner-tr { top: 44px; right: 44px; border-top:    1px solid var(--border-acc); border-right: 1px solid var(--border-acc); }
.pre-corner-bl { bottom: 44px; left: 44px;  border-bottom: 1px solid var(--border-acc); border-left:  1px solid var(--border-acc); }
.pre-corner-br { bottom: 44px; right: 44px; border-bottom: 1px solid var(--border-acc); border-right: 1px solid var(--border-acc); }

/* Inner stack */
.pre-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
}

/* Hub */
.pre-hub {
  position: relative;
  width: 96px; height: 96px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pre-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(99, 102, 241, 0.4);
}
.pre-ring-2 {
  inset: -18px;
  border-color: rgba(99, 102, 241, 0.14);
}
.pre-scan {
  position: absolute;
  left: -8px; right: -8px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  top: 0;
}
.pre-initials {
  font-family: var(--font-head);
  font-size: 34px; font-weight: 800;
  color: var(--accent);
  letter-spacing: .06em;
  position: relative; z-index: 1;
}

/* Name */
.pre-name {
  display: flex; gap: 20px;
  font-family: var(--font-head);
  font-size: clamp(30px, 4.5vw, 58px);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--text);
  line-height: 1;
}

/* Subtitle */
.pre-sub {
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: -8px;
}

/* Progress bar */
.pre-bar-wrap {
  width: 280px; height: 1px;
  background: rgba(255, 255, 255, 0.06);
  position: relative; overflow: hidden;
  margin-top: 4px;
}
.pre-bar {
  position: absolute;
  left: 0; top: 0; height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.5);
}

@media (max-width: 600px) {
  .pre-corner { display: none; }
  .pre-name   { flex-direction: column; gap: 6px; }
}

/* ══════════════════════════════════════════════
   SCROLL PROGRESS BAR
══════════════════════════════════════════════ */
.scroll-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  z-index: 1000;
  pointer-events: none;
  transition: width .1s linear;
}

/* ══════════════════════════════════════════════
   CUSTOM CURSOR
══════════════════════════════════════════════ */
.c-dot {
  position: fixed;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: width .2s, height .2s, opacity .2s;
}
.c-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: width .3s, height .3s, border-color .3s, background .3s;
}
.c-dot.is-hover  { opacity: 0; }
.c-ring.is-hover { width: 54px; height: 54px; border-color: var(--accent); background: rgba(99,102,241,.06); }
@media (hover: none) {
  .c-dot, .c-ring { display: none; }
  body { cursor: auto; }
}

/* Click ripple */
.click-ripple {
  position: fixed;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(99, 102, 241, 0.6);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9997;
}

/* ══════════════════════════════════════════════
   SIDE NAVIGATION
══════════════════════════════════════════════ */
.sidenav {
  position: fixed;
  right: 40px; top: 50%;
  transform: translateY(-50%);
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-end;
}
.sn-track {
  position: absolute;
  right: 2px; top: 13px; bottom: 13px;
  width: 1px;
  background: rgba(255,255,255,.05);
  pointer-events: none;
}
.sn-fill {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 0%;
  background: linear-gradient(to bottom, var(--accent), var(--cyan));
  transition: height .4s ease;
}
.sn-item {
  display: flex; align-items: center; gap: 12px;
  cursor: pointer;
  opacity: 0;
  animation: snIn .5s ease forwards;
}
@keyframes snIn { to { opacity: 1; } }
.sn-item:nth-child(2) { animation-delay: 1.4s; }
.sn-item:nth-child(3) { animation-delay: 1.5s; }
.sn-item:nth-child(4) { animation-delay: 1.6s; }
.sn-item:nth-child(5) { animation-delay: 1.7s; }
.sn-item:nth-child(6) { animation-delay: 1.8s; }
.sn-item:nth-child(7) { animation-delay: 1.9s; }
.sn-item:nth-child(8) { animation-delay: 2.0s; }
.sn-label {
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-2);
  opacity: 0; transform: translateX(8px);
  transition: opacity .3s, transform .3s, color .3s;
}
.sn-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--muted); flex-shrink: 0;
  transition: background .35s, transform .35s, box-shadow .35s;
}
.sn-item:hover .sn-label,
.sn-item.active .sn-label { opacity: 1; transform: translateX(0); color: var(--accent); }
.sn-item.active .sn-dot   { background: var(--accent); transform: scale(1.8); box-shadow: 0 0 10px var(--accent); }
@media (max-width: 1024px) { .sidenav { display: none; } }

/* ══════════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════════ */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 60px; width: 100%; }
.section {
  position: relative;
  padding: 130px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Section watermark numbers — decorative, large */
.sec-watermark {
  position: absolute;
  top: -0.08em; right: -0.04em;
  font-family: var(--font-head);
  font-size: clamp(200px, 28vw, 380px);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.03);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
  letter-spacing: -.05em;
}

/* Eyebrow */
.eyebrow {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 48px;
  position: relative; z-index: 1;
}
.eyebrow-num   { font-size: 10px; letter-spacing: .25em; color: var(--accent); }
.eyebrow-label {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
  padding-left: 18px; border-left: 1px solid var(--border-acc);
}

/* Section headings */
.sec-heading {
  font-family: var(--font-head);
  font-size: clamp(40px, 5.5vw, 80px);
  font-weight: 700; letter-spacing: -.02em; line-height: 1.08;
  color: var(--text); margin-bottom: 60px;
  position: relative; z-index: 1;
}
.sec-heading em { color: var(--accent); }

/* Buttons */
.btn-solid, .btn-outline, .btn-mag {
  display: inline-flex; align-items: center;
  font-family: var(--font-head); font-size: 14px; font-weight: 600;
  letter-spacing: .03em; text-decoration: none; border-radius: 3px;
  position: relative; will-change: transform;
}
.btn-solid {
  padding: 14px 32px; background: var(--accent); color: #fff;
  transition: background .3s, box-shadow .3s;
}
.btn-solid:hover { background: var(--accent-hi); box-shadow: 0 8px 36px rgba(99,102,241,.38); }
.btn-outline {
  padding: 13px 31px; color: var(--text);
  border: 1px solid var(--border-acc);
  transition: border-color .3s, color .3s, background .3s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: rgba(99,102,241,.06); }

/* ══════════════════════════════════════════════
   01 · INTRODUCTION
══════════════════════════════════════════════ */
.s-intro {
  height: 100vh; height: 100svh; min-height: 580px;
  flex-direction: column; justify-content: center;
  padding: 0; overflow: hidden;
}
#grid-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.intro-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 28px; padding: 0 24px;
}
.intro-tag {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); opacity: 0; transform: translateY(20px);
  display: flex; align-items: center; gap: 12px;
}
.intro-tag::before { content: ''; width: 20px; height: 1px; background: var(--accent); flex-shrink: 0; }
.intro-name {
  font-family: var(--font-head);
  font-size: clamp(64px, 11vw, 148px); font-weight: 700;
  letter-spacing: -.035em; line-height: .93; color: #fff;
}
.name-row   { display: block; overflow: hidden; }
.name-reveal{ display: block; transform: translateY(110%); opacity: 0; }
.intro-sub  {
  font-size: clamp(13px, 1.5vw, 16px); color: var(--text-2);
  letter-spacing: .04em; opacity: 0; transform: translateY(28px); max-width: 600px;
}
.intro-actions {
  display: flex; gap: 16px;
  opacity: 0; transform: translateY(20px);
  flex-wrap: wrap; justify-content: center;
}
.intro-scroll {
  position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  opacity: 0; z-index: 1;
}
.intro-scroll > span { font-size: 9px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.scroll-track { width: 1px; height: 56px; background: rgba(255,255,255,.08); overflow: hidden; position: relative; }
.scroll-thumb {
  position: absolute; top: 0; left: 0; width: 100%; height: 28px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse { 0% { transform: translateY(-100%); } 100% { transform: translateY(220%); } }

/* ══════════════════════════════════════════════
   02 · JOURNEY  (Story + Timeline)
══════════════════════════════════════════════ */
.s-journey { background: var(--bg-2); align-items: flex-start; }
.s-journey .wrap { width: 100%; position: relative; z-index: 1; }

/* Journey route milestones */
.journey-route {
  display: flex; align-items: center;
  margin-bottom: 56px;
  padding: 28px 40px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.015);
  position: relative;
  overflow: hidden;
}
.jr-stop {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.jr-pin {
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--muted);
  background: var(--bg-2);
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.jr-stop-key .jr-pin {
  border-color: var(--accent);
  background: rgba(99,102,241,.15);
  box-shadow: 0 0 12px rgba(99,102,241,.4);
}
.jr-label {
  font-size: 9px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
  transition: color .3s;
}
.jr-stop-key .jr-label { color: var(--accent); }

/* Connecting path lines */
.jr-path {
  flex: 1; height: 1px;
  background: rgba(255,255,255,.06);
  position: relative;
  overflow: hidden;
  margin: 0 4px;
  margin-bottom: 20px; /* align with pin vertically */
}
.jr-fill {
  position: absolute; top: 0; left: 0;
  width: 0%; height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--muted));
}

/* Stats + timeline grid */
.journey-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }

.journey-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2px; background: var(--border); border: 1px solid var(--border);
}
.stat-item {
  background: var(--bg-2); padding: 40px 36px;
  transition: background .3s;
}
.stat-item:hover { background: rgba(99,102,241,.04); }
.stat-val { font-size: clamp(40px, 4.5vw, 60px); font-weight: 700; color: var(--text); line-height: 1; margin-bottom: 10px; }
.stat-val .suf { color: var(--accent); }
.stat-lbl { font-size: 13px; color: var(--text-2); line-height: 1.4; }

/* Timeline */
.journey-timeline { position: relative; padding-left: 32px; }
.tl-track { position: absolute; left: 0; top: 16px; bottom: 16px; width: 1px; background: rgba(255,255,255,.07); }
.tl-progress {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 0%;
  background: linear-gradient(to bottom, var(--accent), var(--cyan));
}
.tl-item {
  position: relative;
  padding: 32px 0 32px 20px;
  border-bottom: 1px solid var(--border);
  opacity: 0; transform: translateX(-20px);
}
.tl-item:first-child { border-top: 1px solid var(--border); }
.tl-dot {
  position: absolute; left: -36px; top: 40px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--muted); border: 1px solid var(--bg-2);
  transition: background .4s, box-shadow .4s; z-index: 1;
}
.tl-item.tl-active .tl-dot { background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.tl-period  { font-size: 10px; letter-spacing: .18em; color: var(--accent); margin-bottom: 10px; display: block; }
.tl-role    { font-family: var(--font-head); font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.tl-company { font-size: 13px; color: var(--text-2); margin-bottom: 10px; }
.tl-note    { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ══════════════════════════════════════════════
   03 · WHAT I BUILD
══════════════════════════════════════════════ */
.s-build { background: var(--bg); }
.s-build .wrap { width: 100%; position: relative; z-index: 1; }

.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); }
.cap-card {
  padding: 48px 40px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
  transition: background .35s;
  opacity: 0; transform: translateY(40px);
}
.cap-card:nth-child(3), .cap-card:nth-child(6) { border-right: none; }
.cap-card:nth-child(4), .cap-card:nth-child(5), .cap-card:nth-child(6) { border-bottom: none; }
.cap-card::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 0 0, rgba(99,102,241,.1), transparent 60%);
  opacity: 0; transition: opacity .4s; pointer-events: none;
}
.cap-card:hover { background: rgba(99,102,241,.03); }
.cap-card:hover::after { opacity: 1; }
/* Corner bracket — decorative only */
.cap-corner {
  position: absolute; top: 20px; right: 20px;
  width: 14px; height: 14px;
  border-top: 1px solid var(--border-acc);
  border-right: 1px solid var(--border-acc);
  opacity: 0; transition: opacity .4s;
}
.cap-card:hover .cap-corner { opacity: 1; }
/* Internal index — small, subtle */
.cap-idx { font-size: 9px; letter-spacing: .25em; color: var(--muted); margin-bottom: 20px; display: block; }
.cap-title {
  font-family: var(--font-head); font-size: 19px; font-weight: 600;
  color: var(--text); margin-bottom: 14px; line-height: 1.3;
  position: relative; z-index: 1;
}
.cap-desc { font-size: 14px; color: var(--text-2); line-height: 1.7; margin-bottom: 24px; position: relative; z-index: 1; }
.cap-tags { display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.cap-tags span {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em;
  padding: 4px 10px; border: 1px solid var(--border-acc); border-radius: 2px;
  color: var(--text-2); transition: border-color .3s, color .3s;
}
.cap-card:hover .cap-tags span { border-color: rgba(99,102,241,.45); color: var(--accent-hi); }

/* ══════════════════════════════════════════════
   04 · CLIENTS — Prestige Wall / Client Matrix
══════════════════════════════════════════════ */
.s-clients { background: var(--bg-3); align-items: flex-start; }
.s-clients .wrap { width: 100%; position: relative; z-index: 1; }
.clients-intro { font-size: 14px; color: var(--muted); margin-bottom: 48px; letter-spacing: .03em; }

.prestige-wall { position: relative; }
.pw-item { position: relative; overflow: hidden; cursor: default; }
.pw-line { position: absolute; top: 0; left: 0; width: 0%; height: 1px; background: linear-gradient(90deg, var(--accent), var(--border)); }
.pw-bottom-line { height: 1px; width: 0%; background: linear-gradient(90deg, var(--accent), var(--border)); }

/* Additional Experience — integrated toggle row */
.pw-add-toggle { position: relative; overflow: hidden; }
.pw-add-row {
  cursor: pointer;
  transition: padding-left .4s ease;
}
.pw-add-row:hover { padding-left: 16px; }

.pw-add-plus {
  font-size: 20px;
  font-weight: 300;
  color: var(--text-2);
  flex-shrink: 0;
  width: 28px;
  transition: color .35s, transform .45s cubic-bezier(.34,1.56,.64,1);
  line-height: 1;
}
.pw-add-toggle.is-open .pw-add-plus {
  color: var(--accent);
  transform: rotate(45deg);
}

.pw-add-label {
  font-family: var(--font-head);
  font-size: clamp(22px, 2.8vw, 40px);
  font-weight: 600;
  letter-spacing: -.02em;
  color: rgba(255, 255, 255, 0.28);
  flex: 1;
  transition: color .4s ease;
}
.pw-add-row:hover .pw-add-label { color: var(--text-2); }
.pw-add-toggle.is-open .pw-add-label { color: var(--text-2); }

.pw-add-body {
  overflow: hidden;
  height: 0;
}
.pw-add-text {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-2);
  line-height: 2.2;
  padding: 20px 0 44px 56px;
  opacity: 0;
}

.pw-row {
  display: flex; align-items: center; gap: 24px;
  padding: 36px 0;
  transition: padding-left .4s ease;
}
.pw-item:hover .pw-row { padding-left: 16px; }

.pw-idx { font-size: 9px; letter-spacing: .25em; color: var(--muted); flex-shrink: 0; transition: color .3s; padding-top: 4px; }
.pw-item:hover .pw-idx { color: var(--accent); }

.pw-name {
  font-family: var(--font-head);
  font-size: clamp(40px, 7vw, 96px); font-weight: 700;
  letter-spacing: -.03em; line-height: 1; color: rgba(255,255,255,.2);
  flex: 1; transition: color .45s ease;
}
.pw-item:hover .pw-name { color: var(--text); }

/* Context details revealed on hover — sector + engagement type */
.pw-meta {
  flex-shrink: 0;
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
  opacity: 0; transform: translateX(-12px);
  transition: opacity .35s, transform .35s;
  pointer-events: none;
}
.pw-item:hover .pw-meta { opacity: 1; transform: translateX(0); }
.pw-cat { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.pw-eng { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }

/* ══════════════════════════════════════════════
   05 · FEATURED WORK
══════════════════════════════════════════════ */
.s-work { background: var(--bg); }
.s-work .wrap { width: 100%; position: relative; z-index: 1; }

.work-list { display: flex; flex-direction: column; border: 1px solid var(--border); }
.work-card {
  display: grid; grid-template-columns: 64px 1fr 300px;
  min-height: 300px;
  border-bottom: 1px solid var(--border);
  opacity: 0; transform: translateY(50px);
  transition: background .3s;
  position: relative; overflow: hidden;
}
.work-card:last-child { border-bottom: none; }
.work-card:hover { background: rgba(255,255,255,.016); }
.work-rev { grid-template-columns: 300px 64px 1fr; }

/* Hero project */
.work-hero {
  grid-template-columns: 64px 1fr 360px;
  min-height: 420px;
  background: rgba(6, 12, 30, 0.6);
  border-bottom: 1px solid var(--border);
}
.work-hero:hover { background: rgba(99,102,241,.04); }
.work-hero .work-accent-bar { transform: scaleY(1); }
.work-hero .work-body { padding: 60px 68px 60px 56px; }
.work-hero .work-title {
  font-size: clamp(24px, 3.2vw, 40px);
  margin-bottom: 6px;
}
.work-hero .work-desc { font-size: 15px; line-height: 1.8; max-width: 640px; }
.work-hero-tag {
  font-size: 9px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(99,102,241,.7);
  padding: 4px 10px;
  border: 1px solid rgba(99,102,241,.2);
  border-radius: 2px;
}
/* Hero visual panel */
.work-hero-visual {
  position: relative; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, rgba(99,102,241,.2), transparent 70%);
  display: flex; align-items: flex-end;
}
.whv-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,.06) 1px, transparent 1px);
  background-size: 40px 40px;
}
.whv-glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(99,102,241,.12), transparent 60%);
}
.whv-label {
  position: relative; z-index: 1;
  font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(99,102,241,.5); padding: 20px 28px;
}

/* Hover accent bar (left edge reveal) */
.work-accent-bar {
  position: absolute; left: 0; top: 0;
  width: 3px; height: 100%;
  background: linear-gradient(to bottom, var(--accent), var(--cyan));
  transform: scaleY(0); transform-origin: top;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
  z-index: 2;
}
.work-card:hover .work-accent-bar { transform: scaleY(1); }
.work-rev .work-accent-bar { left: auto; right: 0; }

/* Vertical index number — subtle */
.work-idx {
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; letter-spacing: .25em; color: rgba(255,255,255,.1);
  border-right: 1px solid var(--border);
  writing-mode: vertical-rl; padding: 32px 0;
  transition: color .3s;
}
.work-card:hover .work-idx { color: var(--muted); }
.work-rev .work-idx { border-right: none; border-left: 1px solid var(--border); order: 2; }

.work-body {
  padding: 48px 52px;
  display: flex; flex-direction: column; gap: 18px;
  justify-content: center; position: relative; z-index: 1;
}
.work-rev .work-body { order: 3; }
.work-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.work-badge {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); padding: 4px 10px; border: 1px solid var(--border-acc); border-radius: 2px;
}
.work-status {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase;
  color: #22c55e; padding: 4px 10px; border: 1px solid rgba(34,197,94,.22); border-radius: 2px;
}
.work-title {
  font-family: var(--font-head); font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700; letter-spacing: -.01em; color: var(--text); line-height: 1.2;
  transition: color .3s;
}
.work-card:hover .work-title { color: #fff; }
.work-desc { font-size: 14px; color: var(--text-2); line-height: 1.75; max-width: 520px; }
.work-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.work-tags span {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em;
  padding: 4px 10px; border: 1px solid var(--border); border-radius: 2px;
  color: var(--muted); transition: border-color .3s, color .3s;
}
.work-card:hover .work-tags span { border-color: var(--border-acc); color: var(--text-2); }
.work-foot { margin-top: 4px; }
.no-demo { font-size: 12px; color: var(--muted); }
.no-demo a { color: var(--accent-hi); text-decoration: underline; text-underline-offset: 3px; }
.work-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border: 1px solid var(--border-acc); border-radius: 3px;
  font-size: 13px; color: var(--text); font-family: var(--font-head); font-weight: 600;
  transition: border-color .3s, color .3s, box-shadow .3s;
}
.work-link:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 24px rgba(99,102,241,.2); }

/* Supporting work card visual panels */
.work-visual { position: relative; overflow: hidden; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.work-rev .work-visual { order: 1; }
.work-card:hover .work-visual { transform: scale(1.03); }
.wv-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 44px 44px;
}
.wv-glow { position: absolute; inset: 0; opacity: 0; transition: opacity .4s; }
.work-card:hover .wv-glow { opacity: 1; }
.wv-indigo  { background: radial-gradient(circle at 50% 50%, rgba(99,102,241,.14), transparent 70%); }
.wv-indigo  .wv-glow { background: radial-gradient(circle at 50% 50%, rgba(99,102,241,.1), transparent 60%); }
.wv-cyan    { background: radial-gradient(circle at 50% 50%, rgba(34,211,238,.10), transparent 70%); }
.wv-cyan    .wv-glow { background: radial-gradient(circle at 50% 50%, rgba(34,211,238,.08), transparent 60%); }
.wv-violet  { background: radial-gradient(circle at 50% 50%, rgba(139,92,246,.13), transparent 70%); }
.wv-violet  .wv-glow { background: radial-gradient(circle at 50% 50%, rgba(139,92,246,.1), transparent 60%); }
.wv-emerald { background: radial-gradient(circle at 50% 50%, rgba(16,185,129,.11), transparent 70%); }
.wv-emerald .wv-glow { background: radial-gradient(circle at 50% 50%, rgba(16,185,129,.09), transparent 60%); }

/* ══════════════════════════════════════════════
   06 · TECHNICAL EXPERTISE — System Map
══════════════════════════════════════════════ */
.s-stack { background: var(--bg-2); }
.s-stack .wrap { width: 100%; position: relative; z-index: 1; }

/* Central hub row */
.sysmap-hub-row {
  display: flex; flex-direction: column; align-items: center;
  margin-bottom: 0;
}
.sysmap-hub {
  padding: 18px 48px;
  border: 1px solid var(--border-acc);
  border-radius: 4px;
  background: rgba(99,102,241,.06);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  position: relative;
  opacity: 0; transform: scale(0.8);
}
.hub-ring {
  position: absolute; inset: -6px; border-radius: 8px;
  border: 1px solid rgba(99,102,241,.15);
  pointer-events: none;
}
.hub-initials {
  font-family: var(--font-head); font-size: 28px; font-weight: 700;
  letter-spacing: -.02em; color: var(--accent);
}
.hub-sub { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
/* Spine line — vertical from hub to rail */
.hub-spine {
  width: 1px; height: 0px; /* GSAP animates height */
  background: linear-gradient(to bottom, var(--accent), var(--border-acc));
}
/* Horizontal rail connecting to 4 columns */
.hub-rail {
  width: 100%; height: 1px;
  background: var(--border-acc);
  position: relative;
  display: flex; justify-content: space-around; align-items: flex-start;
  opacity: 0; transform: scaleX(0);
  transform-origin: center;
  margin-bottom: -1px; /* merge with ecosystem top border */
}
.rail-tick {
  display: block; width: 1px; height: 12px;
  background: var(--accent); margin-top: 0;
}

/* Ecosystem columns */
.ecosystem { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--border); }
.eco-col {
  padding: 0; border-right: 1px solid var(--border);
  position: relative;
  opacity: 0; transform: translateY(28px);
}
.eco-col:last-child { border-right: none; }

.eco-hub {
  display: flex; flex-direction: column; align-items: center;
  padding: 28px 36px 18px; gap: 10px; position: relative;
}
.eco-hub-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px rgba(99,102,241,.45); flex-shrink: 0;
}
.eco-label { font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); text-align: center; }
.eco-hub-line { width: 1px; height: 18px; background: linear-gradient(to bottom, var(--accent), var(--border)); }

.eco-nodes { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.eco-node {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 14px; color: var(--text-2);
  transition: color .25s, background .25s, padding-left .25s;
  cursor: default;
}
.eco-node:last-child { border-bottom: none; }
.eco-node:hover { color: var(--text); background: rgba(99,102,241,.04); padding-left: 32px; }
.node-tick {
  display: block; width: 10px; height: 1px;
  background: var(--border-acc); flex-shrink: 0;
  transition: background .25s, width .25s;
}
.eco-node:hover .node-tick { background: var(--accent); width: 14px; }

/* ══════════════════════════════════════════════
   07 · CONTACT — Dramatic Closing
══════════════════════════════════════════════ */
.s-contact {
  background: var(--bg-3);
  flex-direction: column; justify-content: space-between;
  align-items: stretch; min-height: 100vh; padding-bottom: 0;
}
.s-contact .wrap { width: 100%; flex: 1; display: flex; flex-direction: column; position: relative; z-index: 1; }
.contact-ambient {
  position: absolute; width: 900px; height: 900px; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(99,102,241,.07) 0%, transparent 65%);
  pointer-events: none; z-index: 0; opacity: 0;
  transition: opacity 1.4s ease;
}
.s-contact.ambient-on .contact-ambient { opacity: 1; }
.contact-wm { -webkit-text-stroke-color: rgba(255,255,255,.02); }

.contact-stage {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  gap: 64px; padding: 48px 0 60px; position: relative; z-index: 1;
}
.contact-title {
  font-family: var(--font-head);
  font-size: clamp(52px, 9vw, 130px); font-weight: 700;
  letter-spacing: -.03em; line-height: 1.02; color: var(--text);
}
.ct-line { display: block; opacity: 0; transform: translateY(60px); }
.ct-accent { color: var(--accent); }

.contact-action { display: flex; flex-direction: column; gap: 28px; opacity: 0; transform: translateY(30px); }
.contact-email {
  font-family: var(--font-head); font-size: clamp(16px, 2vw, 24px); font-weight: 600;
  color: var(--text); letter-spacing: -.01em;
  border-bottom: 1px solid var(--border-acc); padding-bottom: 16px;
  display: block; width: fit-content;
  transition: color .3s, border-color .3s;
}
.contact-email:hover { color: var(--accent); border-color: var(--accent); }
.contact-links { display: flex; gap: 16px; }
.contact-link {
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-2); padding: 10px 22px;
  border: 1px solid var(--border); border-radius: 2px;
  transition: border-color .3s, color .3s;
}
.contact-link:hover { border-color: var(--border-acc); color: var(--accent); }
.avail-line { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-2); }
.avail-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e; flex-shrink: 0;
  box-shadow: 0 0 10px rgba(34,197,94,.5);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(34,197,94,.5); }
  50%       { box-shadow: 0 0 18px rgba(34,197,94,.9); }
}

.site-footer { border-top: 1px solid var(--border); position: relative; z-index: 1; }
.site-footer .wrap {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; padding-bottom: 28px; flex: none;
}
.site-footer span { font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 11px; letter-spacing: .1em; color: var(--muted); text-decoration: none; transition: color .2s; }
.footer-legal a:hover { color: var(--accent-hi); }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1080px) {
  .wrap { padding: 0 40px; }
  .journey-grid { grid-template-columns: 1fr; gap: 56px; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .cap-card:nth-child(3), .cap-card:nth-child(6) { border-right: 1px solid var(--border); }
  .cap-card:nth-child(2), .cap-card:nth-child(4), .cap-card:nth-child(6) { border-right: none; }
  .cap-card:nth-child(4), .cap-card:nth-child(5), .cap-card:nth-child(6) { border-bottom: 1px solid var(--border); }
  .cap-card:nth-child(5), .cap-card:nth-child(6) { border-bottom: none; }
  .work-hero { grid-template-columns: 64px 1fr; }
  .ecosystem { grid-template-columns: repeat(2, 1fr); }
  .eco-col:nth-child(2) { border-right: none; }
  .eco-col:nth-child(3), .eco-col:nth-child(4) { border-top: 1px solid var(--border); }
  .eco-col:nth-child(4) { border-right: none; }
}

@media (max-width: 768px) {
  .wrap { padding: 0 24px; }
  .section { padding: 90px 0; }
  .s-intro { height: 100svh; }
  .sec-watermark { font-size: 30vw; }

  /* Journey */
  .journey-route { padding: 20px 20px; gap: 0; overflow-x: auto; flex-wrap: nowrap; }
  .jr-label { font-size: 8px; }
  .journey-stats { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 28px 20px; }
  .journey-timeline { padding-left: 24px; }
  .tl-role { font-size: 16px; }

  /* Build */
  .cap-grid { grid-template-columns: 1fr; }
  .cap-card { border-right: none !important; border-bottom: 1px solid var(--border) !important; padding: 32px 24px; }
  .cap-card:last-child { border-bottom: none !important; }

  /* Clients */
  .pw-name { font-size: clamp(32px, 9vw, 56px); }
  .pw-meta { display: none; }
  .pw-row  { gap: 12px; padding: 24px 0; }

  /* Work */
  .work-card, .work-rev { grid-template-columns: 1fr; min-height: auto; }
  .work-hero            { grid-template-columns: 1fr; }
  .work-idx   { display: none; }
  .work-body  { padding: 28px 20px; }
  .work-hero .work-body { padding: 36px 24px; }
  .work-visual, .work-hero-visual { min-height: 130px; order: 1 !important; transform: none !important; }
  .work-rev .work-body  { order: 2; }
  .work-accent-bar { display: none; }
  .work-hero-tag  { display: none; }

  /* Stack */
  .sysmap-hub-row { display: none; }  /* hub connects on desktop, list on mobile */
  .ecosystem { grid-template-columns: repeat(2, 1fr); }
  .eco-col:nth-child(2) { border-right: none; }
  .eco-col:nth-child(3), .eco-col:nth-child(4) { border-top: 1px solid var(--border); }
  .eco-col:nth-child(4) { border-right: none; }

  /* Contact */
  .contact-title { font-size: clamp(40px, 11vw, 80px); }
  .contact-stage { gap: 44px; }
  .site-footer .wrap { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .sec-watermark { display: none; }
  .intro-actions { flex-direction: column; align-items: center; }
  .journey-stats { grid-template-columns: 1fr; }
  .ecosystem { grid-template-columns: 1fr; }
  .eco-col:nth-child(n) { border-right: none; border-top: 1px solid var(--border); }
  .eco-col:first-child  { border-top: none; }
  .pw-name { font-size: clamp(26px, 10vw, 44px); }
  .contact-title { font-size: clamp(34px, 12vw, 60px); }
}
