:root {
  --cream: #fff7dd;
  --butter: #fff0a3;
  --ink: #17120d;
  --muted: #6e6256;
  --orange: #ff7a3d;
  --pink: #ff8cc6;
  --blue: #7ec8ff;
  --yellow: #fff05a;
  --green: #b8f56c;
  --purple: #b39cff;
  --paper: rgba(255, 255, 255, .74);
  --line: rgba(23, 18, 13, .16);
  --shadow: 8px 8px 0 var(--ink);
  --radius: 2rem;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--cream);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  background:
    linear-gradient(90deg, rgba(23,18,13,.034) 1px, transparent 1px),
    linear-gradient(rgba(23,18,13,.034) 1px, transparent 1px),
    radial-gradient(circle at 8% 12%, rgba(255, 140, 198, .58), transparent 26rem),
    radial-gradient(circle at 86% 4%, rgba(126, 200, 255, .68), transparent 25rem),
    radial-gradient(circle at 78% 82%, rgba(184, 245, 108, .58), transparent 30rem),
    var(--cream);
  background-size: 44px 44px, 44px 44px, auto, auto, auto, auto;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 20%), rgba(255,255,255,.62), transparent 18rem);
}

a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .8rem 1rem;
  border: 2px solid var(--ink);
  background: #fff;
  box-shadow: var(--shadow);
}

.skip-link:focus { top: 1rem; }

.paper-grain {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: .16;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

.blob {
  position: fixed;
  z-index: 0;
  border-radius: 999px;
  filter: blur(20px);
  opacity: .48;
  pointer-events: none;
  animation: breathe 8s ease-in-out infinite alternate;
}

.blob-a { width: 20rem; height: 20rem; left: -5rem; top: 18rem; background: var(--yellow); }
.blob-b { width: 25rem; height: 25rem; right: -8rem; top: 15rem; background: var(--pink); animation-delay: -2s; }
.blob-c { width: 24rem; height: 24rem; left: 42%; bottom: -9rem; background: var(--blue); animation-delay: -4s; }

@keyframes breathe { to { transform: translate3d(1.2rem, -1rem, 0) scale(1.08); } }

.topbar {
  position: fixed;
  left: 50%;
  top: 1rem;
  z-index: 30;
  width: min(1120px, calc(100vw - 1.4rem));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .55rem .65rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 247, 221, .76);
  box-shadow: 6px 6px 0 var(--ink);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
}

