@font-face {
  font-family: Mali;
  src: url("assets/mali-400-thai.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

@font-face {
  font-family: Mali;
  src: url("assets/mali-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Mali;
  src: url("assets/mali-700-thai.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}

@font-face {
  font-family: Mali;
  src: url("assets/mali-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Silkscreen;
  src: url("assets/silkscreen-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #172842;
  --blue: #164ba2;
  --deep: #113275;
  --paper: #fcf7e9;
  --yellow: #ffd35b;
  --pink: #b62065;
  --line: #b3bfcc;
  --pixel: Silkscreen, "Courier New", monospace;
  --sans: "Leelawadee UI", "Noto Sans Thai", Tahoma, system-ui, sans-serif;
  --body: Mali, var(--sans);
  --shell: min(1200px, calc(100% - 100px));
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #103a80;
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
}
img { display: block; width: 100%; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, p { margin: 0; }
ul { padding: 0; list-style: none; }
section[id], article[id] { scroll-margin-top: 22px; }
:focus-visible { outline: 3px solid #1266d5; outline-offset: 5px; }
.section-shell :focus-visible { outline-color: #ffdc65; }
.about-board :focus-visible, .contact-note :focus-visible, .project :focus-visible { outline-color: #1266d5; }
.skip-link {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 10px;
  padding: 12px 18px;
  transform: translateY(-150%);
  background: var(--paper);
}
.skip-link:focus { transform: none; }

.cover {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  align-items: end;
  height: 100svh;
  background: #542d1c;
  scroll-margin-top: 0;
}
.cover-stage { position: absolute; inset: 0; perspective: 1200px; }
.cover-mat {
  position: absolute;
  inset: -1.5%;
  background: #17498a url("assets/cover-desk.webp") center / cover no-repeat;
  translate: calc(var(--pointer-x, 0px) * -0.21) calc(var(--pointer-y, 0px) * -0.21);
}
.cover-sheet {
  position: absolute;
  z-index: 1;
  inset: 10% 11% 13%;
  transform: translate3d(calc(var(--pointer-x, 0px) * 0.38), calc(var(--pointer-y, 0px) * 0.38), 0)
    rotateX(var(--pitch, 0deg)) rotateY(var(--yaw, 0deg)) rotateZ(-3.4deg);
  transition: transform 210ms ease-out;
}
.cover-sheet img {
  height: 100%;
  object-fit: fill;
  filter: drop-shadow(6px 9px 0 #102e6763) drop-shadow(0 17px 15px #081428a3);
}
.cover-copy {
  position: absolute;
  z-index: 4;
  inset: 13% 0 17%;
  width: min(78%, 1110px);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.3svh, 16px);
  text-align: center;
  pointer-events: none;
}
.cover-title-frame {
  position: relative;
  width: max-content;
  max-width: 100%;
  padding: 0.12em 0.17em 0.06em;
  border: 1px dashed #1e68ac9c;
  font-size: clamp(70px, min(14vw, 17.4svh), 192px);
  rotate: -4deg;
}
.frame-handle {
  position: absolute;
  z-index: 2;
  width: clamp(6px, 0.057em, 10px);
  height: clamp(6px, 0.057em, 10px);
  background: #fffdf6;
  border: 1px solid #2773b3;
  translate: -50% -50%;
}
.handle-tl, .handle-bl { left: 0; }
.handle-tm, .handle-bm { left: 50%; }
.handle-tr, .handle-br { left: 100%; }
.handle-tl, .handle-tm, .handle-tr { top: 0; }
.handle-bl, .handle-bm, .handle-br { top: 100%; }
.cover-title { font: 700 1em/1 var(--pixel); color: #164faa; }
.title-word { display: grid; justify-items: center; gap: 0.045em; }
.title-row {
  display: flex;
  align-items: center;
  gap: 0.01em;
  translate: -0.11em 0;
}
.title-row-second { translate: 0.035em 0; }
.title-letter {
  display: grid;
  place-items: center;
  width: var(--letter-width, 0.70em);
  height: 0.73em;
  line-height: 0.81;
  color: var(--letter-color, #1e56b1);
  -webkit-text-stroke: 0.086em #fffdf6;
  paint-order: stroke fill;
  filter: drop-shadow(0 2px 0 #b1c9df) drop-shadow(1px 4px 0 #31529a64) drop-shadow(3px 6px 4px #12294d42);
  rotate: var(--letter-angle, 0deg);
}
.letter-p { --letter-angle: -4deg; --letter-color: #1951ad; --stamp-delay: 460ms; }
.letter-o { --letter-angle: 10deg; --letter-color: #3874cf; --stamp-delay: 530ms; }
.letter-r { --letter-angle: -9deg; --letter-color: #1759b4; --stamp-delay: 600ms; }
.letter-t { --letter-angle: 6deg; --letter-color: #235db8; --stamp-delay: 670ms; }
.letter-f { --letter-angle: -8deg; --letter-color: #1e5bb5; --stamp-delay: 740ms; }
.letter-o2 { --letter-angle: 5deg; --letter-color: #1856ba; --stamp-delay: 810ms; }
.letter-l { --letter-angle: -7deg; --letter-width: 0.63em; --letter-color: #2c66bc; --stamp-delay: 880ms; }
.letter-i { --letter-angle: 11deg; --letter-width: 0.52em; --letter-color: #ba2767; --stamp-delay: 950ms; }
.letter-o3 { --letter-angle: -3deg; --letter-color: #1d55ad; --stamp-delay: 1020ms; }
.title-letter svg { display: block; width: 0.79em; height: 0.79em; overflow: visible; }
.title-letter svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 16px;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.title-letter svg .curve-edge { stroke: #fffdf6; stroke-width: 28px; }
.letter-i svg { width: 0.70em; }
.work-sticker {
  position: absolute;
  z-index: 3;
  top: -8%;
  right: -11%;
  padding: 0.1em 0.36em 0.22em;
  border: 2px solid #fff9ef;
  background: #f863a2;
  color: #50082d;
  box-shadow: 3px 4px 0 #a62b68, 4px 7px 10px #743a5955;
  rotate: 11deg;
  font: 700 clamp(17px, min(3.7vw, 5.1svh), 52px)/1.15 var(--body);
  white-space: nowrap;
}
.cover-caption { display: flex; align-items: center; justify-content: center; gap: clamp(15px, 2.1vw, 32px); }
.year {
  flex: none;
  margin-inline-start: -9px;
  padding: 4px 9px 7px;
  border: 2px solid #b22261;
  background: #ffd2e3;
  color: #901347;
  font: 700 clamp(18px, min(3.1vw, 4.5svh), 43px)/1 var(--pixel);
  rotate: -11deg;
  translate: 0 8px;
  box-shadow: 2px 3px #fff6df, 4px 6px #7d305052;
}
.cover-description {
  color: #173d7c;
  font-size: clamp(15px, min(1.6vw, 2.7svh), 24px);
  font-weight: 700;
  line-height: 1.5;
  text-wrap: balance;
}
.hero-action { position: relative; pointer-events: auto; margin-block-start: 2px; }
.cursor {
  position: absolute;
  pointer-events: none;
  width: clamp(34px, min(5.4vw, 7.7svh), 84px);
  right: -35%;
  top: 43%;
  rotate: -10deg;
  filter: drop-shadow(4px 6px 4px #20274d92);
}
.prop {
  --tilt: 0deg;
  --depth: 1;
  --drop-delay: 0ms;
  --enter-x: 0px;
  --enter-y: -160px;
  position: absolute;
  z-index: 3;
  width: var(--width);
  translate: calc(var(--pointer-x, 0px) * var(--depth)) calc(var(--pointer-y, 0px) * var(--depth));
  rotate: var(--tilt);
  transition: translate 220ms ease-out, scale 160ms ease;
}
.prop img { filter: drop-shadow(4px 10px 6px #051b46a6) drop-shadow(10px 16px 10px #031e434c); }
.prop:not(.folder) { pointer-events: none; }
.keyboard { --width: 30%; --tilt: -13deg; --drop-delay: 145ms; --depth: 0.8; top: -8.5%; left: 29%; }
.ruler { --width: 18%; --tilt: -33deg; --drop-delay: 210ms; --enter-x: -145px; --depth: 1.28; top: -2%; left: -3%; }
.pencil { --width: 20%; --tilt: -8deg; --drop-delay: 490ms; --enter-x: -180px; --enter-y: 65px; left: -0.5%; bottom: 5%; }
.clipboard { --width: 13%; --tilt: 18deg; --drop-delay: 410ms; --enter-x: 155px; --depth: 1.15; top: 18%; right: 8%; }
.scissors { --width: 17%; --tilt: -20deg; --drop-delay: 490ms; --enter-x: 145px; --enter-y: 87px; right: 7%; bottom: 11%; }
.compass { --width: 13%; --tilt: 22deg; --drop-delay: 540ms; --enter-x: 145px; --enter-y: 110px; --depth: 1.3; right: -2.5%; bottom: -1%; }
.binder { --width: 5.4%; --tilt: 5deg; --drop-delay: 380ms; --depth: 0.7; right: 24%; top: 4%; }
.folder { --width: 15.5%; --tilt: -19deg; --drop-delay: 310ms; --enter-x: -165px; --depth: 1.28; left: 11%; top: 24%; }
.folder:hover, .folder:focus-visible { scale: 1.055; }
.folder:focus-visible { outline-color: #ffde72; }
.foil-spark { --width: 5.2%; --tilt: -13deg; --drop-delay: 750ms; --enter-x: -60px; --enter-y: 85px; --depth: 1.2; left: 23%; bottom: 24%; z-index: 4; }
.blue-spark { --width: 4.5%; --tilt: 13deg; --drop-delay: 830ms; --enter-x: 66px; right: 26%; top: 15.5%; z-index: 4; }
.star-sticker { --width: 4.6%; --tilt: 14deg; --drop-delay: 860ms; --enter-x: 55px; --enter-y: 75px; right: 23%; bottom: 25%; }
.tape-check { --width: 10%; --tilt: 23deg; --drop-delay: 520ms; right: -1%; top: 12%; }
.tape-yellow { --width: 8%; --tilt: -17deg; --drop-delay: 510ms; left: 13%; bottom: 15%; }
.foil-spark img, .blue-spark img, .star-sticker img, .tape-check img, .tape-yellow img {
  filter: drop-shadow(2px 4px 3px #071e456b);
}
.cover-doodle {
  position: absolute;
  z-index: 2;
  width: 8%;
  color: #195cb7;
  stroke: currentColor;
  stroke-width: 3px;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.doodle-left { top: 40%; left: 20%; rotate: -15deg; }
.doodle-right { top: 46%; right: 20%; rotate: 14deg; color: #ab205f; }
.cover-burst { position: absolute; z-index: 5; inset: 0; pointer-events: none; }
.cover-burst i {
  position: absolute;
  top: 44%;
  left: 50%;
  width: clamp(4px, 0.74vw, 14px);
  height: calc(clamp(4px, 0.74vw, 14px) * 1.5);
  opacity: 0;
  background: var(--confetti, #ffb92e);
}
.cover-burst i:nth-child(1) { --x: -27vw; --y: -21svh; --spin: -187deg; }
.cover-burst i:nth-child(2) { --x: -21vw; --y: -29svh; --spin: 146deg; --confetti: #f54f9b; }
.cover-burst i:nth-child(3) { --x: -31vw; --y: 11svh; --spin: 90deg; --confetti: #fff8e6; }
.cover-burst i:nth-child(4) { --x: -18vw; --y: 22svh; --spin: -132deg; --confetti: #fb72ab; }
.cover-burst i:nth-child(5) { --x: -11vw; --y: -26svh; --spin: 86deg; --confetti: #275cca; }
.cover-burst i:nth-child(6) { --x: 28vw; --y: -12svh; --spin: 156deg; --confetti: #f861a0; }
.cover-burst i:nth-child(7) { --x: 19vw; --y: -28svh; --spin: -136deg; }
.cover-burst i:nth-child(8) { --x: 27vw; --y: 13svh; --spin: 102deg; --confetti: #fff8e6; }
.cover-burst i:nth-child(9) { --x: 23vw; --y: 21svh; --spin: -163deg; --confetti: #f67bac; }
.cover-burst i:nth-child(10) { --x: 11vw; --y: -23svh; --spin: 95deg; --confetti: #275cca; }

.cover-footer {
  position: relative;
  z-index: 5;
  display: grid;
  justify-items: center;
  gap: 4px;
  margin-inline: auto;
  width: min(94%, 680px);
  padding-bottom: clamp(8px, 1.25svh, 15px);
  pointer-events: none;
}
.cover-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(4px, 1vw, 14px);
  margin: 0;
  padding: 0;
}
.cover-meta li {
  padding: 3px clamp(8px, 1.3vw, 19px) 4px;
  border: 1px solid #ffdb8fbf;
  border-radius: 999px;
  background: #182742dd;
  color: #fff6dc;
  font-weight: 700;
  font-size: clamp(10px, 1.12vw, 15px);
  line-height: 1.5;
  white-space: nowrap;
}
.cover-meta li:first-child { background: #ffd46b; border-color: #ffe4a8; color: #263350; font-family: var(--sans); }
.cover-meta li:nth-child(2) { font-family: var(--sans); letter-spacing: 0.025em; }
.scroll-cue {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff9e5;
  pointer-events: auto;
}
.scroll-cue svg {
  width: 28px;
  height: 42px;
  stroke: currentColor;
  stroke-width: 2.6px;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 3px #0a172d);
}
.scroll-cue:hover, .scroll-cue:focus-visible { color: #ffda71; }
.scroll-cue:focus-visible { outline-color: #ffda71; }

.action {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: fit-content;
  max-width: 100%;
  padding: 9px 13px 10px 16px;
  border: 2px solid var(--deep);
  background: var(--yellow);
  color: #15294e;
  box-shadow: 4px 4px 0 var(--deep);
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.action:hover { background: #ffe290; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--deep); }
.action:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--deep); }


.section-shell { width: var(--shell); margin-inline: auto; }
.about { padding-top: 82px; padding-bottom: 106px; }
.about-board {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(30px, 6.5vw, 105px);
  min-height: 440px;
  padding: 48px 10%;
  border: 11px solid #af713a;
  border-top-color: #c68d51;
  border-radius: 12px;
  background: var(--paper) url("assets/paper-grain.webp") repeat;
  box-shadow: 0 14px 0 #092858, 0 18px 28px #061e4a9c, inset 0 0 0 1px #7f582f;
}
.about-board::before {
  content: "";
  position: absolute;
  inset: 17px;
  z-index: -1;
  border: 1px dashed #97a7bc;
  pointer-events: none;
}
.id-holder { display: grid; justify-items: center; padding-top: 22px; }
.id-badge {
  position: relative;
  width: min(100%, 258px);
  padding: 15px 15px 12px;
  border: 2px solid #987027;
  border-radius: 12px;
  background: #f8c845;
  box-shadow: 6px 10px 1px #5e3d4339;
  transform: rotate(-7deg);
  transform-origin: 50% -27px;
}
.id-badge::after { content: ""; position: absolute; inset: 6px; border: 1px dashed #fff4bb; border-radius: 8px; pointer-events: none; }
.id-badge img { border: 1px solid #a77320; border-radius: 5px; height: auto; aspect-ratio: 4 / 4.65; object-fit: cover; }
.lanyard-strap {
  position: absolute;
  left: calc(50% - 14px);
  bottom: calc(100% - 9px);
  width: 28px;
  height: 72px;
  border: 1px solid #907231;
  background: repeating-linear-gradient(85deg, #d7a42b 0 2px, #e8b830 2px 4px);
  box-shadow: 4px 2px 3px #533c4533;
}
.lanyard-strap::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 6px;
  width: 14px;
  height: 14px;
  border: 1px solid #786b55;
  border-radius: 50%;
  background: #f8f5e8;
}
.id-caption {
  display: grid;
  text-align: center;
  color: var(--deep);
  font: 700 clamp(10px, 1.35vw, 16px)/1.3 var(--pixel);
  padding-top: 10px;
}
.id-caption strong { font: 800 clamp(11px, 1.5vw, 17px)/1.3 var(--sans); letter-spacing: 0.05em; text-transform: uppercase; }
.id-caption span { font-size: 0.8em; }
.pixel-heading { color: var(--blue); font: 700 clamp(33px, 5.4vw, 73px)/1 var(--pixel); letter-spacing: -0.1em; }
.about-copy { max-width: 570px; }
.about-lead { font-size: clamp(16px, 1.62vw, 21px); margin-top: 20px; line-height: 1.6; }
.about-lead strong { color: var(--deep); }
.education-heading { color: var(--deep); font-size: 17px; margin-top: 15px; }
.education-list { margin: 5px 0 0; font-size: 15px; border-top: 1px dashed #97a7bc; }
.education-list li { padding: 5px 0; border-bottom: 1px dashed #97a7bc; }
.education-list strong { color: var(--deep); margin-right: 5px; }
.text-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin-top: 14px; color: var(--deep); font-weight: 700; text-underline-offset: 5px; }
.about-clipboard { position: absolute; width: 9%; max-width: 95px; right: -2%; bottom: -24px; transform: rotate(15deg); filter: drop-shadow(4px 6px 4px #1a275c59); pointer-events: none; }

.contents, .work {
  position: relative;
  isolation: isolate;
}
.contents::before {
  position: absolute;
  z-index: -1;
  content: "";
  inset: -42px -24px -44px;
  border: 1px solid #4d7fba;
  background-color: #164b9c;
  background-image: linear-gradient(#a3c8ed39 1px, transparent 1px), linear-gradient(90deg, #a3c8ed39 1px, transparent 1px);
  background-size: 36px 36px;
  box-shadow: 0 6px 0 #092d68, 0 12px 20px #06295970;
  pointer-events: none;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 17px;
  color: #f8f2df;
  margin-bottom: 32px;
}
.section-heading .pixel-heading { color: #fff8e6; text-shadow: 3px 4px #0b2d69; }
.section-heading .pixel-heading [aria-hidden="true"] { color: var(--yellow); }
.work-initial { font: 900 0.88em/0 "Arial Black", Arial, sans-serif; letter-spacing: -0.07em; }
.section-heading p { margin-top: 9px; }
.filters { display: flex; flex-wrap: wrap; gap: 5px; }
.filters button {
  min-height: 44px;
  padding: 5px 12px;
  border: 1px solid #aecbe9;
  background: #0f3d85;
  color: #fff8ea;
  font-weight: 700;
  cursor: pointer;
}
.filters button:hover { background: #2661aa; }
.filters button[aria-pressed="true"] { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.empty-state, noscript p { color: #fff8e6; }

.project-index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); margin: 40px 0 0; }
@media (min-width: 1121px) {
  .project-index[data-filter="website"] { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.project-index[data-filter="game"] { grid-template-columns: repeat(2, minmax(0, 236px)); justify-content: center; }
.index-item { --angle: -3deg; min-width: 0; }
.index-item:nth-child(even) { --angle: 2.4deg; }
.index-item:nth-child(3) { --angle: -1deg; }
.index-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  position: relative;
  height: 100%;
  min-width: 0;
  padding: 12px 10px 13px;
  border: 1px solid #d1c2a4;
  background: var(--paper) url("assets/paper-grain.webp") repeat;
  box-shadow: 4px 6px 0 #0d326b88, 0 4px 12px #09285496;
  text-decoration: none;
  transform: rotate(var(--angle));
  transition: transform 210ms ease, box-shadow 210ms ease;
}
.index-card:focus-visible { transform: translateY(-6px) rotate(0); z-index: 2; }
.index-clip {
  position: absolute;
  z-index: 1;
  width: 27px;
  top: -16px;
  left: calc(50% - 13px);
  filter: drop-shadow(2px 4px 2px #24264b60);
}
.index-image { border: 1px solid #a0a9ac; background: #14345a; }
.index-image img, .project-visual img { aspect-ratio: 16 / 9; height: auto; object-fit: cover; }
.index-meta { display: flex; justify-content: space-between; gap: 4px; margin-block: 8px 3px; font-size: 12px; color: #3d526f; }
.project-number { color: #8f2050; font: 700 15px/1.35 var(--pixel); }
.project-kind { font-weight: 700; }
.index-title { display: flex; min-height: 48px; justify-content: space-between; align-items: start; gap: 5px; line-height: 1.45; overflow-wrap: anywhere; }
.index-title > span { color: var(--deep); }

.work { padding-top: 119px; }
.project-list { display: grid; gap: 20px; }
.project-sheet {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(22px, 4.5vw, 72px);
  padding: clamp(16px, 2.8vw, 33px);
  border: 1px solid #c7b28a;
  background: var(--paper) url("assets/paper-grain.webp") repeat;
  box-shadow: 5px 6px 0 #092d68;
}
.project:nth-child(even) .project-visual { order: 2; }
.project:target .project-sheet { outline: 3px solid #ffcf56; outline-offset: 5px; }
.project-visual { min-width: 0; border: 3px solid #e9ddc7; background: #17345f; }
.project-copy { min-width: 0; }
.project-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 3px; color: #435873; font-size: 13px; }
.project-title { color: var(--deep); }
.project-copy h3 { font-size: clamp(25px, 3vw, 40px); line-height: 1.38; overflow-wrap: anywhere; }
.project-description { margin-top: 11px; max-width: 50ch; }
.project-tags { display: flex; flex-wrap: wrap; gap: 5px 10px; margin: 12px 0 15px; color: #3b5378; font-size: 13px; }
.project-tags li { padding: 2px 7px; border: 1px solid #aab7c9; }
.project-link { margin-bottom: 4px; }

.contact { padding-block: 83px 64px; }
.contact-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.9fr);
  align-items: start;
  gap: 28px;
  padding: clamp(22px, 4.5vw, 58px);
  background: #ffe7a1 url("assets/paper-grain.webp") repeat;
  background-blend-mode: multiply;
  box-shadow: 6px 7px 0 #0a2c62;
}
.contact-note p { margin-top: 14px; }
.social-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 2px 0 0; }
.social-links a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 62px;
  align-content: center;
  gap: 1px;
  padding: 7px 9px;
  border: 1px solid #8c7a48;
  color: var(--deep);
  text-decoration: none;
}
.social-links a::after { grid-area: 1 / 2; justify-self: end; content: "↗"; }
.social-links a:hover { background: #fff3c6; }
.social-links span { grid-column: 1 / -1; overflow-wrap: anywhere; font-size: 12px; }
@media (max-width: 420px) {
  .social-links a { padding-inline: 7px; }
  .social-links span { font-size: 11.5px; }
}
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 16px;
  border-top: 1px solid #678cc2;
  padding: 11px max(22px, calc((100% - 1200px) / 2));
  color: #fffae6;
  background: #0d2c63;
  font-size: 12px;
}
.site-footer > span { font: 700 12px/1.2 var(--pixel); }
.site-footer a { display: inline-flex; gap: 6px; align-items: center; min-height: 44px; text-underline-offset: 4px; }
.site-footer :focus-visible { outline-color: #ffdc65; }

@media (hover: hover) and (pointer: fine) {
  .index-card:hover { transform: translateY(-9px) rotate(calc(var(--angle) * -0.7)); z-index: 2; box-shadow: 6px 12px 0 #0d326b75, 0 5px 14px #0928549e; }
}

@media (prefers-reduced-motion: no-preference) {
  .is-playing .cover-mat { animation: mat-land 560ms cubic-bezier(0.2, 0.76, 0.3, 1) both; }
  .is-playing .cover-sheet img { animation: sheet-land 660ms cubic-bezier(0.17, 0.78, 0.31, 1.11) 85ms both; }
  .is-playing .prop img {
    animation: prop-land 710ms cubic-bezier(0.24, 0.7, 0.32, 1.16) var(--drop-delay) backwards,
      prop-settle 3.3s ease-in-out calc(720ms + var(--drop-delay));
  }
  .is-playing .title-letter { animation: letter-stamp 440ms cubic-bezier(0.24, 0.73, 0.37, 1.19) var(--stamp-delay) backwards; }
  .is-playing .cover-burst i { animation: paper-burst 760ms cubic-bezier(0.13, 0.61, 0.31, 1) 1350ms both; }
  .is-playing .scroll-wheel { animation: wheel-scroll 1.25s ease-in-out 1220ms 3; }
  .id-badge:hover { animation: badge-swing 1100ms ease-out both; }
}
@keyframes mat-land {
  0% { opacity: 0.45; transform: translate(-5%, -9%) rotate(-4deg) scale(1.13); }
  64% { opacity: 1; transform: translate(0, 0.45%) rotate(0.5deg) scale(1.018); }
  100% { opacity: 1; transform: none; }
}
@keyframes sheet-land {
  0% { opacity: 0; transform: translate3d(2%, -14%, 80px) rotate(7deg) scale(1.12); }
  61% { opacity: 1; transform: translateY(1.8%) rotate(-1.4deg) scale(0.995); }
  81% { transform: translateY(-1%) rotate(0.6deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes prop-land {
  0% { opacity: 0; transform: translate3d(var(--enter-x), var(--enter-y), 50px) rotate(-24deg) scale(1.15); }
  58% { opacity: 1; transform: translateY(7px) rotate(4deg) scale(0.99); }
  80% { transform: translateY(-4px) rotate(-2deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes prop-settle {
  0%, 100% { transform: none; }
  45% { transform: translateY(-5px) rotate(1.5deg); }
  77% { transform: translateY(2px) rotate(-0.7deg); }
}
@keyframes letter-stamp {
  0% { opacity: 0; transform: translateY(-35px) scale(1.45) rotate(-11deg); }
  53% { opacity: 1; transform: translateY(4px) scale(0.94) rotate(3deg); }
  76% { transform: translateY(-3px) scale(1.04); }
  100% { opacity: 1; transform: none; }
}
@keyframes paper-burst {
  0% { opacity: 0; transform: translate(0, 0) scale(0.4); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--spin)) scale(0.55); }
}
@keyframes wheel-scroll {
  0%, 100% { opacity: 0.85; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(5px); }
}
@keyframes badge-swing {
  0% { transform: rotate(-14deg); }
  36% { transform: rotate(5deg); }
  68% { transform: rotate(-10deg); }
  100% { transform: rotate(-7deg); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 1120px) {
  .project-index { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 29px; }
}

@media (max-width: 960px) {
  :root { --shell: calc(100% - 68px); }
  .about-board { min-height: 360px; padding-inline: 8%; }
}

@media (max-width: 620px) {
  :root { --shell: calc(100% - 34px); }
  section[id], article[id] { scroll-margin-top: 12px; }
  .cover { scroll-margin-top: 0; }
  .cover-mat { inset: -2%; background-position: 51% center; }
  .cover-sheet { inset: 14% 2.5% 16.5%; }
  .cover-copy { inset: 13% 0 22%; width: 91%; gap: 11px; }
  .cover-title-frame { font-size: clamp(55px, min(20.5vw, 12.7svh), 108px); padding-inline: 0.16em; }
  .work-sticker { top: -16%; right: -2%; font-size: clamp(16px, 5.5vw, 26px); }
  .cover-caption { width: min(94%, 340px); gap: 13px; }
  .cover-description { font-size: clamp(13px, 4vw, 18px); }
  .year { margin-inline-start: 0; font-size: clamp(15px, 4.7vw, 23px); padding: 3px 5px 5px; }
  .cursor { width: clamp(32px, 12vw, 58px); right: -28%; top: 58%; }
  .keyboard { --width: 48%; top: 2.3%; left: 25%; }
  .ruler { --width: 29%; top: 5%; left: -8%; }
  .folder { --width: 24%; left: 1%; top: 16%; }
  .clipboard { --width: 19%; right: -1%; top: 19%; }
  .binder { --width: 9%; right: 18%; top: 11%; }
  .pencil { --width: 31%; left: -3%; bottom: 16%; }
  .scissors { --width: 25%; right: 3%; bottom: 17%; }
  .compass { display: none; }
  .foil-spark { --width: 8.1%; left: 5%; bottom: 31%; }
  .blue-spark { --width: 7.3%; right: 14%; top: 24%; }
  .star-sticker { --width: 9.5%; right: 6%; bottom: 33%; }
  .tape-check { --width: 17%; top: 8%; right: -1%; }
  .tape-yellow { --width: 16%; bottom: 17%; left: 29%; }
  .cover-doodle { width: 13%; }
  .doodle-left { left: 2%; top: 32%; }
  .doodle-right { right: 1.5%; top: 48%; }
  .cover-footer { gap: 5px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .cover-meta { gap: 5px; }
  .cover-meta li { font-size: clamp(8.5px, 2.65vw, 13px); padding-inline: 8px; }
  .about { padding-block: 51px 80px; }
  .about-board { grid-template-columns: minmax(0, 1fr); gap: 27px; padding: 31px 24px 23px; border-width: 7px; }
  .about-board::before { inset: 10px; }
  .id-holder { padding-top: 24px; }
  .id-badge { width: 165px; padding: 11px 11px 9px; }
  .lanyard-strap { height: 53px; }
  .about-clipboard { width: 16%; right: 2%; bottom: -13px; }
  .about-lead { margin-top: 13px; }
  .text-link { margin-top: 8px; }
  .contents::before { inset: -28px -8px -28px; background-size: 29px 29px; }
  .section-heading { align-items: start; flex-direction: column; }
  .project-index { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 34px 4px 0; gap: 25px 12px; }
  .index-card { padding: 9px 7px 10px; }
  .index-title { font-size: 14px; min-height: 37px; }
  .work { padding-top: 78px; }
  .work .section-heading { margin-bottom: 20px; }
  .project-sheet { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .project:nth-child(even) .project-visual { order: 0; }
  .contact { padding-block: 51px 44px; }
  .contact-note { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

