@import url('https://fonts.googleapis.com/css2?family=Architects+Daughter&family=Kalam:wght@300;400;700&family=Source+Serif+4:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============
   design tokens
============ */
:root {
  --bg: #faf9f6;
  --bg-2: #f2ede4;
  --bg-3: #e9e3d7;
  --pn: #ffffff;
  --pn-2: #faf9f6;
  --ln: #ccc9bc;
  --tx: #1c1c1c;
  --tx-2: #5a5850;
  --mu: #6f6c64;
  --mu-faint: #aaa89e;
  --a: #c8443c;
  --a-soft: #e3a9a4;
  --red: #c8443c;
  --red-soft: #e3a9a4;
  --tape-y: rgba(253, 224, 71, 0.72);
  --tape-p: rgba(249, 168, 212, 0.72);
  --tape-b: rgba(147, 197, 253, 0.72);
  --tape-g: rgba(134, 239, 172, 0.72);
  --tape-o: rgba(253, 186, 116, 0.72);
  --sticky-y: #fef9c3;
  --sticky-p: #fce7f3;
  --sticky-b: #dbeafe;
  --sticky-g: #dcfce7;
  --sticky-o: #ffedd5;
  --card-g: #e8f5e0;
  --card-p: #fce7ef;
  --card-b: #e0eefa;
  --card-y: #fdf6d8;
  --card-o: #ffeeda;
  --card-l: #efe6f8;
  --dot: #d9d5c9;
  --sh: rgba(28, 28, 28, 0.15);
  --sh-2: rgba(28, 28, 28, 0.2);
  --chip-bg: rgba(255, 255, 255, 0.6);
  --font-hand: "Kalam", Georgia, serif;
  --font-sketch: "Architects Daughter", "Kalam", Georgia, serif;
  --font-serif: "Source Serif 4", Georgia, serif;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

body.dark {
  /* Backgrounds set to completely black */
  --bg: #000000;
  --bg-2: #000000;
  --bg-3: #000000;
  --pn: #000000;
  --pn-2: #000000;
  
  /* All other colors remain exactly the same as your original dark mode */
  --ln: #484a44;
  --tx: #f1eee6;
  --tx-2: #d3cfc4;
  --mu: #a8a49a;
  --mu-faint: #7c7a72;
  --a: #f18d82;
  --a-soft: #7c4038;
  --red: #f18d82;
  --red-soft: #7c4038;
  --tape-y: rgba(253, 224, 71, 0.26);
  --tape-p: rgba(249, 168, 212, 0.26);
  --tape-b: rgba(147, 197, 253, 0.26);
  --tape-g: rgba(134, 239, 172, 0.26);
  --tape-o: rgba(253, 186, 116, 0.26);
  --sticky-y: #4a4426;
  --sticky-p: #4a2b3a;
  --sticky-b: #26384a;
  --sticky-g: #2c4230;
  --sticky-o: #4a3a26;
  --card-g: #242e20;
  --card-p: #2e2028;
  --card-b: #1f2933;
  --card-y: #2e2a20;
  --card-o: #312620;
  --card-l: #282334;
  
  /* Dots made more visible against pure black */
  --dot: #4a4a4a;
  
  --sh: rgba(0, 0, 0, 0.5);
  --sh-2: rgba(0, 0, 0, 0.6);
  --chip-bg: rgba(255, 255, 255, 0.07);
}

/* ======
   base
====== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--tx);
  font: 16px/1.55 var(--font-hand);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* dotted paper texture behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--dot) 1.1px, transparent 1.1px);
  background-size: 26px 26px;
  opacity: 0.75;
}

::selection {
  background: var(--tape-y);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-sketch);
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  color: var(--tx);
}

p {
  margin: 0;
}

a {
  color: var(--red);
  text-underline-offset: 3px;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  font: inherit;
  font-family: var(--font-sans);
  cursor: pointer;
  background: var(--pn);
  color: var(--tx);
  border: 1.7px solid var(--tx);
  border-radius: 0;
  padding: 9px 16px;
  box-shadow: 2px 2px 0 var(--sh);
  transition: transform 0.14s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.14s, color 0.14s;
}

button:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--sh-2);
}

button:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--sh);
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* =====================
   header + navigation
===================== */
.header {
  position: sticky;
  top: 0;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background: var(--bg);
  border-bottom: 1.8px solid var(--tx);
}

.brand {
  font-family: var(--font-sketch);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--tx);
  text-decoration: none;
  padding: 2px 4px;
  transition: color 0.14s;
}

.brand:hover {
  color: var(--red);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav__list a {
  display: block;
  padding: 7px 13px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--tx);
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color 0.14s, border-color 0.14s, box-shadow 0.14s;
}

.nav__list a:hover {
  background: var(--sticky-y);
  border-color: var(--tx);
  box-shadow: 2px 2px 0 var(--sh);
}

/* square icon buttons */
.ibtn,
.social {
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  background: var(--pn);
  color: var(--tx);
  border: 1.7px solid var(--tx);
  box-shadow: 2px 2px 0 var(--sh);
  text-decoration: none;
  transition: transform 0.14s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.14s, color 0.14s;
}

.ibtn:hover,
.social:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--sh-2);
  color: var(--red);
}

