/* ═══════════════════════════════════════════════════════
   Brian Ken Raviz — Portfolio V3
   Cinematic dark luxury — electric blue + indigo on deep space black
   Clash Display (display) + Satoshi (body) via Fontshare
═══════════════════════════════════════════════════════ */

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

:root {
  /* Palette */
  --c-bg:       #050508;
  --c-bg2:      #0a0a12;
  --c-surface:  #0f0f1a;
  --c-border:   rgba(255,255,255,0.07);
  --c-blue:     #0ea5e9;
  --c-indigo:   #6366f1;
  --c-purple:   #8b5cf6;
  --c-orange:   #f97316;
  --c-green:    #22c55e;
  --c-gold:     #f59e0b;
  --c-text:     #e2e8f0;
  --c-muted:    #64748b;
  --c-dim:      rgba(226,232,240,0.55);

  /* Gradients */
  --g-blue:     linear-gradient(135deg,#0ea5e9,#6366f1);
  --g-glow-b:   radial-gradient(ellipse 60% 60% at 50% 50%, rgba(14,165,233,0.35), transparent);
  --g-glow-p:   radial-gradient(ellipse 60% 60% at 50% 50%, rgba(99,102,241,0.35), transparent);

  /* Type */
  --f-display:  'Clash Display', system-ui, sans-serif;
  --f-body:     'Satoshi', system-ui, sans-serif;

  /* Spacing */
  --max-w: 1240px;
  --sec-py: 7rem;

  /* Motion */
  --ease-out: cubic-bezier(.22,1,.36,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── CANVAS PARTICLE BG ─── */
#cvs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .45;
}

/* ─── CUSTOM CURSOR ─── */
.cur-ring, .cur-dot {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: opacity .3s;
}
.cur-ring {
  width: 36px; height: 36px;
  border: 1.5px solid var(--c-blue);
  transition: width .25s var(--ease-out), height .25s var(--ease-out),
              border-color .25s, transform .1s linear;
  mix-blend-mode: screen;
}
.cur-dot {
  width: 6px; height: 6px;
  background: var(--c-blue);
  box-shadow: 0 0 8px var(--c-blue);
}
body:has(a:hover) .cur-ring,
body:has(button:hover) .cur-ring {
  width: 52px; height: 52px;
  border-color: var(--c-indigo);
}

/* ─── SCROLL PROGRESS ─── */
.scroll-prog {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--g-blue);
  z-index: 9998;
  transition: width .1s linear;
}

/* ─── CONTAINER ─── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* ─── SECTION COMMONS ─── */
.section {
  padding: var(--sec-py) 0;
  position: relative;
}
.sec-eyebrow {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-blue);
  margin-bottom: 1rem;
}
.sec-h2 {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.25rem;
}
.sec-h2 em {
  font-style: normal;
  background: var(--g-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sec-p {
  color: var(--c-dim);
  max-width: 56ch;
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

/* ═══════════════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(5,5,8,0.6);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--c-border);
  transition: background .3s;
}
.nav.scrolled { background: rgba(5,5,8,0.92); }
.nav-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .95rem;
  color: #fff;
  letter-spacing: .02em;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  margin-left: auto;
}
.nav-links a {
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  color: var(--c-muted);
  letter-spacing: .04em;
  transition: color .2s;
}
.nav-links a:hover { color: #fff; }
.nav-hire {
  text-decoration: none;
  font-size: .85rem;
  font-weight: 600;
  padding: .5rem 1.25rem;
  border-radius: 9999px;
  background: var(--g-blue);
  color: #fff;
  letter-spacing: .04em;
  transition: opacity .2s, transform .2s;
  flex-shrink: 0;
}
.nav-hire:hover { opacity: .85; transform: translateY(-1px); }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mob-menu {
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: rgba(10,10,18,0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  border-bottom: 1px solid var(--c-border);
  transform: translateY(-110%);
  transition: transform .35s var(--ease-out);
  padding: 1.5rem 2rem 2rem;
}
.mob-menu.open {
  transform: translateY(0);
}
.mob-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.mob-lnk {
  text-decoration: none;
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-text);
  transition: color .2s;
}
.mob-lnk:hover { color: var(--c-blue); }
.mob-hire {
  display: inline-block;
  margin-top: .5rem;
  padding: .75rem 2rem;
  background: var(--g-blue);
  border-radius: 9999px;
  color: #fff !important;
  font-size: 1rem !important;
  font-family: var(--f-body) !important;
  font-weight: 600 !important;
}

/* ═══════════════════════════════════════════════════════
   HERO — cinematic split
═══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px;
}

/* Ambient orbs */
.hero-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.amb-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .45;
}
.amb-1 {
  width: 700px; height: 700px;
  top: -200px; left: -150px;
  background: radial-gradient(circle, rgba(14,165,233,.5), transparent 70%);
  animation: orbFloat1 18s ease-in-out infinite;
}
.amb-2 {
  width: 600px; height: 600px;
  bottom: -200px; right: -100px;
  background: radial-gradient(circle, rgba(99,102,241,.45), transparent 70%);
  animation: orbFloat2 22s ease-in-out infinite;
}
.amb-3 {
  width: 400px; height: 400px;
  top: 40%; left: 50%;
  background: radial-gradient(circle, rgba(139,92,246,.25), transparent 70%);
  animation: orbFloat3 14s ease-in-out infinite;
}
.amb-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}
@keyframes orbFloat1 {
  0%,100% { transform: translate(0,0); }
  33%      { transform: translate(60px,-40px); }
  66%      { transform: translate(-30px,50px); }
}
@keyframes orbFloat2 {
  0%,100% { transform: translate(0,0); }
  40%      { transform: translate(-50px,30px); }
  70%      { transform: translate(40px,-60px); }
}
@keyframes orbFloat3 {
  0%,100% { transform: translate(-50%,-50%) scale(1); }
  50%      { transform: translate(-50%,-50%) scale(1.3); }
}

/* Hero layout */
.hero-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 4rem;
  align-items: center;
  min-height: calc(100svh - 80px);
}

