/* ============================================================
   yatishgautam.com — hand-rolled, no framework
   ============================================================ */

:root {
  --bg: #0a0c0f;
  --bg-raise: #101319;
  --bg-card: #12161d;
  --ink: #e8ecf1;
  --ink-dim: #9aa3b2;
  --ink-faint: #5b6472;
  --accent: #c6f542;
  --accent-soft: rgba(198, 245, 66, 0.12);
  --accent-glow: rgba(198, 245, 66, 0.35);
  --line: rgba(255, 255, 255, 0.07);
  --font-display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: "Fragment Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #0a0c0f; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; }

.serif-accent {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: 1.06em; letter-spacing: 0.01em;
}
em.serif-accent { color: var(--accent); }

/* ---------- load curtain ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg-raise);
  display: grid; place-items: center;
  animation: curtainUp 0.7s cubic-bezier(0.7, 0, 0.2, 1) 1.35s forwards;
}
.loader__mark {
  font-family: var(--font-mono); font-size: 34px; color: var(--accent);
  animation: markOut 0.3s ease 1.15s forwards;
}
.loader__caret { animation: blink 0.5s steps(1) infinite; }
.loader__bar {
  position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: var(--accent); transform-origin: left;
  transform: scaleX(0);
  animation: loadBar 1.2s cubic-bezier(0.65, 0, 0.35, 1) 0.1s forwards;
}
@keyframes loadBar { to { transform: scaleX(1); } }
@keyframes markOut { to { opacity: 0; transform: translateY(-24px); } }
@keyframes curtainUp { to { transform: translateY(-100%); visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .loader { display: none; } }

a { color: inherit; text-decoration: none; }

.accent { color: var(--accent); }

/* ---------- ambient layers ---------- */
.noise {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.03 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-ring {
  position: fixed; z-index: 400; width: 30px; height: 30px;
  border: 1.5px solid var(--accent); border-radius: 50%;
  pointer-events: none; opacity: 0;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out), opacity 0.3s, background 0.25s;
  left: 50vw; top: 50vh;
}
.cursor-ring.on { opacity: 0.65; }
.cursor-ring.hovering {
  width: 54px; height: 54px;
  background: rgba(198, 245, 66, 0.08);
}
@media (pointer: coarse) { .cursor-ring { display: none; } }

.cursor-glow {
  position: fixed; z-index: 0; width: 600px; height: 600px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(198,245,66,0.07) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  left: 50vw; top: 30vh;
  transition: opacity 0.4s;
}

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2.5px; width: 0%;
  background: linear-gradient(90deg, var(--accent), #7ef5c0);
  z-index: 200; box-shadow: 0 0 12px var(--accent-glow);
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px clamp(20px, 5vw, 64px);
  transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 12, 15, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px clamp(20px, 5vw, 64px);
  border-bottom-color: var(--line);
}
.nav__logo {
  font-family: var(--font-mono); font-size: 20px; font-weight: 500;
  color: var(--accent); letter-spacing: -1px;
}
.blink { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.nav__links { display: flex; gap: clamp(16px, 3vw, 36px); align-items: center; }
.nav__links a {
  font-size: 14.5px; color: var(--ink-dim); font-weight: 500;
  position: relative; transition: color 0.25s;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1.5px; width: 0;
  background: var(--accent); transition: width 0.3s var(--ease-out);
}
.nav__links a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
  border: 1px solid var(--accent); color: var(--accent) !important;
  padding: 7px 18px; border-radius: 999px; transition: background 0.25s, color 0.25s !important;
}
.nav__cta:hover { background: var(--accent); color: #0a0c0f !important; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: 120px clamp(20px, 6vw, 80px) 80px;
  z-index: 2;
}
.hero__bg { position: absolute; inset: 0; overflow: hidden; z-index: -1; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55;
  animation: drift 18s ease-in-out infinite alternate;
}
.orb--1 {
  width: 55vw; height: 55vw; max-width: 700px; max-height: 700px;
  background: radial-gradient(circle, rgba(198,245,66,0.16), transparent 65%);
  top: -18%; right: -12%;
}
.orb--2 {
  width: 45vw; height: 45vw; max-width: 560px; max-height: 560px;
  background: radial-gradient(circle, rgba(66,150,245,0.13), transparent 65%);
  bottom: -22%; left: -10%;
  animation-delay: -9s;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-60px, 50px) scale(1.15); }
}
@keyframes gridDrift { to { background-position: 72px 72px; } }
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  animation: gridDrift 30s linear infinite;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 30%, transparent 75%);
}