.ibtn svg,
.social svg {
  width: 18px;
  height: 18px;
}

.ic-sun,
.ic-x {
  display: none;
}

body.dark .ic-sun {
  display: block;
}

body.dark .ic-moon {
  display: none;
}

.nav__hamburger {
  display: none;
}

.nav__hamburger.open .ic-x {
  display: block;
}

.nav__hamburger.open .ic-bars {
  display: none;
}

/* ======
   main
====== */
.main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 20px;
}

/* hero */
.hero {
  padding: 52px 0 10px;
}

.hero__title {
  font-size: clamp(30px, 6vw, 56px);
  line-height: 1.14;
  letter-spacing: -0.005em;
}

.hero__name {
  color: hotpink;
  background-image: linear-gradient(var(--tape-y), var(--tape-y));
  background-repeat: no-repeat;
  background-size: 100% 30%;
  background-position: 0 92%;
  padding: 0 3px;
}

.hero__role {
  font-family: var(--font-sketch);
  font-size: clamp(18px, 3vw, 26px);
  color: var(--tx-2);
  margin-top: 12px;
  font-weight: bold;
}

/* handwritten "note" block */
.ex {
  background: rgba(200, 68, 60, 0.06);
  border-left: 3px solid var(--red);
  padding: 12px 14px;
  margin: 20px 0 0;
  white-space: pre-wrap;
  font-family: var(--font-hand);
  color: var(--mu);
  max-width: 62ch;
  font-size: 1rem;
}

body.dark .ex {
  background: rgba(241, 141, 130, 0.08);
}

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 24px 0 0;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--tx);
  background: var(--pn);
  border: 1.8px solid var(--tx);
  box-shadow: 3px 3px 0 var(--sh);
  text-decoration: none;
  transition: transform 0.14s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.14s;
}

.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--sh-2);
}

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

.btn--primary {
  background: var(--red);
  color: var(--pn);
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* =========
   sections
========= */
.section {
  margin-top: 64px;
}

.section__title {
  display: inline-block;
  font-size: clamp(20px, 3.4vw, 28px);
  padding: 0 5px;
  margin-bottom: 26px;
  background-image: linear-gradient(var(--tape-y), var(--tape-y));
  background-repeat: no-repeat;
  background-size: 100% 34%;
  background-position: 0 88%;
}

/* =======
   cards
======= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 26px;
  padding: 10px 0;
}

/* cards keep the SAME paper palette in light AND dark mode */
.card {
  --tx: #1c1c1c;
  --tx-2: #5a5850;
  --mu: #6f6c64;
  --mu-faint: #aaa89e;
  --red: #c8443c;
  --pn: #ffffff;
  --sh: rgba(28, 28, 28, 0.15);
  --sh-2: rgba(28, 28, 28, 0.2);
  --chip-bg: rgba(255, 255, 255, 0.6);
  --card-g: #e8f5e0;
  --card-p: #fce7ef;
  --card-b: #e0eefa;
  --card-y: #fdf6d8;
  --card-o: #ffeeda;
  --card-l: #efe6f8;

  position: relative;
  border: 1.8px solid #1c1c1c;
  border-radius: 0;
  padding: 26px 18px 18px;
  cursor: default;
  text-align: left;
  display: block;
  width: 100%;
  color: #1c1c1c;
  box-shadow: 3px 4px 0 rgba(28, 28, 28, 0.15), 1px 2px 8px rgba(0, 0, 0, 0.05);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.2s;
}

/* washi tape */
.card::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 64px;
  height: 20px;
  transform: translateX(-50%) rotate(var(--tape-rot, -3deg));
  background-color: var(--tape-color, var(--tape-y));
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 3px,
    rgba(255, 255, 255, 0.3) 3px,
    rgba(255, 255, 255, 0.3) 4px
  );
  mix-blend-mode: multiply;
  box-shadow: 0 1px 2px rgba(28, 28, 28, 0.08);
  z-index: 4;
  pointer-events: none;
}

