/* ==========================================================
   Jithendra Mouli — Premium Portfolio
   Dark · Purple accent · Minimal · Premium
   ========================================================== */

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

:root {
  /* ----- Palette (deep dark + purple) ----- */
  --bg:        #0a0814;
  --bg-soft:   #0d0b1a;
  --bg-alt:    #0c0a18;
  --surface:   #15111f;
  --surface-2: #1a1528;
  --surface-3: #221a33;

  --border:        rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(167, 139, 250, 0.28);

  --text:       #ebe9f5;
  --text-muted: #9990ad;
  --text-soft:  #6c6580;
  --text-dim:   #4a4560;

  --accent:        #a78bfa;
  --accent-strong: #8b5cf6;
  --accent-soft:   #c4b5fd;
  --accent-glow:   rgba(167, 139, 250, 0.4);

  --gradient:        linear-gradient(135deg, #a78bfa 0%, #8b5cf6 50%, #c084fc 100%);
  --gradient-soft:   linear-gradient(135deg, rgba(167,139,250,0.15), rgba(139,92,246,0.05));

  /* ----- Layout ----- */
  --container: 1200px;
  --radius:     16px;
  --radius-sm:  10px;
  --radius-lg:  22px;
  --radius-pill: 999px;

  /* ----- Type ----- */
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Syne', var(--font);

  /* ----- Motion ----- */
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  letter-spacing: -0.005em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

::selection { background: var(--accent-strong); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-strong); }

/* ==========================================================
   AMBIENT BACKGROUND
   ========================================================== */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.45;
  will-change: transform;
}
.ambient__orb--1 {
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(167,139,250,0.5), transparent 70%);
  top: -200px; right: -180px;
  animation: float 24s ease-in-out infinite;
}
.ambient__orb--2 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(139,92,246,0.32), transparent 70%);
  bottom: -160px; left: -140px;
  animation: float 30s ease-in-out infinite reverse;
}
.ambient__orb--3 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.12), transparent 72%);
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.35;
  animation: none;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(40px, -30px) scale(1.08); }
}
.ambient__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 0%, transparent 80%);
}

.ambient__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
@media (prefers-reduced-motion: reduce) {
  .ambient__grain { opacity: 0.035; }
}

/* ==========================================================
   SCROLL PROGRESS
   ========================================================== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--gradient);
  z-index: 100;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ==========================================================
   JOURNEY RAIL (wide screens — scroll story)
   ========================================================== */
.journey-rail {
  display: none;
  position: fixed;
  z-index: 42;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.5rem 0;
}
.journey-rail__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  position: relative;
}
.journey-rail__nav::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  bottom: 6px;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, rgba(167, 139, 250, 0.35), rgba(167, 139, 250, 0.15), transparent);
  border-radius: 1px;
  pointer-events: none;
}
.journey-rail__stop {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.35s var(--ease-out), background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.35s var(--ease);
  flex-shrink: 0;
}
.journey-rail__stop:hover,
.journey-rail__stop:focus-visible {
  outline: none;
  background: rgba(167, 139, 250, 0.25);
  border-color: rgba(167, 139, 250, 0.55);
  transform: scale(1.15);
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.12);
}
.journey-rail__stop.is-active {
  background: var(--gradient);
  border-color: transparent;
  transform: scale(1.35);
  box-shadow: 0 0 16px rgba(167, 139, 250, 0.45);
}
@media (min-width: 1280px) {
  .journey-rail { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .journey-rail__stop { transition: none; }
}

/* ==========================================================
   LAYOUT
   ========================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}
.section--alt {
  background: linear-gradient(180deg, transparent 0%, var(--bg-alt) 10%, var(--bg-alt) 90%, transparent 100%);
}

/* Clear vertical rhythm between hero and content sections */
main > .section {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section__head {
  margin-bottom: 3.5rem;
  max-width: 740px;
  position: relative;
  padding-left: 1.1rem;
}
.section__head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15rem;
  bottom: 0.15rem;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent-strong), rgba(139, 92, 246, 0.15));
  opacity: 0.25;
  transform: scaleY(0.35);
  transform-origin: top center;
  transition: transform 0.85s var(--ease-out), opacity 0.6s var(--ease);
}
.section.is-visible .section__head::before {
  opacity: 0.9;
  transform: scaleY(1);
}
.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.section__eyebrow span {
  color: var(--text-soft);
  padding: 0.18rem 0.55rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 0.7rem;
  font-weight: 600;
}
.section__eyebrow--center { display: flex; justify-content: center; }

