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

/* ── Tokens ── */
:root {
  --bg:           #0D0D0D;
  --surface:      #161616;
  --surface-2:    #1E1E1E;
  --text-primary: #F5F5F5;
  --text-sec:     #C0C0C0;
  --text-muted:   #909090;
  --accent:       #CCFF00;
  --accent-hover: #B8EF00;
  --border:       rgba(255,255,255,.09);
  --border-strong:rgba(255,255,255,.16);
  --radius-sm:    8px;
  --radius:       12px;
  --radius-lg:    16px;
  --max-w:        1200px;
  --pad:          clamp(1.5rem, 5vw, 4rem);
  --font:         'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Base ── */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

/* ── Site Banner ── */
.site-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 101;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-size: .8125rem;
  color: var(--text-muted);
  letter-spacing: .01em;
}

/* ── Nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.25rem var(--pad);
  padding-top: max(1.25rem, env(safe-area-inset-top));
  background: rgba(13,13,13,.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
.nav.scrolled { background: rgba(13,13,13,.98); }

.nav__progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: transparent;
}
.nav__progress-fill {
  height: 100%;
  width: 0%;
  background: rgba(255,255,255,.65);
  transition: width .1s linear;
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .06em;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 1rem;
  color: var(--text-sec);
}
.nav__links a { transition: color .2s, font-weight .2s; }
.nav__links a:hover { color: var(--text-primary); }
.nav__links a.nav__link--active {
  color: var(--text-primary);
  font-weight: 600;
}
.nav__cta { color: var(--text-sec); font-weight: 400; }
.nav__cv {
  color: var(--text-muted);
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s;
  letter-spacing: .01em;
}
.nav__cv:hover { color: var(--text-primary); }

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem .75rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 500;
}
.badge--lime {
  background: rgba(204,255,0,.08);
  color: var(--accent);
  border: 1px solid rgba(204,255,0,.18);
}
.badge--lime::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 2s ease infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: .3; }
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem var(--pad) 0;
  text-align: center;
  background: var(--bg);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 960px;
  width: 100%;
}

.hero__title {
  font-size: clamp(3.75rem, 10vw, 8.5rem);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.04em;
  color: var(--text-primary);
}

.hero__line1 {
  white-space: nowrap;
}

/* Clipping slot — word animates inside, "Product" never moves */
.rotating-word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  transition: width .35s cubic-bezier(.4, 0, .2, 1);
}

.rotating-word {
  display: inline-block;
  color: inherit;
  will-change: transform, opacity;
}

.rotating-word.exit {
  animation: wordExit .28s cubic-bezier(.4, 0, 1, 1) forwards;
}

.rotating-word.enter {
  animation: wordEnter .32s cubic-bezier(0, 0, .2, 1) forwards;
}

@keyframes wordExit {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-55%); }
}

@keyframes wordEnter {
  from { opacity: 0; transform: translateY(55%); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__tagline {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 400;
  color: var(--text-sec);
  line-height: 1.65;
  max-width: 560px;
  letter-spacing: -.01em;
}

.hero__meta {
  font-size: .75rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: -.5rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: .5rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  padding: .75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 500;
  transition: all .2s ease;
  cursor: pointer;
  border: none;
  font-family: var(--font);
}
.btn--primary {
  background: var(--accent);
  color: #0A0A0A;
}
.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(204,255,0,.2);
}
.btn--ghost {
  background: transparent;
  color: var(--text-sec);
  border: 1px solid var(--border-strong);
}
.btn--ghost:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.04);
}
.btn--outline {
  background: transparent;
  color: var(--text-sec);
  border: 1px solid var(--border-strong);
}
.btn--outline:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.btn--lg { padding: 1rem 2rem; font-size: 1rem; }