.card:hover {
  transform: rotate(0deg) translate(-1px, -4px) scale(1.015);
  box-shadow: 6px 8px 0 rgba(28, 28, 28, 0.2), 1px 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 2;
}

.card:nth-child(6n + 1) {
  --tilt: -1.6deg;
  --tape-rot: -4deg;
  --tape-color: var(--tape-g);
  background: var(--card-g);
}
.card:nth-child(6n + 2) {
  --tilt: 1.2deg;
  --tape-rot: 3deg;
  --tape-color: var(--tape-p);
  background: var(--card-p);
}
.card:nth-child(6n + 3) {
  --tilt: -0.8deg;
  --tape-rot: -2deg;
  --tape-color: var(--tape-b);
  background: var(--card-b);
}
.card:nth-child(6n + 4) {
  --tilt: 1.8deg;
  --tape-rot: 4deg;
  --tape-color: var(--tape-y);
  background: var(--card-y);
}
.card:nth-child(6n + 5) {
  --tilt: -1.2deg;
  --tape-rot: -3deg;
  --tape-color: var(--tape-o);
  background: var(--card-o);
}
.card:nth-child(6n + 6) {
  --tilt: 0.9deg;
  --tape-rot: 2deg;
  --tape-color: var(--tape-p);
  background: var(--card-l);
}

.card h3 {
  font-size: 18px;
  letter-spacing: 0.01em;
  margin-bottom: 4px;
  color: #1c1c1c;
}

.card__desc {
  color: #5a5850;
  font-family: var(--font-hand);
  font-size: 0.97rem;
  margin-top: 6px;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 0;
}

.stack li {
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 5px 8px;
  border: 1.4px solid #aaa89e;
  background: rgba(255, 255, 255, 0.6);
  color: #5a5850;
}

.acts {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.acts a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1.6px solid #1c1c1c;
  background: #ffffff;
  color: #1c1c1c;
  box-shadow: 2px 2px 0 rgba(28, 28, 28, 0.15);
  text-decoration: none;
  transition: transform 0.14s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.14s, color 0.14s;
}

.acts a:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 rgba(28, 28, 28, 0.2);
  color: #c8443c;
}

.acts svg {
  width: 16px;
  height: 16px;
}

/* Details button — same mini-square look as the icon actions */
.acts button.details-btn {
  width: auto;
  height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 600 10.5px/1 var(--font-sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1.6px solid #1c1c1c;
  background: #ffffff;
  color: #1c1c1c;
  box-shadow: 2px 2px 0 rgba(28, 28, 28, 0.15);
  transition: transform 0.14s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.14s, color 0.14s, background 0.14s;
}

.acts button.details-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 rgba(28, 28, 28, 0.2);
  background: #fdf6d8;
  color: #c8443c;
}

.acts button.details-btn svg {
  width: 13px;
  height: 13px;
}

/* ==========
   skills
========== */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 6px 0;
}

.chips li {
  padding: 9px 18px;
  border: 1.7px solid var(--tx);
  font-family: var(--font-sketch);
  font-size: 0.95rem;
  color: var(--tx);
  background: var(--sticky-y);
  box-shadow: 3px 3px 0 var(--sh);
  transform: rotate(var(--t, 0deg));
  transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.16s;
}

