/* Playground OS: neutral graphite surfaces, amber actions and ice-blue details.
   Radii: 16px windows/cards, 10px controls, 999px compact tabs. */
@font-face {
  font-family: Manrope;
  src: url("/assets/fonts/manrope-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Manrope;
  src: url("/assets/fonts/manrope-latin-ext-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Manrope;
  src: url("/assets/fonts/manrope-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Manrope;
  src: url("/assets/fonts/manrope-latin-ext-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  --bg: #181b20;
  --deep: #111419;
  --panel: #242830;
  --text: #f4f2eb;
  --muted: #b5b8bf;
  --action: #e5bc78;
  --lime: #bed280;
  --cherry: #80596b;
  --blue: #8babcd;
  --copper: #d2a382;
  --play-accent: #436889;
  --line: #3d434c;
  --sans: Manrope, ui-sans-serif, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
body {
  margin: 0;
  padding: 24px;
  background: var(--deep);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  min-width: 320px;
}
button,
input,
a {
  -webkit-tap-highlight-color: transparent;
}
button,
input {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
button:disabled {
  cursor: default;
}
img,
video,
canvas {
  display: block;
  max-width: 100%;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 5px;
}
::selection {
  background: var(--cherry);
  color: var(--text);
}
[hidden] {
  display: none !important;
}
.icon,
[data-icon] {
  display: inline-flex;
  width: 22px;
  height: 22px;
  flex: none;
  vertical-align: middle;
}
.icon {
  fill: currentColor;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 24px;
  z-index: 30;
  transform: translateY(-160%);
  background: var(--action);
  color: var(--deep);
  padding: 12px 18px;
  border-radius: 8px;
}
.skip-link:focus {
  transform: translateY(0);
}
.site-frame {
  max-width: 1440px;
  margin: auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: clip;
}
.site-header {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: #181b20f5;
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.035em;
  margin-right: auto;
}
.window-lights {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  flex: none;
}
.window-lights i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c47e75;
}
.window-lights i:nth-child(2) {
  background: var(--copper);
}
.window-lights i:nth-child(3) {
  background: var(--lime);
}
.window-lights.small {
  gap: 5px;
}
.window-lights.small i {
  width: 7px;
  height: 7px;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 13px;
}
.site-header nav a {
  position: relative;
  padding: 20px 0;
}
.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  height: 2px;
  background: var(--action);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.site-header nav a:hover::after,
.site-header nav a:focus-visible::after {
  transform: scaleX(1);
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 38px;
  height: 38px;
  border: 1px solid transparent;
  background: none;
  border-radius: 10px;
  transition:
    background 0.2s,
    transform 0.2s,
    border-color 0.2s;
}
.icon-button:hover {
  background: var(--play-accent);
  border-color: #b3737d;
}
.icon-button:active {
  transform: scale(0.92);
}
/* A fixed, art-directed wallpaper is selected by viewport in the picture element. */
.hero {
  position: relative;
  min-height: 740px;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  transform: none;
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      #1c1e22eb 0%,
      #1e2024cb 30%,
      #1e202430 58%,
      transparent 80%
    ),
    linear-gradient(0deg, #181b20 0%, #181b2000 30%);
}
.hero-wallpaper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}
.hero-copy {
  position: relative;
  padding: 110px 52px 205px;
  max-width: 790px;
}
.hero-intro {
  font-size: 12px;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 27px;
  color: var(--muted);
}
.status-dot {
  height: 7px;
  width: 7px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 0 5px #e5bc7812;
}
h1 {
  font-size: clamp(76px, 8.15vw, 122px);
  line-height: 1.12;
  letter-spacing: -0.072em;
  font-weight: 700;
  margin: 0 0 24px;
  white-space: nowrap;
}
.title-period {
  color: var(--action);
}
.hero-role {
  font-size: clamp(20px, 2vw, 29px);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 0 0 19px;
}
.hero-description {
  max-width: 400px;
  color: #d1d3c7;
  font-size: 15px;
  line-height: 1.8;
  margin: 0 0 31px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 15px 22px;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  position: relative;
  transition:
    color 0.25s,
    background 0.25s,
    border-radius 0.45s var(--ease),
    border-color 0.25s,
    box-shadow 0.3s;
}
.button-primary {
  background: var(--action);
  border-color: var(--action);
  color: #1b1c20;
}
.button-outline {
  background: #181b20ba;
}
.button:hover {
  background: var(--play-accent);
  border-color: var(--play-accent);
  color: var(--text);
  border-radius: 20px 10px 20px 10px;
}
.button .icon {
  width: 19px;
  height: 19px;
  transition: transform 0.4s var(--ease);
}
.button:hover .icon {
  transform: translate(2px, -2px) rotate(8deg);
}
.button:active {
  scale: 0.97;
}
.floating-window {
  position: absolute;
  right: 40px;
  top: 48px;
  width: 252px;
  box-shadow: 0 12px 35px #10111370;
  border: 1px solid #7b82756b;
  border-radius: 12px;
  overflow: hidden;
  background: #24272ce8;
  backdrop-filter: blur(14px);
  transition: box-shadow 0.3s;
}
.floating-window.is-dragging {
  box-shadow: 0 20px 55px #101113a0;
  transition: none;
}
.drag-handle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 13px;
  background: #30333970;
  border: 0;
  border-bottom: 1px solid #757b6250;
  font: 10px var(--mono);
  cursor: grab;
  touch-action: none;
}
.is-dragging .drag-handle {
  cursor: grabbing;
}
.floating-content {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  width: 100%;
  border: 0;
  background: none;
  padding: 14px;
}
.floating-content img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}
.floating-content strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
}
.floating-content small {
  font-size: 10px;
  color: var(--muted);
}
.floating-content > .icon,
.floating-content > [data-icon] {
  width: 16px;
  height: 16px;
  margin-left: auto;
}
.floating-content:hover {
  background: #80596b2c;
}
.dock {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px;
  display: flex;
  gap: 5px;
  border: 1px solid #838a7a60;
  background: #23262be8;
  border-radius: 16px;
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px #13141780;
}
.dock-item {
  border: 1px solid transparent;
  background: none;
  border-radius: 10px;
  width: 76px;
  height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 10px;
  transform-origin: bottom;
  transition:
    transform 0.4s var(--ease),
    background 0.25s,
    color 0.25s,
    border-color 0.25s;
}
.dock-item .icon,
.dock-item > [data-icon] {
  width: 24px;
  height: 24px;
}
.dock-item:hover,
.dock-item:focus-visible {
  transform: translateY(-7px) scale(1.08);
  border-color: #aeaf9560;
  background: var(--play-accent);
  color: var(--text);
}
.dock-item:active {
  transform: translateY(-3px) scale(0.98);
}
.hero-bottom-note {
  position: absolute;
  bottom: 36px;
  left: 52px;
  font-size: 11px;
  color: var(--muted);
}
/* Six categories. Different dimensions create a clear bento rhythm. */
.section {
  padding: 88px 52px;
  border-bottom: 1px solid var(--line);
}
.section-heading {
  margin-bottom: 34px;
}
.section-heading h2 {
  font-size: clamp(46px, 5.6vw, 78px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1.12;
  margin: 0 0 13px;
}
.section-heading p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}
.accent-dot {
  color: var(--action);
}
.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 230px 230px 190px;
  gap: 14px;
}
.bento-tile {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #73796975;
  background: var(--deep);
  text-align: left;
  isolation: isolate;
  transition:
    border-color 0.35s,
    box-shadow 0.35s,
    transform 0.5s var(--ease);
}
.bento-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, #131417e8, transparent 67%),
    linear-gradient(180deg, #1213154d, transparent 30%);
  pointer-events: none;
}
.bento-tile video,
.tile-media {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  z-index: -2;
  transition:
    transform 1.1s var(--ease),
    filter 0.5s;
}
.tile-apps {
  grid-column: 1/5;
  grid-row: 1/3;
  background: #32353b;
}
.tile-web {
  grid-column: 5/10;
  grid-row: 1;
}
.tile-automation {
  grid-column: 10/13;
  grid-row: 1;
}
.tile-games {
  grid-column: 5/9;
  grid-row: 2;
}
.tile-education {
  grid-column: 9/13;
  grid-row: 2;
}
.tile-film {
  grid-column: 1/13;
  grid-row: 3;
}
.tile-number {
  position: absolute;
  left: 22px;
  top: 16px;
  color: #f4f2ebc0;
  font: 11px var(--mono);
  z-index: 1;
}
.tile-copy {
  position: absolute;
  left: 22px;
  right: 63px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tile-copy strong {
  font-size: 25px;
  letter-spacing: -0.04em;
  font-weight: 700;
  line-height: 1.2;
}
.tile-copy > span {
  font-size: 11px;
  color: #dedfd2;
}
.tile-open {
  position: absolute;
  right: 18px;
  bottom: 23px;
  width: 36px;
  height: 36px;
  border: 1px solid #e5bc7880;
  display: grid;
  place-items: center;
  background: #2d30369e;
  border-radius: 10px;
  color: var(--action);
  transition:
    background 0.3s,
    border-radius 0.45s var(--ease),
    transform 0.45s var(--ease),
    color 0.3s;
}
.tile-open .icon {
  width: 19px;
  height: 19px;
}
.tile-film video {
  object-position: center 43%;
  opacity: 0.7;
}
.tile-film::after {
  background: linear-gradient(90deg, #212327 0%, #212327a0 40%, #14151822 80%);
}
.tile-film .tile-copy {
  bottom: 45px;
}
.tile-film .tile-copy strong {
  font-size: 36px;
}
.tile-film .tile-number {
  top: 22px;
}
.film-note {
  position: absolute;
  right: 90px;
  bottom: 32px;
  font-size: 12px;
  color: #efeddf;
}
.no-script {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  padding-top: 25px;
}
.no-script a {
  text-decoration: underline;
}
.reveal {
  transition:
    opacity 0.8s var(--ease),
    translate 0.8s var(--ease);
}
.ready .reveal:not(.in-view) {
  opacity: 0;
  translate: 0 24px;
}
/* A terminal and a real live canvas, rather than a decorative screenshot. */
.terminal-section {
  background: #1e1f23;
}
.terminal-window {
  border: 1px solid #8f626864;
  border-radius: 16px;
  overflow: hidden;
  background: #202121;
  box-shadow: 0 18px 50px #12131535;
}
.terminal-bar,
.category-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #80596b3b;
  padding: 8px 18px;
  border-bottom: 1px solid #80596b66;
  font: 11px var(--mono);
}
.terminal-bar > .icon-button,
.category-bar > .icon-button {
  margin-left: auto;
  width: 30px;
  height: 30px;
}
.terminal-path {
  color: #d8b8b9;
}
.terminal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.terminal-console {
  min-width: 0;
  padding: 26px;
  border-right: 1px solid #474c5575;
}
.terminal-log {
  height: 275px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #595f6b #212327;
  padding-right: 10px;
  font: 11px/1.8 var(--mono);
  overscroll-behavior: contain;
}
.terminal-entry {
  padding: 0 0 15px;
}
.terminal-entry p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.terminal-entry .terminal-intro {
  white-space: normal;
}
.terminal-entry .terminal-command {
  color: var(--action);
  margin-bottom: 5px;
}
.terminal-welcome {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 14px !important;
}
.terminal-highlight {
  color: var(--action);
}
#terminal-form {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #70776588;
  border-radius: 9px;
  padding: 5px 7px 5px 12px;
  background: #282b30;
  margin-top: 15px;
}
#terminal-form:focus-within {
  border-color: var(--action);
  box-shadow: 0 0 0 3px #e5bc7812;
}
#terminal-form label {
  color: var(--action);
}
#terminal-input {
  width: 100%;
  min-width: 0;
  border: none;
  outline: none;
  background: none;
  color: var(--text);
  font: 12px var(--mono);
  height: 34px;
}
#terminal-input:focus-visible {
  outline: none;
}
#terminal-input::placeholder {
  color: #b1b8a5;
}
#terminal-form .icon-button {
  width: 32px;
  height: 32px;
}
#terminal-hint {
  font: 9px var(--mono);
  color: var(--muted);
  margin: 9px 0 16px;
}
.command-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.command-chips button,
.artboard-controls button,
.category-tabs button {
  background: #2b2e34;
  border: 1px solid #545964;
  color: var(--text);
  font: 10px var(--mono);
  border-radius: 7px;
  padding: 8px 10px;
  transition:
    background 0.2s,
    border-radius 0.4s var(--ease),
    border-color 0.2s;
}
.command-chips button:hover,
.artboard-controls button:hover,
.category-tabs button:hover {
  background: var(--play-accent);
  border-color: var(--play-accent);
  border-radius: 13px 7px 13px 7px;
}
.artboard {
  position: relative;
  background: #212327;
  overflow: hidden;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.artboard::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(#e5bc7806 1px, transparent 1px),
    linear-gradient(90deg, #e5bc7806 1px, transparent 1px);
  background-size: 25px 25px;
}
.artboard-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 22px 0;
  position: relative;
  font-size: 11px;
  color: #d7dccc;
}
.artboard-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--action);
}
#play-canvas {
  width: 100%;
  height: 295px;
  position: relative;
  touch-action: pan-y;
  cursor: crosshair;
}
.artboard-controls {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.artboard-controls button {
  display: flex;
  align-items: center;
  gap: 5px;
}
.artboard-controls .icon {
  width: 14px;
  height: 14px;
}
#artboard-hint {
  margin: 12px 0 18px;
  font: 9px var(--mono);
  color: var(--muted);
  text-align: center;
  position: relative;
}
.terminal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 7px;
}
.terminal-links a {
  border: 1px solid #545964;
  padding: 4px 7px;
  border-radius: 5px;
  color: var(--action);
}
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 32px;
  font-size: 10px;
  color: var(--muted);
}
.footer-brand {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text);
}
.site-footer > div {
  display: flex;
  gap: 22px;
}
.site-footer > div a {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-footer .icon {
  width: 12px;
  height: 12px;
}
.site-footer a:hover {
  color: var(--action);
}
/* Native modal supplies focus containment and Escape. */
#category-window {
  color: var(--text);
  background: var(--bg);
  border: 1px solid #89917d70;
  border-radius: 16px;
  padding: 0;
  width: min(960px, calc(100% - 48px));
  max-height: calc(100dvh - 70px);
  box-shadow: 0 35px 120px #101113b0;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #707765 var(--bg);
}
#category-window::backdrop {
  background: #111214ce;
  backdrop-filter: blur(8px);
}
.category-window-inner {
  display: flex;
  flex-direction: column;
  min-height: 350px;
}
.category-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #3c3032;
}
.category-content {
  padding: 30px;
}
.category-heading h2 {
  font-size: 42px;
  line-height: 1.2;
  letter-spacing: -0.04em;
  margin: 0 0 7px;
}
.category-heading p {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 22px;
}
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 25px;
}
.category-tabs button[aria-pressed="true"] {
  background: var(--play-accent);
  border-color: #b97985;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #27292f;
  border: 1px solid #585e6a65;
  border-radius: 12px;
  transition:
    transform 0.4s var(--ease),
    border-color 0.3s;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--action);
}
.project-image {
  height: 195px;
  object-fit: cover;
  width: 100%;
  background: #1b1d20;
}
.project-card[data-project="menubench"] .project-image {
  object-position: top;
}
.project-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
}
.project-kind {
  color: var(--action);
  font: 9px var(--mono);
  margin: 0 0 12px;
}
.project-card h3 {
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.04em;
  margin: 0 0 13px;
}
.project-description {
  font-size: 12px;
  color: #c4c9ba;
  margin: 0 0 20px;
}
.project-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  margin-top: auto;
  color: var(--action);
}
.project-action .icon {
  width: 18px;
  height: 18px;
}
.project-award {
  font-size: 10px;
  border: 1px solid #d2a38255;
  color: #e4baa0;
  background: #d2a38211;
  padding: 10px;
  border-radius: 7px;
  margin: 0 0 20px;
}
.category-footer {
  display: flex;
  justify-content: space-between;
  padding: 14px 25px;
  border-top: 1px solid var(--line);
  font: 9px var(--mono);
  color: var(--muted);
}
.category-empty {
  grid-column: 1/-1;
  padding: 40px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.category-empty > .icon {
  width: 46px;
  height: 46px;
  color: var(--copper);
  margin-bottom: 20px;
}
.category-empty h3 {
  font-size: 22px;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}
.category-empty p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 25px;
  max-width: 380px;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  translate: -50% 20px;
  opacity: 0;
  z-index: 25;
  background: #3b3032;
  border: 1px solid #b6788266;
  color: var(--text);
  font-size: 12px;
  padding: 13px 20px;
  border-radius: 10px;
  pointer-events: none;
  transition:
    opacity 0.3s,
    translate 0.5s var(--ease);
  max-width: calc(100% - 40px);
  text-align: center;
}
.toast.visible {
  opacity: 1;
  translate: -50% 0;
}
#celebration {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 24;
  overflow: hidden;
}
.confetti-piece {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 13px;
  border-radius: 2px;
}
.flying-plane {
  position: absolute;
  width: 56px;
  height: 56px;
  left: -70px;
  top: 55%;
  color: var(--text);
}
.flying-plane .icon {
  width: 100%;
  height: 100%;
}
/* Policy uses the same palette with its own text-only layout. */
.policy-shell {
  max-width: 850px;
  margin: 60px auto;
  padding: 0 25px;
}
.policy-shell h1 {
  font-size: 46px;
  white-space: normal;
  letter-spacing: -0.04em;
}
.policy-shell h2 {
  font-size: 23px;
  margin-top: 30px;
}
.policy-shell p,
.policy-shell li {
  color: var(--muted);
  font-size: 14px;
}
.policy-tabs {
  display: flex;
  gap: 10px;
  margin: 25px 0;
}
.policy-tabs button {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.policy-tabs button[aria-pressed="true"] {
  background: var(--cherry);
}
.policy-shell a {
  text-decoration: underline;
}
/* Explicit tablet / mobile compositions, including all six category tiles. */
@media (max-width: 1100px) {
  body {
    padding: 16px;
  }
  .site-header {
    padding: 0 24px;
  }
  .hero-copy {
    padding: 100px 36px 205px;
    max-width: 660px;
  }
  h1 {
    font-size: 88px;
  }
  .hero-role {
    font-size: 24px;
  }
  .hero-description {
    max-width: 360px;
    font-size: 13px;
  }
  .floating-window {
    width: 225px;
    right: 24px;
  }
  .section {
    padding: 70px 36px;
  }
  .tile-copy {
    left: 18px;
  }
  .tile-copy strong {
    font-size: 23px;
  }
  .tile-automation .tile-copy strong {
    font-size: 20px;
  }
  .bento {
    grid-template-rows: 210px 210px 170px;
  }
  .hero-bottom-note {
    left: 36px;
  }
}
@media (max-width: 767px) {
  html {
    scroll-padding-top: 76px;
  }
  body {
    padding: 10px;
  }
  .site-frame {
    border-radius: 12px;
  }
  .site-header {
    height: 58px;
    padding: 0 16px;
    gap: 14px;
  }
  .brand {
    font-size: 12px;
    gap: 10px;
  }
  .brand .window-lights {
    display: none;
  }
  .site-header nav {
    gap: 15px;
    font-size: 10px;
  }
  .site-header .icon-button {
    width: 28px;
    height: 30px;
  }
  .site-header .icon {
    width: 17px;
    height: 17px;
  }
  .hero {
    min-height: 790px;
  }
  .hero-copy {
    padding: 64px 24px 400px;
    max-width: none;
  }
  .hero-intro {
    font-size: 10px;
    margin-bottom: 18px;
  }
  h1 {
    font-size: clamp(53px, 10.8vw, 78px);
    letter-spacing: -0.075em;
    margin-bottom: 20px;
  }
  .hero-role {
    font-size: 22px;
    line-height: 1.4;
    margin-bottom: 15px;
  }
  .hero-description {
    font-size: 12px;
    max-width: 350px;
    margin-bottom: 24px;
  }
  .hero-actions {
    gap: 8px;
  }
  .button {
    padding: 12px 15px;
    min-height: 47px;
    font-size: 11px;
    gap: 13px;
  }
  .hero-art {
    top: 230px;
    bottom: 0;
    height: auto;
    transform: none;
  }
  .hero-art::after {
    background: linear-gradient(
      180deg,
      #181b20 0%,
      #181b2090 23%,
      transparent 50%,
      #181b20 100%
    );
  }
  .hero-wallpaper {
    object-position: 72% center;
  }
  .floating-window {
    display: none;
  }
  .dock {
    bottom: 35px;
    padding: 6px;
    gap: 2px;
  }
  .dock-item {
    width: 65px;
    height: 55px;
  }
  .hero-bottom-note {
    bottom: 9px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 9px;
  }
  .section {
    padding: 52px 20px;
  }
  .section-heading {
    margin-bottom: 26px;
  }
  .section-heading h2 {
    font-size: 48px;
  }
  .section-heading p {
    font-size: 12px;
  }
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 260px 190px 230px;
    gap: 10px;
  }
  .tile-apps {
    grid-column: 1;
    grid-row: 1;
  }
  .tile-web {
    grid-column: 2;
    grid-row: 1;
  }
  .tile-automation {
    grid-column: 1;
    grid-row: 2;
  }
  .tile-games {
    grid-column: 2;
    grid-row: 2;
  }
  .tile-education {
    grid-column: 1;
    grid-row: 3;
  }
  .tile-film {
    grid-column: 2;
    grid-row: 3;
  }
  .tile-number {
    left: 14px;
    top: 12px;
    font-size: 9px;
  }
  .tile-copy {
    left: 14px;
    right: 12px;
    bottom: 52px;
  }
  .tile-copy strong,
  .tile-automation .tile-copy strong,
  .tile-film .tile-copy strong {
    font-size: 20px;
    line-height: 1.15;
  }
  .tile-copy > span {
    font-size: 9px;
    max-width: 130px;
  }
  .tile-open {
    bottom: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
  }
  .tile-open .icon {
    width: 16px;
    height: 16px;
  }
  .tile-film .tile-copy {
    bottom: 52px;
  }
  .film-note {
    display: none;
  }
  .tile-film::after {
    background: linear-gradient(0deg, #181a1ded, transparent);
  }
  .terminal-body {
    grid-template-columns: 1fr;
  }
  .terminal-console {
    padding: 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .terminal-log {
    height: 195px;
    font-size: 10px;
  }
  .terminal-bar {
    font-size: 9px;
    padding: 8px 12px;
    gap: 10px;
  }
  .terminal-path {
    display: none;
  }
  .terminal-welcome {
    font-size: 14px;
  }
  .command-chips button {
    font-size: 10px;
  }
  .command-chips button,
  .artboard-controls button,
  .category-tabs button {
    min-height: 44px;
  }
  #terminal-input {
    font-size: 16px;
  }
  #play-canvas {
    height: 280px;
  }
  .artboard-label {
    font-size: 10px;
  }
  .experience-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 30px;
  }
  .experience-company h3 {
    font-size: 31px;
  }
  .company-mark {
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
  }
  .experience-detail h3 {
    font-size: 21px;
  }
  .timeline-item strong {
    font-size: 12px;
  }
  .contact-section {
    min-height: 420px;
  }
  .contact-section h2 {
    font-size: 37px;
  }
  .contact-intro {
    font-size: 11px;
  }
  .site-footer {
    padding: 23px 20px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 17px;
  }
  .site-footer > div {
    grid-column: 1/-1;
    gap: 20px;
  }
  .site-footer > span {
    font-size: 9px;
  }
  #category-window {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 25px);
    border-radius: 12px;
  }
  .category-content {
    padding: 20px;
  }
  .category-heading h2 {
    font-size: 32px;
  }
  .category-heading p {
    font-size: 11px;
  }
  .category-tabs {
    gap: 5px;
  }
  .category-tabs button {
    font-size: 9px;
    padding: 8px;
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
  .project-image {
    height: 205px;
  }
  .category-footer {
    font-size: 8px;
    padding: 12px 16px;
  }
  .policy-shell h1 {
    font-size: 34px;
  }
  .policy-shell {
    margin: 40px auto;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .floating-window,
  .dock {
    backdrop-filter: none;
    background: var(--bg);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .ready .reveal:not(.in-view) {
    opacity: 1;
    translate: none;
  }
  .hero-art {
    transform: none;
  }
}
html[data-motion="off"] {
  scroll-behavior: auto;
}
html[data-motion="off"] .reveal,
html[data-motion="off"].ready .reveal:not(.in-view) {
  opacity: 1;
  translate: none;
}
html[data-motion="off"] .hero-art {
  transform: none;
}
html[data-motion="off"] *,
html[data-motion="off"] *::before,
html[data-motion="off"] *::after {
  transition-duration: 0.01ms !important;
}
