/* ============================================================
   Ritik Singh — Portfolio
   "Sakura Night" — violet night sky, cherry-blossom pink,
   moonlit lavender, gold sparks. Cursor-reactive petal shader.
   ============================================================ */

:root {
  /* surfaces (night) */
  --night: #141020;
  --paper: #141020;        /* legacy alias = page bg */
  --paper-2: #1B1530;
  --fog: #1E1833;
  --card: #1E1833;
  --card-2: #241D3D;

  /* text */
  --ink: #E9DEEC;
  --headline: #FBF1F8;
  --muted: #A294B2;
  --faint: #6C6182;

  /* sakura palette */
  --sakura: #F6A7C6;
  --sakura-deep: #ED6BA3;
  --petal: #FBD3E4;
  --blossom: #FFE6F0;
  --lilac: #B9A8EE;
  --gold: #F2C879;

  /* legacy aliases → mapped to sakura world */
  --teal: #F6A7C6;
  --teal-deep: #E6AECF;
  --carolina: #B9A8EE;
  --carolina-soft: rgba(185,168,238,0.14);
  --mango: #F2C879;
  --mango-deep: #E8A23C;

  /* lines */
  --line: rgba(255,255,255,0.10);
  --line-soft: rgba(255,255,255,0.06);

  /* type */
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-gentle: cubic-bezier(0.4, 0, 0.2, 1);

  --gutter: clamp(20px, 5vw, 80px);
  --maxw: 1340px;
}

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

html { scroll-behavior: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  font-family: var(--font-body);
  background: var(--night);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.5;
  overflow-x: clip;
  cursor: none;
}

@media (pointer: coarse) { body { cursor: auto; } }

::selection { background: var(--sakura); color: var(--night); }

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

/* ============================================================
   SHADER CANVAS (fixed, behind everything)
   ============================================================ */
#shader-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  display: block;
  pointer-events: none;
}

/* night vignette + faint top glow */
.veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(130% 95% at 50% 0%, rgba(246,167,198,0.06), transparent 42%),
    radial-gradient(100% 90% at 50% 120%, transparent 55%, rgba(0,0,0,0.55) 100%);
}

main, .site-header, .site-footer { position: relative; z-index: 2; }

/* ============================================================
   PRELOADER
   ============================================================ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--night);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 28px;
  animation: preloader-failsafe 0s linear 6s forwards;
}
@keyframes preloader-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }

.pl-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 9vw, 120px);
  letter-spacing: -0.04em;
  color: var(--headline);
  line-height: 1;
  position: relative;
  overflow: hidden;
}
.pl-mark span { display: inline-block; transform: translateY(110%); }

.pl-bar-wrap {
  width: min(340px, 60vw);
  height: 2px;
  background: rgba(255,255,255,0.12);
  position: relative;
  overflow: hidden;
}
.pl-bar { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--sakura), var(--gold)); }
.pl-count {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  width: min(340px, 60vw);
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  z-index: 90;
  pointer-events: none;
  border-radius: 50%;
  mix-blend-mode: normal;
  will-change: transform;
}
.cursor-dot {
  width: 7px; height: 7px;
  background: var(--sakura);
  box-shadow: 0 0 12px rgba(246,167,198,0.9), 0 0 24px rgba(246,167,198,0.5);
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 1.5px solid rgba(246,167,198,0.6);
  transform: translate(-50%, -50%);
  transition: width .3s var(--ease), height .3s var(--ease),
    border-color .3s var(--ease), background .3s var(--ease);
}
.cursor-ring.is-hover {
  width: 64px; height: 64px;
  border-color: rgba(246,167,198,0);
  background: rgba(246,167,198,0.18);
}
.cursor-ring.is-down { width: 28px; height: 28px; }
.cursor-label {
  position: fixed; top: 0; left: 0; z-index: 91;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--headline);
  transform: translate(-50%, -50%) scale(0);
  transition: transform .3s var(--ease);
  pointer-events: none; white-space: nowrap;
}
.cursor-label.show { transform: translate(-50%, -50%) scale(1); }
@media (pointer: coarse) { .cursor-dot, .cursor-ring, .cursor-label { display: none; } }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.scrolled {
  background: rgba(18,14,28,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-top: 14px; padding-bottom: 14px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.03em;
  color: var(--headline);
  display: flex; align-items: center; gap: 10px;
}
.brand .blip { width: 9px; height: 9px; border-radius: 50%; background: var(--sakura); box-shadow: 0 0 0 0 rgba(246,167,198,.5); animation: blip 2.4s var(--ease-gentle) infinite; }
@keyframes blip { 0%,100%{ box-shadow: 0 0 0 0 rgba(246,167,198,.5);} 50%{ box-shadow: 0 0 0 7px rgba(246,167,198,0);} }

.head-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 34px); }
.head-nav a {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); position: relative; padding: 4px 0;
}
.head-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%;
  background: var(--sakura); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.head-nav a:hover { color: var(--headline); }
.head-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.head-nav .nav-cta { color: var(--headline); border: 1.5px solid rgba(255,255,255,0.18); border-radius: 999px; padding: 8px 16px; }
.head-nav .nav-cta::after { display: none; }
.head-nav .nav-cta:hover { background: var(--sakura); color: var(--night); border-color: var(--sakura); }
@media (max-width: 720px){ .head-nav .nav-link { display: none; } }

/* scroll progress */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--sakura), var(--gold)); box-shadow: 0 0 10px rgba(246,167,198,0.6); z-index: 60; }

