:root {
  --bg: #eaf6ff;
  --fg: #2d2d2d;
  --muted: #e5e0d8;
  --accent: #ff4d4d;
  --border: #2d2d2d;
  --blue: #2d5da1;
  --paper: rgba(255, 255, 255, 0.92);
  --wobbly: 255px 15px 225px 15px / 15px 225px 15px 255px;
  --wobbly-md: 38px 18px 32px 16px / 18px 34px 20px 30px;
  --shadow: 4px 4px 0 0 var(--border);
  --shadow-soft: 3px 3px 0 0 rgba(45, 45, 45, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body,
#root {
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--fg);
  background:
    radial-gradient(circle at 6px 6px, rgba(136, 157, 172, 0.32) 2.2px, transparent 2.8px),
    radial-gradient(circle at 6px 6px, rgba(255, 255, 255, 0.58) 0.8px, transparent 1.4px),
    linear-gradient(180deg, #eef9ff 0%, var(--bg) 48%, #e4f3fc 100%);
  background-size: 30px 30px, 30px 30px, auto;
  font-family: "Patrick Hand", "Comic Sans MS", cursive;
  line-height: 1.6;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

img,
video {
  max-width: 100%;
  display: block;
}

.paper-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.22), transparent 42%),
    radial-gradient(circle at 20% 20%, rgba(85, 119, 142, 0.08), transparent 20%),
    radial-gradient(circle at 80% 0%, rgba(85, 119, 142, 0.06), transparent 18%);
  mix-blend-mode: multiply;
  opacity: 0.68;
  z-index: -2;
}

.app-shell {
  position: relative;
  min-height: 100vh;
}

.topbar,
.section,
.footer,
.content-page {
  width: min(100% - 2rem, 72rem);
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(234, 246, 255, 0.94), rgba(234, 246, 255, 0.72));
  border-bottom: 1px solid rgba(45, 45, 45, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Kalam", cursive;
  font-weight: 700;
  font-size: 1.35rem;
  text-decoration: none;
}

.brand-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.85rem;
  border: 2px solid var(--border);
  border-radius: 14px 24px 10px 22px / 18px 14px 24px 12px;
  background: #fff9c4;
  box-shadow: var(--shadow-soft);
  font-family: "Kalam", cursive;
  font-size: 1.15rem;
  line-height: 1;
  text-transform: lowercase;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--border);
  border-radius: 50% 38% 47% 52% / 45% 35% 58% 42%;
  background: #fff;
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.nav-link {
  padding: 0.5rem 0.9rem;
  border: 2px solid transparent;
  border-radius: 999px 18px 999px 18px / 18px 999px 18px 999px;
  text-decoration: none;
  transition:
    transform 120ms ease,
    background-color 120ms ease,
    box-shadow 120ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  outline: none;
  transform: translate(2px, 2px) rotate(1deg);
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.85);
}

.nav-link.active {
  border-color: var(--border);
  background: #fff;
  box-shadow: var(--shadow);
}

.section {
  padding: 3rem 0;
}

.page-shell {
  position: relative;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding-top: 1rem;
}

.hero-copy h1,
.article-hero h1 {
  margin: 0.5rem 0 1rem;
  font-family: "Kalam", cursive;
  font-weight: 700;
  line-height: 0.95;
  font-size: clamp(3rem, 6vw, 5.5rem);
  letter-spacing: -0.04em;
}

.marker-accent {
  color: var(--accent);
  display: inline-block;
  transform: rotate(-8deg);
}

.lead {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  max-width: 36rem;
  margin: 0;
}

.hero-lead {
  max-width: 30rem;
  font-size: 1.02rem;
  line-height: 1.58;
  text-wrap: pretty;
}

.hero-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.detail-summary {
  margin-top: 1.25rem;
}

.summary-pill {
  padding: 0.95rem 1rem;
  border: 2px solid var(--border);
  border-radius: 30px 12px 28px 16px / 16px 34px 12px 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.summary-pill strong {
  display: block;
  font-family: "Kalam", cursive;
  font-size: 1.25rem;
}

.summary-pill span {
  display: block;
  margin-top: 0.2rem;
  font-size: 1rem;
  opacity: 0.9;
}

.sticky-tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: #fff9c4;
  border: 2px solid var(--border);
  border-radius: 14px 26px 10px 24px / 18px 16px 26px 12px;
  box-shadow: var(--shadow-soft);
  transform: rotate(-2deg);
}

.project-switch-hint {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  padding: 0.28rem 0.65rem;
  border: 2px dashed rgba(45, 45, 45, 0.38);
  border-radius: 999px 18px 999px 18px / 18px 999px 18px 999px;
  background: rgba(255, 249, 196, 0.55);
  box-shadow: var(--shadow-soft);
  color: var(--muted);
  font-family: "Kalam", cursive;
  font-size: 0.88rem;
  line-height: 1;
  transform: rotate(1deg);
  white-space: nowrap;
}

.work-switch-hint {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  padding: 0.28rem 0.65rem;
  border: 2px dashed rgba(45, 45, 45, 0.38);
  border-radius: 999px 18px 999px 18px / 18px 999px 18px 999px;
  background: rgba(255, 249, 196, 0.55);
  box-shadow: var(--shadow-soft);
  color: var(--muted);
  font-family: "Kalam", cursive;
  font-size: 0.88rem;
  line-height: 1;
  transform: rotate(1deg);
  white-space: nowrap;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.2rem;
  border: 3px solid var(--border);
  border-radius: var(--wobbly);
  box-shadow: var(--shadow);
  text-decoration: none;
  font-size: 1.3rem;
  transition:
    transform 120ms ease,
    background-color 120ms ease,
    color 120ms ease,
    box-shadow 120ms ease;
}

.btn:hover,
.btn:focus-visible {
  outline: none;
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 0 var(--border);
}

.btn:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}

.btn-primary {
  background: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent);
  color: #fff;
}

.btn-secondary {
  background: var(--muted);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--blue);
  color: #fff;
}

.hero-visual {
  position: relative;
  min-height: 34rem;
}

.card {
  position: relative;
  background: var(--paper);
  border: 3px solid var(--border);
  box-shadow: var(--shadow-soft);
  padding: 1.25rem;
  transition:
    transform 120ms ease,
    box-shadow 120ms ease;
}

.card-tilt-left {
  transform: rotate(-1.5deg);
}

.card-tilt-right {
  transform: rotate(1.2deg);
}

.card:hover {
  box-shadow: 2px 2px 0 0 rgba(45, 45, 45, 0.14);
}

.card-tilt-left:hover {
  transform: translate(2px, 2px) rotate(-0.4deg);
}

.card-tilt-right:hover {
  transform: translate(2px, 2px) rotate(0.4deg);
}

.gallery-item img {
  transition: transform 120ms ease, filter 120ms ease;
}

.gallery-item:hover img {
  transform: scale(1.02);
  filter: saturate(1.05);
}

.hero-card {
  position: absolute;
  inset: 1rem 0 auto auto;
  width: min(100%, 24rem);
}

.floating-card {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  width: min(100%, 19rem);
  background: #fff9c4;
}

.portrait-wrap {
  position: relative;
  padding-top: 1rem;
}

.portrait-switcher {
  position: relative;
  width: 100%;
}

.portrait-switcher-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.portrait-switcher-button::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -14px;
  z-index: 3;
  width: 112px;
  height: 30px;
  transform: translateX(-50%) rotate(-4deg);
  background: rgba(229, 224, 216, 0.82);
  border: 2px dashed rgba(45, 45, 45, 0.42);
  pointer-events: none;
}

.portrait-switcher-button:hover .portrait-image {
  transform: scale(1.025) rotate(-0.6deg);
}

.portrait-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 2px solid var(--border);
  border-radius: var(--wobbly-md);
  box-shadow: 5px 5px 0 0 rgba(45, 45, 45, 0.12);
  transform: rotate(-0.7deg);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.portrait-image.is-changing {
  opacity: 0;
  transform: scale(0.98) rotate(0.8deg);
}

.portrait-image.is-fading-in {
  opacity: 1;
  transform: rotate(-0.7deg);
}

.portrait-switcher-hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 4;
  transform: translateX(-50%) rotate(-2deg);
  padding: 6px 14px;
  background: #fff9c4;
  border: 2px solid #2d2d2d;
  border-radius: 255px 16px 225px 16px / 16px 225px 16px 255px;
  box-shadow: 3px 3px 0 0 #2d2d2d;
  color: #2d2d2d;
  font-family: "Patrick Hand", cursive;
  font-size: 18px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.portrait-switcher-button:hover .portrait-switcher-hint,
.portrait-switcher-button:focus-visible .portrait-switcher-hint {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px) rotate(-2deg);
}

.portrait-switcher-count {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 5px 10px;
  background: #ffffff;
  border: 2px solid #2d2d2d;
  border-radius: 50% 45% 52% 48% / 44% 55% 45% 56%;
  box-shadow: 3px 3px 0 0 #2d2d2d;
  color: #2d2d2d;
  font-family: "Patrick Hand", cursive;
  font-size: 17px;
  line-height: 1;
}

