/* ===== TOKENS — change colours, fonts, spacing here ===== */
:root {
  --paper: #F3F6FA;
  --paper-2: #E1E8F0;
  --line: #C3CEDC;
  --slate: #2F4A6B;
  --peri: #8EA7C8;
  --lav: #B9C6D8;
  --teal: #5E9C9A;
  --ink: #0E1624;
  --ink-soft: #3F4A5E;
  --f-display: "Bricolage Grotesque", system-ui, sans-serif;
  --f-serif: "Space Grotesk", system-ui, sans-serif;
  --f-hand: "Caveat", cursive;
  --s1: .5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2.5rem;
  --s5: 4rem;
  --s6: 7rem;
  --r: 10px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .13 0 0 0 0 .25 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px
}

body {
  font: 400 1.05rem/1.65 var(--f-display);
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--grain);
  opacity: .07;
  pointer-events: none;
  z-index: 90;
  mix-blend-mode: multiply
}

a {
  color: inherit
}

ul,
ol {
  list-style: none;
  padding: 0
}

:focus-visible {
  outline: 3px solid var(--slate);
  outline-offset: 3px;
  border-radius: 6px
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: .5rem 1rem;
  z-index: 200
}

.skip:focus {
  left: 8px
}

.wrap {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto
}

section {
  position: relative;
  padding: var(--s6) 0;
  overflow: clip
}

.hand {
  font-family: var(--f-hand);
  font-size: 1.5rem;
  color: var(--slate);
  line-height: 1.1
}

.h2 {
  font: 700 clamp(2.4rem, 6vw, 4.4rem)/1 var(--f-serif);
  letter-spacing: -.01em
}

.h2 em {
  font-style: normal;
  color: var(--slate);
  box-shadow: inset 0 -.28em 0 var(--lav)
}

.sub {
  margin: .6rem 0 var(--s4);
  transform: rotate(-2deg);
  display: inline-block
}

.lede {
  font-size: 1.25rem;
  color: var(--ink);
  margin: var(--s3) 0 var(--s2);
  max-width: 34rem
}

.st {
  position: absolute;
  width: 64px;
  height: 64px;
  pointer-events: none;
  overflow: visible
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  inset: 12px 12px auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .55rem .6rem .55rem 1.1rem;
  max-width: 880px;
  margin-inline: auto;
  background: rgba(243, 246, 250, .86);
  backdrop-filter: blur(8px);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  box-shadow: 3px 3px 0 var(--peri);
  transition: box-shadow .3s
}

.nav.scrolled {
  box-shadow: 5px 5px 0 var(--lav)
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  font-weight: 800
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border: 1.5px solid var(--ink);
  border-radius: 11px;
  background: var(--paper);
  box-shadow: 2px 2px 0 var(--peri);
  transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.brand:hover .brand-mark {
  transform: translateY(-2px) rotate(-4deg);
  background: var(--lav);
  box-shadow: 3px 4px 0 var(--slate)
}
/* .socials */
.menu {
  display: flex;
  gap: .25rem
}

.menu a {
  position: relative;
  text-decoration: none;
  padding: .4rem .9rem;
  font-size: .95rem;
  font-weight: 600
}

.menu a::after {
  content: "";
  position: absolute;
  left: .9rem;
  right: .9rem;
  bottom: .2rem;
  height: 2px;
  background: var(--slate);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease)
}

.menu a:hover::after,
.menu a.active::after {
  transform: scaleX(1);
  transform-origin: left
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative
}

.burger span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--ink);
  transition: .3s var(--ease)
}

.burger span:first-child {
  top: 15px
}

.burger span:last-child {
  top: 23px
}

.burger[aria-expanded=true] span:first-child {
  top: 19px;
  transform: rotate(45deg)
}

.burger[aria-expanded=true] span:last-child {
  top: 19px;
  transform: rotate(-45deg)
}

/* ===== BUTTONS / TAGS ===== */
.btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s
}

.btn.primary {
  background: var(--slate);
  color: #fff;
  box-shadow: 4px 4px 0 var(--ink)
}

.btn.ghost {
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--peri)
}

.btn:hover {
  transform: translate(-2px, -3px) rotate(-1.5deg);
  box-shadow: 7px 7px 0 var(--ink)
}

.btn.ghost:hover {
  box-shadow: 7px 7px 0 var(--slate)
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink)
}

