@font-face {
  font-family: "Redaction";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/redaction@latest/latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Redaction";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/redaction@latest/latin-700-normal.woff2") format("woff2");
}

:root {
  --paper: #f4e6d2;
  --paper-hot: #fff1b8;
  --ink: #141313;
  --muted: #5f564b;
  --line: #6f1210;
  --maroon: #6f1210;
  --orange: #ff5a31;
  --yellow: #ffc62e;
  --blue: #2f96ea;
  --violet: #8b63e8;
  --green: #bee116;
  --pink: #efa3bd;
  --red: #ff5632;
  --peach: #ffc38b;
  --cream: #fff8ea;
  --ambient: rgba(47, 35, 20, 0.18);
  --contact: rgba(45, 5, 4, 0.22);
  --create-ink: #101010;
  --create-frame: #101010;
  --create-paper: #f2eee6;
  --shine: rgba(255, 255, 255, 0.38);
  --lift-shadow: rgba(45, 5, 4, 0.28);
  --shadow: 0 28px 70px var(--ambient);
  --radius: 18px;
  --gap: 10px;
  --max: 1180px;
  --pad: 18px;
  --tile-title-feature: 52px;
  --tile-title-side: 32px;
  --tile-title-small: 26px;
  --tile-icon-size: 74px;
  --display: "Redaction", Georgia, serif;
  --sans: Inter, Arial, sans-serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 198, 46, 0.5), transparent 24rem),
    radial-gradient(circle at 82% 86%, rgba(111, 18, 16, 0.2), transparent 26rem),
    linear-gradient(135deg, #f1dcc1 0%, #fbefd9 42%, #f4dfc8 100%);
}

body[data-mode="create"] {
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.38), transparent 21rem),
    radial-gradient(circle at 84% 78%, rgba(201, 169, 91, 0.2), transparent 25rem),
    linear-gradient(135deg, #e8e2d6 0%, #fbf6eb 46%, #ddd4c5 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(20, 19, 19, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 19, 19, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 76%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 34% 8%, rgba(255, 255, 255, 0.38), transparent 16rem),
    radial-gradient(circle at 70% 74%, rgba(111, 18, 16, 0.12), transparent 28rem);
  mix-blend-mode: soft-light;
}

body[data-mode="create"]::after {
  background:
    radial-gradient(circle at 30% 10%, rgba(255, 255, 255, 0.36), transparent 16rem),
    radial-gradient(circle at 72% 78%, rgba(16, 16, 16, 0.12), transparent 28rem);
}