.logo,
.topbar nav {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.topbar nav {
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.topbar nav::-webkit-scrollbar {
  display: none;
}

.logo {
  flex: 0 0 auto;
  padding-right: .8rem;
  font-family: "Bricolage Grotesque";
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  overflow: visible;
}

.logo span {
  flex: 0 0 2.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.45rem;
  height: 2.45rem;
  aspect-ratio: 1;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  box-shadow: 3px 3px 0 var(--ink);
  font: 800 .78rem/1 "Plus Jakarta Sans";
  letter-spacing: -.03em;
}

.topbar nav a {
  padding: .68rem .78rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 800;
  transition: background .18s, color .18s, transform .18s;
}

.topbar nav a:hover {
  background: var(--yellow);
  color: var(--ink);
  transform: rotate(-3deg);
}

main {
  position: relative;
  z-index: 1;
}

.section {
  width: min(1180px, calc(100vw - 1.4rem));
  margin-inline: auto;
  padding: clamp(5.5rem, 9vw, 9rem) 0;
}

.opening {
  min-height: 100vh;
  display: flex;
  gap: clamp(2.5rem, 7vw, 6.5rem);
  align-items: center;
  justify-content: space-between;
  padding-top: 9rem;
  padding-bottom: 7rem;
  position: relative;
}

.intro {
  flex: 1 1 640px;
  position: relative;
  z-index: 4;
  padding-top: 0;
  min-width: 0;
}

.tiny,
.chapter {
  margin: 0 0 1rem;
  font: 800 .78rem "Plus Jakarta Sans";
  letter-spacing: .13em;
  text-transform: uppercase;
}

.tiny {
  display: inline-flex;
  max-width: min(100%, 520px);
  padding: .62rem .8rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--green);
  box-shadow: 4px 4px 0 var(--ink);
  position: relative;
  z-index: 7;
}

.hero-meta {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

.chapter { color: var(--orange); }

.intro h1,
.origin h2,
.section-head h2,
.contact h2 {
  margin: 0;
  font: 800 clamp(3.4rem, 7.8vw, 8rem) / .88 "Bricolage Grotesque";
  letter-spacing: -.075em;
}

.intro h1 {
  font-size: clamp(4.2rem, 7.2vw, 8rem);
  line-height: .9;
  max-width: 820px;
}

.intro h1 span,
.intro h1 em {
  display: inline;
}

.intro h1 em {
  display: block;
  width: fit-content;
  max-width: 100%;
  color: var(--orange);
  font-family: Caveat;
  font-weight: 700;
  letter-spacing: -.02em;
  text-shadow: 4px 4px 0 rgba(23,18,13,.12);
  transform: rotate(-2deg);
}

.intro h1 span,
.intro h1 em {
  text-wrap: balance;
}

.lead {
  max-width: 650px;
  margin: 1.8rem 0 0;
  color: #3d352d;
  font-size: clamp(1.1rem, 2vw, 1.42rem);
  line-height: 1.62;
}

.hero-actions,
.links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

.hero-actions a,
.links a,
.github-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: .9rem 1.1rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  box-shadow: 5px 5px 0 var(--orange);
  font-weight: 800;
  transition: transform .18s, box-shadow .18s, background .18s;
}

.hero-actions a + a,
.links a:nth-child(n+2) {
  background: #fff;
  color: var(--ink);
}

.hero-actions a:hover,
.links a:hover,
.github-link:hover {
  transform: translate(-2px, -4px) rotate(-1.5deg);
  box-shadow: 8px 9px 0 var(--orange);
}

.hello-card {
  position: relative;
  left: auto;
  top: auto;
  z-index: 6;
  flex: 0 0 170px;
  width: 170px;
  padding: .9rem;
  border: 2px solid var(--ink);
  border-radius: 1.4rem;
  background: #fff;
  box-shadow: var(--shadow);
  --wiggle: translate(0, 0) rotate(0deg);
  transform: rotate(4deg) var(--wiggle);
}

.pin,
.photo-card::before,
.last-photo::before {
  position: absolute;
  left: 50%;
  top: -.7rem;
  width: 1.4rem;
  height: 1.4rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 2px 2px 0 var(--ink);
  transform: translateX(-50%);
  content: "";
}

.hello-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.45;
}

.hello-card strong {
  font: 800 2.35rem "Bricolage Grotesque";
}

.memory-board {
  flex: 0 1 520px;
  min-height: auto;
  position: relative;
  align-self: center;
  max-width: 540px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
}

.photo-card,
.stamp-card,
.audio-card,
.last-photo {
  position: relative;
  border: 2px solid var(--ink);
  background: #fffdf2;
  box-shadow: var(--shadow);
  will-change: transform;
}

.photo-card {
  flex: 0 0 230px;
  width: 230px;
  padding: .75rem .75rem 1.1rem;
  border-radius: .6rem;
  --wiggle: translate(0, 0) rotate(0deg);
  transform: rotate(var(--r)) var(--wiggle);
}

.card-one { left: auto; top: auto; z-index: 3; }
.card-two { right: auto; top: auto; z-index: 2; margin-top: 5rem; }

.artifact-visual {
  height: 210px;
  border: 2px solid var(--ink);
  border-radius: .35rem;
  overflow: hidden;
  position: relative;
}

.artifact-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(transparent 0 48%, rgba(255,255,255,.28) 48% 52%, transparent 52%),
    linear-gradient(90deg, transparent 0 48%, rgba(255,255,255,.24) 48% 52%, transparent 52%);
  background-size: 42px 42px;
  opacity: .55;
}

.artifact-visual {
  display: grid;
  align-content: start;
  gap: .55rem;
  padding: 1rem;
}