/* ============================================================
   LAYOUT
   ============================================================ */
section { position: relative; padding: clamp(90px, 14vh, 180px) var(--gutter); }
.wrap { max-width: var(--maxw); margin: 0 auto; width: 100%; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--sakura); display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: var(--sakura); display: inline-block; }

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: clamp(48px, 7vh, 90px); }
.sec-title { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.035em; color: var(--headline); font-size: clamp(38px, 6vw, 76px); line-height: 0.98; }
.sec-num { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.2em; color: var(--faint); }

/* ============================================================
   HERO
   ============================================================ */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: 120px; }
.hero .wrap { display: block; }
.hero-eyebrow { margin-bottom: clamp(22px, 4vh, 40px); }
.hero-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 7.4vw, 116px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--headline);
}
.hero-headline .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-headline .line > span { display: inline-block; white-space: nowrap; will-change: transform; }
@media (max-width: 640px){
  .hero-headline .line { overflow: visible; }
  .hero-headline .line > span { white-space: normal; }
}
.hero-headline em { font-style: normal; position: relative; color: var(--sakura); }
.hero-headline em::after {
  content: ""; position: absolute; left: -0.02em; right: -0.02em; bottom: 0.08em; height: 0.10em;
  background: var(--gold); z-index: -1; transform: scaleX(0); transform-origin: left;
}
.hero-headline em.drawn::after { transform: scaleX(1); transition: transform .7s var(--ease) .2s; }

.hero-sub {
  margin-top: clamp(28px, 5vh, 52px);
  font-size: clamp(17px, 1.5vw, 22px);
  max-width: 56ch;
  color: var(--ink);
  line-height: 1.55;
}
.hero-sub strong { color: var(--headline); font-weight: 700; }

.hero-meta { margin-top: clamp(30px, 5vh, 56px); display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; padding: 15px 26px;
  background: var(--sakura); color: var(--night); border: 1.5px solid var(--sakura);
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
  will-change: transform;
}
.btn:hover { box-shadow: 0 12px 36px -12px rgba(246,167,198,0.6); }
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn.ghost { background: transparent; color: var(--headline); border-color: rgba(255,255,255,0.22); }
.btn.ghost:hover { background: var(--sakura); color: var(--night); border-color: var(--sakura); }