a,
button {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

img {
  display: block;
}

[hidden] {
  display: none !important;
}

.page-shell {
  width: min(100%, var(--max));
  min-height: 100svh;
  margin: 0 auto;
  padding: 84px var(--pad) 30px;
}

.site-header {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 18px;
  margin-bottom: 34px;
}

.brand {
  display: block;
}

.brand img {
  width: clamp(84px, 6vw, 110px);
  height: auto;
  filter: drop-shadow(0 10px 0 rgba(45, 5, 4, 0.12));
  transition: transform 420ms cubic-bezier(0.34, 1.56, 0.64, 1), filter 220ms ease;
}

.site-header {
  animation: load-rise 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mode-row {
  animation: load-rise 560ms 80ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.bento {
  animation: tray-in 680ms 140ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tile {
  animation: tile-in 620ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.tile:nth-child(1) { animation-delay: 150ms; }
.tile:nth-child(2) { animation-delay: 190ms; }
.tile:nth-child(3) { animation-delay: 230ms; }
.tile:nth-child(4) { animation-delay: 260ms; }
.tile:nth-child(5) { animation-delay: 290ms; }
.tile:nth-child(6) { animation-delay: 320ms; }
.tile:nth-child(7) { animation-delay: 350ms; }
.tile:nth-child(8) { animation-delay: 380ms; }

.site-footer {
  animation: load-rise 520ms 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand:hover img {
  transform: rotate(-7deg) scale(1.08);
  filter: drop-shadow(0 14px 0 rgba(45, 5, 4, 0.16));
}

.mode-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 204px;
  min-height: 42px;
  padding: 5px;
  border: 0;
  border-radius: 18px;
  background: var(--maroon);
  transform-style: preserve-3d;
  box-shadow:
    0 7px 0 rgba(45, 5, 4, 0.22),
    0 18px 26px rgba(47, 35, 20, 0.14);
  transform: rotate(-0.4deg) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 220ms ease;
}

body[data-mode="create"] .mode-switch {
  background: var(--create-frame);
  box-shadow:
    0 7px 0 rgba(16, 16, 16, 0.22),
    0 18px 26px rgba(20, 19, 19, 0.14);
}

.mode-switch::before {
  content: none;
}

.mode-switch:hover {
  transform: translateY(-4px) rotate(0.3deg) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  box-shadow:
    0 10px 0 rgba(45, 5, 4, 0.24),
    0 24px 32px rgba(47, 35, 20, 0.16);
}

.mode-switch:active {
  transform: translateY(2px) rotate(-0.2deg);
  box-shadow:
    0 3px 0 rgba(45, 5, 4, 0.24),
    0 10px 18px rgba(47, 35, 20, 0.12),
    inset 0 2px 4px rgba(45, 5, 4, 0.24);
}

.mode-row {
  display: flex;
  justify-content: center;
  margin: 0 0 30px;
}

.mode-button {
  position: relative;
  z-index: 5;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  text-transform: lowercase;
  color: var(--cream);
  transform: translateZ(18px);
  transition: color 180ms ease, transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mode-button:hover {
  transform: translateY(-1px) translateZ(18px);
}

.mode-button.is-active {
  color: var(--maroon);
}

body[data-mode="create"] .mode-button.is-active {
  color: var(--create-ink);
}

.mode-thumb {
  position: absolute;
  z-index: 1;
  top: 5px;
  left: 5px;
  width: calc(50% - 4px);
  height: calc(100% - 10px);
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), transparent 42%),
    var(--cream);
  box-shadow:
    inset 0 -4px 0 rgba(111, 18, 16, 0.1),
    0 4px 0 rgba(45, 5, 4, 0.18);
  transform: translateZ(10px);
  transition: transform 360ms cubic-bezier(0.34, 1.56, 0.64, 1), border-radius 240ms ease, box-shadow 220ms ease;
}

.mode-switch[data-mode="create"] .mode-thumb {
  transform: translateX(100%) translateZ(10px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), transparent 45%),
    #f5fbff;
}

.hero {
  max-width: 980px;
  margin: 0;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h1 {
  min-height: clamp(112px, 11vw, 158px);
  margin: 0;
  margin-inline: auto;
  max-width: 920px;
  font-family: var(--display);
  font-size: clamp(76px, 8.4vw, 136px);
  font-weight: 700;
  line-height: 0.84;
  letter-spacing: 0;
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1;
  text-wrap: balance;
  color: var(--maroon);
  text-shadow: 0 6px 0 rgba(111, 18, 16, 0.08);
  transition: color 300ms ease, text-shadow 300ms ease;
}

body[data-mode="create"] .hero h1 {
  color: var(--create-ink);
  text-shadow: 0 6px 0 rgba(36, 90, 34, 0.08);
}

.email-link {
  display: inline-flex;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  padding: 3px 2px 6px;
  background-image: linear-gradient(#ffd41f, #ffd41f);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 4px;
  text-decoration: none;
  transition: transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1), color 180ms ease, background-size 220ms ease, filter 180ms ease;
}

.email-link:hover {
  color: var(--maroon);
  background-size: 72% 4px;
  filter: drop-shadow(0 5px 0 rgba(45, 5, 4, 0.12));
  transform: translateX(8px) translateY(-2px) rotate(-1deg);
}

.panel {
  display: none;
}

.panel.is-active {
  display: block;
}

.bento {
  display: grid;
  grid-template-columns: repeat(15, minmax(0, 1fr));
  grid-template-rows: 190px 190px 146px;
  gap: var(--gap);
  padding: 12px;
  border: 2px solid var(--maroon);
  border-radius: calc(var(--radius) + 8px);
  background: var(--maroon);
  box-shadow:
    0 12px 0 rgba(45, 5, 4, 0.22),
    0 32px 62px rgba(47, 35, 20, 0.18);
  overflow: visible;
  perspective: 1100px;
}

body[data-mode="create"] .bento {
  border-color: var(--create-frame);
  background: var(--create-frame);
  box-shadow:
    0 12px 0 rgba(16, 16, 16, 0.2),
    0 32px 62px rgba(20, 19, 19, 0.18);
}

.tile {
  position: relative;
  isolation: isolate;
  overflow: visible;
  min-height: 0;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(111, 18, 16, 0.9);
  border-radius: var(--radius);
  background: var(--tile-bg, var(--cream));
  transform-style: preserve-3d;
  will-change: transform;
  box-shadow:
    0 8px 0 rgba(45, 5, 4, 0.18),
    0 18px 24px rgba(47, 35, 20, 0.1);
  transition: transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1), filter 180ms ease, border-radius 320ms ease, box-shadow 220ms ease;
}

.tile > * {
  min-width: 0;
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.1;
  border-radius: inherit;
  background:
    radial-gradient(circle at var(--mx, 24%) var(--my, 12%), rgba(255, 255, 255, 0.58), transparent 13rem),
    linear-gradient(115deg, transparent 48%, rgba(111, 18, 16, 0.12) 48.4%, transparent 49%);
}

.tile::after {
  content: none;
}

.tile:hover {
  transform: translateY(-14px) rotate(var(--tilt, 0deg)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  filter: saturate(1.12);
  border-radius: calc(var(--radius) + 6px);
  box-shadow:
    0 14px 0 rgba(45, 5, 4, 0.2),
    0 28px 32px rgba(47, 35, 20, 0.12);
}

.tile:active {
  transform: translateY(-2px) rotate(var(--tilt, 0deg)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(0.992);
  box-shadow:
    0 5px 0 rgba(45, 5, 4, 0.24),
    0 12px 18px rgba(47, 35, 20, 0.1);
}

.tile:hover .tile-icon {
  animation: bubble-pop 520ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tile:hover .poster {
  animation: poster-wiggle 540ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tile-kicker,
.tile-title {
  position: relative;
  z-index: 3;
  transform: translateZ(16px);
}

.tile-kicker {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.02em;
}

.tile-title {
  position: relative;
  z-index: 3;
  max-width: 16rem;
  font-family: var(--display);
  font-size: var(--tile-title-small);
  font-weight: 700;
  line-height: 0.96;
  text-transform: lowercase;
  overflow-wrap: break-word;
}

.tile-arrow {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 4;
  font-family: var(--mono);
  font-size: 22px;
}

.tile-icon {
  position: absolute;
  right: 22px;
  bottom: 20px;
  z-index: 4;
  width: var(--tile-icon-size);
  height: var(--tile-icon-size);
  object-fit: contain;
  transform: translateZ(34px) rotate(var(--icon-tilt, -3deg));
  filter: drop-shadow(0 12px 0 rgba(45, 5, 4, 0.18)) drop-shadow(0 18px 16px rgba(47, 35, 20, 0.12));
  transition: transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1), filter 180ms ease;
}

.tile-letterboxd {
  --tile-bg: var(--orange);
  --tilt: -1deg;
  grid-column: 1 / span 6;
  grid-row: 1 / span 2;
  color: var(--ink);
  overflow: visible;
}

.tile-letterboxd .tile-title {
  max-width: 100%;
  font-size: var(--tile-title-feature);
  white-space: nowrap;
}

.tile-youtube {
  --tile-bg: var(--pink);
  --tilt: 1deg;
  grid-column: 7 / span 5;
  grid-row: 1 / span 2;
  color: var(--maroon);
}

.tile-youtube .tile-title {
  max-width: calc(100% - 116px);
  font-size: var(--tile-title-feature);
}

.tile-youtube .tile-icon {
  right: 34px;
  bottom: 42px;
  width: 74px;
  height: 74px;
  opacity: 0.9;
  --icon-tilt: 2deg;
}

.tile-bsky {
  --tile-bg: var(--blue);
  --tilt: -1deg;
  --icon-tilt: 7deg;
  grid-column: 1 / span 3;
  grid-row: 3;
}

.tile-pinterest .tile-title,
.tile-twitch .tile-title {
  max-width: calc(100% - 90px);
  font-size: var(--tile-title-side);
}

.tile-bsky .tile-title,
.tile-reddit .tile-title,
.tile-music .tile-title,
.tile-books .tile-title {
  max-width: calc(100% - 82px);
  font-size: var(--tile-title-small);
}

.tile-twitch {
  --tile-bg: #c7abf6;
  --tilt: 1deg;
  --icon-tilt: -4deg;
  color: var(--maroon);
  grid-column: 12 / span 4;
  grid-row: 2;
}

.tile-pinterest {
  --tile-bg: var(--peach);
  --tilt: -1deg;
  --icon-tilt: -8deg;
  grid-column: 12 / span 4;
  grid-row: 1;
}

.tile-reddit {
  --tile-bg: var(--green);
  --tilt: 0.7deg;
  --icon-tilt: 4deg;
  grid-column: 4 / span 3;
  grid-row: 3;
}

.tile-reddit .tile-icon {
  right: 20px;
  bottom: 18px;
}

.tile-music {
  --tile-bg: var(--yellow);
  --tilt: -0.8deg;
  grid-column: 7 / span 4;
  grid-row: 3;
}

.tile-books {
  --tile-bg: var(--cream);
  --tilt: 0.8deg;
  grid-column: 11 / span 5;
  grid-row: 3;
}

.youtube-thumb {
  position: absolute;
  top: 48%;
  left: 50%;
  z-index: 4;
  width: min(64%, 300px);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 4px solid var(--line);
  border-radius: 14px;
  box-shadow:
    0 12px 0 rgba(45, 5, 4, 0.16),
    0 20px 20px rgba(47, 35, 20, 0.1);
  transform: translate(-50%, -50%) translateZ(42px) rotate(-3deg);
  transition: transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 220ms ease;
}

.tile:hover .youtube-thumb {
  transform: translate(-50%, calc(-50% - 8px)) translateZ(52px) rotate(-5deg);
  box-shadow:
    0 16px 0 rgba(45, 5, 4, 0.16),
    0 26px 26px rgba(47, 35, 20, 0.12);
}

.poster-stack {
  position: relative;
  z-index: 4;
  width: min(100%, 420px);
  height: 214px;
  margin: -32px auto 8px;
}

.poster {
  position: absolute;
  top: 0;
  width: 134px;
  height: 198px;
  overflow: hidden;
  border: 4px solid rgba(20, 19, 19, 0.88);
  border-radius: 7px;
  background: #5b320d;
  box-shadow:
    0 12px 0 rgba(45, 5, 4, 0.18),
    0 20px 20px rgba(47, 35, 20, 0.1);
}

.poster::after,
.album-cover::after,
.book-cover::after {
  content: none;
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ghost-poster {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent),
    repeating-linear-gradient(90deg, #4c2a0e 0 28px, #6d3d12 28px 56px);
}

.poster-a {
  left: -6px;
  transform: translateZ(24px) rotate(-6deg);
}

.poster-b {
  left: 82px;
  transform: translateZ(32px) rotate(4deg);
}

.poster-c {
  left: 170px;
  transform: translateZ(40px) rotate(-3deg);
}

.poster-d {
  left: 258px;
  transform: translateZ(48px) rotate(5deg);
}

.album-cover {
  position: absolute;
  right: 18px;
  top: -14px;
  z-index: 4;
  width: 116px;
  height: 116px;
  object-fit: cover;
  border: 4px solid var(--line);
  border-radius: 14px;
  box-shadow:
    0 12px 0 rgba(45, 5, 4, 0.16),
    0 20px 20px rgba(47, 35, 20, 0.1);
  transform: translateZ(42px) rotate(6deg);
  transition: transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 220ms ease;
}

.tile-music .tile-title {
  max-width: calc(100% - 92px);
}

.book-cover {
  position: absolute;
  right: 32px;
  top: -32px;
  z-index: 4;
  width: 104px;
  height: 160px;
  object-fit: cover;
  border: 4px solid var(--line);
  border-radius: 8px;
  box-shadow:
    0 12px 0 rgba(45, 5, 4, 0.14),
    0 20px 20px rgba(47, 35, 20, 0.08);
  transform: translateZ(42px) rotate(-6deg);
  transition: transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 220ms ease;
}

.tile:hover .album-cover {
  transform: translateY(-8px) translateZ(52px) rotate(9deg);
  box-shadow:
    0 16px 0 rgba(45, 5, 4, 0.16),
    0 26px 26px rgba(47, 35, 20, 0.12);
}

.tile:hover .book-cover {
  transform: translateY(-8px) translateZ(52px) rotate(-9deg);
  box-shadow:
    0 16px 0 rgba(45, 5, 4, 0.14),
    0 26px 26px rgba(47, 35, 20, 0.1);
}

.tile-books .tile-title {
  max-width: calc(100% - 118px);
}

.create-bento {
  grid-template-rows: 190px 190px 146px;
}

.create-bento .tile {
  border-color: rgba(255, 248, 234, 0.16);
  background:
    radial-gradient(circle at var(--mx, 18%) var(--my, 12%), rgba(255, 255, 255, 0.16), transparent 12rem),
    linear-gradient(145deg, var(--tile-bg), var(--tile-bg-2, #1d1d1d));
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 234, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28),
    0 8px 0 rgba(0, 0, 0, 0.2),
    0 22px 34px rgba(16, 16, 16, 0.16);
}

.create-bento .tile::before {
  opacity: 0.2;
  background:
    radial-gradient(circle at var(--mx, 24%) var(--my, 12%), rgba(255, 255, 255, 0.2), transparent 12rem),
    linear-gradient(115deg, transparent 48%, rgba(255, 248, 234, 0.08) 48.4%, transparent 49%);
}

.create-bento .tile:hover {
  filter: saturate(1.04) contrast(1.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 234, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.34),
    0 14px 0 rgba(0, 0, 0, 0.24),
    0 30px 42px rgba(16, 16, 16, 0.2);
}

.create-bento .tile-kicker {
  color: rgba(255, 248, 234, 0.66);
}

.create-bento .tile-title,
.create-bento .create-count {
  color: #fff8ea;
}

.tile-create-youtube {
  --tile-bg: #171717;
  --tile-bg-2: #050505;
  --tilt: -0.8deg;
  --icon-tilt: 4deg;
  grid-column: 1 / span 5;
  grid-row: 1 / span 3;
  color: var(--cream);
}

.tile-chatgpt {
  --tile-bg: #232323;
  --tile-bg-2: #101010;
  --tilt: 0.8deg;
  --icon-tilt: -6deg;
  grid-column: 6 / span 5;
  grid-row: 1;
  color: var(--cream);
}

.tile-umami {
  --tile-bg: #2c2720;
  --tile-bg-2: #12100d;
  --tilt: -0.4deg;
  --icon-tilt: 3deg;
  grid-column: 6 / span 5;
  grid-row: 2;
  color: var(--cream);
}

.tile-curseforge {
  --tile-bg: #2d211b;
  --tile-bg-2: #110c09;
  --tilt: -1deg;
  --icon-tilt: 8deg;
  grid-column: 11 / span 5;
  grid-row: 1;
  color: var(--cream);
}

.tile-epidemic {
  --tile-bg: #211f25;
  --tile-bg-2: #0f0e12;
  --tilt: 1deg;
  --icon-tilt: -3deg;
  grid-column: 6 / span 5;
  grid-row: 3;
  color: var(--cream);
}

.tile-github {
  --tile-bg: #181818;
  --tile-bg-2: #060606;
  --tilt: 0.4deg;
  --icon-tilt: -4deg;
  grid-column: 11 / span 5;
  grid-row: 2 / span 2;
  color: var(--cream);
}

.create-count {
  position: relative;
  z-index: 3;
  align-self: flex-start;
  margin-top: auto;
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: clamp(72px, 8vw, 116px);
  font-weight: 700;
  line-height: 0.78;
  letter-spacing: 0;
  transform: translateZ(20px);
}

.tile-create-youtube .tile-title {
  max-width: calc(100% - 112px);
  font-size: var(--tile-title-side);
}

.tile-create-youtube .tile-icon {
  right: 26px;
  bottom: 28px;
  width: 92px;
  height: 92px;
}

.tile-chatgpt .tile-title,
.tile-umami .tile-title,
.tile-curseforge .tile-title,
.tile-epidemic .tile-title {
  font-size: var(--tile-title-side);
}

.tile-chatgpt .tile-icon,
.tile-umami .tile-icon,
.tile-curseforge .tile-icon,
.tile-epidemic .tile-icon {
  width: 82px;
  height: 82px;
}

.tile-chatgpt .tile-icon {
  width: 88px;
  height: 88px;
  right: 24px;
  bottom: 18px;
  filter: drop-shadow(8px 10px 0 rgba(0, 0, 0, 0.18));
}

.tile-github {
  overflow: hidden;
}

.tile-github .tile-title {
  font-size: var(--tile-title-side);
  max-width: calc(100% - 72px);
  z-index: 5;
}

.tile-github .tile-icon {
  left: auto;
  right: 22px;
  bottom: 18px;
  width: 82px;
  height: 82px;
  z-index: 5;
  filter: drop-shadow(8px 10px 0 rgba(0, 0, 0, 0.18));
}

.github-dots {
  position: absolute;
  z-index: 3;
  right: 22px;
  top: 48px;
  width: min(58%, 220px);
  max-height: 92px;
  display: grid;
  grid-template-rows: repeat(7, 1fr);
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 5px;
  opacity: 0.72;
  transform: translateZ(38px) rotate(-0.8deg);
  transition: transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.github-dot {
  aspect-ratio: 1;
  border-radius: 999px;
  background: rgba(255, 248, 234, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 234, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.github-dot.is-l1 { background: #9be15d; }
.github-dot.is-l2 { background: #64c94c; }
.github-dot.is-l3 { background: #37a342; }
.github-dot.is-l4 { background: #d7ff65; }

.tile-github:hover .github-dots {
  transform: translateY(-8px) translateZ(50px) rotate(0.4deg);
}

.work-page {
  background:
    radial-gradient(circle at 12% 10%, rgba(139, 99, 232, 0.42), transparent 22rem),
    radial-gradient(circle at 84% 78%, rgba(106, 45, 188, 0.28), transparent 27rem),
    radial-gradient(circle at 50% 18%, rgba(255, 198, 46, 0.18), transparent 19rem),
    linear-gradient(135deg, #eadcf7 0%, #f8edf8 44%, #ded4f1 100%);
}

.work-shell {
  padding-top: 70px;
}

.work-header {
  margin-bottom: 34px;
}

.work-hero h1 {
  color: #3b185f;
  text-shadow: 0 6px 0 rgba(114, 84, 216, 0.16);
}

.work-mode-spacer {
  height: 42px;
  margin: 0 0 30px;
}

.work-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 190px 190px 150px 132px;
  gap: var(--gap);
  padding: 12px;
  border: 2px solid #3b185f;
  border-radius: calc(var(--radius) + 8px);
  background: #3b185f;
  box-shadow:
    0 12px 0 rgba(43, 20, 80, 0.24),
    0 32px 62px rgba(54, 31, 83, 0.2);
  perspective: 1100px;
}

.work-tile {
  --tile-bg: var(--cream);
  border-color: rgba(59, 24, 95, 0.82);
  color: var(--ink);
  overflow: hidden;
  box-shadow:
    0 8px 0 rgba(43, 20, 80, 0.18),
    0 18px 24px rgba(54, 31, 83, 0.1);
}

.work-tile:hover {
  box-shadow:
    0 14px 0 rgba(43, 20, 80, 0.2),
    0 28px 32px rgba(54, 31, 83, 0.14);
}

.work-tile:active {
  box-shadow:
    0 5px 0 rgba(43, 20, 80, 0.24),
    0 12px 18px rgba(54, 31, 83, 0.12);
}

.work-tile .tile-title {
  max-width: calc(100% - 84px);
  font-size: var(--tile-title-side);
}

.work-logo {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  width: 72px;
  height: 72px;
  padding: 14px;
  border: 2px solid rgba(59, 24, 95, 0.82);
  border-radius: 16px;
  background: rgba(255, 248, 234, 0.86);
  box-shadow: 0 8px 0 rgba(43, 20, 80, 0.14);
  object-fit: contain;
  transform: translateZ(34px) rotate(var(--icon-tilt, -3deg));
  transition: transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 220ms ease;
}

.work-logo-phrase {
  padding: 12px 19px;
}

.work-tile:hover .work-logo {
  transform: translateY(-5px) translateZ(44px) rotate(var(--icon-tilt, -3deg));
  box-shadow: 0 12px 0 rgba(43, 20, 80, 0.14);
}

.tile-work-calendar {
  --tile-bg: #7254d8;
  --tilt: -0.8deg;
  --icon-tilt: 4deg;
  grid-column: 1 / span 6;
  grid-row: 1 / span 2;
  color: var(--cream);
}

.tile-work-mail {
  --tile-bg: #e6b7f4;
  --tilt: 0.7deg;
  --icon-tilt: -4deg;
  grid-column: 7 / span 6;
  grid-row: 1 / span 2;
  color: #351151;
}

.tile-work-syntax {
  --tile-bg: #c6a4ff;
  --tilt: -0.5deg;
  --icon-tilt: 6deg;
  grid-column: 1 / span 6;
  grid-row: 3 / span 2;
  color: #26123f;
}

.tile-work-syntax .tile-title,
.tile-work-calendar .tile-title,
.tile-work-mail .tile-title {
  font-size: var(--tile-title-feature);
}

.tile-work-okta .tile-title,
.tile-work-personio .tile-title,
.tile-work-jira .tile-title,
.tile-work-claude .tile-title,
.tile-work-phrase .tile-title {
  display: none;
}

.tile-work-okta {
  --tile-bg: #f6f0ff;
  --tilt: 0.5deg;
  --icon-tilt: -7deg;
  grid-column: 7 / span 2;
  grid-row: 3;
  color: #351151;
}

.tile-work-personio {
  --tile-bg: #b7d6ff;
  --tilt: -0.7deg;
  --icon-tilt: 5deg;
  grid-column: 9 / span 2;
  grid-row: 3;
  color: #26123f;
}

.tile-work-jira {
  --tile-bg: #5c2ebd;
  --tilt: 0.8deg;
  --icon-tilt: -5deg;
  grid-column: 11 / span 2;
  grid-row: 3;
  color: var(--cream);
}

.tile-work-claude {
  --tile-bg: #d8c4ff;
  --tilt: -0.4deg;
  --icon-tilt: 5deg;
  grid-column: 7 / span 3;
  grid-row: 4;
  color: #26123f;
}

.tile-work-phrase {
  --tile-bg: #44206f;
  --tilt: 0.6deg;
  --icon-tilt: -3deg;
  grid-column: 10 / span 3;
  grid-row: 4;
  color: var(--cream);
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  margin-top: 34px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 16px;
}

.site-footer a {
  color: var(--ink);
  text-decoration: none;
}

.error-shell {
  display: flex;
  flex-direction: column;
}

.error-page {
  background:
    radial-gradient(circle at 12% 12%, rgba(47, 150, 234, 0.38), transparent 24rem),
    radial-gradient(circle at 82% 86%, rgba(139, 99, 232, 0.26), transparent 26rem),
    linear-gradient(135deg, #dcecf3 0%, #f6f0ff 44%, #d9d3ec 100%);
}

.error-header {
  margin-bottom: 34px;
}

.error-hero h1 {
  color: transparent;
  text-shadow: none;
}

.error-main {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr;
  grid-template-rows: 546px;
  padding: 12px;
  border: 2px solid #17465f;
  border-radius: calc(var(--radius) + 8px);
  background: #17465f;
  box-shadow:
    0 12px 0 rgba(23, 70, 95, 0.22),
    0 32px 62px rgba(54, 31, 83, 0.18);
  perspective: 1100px;
}

.error-link-row {
  margin-bottom: 30px;
}

.error-switch {
  grid-template-columns: 1fr;
  background: #17465f;
  box-shadow:
    0 7px 0 rgba(23, 70, 95, 0.22),
    0 18px 26px rgba(54, 31, 83, 0.14);
}

.error-switch .mode-button.is-active {
  display: grid;
  place-items: center;
  color: #17465f;
}

.error-switch .mode-thumb {
  width: calc(100% - 10px);
  box-shadow:
    inset 0 -4px 0 rgba(23, 70, 95, 0.1),
    0 4px 0 rgba(23, 70, 95, 0.18);
}

.error-panel {
  width: 100%;
  padding: clamp(28px, 7vw, 58px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(23, 70, 95, 0.9);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at var(--mx, 24%) var(--my, 12%), rgba(255, 255, 255, 0.28), transparent 13rem),
    linear-gradient(145deg, #7bc4ee, #d8c4ff);
  box-shadow:
    0 8px 0 rgba(23, 70, 95, 0.18),
    0 18px 24px rgba(54, 31, 83, 0.1);
  color: #17465f;
  text-align: center;
  transform: rotate(-0.7deg);
  animation: tile-in 620ms 120ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.error-code {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: clamp(112px, 18vw, 220px);
  font-weight: 700;
  line-height: 0.78;
  letter-spacing: 0;
  text-shadow: 0 8px 0 rgba(23, 70, 95, 0.08);
}

.error-panel h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(46px, 7vw, 78px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: lowercase;
  text-shadow: 0 6px 0 rgba(23, 70, 95, 0.08);
}

@media (max-width: 760px) {
  :root {
    --pad: 14px;
    --radius: 16px;
    --tile-title-feature: 42px;
    --tile-title-side: 28px;
    --tile-title-small: 24px;
    --tile-icon-size: 68px;
  }

  .page-shell {
    padding-top: 58px;
  }

  .error-shell {
    padding-bottom: 26px;
  }

  .site-header {
    align-items: center;
    margin-bottom: 28px;
  }

  .mode-switch {
    width: 194px;
  }

  .mode-row {
    margin-bottom: 26px;
  }

  .hero {
    text-align: center;
  }

  .hero h1 {
    min-height: 112px;
    font-size: clamp(56px, 13.5vw, 88px);
  }

  .error-panel {
    padding: 30px 20px 34px;
  }

  .error-panel h2 {
    font-size: clamp(42px, 12vw, 62px);
  }

  .error-code {
    font-size: clamp(104px, 33vw, 160px);
  }

  .error-link-row {
    margin-bottom: 26px;
  }

  .error-main {
    grid-template-rows: minmax(270px, auto);
  }

  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: minmax(132px, auto);
  }

  .work-shell {
    padding-top: 58px;
  }

  .work-mode-spacer {
    margin-bottom: 26px;
  }

  .work-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: minmax(136px, auto);
  }

  .tile {
    min-height: 148px;
    padding: 16px;
  }

  .tile-title {
    display: none;
  }

  .work-tile {
    grid-column: span 1;
    grid-row: auto;
  }

  .tile-work-calendar,
  .tile-work-mail {
    grid-column: span 2;
    min-height: 220px;
  }

  .tile-work-syntax {
    grid-column: span 2;
    min-height: 188px;
  }

  .work-logo {
    right: 16px;
    bottom: 16px;
    width: 66px;
    height: 66px;
    padding: 13px;
  }

  .work-logo-phrase {
    padding: 11px 18px;
  }

  .tile-letterboxd,
  .tile-youtube,
  .tile-reddit {
    grid-column: span 2;
    grid-row: auto;
    min-height: 270px;
  }

  .tile-bsky,
  .tile-twitch,
  .tile-pinterest,
  .tile-reddit,
  .tile-music,
  .tile-books,
  .tile-chatgpt,
  .tile-umami,
  .tile-curseforge,
  .tile-epidemic {
    grid-column: span 1;
    grid-row: auto;
  }

  .tile-reddit {
    grid-column: span 1;
    min-height: 126px;
  }

  .tile-books {
    grid-column: span 2;
  }

  .tile-music {
    grid-column: span 2;
  }

  .tile-create-youtube {
    grid-column: span 2;
    grid-row: auto;
    min-height: 260px;
    order: 1;
  }

  .tile-chatgpt {
    order: 2;
  }

  .tile-umami {
    order: 3;
  }

  .tile-curseforge {
    order: 4;
  }

  .tile-github {
    grid-column: span 1;
    grid-row: auto;
    min-height: 148px;
    order: 5;
  }

  .tile-epidemic {
    grid-column: span 2;
    order: 6;
  }

  .create-count {
    font-size: 74px;
  }

  .github-dots {
    right: 14px;
    top: 36px;
    width: min(54%, 150px);
    max-height: 46px;
    gap: 3px;
  }

  .tile-github .tile-title {
    max-width: calc(100% - 64px);
    transform: translateZ(44px);
  }

  .tile-github .tile-icon {
    left: auto;
    right: 18px;
    bottom: 16px;
    width: 72px;
    height: 72px;
  }

  .poster-stack {
    width: 320px;
    height: 160px;
  }

  .poster {
    width: 100px;
    height: 148px;
  }

  .poster-a {
    left: -4px;
  }

  .poster-b {
    left: 64px;
  }

  .poster-c {
    left: 128px;
  }

  .poster-d {
    left: 192px;
  }

  .tile-youtube .tile-icon {
    width: 92px;
    height: 92px;
  }

  .tile-youtube .tile-title {
    max-width: calc(100% - 108px);
  }

  .youtube-thumb {
    top: 46%;
    left: 50%;
    width: min(64%, 230px);
  }

  .album-cover {
    top: -10px;
    width: 92px;
    height: 92px;
  }

  .book-cover {
    top: -18px;
    right: 18px;
    width: 74px;
    height: 116px;
  }

  .tile-books .tile-title {
    max-width: calc(100% - 86px);
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .email-link {
    justify-content: center;
  }
}

@keyframes bubble-pop {
  0% { transform: translateZ(34px) scale(1) rotate(var(--icon-tilt, -3deg)); }
  45% { transform: translateZ(44px) scale(1.18) rotate(-5deg); }
  72% { transform: translateZ(30px) scale(0.94) rotate(3deg); }
  100% { transform: translateZ(34px) scale(1) rotate(var(--icon-tilt, -3deg)); }
}

@keyframes poster-wiggle {
  0% { translate: 0 0; }
  40% { translate: 0 -10px; }
  68% { translate: 0 3px; }
  100% { translate: 0 0; }
}

@keyframes load-rise {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes tray-in {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes tile-in {
  0% {
    opacity: 0;
    transform: translateY(28px) rotate(-1deg) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