.section__title {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #cdc6e3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section__title--center { text-align: center; }

.section__lead {
  margin-top: 1.25rem;
  color: var(--text-soft);
  font-size: 1rem;
  max-width: 34rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
}
.section__lead kbd {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.82em;
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
}

/* ==========================================================
   BUTTONS
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
  position: relative;
}
.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 6px 20px -6px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn--ghost {
  background: rgba(255,255,255,0.025);
  color: var(--text);
  border-color: var(--border-strong);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}
.btn--pill {
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.15rem;
  font-size: 0.85rem;
  background: rgba(167,139,250,0.08);
  border: 1px solid var(--border-accent);
  color: var(--text);
}
.btn--pill:hover {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 20px -6px var(--accent-glow);
}
.btn--pill .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(167,139,250,0.18);
}

/* ==========================================================
   NAV
   ========================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 8, 20, 0.7);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(10, 8, 20, 0.88);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 1rem;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}
.nav__logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: var(--gradient);
  color: #fff;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px -4px var(--accent-glow);
}
.nav__logo-name { color: var(--text); }

.nav__links {
  display: none;
  gap: 0.25rem;
  flex: 1;
  justify-content: center;
}
.nav__links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
  transition: all 0.25s var(--ease);
}
.nav__links a:hover,
.nav__links a.is-active {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}

.nav__cta { display: none; }

.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 0 10px;
}
.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
  background: rgba(10, 8, 20, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  max-height: calc(100vh - 76px);
  overflow-y: auto;
  animation: slideDown 0.28s var(--ease-out);
}
.nav__mobile[hidden] { display: none !important; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav__mobile a {
  padding: 1rem 0.5rem;
  color: var(--text-muted);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}
.nav__mobile a:hover,
.nav__mobile a:focus-visible {
  color: var(--accent);
  padding-left: 0.85rem;
}
.nav__mobile a:last-child {
  margin-top: 0.85rem;
  border: none;
  justify-content: center;
}

/* ==========================================================
   HERO
   ========================================================== */
/* ==========================================================
   HERO (FIXED PREMIUM VERSION)
   ========================================================== */

.hero {
  position: relative;
  padding: 4rem 0 6rem;
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

/* LEFT CONTENT */
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 660px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(167,139,250,0.18);
  animation: pulse 2.2s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(167,139,250,0.18); }
  50%      { box-shadow: 0 0 0 7px rgba(167,139,250,0.04); }
}

.hero__title {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  font-weight: 800;
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.045em;
  margin-bottom: 1.75rem;
  color: var(--text);
}
.hero__title .line {
  display: block;
  overflow: hidden;
}
.hero__title-accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__title-shimmer {
    background: linear-gradient(
      105deg,
      #f4f2ff 0%,
      #ebe9f5 38%,
      #ffffff 50%,
      #ebe9f5 62%,
      #d4cef0 100%
    );
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: heroShimmer 7s ease-in-out infinite;
  }
}
@keyframes heroShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero__kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: -0.85rem;
  margin-bottom: 1.35rem;
  max-width: 36rem;
  line-height: 1.5;
  opacity: 0.92;
}

.hero__tagline {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 1rem;
  line-height: 1.7;
}
.hero__tagline strong { color: var(--accent); font-weight: 600; }