.btn--lime-pill {
  background: var(--accent);
  color: #0A0A0A;
  border-radius: 999px;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
}
.btn--lime-pill:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.btn--dark-pill {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  transition: background .2s, border-color .2s, color .2s;
}
.btn--dark-pill:hover {
  background: #a3e635;
  border-color: #a3e635;
  color: #0d0d0d;
}

/* ── Section chrome ── */
.section {
  padding: 6rem var(--pad);
  max-width: var(--max-w);
  margin: 0 auto;
}
.section__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}
.section__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.1;
  color: var(--text-primary);
}
.section__header { margin-bottom: 3rem; }

/* ── Work section ── */
.work {
  padding: 6rem var(--pad);
}

.work__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ── Work grid (legacy) ── */
.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* ── Projects — large horizontal cards ── */
.work__inner > .section__label { margin-bottom: 2.5rem; }

.projects {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pcard {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  min-height: 340px;
  transition: transform .3s ease, box-shadow .3s ease;
}

.pcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 80px rgba(0,0,0,.55);
}

.pcard__num {
  flex: 0 0 120px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--border);
}

.pcard__num-label {
  font-size: 0.6rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.pcard__num-value {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -.04em;
  line-height: 1;
}

.pcard__num-total {
  font-size: 0.6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pcard__left {
  flex: 0 0 38%;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.pcard__icon { margin-bottom: .5rem; }

.pcard__title {
  font-size: clamp(1.75rem, 2.8vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.05;
  color: var(--text-primary);
}

.pcard__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: .125rem;
}

.pcard__desc {
  color: var(--text-sec);
  font-size: 1rem;
  line-height: 1.65;
  flex: 1;
  margin-top: .25rem;
}

.pcard__cta {
  display: inline-flex;
  align-self: flex-start;
  margin-top: .75rem;
  padding: .5rem 1.25rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}

.pcard:hover .pcard__cta {
  background: #a3e635;
  border-color: #a3e635;
  color: #0d0d0d;
}

.pcard__right {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
}

.pcard__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 45%, rgba(204,255,0,.16) 0%, transparent 65%);
  z-index: 2;
  pointer-events: none;
}

.pcard__glow--blue {
  background: radial-gradient(ellipse at 50% 45%, rgba(59,130,246,.22) 0%, transparent 65%);
}

.pcard__glow--teal {
  background: radial-gradient(ellipse at 50% 45%, rgba(20,184,166,.18) 0%, transparent 65%);
}

/* P2P Explorer card preview */
.aztec-card-img {
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 105%;
  height: auto;
  pointer-events: none;
  transition: transform .45s ease;
}

.pcard:hover .aztec-card-img {
  transform: translateY(-50%) scale(1.04);
}

.pcard__screen {
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: transform .45s ease;
}

.pcard:hover .pcard__screen { transform: scale(1.04); }

.pcard__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform .45s ease;
}

.pcard:hover .pcard__img { transform: scale(1.04); }

/* ── FIGMA DARK CARDS (Boop & Quadrato) ── */
.fcard {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
  width: 100%;
  aspect-ratio: 1243 / 422;
  text-decoration: none;
  cursor: pointer;
  transition: transform .35s ease;
}
.fcard:hover { transform: scale(1.01); }