.artifact-visual span {
  position: relative;
  z-index: 2;
  width: max-content;
  padding: .42rem .55rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.artifact-visual strong {
  position: relative;
  z-index: 2;
  max-width: 8ch;
  font: 800 2.1rem/.86 "Bricolage Grotesque";
  letter-spacing: -.06em;
}

.artifact-visual.cdc {
  background:
    radial-gradient(circle at 86% 16%, var(--orange) 0 2.5rem, transparent 2.6rem),
    linear-gradient(135deg, #fff, var(--blue));
}

.artifact-visual.prototype {
  background:
    linear-gradient(90deg, transparent 0 30%, rgba(23,18,13,.13) 30% 33%, transparent 33%),
    radial-gradient(circle at 84% 78%, var(--orange) 0 2.3rem, transparent 2.4rem),
    linear-gradient(135deg, var(--green), #fff);
}

.doc-lines,
.doc-table,
.module-map,
.phone-wire {
  position: relative;
  z-index: 2;
}

.doc-lines {
  display: grid;
  gap: .28rem;
  margin-top: .2rem;
}

.doc-lines i {
  display: block;
  height: .34rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
}

.doc-lines i:nth-child(1) { width: 92%; }
.doc-lines i:nth-child(2) { width: 74%; background: var(--yellow); }
.doc-lines i:nth-child(3) { width: 86%; background: var(--green); }
.doc-lines i:nth-child(4) { width: 56%; }

.doc-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .25rem;
  margin-top: .35rem;
  padding: .35rem;
  border: 2px solid var(--ink);
  border-radius: .65rem;
  background: rgba(255,255,255,.6);
}

.doc-table i {
  min-height: 1.05rem;
  border: 2px solid var(--ink);
  border-radius: .35rem;
  background: #fff;
}

.doc-table i:nth-child(2),
.doc-table i:nth-child(5) {
  background: var(--yellow);
}

.doc-table i:nth-child(3),
.doc-table i:nth-child(6) {
  background: var(--green);
}

.module-map {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .35rem;
  margin-top: .1rem;
}

.module-map i {
  min-height: 2rem;
  border: 2px solid var(--ink);
  border-radius: .55rem;
  background: rgba(255,255,255,.72);
}

.module-map i:nth-child(2) { background: var(--yellow); }
.module-map i:nth-child(4) { background: var(--blue); }
.module-map i:nth-child(6) { background: var(--orange); }

.phone-wire {
  width: 48%;
  min-height: 4.4rem;
  display: grid;
  gap: .25rem;
  margin-top: .35rem;
  margin-left: auto;
  padding: .55rem .45rem;
  border: 2px solid var(--ink);
  border-radius: .8rem;
  background: #fff;
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(4deg);
}

.phone-wire b {
  display: block;
  height: .42rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--green);
}

.phone-wire b:nth-child(2) { width: 74%; background: var(--yellow); }
.phone-wire b:nth-child(3) { width: 88%; background: var(--blue); }

.artifact-visual.contact-art {
  height: 285px;
  background:
    radial-gradient(circle at 78% 24%, var(--orange) 0 3.3rem, transparent 3.4rem),
    radial-gradient(circle at 18% 78%, var(--blue) 0 4rem, transparent 4.1rem),
    linear-gradient(135deg, var(--pink), var(--yellow));
}

.artifact-visual.contact-art strong {
  max-width: 9ch;
}

.photo-card p,
.last-photo p {
  margin: .8rem .2rem 0;
  font: 700 1.25rem Caveat;
}

.stamp-card {
  right: auto;
  bottom: auto;
  order: 3;
  width: 210px;
  flex: 0 0 210px;
  padding: 1.1rem;
  border-radius: 999px;
  background: var(--yellow);
  --wiggle: translate(0, 0) rotate(0deg);
  transform: rotate(-9deg) var(--wiggle);
}

.stamp-card strong {
  display: block;
  font: 800 2.6rem/.9 "Bricolage Grotesque";
}

.stamp-card span {
  display: block;
  margin-top: .25rem;
  color: #4f4638;
  font-size: .86rem;
}

.audio-card {
  left: auto;
  bottom: auto;
  order: 4;
  width: 300px;
  flex: 0 0 300px;
  padding: 1rem;
  border-radius: 1.3rem;
  background: var(--purple);
  --wiggle: translate(0, 0) rotate(0deg);
  transform: rotate(4deg) var(--wiggle);
}

.audio-card span {
  color: rgba(23,18,13,.62);
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.audio-card strong {
  display: block;
  margin: .45rem 0 .8rem;
  font-family: "Bricolage Grotesque";
  font-size: 1.18rem;
}

.audio-card i {
  display: inline-block;
  width: 22%;
  height: .55rem;
  margin-right: .2rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
}

.audio-card i:nth-of-type(2) { width: 10%; background: var(--yellow); }
.audio-card i:nth-of-type(3) { width: 18%; background: var(--orange); }
.audio-card i:nth-of-type(4) { width: 28%; background: var(--green); }

.marquee {
  overflow: hidden;
  border-block: 2px solid var(--ink);
  background: rgba(255, 255, 255, .45);
}

.marquee div {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  width: max-content;
  padding: 1.1rem 0;
  animation: move 34s linear infinite;
}

.marquee span {
  font: 800 clamp(1.2rem, 2.6vw, 2.1rem) "Bricolage Grotesque";
  white-space: nowrap;
}

.marquee i {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--orange);
}

@keyframes move { to { transform: translateX(-50%); } }

.origin-grid,
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .55fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
}