.hero__positioning {
  position: relative;
  display: inline-block;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--text);
  background: linear-gradient(135deg, rgba(167,139,250,0.10), rgba(124,58,237,0.06));
  border: 1px solid rgba(167,139,250,0.22);
  border-radius: 999px;
  padding: 0.55rem 1rem 0.55rem 2rem;
  margin-bottom: 2.5rem;
  line-height: 1.4;
}
.hero__positioning::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(167,139,250,0.18);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.hero__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}
.hero__contacts a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color 0.2s var(--ease);
}
.hero__contacts a:hover { color: var(--accent); }
.hero__contacts svg { color: var(--accent); flex-shrink: 0; }
.hero__contacts .hero__contact-icon span {
  font-size: 0.88rem;
}

/* RIGHT SIDE — CORE FIX */
.hero__media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;

  /* space for floating stats */
  padding-right: 160px;

  min-height: 520px;
}

/* PORTRAIT CONTAINER */
.hero__portrait {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 5;

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

  z-index: 2;
}

/* SOFT HALO GLOW (FIXED) */
.hero__portrait-glow {
  position: absolute;

  width: 130%;
  height: 130%;

  left: 55%;
  top: 45%;
  transform: translate(-50%, -50%);

  background: radial-gradient(
    circle,
    rgba(167,139,250,0.35) 0%,
    rgba(139,92,246,0.25) 30%,
    rgba(124,58,237,0.1) 55%,
    transparent 75%
  );

  filter: blur(25px);
  opacity: 0.9;

  z-index: 1;
  pointer-events: none;
  animation: glowPulse 8s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.9; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.04); }
}

/* IMAGE BLENDING FIX — aggressive feather, no hard box visible */
.hero__portrait img {
  position: relative;
  z-index: 2;

  width: 100%;
  height: 100%;
  object-fit: cover;

  /* better framing */
  object-position: center 12%;

  /* darken slightly so studio gray blends into dark theme */
  filter: brightness(0.88) contrast(1.05) saturate(1.05);

  /* Tight ellipse mask: man stays solid in the centre, edges and
     corners dissolve completely into the purple halo / dark bg */
  -webkit-mask-image: radial-gradient(
    ellipse 58% 78% at 50% 45%,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 32%,
    rgba(0,0,0,0.75) 55%,
    rgba(0,0,0,0.30) 78%,
    transparent 100%
  );
          mask-image: radial-gradient(
    ellipse 58% 78% at 50% 45%,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,1) 32%,
    rgba(0,0,0,0.75) 55%,
    rgba(0,0,0,0.30) 78%,
    transparent 100%
  );
}

/* FLOATING STATS CARD (FIXED) */
.hero__stats {
  position: absolute;

  right: 0;
  top: 50%;
  transform: translateY(-50%);

  width: 180px;

  display: flex;
  flex-direction: column;
  gap: 1.2rem;

  padding: 1.5rem;

  background: rgba(21, 17, 31, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);

  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.7);

  z-index: 3;
}

/* STATS TEXT */
.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero__stat strong {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;

  background: linear-gradient(135deg, #a78bfa, #8b5cf6);
  -webkit-background-clip: text;
  color: transparent;
}

.hero__stat span {
  font-size: 0.75rem;
  color: var(--text-soft);
}

/* ==========================================================
   ABOUT
   ========================================================== */
.about {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
  align-items: start;
}

.about__lead {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
  line-height: 1.35;
}
.about__micro {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0 0 1.35rem;
  line-height: 1.5;
}
.about__hint {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
  border-left: 2px solid rgba(167, 139, 250, 0.35);
  padding-left: 1rem;
  margin: 1.35rem 0 1.15rem;
}
.about__hint a {
  color: var(--accent);
  font-style: normal;
  font-weight: 500;
  text-decoration: none;
}
.about__hint a:hover { text-decoration: underline; }
.about__text p {
  color: var(--text-muted);
  margin-bottom: 1.15rem;
  font-size: 1.02rem;
  line-height: 1.75;
}
.about__text strong { color: var(--text); font-weight: 600; }

.focus-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.focus {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.3s var(--ease);
}
.focus:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -16px rgba(0,0,0,0.5);
}
.focus__icon {
  width: 42px; height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-soft);
  border: 1px solid var(--border-accent);
  border-radius: 10px;
  color: var(--accent);
  margin-bottom: 1rem;
}
.focus h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
  letter-spacing: -0.015em;
}
.focus p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ==========================================================
   SKILLS
   ========================================================== */