.scroll-cue { position: absolute; bottom: 30px; left: var(--gutter); display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.scroll-cue .track { width: 1.5px; height: 46px; background: rgba(255,255,255,0.16); position: relative; overflow: hidden; }
.scroll-cue .track::after { content:""; position:absolute; left:0; top:-50%; width:100%; height:50%; background: var(--sakura); animation: drip 2.2s var(--ease-gentle) infinite; }
@keyframes drip { 0%{ transform: translateY(0);} 100%{ transform: translateY(300%);} }

/* ============================================================
   MARQUEE (stack ticker)
   ============================================================ */
.marquee { overflow: hidden; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.marquee-track { display: flex; gap: 0; white-space: nowrap; width: max-content; will-change: transform; }
.marquee-track span { font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2.6vw, 34px); letter-spacing: -0.02em; color: var(--teal-deep); padding: 0 28px; display: inline-flex; align-items: center; }
.marquee-track .dot { color: var(--gold); font-size: 0.7em; }

/* ============================================================
   ABOUT / STATEMENT
   ============================================================ */
.statement { font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 3.8vw, 52px); line-height: 1.18; letter-spacing: -0.02em; color: var(--headline); max-width: 22ch; }
.statement .w { display: inline-block; opacity: 0.16; transition: opacity .5s var(--ease); }
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
@media (max-width: 880px){ .about-grid { grid-template-columns: 1fr; } }
.about-side { display: flex; flex-direction: column; gap: 28px; padding-top: 10px; }
.about-side p { color: var(--muted); font-size: 17px; line-height: 1.6; }
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 18px; }
.stat .n { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 4vw, 54px); color: var(--sakura); letter-spacing: -0.03em; line-height: 1; }
.stat .l { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

/* ============================================================
   PIPELINE — pinned scrollytelling
   ============================================================ */
.pipeline-sec { position: relative; padding: 0; }
.pipeline-pin { min-height: 100vh; display: flex; align-items: center; padding: clamp(110px, 16vh, 200px) var(--gutter) clamp(80px, 12vh, 140px); }
.pipeline-inner { width: 100%; }
.pipeline-head { margin-bottom: clamp(40px, 7vh, 80px); }
.pipeline-head h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 5vw, 66px); letter-spacing: -0.035em; color: var(--headline); line-height: 1; margin-top: 16px; max-width: 20ch; }

.pipeline-track { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: clamp(40px, 7vh, 76px); }
.pipe-line { position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: rgba(255,255,255,0.10); border-radius: 2px; overflow: hidden; }
.pipe-line-fill { position: absolute; left: 0; top: 0; height: 100%; width: 0%; background: linear-gradient(90deg, var(--sakura), var(--gold)); box-shadow: 0 0 12px rgba(246,167,198,0.7); }
.pipe-node { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.pipe-node .dot { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1.5px solid rgba(255,255,255,0.12); color: var(--muted); transition: transform .45s var(--ease), background .45s var(--ease), border-color .45s var(--ease), color .45s var(--ease), box-shadow .45s var(--ease); }
.pipe-node .dot svg { width: 22px; height: 22px; }
.pipe-node .lab { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); transition: color .45s var(--ease); text-align: center; }
.pipe-node.done .dot { border-color: var(--sakura); color: var(--sakura); }
.pipe-node.done .lab { color: var(--ink); }
.pipe-node.current .dot { border-color: var(--sakura); color: var(--night); background: var(--sakura); transform: scale(1.14); box-shadow: 0 0 0 6px rgba(246,167,198,0.16), 0 0 34px rgba(246,167,198,0.6); }
.pipe-node.current .lab { color: var(--headline); }