/* LEFT */
.hero-left { display: flex; flex-direction: column; gap: 0; }

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-blue);
  background: rgba(14,165,233,.1);
  border: 1px solid rgba(14,165,233,.25);
  border-radius: 9999px;
  padding: .4rem 1rem;
  width: fit-content;
  margin-bottom: 1.75rem;
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse {
  0%,100% { box-shadow: 0 0 6px #22c55e; }
  50%      { box-shadow: 0 0 14px #22c55e, 0 0 24px rgba(34,197,94,.4); }
}

.hero-name {
  font-family: var(--f-display);
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: #fff;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
}
.hn-first { color: #fff; }
.hn-last {
  position: relative;
  display: inline-block;
  width: fit-content;
}
.hn-last-text {
  background: var(--g-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hn-last-glow {
  position: absolute;
  inset: 0;
  font-family: var(--f-display);
  font-size: inherit;
  font-weight: 700;
  letter-spacing: inherit;
  background: var(--g-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: blur(18px);
  opacity: .5;
  pointer-events: none;
  user-select: none;
}

.hero-role-wrap {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
  gap: .15rem;
}
.hr-pre {
  font-size: 1rem;
  font-weight: 400;
  color: var(--c-muted);
  letter-spacing: .05em;
}
.hr-main {
  font-family: var(--f-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 600;
  color: var(--c-dim);
  letter-spacing: .02em;
}

.hero-desc {
  color: var(--c-dim);
  font-size: 1.05rem;
  max-width: 50ch;
  margin-bottom: 2.25rem;
  line-height: 1.75;
}
.hero-desc strong { color: #fff; font-weight: 600; }

/* CTAs */
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 2rem;
  border-radius: 9999px;
  background: var(--g-blue);
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  letter-spacing: .03em;
  transition: opacity .2s, transform .25s var(--ease-spring), box-shadow .2s;
  box-shadow: 0 4px 24px rgba(14,165,233,.35);
}
.cta-primary:hover {
  opacity: .9;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(14,165,233,.5);
}
.cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .8rem 1.75rem;
  border-radius: 9999px;
  border: 1px solid var(--c-border);
  color: var(--c-dim);
  font-weight: 500;
  font-size: .95rem;
  text-decoration: none;
  letter-spacing: .03em;
  transition: border-color .2s, color .2s, transform .25s var(--ease-spring);
  background: rgba(255,255,255,.03);
}
.cta-ghost:hover {
  border-color: var(--c-blue);
  color: #fff;
  transform: translateY(-2px);
}

/* Stats inline */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.hs {
  display: flex;
  flex-direction: column;
  padding: 0 1.75rem 0 0;
}
.hs:first-child { padding-left: 0; }
.hs-n {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.hs b {
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-blue);
  line-height: 1;
  display: inline;
}
.hs small {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-top: .2rem;
}
.hs-div {
  width: 1px;
  height: 36px;
  background: var(--c-border);
  margin: 0 1.75rem;
  align-self: center;
}

/* RIGHT: photo frame */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
}
.photo-frame {
  position: relative;
  width: 360px;
  height: 360px;
  flex-shrink: 0;
}
.photo-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(14,165,233,.25);
  inset: -30px;
  animation: spinRing 16s linear infinite;
}
.photo-ring-2 {
  inset: -56px;
  border-color: rgba(99,102,241,.2);
  border-style: dashed;
  animation-duration: 28s;
  animation-direction: reverse;
}
@keyframes spinRing {
  to { transform: rotate(360deg); }
}
.photo-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,233,.3) 0%, transparent 70%);
  filter: blur(30px);
  animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse {
  0%,100% { opacity: .7; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.08); }
}
.photo-mask {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(14,165,233,.4);
  box-shadow:
    0 0 0 1px rgba(14,165,233,.15),
    0 24px 60px rgba(0,0,0,.7),
    inset 0 1px 0 rgba(255,255,255,.1);
}
.photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Floating badge chips */
.photo-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem 1rem;
  border-radius: 9999px;
  background: rgba(10,10,18,.85);
  border: 1px solid var(--c-border);
  backdrop-filter: blur(12px);
  font-size: .75rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  letter-spacing: .04em;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.pb-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-blue);
  box-shadow: 0 0 6px var(--c-blue);
}
.pb-dot--aws  { background: var(--c-gold);   box-shadow: 0 0 6px var(--c-gold); }
.pb-dot--green{ background: var(--c-green);  box-shadow: 0 0 6px var(--c-green); }

