/* =========================================================
   Cassandra Wang — Sketchbook / Artist-Portfolio
   Hand-drawn · scribble · mixed-media collage on white
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --paper:      #fbfaf5;
  --paper-2:    #f4f2ea;
  --ink:        #1a1916;
  --ink-soft:   #3b3934;
  --ink-mute:   #6f6c63;
  --ink-faint:  #9c988d;

  --hi:         #ffd84d;   /* highlighter yellow */
  --hi-soft:    #ffe9a0;
  --red:        #e5432f;   /* red pen */
  --blue:       #2f48cf;   /* ballpoint blue */

  --tape:       rgba(214, 206, 178, 0.55);

  --font-marker: "Caveat", "Comic Sans MS", cursive;
  --font-hand:   "Shantell Sans", "Comic Sans MS", system-ui, sans-serif;
  --font-type:   "Courier Prime", ui-monospace, monospace;

  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* hand-drawn irregular border radii */
  --r-box:  255px 12px 225px 15px / 15px 225px 18px 255px;
  --r-box2: 18px 240px 20px 220px / 230px 18px 235px 20px;
  --r-pill: 120px 14px 130px 16px / 16px 120px 18px 124px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-hand);
  font-weight: 400;
  background-color: var(--paper);
  color: var(--ink);
  line-height: 1.62;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle, rgba(26,25,22,0.045) 1px, transparent 1.4px);
  background-size: 26px 26px;
  background-position: -8px -8px;
}

/* paper grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--hi); color: var(--ink); }

/* hide the global rough-filter svg */
.svg-defs { position: absolute; width: 0; height: 0; pointer-events: none; }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
  position: relative;
  z-index: 2;
}
.section { position: relative; padding: clamp(80px, 12vh, 150px) 0; z-index: 2; }

/* ---------- Hand-drawn primitives ---------- */
.ink-box {
  position: relative;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-box);
}
.ink-box::after {            /* second pass — "gone over twice" */
  content: "";
  position: absolute;
  inset: 4px 5px 6px 4px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-box2);
  opacity: 0.32;
  pointer-events: none;
}

.tape {
  position: absolute;
  width: 92px; height: 28px;
  background: var(--tape);
  border: 1px solid rgba(150,142,112,0.4);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  z-index: 5;
}
.tape::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.18) 0 6px, transparent 6px 12px);
}

