/* ==========================================================
   gouri-demo.resonor.in · retro grid-paper portfolio
   ========================================================== */

:root {
  --paper: #FBF8EC;
  --grid: #ffffff;
  --navy: #344A73;
  --rust: #8A2B12;
  --mustard: #E3B562;
  --red: #A8263A;
  --ink: #1d1d1d;
  --night: #24231c;

  --display: "Righteous", "Trebuchet MS", system-ui, sans-serif;
  --body: "Open Sans", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1280px;
  --cell: 34px;
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  --smooth: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--navy);
  font-family: var(--body);
  font-stretch: 82%;
  font-size: clamp(1.05rem, 1.1vw + .7rem, 1.4rem);
  line-height: 1.55;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 3px, transparent 3px),
    linear-gradient(90deg, var(--grid) 3px, transparent 3px);
  background-size: var(--cell) var(--cell);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--mustard); color: var(--ink); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

/* ---------- type ---------- */
.display {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: .95;
  letter-spacing: .01em;
  color: var(--navy);
}
.display--xl { font-size: clamp(3.6rem, 14vw, 12rem); }
.sub {
  font-weight: 800;
  font-stretch: 75%;
  letter-spacing: -.035em;
  color: var(--red);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.05;
}
.sub--small { font-size: clamp(1.15rem, 1.8vw, 1.6rem); margin-top: .35em; }
.lead { margin-top: 1.2em; }
.about p + p, .edu p + p { margin-top: 1em; }