.pb-1 { top: 12%; left: -80px;  animation: badgeFloat1 5s ease-in-out infinite; }
.pb-2 { top: 50%; right: -80px; animation: badgeFloat2 6s ease-in-out infinite; }
.pb-3 { bottom: 12%; left: -60px; animation: badgeFloat3 4.5s ease-in-out infinite; }

@keyframes badgeFloat1 {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes badgeFloat2 {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(10px); }
}
@keyframes badgeFloat3 {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  z-index: 2;
}
.sh-track {
  width: 1px;
  height: 48px;
  background: var(--c-border);
  border-radius: 9999px;
  overflow: hidden;
}
.sh-bar {
  width: 100%;
  height: 50%;
  background: var(--c-blue);
  border-radius: 9999px;
  animation: scrollBar 2s ease-in-out infinite;
}
@keyframes scrollBar {
  0%   { transform: translateY(-100%); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateY(200%); opacity: 0; }
}
.hero-scroll-hint span {
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-muted);
}

/* ═══════════════════════════════════════════════════════
   MARQUEE
═══════════════════════════════════════════════════════ */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  background: rgba(255,255,255,.02);
  padding: .9rem 0;
  position: relative;
  z-index: 1;
}
.mq-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}
.mq-track span {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-muted);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color .2s;
}
.mq-track span:hover { color: var(--c-blue); }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════════
   EXPERIENCE — VERTICAL TIMELINE
═══════════════════════════════════════════════════════ */
#experience { background: var(--c-bg2); }

.timeline {
  position: relative;
  margin-top: 3.5rem;
  padding-left: 0;
}

/* The continuous vertical line */
.timeline::before {
  content: '';
  position: absolute;
  left: 168px;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--c-border) 8%, var(--c-border) 92%, transparent);
}

.tl-item {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 0 2.5rem;
  margin-bottom: 3.5rem;
  position: relative;
}
.tl-item:last-child { margin-bottom: 0; }

/* ASIDE — date column */
.tl-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-right: 2.5rem;
  padding-top: .1rem;
}

/* Node dot on the spine */
.tl-node {
  position: absolute;
  right: -6px;
  top: .35rem;
  width: 13px; height: 13px;
  border-radius: 50%;
  border: 2px solid var(--c-border);
  background: var(--c-bg2);
  z-index: 2;
}
.tl-node--now {
  border-color: var(--c-blue);
  background: var(--c-bg2);
  box-shadow: 0 0 10px rgba(14,165,233,.4);
}
.tl-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(14,165,233,.3);
  animation: tlPulse 2.5s ease-out infinite;
}
@keyframes tlPulse {
  0%   { transform: scale(.7); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

.tl-spine {
  display: none; /* handled by timeline::before */
}

.tl-date {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--c-muted);
  text-align: right;
  line-height: 1.4;
  margin-top: .35rem;
  display: block;
}
.tl-badge-now {
  margin-top: .4rem;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-green);
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.25);
  border-radius: 9999px;
  padding: .2rem .6rem;
}

/* BODY — content */
.tl-body {
  padding: 1.75rem 2rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  position: relative;
  transition: border-color .25s, transform .3s var(--ease-out);
}
.tl-body::before {
  content: '';
  position: absolute;
  left: -10px; top: .9rem;
  width: 10px; height: 1px;
  background: var(--c-border);
}
.tl-body:hover {
  border-color: rgba(14,165,233,.3);
  transform: translateX(4px);
}

.tl-active .tl-body {
  border-color: rgba(14,165,233,.2);
  background: rgba(14,165,233,.04);
}
.tl-active .tl-body::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(14,165,233,.06), transparent 60%);
  pointer-events: none;
}

