:root {
  --red: #b7261f;
  --red-deep: #9c1f19;
  --cream: #f4ede1;
  --paper: #ebe2d2;
  --ink: #16130f;
  --ink-soft: #3b342c;
  --on-red: #fbf5ea;
  --hand: "Shantell Sans", "Comic Sans MS", cursive;
  --px: "Pixelify Sans", ui-monospace, monospace;
  --text: "Montserrat", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 500 17px/1.7 var(--text);
  overflow-x: hidden;
}

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 4px; }
img { max-width: 100%; }
p { margin: 0 0 1em; }

.px { display: block; image-rendering: pixelated; }

/* ---------- display type ---------- */
.hand {
  font-family: var(--hand);
  font-weight: 800;
  font-variation-settings: "BNCE" 60, "INFM" 100, "SPAC" 0;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  font-size: clamp(2.3rem, 6vw, 4.2rem);
  text-wrap: balance;
}
.hand.center { text-align: center; }
.hand.huge { font-size: clamp(3rem, 11vw, 7.5rem); }

.num {
  position: absolute;
  font-family: var(--hand);
  font-weight: 800;
  font-variation-settings: "BNCE" 80, "INFM" 100;
  font-size: clamp(9rem, 26vw, 19rem);
  line-height: .8;
  pointer-events: none;
  user-select: none;
}

/* ---------- layout ---------- */
.wrap { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 780px; }
.center { text-align: center; }

.band { position: relative; overflow: hidden; padding: clamp(64px, 10vw, 120px) 0; }
.band.red { background: var(--red); color: var(--on-red); }
.band.red .num { color: rgba(255, 255, 255, .14); }
.band.cream .num, .band.paper .num { color: rgba(183, 38, 31, .16); }
.band.cream .hand, .band.paper .hand { color: var(--red); }
.band.paper { background: var(--paper); }
.band.dots {
  background-image: radial-gradient(rgba(22, 19, 15, .13) 1.2px, transparent 1.3px);
  background-size: 18px 18px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 18px 20px 0;
  border-bottom: 6px solid var(--red);
}
.topbar {
  display: grid;
  grid-template-columns: 1fr minmax(0, 420px) 1fr;
  gap: 16px;
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
  color: var(--red);
  font-size: .82rem;
  font-weight: 600;
}
.tb-name { font-weight: 700; letter-spacing: .02em; }
.tb-lead { text-align: center; margin: 0; line-height: 1.45; }
.lang { display: flex; justify-content: flex-end; gap: 6px; }
.lang a {
  font-weight: 700;
  font-size: .78rem;
  text-decoration: none;
  padding: 2px 8px;
  border: 2px solid var(--red);
}
.lang a[aria-current] { background: var(--red); color: var(--cream); }

.stage {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
  padding-top: clamp(24px, 4vw, 48px);
}
.stage h1 { margin: 0; color: var(--red); font-family: var(--hand); font-weight: 800; }
.stage .first {
  display: block;
  font-size: clamp(4rem, 15.5vw, 12.6rem);
  line-height: .86;
  letter-spacing: -0.035em;
  font-variation-settings: "BNCE" 100, "INFM" 100, "SPAC" -40;
}
.stage .last {
  position: absolute;
  right: 4%;
  top: clamp(150px, 27vw, 300px);
  z-index: 3;
  font-size: clamp(1.8rem, 5vw, 3.6rem);
  background: var(--cream);
  padding: 0 .25em;
  transform: rotate(-6deg);
  font-variation-settings: "BNCE" 40, "INFM" 100;
}
.stage .me {
  position: relative;
  z-index: 2;
  display: block;
  width: clamp(230px, 34vw, 400px);
  height: auto;
  margin: clamp(-120px, -9vw, -40px) auto 0;
  image-rendering: pixelated;
}
.stage .px { position: absolute; color: var(--red); width: clamp(22px, 3vw, 36px); }
.s1 { top: 4%; right: 6%; }
.s2 { top: 58%; left: 7%; }
.s3 { bottom: 22%; right: 26%; width: 18px !important; }

.bottombar {
  position: absolute;
  left: 0; right: 0; bottom: 14px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  color: var(--red);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  pointer-events: none;
}