.btn.big {
  font-size: clamp(1.1rem, 3vw, 1.7rem);
  padding: 1rem 2.2rem;
  margin: var(--s2) 0
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem
}

.tags li {
  padding: .3rem .9rem;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  font-size: .95rem;
  font-weight: 600;
  transition: transform .3s var(--ease), background .3s
}

.tags li:nth-child(3n+1) {
  background: var(--lav)
}

.tags li:nth-child(3n+2) {
  background: var(--paper-2)
}

.tags li:nth-child(3n) {
  background: #CFE3E2
}

.tags li:hover {
  transform: translateY(-3px)
}

.tags.small li {
  font-size: .8rem;
  padding: .15rem .7rem
}

.socials {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem 1.4rem;
  margin-top: var(--s3)
}

.socials a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  line-height: 1;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(var(--slate), var(--slate)) 0 100%/0 2px no-repeat;
  padding-bottom: 2px;
  transition: background-size .35s var(--ease)
}

.socials img {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  object-fit: contain
}

.socials a:hover {
  background-size: 100% 2px
}

/* ===== HERO ===== */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 7rem 0 4rem
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(var(--line) 1px, transparent 1px) 0 0/40px 40px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0/40px 40px;
  opacity: .5;
  mask-image: radial-gradient(70% 60% at 30% 50%, #000, transparent)
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .35rem 1rem;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  font-size: .9rem;
  font-weight: 600;
  transform: rotate(-2deg)
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 var(--teal);
  animation: pulse 2s infinite
}

.hello {
  margin: var(--s3) 0 -.6rem 1rem;
  transform: rotate(-4deg);
  font-size: 2rem
}

.name {
  font: 800 clamp(4rem, 15vw, 12rem)/.82 var(--f-display);
  letter-spacing: -.06em;
  text-transform: none;
}

.name .line {
  display: block;
  overflow: hidden;
  padding: .06em .1em .12em
}

.name .line>span {
  display: inline-block;
  transform: translateY(105%);
  animation: rise 1.1s var(--ease) forwards
}

.l2 {
  margin-left: clamp(.75rem, 8vw, 6rem)
}

.l1>span {
  animation-delay: .15s !important
}

.l2>span {
  animation-delay: .3s !important;
  color: transparent;
  -webkit-text-stroke: max(2px, .012em) var(--slate)
}

.period {
  color: var(--ink);
  -webkit-text-stroke: 0
}

.tagline {
  max-width: 30rem;
  margin: var(--s3) 0 var(--s3) clamp(0rem, 12vw, 10rem);
  font-size: 1.15rem;
  color: var(--ink-soft);
  position: relative
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  margin-left: clamp(0rem, 12vw, 10rem)
}

.hero .socials {
  margin-left: clamp(0rem, 12vw, 10rem)
}

.hero-inner>*:not(.name) {
  opacity: 0;
  animation: fade .8s var(--ease) forwards
}

.hero-inner>.badge {
  animation-delay: .05s
}

.hello {
  animation-delay: .1s !important
}

.tagline {
  animation-delay: .7s !important
}

.cta-row {
  animation-delay: .85s !important
}

.hero .socials {
  animation-delay: 1s !important
}

.scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  translate: -50% 0;
  animation: bob 2.4s ease-in-out infinite
}

.hero-stickers .st {
  opacity: 0;
  animation: pop .9s var(--ease) forwards;
  will-change: transform
}

.s-star {
  width: 84px;
  height: 84px;
  top: 17%;
  right: 12%;
  animation-delay: .9s !important
}

.s-sparkle {
  width: 46px;
  height: 46px;
  top: 12%;
  left: 46%;
  color: var(--teal);
  animation-delay: 1.05s !important
}

.s-flower {
  width: 96px;
  height: 96px;
  bottom: 14%;
  right: 20%;
  animation-delay: 1.2s !important
}

.s-comp {
  width: 150px;
  height: 140px;
  top: 30%;
  right: 3%;
  animation-delay: 1.35s !important
}

.s-clip {
  width: 40px;
  height: 84px;
  top: 20%;
  left: 3%;
  rotate: 25deg;
  animation-delay: 1.1s !important
}

.s-arrow {
  width: 140px;
  height: 70px;
  top: 36%;
  left: 36%;
  rotate: -6deg;
  animation-delay: 1.5s !important
}