.hero-doodle-landscape {
  position: relative;
  display: block;
  min-height: calc(100vh - 120px);
  padding: 8px 20px 56px;
  overflow: hidden;
  background:
    radial-gradient(circle at 6px 6px, rgba(136, 157, 172, 0.32) 2.2px, transparent 2.8px),
    radial-gradient(circle at 6px 6px, rgba(255, 255, 255, 0.58) 0.8px, transparent 1.4px),
    linear-gradient(180deg, #eef9ff 0%, #eaf6ff 100%);
  background-size: 30px 30px, 30px 30px, auto;
  border-bottom: 3px solid var(--border);
}

.doodle-hero-top,
.doodle-socials,
.doodle-hero-actions {
  display: flex;
  align-items: center;
}

.doodle-hero-top {
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  z-index: 2;
  margin: 0 auto 4px;
}

.doodle-socials {
  gap: 0.85rem;
  font-family: "Kalam", cursive;
  font-weight: 700;
}

.doodle-scene {
  position: relative;
  min-height: 34rem;
  margin-top: -6px;
}

.doodle-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.doodle-svg path,
.doodle-svg rect,
.doodle-svg circle {
  vector-effect: non-scaling-stroke;
}

.sun,
.mountain-dark,
.hill,
.cabin rect,
.sign rect {
  fill: #fffdf8;
}

.sun,
.sun-line,
.cloud-line,
.hero-bird-wing,
.mountain,
.mountain-line,
.hill-line,
.cabin *,
.car *,
.tent *,
.sign *,
.trees *,
.tiny-doodles * {
  stroke: var(--border);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sun-line,
.cloud-line,
.cloud-shape,
.hero-bird-wing,
.mountain-line,
.hill-line,
.car-window,
.tiny-doodles * {
  fill: none;
}

.cloud-line {
  opacity: 0.95;
}

.cloud-shape {
  fill: #fffdf8;
  stroke: var(--border);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.98;
  transform-box: fill-box;
  transform-origin: center center;
  filter: drop-shadow(0 2px 0 rgba(45, 45, 45, 0.08));
}

.cloud-shape-1 {
  transform: translate(-4px, 0px) rotate(-4deg) scale(0.96);
}

.cloud-shape-2 {
  transform: translate(0px, 0px) rotate(2deg) scale(0.86);
}

.cloud-shape-3 {
  transform: translate(0px, 0px) rotate(-1deg) scale(0.9);
}

.cloud-shape-4 {
  transform: translate(6px, 0px) rotate(3deg) scale(0.92);
}

.cloud-shape-5 {
  transform: translate(0px, 0px) rotate(-2deg) scale(0.88);
}

.cloud-line-2 {
  stroke-width: 4.2;
  opacity: 0.9;
}

.cloud-line-3 {
  stroke-width: 4.4;
  opacity: 0.86;
}

.cloud-line-4 {
  stroke-width: 4.1;
  opacity: 0.88;
}

@property --scene-float-x {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

@property --scene-float-y {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

@property --scene-float-rot {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.scene-layer {
  --scene-x: 0px;
  --scene-y: 0px;
  --scene-rot: 0deg;
  --scene-float-x: 0px;
  --scene-float-y: 0px;
  --scene-float-rot: 0deg;
  transform-box: fill-box;
  transform-origin: center center;
  will-change: transform;
  transition: transform 180ms ease-out;
  transform:
    translate(
      calc(var(--scene-x) + var(--scene-float-x)),
      calc(var(--scene-y) + var(--scene-float-y))
    )
    rotate(calc(var(--scene-rot) + var(--scene-float-rot)));
}

.hero-sun-follow {
  transform-box: fill-box;
  transform-origin: center center;
  will-change: transform;
  transition: filter 180ms ease;
}

.hero-bird-flight {
  transform-box: fill-box;
  transform-origin: center center;
  animation: heroBirdRoute 11s ease-in-out infinite;
  opacity: 0.88;
  pointer-events: none;
  will-change: transform;
}

.hero-bird {
  transform-box: fill-box;
  transform-origin: center center;
  animation: heroBirdFloat 1.8s ease-in-out infinite;
}

.hero-bird-1 {
  transform: translate(995px, 118px) scale(0.9) rotate(-5deg);
}

.hero-bird-2 {
  animation-delay: -0.75s;
  transform: translate(1082px, 82px) scale(0.72) rotate(7deg);
}

.hero-bird-3 {
  animation-delay: -1.35s;
  transform: translate(1168px, 142px) scale(0.62) rotate(-2deg);
}

.hero-bird-wing {
  stroke-width: 4.2;
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: heroBirdFlap 0.55s ease-in-out infinite;
}

.hero-bird-wing-right {
  animation-delay: -0.18s;
}

.scene-sky {
  animation: sceneFloatSoft 5s ease-in-out infinite;
}

.scene-trees {
  animation: sceneFloatTiny 3.8s ease-in-out infinite;
}

.scene-tent,
.scene-sign,
.scene-tiny-doodles {
  animation: sceneFloatTiny 4.8s ease-in-out infinite;
}

.hill {
  fill: rgba(255, 249, 196, 0.45);
}

.hill-line-2 {
  stroke-width: 3;
  opacity: 0.6;
}

.hero-house-roof,
.hero-house-body,
.car-shell,
.tent path:first-child,
.trees path {
  fill: #050505;
}

.car-shell,
.tent path:first-child {
  fill: #fff;
}

.hero-house-roof,
.hero-house-body {
  stroke-width: 6;
}

.hero-house-base {
  fill: none;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 5;
}

.car {
  transform-origin: 1095px 315px;
}

.car-wheel {
  fill: #fff;
  transform-origin: center;
  transform: rotate(var(--wheel-rotation, 0deg));
}

@keyframes sceneFloatSoft {
  0%,
  100% {
    --scene-float-x: 0px;
    --scene-float-y: 0px;
    --scene-float-rot: 0deg;
  }

  50% {
    --scene-float-x: 0px;
    --scene-float-y: -3px;
    --scene-float-rot: 0.4deg;
  }
}

@keyframes sceneFloatTiny {
  0%,
  100% {
    --scene-float-x: 0px;
    --scene-float-y: 0px;
    --scene-float-rot: 0deg;
  }

  50% {
    --scene-float-x: 0px;
    --scene-float-y: -2px;
    --scene-float-rot: 0deg;
  }
}

@keyframes heroBirdRoute {
  0% {
    transform: translate(130px, 18px) rotate(0deg);
  }

  25% {
    transform: translate(-90px, -24px) rotate(-3deg);
  }

  50% {
    transform: translate(-330px, 14px) rotate(2deg);
  }

  75% {
    transform: translate(-570px, -18px) rotate(-2deg);
  }

  100% {
    transform: translate(-820px, 20px) rotate(0deg);
  }
}

@keyframes heroBirdFloat {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -8px;
  }
}

@keyframes heroBirdFlap {
  0%,
  100% {
    transform: rotate(0deg) scaleY(1);
  }

  50% {
    transform: rotate(-4deg) scaleY(0.72);
  }
}

.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;
}

.hero-sign-content {
  position: absolute;
  left: 50%;
  top: 67.5%;
  width: 18.5rem;
  transform: translate(-50%, -50%) rotate(-1deg);
  text-align: center;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.hero-sign-content h1 {
  margin: 0;
  line-height: 1;
}

.hero-my-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.75rem;
  min-height: 5.75rem;
  padding: 0.15rem 0.4rem 0.3rem;
  border: 3px solid var(--border);
  border-radius: 50% 38% 47% 52% / 45% 35% 58% 42%;
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--fg);
  font-family: "Kalam", cursive;
  font-size: 2.9rem;
  letter-spacing: -0.08em;
  text-transform: lowercase;
}

.hero-my-mark::after {
  content: "";
  position: absolute;
  inset: 0.35rem;
  border: 2px dashed rgba(45, 45, 45, 0.16);
  border-radius: inherit;
  pointer-events: none;
}

.hero-sign-line {
  display: block;
  margin: 0;
  font-family: "Kalam", cursive;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-align: center;
}

.hero-sign-line-top {
  transform: rotate(-1deg);
}

.hero-sign-line-bottom {
  transform: rotate(1deg);
}

.sign-kicker {
  display: block;
  margin: 0;
  font-family: "Kalam", cursive;
  font-weight: 700;
}

.hero-floating-copy {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-sticker {
  position: absolute;
  padding: 0.3rem 0.75rem;
  background: #fff;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-soft);
  font-family: "Kalam", cursive;
  pointer-events: auto;
  transition:
    background-color 140ms ease,
    box-shadow 140ms ease;
  will-change: transform;
}

.hero-sticker-1 {
  left: 12%;
  top: 58%;
  transform: translate(var(--sticker-x, 0), var(--sticker-y, 0)) rotate(-8deg);
}

.hero-sticker-2 {
  right: 16%;
  top: 44%;
  transform: translate(var(--sticker-x, 0), var(--sticker-y, 0)) rotate(6deg);
}

.hero-sticker-3 {
  left: 33%;
  top: 22%;
  transform: translate(var(--sticker-x, 0), var(--sticker-y, 0)) rotate(5deg);
}

.hero-sticker-4 {
  right: 8%;
  bottom: 18%;
  background: #eaf1ff;
  transform: translate(var(--sticker-x, 0), var(--sticker-y, 0)) rotate(-5deg);
}

.hero-sticker:hover {
  background: #ffffff;
  box-shadow: 2px 2px 0 0 #2d2d2d;
}

.doodle-hero-actions {
  justify-content: center;
  gap: 1rem;
  position: relative;
  z-index: 3;
}

.doodle-scroll-hint {
  margin: 1rem 0 0;
  text-align: center;
  font-family: "Kalam", cursive;
  opacity: 0.72;
}

.about-intro-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12rem;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  background: linear-gradient(180deg, #fffdf8, #fff9e7);
}

.about-intro-card p {
  margin: 1rem 0 0;
  font-size: 1.2rem;
}

.about-intro-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 2px solid var(--border);
  border-radius: var(--wobbly-md);
  box-shadow: var(--shadow-soft);
}

.about-photo-frame {
  position: relative;
  width: 100%;
  padding: 1rem;
  border-radius: 30px 18px 26px 14px / 16px 26px 14px 28px;
  background: linear-gradient(180deg, #fffdf6, #fff6d9);
  box-shadow: var(--shadow-soft);
  transform-origin: center;
  animation: portraitTinyTremble 3.8s ease-in-out infinite;
}

.about-photo-frame::before,
.about-photo-frame::after {
  content: "";
  position: absolute;
  inset: 0.3rem;
  border: 2px dashed rgba(45, 45, 45, 0.28);
  border-radius: inherit;
  pointer-events: none;
}

.flower {
  position: absolute;
  z-index: 1;
  color: #ff9bb3;
  font-size: 1.15rem;
  line-height: 1;
  text-shadow: 1px 1px 0 rgba(45, 45, 45, 0.15);
}

.flower-1 {
  top: 0.35rem;
  left: 0.45rem;
  transform: rotate(-18deg);
}

.flower-2 {
  top: 0.2rem;
  right: 0.55rem;
  transform: rotate(16deg);
}

.flower-3 {
  bottom: 0.25rem;
  left: 0.65rem;
  transform: rotate(10deg);
}

@keyframes portraitTinyTremble {
  0%,
  100% {
    transform: rotate(0deg) translate(0, 0);
  }

  25% {
    transform: rotate(-0.45deg) translate(-1px, 0);
  }

  50% {
    transform: rotate(0.35deg) translate(1px, -1px);
  }

  75% {
    transform: rotate(-0.25deg) translate(0, 1px);
  }
}

.flower-4 {
  bottom: 0.3rem;
  right: 0.45rem;
  transform: rotate(-12deg);
}

.flower-5 {
  top: 50%;
  left: -0.15rem;
  transform: translateY(-50%) rotate(8deg);
}

.flower-6 {
  top: 50%;
  right: -0.15rem;
  transform: translateY(-50%) rotate(-8deg);
}

.caption {
  margin: 1rem 0 0;
  position: static;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.85);
  border: 2px solid var(--border);
  border-radius: 999px 22px 999px 22px / 22px 999px 22px 999px;
  box-shadow: var(--shadow-soft);
  font-size: 1rem;
}

.tape,
.tack {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.tape {
  top: -0.55rem;
  width: 7rem;
  height: 1.1rem;
  background: rgba(194, 194, 194, 0.55);
  border: 1px dashed rgba(45, 45, 45, 0.5);
  border-radius: 2px;
  transform: translateX(-50%) rotate(-4deg);
}

.tack {
  top: -0.65rem;
  width: 1rem;
  height: 1rem;
  background: var(--accent);
  border: 2px solid var(--border);
  border-radius: 50%;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-heading h2,
.card h2,
.card h3 {
  margin: 0;
  font-family: "Kalam", cursive;
  line-height: 1.05;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.profile-grid,
.project-grid,
.detail-stack,
.video-grid,
.gallery-grid,
.resume-grid,
.project-selector-grid,
.project-detail-grid,
.contact-buttons {
  display: grid;
  gap: 1rem;
}

.profile-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-card,
.project-card,
.contact-card {
  padding: 1.35rem;
}

.profile-card h3,
.project-card h3,
.contact-card h2,
.article-main h2,
.side-card h2 {
  font-family: "Kalam", cursive;
  margin: 0;
}

.profile-card h3,
.project-card h3 {
  font-size: 1.8rem;
}

.profile-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.profile-list li {
  padding: 0.85rem 0.95rem;
  border: 2px dashed rgba(45, 45, 45, 0.35);
  border-radius: 22px 12px 26px 14px / 14px 26px 12px 22px;
  background: rgba(255, 255, 255, 0.8);
}

.profile-list strong {
  display: inline-block;
  min-width: 5.5rem;
  font-family: "Kalam", cursive;
  color: var(--blue);
}

.profile-highlight {
  background: linear-gradient(180deg, #fffdf6, #fff7d9);
}

.resume-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.resume-card {
  min-height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 250, 237, 0.98));
}

.project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-selector-grid {
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.project-selector {
  appearance: none;
  text-align: left;
  min-height: 11.5rem;
  width: 100%;
  border: 3px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem;
}

.project-selector h3 {
  margin: 0.65rem 0 0.45rem;
  font-size: 1.25rem;
}

.project-selector p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.45;
}

.project-selector--active {
  background: linear-gradient(180deg, #fff9d6, #ffffff);
  box-shadow: 6px 6px 0 0 rgba(45, 45, 45, 0.16);
  transform: translate(1px, 1px);
}

.project-link {
  display: inline-block;
  margin-top: 1rem;
  font-family: "Kalam", cursive;
  font-size: 1.15rem;
  color: var(--blue);
}

.project-detail {
  margin-top: 1rem;
  padding: 1.4rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 249, 236, 0.98));
}

.project-detail-grid {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
  margin-top: 1rem;
}

.project-detail-copy,
.project-detail-media {
  min-width: 0;
}

.project-material-book-wrapper {
  max-width: 28rem;
  margin: 0.75rem auto 0;
}

.portfolio-book {
  width: 100%;
  min-height: 24rem;
  margin: 0 auto;
}

.portfolio-book-page {
  box-sizing: border-box;
  padding: 1rem;
  background: #fffdf8;
  border: 2px solid #f1dcc1;
  border-radius: 18px;
  box-shadow:
    inset 0 0 22px rgba(255, 220, 180, 0.35),
    0 18px 40px rgba(120, 80, 40, 0.08);
  color: #4b3b32;
  overflow: hidden;
}

.portfolio-book-page .gallery-item {
  height: 100%;
  padding: 0.45rem;
  box-shadow: none;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0.45rem;
  overflow: hidden;
}

.portfolio-book-page .gallery-item img {
  height: 100%;
  min-height: 14rem;
  cursor: grab;
}

.gallery-item-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
}

.gallery-preview-trigger {
  min-height: 2.35rem;
  padding: 0.45rem 0.65rem;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: var(--pink);
  color: #2d2d2d;
  box-shadow: 3px 3px 0 0 rgba(45, 45, 45, 0.22);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: zoom-in;
  touch-action: manipulation;
}

.book-hint {
  margin-top: 0.75rem;
  text-align: center;
  color: #8a6549;
  font-size: 0.95rem;
}

.portfolio-video-card {
  height: 100%;
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.portfolio-video-card h4 {
  margin: 0;
  font-family: "Kalam", cursive;
  font-size: 1.35rem;
}

.portfolio-video-card p {
  margin: 0;
  color: #7b6656;
}

.project-detail-copy {
  display: grid;
  gap: 1rem;
}

.mini-block {
  padding: 1rem;
  border: 2px dashed rgba(45, 45, 45, 0.35);
  border-radius: 22px 12px 26px 14px / 14px 26px 12px 22px;
  background: rgba(255, 255, 255, 0.82);
  transform: scale(1);
  transform-origin: center;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.project-detail-copy .mini-block:hover {
  background: #fff9c4;
  border-color: rgba(45, 45, 45, 0.58);
  box-shadow: 4px 4px 0 0 rgba(45, 45, 45, 0.14);
  transform: scale(1.025) rotate(-0.2deg);
}

.mini-block h4 {
  margin: 0 0 0.6rem;
  font-family: "Kalam", cursive;
  font-size: 1.35rem;
}

@media (prefers-reduced-motion: reduce) {
  .mini-block {
    transition: none;
  }

  .project-detail-copy .mini-block:hover {
    transform: none;
  }
}

.detail-label {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.4rem 0.8rem;
  border: 2px solid var(--border);
  border-radius: 999px 14px 999px 14px / 14px 999px 14px 999px;
  background: #fff;
  font-family: "Kalam", cursive;
  font-size: 1.1rem;
}

.detail-label--red {
  background: #ffe2e2;
}

.detail-label--yellow {
  background: #fff0b3;
}

.detail-label--blue {
  background: #dce9ff;
}

.detail-label--paper {
  background: #f2efe8;
}

.project-card {
  min-height: 20rem;
}

.project-wide {
  grid-column: 1 / -1;
}

.project-notes {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.project-feature {
  background: linear-gradient(180deg, #fff8c7, #fff3a0);
}

.project-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.project-badge {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  border: 2px solid var(--border);
  border-radius: 999px 14px 999px 14px / 14px 999px 14px 999px;
  background: #fff;
  font-family: "Kalam", cursive;
  font-weight: 700;
}

.project-time,
.project-role {
  font-size: 1rem;
  opacity: 0.85;
}

.project-role {
  margin: 0.4rem 0 0;
}

.project-list {
  margin: 0.85rem 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.55rem;
}

.gallery-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-item {
  appearance: none;
  display: block;
  margin: 0;
  padding: 0.65rem;
  border: 2px solid var(--border);
  border-radius: 24px 14px 28px 16px / 16px 28px 14px 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  text-align: left;
  width: 100%;
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border: 2px solid var(--border);
  border-radius: 18px 26px 16px 24px / 24px 16px 28px 12px;
  cursor: zoom-in;
}

.gallery-caption {
  display: block;
  margin-top: 0.55rem;
  text-align: center;
  font-family: "Kalam", cursive;
  font-size: 1.05rem;
}

.gallery-note {
  display: block;
}

.script-note {
  height: 100%;
  padding: 1rem;
  border: 2px dashed rgba(45, 45, 45, 0.35);
  border-radius: 24px 14px 28px 16px / 16px 28px 14px 24px;
  background: #fff9c4;
}

.script-note h4 {
  margin: 0 0 0.75rem;
  font-family: "Kalam", cursive;
  font-size: 1.4rem;
}

.script-note ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.5rem;
}

.video-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.video-card {
  padding: 1.25rem;
}

.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 2px solid var(--border);
  border-radius: var(--wobbly-md);
  background: #000;
  box-shadow: var(--shadow-soft);
  margin-top: 0.75rem;
  object-fit: cover;
}

@media (pointer: fine) {
  body {
    cursor: none;
  }

  a,
  button,
  .project-card,
  .project-selector,
  .portfolio-book-page,
  [data-cursor="hover"] {
    cursor: none;
  }

  .cute-cursor-bubble {
    position: fixed;
    left: 0;
    top: 0;
    pointer-events: none;
    z-index: 9999;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #ff9bb3;
    box-shadow: 0 0 0 6px rgba(255, 155, 179, 0.12);
    opacity: 0.95;
    transform: translate(-50%, -50%);
    transition:
      opacity 0.2s ease,
      transform 0.2s ease,
      box-shadow 0.2s ease,
      background 0.2s ease;
    mix-blend-mode: multiply;
  }

  .cute-cursor-bubble.is-hover {
    width: 18px;
    height: 18px;
    opacity: 1;
    background: rgba(255, 155, 179, 0.34);
    box-shadow: 0 0 0 8px rgba(255, 155, 179, 0.1);
  }
}

@media (pointer: coarse) {
  .cute-cursor-bubble {
    display: none;
  }
}

.contact-stage {
  position: relative;
  min-height: 7rem;
  width: min(100% - 2rem, 72rem);
  margin: 0 auto 1rem;
}

.contact-popup {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(100%, 22rem);
  padding: 1rem 1rem 1.15rem;
  background: #fffdf7;
}

.contact-popup-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-soft);
  font-size: 1.1rem;
  line-height: 1;
}

.contact-popup-label {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border: 2px solid var(--border);
  border-radius: 999px 14px 999px 14px / 14px 999px 14px 999px;
  background: #fff0b3;
  font-family: "Kalam", cursive;
}

.contact-popup-value {
  display: block;
  margin-top: 0.7rem;
  font-size: 1.35rem;
  white-space: pre-line;
  word-break: break-word;
}

.contact-popup-tail {
  position: absolute;
  right: 2.4rem;
  bottom: -0.65rem;
  width: 1.2rem;
  height: 1.2rem;
  background: #fffdf7;
  border-right: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  transform: rotate(45deg);
}

.contact-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.92);
}