.skills {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
.skill-group {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.skill-group:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}
.skill-group h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  letter-spacing: -0.01em;
}
.skill-group h3::before {
  content: '';
  display: block;
  width: 6px; height: 6px;
  background: var(--gradient);
  border-radius: 50%;
}

/* ----- Chips ----- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.chips li {
  font-size: 0.82rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  transition: all 0.2s var(--ease);
}
.chips li:hover {
  color: var(--text);
  border-color: var(--border-accent);
  background: rgba(167,139,250,0.06);
  transform: translateY(-1px);
}
@media (prefers-reduced-motion: no-preference) {
  .skill-group.is-visible .chips li {
    animation: chipRise 0.55s var(--ease-out) backwards;
  }
  .skill-group.is-visible .chips li:nth-child(1) { animation-delay: 0.02s; }
  .skill-group.is-visible .chips li:nth-child(2) { animation-delay: 0.05s; }
  .skill-group.is-visible .chips li:nth-child(3) { animation-delay: 0.08s; }
  .skill-group.is-visible .chips li:nth-child(4) { animation-delay: 0.11s; }
  .skill-group.is-visible .chips li:nth-child(5) { animation-delay: 0.14s; }
  .skill-group.is-visible .chips li:nth-child(6) { animation-delay: 0.17s; }
  .skill-group.is-visible .chips li:nth-child(7) { animation-delay: 0.2s; }
  .skill-group.is-visible .chips li:nth-child(8) { animation-delay: 0.23s; }
  .skill-group.is-visible .chips li:nth-child(9) { animation-delay: 0.26s; }
  .skill-group.is-visible .chips li:nth-child(10) { animation-delay: 0.29s; }
  .skill-group.is-visible .chips li:nth-child(n + 11) { animation-delay: 0.32s; }
}
@keyframes chipRise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.chips--accent li {
  background: var(--gradient-soft);
  border-color: var(--border-accent);
  color: var(--accent-soft);
}
.chips--small li { font-size: 0.74rem; padding: 0.25rem 0.55rem; }

/* ==========================================================
   TIMELINE
   ========================================================== */
.timeline {
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid var(--border);
}
.timeline__item {
  position: relative;
  padding-bottom: 2.5rem;
}
.timeline__item:last-child { padding-bottom: 0; }

.timeline__marker {
  position: absolute;
  left: -1.5rem;
  top: 0.5rem;
  transform: translateX(-50%);
  width: 14px; height: 14px;
  background: var(--bg);
  border: 2px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(167,139,250,0.15), 0 0 12px var(--accent-glow);
}

.timeline__content {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.timeline__content:hover {
  border-color: var(--border-accent);
  transform: translateX(4px);
}
.timeline__head { margin-bottom: 1.25rem; }
.timeline__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  padding: 0.25rem 0.6rem;
  border-radius: 5px;
  border: 1px solid rgba(34,197,94,0.25);
  margin-bottom: 0.85rem;
}
.timeline__head h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.timeline__meta {
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.timeline__date {
  color: var(--text-soft);
  font-size: 0.82rem;
}
.timeline__list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  font-size: 0.93rem;
  line-height: 1.58;
}
.timeline__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.65em;
  width: 8px; height: 1px;
  background: var(--accent);
}
.timeline__list strong { color: var(--text); font-weight: 600; }

/* ==========================================================
   PROJECTS
   ========================================================== */
.projects {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
.project {
  position: relative;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.85rem;
  transition: all 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  overflow: hidden;
}
.project::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.project::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(167,139,250,0.07), transparent 40%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.project:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px rgba(0,0,0,0.6);
}
.project:hover::before { transform: scaleX(1); }
.project:hover::after  { opacity: 1; }

.project--flagship {
  border-color: var(--border-accent);
  background:
    linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%),
    radial-gradient(120% 120% at 0% 0%, rgba(167,139,250,0.08), transparent 50%);
}
.project--flagship::before { transform: scaleX(1); }