.s-stamp {
  width: 140px;
  height: 140px;
  bottom: 8%;
  left: 5%;
  animation-delay: 1.3s !important;
  opacity: .85
}

.s-bracket {
  width: 110px;
  height: 64px;
  bottom: 30%;
  right: 41%;
  rotate: -10deg;
  animation-delay: 1.45s !important
}

/* ===== ABOUT ===== */
.about {
  background: var(--paper-2);
  clip-path: polygon(0 18px, 8% 0, 22% 14px, 40% 2px, 58% 16px, 76% 0, 92% 14px, 100% 4px, 100% calc(100% - 14px), 88% 100%, 70% calc(100% - 12px), 50% 100%, 30% calc(100% - 14px), 12% 100%, 0 calc(100% - 6px))
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--s5);
  align-items: start
}

.about-head p {
  color: var(--ink-soft)
}

.about-head .lede {
  color: var(--ink)
}

.a-squig {
  position: relative;
  width: 140px;
  height: 30px;
  margin-top: var(--s2)
}

.notes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s3)
}

.note {
  position: relative;
  background: #fff;
  border: 1.5px solid var(--ink);
  padding: 1.4rem 1.3rem 1.2rem;
  box-shadow: 5px 6px 0 rgba(47, 74, 107, .22);
  transition: transform .5s var(--ease), rotate .5s var(--ease), box-shadow .5s var(--ease)
}

.note h3 {
  font: 700 1.6rem/1 var(--f-serif);
  color: var(--slate);
  margin-bottom: .4rem
}

.note:hover {
  transform: translateY(-6px);
  rotate: 0deg;
  box-shadow: 8px 12px 0 rgba(47, 74, 107, .3)
}

.n1 {
  rotate: -2deg
}

.n2 {
  rotate: 1.5deg;
  margin-top: 1.8rem
}

.n3 {
  rotate: 1deg
}

.n4 {
  rotate: -1.5deg;
  margin-top: 1.2rem;
  background: #DDE5F0
}

.n5 {
  rotate: 2deg;
  grid-column: 1/-1;
  max-width: 70%;
  margin-left: auto
}

.n4 .hand {
  position: absolute;
  right: .9rem;
  top: .7rem;
  rotate: 6deg
}

.tape {
  position: absolute;
  top: -34px;
  left: 50%;
  width: 26px;
  height: 60px;
  rotate: 15deg
}

.n-star {
  width: 34px;
  height: 34px;
  right: -14px;
  bottom: -14px
}

/* ===== SKILLS ===== */
.shelf {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3)
}

.drawer {
  padding: 1.4rem 0 1.6rem;
  border-top: 2px dashed var(--line)
}

.drawer h3 {
  font: 700 1.7rem/1.1 var(--f-serif);
  margin-bottom: var(--s2)
}

.drawer:nth-child(2n) {
  margin-top: var(--s3)
}

/* ===== PROJECTS ===== */
.projects {
  background: linear-gradient(var(--paper), #E8EEF5)
}

.board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4) var(--s3);
  align-items: start
}

.proj {
  position: relative;
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  padding: .8rem;
  box-shadow: 6px 6px 0 var(--peri);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease)
}

.p1 {
  rotate: -1.5deg
}

.p2 {
  rotate: 1deg;
  margin-top: 3rem
}

.p3 {
  rotate: -.5deg;
  margin-top: 1rem
}

.proj:hover {
  transform: translateY(-10px) rotate(1deg);
  box-shadow: 10px 14px 0 var(--slate)
}

.shot {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 6px;
  background: color-mix(in srgb, var(--c) 45%, #fff);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1.5px solid var(--ink)
}

.shot svg {
  width: 46%;
  height: 46%;
  color: var(--c);
  transition: transform .6s var(--ease)
}

.proj:hover .shot svg {
  transform: scale(1.25) rotate(-6deg)
}

.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 14px, rgba(255, 255, 255, .35) 14px 16px);
  transition: transform .6s var(--ease)
}

.proj:hover .shot::after {
  transform: translateX(24px)
}

.shot-label {
  position: absolute;
  left: 10px;
  top: 8px;
  z-index: 2;
  font: 500 1.2rem var(--f-hand);
  background: #fff;
  padding: 0 .5rem;
  border-radius: 6px;
  border: 1.5px solid var(--ink)
}

.proj-body {
  padding: 1rem .5rem .6rem
}

.proj h3 {
  font: 700 1.8rem/1.1 var(--f-serif);
  margin-bottom: .4rem
}

