/* ================================================================
   WORK EXPERIENCE — standalone stylesheet
   Loaded only by experience.html. Shares the site's tokens (dark
   ground, Space Grotesk / Inter / JetBrains Mono, the orange accent)
   but nothing here touches the main stylesheet.
   Rule of the page: JS decides WHEN, CSS decides WHAT.
   ================================================================ */

:root {
  --bg: #0D0D0D;
  --bg-2: #141414;
  --card: #1A1A1A;
  --card-2: #1F1F1F;
  --ink: #FFFFFF;
  --ink-2: #BDBDBD;
  --ink-3: #7C7C7C;
  --line: #2A2A2A;
  --accent: #F58220;
  --accent-2: #FF8A5B;
  --accent-soft: rgba(245, 130, 32, .18);
  --font-h: 'Space Grotesk', sans-serif;
  --font-b: 'Inter', sans-serif;
  --font-m: 'JetBrains Mono', monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --w: 1180px;
  --rail-x: 56px;                 /* where the timeline rail sits */
  --mx: 50vw; --my: 50vh;         /* cursor, written by JS */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-h); font-weight: 600; line-height: 1.05; letter-spacing: -.02em; }
em { font-style: normal; }
strong { color: var(--ink); font-weight: 600; }
::selection { background: var(--accent); color: #0b0b0b; }

/* ---------- ambient background ---------- */
.field {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
/* the orbs live inside a clipped full-viewport layer so their overhang
   never counts as page width on phones */
.ambient { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.orb {
  position: absolute; pointer-events: none;
  width: 60vmax; height: 60vmax; border-radius: 50%;
  filter: blur(90px); opacity: .32; mix-blend-mode: screen;
  will-change: transform;
}
.orb--a {
  top: -25vmax; right: -20vmax;
  background: radial-gradient(circle at 40% 40%, rgba(245,130,32,.55), rgba(245,130,32,0) 62%);
  animation: orbDrift 22s ease-in-out infinite alternate;
}
.orb--b {
  bottom: -30vmax; left: -25vmax;
  background: radial-gradient(circle at 60% 60%, rgba(120,140,220,.35), rgba(120,140,220,0) 62%);
  animation: orbDrift 28s ease-in-out -9s infinite alternate-reverse;
}
@keyframes orbDrift {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(-8vmax, 6vmax, 0) scale(1.15); }
}

/* ---------- custom cursor ---------- */
.cursor { position: fixed; inset: 0; z-index: 9999; pointer-events: none; display: none; }
.has-cursor .cursor { display: block; }
.cursor-dot, .cursor-ring {
  position: absolute; top: 0; left: 0; border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot { width: 6px; height: 6px; background: var(--accent); transition: width .2s, height .2s, opacity .2s; }
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(245,130,32,.55);
  transition: width .35s var(--ease), height .35s var(--ease), border-color .3s, background .3s;
}
.cursor.is-hover .cursor-ring { width: 58px; height: 58px; border-color: rgba(245,130,32,.9); background: rgba(245,130,32,.08); }
.cursor.is-hover .cursor-dot { width: 4px; height: 4px; }
.cursor.is-down .cursor-ring { width: 26px; height: 26px; }

/* ---------- reading progress ---------- */
.progress {
  position: fixed; top: 0; left: 0; z-index: 60;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent), #ffd9ad);
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}

/* ---------- top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 44px);
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.brand {
  font-family: var(--font-h); font-weight: 700; font-size: 22px; letter-spacing: -.02em;
  text-decoration: none; color: var(--ink);
}
.brand span { color: var(--accent); }
.topbar-nav { display: flex; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px 9px 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(13,13,13,.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: var(--ink-2); text-decoration: none;
  font-family: var(--font-m); font-size: 12px; letter-spacing: .04em;
  transition: color .3s, border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.pill svg { color: var(--accent); }
.pill:hover { color: var(--ink); border-color: rgba(245,130,32,.6); box-shadow: 0 0 18px var(--accent-soft); }

/* ---------- shared bits ---------- */
/* eyebrow + gradient words follow the main site's rules (.eyebrow / .gradient-text in css/style.css) */
.eyebrow {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-family: var(--font-b); font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2);
}
.eyebrow-line { width: 28px; height: 1px; background: var(--accent); transform-origin: 0 50%; }
.gradient-text, .section-title em, .cta-title em, .split--accent.is-gradient {
  background: linear-gradient(90deg, var(--ink), var(--accent-2), var(--ink));
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: gradientShift 4s ease-in-out infinite;
}
@keyframes gradientShift { 0%, 100% { background-position: 0 center; } 50% { background-position: 100% center; } }
/* once JS has split a title, the gradient lives on the sliding word span, not the <em> */
.section-title em.is-split, .cta-title em.is-split { background: none; animation: none; -webkit-text-fill-color: currentColor; color: var(--ink); }
.eyebrow-live { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-3); text-transform: none; letter-spacing: .02em; }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; display: inline-block;
  box-shadow: 0 0 0 0 rgba(61,220,132,.6); animation: livePulse 2s ease-out infinite;
}
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(61,220,132,.6); } 100% { box-shadow: 0 0 0 9px rgba(61,220,132,0); } }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 10px;
  font-family: var(--font-b); font-weight: 600; font-size: 15px; text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s, background .3s, border-color .3s, color .3s;
  will-change: transform;
}
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid:hover { box-shadow: 0 14px 40px rgba(255,255,255,.18); }
.btn--ghost { border: 1px solid rgba(255,255,255,.16); color: var(--ink); background: rgba(255,255,255,.03); }
.btn--ghost:hover { border-color: var(--accent); box-shadow: 0 10px 32px var(--accent-soft); }
.btn--ghost svg { color: var(--accent); }