.fcard--boop    { background: #161616; }
.fcard--quadrato { background: #161616; }

.fcard__num {
  flex: 0 0 120px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--border);
  position: relative;
  z-index: 3;
}

.fcard__content {
  position: absolute;
  left: 160px;
  top: 90px;
  width: 360px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  z-index: 2;
}

.fcard__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fcard__heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fcard__logo {
  width: 174px;
  height: auto;
}

.fcard__title {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 64px;
  font-weight: 700;
  color: #f2f2f2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
}

.fcard__tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.fcard__tag {
  font-size: 0.5rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}

.fcard__desc {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: #e0e0e0;
  letter-spacing: 0.08em;
  line-height: 1.5;
  margin: 0;
}

.fcard__cta {
  display: inline-flex;
  align-self: flex-start;
  margin-top: .75rem;
  padding: .5rem 1.25rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}

.fcard:hover .fcard__cta {
  background: #a3e635;
  border-color: #a3e635;
  color: #0d0d0d;
}

/* Boop — phones composite image, right-anchored */
.fcard__phones-img {
  position: absolute;
  right: 64px;
  top: 50%;
  transform: translateY(-50%);
  height: 82%;
  width: auto;
  z-index: 1;
  pointer-events: none;
  transition: transform .45s ease;
}

.fcard:hover .fcard__phones-img { transform: translateY(-50%) scale(1.06); }

/* Boop — 3 phone mockups absolutely positioned within card */
.fcard__phones {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.fcard__phone {
  position: absolute;
  width: auto;
}
.fcard__phone--1 { left: 61.3%; top: 7.4%;  height: 85.1%; z-index: 3; }
.fcard__phone--2 { left: 72.4%; top: 10.9%; height: 80.4%; z-index: 2; filter: drop-shadow(0 4px 20px rgba(0,0,0,0.5)); }
.fcard__phone--3 { left: 82.5%; top: 14%;   height: 75.5%; z-index: 1; }

/* Quadrato — full card background image */
.fcard__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  transition: transform .45s ease;
}

.fcard:hover .fcard__bg { transform: scale(1.04); }

.work__filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
}

.work__filter {
  font-size: 0.5rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: .06em;
  cursor: pointer;
  font-family: var(--font);
  transition: background .2s, border-color .2s, color .2s;
}

.work__filter:hover {
  background: rgba(255,255,255,.06);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.work__filter--active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0D0D0D;
}

.work__filter--active:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.work__more {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.work__all {
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: .02em;
  transition: opacity .2s;
}
.work__all:hover { opacity: .75; }
.work__all--hidden { display: none; }

.work__load-more {
  padding: .75rem 2rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  font-family: var(--font);
  transition: background .2s, border-color .2s, color .2s;
}
.work__load-more:hover {
  background: #a3e635;
  border-color: #a3e635;
  color: #0d0d0d;
}

.pcard--hidden {
  display: none;
}

/* ── Card ── */
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
}
.card__image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--surface-2);
  flex-shrink: 0;
}
.card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.card:hover .card__image img { transform: scale(1.04); }
.card__placeholder { width: 100%; height: 100%; }

/* Featured card */
.card--featured {
  grid-column: span 2;
  flex-direction: row;
}
.card--featured .card__image {
  flex: 0 0 55%;
  aspect-ratio: auto;
  min-height: 240px;
}
.card--featured .card__info {
  flex: 1;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card--featured .card__title { font-size: 1.5rem; }
.card--featured .card__desc  { font-size: 1rem; }

/* SyntropyX cover */
.sx-index-cover {
  background: linear-gradient(135deg, #0B0F1A 0%, #0F172A 40%, #1E1B4B 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.75rem;
}
.sx-index-cover__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  width: 100%;
}
.sx-index-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  padding: 1rem 1rem;
}
.sx-index-card--wide { grid-column: span 2; }
.sx-index-label {
  font-size: 0.5rem;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .25rem;
}
.sx-index-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #F1F5F9;
  letter-spacing: -.02em;
}
.sx-index-value--green { color: #10B981; }
.sx-index-bar {
  height: 3px;
  background: rgba(255,255,255,.1);
  border-radius: 2px;
  margin-top: .5rem;
  overflow: hidden;
}
.sx-index-bar div {
  height: 100%;
  background: #3B82F6;
  border-radius: 2px;
}

/* Boop index cover */
.boop-index-cover {
  background: linear-gradient(145deg, #E4E9F5 0%, #EDF0F8 60%, #E0E6F0 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
}
.boop-index-logo {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: #070707;
  display: flex;
  align-items: center;
}
.boop-index-logo span {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #070707;
  border-radius: 50%;
  margin: 0 2px;
  vertical-align: middle;
  position: relative;
  top: -2px;
}
.boop-index-tag {
  font-size: .75rem;
  color: #6B6B70;
  font-weight: 400;
  text-align: center;
}

/* Card info */
.card__info { padding: 1.25rem; }
.card__tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: .75rem;
  flex-wrap: wrap;
}
.tag {
  font-size: 0.5rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.card__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.card__desc {
  font-size: 1rem;
  color: var(--text-sec);
  line-height: 1.55;
  margin-bottom: 1rem;
}
.card__year {
  font-size: .75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Work marquee ── */
.work-marquee {
  width: 100%;
  overflow: hidden;
  padding: 2.5rem 0;
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.work-marquee__track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.work-marquee__track:hover { animation-play-state: paused; }

.work-marquee__track img {
  height: 180px;
  width: auto;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.06);
}

/* ── Stats bar ── */
.stats-bar {
  border-bottom: 1px solid var(--border);
  padding: 3rem var(--pad) 3rem;
  width: 100%;
  margin-top: 3rem;
}

.stats-bar__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  gap: 6rem;
  align-items: flex-start;
  justify-content: center;
}

.stats-bar__item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stats-bar__value {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--accent);
  line-height: 1;
}

.stats-bar__label {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: .02em;
}

/* ── Process ── */
.process-section {
  border-top: 1px solid var(--border);
  padding: 5rem var(--pad);
}

.process-section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.process__header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 0;
}