.proj p {
  font-size: .95rem;
  color: var(--ink-soft);
  margin-bottom: var(--s2)
}

.links {
  display: flex;
  gap: 1.2rem;
  margin-top: var(--s2);
  font-weight: 700;
  font-size: .92rem
}

.links a {
  text-decoration: none;
  border-bottom: 2px solid var(--peri);
  transition: border-color .3s, color .3s
}

.links a:hover {
  border-color: var(--ink);
  color: var(--slate)
}

.pin {
  width: 44px;
  height: 44px;
  top: -20px;
  right: 18px;
  transition: transform .6s var(--ease)
}

.proj:hover .pin {
  transform: rotate(90deg) scale(1.2)
}

/* ===== JOURNEY ===== */
.journey-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: var(--s5)
}

.trail {
  position: relative;
  padding-left: 2.6rem;
  border-left: 3px dotted var(--slate);
  margin-left: .6rem
}

.trail li {
  position: relative;
  padding-bottom: var(--s4)
}

.trail li:last-child {
  padding-bottom: 0
}

.trail li::before {
  content: "";
  position: absolute;
  left: calc(-2.6rem - 11px);
  top: .35rem;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--ink);
  transition: background .3s, transform .3s
}

.trail li:hover::before {
  background: var(--lav);
  transform: scale(1.3)
}

.when {
  font: 500 1.4rem var(--f-hand);
  color: var(--slate)
}

.trail h3 {
  font: 700 1.9rem/1.1 var(--f-serif)
}

.trail p {
  color: var(--ink-soft)
}

/* ===== CONTACT ===== */
.contact {
  background: var(--paper-2);
  padding-bottom: var(--s5)
}

.letter {
  position: relative;
  text-align: center;
  background: #fff;
  border: 1.5px solid var(--ink);
  padding: var(--s5) 1.5rem;
  box-shadow: 8px 8px 0 var(--lav);
  rotate: -.6deg;
  background-image: repeating-linear-gradient(135deg, var(--slate) 0 14px, transparent 14px 28px, var(--peri) 28px 42px, transparent 42px 56px);
  background-size: 100% 8px;
  background-repeat: no-repeat
}

.letter .lede {
  margin-inline: auto
}

.letter .socials {
  justify-content: center
}

.l-stamp {
  width: 110px;
  height: 110px;
  top: -30px;
  right: -18px;
  rotate: 12deg;
  background: #fff;
  border-radius: 50%
}

.l-star {
  width: 60px;
  height: 60px;
  bottom: -24px;
  left: 7%
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem max(1.25rem, calc((100% - 1120px)/2));
  border-top: 1.5px solid var(--ink);
  font-size: .9rem;
  overflow: clip
}

.footer .socials {
  margin: 0
}

.footer .brand-mark:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 3px 4px 0 var(--peri)
}

.f-flower {
  position: absolute;
  width: 44px;
  height: 44px;
  right: 50%;
  bottom: -14px
}

/* ===== REVEAL (scroll) ===== */
.js .reveal {
  opacity: 0;
  translate: 0 34px;
  transition: opacity .9s var(--ease), translate .9s var(--ease)
}

.js .about .note.reveal {
  translate: 0 50px;
  scale: .92;
  transition: opacity .9s var(--ease), translate .9s var(--ease), scale .9s var(--ease), transform .5s var(--ease), rotate .5s var(--ease), box-shadow .5s var(--ease)
}

.js .projects .proj.reveal {
  translate: 0 70px
}

.js .drawer.reveal {
  translate: -30px 0
}

.js .trail li.reveal {
  translate: 40px 0
}

.js .letter.reveal {
  scale: .94
}

.js .reveal.in {
  opacity: 1;
  translate: 0 0;
  scale: 1
}

.js .reveal:nth-child(2) {
  transition-delay: .12s
}

.js .reveal:nth-child(3) {
  transition-delay: .24s
}

.js .reveal:nth-child(4) {
  transition-delay: .36s
}

.js .reveal:nth-child(5) {
  transition-delay: .48s
}