.chips li:nth-child(4n + 1) {
  background: var(--sticky-y);
  --t: -1.4deg;
}
.chips li:nth-child(4n + 2) {
  background: var(--sticky-p);
  --t: 1.1deg;
}
.chips li:nth-child(4n + 3) {
  background: var(--sticky-b);
  --t: -0.9deg;
}
.chips li:nth-child(4n + 4) {
  background: var(--sticky-g);
  --t: 1.5deg;
}

.chips li:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 5px 6px 0 var(--sh-2);
}

/* =========
   contact
========= */
.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
  padding: 34px 20px 30px;
  border: 1.8px dashed var(--ln);
  background: var(--bg-2);
}

.contact p {
  color: var(--mu);
  font-size: 1.02rem;
  max-width: 46ch;
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 26px;
  width: 100%;
  padding: 12px 0 0;
  text-align: left;
}

/* contact cards: same paper palette in light AND dark mode */
.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px 18px 18px;
  border: 1.8px solid #1c1c1c;
  background: #faf9f6;
  color: #1c1c1c;
  text-decoration: none;
  box-shadow: 3px 4px 0 rgba(28, 28, 28, 0.15), 1px 2px 8px rgba(0, 0, 0, 0.05);
  transform: rotate(var(--t, 0deg));
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.2s;
}

/* washi tape, same trick as the project cards */
.contact-card::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 60px;
  height: 20px;
  transform: translateX(-50%) rotate(var(--tape-rot, -3deg));
  background-color: var(--tape-color, var(--tape-y));
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 3px,
    rgba(255, 255, 255, 0.3) 3px,
    rgba(255, 255, 255, 0.3) 4px
  );
  mix-blend-mode: multiply;
  box-shadow: 0 1px 2px rgba(28, 28, 28, 0.08);
  z-index: 4;
  pointer-events: none;
}

.contact-card:hover {
  transform: rotate(0deg) translate(-1px, -5px);
  box-shadow: 6px 8px 0 rgba(28, 28, 28, 0.2), 1px 4px 12px rgba(0, 0, 0, 0.08);
}

.contact-card:nth-child(1) {
  --t: -1.4deg;
  --tape-rot: -4deg;
  --tape-color: var(--tape-y);
  background: #fdf6d8;
}
.contact-card:nth-child(2) {
  --t: 1.2deg;
  --tape-rot: 3deg;
  --tape-color: var(--tape-p);
  background: #fce7ef;
}
.contact-card:nth-child(3) {
  --t: -0.9deg;
  --tape-rot: -2deg;
  --tape-color: var(--tape-g);
  background: #e8f5e0;
}

.contact-card--rec {
  border-width: 2px;
  border-color: #c8443c;
}

.contact-card__icon {
  width: 26px;
  height: 26px;
  color: #c8443c;
  margin-bottom: 6px;
}

.contact-card__label {
  font-family: var(--font-sketch);
  font-size: 1.05rem;
  font-weight: 700;
  color: #1c1c1c;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.contact-card__tag {
  display: inline-block;
  padding: 2px 8px;
  font: 700 9.5px/1.6 var(--font-sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: #c8443c;
  transform: rotate(-2.5deg);
  box-shadow: 1px 1px 0 rgba(28, 28, 28, 0.25);
}

.contact-card__value {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: #5a5850;
  word-break: break-word;
}

/* ======
   footer
====== */
.footer {
  margin-top: 70px;
  padding: 26px 20px 34px;
  border-top: 1.8px dashed var(--ln);
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--mu);
}

.footer__link {
  color: var(--tx);
  text-decoration: underline;
  text-decoration-style: wavy;
  text-decoration-color: var(--a-soft);
  text-underline-offset: 4px;
}

.footer__link:hover {
  color: var(--red);
}

/* ==============
   scroll to top
============== */
.to-top {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: 46px;
  height: 46px;
  padding: 0;
  display: grid;
  place-items: center;
  background: var(--sticky-y);
  color: var(--tx);
  border: 1.8px solid var(--tx);
  box-shadow: 3px 3px 0 var(--sh-2);
  z-index: 8;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.14s;
}

.to-top.on {
  opacity: 1;
  pointer-events: auto;
}

.to-top svg {
  width: 18px;
  height: 18px;
}