.hero__inner { max-width: 1080px; }

/* ---------- compact avatar ---------- */
.hero__id { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.hero__id .hero__eyebrow { margin-bottom: 0; }
.avatar {
  position: relative; flex: none; width: 62px; height: 62px;
  padding: 0; border: none; background: none; cursor: pointer;
  border-radius: 50%;
}
.avatar img {
  width: 100%; height: 100%; display: block; object-fit: cover;
  border-radius: 50%; border: 2px solid var(--accent);
  filter: saturate(0.8);
  transition: filter 0.4s, transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.avatar::before {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 1.5px solid rgba(198,245,66,0.35);
  animation: avatarRing 3s ease-out infinite;
}
@keyframes avatarRing {
  0% { transform: scale(0.9); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: scale(1.25); opacity: 0; }
}
.avatar:hover img {
  filter: saturate(1.15);
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 6px 24px var(--accent-glow);
}
.avatar__wave {
  position: absolute; right: -10px; bottom: -6px; font-size: 22px;
  opacity: 0; transform: scale(0.4) rotate(-30deg);
  transition: opacity 0.3s, transform 0.35s var(--ease-out);
  transform-origin: 70% 80%; pointer-events: none;
}
.avatar:hover .avatar__wave { opacity: 1; transform: none; animation: wave 1.2s ease-in-out infinite; }
@keyframes wave {
  0%, 55%, 100% { transform: rotate(0); }
  60% { transform: rotate(18deg); } 70% { transform: rotate(-10deg); }
  80% { transform: rotate(18deg); } 90% { transform: rotate(-6deg); }
}
.hero__eyebrow {
  font-family: var(--font-mono); font-size: 14px; color: var(--accent);
  letter-spacing: 0.08em; margin-bottom: 26px;
}
.hero__title {
  font-size: clamp(42px, 7.2vw, 92px);
  letter-spacing: -0.03em; font-weight: 800;
  margin-bottom: 30px;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero__title .word {
  display: inline-block;
  animation: rise 0.9s var(--ease-out) backwards;
}
.line--sub { color: var(--ink-dim); font-size: 0.62em; margin-top: 0.35em; font-weight: 600; }
@keyframes rise { from { transform: translateY(110%); } to { transform: none; } }

.swap-wrap { color: var(--accent); }
.swap { display: inline-block; text-align: left; }
.swap.out { animation: swapOut 0.35s var(--ease-out) forwards; }
.swap.in  { animation: swapIn  0.45s var(--ease-out) forwards; }
@keyframes swapOut { to { opacity: 0; transform: translateY(-60%) rotate(-4deg); } }
@keyframes swapIn  { from { opacity: 0; transform: translateY(60%) rotate(4deg); } to { opacity: 1; transform: none; } }

.hero__sub {
  max-width: 560px; color: var(--ink-dim); font-size: clamp(16px, 1.6vw, 19px);
  margin-bottom: 40px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__status {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 13.5px; color: var(--ink-dim);
  margin-top: 26px;
}

.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 40px; border: 1.5px solid var(--ink-faint); border-radius: 14px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 7px; width: 3px; height: 8px;
  background: var(--accent); border-radius: 2px; transform: translateX(-50%);
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint { 50% { transform: translate(-50%, 14px); opacity: 0.2; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 15.5px;
  padding: 14px 26px; border-radius: 999px;
  transition: transform 0.25s var(--ease-out), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
  will-change: transform;
}
.btn--primary {
  background: var(--accent); color: #0a0c0f;
  box-shadow: 0 0 0 rgba(198,245,66,0);
}
.btn--primary:hover { box-shadow: 0 8px 40px var(--accent-glow); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); background: rgba(255,255,255,0.02); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--big { padding: 18px 34px; font-size: 17px; }
.btn__arrow { transition: transform 0.25s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(5px); }

/* ---------- marquee ---------- */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 18px 0; position: relative; z-index: 2;
  background: var(--bg-raise);
}
.marquee__track {
  display: flex; gap: 34px; width: max-content; align-items: center;
  animation: scroll 36s linear infinite;
  font-family: var(--font-mono); font-size: 15px; color: var(--ink-dim);
  white-space: nowrap;
}
.marquee__track.js-driven { animation: none; will-change: transform; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track i { color: var(--accent); font-style: normal; font-size: 11px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px; background: var(--line);
  border-bottom: 1px solid var(--line);
  position: relative; z-index: 2;
}
.stat {
  background: var(--bg); padding: 44px clamp(20px, 3vw, 44px);
  transition: background 0.35s;
}
.stat:hover { background: var(--bg-raise); }
.stat__num, .stat__plus {
  font-family: var(--font-display); font-size: clamp(38px, 4.5vw, 58px);
  font-weight: 700; color: var(--accent); letter-spacing: -0.02em;
}
.stat__label { display: block; margin-top: 6px; color: var(--ink-dim); font-size: 14.5px; }
.stat__wink { font-style: italic; color: var(--ink-faint); }

/* ---------- sections ---------- */
.section {
  padding: clamp(80px, 12vh, 140px) clamp(20px, 6vw, 80px);
  max-width: 1280px; margin: 0 auto; position: relative; z-index: 2;
}
.section__title {
  font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.02em; margin-bottom: clamp(40px, 6vh, 70px);
  position: relative; display: inline-block; padding-bottom: 14px;
}
.section__title::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--accent), transparent 80%);
  border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform 1s var(--ease-out) 0.45s;
}
.section__title.visible::after { transform: scaleX(1); }

/* masked word reveal (JS splits .mask-words into spans) */
.mask-words .mw {
  display: inline-block; overflow: hidden; vertical-align: bottom;
}
.mask-words .mw > span {
  display: inline-block; transform: translateY(115%);
  transition: transform 0.85s var(--ease-out);
}
.mask-words.visible .mw > span { transform: translateY(0); }
.section__index {
  font-family: var(--font-mono); font-size: 0.45em; color: var(--accent);
  vertical-align: super; margin-right: 14px; font-weight: 400;
}

.tag {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.tag--ghost { color: var(--ink-faint); margin: 0; }

/* ---------- feature (Umshai) ---------- */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px);
  align-items: center; margin-bottom: clamp(60px, 9vh, 100px);
}
.feature__text h3 { font-size: clamp(24px, 2.6vw, 34px); margin-bottom: 18px; letter-spacing: -0.01em; }
.feature__text p { color: var(--ink-dim); margin-bottom: 16px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 20px; }
.chips li {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-dim);
  border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px;
  transition: border-color 0.25s, color 0.25s, transform 0.25s;
}
.chips li:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
/* chips pop in staggered once their card is visible */
.reveal-up .chips li { opacity: 0; transform: translateY(10px) scale(0.92); }
.reveal-up.visible .chips li {
  opacity: 1; transform: none;
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), border-color 0.25s, color 0.25s;
  transition-delay: calc(0.35s + var(--chip-i, 0) * 0.07s), calc(0.35s + var(--chip-i, 0) * 0.07s), 0s, 0s;
}