.project__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
}
.project__head-left {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.project__flag {
  background: var(--gradient);
  color: #fff;
  padding: 0.3rem 0.65rem;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  font-size: 0.7rem;
  box-shadow: 0 4px 10px -4px var(--accent-glow);
}
.project__platform {
  background: rgba(167,139,250,0.08);
  color: var(--accent);
  padding: 0.28rem 0.65rem;
  border-radius: 5px;
  border: 1px solid var(--border-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  font-size: 0.72rem;
}
.project__date { color: var(--text-soft); }

.project__title {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--text);
}
.project__summary {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

/* ----- Expandable case study ----- */
.project__case {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease-out);
}
.project__case > * {
  overflow: hidden;
  min-height: 0;
}
.project[data-expanded="true"] .project__case {
  grid-template-rows: 1fr;
}
.project__case > div {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 0.5rem;
}
.project[data-expanded="true"] .project__case > div { padding-top: 0.75rem; }

.project__case-block {
  border-left: 2px solid var(--border);
  padding: 0.25rem 0 0.25rem 1.1rem;
  transition: border-color 0.25s var(--ease);
}
.project__case-block:hover { border-left-color: var(--accent); }
.project__case-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.project__case-block p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}
.project__case-block ul {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.project__case-block ul li {
  position: relative;
  padding-left: 1.3rem;
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.55;
}
.project__case-block ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.project__expand {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.25rem;
  padding: 0.55rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.25s var(--ease);
}
.project__expand:hover {
  background: var(--surface-2);
  border-color: var(--accent);
  color: var(--accent-soft);
}
.project__expand svg { transition: transform 0.3s var(--ease); }
.project__expand .project__expand-close { display: none; }
.project[data-expanded="true"] .project__expand svg { transform: rotate(180deg); }
.project[data-expanded="true"] .project__expand-open  { display: none; }
.project[data-expanded="true"] .project__expand-close { display: inline; }

/* ==========================================================
   CONTACT
   ========================================================== */
.section--contact {
  text-align: center;
  padding-bottom: 7rem;
}
.section--contact .section__head { margin-left: auto; margin-right: auto; }

.contact__lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 1.5rem auto 2.5rem;
  line-height: 1.65;
}
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 3rem;
}
.socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: all 0.25s var(--ease);
}
.socials a:hover {
  color: #fff;
  border-color: var(--accent);
  background: var(--surface-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px var(--accent-glow);
}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  background: var(--bg-soft);
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-soft);
}
.footer__top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color 0.2s var(--ease);
}
.footer__top:hover { color: var(--accent); }
.footer__top:hover svg { transform: translateY(-2px); }
.footer__top svg { transition: transform 0.25s var(--ease); }

/* ==========================================================
   REVEAL ANIMATIONS
   ========================================================== */
.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.hero__title .line {
  transform: translateY(110%);
  transition: transform 0.95s var(--ease-out);
}
.hero__title .line.is-visible { transform: translateY(0); }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-up, .hero__title .line { opacity: 1; transform: none; }
  .ambient__orb, .hero__portrait-glow { animation: none; }
  .hero__title-shimmer {
    animation: none !important;
    background: linear-gradient(180deg, #ffffff 0%, #ebe9f5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .section__head::before {
    opacity: 0.75;
    transform: scaleY(1);
  }
}

/* ==========================================================
   RESPONSIVE — MOBILE FIRST
   ========================================================== */