.section-head {
  margin-bottom: 2.2rem;
}

.section-head p {
  margin: .4rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.origin-copy {
  display: grid;
  gap: 1rem;
  padding: 1.4rem;
  border: 2px solid var(--ink);
  border-radius: 1.6rem;
  background: rgba(255,255,255,.62);
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.origin-copy p {
  margin: 0;
  color: #40372d;
  font-size: 1.08rem;
  line-height: 1.72;
}

.proof-strip {
  width: min(1420px, calc(100vw - 1.4rem));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.proof-ticket,
.skill-note,
.memory-project,
.work-card,
.cert-wall article,
.timeline li {
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
}

.proof-ticket {
  min-height: 250px;
  padding: 1.3rem;
  border-radius: var(--radius);
}

.yellow { background: var(--yellow); }
.blue { background: var(--blue); }
.pink { background: var(--pink); }
.green { background: var(--green); }
.purple { background: var(--purple); }
.orange { background: var(--orange); }
.ink { background: var(--ink); color: #fff; }

.proof-ticket span,
.memory-project span,
.work-card span,
.cert-wall span {
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.proof-ticket strong {
  display: block;
  margin: 2.4rem 0 .8rem;
  font: 800 clamp(2rem, 3vw, 3.5rem)/.88 "Bricolage Grotesque";
  letter-spacing: -.06em;
}

.proof-ticket p,
.memory-project p,
.work-card p,
.cert-wall p {
  margin: 0;
  color: #42382f;
  line-height: 1.58;
}

.table-board {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

.skill-note {
  min-height: 310px;
  padding: 1.35rem;
  border-radius: var(--radius);
  background: #fff;
}

.skill-note.big {
  grid-row: span 2;
  min-height: 550px;
  background: var(--orange);
  color: #fff;
}

.skill-note.big p { color: rgba(255,255,255,.82); }

.skill-note.wide {
  grid-column: span 2;
  background: var(--blue);
}

.skill-note span {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
}

.skill-note h3 {
  margin: 3rem 0 1rem;
  font: 800 clamp(2rem, 4.2vw, 4.5rem)/.86 "Bricolage Grotesque";
  letter-spacing: -.07em;
}

.skill-note p {
  margin: 0;
  max-width: 470px;
  color: #443a31;
  line-height: 1.62;
}

.selected-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr .9fr;
  gap: 1rem;
}

.memory-project {
  min-height: 255px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,.76);
}

.hero-memory {
  grid-row: span 2;
  min-height: 530px;
  background:
    radial-gradient(circle at 82% 18%, var(--orange) 0 4rem, transparent 4.1rem),
    linear-gradient(135deg, var(--yellow), #fff);
}

.memory-project h3 {
  margin: .7rem 0 .7rem;
  font: 800 clamp(2rem, 4.2vw, 4.6rem)/.86 "Bricolage Grotesque";
  letter-spacing: -.07em;
}

.work-grid {
  display: grid;
  grid-template-columns: 1.12fr .88fr .88fr;
  gap: 1rem;
}

.work-card {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border-radius: var(--radius);
  background: #fff;
  transition: transform .22s cubic-bezier(.16, 1, .3, 1), box-shadow .22s;
}

.work-card.blue { background: var(--blue); }
.work-card.green { background: var(--green); }
.work-card.pink { background: var(--pink); }
.work-card.purple { background: var(--purple); }
.work-card.yellow { background: var(--yellow); }
.work-card.orange { background: var(--orange); }
.work-card.ink {
  background: var(--ink);
  color: #fff;
}

.work-card.ink p {
  color: rgba(255,255,255,.78);
}

.work-card.ink .visual {
  border-color: rgba(255,255,255,.82);
}

.work-card:hover {
  transform: translate(-3px, -7px) rotate(-1deg);
  box-shadow: 13px 15px 0 var(--ink);
}

.hero-work {
  grid-row: span 2;
  min-height: 720px;
  background: var(--yellow);
}

.visual {
  min-height: 210px;
  border: 2px solid var(--ink);
  border-radius: 1.35rem;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.hero-work .visual { min-height: 390px; }

.visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(transparent 0 48%, rgba(255,255,255,.25) 48% 52%, transparent 52%),
    linear-gradient(90deg, transparent 0 48%, rgba(255,255,255,.22) 48% 52%, transparent 52%);
  background-size: 36px 36px;
}

.visual.pulse { background: radial-gradient(circle at 76% 28%, var(--orange) 0 4.5rem, transparent 4.6rem), linear-gradient(90deg, rgba(23,18,13,.18) 0 2px, transparent 2px), linear-gradient(135deg, var(--yellow), var(--blue)); background-size: auto, 28px 28px, auto; }
.visual.lens { background: radial-gradient(circle at 48% 46%, transparent 0 3.2rem, var(--ink) 3.25rem 3.55rem, transparent 3.6rem), radial-gradient(circle at 70% 68%, var(--orange) 0 2.8rem, transparent 2.9rem), linear-gradient(135deg, #fff, var(--blue)); }
.visual.odyssey { background: radial-gradient(circle at 72% 64%, var(--orange) 0 4rem, transparent 4.1rem), conic-gradient(from 130deg, var(--purple), var(--blue), var(--yellow), var(--purple)); }
.visual.habi { background: linear-gradient(90deg, transparent 0 30%, rgba(23,18,13,.18) 30% 33%, transparent 33% 63%, rgba(23,18,13,.18) 63% 66%, transparent 66%), radial-gradient(circle at 28% 28%, #fff 0 2.5rem, transparent 2.6rem), linear-gradient(135deg, var(--pink), var(--yellow)); }
.visual.workweek { background: repeating-linear-gradient(90deg, rgba(23,18,13,.18) 0 2px, transparent 2px 44px), radial-gradient(circle at 72% 32%, var(--green) 0 3.2rem, transparent 3.3rem), linear-gradient(135deg, var(--purple), #fff); }
.visual.reval { background: radial-gradient(circle at 70% 28%, var(--green) 0 3rem, transparent 3.1rem), radial-gradient(circle at 28% 72%, var(--blue) 0 3.2rem, transparent 3.3rem), linear-gradient(135deg, var(--pink), #fff); }
.visual.plein { background: linear-gradient(45deg, transparent 0 42%, rgba(23,18,13,.2) 42% 48%, transparent 48%), radial-gradient(circle at 70% 32%, var(--orange) 0 3.5rem, transparent 3.6rem), linear-gradient(135deg, var(--yellow), #fff); }
.visual.ace { background: linear-gradient(135deg, #111, #2b2a24); }
.visual.ace::before { content: ""; position: absolute; left: 1rem; right: 1rem; bottom: 1rem; height: 38%; border: 2px solid rgba(255,255,255,.8); border-radius: 1rem; background: repeating-linear-gradient(90deg, rgba(255,255,255,.68) 0 2px, transparent 2px 28px); z-index: 1; }
.visual.gabrielos { background: radial-gradient(circle at 24% 34%, #fff 0 2.3rem, transparent 2.4rem), radial-gradient(circle at 74% 62%, var(--yellow) 0 3.4rem, transparent 3.5rem), linear-gradient(135deg, var(--orange), var(--pink)); }
.visual.gaming { background: radial-gradient(circle at 34% 46%, var(--yellow) 0 2.2rem, transparent 2.3rem), radial-gradient(circle at 67% 54%, var(--green) 0 2.2rem, transparent 2.3rem), linear-gradient(135deg, var(--blue), var(--purple)); }
.visual.skills { background: radial-gradient(circle at 22% 42%, #fff 0 2.2rem, transparent 2.3rem), radial-gradient(circle at 68% 34%, var(--orange) 0 3rem, transparent 3.1rem), linear-gradient(135deg, var(--green), #fff); }

.work-card h3 {
  margin: .4rem 0 .5rem;
  font: 800 clamp(2rem, 3.4vw, 4.6rem)/.86 "Bricolage Grotesque";
  letter-spacing: -.07em;
  overflow-wrap: anywhere;
}

.work-card b {
  margin-top: auto;
  padding-top: 1.4rem;
  font-family: Caveat;
  font-size: 1.5rem;
}

.github-link {
  margin-top: 1.2rem;
}

.journey {
  width: min(1280px, calc(100vw - 1.4rem));
}

.timeline {
  display: grid;
  gap: .9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: .23fr .32fr 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.15rem;
  border-radius: 1.35rem;
  background: rgba(255,255,255,.66);
}

.timeline time {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.timeline strong {
  font: 800 1.3rem "Bricolage Grotesque";
}

.timeline span {
  color: #443a31;
  line-height: 1.55;
}

.cert-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.cert-wall article {
  min-height: 280px;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,.72);
}

.cert-wall article:nth-child(1) { background: var(--green); }
.cert-wall article:nth-child(2) { background: var(--yellow); }
.cert-wall article:nth-child(3) { background: var(--blue); }

.cert-wall strong {
  display: block;
  margin: 3rem 0 .8rem;
  font: 800 clamp(1.7rem, 3vw, 3.4rem)/.9 "Bricolage Grotesque";
  letter-spacing: -.06em;
}

.contact {
  min-height: 92vh;
  display: grid;
  grid-template-columns: .42fr 1fr;
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
}

.last-photo {
  position: relative;
  width: min(340px, 82vw);
  padding: .9rem .9rem 1.2rem;
  border-radius: .7rem;
  --wiggle: translate(0, 0) rotate(0deg);
  transform: rotate(-6deg) var(--wiggle);
}

.contact h2 {
  max-width: 930px;
}

.magnet {
  transition: transform .18s cubic-bezier(.16, 1, .3, 1);
}

.mini-chat {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 120;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

.chat-toggle {
  width: 82px;
  height: 82px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background:
    radial-gradient(circle at 68% 78%, var(--orange) 0 1rem, transparent 1.05rem),
    linear-gradient(135deg, #fff, var(--green));
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 7px 8px 0 var(--ink);
  position: relative;
  overflow: hidden;
  transform: var(--wiggle, translate(0, 0) rotate(0deg));
  transition: transform .24s cubic-bezier(.16, 1, .3, 1), box-shadow .24s;
}

.chat-toggle:hover { box-shadow: 10px 12px 0 var(--ink); }

.chat-toggle span {
  position: relative;
  z-index: 2;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.chat-toggle b {
  position: absolute;
  inset: 12px;
  border: 2px dashed rgba(23, 18, 13, .42);
  border-radius: 50%;
  animation: spin-soft 8s linear infinite;
}

.chat-panel {
  position: absolute;
  right: 0;
  bottom: 104px;
  width: min(450px, calc(100vw - 2rem));
  border: 3px solid var(--ink);
  border-radius: 1.35rem;
  background:
    linear-gradient(90deg, rgba(23,18,13,.035) 1px, transparent 1px),
    linear-gradient(rgba(23,18,13,.035) 1px, transparent 1px),
    rgba(255, 250, 235, .96);
  background-size: 28px 28px;
  color: var(--ink);
  box-shadow: 10px 12px 0 var(--ink), 0 24px 70px rgba(23,18,13,.18);
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px) rotate(-1deg) scale(.96);
  transform-origin: right bottom;
  pointer-events: none;
  transition: opacity .25s, transform .3s cubic-bezier(.16, 1, .3, 1);
}

.mini-chat.open .chat-panel {
  opacity: 1;
  transform: translateY(0) rotate(-1deg) scale(1);
  pointer-events: auto;
}

.chat-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-bottom: 3px solid var(--ink);
  background: var(--purple);
}

.chat-head span {
  display: block;
  margin-bottom: .15rem;
  font: 900 .68rem "Bricolage Grotesque", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.chat-head strong {
  font: 900 1.4rem "Bricolage Grotesque", system-ui, sans-serif;
}

.chat-head strong::after {
  content: " · sharp";
  margin-left: .35rem;
  color: var(--orange);
  font: 800 .72rem "Plus Jakarta Sans", system-ui, sans-serif;
  letter-spacing: .04em;
}

.chat-close {
  width: 36px;
  height: 36px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: #fff;
  box-shadow: 3px 3px 0 var(--ink);
  color: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.chat-brief,
.chat-suggestions {
  display: flex;
  gap: .38rem;
  overflow-x: auto;
}

.chat-brief {
  padding: .72rem 1rem 0;
  align-items: center;
}

.chat-brief span {
  flex: 0 0 auto;
  border: 1.5px solid rgba(23, 18, 13, .34);
  border-radius: 999px;
  background: rgba(255,255,255,.64);
  padding: .28rem .48rem;
  color: rgba(23, 18, 13, .68);
  box-shadow: none;
  font: 800 .5rem "Plus Jakarta Sans", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.chat-suggestions button {
  flex: 0 0 auto;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  padding: .42rem .62rem;
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  font: 900 .58rem "Plus Jakarta Sans", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.chat-messages {
  max-height: 330px;
  overflow: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.chat-messages p {
  width: fit-content;
  max-width: 90%;
  margin: 0;
  border: 2px solid var(--ink);
  border-radius: 1rem;
  padding: .82rem .92rem;
  font-size: .9rem;
  line-height: 1.5;
  box-shadow: 3px 3px 0 var(--ink);
  animation: chat-pop .22s cubic-bezier(.16, 1, .3, 1);
}

.chat-messages p span,
.chat-messages p .chat-heading { display: block; }

.chat-messages p span + span,
.chat-messages p ul + span,
.chat-messages p span + ul { margin-top: .55rem; }

.chat-messages p .chat-heading {
  margin-bottom: .45rem;
  font: 900 .95rem "Bricolage Grotesque", system-ui, sans-serif;
}

.chat-messages p ul {
  margin: .45rem 0 0;
  padding-left: 1.1rem;
}

.chat-messages p li { margin: .35rem 0; }

.chat-messages p code {
  border-radius: .35rem;
  background: rgba(23,18,13,.1);
  padding: .08rem .28rem;
  font: .82em ui-monospace, SFMono-Regular, Menlo, monospace;
}

.chat-messages .bot {
  align-self: flex-start;
  background: #fff;
  border-top-left-radius: .25rem;
}

.chat-messages .thinking {
  color: var(--muted);
  animation: chat-thinking 1s ease-in-out infinite alternate;
}

.chat-messages .user {
  align-self: flex-end;
  background: var(--green);
  border-top-right-radius: .25rem;
}

.chat-suggestions { padding: 0 1rem 1rem; }

.chat-suggestions button {
  cursor: pointer;
  transition: transform .18s, background .18s;
}

.chat-suggestions button:hover {
  background: var(--yellow);
  transform: translateY(-2px) rotate(-1deg);
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .55rem;
  padding: 1rem;
  border-top: 3px solid var(--ink);
  background: rgba(255,255,255,.58);
}

.chat-form input {
  min-width: 0;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: .85rem 1rem;
  font: inherit;
  box-shadow: 2px 2px 0 var(--ink);
}

.chat-form button {
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--orange);
  color: var(--ink);
  padding: .85rem 1rem;
  box-shadow: 2px 2px 0 var(--ink);
  font: 900 .68rem "Plus Jakarta Sans", system-ui, sans-serif;
  text-transform: uppercase;
  cursor: pointer;
}

@keyframes spin-soft { to { rotate: 360deg; } }
@keyframes chat-thinking { to { opacity: .55; } }
@keyframes chat-pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.98);
  }
}

@media (max-width: 1320px) {
  .opening {
    gap: clamp(2rem, 5vw, 4rem);
  }

  .intro {
    flex-basis: 620px;
  }

  .intro h1 {
    font-size: clamp(4rem, 7.2vw, 7.2rem);
    max-width: 720px;
  }

  .hello-card {
    flex-basis: 168px;
    width: 168px;
  }

  .memory-board {
    flex-basis: 470px;
    max-width: 470px;
  }

  .photo-card {
    flex-basis: 212px;
    width: 218px;
  }

  .artifact-visual {
    height: 190px;
  }

  .card-two { margin-top: 4rem; }

  .stamp-card {
    flex-basis: 188px;
    width: 190px;
  }

  .audio-card {
    flex-basis: 276px;
    width: 280px;
  }
}

@media (max-width: 1100px) {
  .topbar {
    width: min(760px, calc(100vw - 1rem));
    gap: .65rem;
  }

  .topbar nav {
    justify-content: flex-end;
  }

  .topbar nav a {
    flex: 0 0 auto;
    padding: .58rem .66rem;
    font-size: .74rem;
  }

  .opening {
    flex-direction: column;
    align-items: stretch;
    padding-top: 8.8rem;
  }

  .origin-grid,
  .section-head,
  .contact {
    grid-template-columns: 1fr;
  }

  .intro {
    padding-top: 0;
  }

  .hello-card {
    flex-basis: auto;
    width: 210px;
  }

  .memory-board {
    max-width: none;
    justify-content: center;
  }

  .proof-strip,
  .table-board,
  .selected-grid,
  .work-grid,
  .cert-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline li {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 1.35rem;
    padding: .55rem;
  }

  .logo {
    width: 100%;
    justify-content: center;
    padding-right: 0;
  }

  .topbar nav {
    width: 100%;
    justify-content: flex-start;
    padding-bottom: .1rem;
  }

  .section {
    width: min(100% - 1rem, 1180px);
    padding: 4.8rem 0;
  }

  .opening {
    padding-top: 10.8rem;
  }

  .intro h1 {
    font-size: clamp(3.5rem, 18vw, 5.6rem);
  }

  .proof-strip,
  .table-board,
  .selected-grid,
  .work-grid,
  .cert-wall {
    grid-template-columns: 1fr;
  }

  .hero-memory,
  .hero-work,
  .skill-note.big,
  .skill-note.wide {
    grid-row: auto;
    grid-column: auto;
    min-height: 390px;
  }

  .memory-board {
    justify-content: center;
  }

  .photo-card { flex-basis: 220px; width: 220px; }
  .artifact-visual { height: 190px; }
  .card-two { margin-top: 0; }
  .stamp-card { flex-basis: 200px; }
  .audio-card { flex-basis: min(310px, 94vw); width: min(310px, 94vw); }

  .mini-chat {
    right: .8rem;
    bottom: .8rem;
  }

  .chat-toggle {
    width: 68px;
    height: 68px;
  }

  .chat-panel {
    bottom: 86px;
    max-height: calc(100vh - 110px);
  }

  .chat-messages {
    max-height: min(320px, 42vh);
  }
}

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