/* ===== KEYFRAMES ===== */
@keyframes rise {
  to {
    transform: none
  }
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(18px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@keyframes pop {
  0% {
    opacity: 0;
    scale: .2;
    rotate: -40deg
  }

  70% {
    scale: 1.12
  }

  100% {
    opacity: 1;
    scale: 1
  }
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 9px transparent
  }

  100% {
    box-shadow: 0 0 0 0 transparent
  }
}

@keyframes bob {
  50% {
    translate: -50% 8px
  }
}

.float {
  animation: pop .9s var(--ease) forwards, floaty 7s ease-in-out 2s infinite !important
}

.float.slow {
  animation-duration: .9s, 10s !important
}

@keyframes floaty {
  50% {
    translate: 0 -14px;
    rotate: 6deg
  }
}

.spin {
  animation: pop .9s var(--ease) forwards, turn 28s linear 2s infinite !important
}

.spin.slow {
  animation-duration: .9s, 50s !important
}

@keyframes turn {
  to {
    rotate: 360deg
  }
}

.about .spin,
.footer .spin {
  animation: turn 40s linear infinite !important
}

.about .spin,
.footer .spin,
.letter .float {
  opacity: 1
}

.letter .float {
  animation: floaty 7s ease-in-out infinite !important
}

/* ===== RESPONSIVE ===== */
@media (max-width:980px) {

  .about-grid,
  .journey-grid {
    grid-template-columns: 1fr;
    gap: var(--s4)
  }

  .board {
    grid-template-columns: 1fr 1fr
  }

  .p2 {
    margin-top: 0
  }

  .p3 {
    grid-column: 1/-1;
    max-width: 520px;
    justify-self: center
  }

  .s-comp,
  .s-bracket,
  .s-arrow {
    display: none
  }
}

@media (max-width:720px) {
  section {
    padding: var(--s5) 0
  }

  .burger {
    display: block
  }

  .menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--paper);
    border: 1.5px solid var(--ink);
    border-radius: var(--r);
    padding: .6rem;
    box-shadow: 4px 4px 0 var(--peri);
    opacity: 0;
    visibility: hidden;
    translate: 0 -8px;
    transition: .3s var(--ease)
  }

  .menu.open {
    opacity: 1;
    visibility: visible;
    translate: 0 0
  }

  .menu a {
    padding: .7rem 1rem
  }

  .brand-text {
    display: none
  }

  .l2,
  .tagline,
  .cta-row,
  .hero .socials {
    margin-left: 0
  }

  .l2 {
    margin-left: 1rem
  }

  .s-star {
    width: 56px;
    height: 56px;
    right: 6%;
    top: 14%
  }

  .s-stamp {
    width: 96px;
    height: 96px;
    bottom: 12%;
    left: auto;
    right: 4%
  }

  .s-flower {
    width: 60px;
    height: 60px;
    bottom: 8%;
    right: auto;
    left: 8%
  }

  .s-clip {
    left: auto;
    right: 18%;
    top: 10%
  }

  .s-sparkle {
    left: 70%
  }

  .shelf,
  .board,
  .notes {
    grid-template-columns: 1fr
  }

  .drawer:nth-child(2n) {
    margin-top: 0
  }

  .note {
    margin-top: 0 !important
  }

  .n5 {
    max-width: 100%
  }

  .proj {
    rotate: 0 !important
  }

  .p3 {
    max-width: none
  }

  .l-stamp {
    right: -6px;
    width: 84px;
    height: 84px
  }

  .footer {
    flex-direction: column;
    text-align: center
  }
}

/* ===== HERO PORTRAIT ===== */
.portrait {
  --p: clamp(230px, 27vw, 400px);
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  right: max(1.25rem, 5%);
  margin: auto 0;
  width: var(--p);
  height: var(--p);
  rotate: 4deg;
  transform: translate3d(var(--pointer-x, 0px), var(--pointer-y, 0px), 0);
  will-change: transform;
  transition: rotate .7s var(--ease);
  filter: drop-shadow(0 1px 1px rgba(14, 22, 36, .16)) drop-shadow(3px 7px 9px rgba(14, 22, 36, .12))
}

.portrait:hover {
  rotate: 1.5deg
}
/* .brand-mark */
.portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  rotate: -6deg;
  background: var(--lav);
  clip-path: polygon(3% 2%, 35% 0, 68% 3%, 99% 1%, 100% 35%, 97% 68%, 100% 98%, 64% 100%, 31% 97%, 1% 100%, 3% 64%, 0 30%)
}