/* ---------- MOBILE (<880px): override desktop hero defaults ---------- */
@media (max-width: 879px) {
  .hero {
    min-height: auto;
    padding: 2.5rem 0 4rem;
  }
  .hero__grid { gap: 2rem; }
  .hero__title { font-size: clamp(2rem, 8vw, 2.6rem); }
  .hero__kicker {
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
  }
  .hero__tagline { font-size: 0.97rem; margin-bottom: 0.85rem; }
  .hero__positioning {
    font-size: 0.78rem;
    padding: 0.5rem 0.9rem 0.5rem 1.85rem;
    margin-bottom: 2rem;
  }
  .hero__cta { gap: 0.65rem; margin-bottom: 2rem; }
  .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
  .hero__contacts {
    flex-direction: column;
    gap: 0.85rem;
    padding-top: 1.5rem;
  }
  .hero__contacts a span { font-size: 0.85rem; }

  /* ---- the critical mobile hero fix ---- */
  .hero__media {
    padding-right: 0 !important;
    min-height: auto;
    flex-direction: column;
    gap: 1.75rem;
  }
  .hero__portrait {
    max-width: 280px;
  }
  .hero__portrait-glow { width: 130%; height: 130%; }
  .hero__stats {
    position: static;
    transform: none;
    width: 100%;
    max-width: 380px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem 2rem;
    padding: 1.4rem 1.5rem;
  }
  .hero__stat { gap: 0.15rem; }
  .hero__stat strong { font-size: 1.5rem; }
  .hero__stat span { font-size: 0.72rem; }

  /* tighter section spacing on phones */
  .section { padding: 4.5rem 0; }
  .section__head { margin-bottom: 2.5rem; }
  .section__title { font-size: clamp(1.65rem, 6vw, 2.1rem); }
  .section__lead { font-size: 0.95rem; }

  /* about + cards stack cleanly */
  .about { gap: 2.5rem; }
  .about__lead { font-size: 1.05rem; }
  .about__micro { font-size: 0.72rem; letter-spacing: 0.03em; }
  .focus-grid { gap: 1rem; }
  .focus { padding: 1.5rem; }

  /* timeline tighter on mobile */
  .timeline__item { padding-left: 2.25rem; padding-bottom: 2.5rem; }
  .timeline__content { padding: 1.5rem; }
  .timeline__head { display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .timeline__list li { font-size: 0.92rem; }

  /* projects + chips */
  .project { padding: 1.5rem; }
  .skill-group { padding: 1.5rem; }
  .chips { gap: 0.4rem; }
}

/* ---------- TABLET ---------- */
@media (min-width: 640px) {
  .container { padding: 0 2rem; }
  .skills { grid-template-columns: repeat(2, 1fr); }
  .focus-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { flex-direction: row; }
}

/* ---------- DESKTOP NAV ---------- */
@media (min-width: 880px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
  .nav__mobile { display: none !important; }

  .section { padding: 7.5rem 0; }
  .section__head { margin-bottom: 4rem; }
}

/* ---------- LARGE DESKTOP ---------- */
@media (min-width: 980px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
  }

  .about { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .focus-grid { grid-template-columns: 1fr 1fr; }
  .skills { grid-template-columns: repeat(3, 1fr); }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .project--flagship { grid-column: span 2; }
}

/* ==========================================================
   STACK STRIP + PLAYGROUND
   ========================================================== */

.section.stack-strip {
  padding: 3.25rem 0 3.75rem;
  overflow: hidden;
  position: relative;
}
@media (min-width: 880px) {
  .section.stack-strip { padding: 3.5rem 0 4.25rem; }
}

.stack-strip__ambient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(80% 120% at 50% 0%, rgba(167, 139, 250, 0.14), transparent 55%);
  background-size: 28px 28px, 28px 28px, auto;
  pointer-events: none;
}

.stack-strip__label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 1.75rem;
  text-align: center;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}
.stack-strip__label a {
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.06em;
}
.stack-strip__label a:hover { text-decoration: underline; }

.stack-strip__brands {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 2.25rem 3.5rem;
  perspective: 1100px;
  transform-style: preserve-3d;
  transform: translate3d(0, var(--scroll-shift, 0px), 0) rotateX(var(--scroll-tilt, 0deg));
  will-change: transform;
}