.tl-head {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  margin-bottom: 1rem;
}
.tl-co-icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tl-ico-blue   { background: rgba(14,165,233,.15); color: var(--c-blue); border: 1px solid rgba(14,165,233,.25); }
.tl-ico-purple { background: rgba(99,102,241,.15);  color: var(--c-purple); border: 1px solid rgba(99,102,241,.25); }
.tl-ico-orange { background: rgba(249,115,22,.15);  color: var(--c-orange); border: 1px solid rgba(249,115,22,.25); }
.tl-ico-green  { background: rgba(34,197,94,.15);   color: var(--c-green); border: 1px solid rgba(34,197,94,.25); }

.tl-head h3 {
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.tl-role {
  font-size: .85rem;
  color: var(--c-muted);
  margin-top: .2rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.badge-contract {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .15rem .5rem;
  border-radius: 9999px;
  background: rgba(249,115,22,.15);
  border: 1px solid rgba(249,115,22,.25);
  color: var(--c-orange);
}

.tl-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin-bottom: 1.1rem;
}
.tl-list li {
  font-size: .88rem;
  color: var(--c-dim);
  line-height: 1.6;
  padding-left: 1.1rem;
  position: relative;
}
.tl-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--c-blue);
  font-weight: 700;
}
.tl-list strong { color: #fff; font-weight: 600; }

.tl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.tl-chips span {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .25rem .7rem;
  border-radius: 9999px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--c-border);
  color: var(--c-muted);
  transition: border-color .2s, color .2s;
}
.tl-chips span:hover {
  border-color: var(--c-blue);
  color: var(--c-blue);
}

/* ═══════════════════════════════════════════════════════
   TOOLS — BUILDERS + TECH STACK
═══════════════════════════════════════════════════════ */
.tools-sec { background: var(--c-bg); }

.tools-cat {
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-muted);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.tools-cat::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-border);
}

/* ── BUILDER GRID ── */
.builders-row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1.25rem;
}

.builder-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .85rem;
  padding: 1.75rem 1rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 16px;
  cursor: default;
  transition: border-color .25s, transform .3s var(--ease-spring), background .25s;
}
.builder-item:hover {
  border-color: rgba(14,165,233,.4);
  transform: translateY(-6px) scale(1.03);
  background: rgba(14,165,233,.05);
}

.bi-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,.4);
  transition: box-shadow .3s;
}
.bi-icon svg { width: 40px; height: 40px; }
.builder-item:hover .bi-icon { box-shadow: 0 8px 28px rgba(0,0,0,.6); }

.builder-item > span {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-muted);
  text-align: center;
  transition: color .2s;
}
.builder-item:hover > span { color: #fff; }

/* ── STACK ROW (tech pills) ── */
.stack-row, .perf-row {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.stack-pill, .perf-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  border-radius: 9999px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  font-size: .8rem;
  font-weight: 600;
  color: var(--c-dim);
  letter-spacing: .04em;
  cursor: default;
  transition: border-color .2s, color .2s, background .2s, transform .2s var(--ease-spring);
}
.stack-pill:hover, .perf-pill:hover {
  border-color: var(--c-blue);
  color: #fff;
  background: rgba(14,165,233,.08);
  transform: translateY(-2px);
}
.pill-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-blue);
}
.pill-dot--green  { background: var(--c-green); }
.pill-dot--purple { background: var(--c-purple); }
.pill-dot--orange { background: var(--c-orange); }
.pill-dot--gold   { background: var(--c-gold); }

/* ═══════════════════════════════════════════════════════
   WORK / PORTFOLIO
═══════════════════════════════════════════════════════ */
.work-sec {
  background: var(--c-bg2);
  padding-bottom: 6rem;
}

/* Cinematic BG strip */
.work-cinematic-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.work-cinematic-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .07;
  filter: grayscale(1);
}
.wcb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--c-bg2) 0%,
    rgba(10,10,18,.85) 20%,
    rgba(10,10,18,.85) 80%,
    var(--c-bg2) 100%
  );
}

/* ── HORIZONTAL SCROLL STRIP ── */
.hscroll-outer {
  position: relative;
  overflow: hidden;
  margin: 0 -2rem;
  padding: 1.5rem 0 2rem;
}
.hscroll-outer::before,
.hscroll-outer::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.hscroll-outer::before {
  left: 0;
  background: linear-gradient(to right, var(--c-bg2), transparent);
}
.hscroll-outer::after {
  right: 0;
  background: linear-gradient(to left, var(--c-bg2), transparent);
}

.hscroll {
  display: flex;
  gap: 1.5rem;
  padding: .5rem 2rem 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}
.hscroll:active { cursor: grabbing; }
.hscroll::-webkit-scrollbar { display: none; }