.contact-bar-tag {
  padding: 0.45rem 0.8rem;
  border: 2px solid var(--border);
  border-radius: 999px 14px 999px 14px / 14px 999px 14px 999px;
  background: #dce9ff;
  font-family: "Kalam", cursive;
  white-space: nowrap;
}

.contact-buttons {
  grid-auto-flow: column;
  grid-auto-columns: minmax(3.25rem, auto);
  align-items: center;
}

.contact-dot {
  appearance: none;
  width: 3.25rem;
  height: 3.25rem;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-soft);
  font-size: 1.15rem;
  transition:
    transform 120ms ease,
    box-shadow 120ms ease,
    background-color 120ms ease;
}

.contact-dot:hover,
.contact-dot:focus-visible {
  outline: none;
  transform: translate(2px, 2px);
}

.contact-dot--active {
  background: #fff0b3;
  box-shadow: var(--shadow);
}

.image-dialog {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(45, 45, 45, 0.45);
}

.image-dialog[hidden],
.contact-popup[hidden] {
  display: none !important;
}

.image-dialog-panel {
  position: relative;
  width: min(92vw, 68rem);
  border: 3px solid var(--border);
  border-radius: var(--wobbly-md);
  padding: 1rem;
  background: rgba(253, 251, 247, 0.98);
  box-shadow: 8px 8px 0 0 rgba(45, 45, 45, 0.2);
}