.stack-strip__brand {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  cursor: default;
  transition: transform 0.35s var(--ease);
  transform: translateY(calc(var(--scroll-shift, 0px) * var(--d, 0.4) * -0.32));
}
.stack-strip__brand:hover {
  transform: translateY(calc(var(--scroll-shift, 0px) * var(--d, 0.4) * -0.32 - 5px)) scale(1.04);
}
.stack-strip__brand--mule:hover .stack-strip__brand-frame {
  box-shadow:
    0 0 0 1px rgba(0, 162, 223, 0.45),
    0 0 24px -4px rgba(0, 162, 223, 0.35),
    0 16px 40px -12px rgba(0, 162, 223, 0.25);
}
.stack-strip__brand--sf:hover .stack-strip__brand-frame {
  box-shadow:
    0 0 0 1px rgba(0, 161, 224, 0.5),
    0 0 24px -4px rgba(0, 161, 224, 0.4),
    0 16px 40px -12px rgba(0, 161, 224, 0.3);
}
.stack-strip__brand--workato:hover .stack-strip__brand-frame {
  box-shadow:
    0 0 0 1px rgba(0, 213, 210, 0.5),
    0 0 28px -4px rgba(0, 213, 210, 0.35),
    0 16px 40px -12px rgba(0, 213, 210, 0.22);
}

.stack-strip__halo {
  position: absolute;
  inset: -14px -10px;
  border-radius: 24px;
  background: radial-gradient(circle at 50% 35%, rgba(167, 139, 250, 0.22), transparent 68%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  z-index: 0;
  pointer-events: none;
}
.stack-strip__brand:hover .stack-strip__halo {
  opacity: 1;
}

.stack-strip__brand-frame {
  position: relative;
  z-index: 1;
  padding: 0.45rem;
  border-radius: 22px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.09), rgba(0, 0, 0, 0.32));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 32px -18px rgba(0, 0, 0, 0.55);
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

/* App-icon tiles: unified dark mat so marks read like Workato (no white “sticker”) */
.stack-strip__logo-tile {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(165deg, #26262c 0%, #161618 48%, #0e0e11 100%);
  box-sizing: border-box;
  isolation: isolate;
  transition: filter 0.4s var(--ease), transform 0.35s var(--ease);
}

.stack-strip__logo-img {
  display: block;
  width: 76px;
  height: 76px;
  object-fit: contain;
}

/* Brand glow on the whole tile (reads clearly on dark UI) */
.stack-strip__brand--sf .stack-strip__logo-tile {
  filter:
    drop-shadow(0 0 5px rgba(0, 161, 224, 0.5))
    drop-shadow(0 0 14px rgba(0, 161, 224, 0.28));
}
.stack-strip__brand--sf:hover .stack-strip__logo-tile {
  filter:
    drop-shadow(0 0 9px rgba(0, 161, 224, 0.9))
    drop-shadow(0 0 22px rgba(0, 161, 224, 0.48))
    drop-shadow(0 0 36px rgba(0, 161, 224, 0.2));
}

.stack-strip__brand--mule .stack-strip__logo-tile {
  filter:
    drop-shadow(0 0 5px rgba(0, 162, 223, 0.5))
    drop-shadow(0 0 14px rgba(0, 162, 223, 0.28));
}
.stack-strip__brand--mule:hover .stack-strip__logo-tile {
  filter:
    drop-shadow(0 0 9px rgba(0, 162, 223, 0.9))
    drop-shadow(0 0 22px rgba(0, 162, 223, 0.45))
    drop-shadow(0 0 36px rgba(0, 162, 223, 0.18));
}

.stack-strip__brand--workato .stack-strip__logo-tile {
  filter:
    drop-shadow(0 0 6px rgba(0, 213, 210, 0.55))
    drop-shadow(0 0 16px rgba(0, 213, 210, 0.32));
}
.stack-strip__brand--workato:hover .stack-strip__logo-tile {
  filter:
    drop-shadow(0 0 10px rgba(0, 213, 210, 0.95))
    drop-shadow(0 0 24px rgba(0, 213, 210, 0.5))
    drop-shadow(0 0 40px rgba(0, 213, 210, 0.22));
}

@media (prefers-reduced-motion: reduce) {
  .stack-strip__logo-tile {
    transition: none;
  }
  .stack-strip__brands {
    transform: translate3d(0, 0, 0);
    perspective: none;
  }
}

.stack-strip__name {
  position: relative;
  z-index: 1;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}

/* Hero resume button row */
.hero__cta--resumes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.75rem;
}
.hero__resume-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.btn--compact {
  padding: 0.82rem 1.05rem;
  font-size: 0.86rem;
}