.pipeline-caption { max-width: 62ch; min-height: 200px; }
.pc-num { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.2em; color: var(--sakura); margin-bottom: 14px; }
.pc-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3.4vw, 46px); letter-spacing: -0.03em; color: var(--headline); line-height: 1.04; margin-bottom: 16px; }
.pc-body { font-size: clamp(16px, 1.5vw, 20px); line-height: 1.6; color: var(--ink); }
.pipeline-caption.swap .pc-num, .pipeline-caption.swap .pc-title, .pipeline-caption.swap .pc-body { animation: capIn .5s var(--ease) both; }
.pipeline-caption.swap .pc-title { animation-delay: .04s; }
.pipeline-caption.swap .pc-body { animation-delay: .08s; }
@keyframes capIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 680px){
  .pipe-node .lab { display: none; }
  .pipe-node .dot { width: 46px; height: 46px; }
  .pipe-line { top: 22px; }
}

/* ============================================================
   WORK
   ============================================================ */
.work-list { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 34px); }
.work-card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: 28px; padding: clamp(28px, 4vw, 52px);
  display: grid; grid-template-columns: 0.8fr 2fr; gap: clamp(24px, 4vw, 60px);
  overflow: hidden; will-change: transform;
  transition: border-color .5s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease);
}
.work-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(60% 120% at var(--mx,50%) var(--my,0%), rgba(246,167,198,0.16), transparent 60%);
  transition: opacity .5s var(--ease); pointer-events: none;
}
.work-card:hover { border-color: rgba(246,167,198,0.4); box-shadow: 0 30px 70px -40px rgba(237,107,163,0.6); }
.work-card:hover::before { opacity: 1; }
@media (max-width: 820px){ .work-card { grid-template-columns: 1fr; gap: 20px; } }

.work-meta { display: flex; flex-direction: column; gap: 14px; }
.work-co { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 2.8vw, 40px); letter-spacing: -0.03em; color: var(--headline); line-height: 1; }
.work-role { font-size: 16px; color: var(--sakura); font-weight: 600; }
.work-dates { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted); }
.work-place { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--faint); }
.work-tag { align-self: flex-start; margin-top: 4px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--petal); background: var(--carolina-soft); border: 1px solid rgba(246,167,198,0.22); border-radius: 999px; padding: 5px 12px; }

.work-points { display: flex; flex-direction: column; gap: 18px; }
.work-point { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.work-point .ix { font-family: var(--font-mono); font-size: 11px; color: var(--gold); padding-top: 4px; }
.work-point p { font-size: 16px; line-height: 1.55; color: var(--ink); }
.work-point p b { color: var(--headline); font-weight: 700; }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 6px; }
.chip { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--teal-deep); background: rgba(185,168,238,0.12); border: 1px solid rgba(246,167,198,0.18); border-radius: 999px; padding: 4px 10px; }

/* ============================================================
   FEATURE (Hackathon spotlight)
   ============================================================ */
.feature { background: linear-gradient(150deg, #271D40 0%, #1A1430 60%, #20183A 100%); color: var(--headline); border-radius: 36px; padding: clamp(36px, 6vw, 80px); position: relative; overflow: hidden; border: 1px solid var(--line); }
.feature .eyebrow { color: var(--gold); }
.feature .eyebrow::before { background: var(--gold); }
.feature-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(36px, 5vw, 70px); align-items: center; position: relative; z-index: 2; }
@media (max-width: 880px){ .feature-grid { grid-template-columns: 1fr; } }
.feature h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 4.4vw, 64px); letter-spacing: -0.035em; line-height: 1; margin: 22px 0 20px; color: var(--headline); }
.feature h3 .award { color: var(--gold); }
.feature p { color: rgba(251,241,248,0.74); font-size: 17px; line-height: 1.6; max-width: 50ch; }
.feature .chip-row .chip { color: var(--lilac); background: rgba(185,168,238,0.12); border-color: rgba(185,168,238,0.28); }
.feature-side { display: flex; flex-direction: column; gap: 18px; }
.agent-pill { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; background: rgba(255,255,255,0.03); will-change: transform; }
.agent-pill .ico { width: 38px; height: 38px; border-radius: 10px; background: rgba(242,200,121,0.16); display: grid; place-items: center; color: var(--gold); flex: none; }
.agent-pill .ico svg { width: 19px; height: 19px; }
.agent-pill b { display: block; font-size: 15px; color: var(--headline); font-weight: 700; }
.agent-pill small { font-family: var(--font-mono); font-size: 11px; color: rgba(233,222,236,0.55); }
.feature-glow { position: absolute; width: 60vw; height: 60vw; border-radius: 50%; background: radial-gradient(circle, rgba(237,107,163,0.45), transparent 65%); filter: blur(20px); top: -20%; right: -15%; z-index: 1; pointer-events: none; }