.image-dialog-panel img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border: 2px solid var(--border);
  border-radius: 24px 14px 28px 16px / 16px 28px 14px 24px;
  background: #fff;
}

.image-dialog-panel p {
  margin: 0.85rem 0 0;
  font-family: "Kalam", cursive;
  text-align: center;
  font-size: 1.25rem;
}

.dialog-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-soft);
  font-family: "Kalam", cursive;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.music-toggle {
  position: fixed;
  right: 22px;
  bottom: 70px;
  z-index: 9998;
  padding: 8px 14px;
  background: #eaf1ff;
  border: 3px solid #2d2d2d;
  color: #2d2d2d;
  box-shadow: 4px 4px 0 0 #2d2d2d;
  border-radius: 255px 16px 225px 18px / 16px 225px 18px 255px;
  font-family: "Patrick Hand", cursive;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.music-toggle:hover {
  background: #ffffff;
  transform: translate(2px, 2px) rotate(1deg);
  box-shadow: 2px 2px 0 0 #2d2d2d;
}

.music-toggle:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}

.music-toggle.is-playing {
  background: #fff9c4;
}

@media (max-width: 700px) {
  .music-toggle {
    right: 14px;
    bottom: 14px;
    font-size: 15px;
    padding: 6px 10px;
  }
}

.contact-card {
  background: rgba(255, 255, 255, 0.92);
}

.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1rem;
  border: 2px solid var(--border);
  border-radius: 24px 14px 28px 16px / 16px 28px 14px 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  transition:
    transform 120ms ease,
    box-shadow 120ms ease,
    background-color 120ms ease;
}

.contact-item:hover,
.contact-item:focus-visible {
  outline: none;
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 0 var(--border);
  background: #fffdf5;
}

.contact-icon {
  display: inline-grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  flex: none;
  border: 2px solid var(--border);
  border-radius: 50% 40% 55% 45% / 45% 55% 40% 50%;
  background: #fff9c4;
}

.contact-icon svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: var(--fg);
}

.contact-item strong {
  display: block;
  font-family: "Kalam", cursive;
  font-size: 1.2rem;
}

.contact-item small {
  display: block;
  font-size: 1rem;
  opacity: 0.85;
}

.resume-block + .resume-block {
  margin-top: 1.6rem;
}

.resume-block h2 {
  margin: 0 0 0.9rem;
  font-size: 2rem;
}

.content-page {
  padding-bottom: 1rem;
}

.article-hero {
  padding-top: 1rem;
}

.article-hero h1 {
  max-width: 12ch;
}

.article-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 0 3rem;
}

.article-main {
  padding: 1.5rem;
}

.detail-stack {
  padding: 1rem 0 3rem;
}

.drop-cap::first-letter {
  float: left;
  font-family: "Kalam", cursive;
  font-size: 4.4rem;
  line-height: 0.8;
  padding-right: 0.15rem;
  color: var(--accent);
}

.check-list,
.side-list {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
}

.timeline {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.timeline-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.9rem;
  border: 2px dashed rgba(45, 45, 45, 0.4);
  border-radius: 24px 18px 32px 14px / 18px 30px 12px 26px;
  background: rgba(255, 255, 255, 0.78);
}

.timeline-dot {
  flex: none;
  width: 0.95rem;
  height: 0.95rem;
  margin-top: 0.45rem;
  background: var(--accent);
  border: 2px solid var(--border);
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
}

.article-side {
  display: grid;
  gap: 1rem;
}

.side-card {
  padding: 1.25rem;
}

.note-card {
  background: #fff9c4;
}

.check-list li,
.side-list li {
  margin-bottom: 0.45rem;
}

.feature-grid {
  display: none;
}

.resume-book-page {
  padding-bottom: 4rem;
}

.resume-book-intro {
  padding-top: 1rem;
}

.resume-book-shell {
  display: grid;
  gap: 1rem;
}

.resume-book-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.book-arrow {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-soft);
  font-size: 1.4rem;
  line-height: 1;
  transition:
    transform 120ms ease,
    box-shadow 120ms ease,
    background-color 120ms ease;
}

.book-arrow:hover:not(:disabled),
.book-arrow:focus-visible:not(:disabled) {
  outline: none;
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 0 var(--border);
  background: #fffdf4;
}

.book-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.book-status {
  display: inline-flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.55rem 0.9rem;
  border: 2px solid var(--border);
  border-radius: 999px 18px 999px 18px / 18px 999px 18px 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.book-status span {
  font-family: "Kalam", cursive;
  font-size: 1.1rem;
}

.book-status strong {
  font-family: "Kalam", cursive;
  font-size: 1.2rem;
}

.book-stage {
  position: relative;
  min-height: 34rem;
  perspective: 1800px;
  border: 3px solid var(--border);
  border-radius: 34px 16px 30px 18px / 18px 30px 16px 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 249, 236, 0.96)),
    var(--paper);
  box-shadow: 10px 10px 0 0 rgba(45, 45, 45, 0.12);
  overflow: hidden;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