/* =============
   modal / pop-up
============= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) 16px
    max(16px, env(safe-area-inset-bottom, 0px));
  background: rgba(28, 28, 28, 0.55);
}

.modal.open {
  display: flex;
}

.modal__panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  overflow: auto;
  background: #fffdf5;
  color: #1c1c1c;
  border: 1.8px solid #1c1c1c;
  padding: 30px 22px 22px;
  box-shadow: 6px 8px 0 rgba(28, 28, 28, 0.25), 1px 4px 18px rgba(0, 0, 0, 0.18);
  transform: rotate(-0.6deg);
  animation: modal-in 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* washi tape across the top of the modal */
.modal__panel::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  width: 82px;
  height: 22px;
  transform: translateX(-50%) rotate(-3deg);
  background-color: var(--tape-y);
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 3px,
    rgba(255, 255, 255, 0.3) 3px,
    rgba(255, 255, 255, 0.3) 4px
  );
  mix-blend-mode: multiply;
  box-shadow: 0 1px 2px rgba(28, 28, 28, 0.1);
  pointer-events: none;
}

.modal__title {
  font-family: var(--font-sketch);
  font-size: clamp(20px, 4vw, 28px);
  color: #1c1c1c;
  margin-right: 34px;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  padding: 0;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: #1c1c1c;
  border: 1.6px solid #1c1c1c;
  box-shadow: 2px 2px 0 rgba(28, 28, 28, 0.15);
}

.modal__close:hover {
  background: #fce7ef;
  color: #c8443c;
}

.modal__close svg {
  width: 15px;
  height: 15px;
}

.modal__desc {
  margin-top: 14px;
  font-family: var(--font-hand);
  font-size: 1rem;
  color: #3a3833;
  line-height: 1.6;
}

.modal__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.modal__stack li {
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 5px 8px;
  border: 1.4px solid #aaa89e;
  background: rgba(255, 255, 255, 0.7);
  color: #5a5850;
}

.modal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.modal__links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  font: 600 0.82rem/1 var(--font-sans);
  color: #1c1c1c;
  background: #ffffff;
  border: 1.7px solid #1c1c1c;
  box-shadow: 2px 2px 0 rgba(28, 28, 28, 0.15);
  text-decoration: none;
}

.modal__links a:hover {
  background: #fdf6d8;
  color: #c8443c;
}

.modal__links svg {
  width: 15px;
  height: 15px;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(14px) rotate(-0.6deg) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(-0.6deg) scale(1);
  }
}

body.modal-open {
  overflow: hidden;
}

/* =============
   motion bits
============= */
.note-enter {
  animation: note-drop 0.42s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

@keyframes note-drop {
  0% {
    opacity: 0;
    transform: translateY(-14px) rotate(var(--tilt, 0deg)) scale(0.96);
  }
  65% {
    opacity: 1;
    transform: translateY(3px) rotate(var(--tilt, 0deg)) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(var(--tilt, 0deg)) scale(1);
  }
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: var(--bg-2);
}
::-webkit-scrollbar-thumb {
  background: var(--mu-faint);
  border: 2px solid var(--bg-2);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--tx-2);
}

/* ================
   small screens
================ */
@media (max-width: 720px) {
  html {
    scroll-padding-top: 74px;
  }

  .header {
    padding: 10px 16px;
  }

  .nav__hamburger {
    display: grid;
  }

  .nav__list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
    background: var(--bg);
    border-bottom: 1.8px solid var(--tx);
    display: none;
  }

  .nav__list.open {
    display: flex;
  }

  .nav__list a {
    margin-top: 8px;
    text-align: center;
    border: 1.6px solid var(--tx);
    background: var(--pn);
  }

  .main {
    padding: 0 16px 16px;
  }

  .hero {
    padding: 36px 0 6px;
  }

  .section {
    margin-top: 48px;
  }

  .grid {
    gap: 22px;
  }

  .contact {
    padding: 26px 16px;
  }

  .contact__grid {
    gap: 22px;
  }

  .modal__panel {
    padding: 26px 18px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .card {
    transition: none;
  }
  .modal__panel {
    animation: none;
  }
}

.role {
  color: #ffa8be;
}