/* ---------- 01 who ---------- */
.two { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.aka { font-weight: 700; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }
.prose p:first-child { font-size: 1.15rem; font-weight: 600; }
.who { padding-bottom: 0; }
.who .two { align-items: end; }
.who-left { display: flex; flex-direction: column; }
.who-left .bust { width: clamp(220px, 26vw, 320px); height: auto; margin-top: 28px; image-rendering: pixelated; }
.who .prose { padding-bottom: clamp(64px, 10vw, 120px); }
.who .num { right: 1%; bottom: -78px; }
.who > .px { position: absolute; right: 30%; top: 14%; color: var(--on-red); width: 30px; }

/* ---------- 02 work ---------- */
.work .num { top: 30px; left: -14px; }
.side { display: grid; grid-template-columns: .8fr 1.4fr; gap: clamp(28px, 6vw, 72px); align-items: start; }
.side-art { position: sticky; top: 40px; padding-top: clamp(80px, 12vw, 150px); }
.side-art .big { width: min(100%, 300px); margin: 0 auto; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 30px 34px; border-left: 3px dashed rgba(183, 38, 31, .4); }
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline li::before {
  content: ""; position: absolute; left: -9px; top: 4px;
  width: 15px; height: 15px; background: var(--red); box-shadow: 3px 3px 0 var(--ink);
}
.when { color: var(--red); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.timeline h3 {
  font-family: var(--hand); font-weight: 700; font-size: 1.45rem; line-height: 1.2;
  margin: 2px 0 2px; font-variation-settings: "INFM" 60;
}
.org { font-weight: 700; margin-bottom: .35em; }

/* ---------- 03 hackathon ---------- */
.hack .num { left: -10px; bottom: -20px; }
.trophy { display: flex; justify-content: center; align-items: flex-end; gap: 18px; margin-bottom: 18px; }
.trophy .big { width: clamp(110px, 16vw, 160px); }
.trophy .px:not(.big) { color: var(--on-red); width: 26px; }
.hack .prose { max-width: 62ch; margin: 0 auto; }
.points {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 28px !important;
  max-width: 1000px;
}
.points li {
  background: var(--cream);
  color: var(--ink);
  padding: 18px 20px;
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--red-deep);
  line-height: 1.5;
}
.points .n { display: block; font-family: var(--px); color: var(--red); font-size: 1.1rem; margin-bottom: 4px; }
.meta { font-size: .85rem; font-weight: 600; text-align: center; margin-top: 28px; opacity: .92; }

/* ---------- 04 projects ---------- */
.head-row { position: relative; display: flex; align-items: flex-end; justify-content: space-between; }
.projects .num { position: static; margin-bottom: -30px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 18px; }
.card {
  background: var(--cream);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 var(--red);
  padding: 26px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 var(--red); }
.card .icon { width: 52px; margin-bottom: 14px; }
.card h3 { font-family: var(--hand); font-weight: 800; font-size: 1.6rem; margin: 0 0 6px; color: var(--ink); }
.card h3 a { text-decoration-color: var(--red); }
.card p { margin: 0; color: var(--ink-soft); }

/* ---------- 05 creds ---------- */
.creds .num { right: -10px; bottom: -24px; }
.creds-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 80px); }
.certs { list-style: none; margin: 0; padding: 0; }
.certs li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 2px dashed rgba(22, 19, 15, .18); }
.certs .px { flex: 0 0 18px; width: 18px; margin-top: 5px; color: var(--red); }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li {
  font-family: var(--px); font-size: 1rem;
  padding: 6px 12px; background: var(--cream);
  border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
}

/* ---------- 06 faq ---------- */
.faq .num { right: -10px; top: 20px; }
details {
  background: var(--cream);
  color: var(--ink);
  border: 3px solid var(--ink);
  margin-bottom: 14px;
  padding: 0 22px;
}
summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 1.2rem;
  padding: 18px 34px 18px 0;
  position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 0; top: 12px;
  font-family: var(--px); font-size: 1.8rem; color: var(--red);
}
details[open] summary::after { content: "–"; }
details p { padding-bottom: 18px; margin: 0; }

/* ---------- contact ---------- */
.contact .px { width: 40px; margin: 0 auto 12px; color: var(--red); }
.links { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.links a {
  display: inline-block;
  font-family: var(--px); font-size: 1.1rem; text-decoration: none;
  background: var(--red); color: var(--on-red);
  padding: 12px 22px; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.links a:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }

footer {
  background: var(--ink); color: var(--cream);
  text-align: center; padding: 22px 20px;
  font-size: .82rem; font-weight: 600; letter-spacing: .03em;
}

a:focus-visible, summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.band.red a:focus-visible { outline-color: var(--on-red); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .links a { transition: none; }
}

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  .topbar { grid-template-columns: 1fr auto; }
  .tb-lead { grid-column: 1 / -1; grid-row: 2; text-align: left; font-size: .85rem; }
  .stage .last { position: static; display: inline-block; margin-top: 6px; transform: rotate(-4deg); }
  .stage .me { margin-top: 10px; }
  .bottombar { position: static; padding: 10px 0 14px; font-size: .85rem; }
  .two, .side, .creds-grid { grid-template-columns: 1fr; }
  .side-art { position: static; padding-top: 0; }
  .side-art .big { width: 160px; margin: 0; }
  .cards { grid-template-columns: 1fr; }
  .s1, .s2 { display: none; }
  .bottombar span:last-child { text-align: right; }
  .bottombar { gap: 16px; }
}
.cert-photo { max-width: 640px; margin: 32px auto 0; }
.cert-photo img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