.process__heading {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1;
  white-space: nowrap;
  color: var(--text-primary);
}

.process__header-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.process__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-sec);
  white-space: nowrap;
  text-decoration: none;
  transition: color .2s, border-color .2s;
}
.process__cta:hover {
  color: var(--text-primary);
  border-color: var(--accent);
}

.process__list {
  display: flex;
  flex-direction: column;
  margin-top: 2.5rem;
}

.process__row {
  display: grid;
  grid-template-columns: 280px auto 1fr;
  align-items: center;
  gap: 0 2.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.process__row:first-child {
  border-top: 1px solid var(--border);
}

.process__row-left {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.process__num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.15;
  flex-shrink: 0;
  padding-top: .05em;
}

.process__row-label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.process__name {
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.1;
  color: var(--text-primary);
}

.process__sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: .01em;
}

.process__connector {
  height: 1px;
  background: var(--border-strong);
  min-width: 2rem;
}

.process__desc {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-sec);
}

@media (max-width: 900px) {
  .process__row {
    grid-template-columns: 1fr;
    gap: 1.25rem 0;
    padding: 2.5rem 0;
  }
  .process__connector { display: none; }
}

@media (max-width: 600px) {
  .process__header { gap: 1rem; }
  .process__cta { display: none; }
}

/* ── Experience & Education ── */
.exp-section {
  border-top: 1px solid var(--border);
  padding: 6rem var(--pad);
}

.exp-section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.exp-section .section__label {
  margin-bottom: 2.5rem;
}

.exp__layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 5rem;
  align-items: start;
}