/* ============================================================
   PROJECTS
   ============================================================ */
.proj { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.proj-card { grid-column: span 12; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: clamp(28px, 4vw, 54px); position: relative; overflow: hidden; transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease); will-change: transform; }
.proj-card:hover { border-color: rgba(246,167,198,0.35); box-shadow: 0 30px 70px -42px rgba(237,107,163,0.55); }
.proj-card .num { font-family: var(--font-mono); font-size: 12px; color: var(--faint); letter-spacing: 0.2em; }
.proj-card h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3.4vw, 46px); letter-spacing: -0.03em; color: var(--headline); margin: 12px 0 14px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.proj-card p { color: var(--ink); font-size: 16.5px; line-height: 1.6; max-width: 70ch; }
.proj-link { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sakura); display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; }
.proj-link .arr { transition: transform .3s var(--ease); }
.proj-card:hover .proj-link .arr { transform: translate(3px,-3px); }

/* ============================================================
   SKILLS
   ============================================================ */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
@media (max-width: 880px){ .skills-grid { grid-template-columns: 1fr; } }
.skill-col h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sakura); margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.skill-col ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.skill-col li { font-size: 15px; color: var(--ink); padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,0.02); transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.skill-col li:hover { background: var(--sakura); color: var(--night); border-color: var(--sakura); transform: translateY(-3px); }

/* ============================================================
   EDUCATION
   ============================================================ */
.edu-list { display: flex; flex-direction: column; }
.edu-item { display: grid; grid-template-columns: 0.9fr 2fr 0.7fr; gap: 30px; padding: 30px 0; border-top: 1px solid var(--line); align-items: center; }
.edu-item:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 720px){ .edu-item { grid-template-columns: 1fr; gap: 8px; } }
.edu-item .when { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: 0.06em; }
.edu-item h4 { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -0.02em; color: var(--headline); }
.edu-item .deg { color: var(--sakura); font-size: 15px; margin-top: 4px; }
.edu-item .gpa { font-family: var(--font-mono); font-size: 14px; color: var(--teal-deep); text-align: right; }
@media (max-width: 720px){ .edu-item .gpa { text-align: left; } }

/* ============================================================
   FOOTER / CONTACT
   ============================================================ */
.site-footer { padding: clamp(80px, 12vh, 160px) var(--gutter) 50px; }
.contact-head { font-family: var(--font-display); font-weight: 800; font-size: clamp(46px, 11vw, 170px); letter-spacing: -0.045em; line-height: 0.92; color: var(--headline); }
.contact-head .cw { display: inline-block; }
.contact-sub { font-size: clamp(17px, 1.6vw, 22px); color: var(--muted); max-width: 46ch; margin: 30px 0 44px; line-height: 1.55; }
.contact-links { display: flex; flex-wrap: wrap; gap: 14px; }
.contact-links a { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; border: 1.5px solid rgba(255,255,255,0.18); border-radius: 999px; padding: 13px 22px; display: inline-flex; align-items: center; gap: 10px; transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); }
.contact-links a:hover { background: var(--sakura); color: var(--night); border-color: var(--sakura); }
.foot-base { margin-top: clamp(60px, 10vh, 120px); padding-top: 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; font-family: var(--font-mono); font-size: 12px; color: var(--faint); letter-spacing: 0.04em; }