.section-head { position: relative; z-index: 2; max-width: var(--w); margin: 0 auto; padding: 0 clamp(18px, 4vw, 44px); }
.section-title { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.15; margin-top: 18px; }
.section-sub { margin-top: 14px; color: var(--ink-3); font-size: 15px; }

/* ---------- reveals ---------- */
.reveal { opacity: 0; transform: translateY(26px); animation: rise 1.1s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }
.reveal-io { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal-io.in { opacity: 1; transform: none; }

/* split text: each character rises out of a clipped line */
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.split .word { display: inline-block; white-space: nowrap; }
.split .ch { display: inline-block; transform: translateY(110%) rotate(6deg); opacity: 0; will-change: transform; }
.split.is-in .ch { animation: chIn .9s var(--ease) forwards; animation-delay: calc(var(--i) * 28ms + var(--base, 0s)); }
@keyframes chIn { to { transform: none; opacity: 1; } }
/* the accent line flies in letter by letter wearing the site gradient (JS lays the gradient continuously across
   the word), then once every letter has landed it becomes one .gradient-text span with the site's sweep */
.hero-title { font-kerning: none; }          /* letters and the final plain text must measure identically */
.split--accent { color: var(--accent); }
.split--accent .ch { background-image: linear-gradient(90deg, #fff, var(--accent-2), #fff); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

.split-words .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 .04em .1em 0; margin-bottom: -.1em; }
.split-words .w > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 70ms); }
.split-words.in .w > span { transform: none; }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative; z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); align-items: center; gap: clamp(28px, 5vw, 80px);
  max-width: var(--w); margin: 0 auto;
  padding: 120px clamp(18px, 4vw, 44px) 80px;
}
.hero-eyebrow { animation: rise .9s var(--ease) .2s both; }
.hero-eyebrow .eyebrow-line { animation: lineGrow .8s var(--ease) .3s both; }
@keyframes lineGrow { from { transform: scaleX(0); } }
.hero-title { margin-top: 26px; font-size: clamp(40px, 5.2vw, 76px); font-weight: 600; }
.hero-sub { margin-top: 28px; max-width: 58ch; color: var(--ink-2); font-size: clamp(15px, 1.4vw, 18px); font-weight: 300; }
.hero-stats { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px 34px; }
.stat { display: flex; align-items: baseline; gap: 3px; }
.stat-n { font-family: var(--font-h); font-weight: 700; font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-plus { color: var(--accent); font-family: var(--font-h); font-weight: 700; font-size: clamp(22px, 2.4vw, 30px); }
.stat-l { margin-left: 9px; color: var(--ink-3); font-family: var(--font-m); font-size: 12px; letter-spacing: .04em; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

/* the portrait */
.hero-visual { display: flex; justify-content: center; }
.portrait {
  position: relative; width: min(100%, 340px); aspect-ratio: 413 / 531;
  perspective: 1000px;            /* no preserve-3d: layers stack by z-index, so the rings can never cover the photo */
  animation: floatY 7s ease-in-out infinite;
  --rx: 0deg; --ry: 0deg;
}
@keyframes floatY { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.portrait-frame {
  position: relative; z-index: 2; border-radius: 22px; overflow: hidden;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease);
  box-shadow: 0 40px 90px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06) inset;
  background: var(--card);
}
.portrait-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,.12), transparent 40%, rgba(245,130,32,.14) 100%);
  mix-blend-mode: screen; pointer-events: none;
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) contrast(1.04); }
/* the rings stay put and only their highlight sweeps around them —
   rotating the boxes themselves would widen the page on phones */
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.portrait-ring {
  position: absolute; inset: -18px; border-radius: 30px; z-index: 1;
  padding: 1px;
  --ang: 0deg;
  background: conic-gradient(from var(--ang), transparent 0 60%, var(--accent) 80%, transparent 100%);
  /* hollow ring: mask away everything but the 1px padding band, so the inside stays fully transparent */
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: ringSweep 9s linear infinite;
  opacity: .9;
}
.portrait-ring--2 { inset: -34px; border-radius: 40px; animation-duration: 15s; animation-direction: reverse; opacity: .45; }
@keyframes ringSweep { to { --ang: 360deg; } }
@keyframes ringSpin { to { transform: rotate(360deg); } }
.portrait-badge {
  position: absolute; z-index: 3;
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 14px; border-radius: 12px;
  background: rgba(20,20,20,.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
  animation: badgeFloat 6s ease-in-out infinite;
}
/* pinned to the frame's corners, so the face is never covered */
.portrait-badge--a { top: -7%; left: -14%; animation-delay: -1.5s; }
.portrait-badge--b { bottom: -7%; right: -12%; animation-delay: -3.5s; }
@keyframes badgeFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.badge-k { font-family: var(--font-m); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.badge-v { font-family: var(--font-h); font-weight: 600; font-size: 14px; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-decoration: none; color: var(--ink-3);
  animation: rise 1s var(--ease) 1.8s both;
}
.scroll-cue-track { width: 22px; height: 36px; border-radius: 12px; border: 1px solid rgba(255,255,255,.2); position: relative; }
.scroll-cue-thumb { position: absolute; top: 6px; left: 50%; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--accent); animation: cueDrop 1.8s var(--ease-io) infinite; }
@keyframes cueDrop { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }
.scroll-cue-text { font-family: var(--font-m); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }

/* ---------- marquee ---------- */
.marquee { position: relative; z-index: 2; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-m); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.marquee-track i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ================================================================
   TIMELINE
   ================================================================ */
.timeline { position: relative; z-index: 2; padding: 120px 0 60px; }
.year-bg {
  position: sticky; top: 50%; height: 0; z-index: 0; pointer-events: none;
  display: flex; justify-content: flex-end; padding-right: 3vw;
}
.year-bg span {
  font-family: var(--font-h); font-weight: 700; font-size: clamp(120px, 22vw, 300px); line-height: 1; letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.07);
  transform: translateY(-50%);
  transition: opacity .5s;
}
.year-bg span.is-swapping { animation: yearSwap .6s var(--ease); }
@keyframes yearSwap { 0% { opacity: 0; transform: translateY(-40%) scale(.96); } 100% { opacity: 1; transform: translateY(-50%) scale(1); } }