.portrait-paper {
  position: absolute;
  inset: 0;
  background: #fff;
  clip-path: polygon(2% 3%, 22% 0, 47% 2%, 73% 0, 98% 3%, 100% 27%, 98% 52%, 100% 78%, 97% 98%, 74% 100%, 49% 97%, 24% 100%, 1% 97%, 0 72%, 2% 48%, 0 24%)
}

.portrait-paper img {
  position: absolute;
  inset: 12px;
  display: block;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  max-width: none;
  object-fit: cover;
  object-position: center;
  background: var(--paper-2);
  clip-path: polygon(1% 2%, 30% 0, 60% 1.5%, 99% 0, 100% 30%, 98.5% 60%, 100% 99%, 68% 100%, 35% 98.5%, 0 100%, 1.5% 66%, 0 33%)
}

.portrait-tape {
  position: absolute;
  z-index: 3;
  top: -14px;
  left: 50%;
  width: 92px;
  height: 28px;
  margin-left: -46px;
  rotate: -5deg;
  background: rgba(142, 167, 200, .6);
  clip-path: polygon(0 0, 100% 0, 97% 50%, 100% 100%, 0 100%, 3% 50%)
}

.pm-bolt { width: 52px; height: 52px; top: -28px; right: -20px; rotate: 12deg }
.pm-plus { width: 30px; height: 30px; left: -24px; top: 34% }
.pm-squig { width: 110px; height: 24px; left: -16px; bottom: -14px; rotate: -8deg; animation: squigDrift 6s ease-in-out infinite !important }
.pm-gear { width: 38px; height: 38px; right: -34px; top: 46% }
.pm-arrow { width: 72px; height: 36px; right: 36px; top: -20px; rotate: 135deg }
.pm-dots, .pm-ring { position: absolute; pointer-events: none }
.pm-dots { left: -34px; top: 6%; width: 42px; height: 42px; background: radial-gradient(circle, var(--slate) 2.2px, transparent 2.7px) 0 0/14px 14px; opacity: .65; animation: twinkle 4.5s ease-in-out infinite }
.pm-ring { right: -26px; bottom: 16%; width: 54px; height: 54px; border: 2.5px solid var(--slate); border-right-color: transparent; border-radius: 52% 48% 55% 45%/46% 55% 45% 54%; rotate: -14deg; animation: ringBreath 6s ease-in-out infinite }
.portrait figcaption { position: absolute; right: -8px; top: -2.7rem; rotate: 5deg; white-space: nowrap }

@keyframes squigDrift { 50% { translate: 8px -3px } }
@keyframes twinkle { 50% { opacity: .3 } }
@keyframes ringBreath { 50% { transform: scale(1.1) rotate(8deg) } }

@media (min-width: 981px) {
  .name { font-size: clamp(4.2rem, 12.5vw, 11rem) }
  .s-comp { right: auto; left: 44%; top: auto; bottom: 9%; width: 110px; height: 100px }
  .s-star { right: auto; left: 30%; top: 14% }
  .s-flower { right: auto; left: 28%; bottom: 7% }
}

@media (max-width: 980px) {
  .hero { flex-direction: column; justify-content: center; gap: 1.5rem }
  .portrait { --p: min(64vw, 300px); position: relative; top: auto; bottom: auto; right: auto; margin: 0 max(1.25rem, 6%) 1rem auto }
}

@media (max-width: 720px) {
  .hero { padding: 5rem 0 1.5rem; gap: 1rem }
  .hero-inner { display: contents }
  .hero-inner > * { order: 0; width: min(1120px, 100% - 2.5rem); margin-inline: auto }
  .hero-inner > .badge { order: 1; width: fit-content }
  .hero-inner > .hello { order: 2 }
  .hero-inner > .name { order: 3 }
  .hero > .portrait { order: 4 }
  .hero-inner > .tagline { order: 5 }
  .hero-inner > .cta-row { order: 6 }
  .hero .hello { margin-top: 1rem }
  .hero .tagline { margin-block: 1rem }
  .hero .cta-row { column-gap: 1rem }
  .hero .btn { padding: .75rem 1rem }
  .portrait { --p: min(52vw, 230px); margin-bottom: .5rem }
}

@media (max-width: 720px) and (max-height: 740px) {
  .hero { padding-top: 4.5rem; padding-bottom: 1rem }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important
  }

  .name .line > span {
    transform: none
  }

  .hero-inner > *:not(.name),
  .hero-stickers .st {
    opacity: 1
  }

  .js .reveal {
    opacity: 1;
    translate: none;
    scale: 1
  }
}