/* terminal */
.terminal {
  background: #0d1015; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  font-family: var(--font-mono); font-size: 14px;
}
.terminal__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--line);
}
.terminal__bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--ink-faint); opacity: 0.5; }
.terminal__bar i:nth-child(1) { background: #ff5f57; opacity: 1; }
.terminal__bar i:nth-child(2) { background: #febc2e; opacity: 1; }
.terminal__bar i:nth-child(3) { background: #28c840; opacity: 1; }
.terminal__bar span { margin-left: 10px; color: var(--ink-faint); font-size: 12.5px; }
.terminal__body { padding: 22px 20px 26px; min-height: 190px; }
.t-prompt { color: var(--accent); }
.t-caret {
  display: inline-block; width: 8px; height: 16px; background: var(--accent);
  vertical-align: text-bottom; margin-left: 2px; animation: blink 1s steps(1) infinite;
}
.t-steps { margin-top: 16px; display: grid; gap: 9px; }
.t-step {
  color: var(--ink-faint); opacity: 0; transform: translateY(6px);
  transition: opacity 0.4s, transform 0.4s;
}
.t-step.show { opacity: 1; transform: none; }
.t-step em { color: var(--ink-dim); font-style: normal; }
.t-ok { color: var(--accent); }
.t-dim { color: var(--ink-faint); font-style: italic; }

/* ---------- cards ---------- */
.cards__intro {
  color: var(--ink-dim); max-width: 640px; margin-bottom: 34px; font-size: 16.5px;
}
.cards__intro strong { color: var(--accent); font-weight: 600; }
.card h3 a { transition: color 0.25s; }
.card h3 a:hover { color: var(--accent); }
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
}
.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 18px;
  padding: 30px 28px; position: relative; overflow: hidden;
  transition: border-color 0.35s, transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), var(--accent-soft), transparent 45%);
  opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: rgba(198,245,66,0.35); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.card__emoji { font-size: 30px; display: inline-block; transition: transform 0.4s var(--ease-out); }