.timeline .section-head { padding-left: calc(clamp(18px, 4vw, 44px) + var(--rail-x) + 40px); }

.entries { position: relative; max-width: var(--w); margin: 60px auto 0; padding: 0 clamp(18px, 4vw, 44px); }
.rail {
  position: absolute; top: 0; bottom: 0; left: calc(clamp(18px, 4vw, 44px) + var(--rail-x));
  width: 2px; z-index: 1; pointer-events: none;
}
.rail-track { position: absolute; inset: 0; background: linear-gradient(180deg, transparent, var(--line) 6%, var(--line) 94%, transparent); }
.rail-fill {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, var(--accent), #ffd9ad 60%, var(--accent));
  transform-origin: 50% 0; transform: scaleY(var(--fill, 0));
  box-shadow: 0 0 14px rgba(245,130,32,.45);
  will-change: transform;
}
.rail-spark {
  position: absolute; left: 50%; top: calc(var(--fill, 0) * 100%); width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: #fff; box-shadow: 0 0 18px 6px rgba(245,130,32,.7);
  opacity: var(--spark, 0); transition: opacity .3s;
}

.entry {
  position: relative;
  padding-left: calc(var(--rail-x) + 40px);
  margin-bottom: clamp(40px, 6vw, 72px);
  --c: 245,130,32;
}
.node {
  position: absolute; left: calc(var(--rail-x) - 8px); top: 34px; width: 18px; height: 18px;
  opacity: .35; transition: opacity .5s;
}
.node-core {
  position: absolute; inset: 4px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line);
  transition: border-color .5s, background .5s, transform .5s var(--ease);
}
.node-pulse { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(var(--c), .8); opacity: 0; }
.entry.is-lit .node { opacity: 1; }
.entry.is-lit .node-core { border-color: rgb(var(--c)); background: rgb(var(--c)); transform: scale(1.1); box-shadow: 0 0 16px rgba(var(--c), .7); }
.entry.is-lit .node-pulse { animation: nodePulse 2.2s ease-out infinite; }
@keyframes nodePulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }

/* the card: wipes in with a clip-path, then tilts with the pointer */
.card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(22px, 3vw, 36px);
  clip-path: inset(0 100% 0 0 round 22px);
  opacity: 0; transform: translateY(30px);
  transition: clip-path 1.2s var(--ease), opacity .6s, transform 1.1s var(--ease), border-color .4s, box-shadow .4s;
  transform-style: preserve-3d;
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%;
}
.entry.in .card { clip-path: inset(0 0 0 0 round 22px); opacity: 1; transform: translateY(0); }
.card.is-open { clip-path: none; }           /* added by JS once the wipe has finished, so hover shadows can show */
.entry .card { max-width: 880px; }
.card.is-tilting { transition: clip-path 1.2s var(--ease), opacity .6s, transform .12s linear, border-color .4s, box-shadow .4s; transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry)); }
.card:hover { border-color: rgba(var(--c), .45); box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(var(--c), .12); }
.card-glow {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(520px circle at var(--gx) var(--gy), rgba(var(--c), .16), transparent 45%);
}
.card:hover .card-glow { opacity: 1; }
.card > * { position: relative; }

.card-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.logo-chip {
  flex-shrink: 0; width: 72px; height: 72px; border-radius: 18px; display: grid; place-items: center; padding: 10px;
  background: #fff; border: 1px solid rgba(255,255,255,.08);
  transition: transform .5s var(--ease), box-shadow .5s;
}
.logo-chip--light { background: #fff; }
.logo-chip--mono { background: linear-gradient(160deg, #262626, #161616); }
.logo-chip--raydify { background: linear-gradient(135deg, #2f6bff, #c026d3); }
.logo-chip--raydify .logo-text { color: #fff; font-size: 26px; }
.logo-chip img { width: 100%; height: 100%; object-fit: contain; }
.logo-text { font-family: var(--font-h); font-weight: 700; font-size: 22px; letter-spacing: -.04em; color: var(--ink); }
.logo-text b { color: var(--accent); }
.card:hover .logo-chip { transform: translateZ(30px) rotate(-4deg); box-shadow: 0 16px 34px rgba(0,0,0,.4); }
.card-titles { flex: 1; min-width: 200px; }
.card-role { font-family: var(--font-h); font-weight: 600; font-size: clamp(20px, 2.3vw, 28px); letter-spacing: -.02em; line-height: 1.15; }
.card-company { margin-top: 5px; color: var(--ink-2); font-size: 15px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card-type { font-family: var(--font-m); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(245,130,32,.35); }
.card-now { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-m); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #3ddc84; padding: 7px 13px; border-radius: 999px; background: rgba(61,220,132,.08); border: 1px solid rgba(61,220,132,.25); }
.card-meta { margin-top: 18px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-family: var(--font-m); font-size: 13px; color: var(--ink-3); }
.card-dates { color: var(--ink); }
.card-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); }
.card-text { margin-top: 16px; color: var(--ink-2); font-size: 16px; max-width: 68ch; }
.card-points { margin-top: 16px; display: grid; gap: 10px; }
.card-points li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: 15px; opacity: 0; transform: translateX(-12px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(.5s + var(--i, 0) * 110ms); }
.card-points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: rgb(var(--c)); border-radius: 2px; }
.entry.in .card-points li { opacity: 1; transform: none; }
.tags { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-family: var(--font-m); font-size: 12px; letter-spacing: .03em; color: var(--ink-2); padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); opacity: 0; transform: scale(.85); transition: opacity .6s var(--ease), transform .6s var(--ease), border-color .3s, color .3s; transition-delay: calc(.7s + var(--i, 0) * 60ms); }
.entry.in .tags li { opacity: 1; transform: none; }
.tags li:hover { border-color: rgba(var(--c), .6); color: var(--ink); }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.card-link svg { color: var(--accent); transition: transform .3s var(--ease); }
.card-link:hover svg { transform: translateX(4px); }

/* nested projects inside the freelance card */
.projects { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.project {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 14px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
  opacity: 0; transform: translateY(14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease), border-color .3s, background .3s;
  transition-delay: calc(.45s + var(--i, 0) * 90ms);
}
.entry.in .project { opacity: 1; transform: none; }
.project:hover { border-color: rgba(var(--c), .5); background: rgba(255,255,255,.05); }
.project-logo { flex-shrink: 0; width: 46px; height: 46px; border-radius: 10px; background: #fff; display: grid; place-items: center; padding: 6px; overflow: hidden; }
.project-logo img { width: 100%; height: 100%; object-fit: contain; }
.project-logo--text { background: linear-gradient(160deg, #2a2a2a, #181818); color: var(--accent); font-family: var(--font-h); font-weight: 700; font-size: 15px; letter-spacing: -.02em; }
.project-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.project-name { font-weight: 600; font-size: 14px; color: var(--ink); }
.project-desc { font-size: 12.5px; color: var(--ink-3); line-height: 1.4; }
.project-year { flex-shrink: 0; font-family: var(--font-m); font-size: 12px; color: var(--ink-2); }

/* the certificate */
.cert { margin: 22px 0 0; max-width: 300px; }
.cert img {
  border-radius: 12px; border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
  transition: transform .6s var(--ease), box-shadow .6s;
}
.cert:hover img { transform: translateY(-6px) rotate(-1deg) scale(1.02); box-shadow: 0 34px 80px rgba(0,0,0,.6), 0 0 40px rgba(255,212,121,.15); }
.cert figcaption { margin-top: 10px; font-family: var(--font-m); font-size: 11px; letter-spacing: .06em; color: var(--ink-3); }

/* ================================================================
   EDUCATION
   ================================================================ */
.edu { position: relative; z-index: 2; padding: 60px 0 40px; }
.edu-grid { max-width: var(--w); margin: 44px auto 0; padding: 0 clamp(18px, 4vw, 44px); display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.edu-card {
  position: relative; overflow: hidden;
  padding: clamp(22px, 3vw, 32px); border-radius: 20px;
  background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line);
  --c: 245,130,32; --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%;
  transition: opacity 1s var(--ease), transform 1s var(--ease), border-color .4s, box-shadow .4s;
}
.edu-card:nth-child(2) { --d: .15s; }
.edu-card.is-tilting { transition: transform .12s linear, border-color .4s, box-shadow .4s; transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)); }
.edu-card:hover { border-color: rgba(var(--c), .45); box-shadow: 0 30px 70px rgba(0,0,0,.45); }
.edu-card:hover .card-glow { opacity: 1; }
.edu-k { font-family: var(--font-m); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.edu-t { margin-top: 12px; font-size: clamp(19px, 2vw, 24px); }
.edu-m { margin-top: 10px; font-family: var(--font-m); font-size: 13px; color: var(--ink-3); }
.edu-d { margin-top: 14px; color: var(--ink-2); font-size: 15px; }

/* ================================================================
   CTA + FOOTER
   ================================================================ */
.cta { position: relative; z-index: 2; padding: 80px 0 100px; }
.cta-inner { max-width: var(--w); margin: 0 auto; padding: clamp(36px, 6vw, 80px) clamp(22px, 5vw, 70px); border-radius: 28px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #1b1b1b, #121212); border: 1px solid var(--line); text-align: center; }
.cta-inner::before { content: ""; position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent 0 70%, rgba(245,130,32,.18) 85%, transparent 100%); animation: ringSpin 14s linear infinite; pointer-events: none; }
.cta-inner > * { position: relative; }
.cta .eyebrow { justify-content: center; }
.cta-title { margin-top: 18px; font-size: clamp(30px, 4.2vw, 52px); }
.cta-sub { margin-top: 14px; color: var(--ink-2); }
.cta-actions { margin-top: 30px; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

.foot { position: relative; z-index: 2; text-align: center; padding: 0 20px 34px; font-family: var(--font-m); font-size: 12px; color: var(--ink-3); }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--accent); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 110px; gap: 36px; }
  .hero-visual { order: -1; }
  .portrait { width: min(62vw, 260px); }
  .portrait-badge--a { left: -10%; }
  .portrait-badge--b { right: -8%; }
  .scroll-cue { display: none; }
  :root { --rail-x: 10px; }
  .timeline .section-head { padding-left: clamp(18px, 4vw, 44px); }
  .entry { padding-left: calc(var(--rail-x) + 26px); }
  .year-bg { display: none; }
}
@media (max-width: 560px) {
  .topbar { padding: 14px 16px; }
  .pill span { display: none; }
  .pill { padding: 10px; }
  .hero-title { font-size: clamp(34px, 9.6vw, 56px); }
  .hero-stats { gap: 10px 22px; }
  .card-head { gap: 14px; }
  .logo-chip { width: 58px; height: 58px; border-radius: 14px; }
  .card-now { order: -1; width: fit-content; }
  .projects { grid-template-columns: 1fr; }
  .project-year { display: none; }
  .portrait-badge { padding: 8px 11px; }
  .badge-v { font-size: 12px; }
}

/* ================================================================
   REDUCED MOTION — the page becomes a calm, static document
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .split .ch, .reveal, .reveal-io, .card, .card-points li, .tags li, .project, .split-words .w > span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .rail-fill { transform: scaleY(1) !important; }
  .node { opacity: 1 !important; }
  .orb, .field, .cursor, .scroll-cue, .year-bg { display: none !important; }
  html { scroll-behavior: auto; }
}