/* Each created site card — cinematic, NOT a generic card */
.hs-card {
  flex: 0 0 300px;
  height: 200px;
  border-radius: 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease-spring), border-color .25s, box-shadow .3s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hs-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(14,165,233,.4);
  box-shadow: 0 20px 50px rgba(0,0,0,.5), 0 0 0 1px rgba(14,165,233,.2);
}
.hs-card-bg {
  position: absolute;
  inset: 0;
  background: var(--g-blue);
  opacity: .06;
  transition: opacity .3s;
}
.hs-card:hover .hs-card-bg { opacity: .12; }

/* Color accents per card */
.hs-card:nth-child(3n+1) .hs-card-bg { background: linear-gradient(135deg,#0ea5e9,#6366f1); }
.hs-card:nth-child(3n+2) .hs-card-bg { background: linear-gradient(135deg,#6366f1,#8b5cf6); }
.hs-card:nth-child(3n+3) .hs-card-bg { background: linear-gradient(135deg,#0ea5e9,#22c55e); }

.hs-card-content {
  position: relative;
  z-index: 1;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(to top, rgba(5,5,8,.95) 70%, transparent);
}
.hs-card-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-blue);
  box-shadow: 0 0 8px var(--c-blue);
  margin-bottom: .6rem;
}
.hs-card h4 {
  font-family: var(--f-display);
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: .25rem;
}
.hs-card span {
  font-size: .7rem;
  color: var(--c-muted);
  letter-spacing: .05em;
  font-weight: 500;
  display: block;
}
.hs-arrow {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(14,165,233,.15);
  border: 1px solid rgba(14,165,233,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(.8);
  transition: opacity .2s, transform .2s var(--ease-spring);
}
.hs-card:hover .hs-arrow {
  opacity: 1;
  transform: scale(1);
}
.hs-arrow svg { color: var(--c-blue); }

/* ── MANAGED LIST ── */
.managed-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: .75rem;
  margin-top: 2rem;
}
.mg-item {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .9rem 1.25rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color .2s, background .2s, transform .2s var(--ease-spring);
}
.mg-item:hover {
  border-color: rgba(99,102,241,.4);
  background: rgba(99,102,241,.06);
  transform: translateX(4px);
}
.mg-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-indigo);
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--c-indigo);
}
.mg-item span {
  font-size: .82rem;
  font-weight: 600;
  color: var(--c-dim);
  letter-spacing: .03em;
}

/* ── FRANCHISE TICKER ── */
.franchise-wrap {
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}
.franchise-label-txt {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 1rem;
}
.ticker-outer {
  overflow: hidden;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  background: rgba(255,255,255,.02);
  padding: .8rem 0;
  position: relative;
}
.ticker-outer::before,
.ticker-outer::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.ticker-outer::before {
  left: 0;
  background: linear-gradient(to right, var(--c-bg2), transparent);
}
.ticker-outer::after {
  right: 0;
  background: linear-gradient(to left, var(--c-bg2), transparent);
}

.ticker {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: tickerRoll 40s linear infinite;
}
.ticker-item {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-muted);
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0 .25rem;
  transition: color .2s;
}
.ticker-item:hover { color: var(--c-blue); }
.ticker-sep {
  color: rgba(14,165,233,.4);
  font-size: .6rem;
  align-self: center;
}
@keyframes tickerRoll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════════════ */
.about-sec {
  background: var(--c-bg);
  overflow: hidden;
}
.about-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.aa-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .25;
}
.aa-1 {
  width: 500px; height: 500px;
  bottom: -100px; left: -100px;
  background: radial-gradient(circle, rgba(14,165,233,.5), transparent 70%);
}
.aa-2 {
  width: 500px; height: 500px;
  top: -80px; right: -80px;
  background: radial-gradient(circle, rgba(99,102,241,.5), transparent 70%);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 6rem;
  align-items: start;
}

/* About LEFT */
.about-p {
  font-size: 1.02rem;
  color: var(--c-dim);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}
.about-p strong { color: #fff; font-weight: 600; }

.about-contacts {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: 2rem;
}
.ac-item {
  display: flex;
  align-items: center;
  gap: .85rem;
  color: var(--c-dim);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
}
.ac-item:hover { color: var(--c-blue); }
.ac-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--c-blue);
  transition: background .2s, border-color .2s;
}
.ac-item:hover .ac-icon {
  background: rgba(14,165,233,.1);
  border-color: rgba(14,165,233,.3);
}

/* About RIGHT: photo panel */
.about-r { position: relative; }

.about-photo-panel {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 24px;
  overflow: hidden;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  transition: border-color .3s;
}
.about-photo-panel:hover { border-color: rgba(14,165,233,.3); }

/* Decoration rings */
.app-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(14,165,233,.12);
  pointer-events: none;
}
.app-ring-1 { width: 300px; height: 300px; top: -80px; right: -80px; }
.app-ring-2 { width: 200px; height: 200px; bottom: -50px; left: -50px; border-color: rgba(99,102,241,.15); border-style: dashed; }