.card:hover .card__emoji { transform: translateY(-4px) rotate(-8deg) scale(1.15); }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--ink-dim); font-size: 15.5px; }

/* ---------- timeline ---------- */
.timeline { position: relative; padding-left: clamp(28px, 4vw, 48px); }
.timeline__rail {
  position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px;
  background: var(--line); border-radius: 2px; overflow: hidden;
}
.timeline__progress {
  width: 100%; height: 0%; background: linear-gradient(var(--accent), rgba(198,245,66,0.3));
  transition: height 0.1s linear;
}
.tl-item { position: relative; padding-bottom: clamp(44px, 7vh, 64px); max-width: 760px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: calc(-1 * clamp(28px, 4vw, 48px) + 2px); top: 8px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 2.5px solid var(--accent);
  box-shadow: 0 0 0 5px var(--bg), 0 0 18px var(--accent-glow);
}
.tl-when { font-family: var(--font-mono); font-size: 13px; color: var(--accent); margin-bottom: 8px; }
.tl-item h3 { font-size: 23px; margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.tl-role { font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--ink-faint); }
.tl-item p:last-child { color: var(--ink-dim); font-size: 15.5px; }

/* ---------- metro tiles (a little Windows Phone tribute) ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  grid-auto-rows: 108px;
  grid-auto-flow: dense;
  gap: 10px;
  max-width: 720px;
  perspective: 1200px;
}
.tile { position: relative; }
.tile--2x2 { grid-column: span 2; grid-row: span 2; }
.tile--2x1 { grid-column: span 2; }
.tile__inner {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.4, 0.2, 0.2, 1);
}
.tile.flipped .tile__inner { transform: rotateX(180deg); }
.tile__face {
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 10px 12px;
  color: #fff;
  font-family: "Segoe UI", var(--font-body);
  overflow: hidden;
}
.tile__back { transform: rotateX(180deg); justify-content: center; }
.tile__back p { font-size: 13px; line-height: 1.45; font-weight: 400; opacity: 0.95; }
.tile__emoji { font-size: 26px; line-height: 1; }
.tile--2x2 .tile__emoji { font-size: 44px; }
.tile__label {
  font-size: 13px; font-weight: 400; letter-spacing: 0.01em;
  text-transform: lowercase; align-self: flex-start;
}
.tile--2x2 .tile__label { font-size: 15px; }
/* flat metro colors */
.tile--lime .tile__face { background: #8ac400; color: #10130a; }
.tile--blue .tile__face { background: #1272d6; }
.tile--teal .tile__face { background: #00947e; }
.tile--purple .tile__face { background: #6a3fc4; }
.tile--magenta .tile__face { background: #c42472; }
/* WP press-tilt + hover */
.tile { transition: transform 0.18s ease; }
/* fly-in entrance, staggered by --tile-i (animation, so hover keeps zero delay) */
.tiles .tile { opacity: 0; }
.tiles.visible .tile {
  opacity: 1;
  animation: tileIn 0.55s var(--ease-out) backwards;
  animation-delay: calc(var(--tile-i, 0) * 0.06s);
}
@keyframes tileIn {
  from { opacity: 0; transform: perspective(900px) rotateY(55deg) translateX(60px); }
  to { opacity: 1; transform: none; }
}
.section--metro .section__title {
  font-family: "Segoe UI", var(--font-body);
  font-weight: 300; text-transform: lowercase; letter-spacing: 0;
}
@media (max-width: 560px) {
  .tiles { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(74px, 1fr); gap: 8px; }
  .tile__emoji { font-size: 20px; }
  .tile--2x2 .tile__emoji { font-size: 34px; }
  .tile__label, .tile__back p { font-size: 11px; }
}

/* ---------- stack (legacy) ---------- */
.stack { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.stack__col {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 18px;
  padding: 30px 28px; transition: transform 0.35s var(--ease-out), border-color 0.35s;
}
.stack__col:hover { transform: translateY(-6px); border-color: rgba(198,245,66,0.3); }
.stack__col h4 {
  font-size: 17px; color: var(--accent); margin-bottom: 18px;
  font-family: var(--font-mono); font-weight: 500;
}
.stack__col ul { list-style: none; display: grid; gap: 10px; }
.stack__col li { color: var(--ink-dim); font-size: 15px; padding-left: 18px; position: relative; }
.stack__col li::before { content: "▸"; position: absolute; left: 0; color: var(--accent); font-size: 12px; top: 3px; }

.now {
  margin-top: clamp(40px, 6vh, 60px);
  border: 1px dashed rgba(198,245,66,0.35); border-radius: 18px;
  padding: 28px 30px; background: var(--accent-soft);
  max-width: 780px;
}
.now__pulse {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.pulse-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--accent-glow); }
  70% { box-shadow: 0 0 0 12px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.now p:last-child { color: var(--ink); font-size: 16px; }
.now strong { color: var(--accent); }

/* ---------- contact ---------- */
.contact {
  position: relative; z-index: 2; text-align: center;
  padding: clamp(100px, 16vh, 180px) 24px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(198,245,66,0.08), transparent 70%),
    var(--bg);
}
.contact h2 { font-size: clamp(38px, 6vw, 72px); letter-spacing: -0.03em; margin-bottom: 24px; }
.contact__sub { color: var(--ink-dim); margin-bottom: 44px; font-size: 17px; line-height: 1.9; }
.contact__wink { font-family: var(--font-serif); font-style: italic; font-size: 18px; color: var(--ink); }
.contact__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.gradient-swipe {
  background: linear-gradient(90deg, var(--accent), #7ef5c0, var(--accent));
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: swipe 5s linear infinite;
}
@keyframes swipe { to { background-position: -200% 0; } }

/* ---------- footer ---------- */
.footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 28px clamp(20px, 5vw, 64px); border-top: 1px solid var(--line);
  color: var(--ink-faint); font-size: 13.5px; position: relative; z-index: 2;
}
.footer__wink { font-family: var(--font-mono); font-size: 12.5px; }

/* ---------- human touches: scribbles, doodles, tape ---------- */
.scribble {
  font-family: "Caveat", cursive;
  font-size: 19px; font-weight: 500;
  color: var(--ink-dim);
  display: inline-block;
}
.scribble--me {
  margin-left: 10px; rotate: -4deg; color: var(--accent);
  opacity: 0.85; translate: 0 6px;
}
.stat__note {
  margin-top: 8px; rotate: -2.5deg; color: var(--accent); font-size: 18px;
}
.card__note {
  position: absolute; top: -12px; right: 18px; rotate: 5deg;
  color: var(--accent); font-size: 20px; z-index: 3;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.card__no {
  font-family: "Caveat", cursive; font-size: 26px; font-weight: 600;
  color: var(--accent); line-height: 1;
}
.feature__caption {
  display: block; text-align: right; margin-top: 12px; rotate: -1.5deg;
  font-size: 18px;
}

.doodle { position: absolute; pointer-events: none; overflow: visible; }
.doodle path {
  fill: none; stroke: var(--accent); stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
/* squiggle as a background image — no nested layers, no compositing bugs */
.u-squiggle {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M3,8 C22,3 38,11 58,6 C78,1 96,10 117,5' fill='none' stroke='%23c6f542' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 0.14em;
  padding-bottom: 0.1em;
}
@keyframes drawIn { to { stroke-dashoffset: 0; } }

.u-circle { position: relative; display: inline-block; }
.doodle--circle {
  left: -8%; top: -14%; width: 116%; height: 128%;
}
.doodle--circle path { stroke-width: 2.5; opacity: 0.9; }
.mask-words.visible .doodle--circle path { transition: stroke-dashoffset 1.1s ease 0.7s; stroke-dashoffset: 0; }

.tape {
  position: absolute; width: 92px; height: 26px; z-index: 3;
  background: rgba(198, 245, 66, 0.18);
  border-left: 1px dashed rgba(255,255,255,0.12);
  border-right: 1px dashed rgba(255,255,255,0.12);
  backdrop-filter: blur(1px);
}
.tape--tl { top: -12px; left: 8%; rotate: -8deg; }
.tape--br { bottom: -10px; right: 6%; rotate: 6deg; }
.feature__demo { position: relative; }
.feature__demo .terminal { rotate: -1.4deg; }
.feature__demo .terminal:hover { rotate: 0deg; transition: rotate 0.4s var(--ease-out); }

/* cards: slightly off-kilter, like they were placed by hand */
.cards .card:nth-child(1) { rotate: -0.8deg; }
.cards .card:nth-child(2) { rotate: 0.6deg; translate: 0 14px; }
.cards .card:nth-child(3) { rotate: -0.4deg; translate: 0 -6px; }
.cards .card:hover { rotate: 0deg; translate: 0 0; }
.cards .card { transition: border-color 0.35s, transform 0.35s var(--ease-out), box-shadow 0.35s, rotate 0.35s var(--ease-out), translate 0.35s var(--ease-out); }

/* the "now" box becomes a sticky note */
.now {
  background: #f3e08a; border: none; border-radius: 4px;
  rotate: -1.2deg;
  padding: 30px 30px 26px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.45);
  max-width: 620px;
}
.now__pin {
  position: absolute; top: -9px; left: 50%; translate: -50% 0;
  width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff7a7a, #c92a2a);
  box-shadow: 0 3px 6px rgba(0,0,0,0.4);
}
.now { position: relative; }
.now__pulse {
  font-family: "Caveat", cursive; font-size: 22px; font-weight: 600;
  color: #6b5a12; text-transform: none; letter-spacing: 0; margin-bottom: 6px;
}
.now p:last-child { color: #2c2508; font-size: 16.5px; }
.now strong { color: #1d1804; }

/* section underline: marker stroke instead of a perfect gradient bar */
.section__title::after {
  height: 5px;
  background: var(--accent);
  clip-path: polygon(0 38%, 4% 0, 98% 12%, 100% 55%, 96% 100%, 2% 88%);
  rotate: -0.5deg;
  opacity: 0.9;
}

/* ---------- reveal on scroll ---------- */
.reveal-up {
  opacity: 0; transform: translateY(36px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal-up.visible { opacity: 1; transform: none; }

/* ---------- tilt ---------- */
.tilt { transform-style: preserve-3d; }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .feature { grid-template-columns: 1fr; }
  .nav__links a:not(.nav__cta) { display: none; }
  .hero__scroll { display: none; }
  .avatar { width: 52px; height: 52px; }
}

/* ---------- confetti + shine ---------- */
.confetti-bit {
  position: fixed; z-index: 500; pointer-events: none;
  width: 9px; height: 9px; border-radius: 2px;
  will-change: transform, opacity;
}
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%;
  left: -60%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  animation: shine 4.5s ease-in-out infinite;
}
@keyframes shine { 0%, 60% { left: -60%; } 85%, 100% { left: 130%; } }
.marquee__track span { transition: color 0.25s, transform 0.25s; display: inline-block; }
.marquee__track span:hover { color: var(--accent); transform: translateY(-3px) rotate(-2deg); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .hero__title .word { transform: none; }
  .reveal-up { opacity: 1; transform: none; }
}