.exp__nav {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.exp__tab {
  padding: 1rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .2s;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.exp__tab:hover:not(.exp__tab--active) {
  background: rgba(255,255,255,.04);
}

.exp__tab--active {
  background: var(--accent);
}

.exp__tab-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.exp__tab--active .exp__tab-name {
  color: #0A0A0A;
}

.exp__tab-count {
  font-size: .75rem;
  color: var(--text-muted);
}

.exp__tab--active .exp__tab-count {
  color: rgba(0,0,0,.5);
}

.exp__panel { display: none; }
.exp__panel--active { display: block; }

.exp__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.025em;
  margin-bottom: 2rem;
}

.exp__list {
  display: flex;
  flex-direction: column;
}

.exp__entry {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.exp__entry:first-child {
  padding-top: 0;
}

.exp__role {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.exp__meta {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: .5rem;
}

.exp__desc {
  font-size: 1rem;
  color: var(--text-sec);
  line-height: 1.65;
}

.exp__project {
  color: #fff;
  font-weight: 600;
}

.exp__cv-cta {
  margin-top: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

/* ── Experience Timeline ── */
.exp__timeline {
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
}
.exp__tl-item {
  display: grid;
  grid-template-columns: 160px 24px 1fr;
  gap: 0 1.5rem;
  padding-bottom: 2.25rem;
}
.exp__tl-left {
  text-align: right;
  padding-top: 0.25rem;
}
.exp__tl-period {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.4;
}
.exp__tl-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.exp__tl-line::after {
  content: '';
  position: absolute;
  top: 18px;
  bottom: -2.25rem;
  width: 1px;
  background: rgba(255,255,255,0.08);
}
.exp__tl-item:last-child .exp__tl-line::after { display: none; }
.exp__tl-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #0D0D0D;
  box-shadow: 0 0 8px rgba(169,204,31,0.5);
  flex-shrink: 0;
  margin-top: 4px;
  z-index: 1;
}
.exp__tl-dot--sm {
  width: 8px; height: 8px;
  background: rgba(255,255,255,0.2);
  border-color: transparent;
  box-shadow: none;
}
.exp__tl-dot--edu {
  width: 8px; height: 8px;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.25);
  box-shadow: none;
}
.exp__tl-body { padding-top: 0.1rem; }
.exp__tl-company {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  margin: 0 0 0.2rem;
}
.exp__tl-role {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.exp__tl-type {
  font-size: 0.62rem;
  font-weight: 500;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.35);
}
.exp__tl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 0.75rem;
}
.exp__tl-chips .exp__project:not(:last-child)::after {
  content: ' —';
  color: rgba(255,255,255,0.2);
  font-weight: 400;
  margin-right: 0.4rem;
}
.exp__tl-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
  margin: 0;
}
.exp__tl-divider {
  padding: 0.25rem 0 1.5rem calc(160px + 24px + 3rem);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.18);
}
.exp__cv-cta-tl {
  margin-top: 0.5rem;
  padding-left: calc(160px + 24px + 3rem);
}

@media (max-width: 700px) {
  .exp__tl-item { grid-template-columns: 90px 20px 1fr; gap: 0 1rem; }
  .exp__tl-divider,
  .exp__cv-cta-tl { padding-left: calc(90px + 20px + 2rem); }
}

/* ── About ── */
.section.about {
  max-width: none;
  margin: 0;
}

.about__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 5rem;
  align-items: end;
}

.about__photo {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  filter: grayscale(1) saturate(0);
}

.about__content {
  display: flex;
  flex-direction: column;
}

.about__inner .section__label {
  margin-bottom: 1.5rem;
}

.about__bio {
  color: var(--text-sec);
  font-size: 1rem;
  line-height: 1.8;
}

@media (max-width: 640px) {
  .about__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about__photo {
    height: 320px;
  }
}

/* ── Timeline ── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.timeline__item {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.timeline__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.timeline__role {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.timeline__period {
  font-size: .75rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.timeline__org {
  font-size: 1rem;
  color: var(--text-sec);
}

/* ── Skills ── */
.skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.skills__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.skills__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.skills__list li {
  font-size: 1rem;
  color: var(--text-sec);
  transition: color .15s;
}
.skills__list li:hover { color: var(--text-primary); }

/* ── Contact ── */
.contact {
  text-align: center;
  padding: 7rem var(--pad) 8rem;
  border-top: 1px solid var(--border);
}
.contact__inner { max-width: 580px; margin: 0 auto; }
.contact .section__label { display: inline-block; margin-bottom: 1.25rem; }

.contact__heading {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}
.contact__sub {
  color: var(--text-sec);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}
.contact__socials {
  margin-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  color: var(--text-muted);
  font-size: 1rem;
}
.contact__socials a {
  color: var(--text-sec);
  transition: color .2s;
}
.contact__socials a:hover { color: var(--text-primary); }