.app-photo-wrap {
  position: relative;
  width: 120px; height: 120px;
}
.app-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 2px solid rgba(14,165,233,.4);
  display: block;
}
.app-photo-glow {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,233,.3), transparent 70%);
  filter: blur(16px);
  z-index: -1;
}

.app-info { width: 100%; text-align: center; }
.app-name {
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .25rem;
}
.app-role {
  font-size: .8rem;
  color: var(--c-muted);
  font-weight: 500;
  margin-bottom: 1rem;
}
.app-divider {
  height: 1px;
  background: var(--c-border);
  margin-bottom: 1rem;
}
.app-stats-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}
.app-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
}
.app-stat b {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.app-stat b:last-of-type {
  font-size: 1rem;
  color: var(--c-blue);
  margin-left: 1px;
}
.app-stat span {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.app-badges-row {
  display: flex;
  justify-content: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.app-badge {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .07em;
  padding: .25rem .75rem;
  border-radius: 9999px;
  background: rgba(14,165,233,.1);
  border: 1px solid rgba(14,165,233,.25);
  color: var(--c-blue);
}

/* Extra items: edu + achievements */
.about-extras {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}
.extra-item {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: 1rem 1.25rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  transition: border-color .2s;
}
.extra-item:hover { border-color: rgba(14,165,233,.25); }
.extra-item svg { flex-shrink: 0; margin-top: .15rem; }
.extra-item div {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.extra-item strong {
  font-size: .87rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.extra-item span {
  font-size: .78rem;
  color: var(--c-muted);
  line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--c-border);
  background: var(--c-bg2);
  padding: 2.5rem 0;
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-inner span {
  font-size: .78rem;
  color: var(--c-muted);
  letter-spacing: .03em;
}

/* ═══════════════════════════════════════════════════════
   SCROLL REVEAL ANIMATION
═══════════════════════════════════════════════════════ */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"] { transition-delay: .1s; }
[data-reveal-delay="2"] { transition-delay: .2s; }
[data-reveal-delay="3"] { transition-delay: .3s; }
[data-reveal-delay="4"] { transition-delay: .4s; }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .builders-row { grid-template-columns: repeat(4, 1fr); }
  .hero-wrap { grid-template-columns: 1fr; gap: 3rem; min-height: auto; padding-top: 3rem; }
  .hero-right { order: -1; }
  .photo-frame { width: 260px; height: 260px; }
  .pb-1 { left: -40px; }
  .pb-2 { right: -40px; }
  .pb-3 { left: -30px; }
  .timeline::before { left: 120px; }
  .tl-item { grid-template-columns: 120px 1fr; }
  .about-layout { grid-template-columns: 1fr; gap: 4rem; }
}

@media (max-width: 768px) {
  :root { --sec-py: 5rem; }
  .nav-links, .nav-hire { display: none; }
  .burger { display: flex; }

  .hero-wrap { padding-top: 2rem; }
  .hero-name { font-size: clamp(2.5rem, 9vw, 3.5rem); }
  .photo-frame { width: 220px; height: 220px; }
  .pb-1, .pb-2, .pb-3 { display: none; }
  .photo-ring { display: none; }

  .builders-row { grid-template-columns: repeat(4, 1fr); gap: .75rem; }
  .builder-item { padding: 1.25rem .5rem; }
  .bi-icon { width: 44px; height: 44px; }
  .bi-icon svg { width: 32px; height: 32px; }
  .builder-item > span { font-size: .6rem; }

  /* Timeline mobile — vertical, no aside column */
  .timeline::before { display: none; }
  .tl-item { grid-template-columns: 1fr; gap: .75rem; }
  .tl-aside {
    flex-direction: row;
    align-items: center;
    padding-right: 0;
    gap: .75rem;
  }
  .tl-node { position: static; }
  .tl-date { text-align: left; }

  .hero-stats { gap: 0; flex-wrap: nowrap; overflow-x: auto; }
  .hs { flex-shrink: 0; }
  .hs-div { flex-shrink: 0; }

  .managed-list { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: .5rem; }
}

@media (max-width: 480px) {
  .builders-row { grid-template-columns: repeat(2, 1fr); }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .cta-primary, .cta-ghost { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════
   FIXES — hero stat "+" alignment and work-page CTA
   ═══════════════════════════════════════════════════════ */

/* .hs was flex-column, which pushed the "+" onto its own line
   under the number. Grid keeps number + "+" on one baseline
   with the label spanning underneath. */
.hs {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  justify-content: start;
  align-items: baseline;
  column-gap: .1rem;
}
.hs-n    { grid-column: 1; grid-row: 1; }
.hs > b  { grid-column: 2; grid-row: 1; }
.hs small{ grid-column: 1 / -1; grid-row: 2; }

/* Same stacking problem in the floating about-card stats */
.app-stat {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  justify-content: center;
  align-items: baseline;
  column-gap: .08rem;
}
.app-stat > b:first-child { grid-column: 1; grid-row: 1; }
.app-stat > b + b         { grid-column: 2; grid-row: 1; }
.app-stat > span          { grid-column: 1 / -1; grid-row: 2; }

/* CTA into the full client-work index */
.work-cta {
  margin: 3.5rem 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .85rem;
}
.work-cta-note {
  font-size: .8rem;
  color: var(--c-muted);
  max-width: 46ch;
  line-height: 1.6;
}
@media (max-width: 560px) {
  .work-cta { align-items: stretch; }
  .work-cta .cta-primary { text-align: center; }
}

/* ═══════════════════════════════════════════════════════
   HOMEPAGE SCREENSHOT CARDS
   ═══════════════════════════════════════════════════════ */

/* Custom-build scroller: real screenshot behind the label overlay */
.hs-card.has-shot { flex: 0 0 340px; height: 236px; }
.hs-card-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .5s var(--ease-out);
}
.hs-card.has-shot .hs-card-bg { opacity: 1; background: var(--c-bg2); }
.hs-card.has-shot:hover .hs-card-bg img { transform: scale(1.05); }
.hs-card.has-shot .hs-card-content {
  background: linear-gradient(to top, rgba(5,5,8,.97) 42%, rgba(5,5,8,.72) 72%, transparent);
  padding-top: 2.5rem;
}

/* Managed sites: compact screenshot grid */
.managed-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2.25rem;
}
.mg-card {
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 13px;
  overflow: hidden;
  text-decoration: none;
  transition: transform .32s var(--ease-out), border-color .25s, box-shadow .32s;
}
.mg-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14,165,233,.4);
  box-shadow: 0 16px 34px -16px rgba(0,0,0,.9);
}
.mg-shot {
  aspect-ratio: 1366 / 850;
  background: var(--c-bg2);
  overflow: hidden;
  border-bottom: 1px solid var(--c-border);
}
.mg-shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .5s var(--ease-out);
}
.mg-card:hover .mg-shot img { transform: scale(1.05); }
.mg-meta { padding: .85rem 1rem 1rem; }
.mg-meta h4 {
  font-family: var(--f-display);
  font-size: .87rem;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.3;
  margin: 0 0 .2rem;
}
.mg-card:hover .mg-meta h4 { color: #fff; }
.mg-meta span {
  font-size: .7rem;
  color: var(--c-muted);
  letter-spacing: .04em;
}

@media (max-width: 560px) {
  .hs-card.has-shot { flex: 0 0 270px; height: 196px; }
  .managed-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
  .mg-meta { padding: .7rem .75rem .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hs-card.has-shot:hover .hs-card-bg img,
  .mg-card:hover .mg-shot img { transform: none; }
  .mg-card:hover { transform: none; }
}

/* Override the legacy single-column managed list at tablet widths —
   the screenshot cards need at least two per row. */
@media (max-width: 768px) {
  .managed-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .managed-list { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════
   LEGIBILITY POLISH
   ═══════════════════════════════════════════════════════ */

/* Clash Display's tight tracking runs words together at large sizes
   ("BrianKen"). A touch of word-spacing restores the word gaps
   without loosening the letterforms. */
.hero-name, .sec-h2, .wk-title, .nav-logo span, .app-name {
  word-spacing: .12em;
}

/* The "+" was baseline-aligned against a much larger numeral, which
   read as a subscript. Set it as a superscript instead. */
.hs > b, .app-stat > b + b {
  align-self: start;
  font-size: 1.15rem;
  line-height: 1.35;
}

/* Branded fallback tile for sites whose firewall blocks screenshot capture */
.hs-card-bg.hs-bg--none {
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 70% 70% at 50% 40%, rgba(99,102,241,.20), transparent),
    var(--c-bg2);
  opacity: 1;
}
.hs-initials {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 2.4rem;
  letter-spacing: .05em;
  color: rgba(226,232,240,.34);
  align-self: center;
  justify-self: center;
}

/* ─── Auto-scrolling portfolio marquee ───────────────────────────────────
   The marquee drives scrollLeft every animation frame, so CSS smooth
   scrolling must be off here or each frame gets queued as its own eased
   animation and the track stutters or stalls. */
.hscroll {
  scroll-behavior: auto;
  scroll-snap-type: none;
  overscroll-behavior-x: contain;
  cursor: grab;
}
.hscroll.is-dragging { cursor: grabbing; }
.hscroll.is-dragging a { pointer-events: none; }   /* don't fire a link on drag-release */

/* Cards must not shrink or the doubled track can't wrap cleanly.
   Only flex-shrink is set here — using the `flex` shorthand would reset
   flex-basis to auto and let each card size to its title length, which is
   what made the cards different widths. */
.hscroll .hs-card { flex-shrink: 0; flex-grow: 0; scroll-snap-align: none; }

@media (prefers-reduced-motion: reduce) {
  .hscroll { scroll-behavior: auto; }
}

/* ═══════════════════════════════════════════════════════════════════
   CERTIFICATIONS
   ═══════════════════════════════════════════════════════════════════ */
.certs-sec { position: relative; background: var(--c-bg2); }

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
}

.cert-card {
  display: flex;
  gap: 1rem;
  padding: 1.35rem 1.4rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  transition: border-color .25s, transform .25s var(--ease-out), box-shadow .25s;
}
.cert-card:hover {
  border-color: rgba(14,165,233,.38);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0,0,0,.42);
}

/* Issuer lettermark — fixed size so every row lines up regardless of label */
.cert-badge {
  flex: 0 0 52px;
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  font-family: var(--f-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: #fff;
  border: 1px solid rgba(255,255,255,.1);
}
.cert-badge--ga    { background: linear-gradient(140deg,#e8710a,#f9ab00); }
.cert-badge--aws   { background: linear-gradient(140deg,#232f3e,#ff9900); }
.cert-badge--tesda { background: linear-gradient(140deg,#0b3d91,#1d6fd0); font-size: .68rem; }
.cert-badge--edu   { background: linear-gradient(140deg,#6366f1,#8b5cf6); }

.cert-body { min-width: 0; flex: 1; }

.cert-top {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: .3rem;
}
.cert-name {
  font-family: var(--f-display);
  font-size: .95rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.32;
  margin: 0;
  word-spacing: .1em;
}
.cert-pill {
  flex: none;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: .22rem .5rem;
  border-radius: 5px;
  margin-top: .12rem;
}
.cert-pill--live {
  color: #4ade80;
  background: rgba(34,197,94,.11);
  border: 1px solid rgba(34,197,94,.28);
}

.cert-issuer { font-size: .82rem; color: #cbd5e1; margin-bottom: .18rem; }
.cert-meta   { font-size: .74rem; color: var(--c-muted); }
.cert-id     { font-size: .68rem; color: var(--c-muted); margin-top: .3rem; }
.cert-id code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .95em;
  color: #94a3b8;
  background: rgba(255,255,255,.04);
  padding: .08rem .32rem;
  border-radius: 4px;
}

.cert-verify {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: .75rem;
  font-size: .74rem;
  font-weight: 600;
  color: var(--c-blue);
  text-decoration: none;
  transition: gap .2s var(--ease-out), color .2s;
}
.cert-verify:hover { gap: .5rem; color: #38bdf8; }

/* ── Collapsible list of the shorter workshops ── */
.cert-more { margin-top: 1.6rem; }
.cert-more summary {
  display: flex;
  align-items: center;
  gap: .6rem;
  cursor: pointer;
  list-style: none;
  padding: .9rem 1.2rem;
  border: 1px solid var(--c-border);
  border-radius: 11px;
  background: var(--c-surface);
  font-size: .84rem;
  font-weight: 600;
  color: #cbd5e1;
  transition: border-color .2s, color .2s;
}
.cert-more summary::-webkit-details-marker { display: none; }
.cert-more summary:hover { border-color: rgba(14,165,233,.35); color: #fff; }
.cert-more-n {
  font-size: .68rem;
  font-weight: 700;
  color: var(--c-blue);
  background: rgba(14,165,233,.11);
  border: 1px solid rgba(14,165,233,.24);
  padding: .1rem .45rem;
  border-radius: 5px;
}
.cert-chev { margin-left: auto; transition: transform .25s var(--ease-out); }
.cert-more[open] .cert-chev { transform: rotate(180deg); }

.cert-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: .5rem;
  margin: .9rem 0 0;
  padding: 0;
  list-style: none;
}
.cert-mini a {
  display: block;
  padding: .8rem .95rem;
  border: 1px solid var(--c-border);
  border-radius: 9px;
  background: rgba(255,255,255,.015);
  text-decoration: none;
  transition: border-color .2s, background .2s;
}
.cert-mini a:hover { border-color: rgba(14,165,233,.3); background: rgba(14,165,233,.045); }
.cm-name {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.35;
  margin-bottom: .22rem;
}
.cm-issuer { font-size: .7rem; color: var(--c-muted); }
.cm-date::before { content: ' · '; color: var(--c-muted); }
.cm-date   { font-size: .7rem; color: var(--c-muted); }

@media (max-width: 640px) {
  .cert-grid, .cert-mini-grid { grid-template-columns: 1fr; }
  .cert-card { padding: 1.15rem 1.1rem; gap: .85rem; }
  .cert-badge { flex-basis: 44px; width: 44px; height: 44px; font-size: .64rem; }
  .cert-name { font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .cert-card:hover { transform: none; }
  .cert-chev { transition: none; }
}
