/* ═══════════════════════════════════════════════════════
   NICKOLAS KOLA — Portfolio
   style.css
═══════════════════════════════════════════════════════ */

/* ─── RESET ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ─── CUSTOM PROPERTIES ─── */
:root {
  --bg:        #07070f;
  --bg-2:      #0c0c1a;
  --bg-3:      #111122;
  --surface:   rgba(255, 255, 255, 0.035);
  --surface-h: rgba(255, 255, 255, 0.065);
  --border:    rgba(255, 255, 255, 0.07);
  --border-h:  rgba(255, 255, 255, 0.18);

  --text:      #eeeef5;
  --muted:     rgba(238, 238, 245, 0.45);

  --violet:    #7c3aed;
  --violet-l:  #a78bfa;
  --violet-d:  #4c1d95;
  --cyan:      #0891b2;
  --cyan-l:    #38bdf8;
  --green:     #059669;
  --green-l:   #34d399;

  --font:  'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --mono:  'JetBrains Mono', 'Fira Mono', monospace;

  --ease:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:  cubic-bezier(0.4, 0, 1, 1);

  --radius:   16px;
  --radius-sm: 10px;
}

/* ─── BASE ─── */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

strong {
  font-weight: 600;
  color: var(--text);
}

/* ─── UTILITY ─── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 60px 0;
}

.label {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 16px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--violet-l) 0%, var(--cyan-l) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── SCROLL REVEAL ANIMATIONS ─── */
.reveal-up,
.reveal-fade {
  opacity: 0;
  transition:
    opacity 0.75s var(--ease-out),
    transform 0.75s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.reveal-up   { transform: translateY(40px); }
.reveal-fade { transform: translateY(0); }

.revealed.reveal-up,
.revealed.reveal-fade {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal-up,
  .reveal-fade {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  position: relative;
  overflow: hidden;
  border: none;
  outline: none;
  white-space: nowrap;
  will-change: transform;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s;
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--violet), #0e7490);
  color: #fff;
}
.btn-primary::before {
  background: linear-gradient(135deg, var(--violet-l), var(--cyan-l));
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(124, 58, 237, 0.4);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.btn-ghost::before {
  background: var(--surface-h);
}
.btn-ghost:hover {
  border-color: var(--border-h);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.82rem;
}

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 0;
  transition: padding 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  padding: 14px 0;
  background: rgba(7, 7, 15, 0.85);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  flex-shrink: 0;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
}
.nav-logo:hover { opacity: 0.8; }

.nav-logo-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--violet-l);
  display: block;
  transition: width 0.35s var(--ease), height 0.35s var(--ease);
}