/* ── Footer ── */
.footer {
  padding: 2rem var(--pad);
  border-top: 1px solid var(--border);
}
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Scroll animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(48px) scale(.98);
  transition: opacity .75s cubic-bezier(.22,1,.36,1), transform .75s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--stagger, 0ms);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger project cards */
.projects .pcard:nth-child(1) { --stagger: 0ms; }
.projects .pcard:nth-child(2) { --stagger: 120ms; }
.projects .pcard:nth-child(3) { --stagger: 240ms; }
.projects .pcard:nth-child(4) { --stagger: 360ms; }
.projects .pcard:nth-child(5) { --stagger: 480ms; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .work__grid { grid-template-columns: repeat(2, 1fr); }
  .card--featured { flex-direction: column; grid-column: span 2; }
  .card--featured .card__image { flex: none; aspect-ratio: 16/10; min-height: auto; }
  .process__layout { grid-template-columns: 220px 1fr; gap: 3rem; }
  .exp__layout { grid-template-columns: 220px 1fr; gap: 3rem; }
  .pcard__left { flex: 0 0 44%; padding: 2.25rem 2rem; }
}

@media (max-width: 768px) {
  .process__layout { grid-template-columns: 1fr; gap: 2rem; }
  .exp__layout { grid-template-columns: 1fr; gap: 2rem; }

  /* pcard — stack vertically */
  .pcard { flex-direction: column; min-height: auto; }
  .pcard__left { flex: none; padding: 2rem 1.75rem; }
  .pcard__right { aspect-ratio: 16/9; }
  .pcard__num, .fcard__num { display: none; }

  /* fcard — reset absolute layout, stack vertically */
  .fcard {
    flex-direction: column;
    aspect-ratio: unset;
    min-height: auto;
  }
  .fcard__content {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    padding: 1.75rem;
    gap: 16px;
    z-index: 2;
  }
  .fcard__title { font-size: 2rem; }
  .fcard__logo  { width: 120px; }
  .fcard__phones-img {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    height: 200px;
    width: 100%;
    object-fit: contain;
    object-position: center right;
    order: -1;
  }

  .stats-bar { padding: 2rem var(--pad); margin-top: 1.5rem; }
  .stats-bar__inner { gap: 1.75rem 2.5rem; flex-wrap: wrap; justify-content: flex-start; }
  .stats-bar__value { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  .stats-bar__label { font-size: 0.875rem; }
}

@media (max-width: 640px) {
  .work__grid { grid-template-columns: 1fr; }
  .card--featured { grid-column: span 1; flex-direction: column; }
  .card--featured .card__image { aspect-ratio: 16/10; flex: none; min-height: auto; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .skills { grid-template-columns: repeat(2, 1fr); }
  .nav__links { gap: 1.25rem; font-size: 0.75rem; }
  .footer__inner { flex-direction: column; gap: .5rem; text-align: center; }
  .hero { padding-top: 7rem; }
  .stats-bar__inner { flex-direction: column; gap: 1.5rem; }
  .stats-bar__item { flex-direction: row; align-items: baseline; gap: 0.6rem; }
  .stats-bar__value { font-size: clamp(1.5rem, 8vw, 2rem); }
  .pcard__num, .fcard__num { display: none; }
}


/* ── AI-Augmented shimmer reveal ── */
@keyframes ai-shimmer {
  0%   { background-position: 100% center; }
  100% { background-position: 0% center; }
}

.hero__ai-label {
  display: block;
  font-size: 0.38em;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 2;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.88) 0%,
    rgba(255,255,255,0.88) 30%,
    rgba(255,255,255,1)    44%,
    #A9CC1F                50%,
    rgba(255,255,255,1)    56%,
    rgba(255,255,255,0.28) 70%,
    rgba(255,255,255,0.28) 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: ai-shimmer 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 0.8s;
}