/* ============================================================
   REVEAL primitives (set initial state only when JS active)
   ============================================================ */
.js .reveal { opacity: 0; transform: translateY(34px); }
.js .reveal-now { opacity: 0; }

/* ============================================================
   HIDE NATIVE SCROLLBAR (scroll still works; progress bar guides)
   ============================================================ */
html { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0; height: 0; display: none; }
* { scrollbar-width: none; }
*::-webkit-scrollbar { width: 0; height: 0; display: none; }

/* ============================================================
   ABOUT — who-I-am block + text stats
   ============================================================ */
.about-main { display: flex; flex-direction: column; gap: clamp(34px, 5vh, 56px); }
.who { display: flex; flex-direction: column; gap: 26px; max-width: 30ch; }
.who-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 56px); max-width: none; margin-top: clamp(40px, 6vh, 76px); padding-top: clamp(34px, 4.5vh, 54px); border-top: 1px solid var(--line); }
@media (max-width: 760px){ .who-row { grid-template-columns: 1fr; gap: 24px; } }
.who-item { display: flex; flex-direction: column; gap: 8px; padding-left: 20px; border-left: 2px solid rgba(246,167,198,0.35); }
.who-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sakura); }
.who-item p { color: var(--muted); font-size: 16px; line-height: 1.6; }
.stat .n { line-height: 1; }
.stat .n.n-text { font-size: clamp(34px, 4vw, 54px); }
.stat .l { min-height: 2.7em; }

/* ============================================================
   WORK — clickable case-study card
   ============================================================ */
a.work-card-link { text-decoration: none; cursor: none; }
.work-cta { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sakura); opacity: 0.85; transition: gap .35s var(--ease), color .35s var(--ease); }
.work-card-link:hover .work-cta { gap: 14px; color: var(--blossom); }
.work-card-link::after {
  content: ""; position: absolute; top: 0; right: 0; width: 0; height: 0;
  border-style: solid; border-width: 0 34px 34px 0;
  border-color: transparent rgba(246,167,198,0.5) transparent transparent;
  opacity: 0; transition: opacity .4s var(--ease);
}
.work-card-link:hover::after { opacity: 1; }
.work-card-link .work-meta { display: flex; flex-direction: column; }

/* ============================================================
   PROJECTS — disclaimer note + card grid
   ============================================================ */
.proj-note { display: flex; gap: 16px; align-items: flex-start; padding: 20px 24px; margin-bottom: clamp(36px, 5vh, 56px); border: 1px dashed rgba(242,200,121,0.4); border-radius: 18px; background: rgba(242,200,121,0.06); max-width: 760px; }
.proj-note-ico { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--night); font-family: var(--font-display); font-weight: 800; font-size: 16px; line-height: 1; }
.proj-note p { color: var(--ink); font-size: 15.5px; line-height: 1.55; margin: 0; }

.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 26px); }
@media (max-width: 960px){ .proj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px){ .proj-grid { grid-template-columns: 1fr; } }
.pcard { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 2.4vw, 30px); position: relative; overflow: hidden; transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease); will-change: transform; }
.pcard::before { content: ""; position: absolute; inset: 0; opacity: 0; background: radial-gradient(80% 60% at 50% 0%, rgba(246,167,198,0.12), transparent 70%); transition: opacity .5s var(--ease); pointer-events: none; }
.pcard:hover { transform: translateY(-5px); border-color: rgba(246,167,198,0.32); box-shadow: 0 26px 56px -40px rgba(237,107,163,0.6); }
.pcard:hover::before { opacity: 1; }
.pcard-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.pcard .num { font-family: var(--font-mono); font-size: 11px; color: var(--faint); letter-spacing: 0.2em; }
.pcard-links { display: flex; gap: 12px; }
.plink { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--muted); position: relative; transition: color .3s var(--ease); }
.plink:hover { color: var(--headline); }
.plink.demo { color: var(--sakura); }
.pcard h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.025em; color: var(--headline); line-height: 1.02; }
.pcard-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--sakura); margin: 8px 0 12px; }
.pcard p { color: var(--ink); font-size: 15px; line-height: 1.55; flex: 1; }
.pcard .chip-row { margin-top: 16px; }