.nav.scrolled .nav-logo-avatar {
  width: 36px;
  height: 36px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--violet-l);
  transform: scaleX(0);
  transition: transform 0.2s var(--ease-out);
  transform-origin: left;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-cta { margin-left: 8px; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 6px;
  border-radius: 6px;
  transition: background 0.2s;
}
.nav-hamburger:hover { background: var(--surface); }
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.nav-hamburger.open span:first-child {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav dropdown */
.nav-links.mobile-open {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(7, 7, 15, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 8px 0 16px;
  margin: 0;
}
.nav-links.mobile-open li a {
  display: block;
  padding: 12px 32px;
  font-size: 1rem;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
  pointer-events: none;
}

.hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  animation: orbFloat 14s ease-in-out infinite;
  will-change: transform;
}

.orb-violet {
  width: 800px;
  height: 800px;
  background: var(--violet);
  opacity: 0.18;
  top: -250px;
  left: -250px;
  animation-duration: 16s;
}
.orb-cyan {
  width: 600px;
  height: 600px;
  background: var(--cyan);
  opacity: 0.15;
  bottom: -200px;
  right: -100px;
  animation-delay: -7s;
  animation-duration: 12s;
}
.orb-green {
  width: 400px;
  height: 400px;
  background: var(--green);
  opacity: 0.08;
  top: 40%;
  left: 50%;
  animation-delay: -3s;
  animation-duration: 18s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%       { transform: translate(30px, -40px) scale(1.04); }
  50%       { transform: translate(-20px, 20px) scale(0.97); }
  75%       { transform: translate(40px, 30px) scale(1.02); }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 80px;
  padding-bottom: 80px;
}

.hero-label {
  margin-bottom: 28px;
}

.hero-headline {
  font-size: clamp(3.2rem, 7.5vw, 7rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}

.hero-line {
  display: block;
}

.hero-line-accent {
  background: linear-gradient(135deg, var(--violet-l) 0%, var(--cyan-l) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.15;
  padding-bottom: 0.1em;
}

.hero-line-dim {
  font-size: 0.42em;
  font-weight: 300;
  letter-spacing: 0.01em;
  color: var(--muted);
  margin-top: 12px;
  text-transform: lowercase;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 40px;
  min-height: 2em;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.typed-text {
  color: var(--text);
  font-weight: 500;
}

.typed-cursor {
  color: var(--violet-l);
  font-weight: 300;
  animation: blink 0.9s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.scroll-line {
  width: 1px;
  height: 64px;
  background: linear-gradient(to bottom, var(--border-h), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  45%  { transform: scaleY(1); opacity: 1; }
  55%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ─── CLIENTS MARQUEE ─── */
.clients {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.012);
}

.clients-eyebrow {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 18px;
  opacity: 0.7;
}

.marquee-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  animation: marqueeScroll 38s linear infinite;
  width: max-content;
  will-change: transform;
}
.marquee-track:hover { animation-play-state: paused; }

.marquee-track span {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

.marquee-track .dot {
  color: var(--border-h);
  font-weight: 300;
}

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── SECTION HEADERS ─── */
.section-header {
  text-align: center;
  margin-bottom: 32px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ─── CAPABILITIES ─── */
.cap-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0 48px;
  align-items: start;
}

.cap-divider {
  background: linear-gradient(to bottom, transparent, var(--border-h) 20%, var(--border-h) 80%, transparent);
  align-self: stretch;
  min-height: 300px;
}

.cap-card {
  padding: 8px 32px 32px;
}

.cap-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.cap-card-header h3 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.cap-icon {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
}
.design-icon { color: var(--violet-l); }
.ai-icon     { color: var(--cyan-l); }

.cap-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 24px;
}

.cap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  cursor: default;
  user-select: none;
}
.tag:hover {
  border-color: var(--violet-l);
  color: var(--violet-l);
  background: rgba(167, 139, 250, 0.08);
}
.tag-ai:hover {
  border-color: var(--cyan-l);
  color: var(--cyan-l);
  background: rgba(56, 189, 248, 0.08);
}

/* ─── WORK / CASE STUDIES ─── */
.work-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.work-row {
  display: grid;
  gap: 20px;
}

.work-row--50-50 {
  grid-template-columns: 1fr 1fr;
}

.work-row--33 {
  grid-template-columns: repeat(3, 1fr);
}

.work-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    border-color 0.3s,
    box-shadow 0.3s,
    transform 0.08s linear;
  cursor: pointer;
  position: relative;
  transform-style: preserve-3d;
}

.work-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.06),
    rgba(8, 145, 178, 0.06)
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 1;
}
.work-card:hover::after { opacity: 1; }

.work-card:hover {
  border-color: var(--border-h);
  box-shadow:
    0 0 0 1px rgba(167, 139, 250, 0.1),
    0 24px 60px rgba(0, 0, 0, 0.5);
}

.work-card-img {
  overflow: hidden;
  background: var(--bg-3);
  flex-shrink: 0;
  aspect-ratio: 16 / 9;
}
.work-card--featured .work-card-img {
  aspect-ratio: 16 / 7;
}

.work-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
  will-change: transform;
}
.work-card:hover .work-card-img img {
  transform: scale(1.05);
}

.work-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  z-index: 2;
}

.work-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.work-year {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
}

.work-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.work-tags span {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--cyan-l);
  background: rgba(56, 189, 248, 0.1);
  padding: 3px 8px;
  border-radius: 10px;
}
.work-tags .tag-founder {
  color: var(--violet-l);
  background: rgba(167, 139, 250, 0.12);
}

.work-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 2px;
}
.work-card--featured .work-card-title {
  font-size: 1.4rem;
}

.work-card-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}

.work-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--violet-l);
  margin-top: 8px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.work-card:hover .work-card-cta {
  opacity: 1;
  transform: translateY(0);
}

/* ─── BLOCKPATTERN FEATURED CARD ─── */
.work-card--blockpattern {
  grid-column: 1 / -1;
  background: linear-gradient(
    135deg,
    rgba(76, 29, 149, 0.25) 0%,
    rgba(7, 7, 15, 0.6) 40%,
    rgba(8, 145, 178, 0.15) 100%
  );
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: var(--radius);
  overflow: visible;
  position: relative;
  cursor: default;
}

.work-card--blockpattern::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius) + 1px);
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.4), rgba(56, 189, 248, 0.2), transparent 60%);
  z-index: 0;
  pointer-events: none;
}