.book-stage.is-dragging {
  cursor: grabbing;
}

.book-spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(45, 45, 45, 0.08);
  transform: translateX(-50%);
}

.book-page {
  position: absolute;
  inset: 0;
  padding: 1.15rem 1.2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 252, 244, 0.98));
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition:
    transform 560ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 420ms ease,
    filter 420ms ease;
  opacity: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.book-page.is-dragging {
  transition: none !important;
  pointer-events: auto;
}

.book-page.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) rotateY(0deg) scale(1);
  z-index: 3;
}

.book-page.is-prev {
  opacity: 0;
  transform: translateX(-8%) rotateY(-24deg) scale(0.96);
  filter: none;
  z-index: 1;
}

.book-page.is-next {
  opacity: 0;
  transform: translateX(8%) rotateY(24deg) scale(0.96);
  filter: none;
  z-index: 2;
}

.book-page-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.book-page-index {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: #fff9c4;
  box-shadow: var(--shadow-soft);
  font-family: "Kalam", cursive;
  font-size: 1.15rem;
}

.book-page-head h2 {
  margin: 0;
  font-family: "Kalam", cursive;
  font-size: clamp(1.8rem, 2.6vw, 2.45rem);
}

.book-page-grid {
  display: grid;
  gap: 1rem;
  align-content: start;
  flex: 1;
}

.book-page-grid--info {
  grid-template-columns: 1fr 1fr;
}

.book-page-grid--work {
  grid-template-columns: 1fr 1fr;
}

.work-timeline-shell {
  grid-column: 1 / -1;
  display: grid;
  gap: 1rem;
}

.work-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 0.25rem 0 0.6rem;
  align-items: stretch;
}

.work-timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 2.25rem 1.05rem 1.05rem;
  border: 2px solid rgba(45, 45, 45, 0.24);
  border-radius: 28px 18px 30px 14px / 18px 30px 14px 26px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  text-align: left;
  touch-action: manipulation;
  user-select: none;
  width: 100%;
  min-height: 10.25rem;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.work-timeline-item::after {
  content: '';
  position: absolute;
  left: 1.55rem;
  top: 2.6rem;
  bottom: 0.95rem;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(45, 45, 45, 0.18), rgba(45, 45, 45, 0.04));
}

.work-timeline-item::before {
  content: attr(data-order);
  position: absolute;
  top: 0.8rem;
  right: 0.85rem;
  display: inline-grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 249, 196, 0.9);
  box-shadow: var(--shadow-soft);
  font-family: "Kalam", cursive;
  font-size: 0.95rem;
  line-height: 1;
  color: var(--fg);
}