/* ---------- stickers ---------- */
.sticker, .doodle { position: absolute; pointer-events: none; }
.sticker, .doodle { transform-origin: 50% 50%; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 16px var(--gutter) auto; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav__logo {
  font-family: var(--display); font-size: 1.6rem; text-decoration: none; color: var(--navy);
  background: var(--paper); padding: 2px 14px; border: 2px solid var(--ink); border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
}
.nav__logo span { color: var(--red); }
.nav nav {
  display: flex; gap: 4px; background: var(--paper); border: 2px solid var(--ink); border-radius: 999px;
  padding: 4px; box-shadow: 3px 3px 0 var(--ink);
}
.nav nav a {
  text-decoration: none; font-weight: 700; font-size: 1rem; padding: 4px 14px; border-radius: 999px;
  transition: background .25s, color .25s;
}
.nav nav a:hover, .nav nav a.is-active { background: var(--navy); color: var(--paper); }
.nav { transition: transform .5s var(--smooth); }
.nav.is-hidden { transform: translateY(-140%); }

/* ---------- cursor ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .js .cursor {
    display: grid; place-items: center;
    position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
    width: 34px; height: 34px; margin: -17px 0 0 -17px;
    color: var(--red);
    transition: width .35s var(--bounce), height .35s var(--bounce), margin .35s var(--bounce);
  }
  .cursor svg { width: 100%; height: 100%; transition: opacity .2s; }
  .cursor span {
    position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%;
    background: var(--ink); color: var(--paper); font-weight: 700; font-size: .9rem;
    transform: scale(0); transition: transform .35s var(--bounce);
  }
  .cursor.is-view { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
  .cursor.is-view svg { opacity: 0; }
  .cursor.is-view span { transform: scale(1); }
}

/* ---------- layout ---------- */
.section {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(90px, 12vw, 170px) var(--gutter);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: 110px var(--gutter) 90px;
  overflow: clip;
}
.hero__name, .hero__role {
  position: absolute; color: var(--red);
  font-stretch: 75%; font-weight: 500; letter-spacing: -.01em;
  font-size: clamp(1.4rem, 3.2vw, 3rem); line-height: 1;
}
.hero__name { left: var(--gutter); top: clamp(90px, 13vh, 140px); }
.hero__role { right: var(--gutter); bottom: clamp(70px, 11vh, 120px); }
.hero__title {
  font-family: var(--display); font-weight: 400; text-align: center;
  line-height: .86; letter-spacing: .01em;
  font-size: clamp(3.3rem, 16vw, 14.5rem);
  display: grid; justify-items: center;
}
.hero__line { display: block; white-space: nowrap; }
.hero__line--1 { color: var(--rust); }
.hero__line--2 { color: var(--mustard); }
.hero__star { width: clamp(46px, 7vw, 110px); }
.hero__star--a { left: calc(50% - min(40vw, 470px)); top: calc(50% - clamp(70px, 10vw, 150px)); }
.hero__star--b { right: calc(50% - min(38vw, 440px)); top: calc(50% + clamp(10px, 2vw, 30px)); width: clamp(34px, 5vw, 76px); }
.hero__flower { width: clamp(40px, 5vw, 70px); left: 12%; bottom: 16%; }
.hero__hint {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 6px; text-decoration: none;
  font-weight: 700; font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; color: var(--navy);
}
.hero__hint i { width: 2px; height: 34px; background: var(--navy); transform-origin: top; animation: hint 1.8s var(--smooth) infinite; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- marquee ---------- */
.marquee {
  position: relative; z-index: 2;
  background: var(--rust); color: var(--paper);
  border-block: 3px solid var(--ink);
  transform: rotate(-2deg); margin: 0 -20px;
  overflow: hidden; white-space: nowrap;
  padding: .55em 0;
  font-family: var(--display); font-size: clamp(1.4rem, 3.4vw, 2.8rem); line-height: 1;
}
.marquee__track { display: inline-flex; gap: .7em; align-items: center; will-change: transform; }
.marquee__track b { color: var(--mustard); font-weight: 400; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about__photo { position: relative; padding: 40px 30px 60px 50px; }
.polaroid {
  position: relative; background: #fff; padding: 10px; border-radius: 20px;
  border: 2px solid var(--ink); box-shadow: 12px 12px 0 #4a4a4a;
  transform: rotate(2.5deg);
}
.polaroid img { border-radius: 12px; background: #111; }
.about__cloud { width: clamp(110px, 14vw, 190px); left: -6%; top: -4%; z-index: 2; }
.about__burst { width: clamp(110px, 14vw, 200px); right: -10%; bottom: -6%; z-index: 2; }

/* ---------- education ---------- */
.edu { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.edu__card .sub { margin-top: .6em; }
.edu__card p:last-child { margin-top: 1.2em; max-width: 34em; }
.cat { position: relative; z-index: 1; filter: drop-shadow(8px 10px 0 rgba(29, 29, 29, .12)); }
.cat--grad { width: clamp(170px, 22vw, 290px); justify-self: center; transform-origin: 50% 0; }
.edu__star { width: clamp(70px, 9vw, 130px); }
.edu__star--a { left: 2%; bottom: 6%; }
.edu__star--b { right: 0; top: 30%; color: var(--red); }

/* ---------- experience ---------- */
.exp__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.cat--work { width: clamp(120px, 15vw, 210px); margin-bottom: -40px; }
.exp__line { width: 100%; height: 40px; margin: 40px 0 -10px; overflow: visible; }
.exp__line path { fill: none; stroke: var(--navy); stroke-width: 3; stroke-dasharray: 1 1; stroke-dashoffset: var(--draw, 1); vector-effect: non-scaling-stroke; }
.exp__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 40px); align-items: start; }
.job {
  position: relative; background: #fff; border: 2px solid var(--ink); border-radius: 14px;
  box-shadow: 7px 7px 0 var(--ink); padding: 34px 26px 26px;
  transform: rotate(var(--tilt, -1.5deg));
}
.job:nth-child(2) { --tilt: 1.5deg; margin-top: 40px; }
.job:nth-child(3) { --tilt: -1deg; margin-top: 12px; }
.job__pin { position: absolute; top: -13px; left: 50%; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; background: var(--red); border: 2px solid var(--ink); box-shadow: inset -4px -4px 0 rgba(0,0,0,.2); }
.job h3 { font-weight: 800; font-stretch: 75%; letter-spacing: -.03em; color: var(--red); font-size: clamp(1.5rem, 2.3vw, 2rem); line-height: 1.05; }
.job__role { font-weight: 700; color: var(--navy); margin-top: .3em; font-size: 1.05em; }
.job__now { position: absolute; top: 14px; right: 16px; background: var(--mustard); color: var(--ink); font-weight: 800; font-size: .8rem; padding: 2px 10px; border-radius: 999px; border: 2px solid var(--ink); text-transform: uppercase; letter-spacing: .08em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tags li { font-size: .85rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; border: 1.5px solid var(--navy); }

/* ---------- skills ---------- */
.skills { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: center; }
.skills__pile { display: flex; flex-wrap: wrap; gap: 14px 12px; margin-top: 40px; max-width: 760px; }
.skills__pile li {
  background: var(--c); color: var(--t, var(--paper));
  border: 2px solid var(--ink); border-radius: 999px; box-shadow: 4px 4px 0 var(--ink);
  padding: .45em 1.1em; font-weight: 800; font-stretch: 78%; letter-spacing: -.01em;
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
  transform: rotate(var(--rot, 0deg));
  transition: transform .4s var(--bounce);
}
.skills__pile li:hover { transform: rotate(0deg) translateY(-6px) scale(1.06); }
.skills__cat { position: relative; display: flex; justify-content: center; padding-top: 150px; width: min(100%, 360px); justify-self: center; }
.cat--skills { width: clamp(160px, 18vw, 240px); }
.skills__cloud { width: clamp(90px, 10vw, 150px); }
.skills__cloud--a { left: 6%; top: 40px; }
.skills__cloud--b { left: 34%; top: 0; width: clamp(70px, 7vw, 110px); }
.skills__doodle { width: 54px; }
.skills__doodle--a { right: 18%; top: 0; }
.skills__doodle--b { right: 2%; top: 44px; width: 64px; }
.skills__doodle--c { right: 22%; top: 64px; width: 60px; }

/* ---------- work ---------- */
.work__intro { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 30px; }
.work__count { font-weight: 700; color: var(--red); font-size: clamp(1rem, 1.6vw, 1.3rem); }
.set { position: relative; margin-top: clamp(90px, 12vw, 170px); }
.set__head { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 10px 40px; margin-bottom: clamp(28px, 4vw, 54px); }
.set__head--wide { grid-template-columns: 1fr; }
.set__title {
  font-weight: 800; font-stretch: 75%; letter-spacing: -.045em; line-height: .9;
  font-size: clamp(2.6rem, 7.4vw, 6rem); color: var(--navy);
}
.set__title--big { font-size: clamp(2.3rem, 6vw, 5rem); max-width: 14em; }
.set__note { max-width: 26em; color: var(--navy); opacity: .85; padding-bottom: .4em; }
.set__doodle { width: 70px; right: 6%; top: -30px; }
.set__burst { width: clamp(70px, 8vw, 120px); right: 0; top: -50px; }

.piece { position: relative; cursor: zoom-in; }
.piece img {
  width: 100%; border: 2px solid var(--ink); border-radius: 6px; background: #eee;
  box-shadow: 7px 7px 0 var(--ink);
  transition: transform .45s var(--bounce), box-shadow .45s var(--bounce);
}
.piece figcaption {
  margin-top: 14px; font-weight: 700; font-size: .95rem; color: var(--navy);
  opacity: .8;
}
.piece:hover img { transform: translate(-4px, -6px) rotate(-.6deg); box-shadow: 13px 14px 0 var(--ink); }

.grid { display: grid; gap: clamp(20px, 3.4vw, 50px); align-items: start; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--scatter { grid-template-columns: repeat(3, 1fr); row-gap: clamp(40px, 5vw, 70px); }
.grid--scatter .piece { transform: rotate(var(--rest, 0deg)); transition: transform .5s var(--bounce); }
.grid--scatter .piece:nth-child(3n+1) { --rest: -2.5deg; }
.grid--scatter .piece:nth-child(3n+2) { --rest: 1.8deg; margin-top: 40px; }
.grid--scatter .piece:nth-child(3n) { --rest: -1deg; margin-top: 12px; }
.grid--scatter .piece:hover { transform: rotate(0deg); z-index: 2; }

/* reach */
.reach { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 60px); }
.reach__item { display: grid; gap: 24px; justify-items: center; }
.phone {
  width: min(100%, 300px); aspect-ratio: 9 / 18.5;
  background: #0b0b0b; border: 3px solid var(--ink); border-radius: 34px; padding: 12px;
  box-shadow: 9px 9px 0 var(--ink); display: grid; place-items: center; overflow: hidden;
}
.phone img { border: 0; box-shadow: none; border-radius: 18px; max-height: 100%; width: 100%; height: 100%; object-fit: contain; background: transparent; }
.phone:hover img { transform: scale(1.03); box-shadow: none; }
.stats { display: flex; gap: clamp(14px, 2vw, 28px); justify-content: center; text-align: center; }
.stats dt { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.stats dd { font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1; color: var(--red); }
.stats div:first-child dd { color: var(--rust); }

/* banners */
.banners { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 4vw, 60px); align-items: center; }
.browser img { border-radius: 0 0 6px 6px; }
.browser i {
  display: block; height: 28px; background: #fff; border: 2px solid var(--ink); border-bottom: 0; border-radius: 10px 10px 0 0;
  background-image: radial-gradient(circle at 16px 50%, var(--red) 5px, transparent 6px), radial-gradient(circle at 34px 50%, var(--mustard) 5px, transparent 6px), radial-gradient(circle at 52px 50%, var(--navy) 5px, transparent 6px);
  margin-bottom: -2px; position: relative; z-index: 1; box-shadow: 7px 0 0 var(--ink);
}
.piece--square { width: min(100%, 360px); justify-self: center; }

/* the art of doing nothing */
.aodn { position: relative; margin: clamp(110px, 14vw, 190px) calc(50% - 50vw) 0; width: 100vw; background: var(--night); color: var(--paper); }
.aodn__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.aodn__track { display: flex; align-items: center; gap: clamp(30px, 5vw, 80px); padding: 0 8vw; will-change: transform; }
.aodn__intro { flex: 0 0 auto; width: min(80vw, 520px); }
.aodn__tag { font-weight: 800; font-stretch: 75%; font-size: clamp(1.3rem, 2.4vw, 2.2rem); color: #9fb3d8; letter-spacing: -.02em; }
.aodn__title { font-weight: 800; font-stretch: 75%; letter-spacing: -.05em; line-height: .86; color: #d1663f; font-size: clamp(3.4rem, 8vw, 7rem); margin-top: .1em; }
.aodn__kind { display: inline-block; margin-top: 18px; font-weight: 800; color: var(--paper); border: 2px solid var(--mustard); border-radius: 999px; padding: 2px 16px; transform: rotate(-3deg); }
.aodn__line { margin-top: 36px; font-size: clamp(1.3rem, 2vw, 1.8rem); line-height: 1.3; }
.aodn__swipe { display: none; }
.aodn__line em { color: var(--mustard); font-style: normal; font-weight: 700; }
.aodn__frame { flex: 0 0 auto; width: min(64vw, calc(70vh * .8)); transform: rotate(var(--r)); }
.aodn__frame img { border-color: var(--paper); box-shadow: 10px 10px 0 #000; }
.aodn__frame figcaption { color: var(--paper); opacity: .75; }

/* masonry */
.masonry { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.masonry__col { display: grid; gap: clamp(30px, 4vw, 56px); }
.masonry__col:nth-child(2) { margin-top: 80px; }
.masonry__col:nth-child(3) { margin-top: 30px; }
.piece--wide { margin-top: clamp(50px, 7vw, 90px); }

/* ---------- contact ---------- */
.contact { text-align: center; display: grid; justify-items: center; padding-bottom: clamp(120px, 14vw, 200px); }
.contact__lead { max-width: 30em; margin-top: 26px; }
.contact__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 40px; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 800; font-stretch: 80%;
  background: var(--paper); color: var(--navy); border: 2px solid var(--ink); border-radius: 999px;
  padding: .55em 1.3em; box-shadow: 5px 5px 0 var(--ink);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn--big { background: var(--mustard); color: var(--ink); font-size: clamp(1.1rem, 2.6vw, 2rem); overflow-wrap: anywhere; }
.btn:hover { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.btn:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--ink); }
.cat--thumbs { width: clamp(140px, 15vw, 210px); margin-top: 50px; }
.contact__flower { width: clamp(60px, 7vw, 100px); }
.contact__flower--a { left: 4%; top: 12%; }
.contact__flower--b { left: 9%; top: 24%; width: clamp(80px, 9vw, 130px); }

/* ---------- thank you ---------- */
.thanks {
  position: relative; min-height: 80vh; min-height: 80svh;
  display: grid; place-items: center; align-content: center; gap: 28px;
  padding: 80px var(--gutter) 120px; text-align: center; overflow: clip;
}
.thanks__title {
  font-family: var(--display); font-weight: 400; line-height: .86;
  font-size: clamp(4rem, 19vw, 17rem); display: grid; justify-items: center;
}
.thanks__line { display: block; white-space: nowrap; }
.thanks__line--1 { color: var(--rust); }
.thanks__line--2 { color: var(--mustard); --d: 450ms; }
.thanks__note { font-weight: 700; color: var(--red); font-size: clamp(1.1rem, 2vw, 1.6rem); }
.thanks__star { width: clamp(50px, 7vw, 110px); }
.thanks__star--a { left: calc(50% - min(42vw, 520px)); top: 22%; }
.thanks__star--b { right: calc(50% - min(40vw, 500px)); bottom: 22%; width: clamp(70px, 9vw, 140px); }
.thanks__flower { width: clamp(44px, 5vw, 76px); right: 14%; top: 16%; }

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  max-width: var(--max); margin: 0 auto; padding: 26px var(--gutter) 40px;
  border-top: 2px dashed rgba(52, 74, 115, .35); font-size: .95rem;
}
.foot a { text-decoration: none; font-weight: 700; }

/* ---------- lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--paper);
}
.lightbox::backdrop { background: rgba(20, 20, 16, .92); }
.lightbox[open] { display: grid; grid-template-columns: 70px 1fr 70px; align-items: center; }
.lightbox figure { display: grid; justify-items: center; gap: 14px; padding: 60px 0 30px; }
.lightbox img { max-height: calc(100vh - 140px); width: auto; max-width: 100%; border: 2px solid var(--paper); border-radius: 6px; }
.lightbox figcaption { font-weight: 700; text-align: center; }
.lightbox button {
  background: none; border: 0; color: var(--paper); font-size: 3rem; line-height: 1; cursor: pointer; padding: 10px;
}
.lightbox__close { position: absolute; top: 12px; right: 18px; }
.lightbox[open] figure { animation: lb .45s var(--bounce); }
@keyframes lb { from { transform: scale(.85) rotate(-2deg); opacity: 0; } }

/* ==========================================================
   motion (only when JS is running and motion is allowed)
   ========================================================== */

.js:not(.reduce) [data-split] .c,
.js:not(.reduce) [data-split] .wi { display: inline-block; }
[data-split] .w { display: inline-block; white-space: nowrap; }
[data-split="words"] .w { overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }

/* letter drop: falls from above the viewport and bounces */
.js:not(.reduce) [data-split="drop"] .c { opacity: 0; }
.js:not(.reduce) [data-split="drop"].in .c {
  animation: drop 1.15s both;
  animation-delay: calc(var(--i) * 60ms + var(--d, 0ms));
}
@keyframes drop {
  0%   { opacity: 1; transform: translateY(-105vh) rotate(var(--r)); animation-timing-function: cubic-bezier(.5, 0, .9, .45); }
  52%  { transform: translateY(0) rotate(calc(var(--r) * -.25)); animation-timing-function: cubic-bezier(.2, .6, .4, 1); }
  68%  { transform: translateY(-16%) rotate(calc(var(--r) * .12)); animation-timing-function: cubic-bezier(.6, 0, .9, .5); }
  80%  { transform: translateY(0) rotate(0); animation-timing-function: ease-out; }
  89%  { transform: translateY(-4%); animation-timing-function: ease-in; }
  100% { opacity: 1; transform: none; }
}

/* letter rise: pops up from below with overshoot */
.js:not(.reduce) [data-split="rise"] .c { opacity: 0; }
.js:not(.reduce) [data-split="rise"].in .c {
  animation: rise .9s var(--bounce) both;
  animation-delay: calc(var(--i) * 55ms + var(--d, 0ms));
}
@keyframes rise {
  from { opacity: 0; transform: translateY(70%) scale(.4) rotate(var(--r)); }
  to   { opacity: 1; transform: none; }
}

/* words slide up out of a mask */
.js:not(.reduce) [data-split="words"] .wi { transform: translateY(110%); }
.js:not(.reduce) [data-split="words"].in .wi {
  transform: none;
  transition: transform .9s var(--smooth);
  transition-delay: calc(min(var(--i), 40) * 16ms);
}

/* typewriter */
.js:not(.reduce) [data-type] { visibility: hidden; }
.js:not(.reduce) [data-type].typing { visibility: visible; }
[data-type].typing::after { content: "|"; margin-left: 2px; animation: blink .8s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* sticker pop */
.js:not(.reduce) [data-pop] { opacity: 0; scale: .2; rotate: -120deg; }
.js:not(.reduce) [data-pop].in { opacity: 1; scale: 1; rotate: 0deg; transition: scale .9s var(--bounce), rotate 1.1s var(--smooth), opacity .3s; transition-delay: var(--d, 0ms); }

/* generic reveals */
.js:not(.reduce) [data-reveal] { opacity: 0; }
.js:not(.reduce) [data-reveal].in { opacity: 1; transition: opacity .6s, translate 1s var(--smooth), rotate 1s var(--bounce), scale 1s var(--bounce), clip-path 1s var(--smooth); transition-delay: calc(var(--i, 0) * 120ms); }
.js:not(.reduce) [data-reveal="up"] { translate: 0 60px; }
.js:not(.reduce) [data-reveal="left"] { translate: -80px 0; rotate: -3deg; }
.js:not(.reduce) [data-reveal="right"] { translate: 80px 0; rotate: 3deg; }
.js:not(.reduce) [data-reveal="clip"] { clip-path: inset(0 100% 0 0); opacity: 1; }
.js:not(.reduce) [data-reveal="clip"].in { clip-path: inset(0 0 0 0); transition-duration: 1.2s; }
.js:not(.reduce) [data-reveal="hop"] { translate: 0 120px; scale: .6; }
.js:not(.reduce) [data-reveal="peek"] { translate: 0 80%; }
.js:not(.reduce) [data-reveal].in { translate: 0 0; scale: 1; rotate: 0deg; }

/* polaroid: drops from above and settles like a pinned photo */
.js:not(.reduce) [data-reveal="pin"] { translate: 0 -60vh; rotate: -18deg; }
.js:not(.reduce) [data-reveal="pin"].in { translate: 0 0; rotate: 0deg; transition: opacity .3s, translate 1.1s var(--bounce), rotate 1.6s var(--bounce); }

/* cat on a string swings in */
.js:not(.reduce) [data-reveal="swing"] { translate: 0 -40vh; }
.js:not(.reduce) [data-reveal="swing"].in { translate: 0 0; animation: swing 2.4s var(--smooth) both; transition: opacity .3s, translate .9s var(--bounce); }
@keyframes swing { 0% { rotate: 25deg; } 25% { rotate: -14deg; } 45% { rotate: 8deg; } 65% { rotate: -4deg; } 82% { rotate: 2deg; } 100% { rotate: 0deg; } }

/* job cards fall onto the table */
.js:not(.reduce) [data-reveal="drop"] { translate: 0 -55vh; rotate: calc(var(--tilt, 0deg) * 8); }
.js:not(.reduce) [data-reveal="drop"].in { translate: 0 0; rotate: 0deg; transition: opacity .25s, translate .95s var(--bounce), rotate 1.3s var(--bounce); transition-delay: calc(var(--i) * 180ms); }

/* skills chips fall and pile up */
.js:not(.reduce) [data-pile] li { opacity: 0; translate: 0 -70vh; rotate: var(--spin, 40deg); }
.js:not(.reduce) [data-pile].in li { opacity: 1; translate: 0 0; rotate: 0deg; transition: opacity .2s, translate 1s var(--bounce), rotate 1.2s var(--bounce); transition-delay: calc(var(--i) * 110ms); }

/* staggered galleries */
.js:not(.reduce) [data-stagger] > * { opacity: 0; }
.js:not(.reduce) [data-stagger].in > * { opacity: 1; transition: opacity .5s, translate 1s var(--smooth), rotate 1.2s var(--bounce), clip-path 1.1s var(--smooth), transform .5s var(--bounce); transition-delay: calc(var(--i) * 130ms); }
.js:not(.reduce) [data-stagger="flip"] { perspective: 1200px; }
.js:not(.reduce) [data-stagger="flip"] > * { translate: 0 80px; rotate: x -75deg; transform-origin: 50% 0; }
.js:not(.reduce) [data-stagger="flip"].in > * { translate: 0 0; rotate: x 0deg; }
.js:not(.reduce) [data-stagger="scatter"] > * { translate: 0 -40vh; rotate: var(--spin, 20deg); }
.js:not(.reduce) [data-stagger="scatter"].in > * { translate: 0 0; rotate: 0deg; }
.js:not(.reduce) [data-stagger="wipe"] > * { clip-path: inset(100% 0 0 0); translate: 0 40px; }
.js:not(.reduce) [data-stagger="wipe"].in > * { clip-path: inset(-20px -20px -40px -20px); translate: 0 0; }

/* ==========================================================
   responsive
   ========================================================== */
@media (max-width: 900px) {
  .about, .edu, .skills { grid-template-columns: 1fr; }
  .about__photo { max-width: 420px; justify-self: center; width: 100%; }
  .exp__list { grid-template-columns: 1fr; gap: 34px; }
  .job:nth-child(n) { margin-top: 0; }
  .exp__line { display: none; }
  .exp__head { margin-bottom: 40px; }
  .set__head { grid-template-columns: 1fr; }
  .grid--3, .grid--scatter { grid-template-columns: repeat(2, 1fr); }
  .grid--scatter .piece:nth-child(n) { margin-top: 0; }
  .reach { grid-template-columns: 1fr; gap: 60px; }
  .banners { grid-template-columns: 1fr; }
  .masonry { grid-template-columns: 1fr 1fr; }
  .masonry__col:nth-child(n) { margin-top: 0; }
  .masonry__col:nth-child(3) { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  /* campaign becomes a swipe row on small screens */
  .aodn { height: auto !important; }
  .aodn__sticky { position: static; height: auto; padding: 80px 0; }
  .aodn__track { overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 7vw 30px; transform: none !important; scrollbar-width: none; }
  .aodn__track::-webkit-scrollbar { display: none; }
  .aodn__track > * { scroll-snap-align: center; }
  .aodn__frame { width: 74vw; }
  .aodn__swipe { display: inline-block; margin-top: 26px; font-weight: 800; color: var(--mustard); animation: nudge 1.6s ease-in-out infinite; }
  @keyframes nudge { 50% { transform: translateX(10px); } }
}
@media (max-width: 560px) {
  .nav nav a { padding: 4px 10px; }
  .grid--3 { grid-template-columns: 1fr 1fr; gap: 16px; }
  .grid--scatter { grid-template-columns: 1fr 1fr; gap: 26px 16px; }
  .piece figcaption { font-size: .82rem; }
  .masonry, .masonry__col:nth-child(3) { grid-template-columns: 1fr; }
  .hero__star--a { top: calc(50% - 90px); }
  .contact__flower { display: none; }
  .edu__star--b { top: auto; bottom: 4%; }
  .set__burst { top: -80px; width: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__hint i { animation: none; }
  html { scroll-behavior: auto; }
}