.work-card--blockpattern:hover {
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow:
    0 0 0 1px rgba(167, 139, 250, 0.2),
    0 32px 80px rgba(124, 58, 237, 0.3),
    0 0 120px rgba(56, 189, 248, 0.05);
}

.work-card-bp-inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: center;
  padding: 40px 48px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: var(--radius);
}

.work-card-bp-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.work-card-title--bp {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--violet-l) 0%, var(--cyan-l) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 4px;
}

.work-card-desc--bp {
  font-size: 0.92rem;
  color: rgba(238, 238, 245, 0.6);
  line-height: 1.7;
  max-width: 600px;
}

.work-card-bp-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.bp-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--mono);
  letter-spacing: 0.02em;
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.bp-link--primary {
  background: linear-gradient(135deg, var(--violet), #0e7490);
  color: #fff;
  border: 1px solid transparent;
}
.bp-link--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(124, 58, 237, 0.4);
}

.bp-link--secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--cyan-l);
  border: 1px solid rgba(56, 189, 248, 0.25);
}
.bp-link--secondary:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-2px);
}

.bp-link-arrow {
  font-size: 0.9rem;
  transition: transform 0.2s var(--ease);
}
.bp-link:hover .bp-link-arrow {
  transform: translate(2px, -2px);
}

/* BlockPattern visual / decorative side */
.work-card-bp-visual {
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bp-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}
.bp-orb-1 {
  width: 180px;
  height: 180px;
  background: var(--violet);
  opacity: 0.25;
  top: 10%;
  left: 10%;
  animation: bpFloat 8s ease-in-out infinite;
}
.bp-orb-2 {
  width: 140px;
  height: 140px;
  background: var(--cyan);
  opacity: 0.2;
  bottom: 5%;
  right: 10%;
  animation: bpFloat 10s ease-in-out infinite reverse;
  animation-delay: -3s;
}

@keyframes bpFloat {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(12px, -16px); }
}

.bp-node-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  z-index: 1;
}

.bp-node {
  font-size: 1.4rem;
  color: rgba(167, 139, 250, 0.2);
  text-align: center;
  transition: color 0.3s;
  animation: nodePulse 3s ease-in-out infinite;
}
.bp-node--active {
  color: rgba(167, 139, 250, 0.6);
  animation-delay: -1s;
}
.bp-node--bright {
  color: var(--violet-l);
  animation-delay: -2s;
}

@keyframes nodePulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

/* ─── ABOUT ─── */
.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 80px;
  align-items: start;
}

.about-photo-wrap {
  position: relative;
  border-radius: 20px;
}

.about-photo {
  width: 100%;
  border-radius: 20px;
  filter: grayscale(15%);
  transition: filter 0.5s var(--ease);
  position: relative;
  z-index: 1;
}
.about-photo-wrap:hover .about-photo {
  filter: grayscale(0%);
}

.about-photo-glow {
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  z-index: 0;
  opacity: 0.6;
  transition: opacity 0.4s;
}
.about-photo-wrap:hover .about-photo-glow {
  opacity: 1;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  text-align: center;
  transition: border-color 0.2s;
}
.stat:hover { border-color: var(--border-h); }

.stat-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1px;
}

.stat-num {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, var(--violet-l), var(--cyan-l));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-plus {
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--violet-l), var(--cyan-l));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-top: 5px;
}

.about-copy .label { margin-top: 0; }

.about-copy .section-title {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  margin-top: 8px;
  margin-bottom: 28px;
}

.about-copy p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 0.975rem;
}

.about-links {
  display: flex;
  gap: 24px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.about-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}
.about-link:hover {
  color: var(--text);
  border-color: var(--text);
}

/* ─── TIMELINE ─── */
.timeline {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding-left: 36px;
}

/* Line rendered via JS-positioned element to bound exactly to first/last dot */
.timeline-line {
  position: absolute;
  left: 11px;
  width: 1px;
  background: linear-gradient(to bottom, var(--violet) 0%, rgba(124, 58, 237, 0.15) 100%);
  top: var(--tl-line-top, 15px);
  bottom: var(--tl-line-bottom, 15px);
  z-index: 0;
  pointer-events: none;
}

.tl-item {
  position: relative;
  padding-bottom: 32px;
}
.tl-item:last-child { padding-bottom: 0; }

.tl-dot {
  position: absolute;
  left: -32px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--border-h);
  background: var(--bg);
  transition: border-color 0.3s, box-shadow 0.3s;
  z-index: 2;
}

.tl-dot--active {
  border-color: var(--violet-l);
  background: var(--violet);
  box-shadow: 0 0 14px var(--violet), 0 0 28px rgba(124, 58, 237, 0.4);
}