.work-timeline-item:hover,
.work-timeline-item:focus-visible {
  outline: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.work-timeline-item.is-active {
  background: #fff9c4;
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.work-timeline-dot {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin-top: 0;
  background: var(--accent);
  border: 2px solid var(--border);
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
}

.work-timeline-copy {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
  min-height: 4.25rem;
}

.work-timeline-copy strong {
  display: block;
  font-family: "Kalam", cursive;
  font-size: 1.02rem;
  line-height: 1.08;
}

.work-timeline-copy span {
  display: block;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--muted);
}

.work-timeline-item.is-active .work-timeline-copy strong {
  color: var(--fg);
}

@media (max-width: 960px) {
  .work-timeline {
    grid-template-columns: 1fr;
  }
}

.work-detail-note {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 28px 8px 0;
  padding: 34px 36px 32px;
  background: #fff9c4;
  border: 3px solid #2d2d2d;
  box-shadow: 7px 7px 0 0 #2d2d2d;
  border-radius: 255px 24px 225px 28px / 24px 225px 28px 255px;
  text-align: left;
  transform: translateY(0) rotate(-0.4deg);
  opacity: 1;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    box-shadow 160ms ease;
}

.work-detail-note h3,
.work-detail-note p,
.work-detail-note ul,
.work-detail-note li {
  margin-left: 0;
  text-align: left;
  width: 100%;
}

.work-detail-note h3,
.work-detail-note p,
.work-detail-note ul {
  text-align: left;
}

.work-detail-note h3 {
  margin: 0;
  font-family: "Kalam", cursive;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.05;
}

.work-detail-note.is-fading-out {
  opacity: 0;
  transform: translateY(14px) rotate(-0.4deg);
}

.work-detail-note.is-fading-in {
  opacity: 1;
  transform: translateY(0) rotate(-0.4deg);
}

.work-detail-pin {
  position: absolute;
  top: 1rem;
  left: 50%;
  width: 0.95rem;
  height: 0.95rem;
  background: var(--accent);
  border: 2px solid var(--border);
  border-radius: 50%;
  transform: translateX(-50%);
}

.work-detail-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.55rem;
  font-family: "Kalam", cursive;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.work-detail-meta {
  margin: 0.35rem 0 0.9rem;
  font-family: "Kalam", cursive;
  font-size: 1.12rem;
  color: var(--blue);
}

.work-detail-note ul {
  margin: 0;
  padding-left: 1.1rem;
}

.work-detail-note li + li {
  margin-top: 0.45rem;
}

.book-page-grid--skills {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.book-panel {
  padding: 1rem 1.1rem;
  border: 2px dashed rgba(45, 45, 45, 0.28);
  border-radius: 26px 14px 28px 16px / 16px 28px 14px 24px;
  background: rgba(255, 255, 255, 0.86);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.book-panel--accent {
  background: linear-gradient(180deg, rgba(255, 250, 232, 0.98), rgba(255, 245, 196, 0.88));
}

.book-panel--full {
  grid-column: 1 / -1;
}

.book-panel h3 {
  margin: 0 0 0.75rem;
  font-family: "Kalam", cursive;
  font-size: clamp(1.2rem, 1.9vw, 1.55rem);
}

.book-page[data-page="0"] .book-panel h3 {
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
}

.book-page[data-page="0"] .info-row {
  grid-template-columns: 8.25rem 1fr;
  padding: 0.75rem 0.9rem;
}

.book-page[data-page="0"] .info-row dt,
.book-page[data-page="0"] .info-row dd,
.book-page[data-page="0"] .book-list,
.book-page[data-page="0"] .book-list li {
  font-size: 1rem;
  line-height: 1.45;
}

.book-page[data-page="0"] .info-row dd {
  line-height: 1.35;
}

.book-page[data-page="0"] .book-panel--accent {
  background: linear-gradient(180deg, rgba(255, 250, 232, 0.96), rgba(255, 245, 196, 0.82));
}

.book-page[data-page="0"] .book-page-grid--info {
  gap: 0.9rem;
}

.book-page[data-page="0"] .profile-collage {
  position: relative;
  flex: 1;
  width: min(100%, 50rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: stretch;
  padding: 0.2rem 0.1rem 0.55rem;
  margin-top: 0.15rem;
  max-height: 26rem;
  overflow: auto;
  scrollbar-width: thin;
}

.book-page[data-page="0"] .profile-id-card,
.book-page[data-page="0"] .profile-school-card {
  position: relative;
  display: flex;
  flex-direction: column;
  color: var(--fg);
  border: 3px solid var(--border);
  box-shadow: 6px 6px 0 0 var(--border);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
  overflow: visible;
}

.book-page[data-page="0"] .profile-id-card {
  padding: 1.65rem 1.55rem 1.5rem;
  background: linear-gradient(180deg, #ffffff, #fffdf7);
  transform: rotate(-1.4deg);
  border-radius: 255px 24px 225px 30px / 24px 225px 30px 255px;
}

.book-page[data-page="0"] .profile-school-card {
  padding: 1.65rem 1.6rem 1.55rem;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 249, 196, 0.78), transparent 28%),
    linear-gradient(180deg, #fffdf8, #fffaf0);
  transform: rotate(1deg);
  border-radius: 28px 255px 32px 225px / 225px 28px 255px 32px;
}

.book-page[data-page="0"] .profile-id-card:hover,
.book-page[data-page="0"] .profile-school-card:hover {
  transform: translate(3px, 3px) rotate(0deg);
  box-shadow: 3px 3px 0 0 var(--border);
}

.book-page[data-page="0"] .profile-tape {
  position: absolute;
  left: 50%;
  top: -18px;
  width: 112px;
  height: 32px;
  transform: translateX(-50%) rotate(-4deg);
  background: rgba(229, 224, 216, 0.78);
  border: 2px dashed rgba(45, 45, 45, 0.35);
  box-shadow: 3px 3px 0 0 rgba(45, 45, 45, 0.16);
}

.book-page[data-page="0"] .profile-pin {
  position: absolute;
  left: 50%;
  top: -17px;
  width: 34px;
  height: 34px;
  transform: translateX(-50%);
  background: #ff9bb3;
  border: 3px solid var(--border);
  border-radius: 50% 45% 52% 48% / 44% 55% 45% 56%;
  box-shadow: 3px 3px 0 0 var(--border);
}

.book-page[data-page="0"] .profile-card-title {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.book-page[data-page="0"] .profile-card-title h3 {
  margin: 0;
  font-family: "Kalam", cursive;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1;
}

.book-page[data-page="0"] .profile-tags {
  display: grid;
  gap: 12px;
}

.book-page[data-page="0"] .profile-tag,
.book-page[data-page="0"] .school-note,
.book-page[data-page="0"] .course-note {
  position: relative;
  border: 2px dashed rgba(45, 45, 45, 0.35);
  background: #fdfbf7;
  border-radius: 24px 18px 28px 20px / 18px 28px 20px 24px;
  box-shadow: 3px 3px 0 0 rgba(45, 45, 45, 0.16);
}

.book-page[data-page="0"] .profile-tag {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: center;
  min-height: 50px;
  padding: 8px 12px;
}

.book-page[data-page="0"] .profile-tag-name {
  width: 94%;
  transform: rotate(0.8deg);
}

.book-page[data-page="0"] .profile-tag-age {
  width: 76%;
  margin-left: auto;
  background: #fff9c4;
  transform: rotate(-1.2deg);
}

.book-page[data-page="0"] .profile-tag-city {
  width: 86%;
  margin-left: auto;
  background: #eaf1ff;
  transform: rotate(1.2deg);
}

.book-page[data-page="0"] .profile-tag span,
.book-page[data-page="0"] .school-note span,
.book-page[data-page="0"] .course-note span {
  color: #2d5da1;
  font-family: "Patrick Hand", cursive;
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  line-height: 1.15;
}

.book-page[data-page="0"] .profile-tag strong,
.book-page[data-page="0"] .school-note strong,
.book-page[data-page="0"] .course-note p {
  color: #2d2d2d;
  font-family: "Patrick Hand", cursive;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  font-weight: 400;
  line-height: 1.2;
}

.book-page[data-page="0"] .school-note {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  min-height: 50px;
  padding: 8px 12px;
  margin-bottom: 10px;
}

.book-page[data-page="0"] .school-note-small {
  width: 74%;
  margin-left: auto;
  background: #eaf1ff;
  transform: rotate(-1deg);
}

.book-page[data-page="0"] .course-note {
  padding: 10px 12px;
  background: #fff9c4;
  transform: rotate(0.8deg);
}

.book-page[data-page="0"] .course-note span {
  display: block;
  margin-bottom: 8px;
}

.book-page[data-page="0"] .course-note p {
  margin: 0;
}

.book-page[data-page="0"] .profile-doodle-arrow {
  position: absolute;
  left: 44%;
  top: 48%;
  width: 126px;
  height: 62px;
  transform: translate(-50%, -50%) rotate(-8deg);
  pointer-events: none;
  opacity: 0.5;
}

.book-page[data-page="0"] .profile-doodle-arrow svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.book-page[data-page="0"] .profile-doodle-arrow path {
  fill: none;
  stroke: var(--border);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 9 9;
}

.book-page[data-page="0"] .profile-floating-dot {
  position: absolute;
  border: 3px solid var(--border);
  border-radius: 50%;
  pointer-events: none;
}

.book-page[data-page="0"] .profile-floating-dot-1 {
  left: 7%;
  top: 74%;
  width: 24px;
  height: 24px;
  background: #ff9bb3;
}

.book-page[data-page="0"] .profile-floating-dot-2 {
  right: 8%;
  bottom: 8%;
  width: 18px;
  height: 18px;
  background: #fff9c4;
}

.info-grid {
  margin: 0;
  display: grid;
  gap: 0.85rem;
  width: 100%;
}

.info-row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border: 2px dashed rgba(45, 45, 45, 0.22);
  border-radius: 22px 12px 26px 14px / 14px 26px 12px 22px;
  background: rgba(255, 255, 255, 0.92);
}

.info-row dt {
  color: var(--blue);
  font-family: "Kalam", cursive;
  font-size: 1.15rem;
  text-align: left;
}

.info-row dd {
  margin: 0;
  font-size: 1.15rem;
  text-align: left;
}

.book-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
  width: 100%;
}

.book-list li {
  position: relative;
  padding-left: 0;
  text-align: center;
}

.book-list li::before {
  content: "• ";
}

.book-meta {
  margin: -0.25rem 0 0.75rem;
  color: var(--blue);
  font-family: "Kalam", cursive;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  text-align: center;
}

.book-strong {
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  text-align: center;
}

.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.skills-cloud span {
  padding: 0.55rem 0.9rem;
  border: 2px solid var(--border);
  border-radius: 999px 14px 999px 14px / 14px 999px 14px 999px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.book-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.book-tab {
  min-width: 3.2rem;
  min-height: 3.2rem;
  padding: 0.45rem 0.75rem;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  font-family: "Kalam", cursive;
  font-size: 1.05rem;
}

.book-tab.is-active {
  background: #fff0b3;
  box-shadow: var(--shadow);
}

.book-page.is-active .book-panel {
  animation: pageRise 280ms ease-out;
}

.book-page[data-page="1"] .book-page-grid--work {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.book-page[data-page="1"] .book-page-head {
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
}

.book-page[data-page="1"] .book-page-head h2 {
  flex: 0 0 auto;
}

.book-page[data-page="1"] .work-switch-hint {
  margin-left: 0.35rem;
  font-size: 0.78rem;
  padding: 0.24rem 0.56rem;
  transform: rotate(2deg);
}

.book-page[data-page="1"] .work-timeline-shell {
  grid-template-columns: minmax(14rem, 0.95fr) minmax(0, 1.05fr);
  gap: 1.1rem;
  align-items: center;
}

.book-page[data-page="1"] .work-timeline {
  grid-template-columns: 1fr;
  gap: 0.85rem;
  padding: 0.1rem 0 0.1rem;
  align-self: center;
}

.book-page[data-page="1"] .work-timeline-item {
  min-height: auto;
  padding: 1.05rem 1rem 1rem 1.05rem;
  gap: 0.45rem;
  align-items: flex-start;
}

.book-page[data-page="1"] .work-timeline-item::after {
  left: 1.34rem;
  top: 2.3rem;
  bottom: 0.95rem;
}

.book-page[data-page="1"] .work-timeline-dot {
  margin-top: 0.1rem;
}

.book-page[data-page="1"] .work-timeline-copy {
  min-height: 0;
  gap: 0.3rem;
}

.book-page[data-page="1"] .work-timeline-copy strong {
  font-size: 1.1rem;
  line-height: 1.1;
}

.book-page[data-page="1"] .work-timeline-copy span {
  font-size: 0.88rem;
  line-height: 1.35;
}

.book-page[data-page="1"] .work-detail-note {
  justify-self: center;
  align-self: center;
  width: min(100%, 35rem);
  margin: 0;
  padding: 2rem 2rem 1.85rem;
}

.book-page[data-page="1"] .work-detail-note ul {
  padding-left: 1.2rem;
}

.book-page[data-page="1"] .book-panel {
  min-height: 9rem;
  max-height: 12rem;
  overflow: auto;
  scrollbar-width: thin;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
}

.book-page[data-page="1"] .book-panel--full {
  min-height: 10.5rem;
}

.book-page[data-page="1"] .book-panel {
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease,
    background-image 160ms ease;
}

.book-page[data-page="1"] .book-panel:hover,
.book-page[data-page="1"] .book-panel:focus-within {
  transform: translate(2px, 2px) rotate(0deg);
  box-shadow: 3px 3px 0 0 var(--border);
  background:
    linear-gradient(180deg, rgba(255, 249, 196, 0.98), rgba(255, 241, 177, 0.94)),
    #fff;
}

.book-page[data-page="1"] .book-panel:hover h3,
.book-page[data-page="1"] .book-panel:focus-within h3,
.book-page[data-page="1"] .book-panel:hover .book-meta,
.book-page[data-page="1"] .book-panel:focus-within .book-meta,
.book-page[data-page="1"] .book-panel:hover .book-list li,
.book-page[data-page="1"] .book-panel:focus-within .book-list li {
  color: #2d2d2d;
}

.book-page[data-page="1"] .book-panel h3 {
  font-size: clamp(1.35rem, 1.7vw, 1.6rem);
}

.book-page[data-page="1"] .book-meta,
.book-page[data-page="1"] .book-list li {
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  line-height: 1.42;
}

.book-page[data-page="2"] .book-panel {
  min-height: 10rem;
}

.book-page[data-page="2"] .skills-sticky-board {
  position: relative;
  flex: 1;
  width: min(100%, 55rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.95rem;
  align-content: center;
  justify-self: center;
  min-height: 27rem;
  padding: 1.1rem;
  border: 2px dashed rgba(45, 45, 45, 0.22);
  border-radius: 30px 18px 26px 14px / 16px 26px 14px 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 249, 236, 0.98)),
    repeating-linear-gradient(
      180deg,
      rgba(45, 45, 45, 0.02) 0,
      rgba(45, 45, 45, 0.02) 1px,
      transparent 1px,
      transparent 30px
    );
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.book-page[data-page="2"] .skill-note {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 10rem;
  padding: 1.2rem 1rem 1rem;
  border: 2px solid var(--border);
  border-radius: 18px 12px 22px 16px / 14px 22px 16px 18px;
  background: var(--note-bg, #fff7dc);
  box-shadow: 8px 8px 0 rgba(45, 45, 45, 0.16);
  transform: rotate(var(--note-rotate, 0deg));
  transform-origin: center;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    filter 220ms ease;
  will-change: transform;
  isolation: isolate;
}

.book-page[data-page="2"] .skill-note:hover {
  transform: translateY(-8px) rotate(calc(var(--note-rotate, 0deg) + 2deg));
  box-shadow: 4px 4px 0 rgba(45, 45, 45, 0.14);
  filter: brightness(1.01);
  z-index: 2;
}

.book-page[data-page="2"] .skill-note h3 {
  margin: 0.15rem 0 0;
  font-family: "Kalam", cursive;
  font-size: 1.35rem;
}

.book-page[data-page="2"] .skill-note p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.book-page[data-page="2"] .skill-note-number {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  font-family: "Kalam", cursive;
  font-size: 1.08rem;
  color: rgba(45, 45, 45, 0.58);
  letter-spacing: 0.06em;
}

.book-page[data-page="2"] .skill-note-tape,
.book-page[data-page="2"] .skill-note-pin {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.book-page[data-page="2"] .skill-note-tape {
  top: -0.58rem;
  left: 50%;
  width: 6.4rem;
  height: 1.1rem;
  transform: translateX(-50%) rotate(-6deg);
  border: 1.5px dashed rgba(45, 45, 45, 0.22);
  border-radius: 999px 999px 20px 20px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.78),
    rgba(255, 255, 255, 0.62),
    rgba(255, 255, 255, 0.78)
  );
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65), 0 3px 6px rgba(45, 45, 45, 0.08);
}

.book-page[data-page="2"] .skill-note-tape::before,
.book-page[data-page="2"] .skill-note-tape::after {
  content: "";
  position: absolute;
  inset: 0.18rem 0.45rem;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(45, 45, 45, 0.06), rgba(45, 45, 45, 0.02));
}

.book-page[data-page="2"] .skill-note-tape::after {
  inset: auto 0.35rem 0.16rem;
  height: 0.14rem;
  opacity: 0.35;
}

.book-page[data-page="2"] .skill-note-tape-blue {
  background: linear-gradient(90deg, rgba(217, 230, 255, 0.85), rgba(255, 255, 255, 0.68), rgba(217, 230, 255, 0.85));
}

.book-page[data-page="2"] .skill-note-pin {
  top: -0.52rem;
  right: 1rem;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0 18%, #d8d8d8 19% 34%, #6f6f6f 35% 100%);
  box-shadow: 0 2px 0 rgba(45, 45, 45, 0.24);
}

.book-page[data-page="2"] .skill-note-pin::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 55%;
  width: 0.18rem;
  height: 1.1rem;
  background: rgba(93, 93, 93, 0.85);
  transform: translateX(-50%) rotate(8deg);
  transform-origin: top center;
}

.book-page[data-page="2"] .skill-note-pin-red {
  background: radial-gradient(circle at 35% 35%, #fff8f8 0 18%, #ffb3bc 19% 35%, #d84b5a 36% 100%);
}

.book-page[data-page="2"] .skill-note-search {
  --note-bg: linear-gradient(180deg, #fff8d9, #fff1bf);
  --note-rotate: -6deg;
  grid-column: 2 / span 4;
  grid-row: 1;
}

.book-page[data-page="2"] .skill-note-event {
  --note-bg: linear-gradient(180deg, #eef9eb, #ddf1dc);
  --note-rotate: 4deg;
  grid-column: 7 / span 4;
  grid-row: 1;
  margin-top: 0.1rem;
}

.book-page[data-page="2"] .skill-note-copy {
  --note-bg: linear-gradient(180deg, #eef4ff, #dde8ff);
  --note-rotate: -2deg;
  grid-column: 3 / span 4;
  grid-row: 2;
  margin-top: -0.2rem;
}

.book-page[data-page="2"] .skill-note-video {
  --note-bg: linear-gradient(180deg, #fff0f3, #ffe0e8);
  --note-rotate: 5deg;
  grid-column: 8 / span 4;
  grid-row: 2;
  margin-top: -0.05rem;
}

.book-page[data-page="2"] .skills-doodle {
  position: absolute;
  pointer-events: none;
  color: rgba(45, 45, 45, 0.4);
  font-size: 1.35rem;
  line-height: 1;
}

.book-page[data-page="2"] .skills-doodle-star {
  top: 0.9rem;
  right: 1rem;
  transform: rotate(12deg);
}

.book-page[data-page="2"] .skills-doodle-heart {
  left: 1rem;
  bottom: 0.95rem;
  transform: rotate(-12deg);
}

.book-page[data-page="2"] .skills-doodle-pencil {
  right: 1.15rem;
  bottom: 0.85rem;
  transform: rotate(10deg);
}

@keyframes pageRise {
  from {
    transform: translateY(10px);
    opacity: 0.85;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 960px) {
  .hero,
  .article-layout,
  .profile-grid,
  .resume-grid,
  .project-grid,
  .project-selector-grid,
  .project-detail-grid,
  .project-notes,
  .contact-grid,
  .contact-bar,
  .video-grid,
  .gallery-grid-2,
  .gallery-grid-3 {
    grid-template-columns: 1fr;
  }

  .hero-doodle-landscape {
    min-height: 42rem;
    padding-inline: 1rem;
  }

  .doodle-scene {
    min-height: 30rem;
  }

  .about-intro-card {
    grid-template-columns: 1fr;
  }

  .about-intro-photo {
    max-width: 16rem;
    justify-self: center;
  }

  .book-page[data-page="0"] .profile-collage {
    grid-template-columns: 1fr;
  }

  .book-page[data-page="0"] .profile-id-card,
  .book-page[data-page="0"] .profile-school-card {
    transform: rotate(0deg);
  }

  .book-page[data-page="0"] .profile-doodle-arrow,
  .book-page[data-page="0"] .profile-floating-dot {
    display: none;
  }

  .book-page[data-page="0"] .profile-tag,
  .book-page[data-page="0"] .school-note {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .book-page[data-page="0"] .profile-tag-name,
  .book-page[data-page="0"] .profile-tag-age,
  .book-page[data-page="0"] .profile-tag-city,
  .book-page[data-page="0"] .school-note-small {
    width: 100%;
    margin-left: 0;
  }

  .project-selector-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-visual {
    min-height: 28rem;
  }

  .hero-card {
    position: relative;
    inset: auto;
    width: 100%;
  }

  .portrait-switcher-hint {
    opacity: 1;
    bottom: 12px;
    font-size: 16px;
  }

  .floating-card {
    position: relative;
    width: 100%;
    left: auto;
    bottom: auto;
    margin-top: 1rem;
  }

  .section-heading,
  .footer,
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-switch-hint {
    margin-left: 0;
  }

  .work-switch-hint {
    margin-left: 0;
  }

  .contact-bar {
    align-items: flex-start;
  }

  .contact-buttons {
    width: 100%;
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-item img {
    height: 200px;
  }

  .book-stage {
    min-height: 40rem;
  }

  .book-page-grid--info,
  .book-page-grid--work,
  .book-page-grid--skills {
    grid-template-columns: 1fr;
  }

  .book-page[data-page="1"] .work-timeline-shell {
    grid-template-columns: 1fr;
  }

  .book-page[data-page="1"] .work-timeline {
    grid-template-columns: 1fr;
  }

  .book-page[data-page="2"] .skills-sticky-board {
    grid-template-columns: 1fr;
    width: 100%;
    min-height: auto;
  }

  .book-page[data-page="2"] .skill-note {
    grid-column: 1 / -1;
    grid-row: auto;
    margin-top: 0;
    transform: none;
    width: 100%;
    max-width: none;
    min-height: auto;
  }

  .book-page[data-page="2"] .skill-note:hover {
    transform: translateY(-4px);
  }

  .book-page[data-page="2"] .skills-doodle {
    display: none;
  }

  .book-page.is-prev {
    opacity: 0;
    transform: translateX(-4%) rotateY(-16deg) scale(0.96);
  }

  .book-page.is-next {
    opacity: 0;
    transform: translateX(4%) rotateY(16deg) scale(0.96);
  }
}

@media (max-width: 900px) {
  .hero-doodle-landscape {
    padding-top: 4px;
    padding-bottom: 48px;
  }

  .doodle-scene {
    margin-top: -4px;
  }

  .scene-layer {
    animation: none;
    transition: none;
  }
}

@media (max-width: 640px) {
  .topbar,
  .section,
  .footer,
  .content-page {
    width: min(100% - 1.25rem, 72rem);
  }

  .section {
    padding: 2rem 0;
  }

  .hero-summary {
    grid-template-columns: 1fr;
  }

  .hero-doodle-landscape {
    min-height: 38rem;
    padding-bottom: 72px;
  }

  .hero-sign-content {
    top: 70%;
    width: 15rem;
  }

  .hero-my-mark {
    min-width: 4.9rem;
    min-height: 4.9rem;
    font-size: 2.45rem;
  }

  .hero-sign-line {
    font-size: 0.95rem;
    gap: 0.16rem;
  }

  .doodle-scroll-hint {
    margin-bottom: 2rem;
  }

  .hero-sticker {
    display: none;
  }

  .btn {
    width: 100%;
  }

  .cta-row {
    width: 100%;
  }

  .nav {
    width: 100%;
  }

  .nav-link {
    flex: 1 1 auto;
    text-align: center;
  }

  .resume-grid,
  .project-selector-grid {
    grid-template-columns: 1fr;
    grid-auto-flow: row;
  }

  .contact-buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: row;
  }

  .project-material-book-wrapper {
    max-width: 100%;
  }

  .portfolio-book--mobile-scroll {
    display: flex;
    gap: 0.9rem;
    min-height: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.25rem 0.2rem 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
  }

  .portfolio-book--mobile-scroll .portfolio-book-page {
    display: block;
    flex: 0 0 min(82vw, 22rem);
    min-height: 24rem;
    padding: 0.75rem;
    scroll-snap-align: center;
    transform: none !important;
  }

  .portfolio-book--mobile-scroll .gallery-item {
    min-height: 22.5rem;
    touch-action: pan-x pan-y;
  }

  .portfolio-book--mobile-scroll .gallery-item img {
    min-height: 18rem;
    pointer-events: none;
    cursor: grab;
  }

  .portfolio-book--mobile-scroll .gallery-preview-trigger {
    min-height: 2.75rem;
    padding-inline: 0.8rem;
    font-size: 0.95rem;
  }

  .portfolio-book--mobile-scroll + .book-hint {
    font-size: 0.85rem;
    color: #6f5645;
  }

  .project-selector,
  .project-detail,
  .resume-card {
    padding: 1rem;
  }

  .contact-item {
    align-items: flex-start;
  }

  .contact-stage {
    width: min(100% - 1.25rem, 72rem);
  }

  .contact-popup {
    width: 100%;
  }

  .resume-book-toolbar {
    justify-content: center;
  }

  .book-stage {
    min-height: 44rem;
  }

  .book-page {
    padding: 1rem;
  }

  .info-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

@media (max-width: 720px) {
  .image-dialog {
    align-items: center;
    justify-items: center;
    padding: 0.55rem;
    background: rgba(45, 45, 45, 0.62);
  }

  .image-dialog-panel {
    width: min(96vw, 34rem);
    max-height: 88dvh;
    padding: 0.7rem;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .image-dialog-panel img {
    max-height: 76dvh;
    border-radius: 18px 12px 20px 14px / 14px 20px 12px 18px;
  }

  .image-dialog-panel p {
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .dialog-close {
    top: 0.35rem;
    right: 0.35rem;
    width: 2.3rem;
    height: 2.3rem;
    background: #fff;
  }
}

@media (max-width: 640px) {
  .topbar {
    position: sticky;
    top: 0;
    z-index: 80;
    width: 100%;
    padding: 0.75rem 0.75rem 0.85rem;
    gap: 0.65rem;
    background: rgba(234, 246, 255, 0.96);
    box-shadow: 0 8px 18px rgba(45, 45, 45, 0.06);
  }

  .brand {
    gap: 0.45rem;
  }

  .brand-mark {
    width: 2.15rem;
    height: 2.15rem;
    box-shadow: 3px 3px 0 0 var(--border);
  }

  .brand-tag {
    padding: 0.34rem 0.72rem;
    font-size: 1.05rem;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.42rem;
  }

  .nav-link {
    display: grid;
    place-items: center;
    min-height: 2.35rem;
    padding: 0.32rem 0.2rem;
    border-width: 1.8px;
    border-radius: 18px 12px 18px 12px / 12px 18px 12px 18px;
    font-size: 0.93rem;
    line-height: 1;
    box-shadow: none;
  }

  .nav-link small {
    display: none;
  }

  .nav-link.active {
    box-shadow: 3px 3px 0 0 var(--border);
  }

  .resume-book-page {
    padding-top: 1.35rem;
    padding-bottom: 2.5rem;
  }

  .resume-book-shell {
    gap: 0.8rem;
  }

  .resume-book-toolbar {
    position: relative;
    z-index: 3;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .book-arrow {
    width: 2.55rem;
    height: 2.55rem;
    font-size: 1.15rem;
  }

  .book-status {
    padding: 0.42rem 0.7rem;
  }

  .book-status strong {
    font-size: 1rem;
  }

  .book-stage {
    min-height: 0;
    height: auto;
    overflow: visible;
    cursor: default;
    touch-action: pan-y;
    border-radius: 28px 14px 28px 14px / 14px 28px 14px 28px;
  }

  .book-spine {
    display: none;
  }

  .book-page {
    position: relative;
    inset: auto;
    display: none;
    min-height: auto;
    padding: 1rem 0.9rem 1.15rem;
    opacity: 1;
    pointer-events: none;
    transform: none !important;
    filter: none;
    transition: opacity 220ms ease;
  }

  .book-page.is-active {
    display: flex;
    pointer-events: auto;
    z-index: 1;
  }

  .book-page.is-prev,
  .book-page.is-next {
    display: none !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .book-page-head {
    gap: 0.6rem;
    margin-bottom: 0.75rem;
  }

  .book-page-index {
    width: 2.55rem;
    height: 2.55rem;
    font-size: 1rem;
  }

  .book-page-head h2 {
    font-size: 1.8rem;
  }

  .book-page[data-page="1"] .book-page-grid--work,
  .book-page[data-page="1"] .work-timeline-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.95rem;
  }

  .book-page[data-page="1"] .work-timeline {
    grid-template-columns: 1fr;
    gap: 0.72rem;
  }

  .book-page[data-page="1"] .work-timeline-item {
    min-height: auto;
    padding: 0.95rem 0.9rem 0.85rem;
    border-width: 2px;
    border-radius: 24px 16px 24px 16px / 16px 24px 16px 24px;
    box-shadow: 3px 3px 0 rgba(45, 45, 45, 0.12);
  }

  .book-page[data-page="1"] .work-timeline-item::after {
    display: none;
  }

  .book-page[data-page="1"] .work-timeline-item::before {
    width: 1.45rem;
    height: 1.45rem;
    font-size: 0.8rem;
  }

  .book-page[data-page="1"] .work-timeline-copy strong {
    font-size: 1rem;
    line-height: 1.18;
  }

  .book-page[data-page="1"] .work-timeline-copy span {
    font-size: 0.82rem;
    line-height: 1.3;
  }

  .book-page[data-page="1"] .work-detail-note {
    width: 100%;
    margin: 0.25rem 0 0;
    padding: 1.65rem 1.05rem 1.2rem;
    border-width: 2.5px;
    box-shadow: 5px 5px 0 0 #2d2d2d;
    transform: none;
    max-height: 27rem;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .work-detail-note.is-fading-out,
  .work-detail-note.is-fading-in {
    transform: none;
  }

  .work-detail-pin {
    top: 0.8rem;
  }

  .work-detail-kicker {
    font-size: 0.8rem;
  }

  .work-detail-note h3 {
    font-size: 1.35rem;
    line-height: 1.12;
  }

  .work-detail-meta {
    font-size: 1rem;
  }

  .work-detail-note li {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .book-page[data-page="2"] .skills-sticky-board {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    min-height: 0;
    padding: 0.45rem 0.25rem 0.85rem;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .book-page[data-page="2"] .skill-note {
    grid-column: 1 / -1;
    grid-row: auto;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 1rem 1rem 0.95rem;
    transform: rotate(var(--mobile-note-rotate, 0deg)) !important;
    box-shadow: 4px 4px 0 rgba(45, 45, 45, 0.14);
  }

  .book-page[data-page="2"] .skill-note-search {
    --mobile-note-rotate: -1.5deg;
  }

  .book-page[data-page="2"] .skill-note-event {
    --mobile-note-rotate: 1.2deg;
  }

  .book-page[data-page="2"] .skill-note-copy {
    --mobile-note-rotate: -0.8deg;
  }

  .book-page[data-page="2"] .skill-note-video {
    --mobile-note-rotate: 1deg;
  }

  .book-page[data-page="2"] .skill-note:hover {
    transform: translateY(-3px) rotate(var(--mobile-note-rotate, 0deg)) !important;
  }

  .book-page[data-page="2"] .skill-note h3 {
    font-size: 1.25rem;
  }

  .book-page[data-page="2"] .skill-note p {
    font-size: 0.96rem;
    line-height: 1.48;
  }

  .book-tabs {
    position: sticky;
    bottom: 0.55rem;
    z-index: 30;
    width: fit-content;
    max-width: calc(100vw - 1.5rem);
    margin: 0.2rem auto 0;
    padding: 0.32rem;
    border: 2px solid rgba(45, 45, 45, 0.18);
    border-radius: 999px;
    background: rgba(234, 246, 255, 0.92);
    backdrop-filter: blur(10px);
  }

  .book-tab {
    min-width: 2.6rem;
    min-height: 2.6rem;
    font-size: 0.95rem;
  }

  .music-toggle {
    right: 0.75rem;
    bottom: 5.4rem;
    padding: 0.42rem 0.7rem;
    font-size: 0.95rem;
    box-shadow: 3px 3px 0 0 #2d2d2d;
  }
}

@media (prefers-reduced-motion: reduce) {
  .car,
  .car-wheel,
  .cute-cursor-bubble {
    transition: none;
    animation: none;
  }

  .scene-layer,
  .hero-bird,
  .hero-bird-flight,
  .hero-bird-wing,
  .hero-sticker {
    transition: none;
    animation: none;
  }

  .portrait-image,
  .portrait-switcher-hint {
    transition: none;
  }

  .work-detail-note {
    transition: none;
  }

  .work-detail-note.is-fading-out,
  .work-detail-note.is-fading-in {
    opacity: 1;
    transform: translateY(0) rotate(-0.4deg);
  }

  .work-timeline-item {
    transition: none;
  }
}