/* scribble svg helper (inline svgs use currentColor) */
.scribble { display: block; color: var(--ink); pointer-events: none; }
.rough { filter: url(#rough); }

.eyebrow {
  font-family: var(--font-type);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow b { color: var(--red); font-weight: 700; }

/* highlighter swipe behind text */
.hl {
  position: relative;
  display: inline;
  background: linear-gradient(105deg, transparent 1%, var(--hi) 1% 99%, transparent 99%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0 .12em;
  border-radius: 6px 4px 8px 3px;
}

/* circled word */
.circled { position: relative; display: inline-block; }
.circled svg {
  position: absolute;
  left: -10%; top: -22%;
  width: 120%; height: 150%;
  overflow: visible;
  color: var(--red);
  pointer-events: none;
}

h1, h2, h3 { font-family: var(--font-marker); font-weight: 700; line-height: 0.94; letter-spacing: 0; }

.section-title {
  font-size: clamp(3rem, 9vw, 6rem);
  margin-bottom: 8px;
}
.section-lede {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 52ch;
  text-wrap: pretty;
}
.title-row {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.title-num {
  font-family: var(--font-type);
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
  transform: translateY(-10px) rotate(-3deg);
}

/* =========================================================
   NAV — paper tag pills
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(16px, 4vw, 40px);
  transition: transform .4s var(--ease);
}
.nav.hidden { transform: translateY(-130%); }
.brand {
  font-family: var(--font-marker);
  font-size: 1.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
  white-space: nowrap;
  transform: rotate(-2deg);
}
.brand .star { color: var(--red); font-size: 1rem; }

.nav-links { display: flex; align-items: center; gap: 10px; }
.pill {
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 7px 16px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  color: var(--ink);
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.nav-links .pill:nth-child(odd)  { transform: rotate(-2deg); }
.nav-links .pill:nth-child(even) { transform: rotate(1.5deg); }
.pill:hover { background: var(--hi); transform: rotate(0deg) scale(1.05); }
.pill.solid { background: var(--ink); color: var(--paper); }
.pill.solid:hover { background: var(--red); color: var(--paper); }
.pill .fa-solid, .pill .fa-regular, .pill .fa-brands { font-size: 0.82em; }

.nav-toggle { display: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  z-index: 2;
}
.hero-inner { width: 100%; position: relative; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transform: rotate(-1.5deg);
  margin-bottom: 8px;
}

.hero h1 {
  font-size: clamp(4.2rem, 17vw, 13rem);
  line-height: 0.82;
  letter-spacing: -0.01em;
  position: relative;
}
.hero h1 .l1 { display: block; transform: rotate(-2deg); transform-origin: left; }
.hero h1 .l2 { display: block; margin-left: 0.4em; transform: rotate(0.5deg); }
.hero h1 .ink-fill {
  color: var(--ink);
  -webkit-text-stroke: 0;
}
.hero h1 .outline {
  color: var(--paper);
  -webkit-text-stroke: 2.5px var(--ink);
  paint-order: stroke fill;
}

.hero-sub {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  font-size: 1.15rem;
}
.hero-sub .slash { color: var(--red); font-family: var(--font-marker); font-size: 1.8rem; transform: translateY(2px); }
.hero-sub b { font-weight: 700; }

.hero-roles {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.role-tag {
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 18px;
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  background: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.role-tag i { font-size: 0.85em; }
.role-tag:nth-child(1) { transform: rotate(-2deg); }
.role-tag:nth-child(1) i { color: var(--red); }
.role-tag:nth-child(2) { transform: rotate(1.5deg); background: var(--hi-soft); }
.role-tag:nth-child(2) i { color: var(--ink); }
.role-tag:nth-child(3) { transform: rotate(-1deg); }
.role-tag:nth-child(3) i { color: var(--blue); }

.hero-actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.btn {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 13px 26px;
  border: 2.5px solid var(--ink);
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  box-shadow: 3px 3px 0 var(--ink);
}
.btn i { font-size: 0.9em; }
.btn:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }
.btn.solid { background: var(--hi); }
.btn.solid:hover { background: var(--hi); }

/* hero doodles */
.hero-doodle {
  position: absolute;
  color: var(--ink);
  pointer-events: none;
  z-index: 1;
}
.d-arrow { right: 6%; top: 8%; width: 120px; color: var(--red); transform: rotate(8deg); }
.d-star  { right: 18%; top: 2%; width: 46px; color: var(--blue); }
.d-spiral{ left: -2%; bottom: 6%; width: 70px; color: var(--ink-mute); transform: rotate(-10deg); }
.d-flower-slot {
  display: block;
  position: absolute;
  right: clamp(18px, 5.5vw, 70px);
  top: clamp(465px, 41vw, 540px);
  width: clamp(168px, 17vw, 225px);
  margin: 0;
  transform: rotate(4deg);
  z-index: 4;
}
.cat-stack { cursor: pointer; }
.cat-polaroid {
  position: relative;
  background: #fff;
  padding: 9px 9px 38px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 4px 6px 18px -8px rgba(0,0,0,0.34);
  transition: transform .5s var(--ease);
}
.cat-stack:hover .cat-polaroid { transform: rotate(-1deg) scale(1.02); }
.cat-swap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.cat-swap img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transition: opacity .55s var(--ease);
  backface-visibility: hidden;
}
.cat-swap .cat-photo { opacity: 0; }
.cat-stack:hover .cat-swap .cat-illus { opacity: 0; }
.cat-stack:hover .cat-swap .cat-photo { opacity: 1; }
.cat-cap {
  position: absolute;
  left: 0; right: 0; bottom: 11px;
  text-align: center;
  font-family: var(--font-marker);
  font-size: clamp(0.88rem, 1.15vw, 1.05rem);
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}
.cat-polaroid .tape.t1 {
  width: 64px; height: 20px;
  top: -10px; left: 50%;
  transform: translateX(-50%) rotate(-5deg);
}
.cat-note {
  position: absolute;
  right: -34px; bottom: 44px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-marker);
  font-size: 1rem;
  line-height: 1;
  color: var(--red);
  transform: rotate(-6deg);
  z-index: 6;
  white-space: nowrap;
}
.cat-note svg { width: 44px; color: var(--red); display: inline-block; vertical-align: middle; }
.cat-note span { text-shadow: 0 1px 0 #fff; }
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  font-family: var(--font-marker);
  font-size: 1.4rem;
  color: var(--ink-mute);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  z-index: 3;
}
.scroll-hint svg { width: 22px; color: var(--ink-mute); animation: bob 1.8s var(--ease) infinite; }
@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(7px)} }

/* =========================================================
   ABOUT — taped polaroid + handwritten notes
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: flex-start;
}
.photo-stack { position: relative; padding-top: 30px; }
.polaroid {
  position: relative;
  background: #fff;
  padding: 14px 14px 56px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 6px 10px 26px -10px rgba(0,0,0,0.32);
  transform: rotate(-3deg);
  transition: transform .5s var(--ease);
  max-width: 420px;
}
.photo-stack:hover .polaroid { transform: rotate(-1deg) scale(1.01); }
.polaroid .swap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.polaroid .swap img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transition: opacity .55s var(--ease);
  backface-visibility: hidden;
}
.polaroid .ph-photo { opacity: 0; }
.photo-stack:hover .polaroid .ph-illus { opacity: 0; }
.photo-stack:hover .polaroid .ph-photo { opacity: 1; }
.polaroid .cap {
  position: absolute;
  left: 0; right: 0; bottom: 16px;
  text-align: center;
  font-family: var(--font-marker);
  font-size: 1.5rem;
  color: var(--ink);
}
.polaroid .tape.t1 { top: -14px; left: 30px; transform: rotate(-6deg); }
.polaroid .tape.t2 { top: -12px; right: 36px; transform: rotate(7deg); }

.photo-note {
  position: absolute;
  right: -10px; bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-marker);
  font-size: 1.2rem;
  letter-spacing: 0;
  text-transform: lowercase;
  color: var(--red);
  transform: rotate(-6deg);
  z-index: 6;
}
.photo-note svg { width: 58px; color: var(--red); display: inline-block; vertical-align: middle; }

.about-body .eyebrow { margin-bottom: 18px; }
.about-lead {
  font-family: var(--font-marker);
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1.05;
  margin-bottom: 22px;
}
.about-body p { color: var(--ink-soft); margin-bottom: 16px; font-size: 1.05rem; }
.about-body p strong { color: var(--ink); font-weight: 700; }

.toolkit { margin-top: 30px; }
.toolkit .label {
  font-family: var(--font-type);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 8px;
}
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 0.86rem;
  padding: 5px 13px;
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  background: var(--paper);
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.chip:nth-child(3n)   { transform: rotate(-2deg); }
.chip:nth-child(3n+1) { transform: rotate(1.5deg); }
.chip:hover { background: var(--hi); transform: rotate(0) scale(1.06); }

/* =========================================================
   EXPERIENCE — sketchbook notes
   ========================================================= */
.exp-list { margin-top: 50px; display: flex; flex-direction: column; gap: 30px; }
.exp {
  position: relative;
  padding: clamp(22px, 3vw, 36px) clamp(22px, 3vw, 40px);
}
.exp:nth-child(odd)  { transform: rotate(-0.6deg); }
.exp:nth-child(even) { transform: rotate(0.5deg); }
.exp:hover { transform: rotate(0); }
.exp { transition: transform .4s var(--ease); }
.exp-head {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: baseline; gap: 6px 22px; margin-bottom: 4px;
}
.exp-role { font-family: var(--font-marker); font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.exp-date {
  font-family: var(--font-type);
  font-size: 0.82rem;
  color: var(--ink);
  background: var(--hi);
  padding: 3px 10px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-pill);
  white-space: nowrap;
  transform: rotate(1.5deg);
}
.exp.now .exp-date { background: var(--red); color: #fff; }
.exp-org { font-weight: 700; font-size: 1.08rem; margin-bottom: 3px; }
.exp-meta {
  font-family: var(--font-type);
  font-size: 0.8rem; color: var(--ink-mute);
  display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 14px;
}
.exp-meta span { display: inline-flex; align-items: center; gap: 6px; }
.exp-meta i { color: var(--ink-faint); }
.exp-points { display: flex; flex-direction: column; gap: 8px; }
.exp-points li { position: relative; padding-left: 28px; color: var(--ink-soft); font-size: 1rem; }
.exp-points li::before {
  content: "";
  position: absolute; left: 2px; top: 9px;
  width: 13px; height: 9px;
  border-left: 2.5px solid var(--red);
  border-bottom: 2.5px solid var(--red);
  transform: rotate(-45deg);
}
.exp-stack { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.exp-stack .chip { font-size: 0.78rem; padding: 4px 11px; }

/* education + awards */
.note-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 28px;
}
.note-card { padding: clamp(24px, 3vw, 38px); }
.note-card.edu  { transform: rotate(-0.6deg); }
.note-card.award { transform: rotate(0.7deg); background: var(--paper); }
.note-label {
  font-family: var(--font-marker);
  font-size: 2rem;
  margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 10px;
}
.note-label .u { display:inline-block; }
.edu-item { padding: 16px 0; border-bottom: 2px dashed rgba(26,25,22,0.16); }
.edu-item:last-child { border-bottom: none; }
.edu-item .school { font-family: var(--font-marker); font-size: 1.6rem; line-height: 1; }
.edu-item .deg { font-weight: 600; color: var(--ink-soft); margin-top: 3px; }
.edu-item .when { font-family: var(--font-type); font-size: 0.76rem; color: var(--ink-mute); margin-top: 5px; }
.edu-item .course { font-size: 0.9rem; color: var(--ink-mute); margin-top: 7px; }

.award-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 2px dashed rgba(26,25,22,0.16); }
.award-item:last-child { border-bottom: none; }
.award-item .star {
  flex: none; width: 40px; height: 40px;
  display: grid; place-items: center;
  color: var(--red);
}
.award-item .star svg { width: 100%; }
.award-item .name { font-family: var(--font-marker); font-size: 1.5rem; line-height: 1; }
.award-item .sub { font-family: var(--font-type); font-size: 0.78rem; color: var(--ink-mute); margin-top: 4px; }

/* =========================================================
   PROJECTS — taped zine clippings
   ========================================================= */
.proj-grid {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px 30px;
}
.proj {
  position: relative;
  padding: clamp(24px, 3vw, 38px);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.proj:nth-child(4n+1) { transform: rotate(-1deg); }
.proj:nth-child(4n+2) { transform: rotate(1deg); }
.proj:nth-child(4n+3) { transform: rotate(0.6deg); }
.proj:nth-child(4n)   { transform: rotate(-0.8deg); }
.proj:hover { transform: rotate(0) translateY(-4px); }
.proj.feature { grid-column: 1 / -1; }
.proj .tape.pt { top: -13px; left: 50%; margin-left: -46px; transform: rotate(-3deg); }

.proj-kicker {
  font-family: var(--font-type);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 12px;
}
.proj-kicker .live { color: var(--red); font-weight: 700; }
.proj h3 { font-family: var(--font-marker); font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 0.92; margin-bottom: 6px; }
.proj .sub { font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.proj .role { font-family: var(--font-type); font-size: 0.76rem; color: var(--ink-mute); margin-bottom: 16px; }
.proj-points { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.proj-points li { position: relative; padding-left: 22px; color: var(--ink-soft); font-size: 0.96rem; }
.proj-points li::before {
  content: "→";
  position: absolute; left: 0; top: 0;
  color: var(--red); font-weight: 700;
}
.proj-stack { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; margin-bottom: 18px; }
.proj-stack .chip { font-size: 0.74rem; padding: 4px 10px; }
.proj-foot { display: flex; flex-wrap: wrap; gap: 12px; }
.proj-link {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 9px 18px;
  border: 2.5px solid var(--ink);
  border-radius: var(--r-pill);
  display: inline-flex; align-items: center; gap: 9px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.proj-link:hover { transform: translate(-2px,-2px); box-shadow: 5px 5px 0 var(--ink); background: var(--hi); }
.proj-link:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }
.proj-link.solid { background: var(--ink); color: var(--paper); }
.proj-link.solid:hover { background: var(--red); color: #fff; }

.proj.feature .feature-top { display: flex; gap: 28px; align-items: flex-start; }
.proj.feature .feature-main { flex: 1; }
.proj-num {
  font-family: var(--font-marker);
  font-size: 3.4rem;
  color: var(--ink-faint);
  line-height: 0.8;
  transform: rotate(-6deg);
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact { text-align: center; }
.contact .big {
  font-family: var(--font-marker);
  font-size: clamp(3.6rem, 13vw, 9rem);
  line-height: 0.86;
  margin: 6px 0 26px;
}
.contact .big .u { display: inline-block; position: relative; }
.contact .lede { margin: 0 auto 30px; }
.contact-mail {
  font-family: var(--font-marker);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-bottom: 3px solid var(--red);
  padding-bottom: 2px;
  transition: color .25s var(--ease);
}
.contact-mail:hover { color: var(--red); }
.contact-mail i { font-size: 0.6em; }

.socials { margin-top: 42px; display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.social {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 24px;
  border: 2.5px solid var(--ink);
  border-radius: var(--r-pill);
  background: var(--paper);
  display: inline-flex; align-items: center; gap: 12px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.social:nth-child(1) { transform: rotate(-2deg); }
.social:nth-child(2) { transform: rotate(1.5deg); }
.social:nth-child(3) { transform: rotate(-1deg); }
.social:hover { transform: rotate(0) translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); background: var(--hi); }
.social i { font-size: 1.2rem; }
.social .s-sub { font-family: var(--font-type); font-size: 0.7rem; color: var(--ink-mute); font-weight: 400; }
.social .s-label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { border-top: 2.5px solid var(--ink); margin-top: 40px; padding: 36px 0 50px; position: relative; z-index: 2; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 28px; }
.footer .brand { font-size: 1.6rem; transform: rotate(-1.5deg); }
.footer .tagline { font-size: 0.95rem; color: var(--ink-mute); max-width: 42ch; text-wrap: pretty; }
.footer .copy { font-family: var(--font-type); font-size: 0.74rem; color: var(--ink-faint); }
.to-top {
  font-family: var(--font-hand); font-weight: 700; font-size: 0.9rem;
  padding: 9px 16px; border: 2px solid var(--ink); border-radius: var(--r-pill);
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.to-top:hover { background: var(--hi); transform: rotate(-2deg); }

/* divider scribble */
.divider { display: block; width: 100%; max-width: 240px; margin: 0 auto; color: var(--ink-faint); }

/* =========================================================
   REVEAL
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px) rotate(var(--rot, 0deg));
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal].in { opacity: 1; transform: translateY(0) rotate(var(--rot, 0deg)); }
[data-reveal][data-d="1"] { transition-delay: .08s; }
[data-reveal][data-d="2"] { transition-delay: .16s; }
[data-reveal][data-d="3"] { transition-delay: .24s; }

.hero [data-pop] { opacity: 0; transform: translateY(22px); animation: pop .8s var(--ease) forwards; }
.hero [data-pop="1"] { animation-delay: .1s; }
.hero [data-pop="2"] { animation-delay: .24s; }
.hero [data-pop="3"] { animation-delay: .4s; }
.hero [data-pop="4"] { animation-delay: .54s; }
.hero [data-pop="5"] { animation-delay: .68s; }
@keyframes pop { to { opacity: 1; transform: none; } }

/* draw-in for hero doodles */
.hero-doodle path, .hero-doodle line, .hero-doodle polyline, .hero-doodle circle, .hero-doodle ellipse {
  stroke-dasharray: var(--len, 400);
  stroke-dashoffset: var(--len, 400);
  animation: draw 1.2s var(--ease) forwards;
  animation-delay: .9s;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .photo-stack { max-width: 420px; margin: 0 auto; }
  .note-grid { grid-template-columns: 1fr; }
  .proj-grid { grid-template-columns: 1fr; }
  .proj.feature .feature-top { flex-direction: column; gap: 14px; }
  .d-flower-slot { display: none; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 70px; right: clamp(16px,4vw,40px);
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    padding: 18px;
    background: var(--paper);
    border: 2.5px solid var(--ink);
    border-radius: var(--r-box);
    box-shadow: 5px 6px 0 var(--ink);
  }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px;
    border: 2.5px solid var(--ink);
    border-radius: var(--r-pill);
    background: var(--hi);
    font-size: 1.1rem; cursor: pointer;
    transform: rotate(-2deg);
  }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .hero h1 { font-size: clamp(3.4rem, 18vw, 6rem); }
  .d-arrow, .d-star, .d-spiral { display: none; }
  .btn, .social { width: 100%; justify-content: center; }
  .hero-actions { width: 100%; }
  .exp-head { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  html { scroll-behavior: auto; }
  [data-reveal], .hero [data-pop] { opacity: 1 !important; transform: none !important; }
  .hero-doodle path, .hero-doodle line, .hero-doodle polyline, .hero-doodle circle, .hero-doodle ellipse { stroke-dashoffset: 0 !important; }
}