.tl-item:hover .tl-dot:not(.tl-dot--active) {
  border-color: var(--violet-l);
  box-shadow: 0 0 8px rgba(167, 139, 250, 0.4);
}

.tl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  transition: border-color 0.25s, background 0.25s;
}
.tl-item:hover .tl-card {
  border-color: var(--border-h);
  background: var(--surface-h);
}

.tl-card--featured {
  background: linear-gradient(
    135deg,
    rgba(76, 29, 149, 0.2) 0%,
    rgba(7, 7, 15, 0.5) 40%,
    rgba(8, 145, 178, 0.12) 100%
  );
  border-color: rgba(167, 139, 250, 0.25);
}
.tl-card--featured:hover {
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.15), 0 0 80px rgba(56, 189, 248, 0.05);
}

.tl-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.tl-link {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--cyan-l);
  padding: 6px 12px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-sm);
  transition: all 0.25s var(--ease);
}
.tl-link:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-2px);
}

.tl-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.tl-header h4 {
  font-size: 0.975rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.tl-period {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  white-space: nowrap;
  margin-top: 2px;
}

.tl-company {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--violet-l);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.tl-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ─── CONTACT ─── */
.contact-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 80px 64px;
  text-align: center;
  overflow: hidden;
  transition: border-color 0.3s;
}
.contact-card:hover { border-color: var(--border-h); }

.contact-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(124, 58, 237, 0.1) 0%,
    rgba(8, 145, 178, 0.05) 50%,
    transparent 70%
  );
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 1;   transform: translate(-50%, -50%) scale(1.1); }
}

.contact-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin: 12px 0 20px;
  position: relative;
  z-index: 1;
}

.contact-sub {
  font-size: 0.975rem;
  color: var(--muted);
  max-width: 460px;
  margin: 0 auto 48px;
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.contact-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 20px 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-width: 160px;
  transition: all 0.25s var(--ease);
}
.contact-link:hover {
  border-color: var(--violet-l);
  background: rgba(124, 58, 237, 0.08);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(124, 58, 237, 0.2);
}

.contact-link-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-link-val {
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-location {
  font-size: 0.82rem;
  color: var(--muted);
  font-family: var(--mono);
  position: relative;
  z-index: 1;
}

/* ─── FOOTER ─── */
.footer {
  padding: 56px 0 32px;
  border-top: 1px solid var(--border);
  background: rgba(7, 7, 15, 0.6);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.footer-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 64px;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--violet-l);
  flex-shrink: 0;
}

.footer-name {
  font-size: 0.975rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.3;
}

.footer-tagline {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-top: 3px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col-heading {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.footer-col-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(238, 238, 245, 0.55);
  transition: color 0.2s;
  line-height: 1;
}
.footer-col-link:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .cap-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .cap-divider { display: none; }
  .cap-card {
    padding: 32px 0;
    border-top: 1px solid var(--border);
  }
  .cap-card:first-child { border-top: none; padding-top: 0; }

  .work-row--50-50,
  .work-row--33 {
    grid-template-columns: 1fr 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-visual {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .about-photo-wrap { max-width: 240px; flex-shrink: 0; }
  .about-stats { flex: 1; min-width: 200px; }

  .work-card-bp-inner {
    grid-template-columns: 1fr;
    padding: 32px 32px;
  }
  .work-card-bp-visual { display: none; }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .section { padding: 36px 0; }
  .container { padding: 0 20px; }

  .nav-inner { gap: 16px; }
  .nav-links:not(.mobile-open),
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .hero-headline {
    font-size: clamp(2.6rem, 11vw, 4.5rem);
  }

  .work-row--50-50,
  .work-row--33 {
    grid-template-columns: 1fr;
  }

  .contact-card { padding: 48px 24px; }
  .contact-links { flex-direction: column; align-items: stretch; }
  .contact-link { min-width: unset; }

  .timeline { padding-left: 28px; }
  .tl-dot { left: -24px; }

  .about-visual { flex-direction: column; }
  .about-photo-wrap { max-width: 200px; }
  .about-stats { grid-template-columns: repeat(3, 1fr); width: 100%; }

  .work-card-bp-inner {
    padding: 28px 24px;
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; }
  .btn { width: 100%; }
  .cap-card { padding: 24px 0; }
  .work-card-body { padding: 18px; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .contact-card { border-radius: var(--radius); }
  .footer-inner { gap: 32px; }
  .footer-cols { grid-template-columns: 1fr; }
  .work-card-bp-links { flex-direction: column; }
  .bp-link { width: 100%; justify-content: center; }
}