/* ============================================================
   CASE STUDY (gimmie.html)
   ============================================================ */
.cs-back { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; transition: gap .3s var(--ease), color .3s var(--ease); }
.cs-back:hover { gap: 14px; color: var(--headline); }
.cs-hero { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding-top: 140px; }
.cs-hero .cs-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 7vw, 104px); letter-spacing: -0.04em; line-height: 0.96; color: var(--headline); max-width: 16ch; }
.cs-lede { margin-top: clamp(26px, 4vh, 44px); font-size: clamp(18px, 1.6vw, 24px); line-height: 1.6; color: var(--ink); max-width: 60ch; }
.cs-lede strong { color: var(--headline); font-weight: 700; }
.cs-context { max-width: 64ch; }
.cs-context p { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.7; color: var(--ink); }
.cs-context p + p { margin-top: 22px; }
.cs-context b { color: var(--headline); font-weight: 700; }

.cs-block { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(34px, 5vw, 76px); align-items: start; padding: clamp(50px, 8vh, 110px) 0; border-top: 1px solid var(--line); }
@media (max-width: 900px){ .cs-block { grid-template-columns: 1fr; gap: 30px; } }
.cs-block-head { position: sticky; top: 110px; }
@media (max-width: 900px){ .cs-block-head { position: static; } }
.cs-kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sakura); }
.cs-block h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 3.6vw, 52px); letter-spacing: -0.035em; color: var(--headline); line-height: 1; margin: 16px 0 0; }
.cs-body p { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.7; color: var(--ink); }
.cs-body p + p { margin-top: 20px; }
.cs-body b { color: var(--headline); font-weight: 700; }
.cs-body code { font-family: var(--font-mono); font-size: 0.86em; background: rgba(246,167,198,0.12); border: 1px solid rgba(246,167,198,0.2); padding: 1px 6px; border-radius: 6px; color: var(--blossom); }

/* horizontal flow stepper (static, all active) */
.flow { display: flex; align-items: flex-start; gap: 8px; margin: 6px 0 30px; position: relative; }
.flow::before { content: ""; position: absolute; left: 26px; right: 26px; top: 25px; height: 2px; background: linear-gradient(90deg, var(--sakura), var(--gold)); opacity: 0.5; }
.flow-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; flex: 1; text-align: center; }
.flow-step .fdot { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--card-2); border: 1.5px solid rgba(246,167,198,0.5); color: var(--sakura); }
.flow-step .fdot svg { width: 20px; height: 20px; }
.flow-step .flab { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--ink); }
@media (max-width: 560px){ .flow-step .flab { display: none; } .flow::before { top: 21px; } .flow-step .fdot { width: 44px; height: 44px; } }

.cs-pull { font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.3; letter-spacing: -0.02em; color: var(--headline); border-left: 3px solid var(--gold); padding-left: 22px; margin: 30px 0; }

.cs-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding: clamp(50px, 8vh, 100px) 0 0; border-top: 1px solid var(--line); }

/* ============================================================
   CONTACT CTA + Calendly popup theming
   ============================================================ */
.contact-cta { margin: 0 0 26px; }
/* Calendly injects a full-screen overlay above everything; the site uses
   cursor:none, so force a real cursor back inside the modal. */
.calendly-overlay, .calendly-overlay *, .calendly-popup, .calendly-popup * { cursor: auto !important; }
.calendly-overlay .calendly-popup-close { cursor: pointer !important; }



/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal, .js .reveal-now { opacity: 1 !important; transform: none !important; }
  body { cursor: auto; }
  .cursor-dot, .cursor-ring, .cursor-label { display: none; }
}