/* Route Rush game */
.route-game {
  max-width: 440px;
  margin: 0 auto;
  padding: 1.5rem 1.35rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(21, 17, 31, 0.96), rgba(12, 10, 22, 0.99));
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.65);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.route-game.is-hit {
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.2), 0 24px 48px -22px rgba(34, 197, 94, 0.12);
}
.route-game.is-miss {
  border-color: rgba(248, 113, 113, 0.35);
}

.route-game__hud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.route-game__hud strong {
  color: var(--text);
  font-weight: 700;
}
.route-game__hud .btn {
  margin-right: auto;
}

.route-game__arena {
  position: relative;
  height: 280px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-bottom: 1rem;
  outline: none;
}
.route-game__arena:focus-visible {
  box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.45);
}

.route-game__lanes {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  pointer-events: none;
  opacity: 0.5;
}
.route-game__lanes > div {
  border-right: 1px dashed rgba(255, 255, 255, 0.06);
}
.route-game__lanes > div:last-child {
  border-right: none;
}

.route-game__catchline {
  position: absolute;
  left: 0;
  right: 0;
  top: 68%;
  height: 14%;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.18), transparent);
  border-top: 1px solid rgba(167, 139, 250, 0.45);
  border-bottom: 1px solid rgba(167, 139, 250, 0.45);
  box-shadow: 0 0 24px rgba(167, 139, 250, 0.15);
  pointer-events: none;
}

.route-game__packets {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.route-game__packet {
  position: absolute;
  width: 30px;
  height: 30px;
  margin-left: -15px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, #a78bfa 45%, #5b21b6);
  box-shadow: 0 0 14px rgba(167, 139, 250, 0.75);
  will-change: transform;
}

.route-game__controls {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.route-game__tap {
  font-size: 0.82rem;
  padding: 0.75rem 0.5rem;
}
.route-game__kbd {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.08rem 0.35rem;
  font-size: 0.68rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
}

.route-game__feedback {
  min-height: 1.35rem;
  font-size: 0.86rem;
  color: var(--accent);
  margin: 0;
  text-align: center;
}

@media (max-width: 879px) {
  .stack-strip__brands {
    gap: 1.5rem 2rem;
  }
  .hero__resume-btns {
    width: 100%;
    justify-content: flex-start;
  }
  .route-game__arena {
    height: 240px;
  }
}

/* ==========================================================
   PROFESSIONAL POLISH
   ========================================================== */

/* Smoother focus ring for keyboard nav */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Primary button: subtle shimmer on hover */
.btn--primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.7s var(--ease-out);
  pointer-events: none;
  z-index: 1;
}
.btn--primary:hover::after { transform: translateX(100%); }
.btn--primary > * { position: relative; z-index: 2; }

/* Card lift on hover (focus, project, skill, timeline) */
.focus, .project, .skill-group, .timeline__content {
  transition:
    transform 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    background 0.35s var(--ease-out);
}
.focus:hover, .skill-group:hover, .timeline__content:hover {
  transform: translateY(-3px);
  border-color: var(--border-accent);
  box-shadow: 0 18px 40px -22px rgba(167, 139, 250, 0.25);
}

/* Gradient text utility for callouts */
.hero__tagline strong {
  background: var(--gradient);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  font-weight: 600;
}

/* Refine nav on scroll: stronger blur + thinner border */
.nav.is-scrolled {
  background: rgba(10, 8, 20, 0.85);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
}

/* Smooth image load */
img { opacity: 1; transition: opacity 0.4s var(--ease); }
img[loading="lazy"] { opacity: 0; }
img[loading="lazy"].is-loaded,
img.is-loaded { opacity: 1; }

/* Prevent any horizontal overflow on tiny screens */
html, body { overflow-x: hidden; }

/* Better tap targets on touch devices */
@media (hover: none) {
  .btn, .nav__mobile a, .hero__contacts a { min-height: 44px; }
}
