@font-face {
  font-family: "Annie Use Your Telescope";
  src: url("assets/fonts/AnnieUseYourTelescope-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Mono";
  src: url("assets/fonts/SpaceMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Mono";
  src: url("assets/fonts/SpaceMono-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Layout variables — nav row, scroll anchors, panel positions */
:root {
  --canvas-width: 409;
  --canvas-height: 1236;
  --scale-below: 480; /* viewport px — below this, everything scales down */

  --nav-top: 13.2%;
  --nav-left: 24.5%;
  --nav-row-width: 50.8%;
  --nav-btn-height: 3%;
  --nav-gap: 1.0%;



  /* Scroll anchor positions (% down the background strip) — nav click targets */
  --anchor-home: 0%;
  --anchor-about: 24%;
  --anchor-projects: 44%;
  --anchor-tools: 66%;
  --anchor-pinboard: 89%;
  --anchor-contact: 96%;
  --anchor-contact-canvas: 100;

  /* Clearance when scrolling to anchors (no fixed header) */
  --scroll-margin-header: 0px;

  /* Visual panel positions (independent of scroll anchors above) */
  --projects-panel-top: 37%;
  --tools-panel-top: 58.5%;
  --about-panel-top: 21%;
  --about-panel-width: 68%;
  --about-panel-height: 17%;
  --about-photo-lift: -12%;
  --about-photo-zoom: 1.22;
  --about-photo-inset-x: 4.5cqmin;
  --about-note-drop: -12%;
  --about-note-shift-x: 7%;
  --about-note-font: 3.1cqh;
  --pinboard-top: 78%;
  --pinboard-height: 18%;
  /*
   * Extra scroll room below artwork (unitless % of canvas height).
   * Must be >= contact-panel-top + contact-panel-height - 100.
   */
  --strip-tail: 15;
  /* Contact panel — unitless % of canvas height */
  --contact-panel-top: 98;
  --contact-panel-height: 15;

  /* Set to 1 to show colored nav hit-area overlays while aligning */
  --debug: 0;

  /* CRT monitor — drag corners (% of background image) */
  --crt-tl-x: 21.3%;
  --crt-tl-y: 2.9%;
  --crt-tr-x: 45.8%;
  --crt-tr-y: 2.5%;
  --crt-br-x: 46.0%;
  --crt-br-y: 9.1%;
  --crt-bl-x: 22.8%;
  --crt-bl-y: 9.8%;

  /* Clipboard — top right of desk, next to CRT */
  --clipboard-top: 4.2%;
  --clipboard-left: 64%;
  --clipboard-width: 34%;
  /* Clipboard — top right notepad (% of .clipboard-ui) */
  --clipboard-font: 3.4cqw;
  --clipboard-gap: 0.85em;
  --clipboard-rot: -1.5deg;

  /* Intro CRT — text (% of .crt-screen box) */
  --crt-font: 4.67cqw;
  --clipboard-ink: #3a3a3a;
  --clipboard-ink-hover: #fff;

  --font-hand: "Annie Use Your Telescope", "Segoe Script", "Brush Script MT", "Comic Sans MS", cursive;
  --font-sans: "Space Mono", "Courier New", Courier, monospace;

  /* Contact screen debug overlays — tune buttons above, CRT in .contact-screen-ui */
  --contact-debug: 0;
}


/* 1 Home — no icon */
.nav-btn:nth-child(1) {
  --btn-top: 0; --btn-left: 0; --btn-w: auto; --btn-h: auto;
  --icon-size: 34%; --icon-x: 0%; --icon-y: -11%; --icon-rot: 0deg;
}

/* 2 About — information */
.nav-btn:nth-child(2) {
  --btn-top: 0; --btn-left: 0; --btn-w: auto; --btn-h: auto;
  --icon-size: 34%; --icon-x: -4%; --icon-y: -11%; --icon-rot: 0deg;
}

/* 3 Projects — hammer */
.nav-btn:nth-child(3) {
  --btn-top: 0; --btn-left: 0; --btn-w: auto; --btn-h: auto;
  --icon-size: 34%; --icon-x: -3%; --icon-y: -11%; --icon-rot: 0deg;
}

/* 4 Tools — code */
.nav-btn:nth-child(4) {
  --btn-top: 0; --btn-left: 0; --btn-w: auto; --btn-h: auto;
  --icon-size: 34%; --icon-x: 1%; --icon-y: -11%; --icon-rot: 0deg;
}

/* 5 Pin board — thumbtacks */
.nav-btn:nth-child(5) {
  --btn-top: 0; --btn-left: 0; --btn-w: auto; --btn-h: auto;
  --icon-size: 34%; --icon-x: 4%; --icon-y: -11%; --icon-rot: 0deg;
}

/* 6 Contact — mail */
.nav-btn:nth-child(6) {
  --btn-top: 0; --btn-left: 0; --btn-w: auto; --btn-h: auto;
  --icon-size: 34%; --icon-x: 5%; --icon-y: -11%; --icon-rot: 0deg;
}


/* Contact footer button positions (% of contact overlay) */

/* 1 — left */
.contact-nav-btn:nth-child(1) {
  --btn-left: -20%;
  --btn-bottom: 125%;
  --btn-w: 8%;
  --btn-h: 28%;
}

/* 2 */
.contact-nav-btn:nth-child(2) {
  --btn-left: -10%;
  --btn-bottom: 125%;
  --btn-w: 8.0%;
  --btn-h: 28%;
}

/* 3 */
.contact-nav-btn:nth-child(3) {
  --btn-left: 0%;
  --btn-bottom: 125%;
  --btn-w: 8%;
  --btn-h: 28%;
}

/* 4 — right */
.contact-nav-btn:nth-child(4) {
  --btn-left: -10%;
  --btn-bottom: 93%;
  --btn-w: 8%;
  --btn-h: 28%;
}


/* --- Base --- */

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

html {
  scroll-behavior: auto;
}

html,
body {
  margin: 0;
  overflow-x: hidden;
  background: #080808;
  color: #e8e4df;
  font-family: var(--font-sans);
}


/* --- Contact panel (last segment — same pattern as pin board / tools) --- */

.contact-wrap {
  position: absolute;
  left: 0;
  width: 100%;
  top: calc(var(--contact-panel-top) * 100% / (100 + var(--strip-tail)));
  height: calc(var(--contact-panel-height) * 100% / (100 + var(--strip-tail)));
  pointer-events: none;
  z-index: 16;
}

.contact-ui {
  position: relative;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  overflow: visible;
}

.contact-wrap .contact-screen-ui,
.contact-wrap .contact-nav-btns,
.contact-wrap .contact-nav-btn,
.contact-wrap .contact-crt,
.contact-wrap .contact-crt__form,
.footer-seq-stack .contact-screen-ui,
.footer-seq-stack .contact-nav-btns,
.footer-seq-stack .contact-nav-btn,
.footer-seq-stack .contact-crt,
.footer-seq-stack .contact-crt__form {
  pointer-events: auto;
}

.footer-seq-stack {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #080808;
  isolation: isolate;
  container-type: size;
  z-index: 0;
}

.footer-seq-layer {
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -1px;
  top: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  display: block;
  border: 0;
  outline: none;
  object-fit: cover;
  object-position: bottom center;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  backface-visibility: hidden;
}

.footer-seq-layer.is-front {
  z-index: 1;
}

/* Contact CRT + buttons — % of .footer-seq-stack */
.contact-screen-ui {
  --contact-ui-left: 70%;
  --contact-ui-width: 78%;
  --contact-ui-height: 42%;
  --contact-ui-bottom: 13%;

  /* CRT screen — raise --contact-crt-bottom to move up */
  --contact-crt-left: 38%;
  --contact-crt-bottom: 5%;
  --contact-crt-width: 38%;
  --contact-crt-height: 110;
  --contact-crt-content-scale: 0.42;

  position: absolute;
  left: var(--contact-ui-left);
  bottom: var(--contact-ui-bottom);
  width: var(--contact-ui-width);
  height: var(--contact-ui-height);
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
}

/* --- Legal pages (impressum.html, datenschutz.html) --- */

.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  font: 400 0.95rem/1.65 var(--font-sans);
  color: #ddd8d2;
}

.legal-page h1 {
  margin: 0 0 1.25rem;
  font-size: 1.65rem;
  font-weight: 600;
  color: #fff;
}

.legal-page h2 {
  margin: 1.75rem 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #f0ebe4;
}

.legal-page p,
.legal-page address {
  margin: 0 0 0.85rem;
  font-style: normal;
}

.legal-page a {
  color: #f0c878;
}

.legal-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.88rem;
}

.legal-back:hover {
  color: #fff;
}


/* --- Viewport (clips or scales, never squishes the canvas) --- */

.site-viewport {
  position: relative;
  width: 100vw;
  overflow-x: hidden;
  overflow-y: visible;
  display: block;
  height: auto;
}

.site-strip {
  position: relative;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: calc(100vw * var(--canvas-height) / var(--canvas-width) * (100 + var(--strip-tail)) / 100);
  overflow: visible;
}

.site-canvas {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  height: auto;
  aspect-ratio: calc(var(--canvas-width) / var(--canvas-height));
  overflow: visible;
}

.strip-tail {
  flex-shrink: 0;
  width: 100%;
  height: calc(100vw * var(--canvas-height) / var(--canvas-width) * var(--strip-tail) / 100);
  pointer-events: none;
}

.site-legal-bar {
  width: 100%;
  background: #080808;
  padding: 0.85rem 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  position: relative;
  z-index: 30;
}

.site-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.65rem;
  margin: 0;
  font: 400 0.82rem/1.4 var(--font-sans);
}

.site-legal a {
  color: rgba(240, 200, 120, 0.92);
  text-decoration: none;
}

.site-legal a:hover,
.site-legal a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.site-legal__sep {
  color: rgba(255, 255, 255, 0.28);
}

.site-legal__copy {
  margin: 0;
  font: 400 0.76rem/1.4 var(--font-sans);
  color: rgba(255, 255, 255, 0.55);
}

.seq-bg-stack {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.seq-bg-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 0;
}

.seq-bg-layer.is-front {
  z-index: 1;
}


/* --- CRT panel (shared glow + scanlines) --- */

.crt-panel {
  position: relative;
  overflow: hidden;
  border-radius: 4%;
  background: #080f00;
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.95);
  filter:
    drop-shadow(0 0 1px rgba(255, 190, 90, 0.85))
    drop-shadow(0 0 5px rgba(255, 130, 0, 0.45))
    drop-shadow(0 0 14px rgba(255, 90, 0, 0.22));
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.05em;
  color: #ffc861;
  text-shadow:
    -0.6px 0 rgba(255, 60, 0, 0.35),
    0.6px 0 rgba(255, 220, 120, 0.25),
    0 0 5px #ff9500,
    0 0 12px rgba(255, 120, 0, 0.85),
    0 0 24px rgba(255, 80, 0, 0.4);
  animation: crt-flicker 4.5s steps(1) infinite;
}

.crt-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(ellipse 88% 82% at 50% 50%, transparent 35%, rgba(0, 0, 0, 0.7) 100%),
    radial-gradient(ellipse 75% 65% at 50% 42%, rgba(255, 150, 50, 0.14), transparent 58%),
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 1px,
      rgba(0, 0, 0, 0.5) 1px,
      rgba(0, 0, 0, 0.5) 3px
    );
  opacity: 0.72;
}

.crt-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.06) 0%, transparent 35%),
    radial-gradient(ellipse 120% 100% at 50% 50%, transparent 50%, rgba(0, 0, 0, 0.35) 100%);
  mix-blend-mode: overlay;
}

/* --- CRT monitor (corners in :root, warp in site.js) --- */

.crt-screen {
  position: absolute;
  left: 0;
  top: 0;
  width: 73.35%;
  height: 15.37%;
  z-index: 5;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  container-type: size;
  padding: 0.86em 1.14em;
}

.crt-screen.crt-panel {
  font-size: var(--crt-font);
  line-height: 1.4;
  box-shadow: inset 0 0 1.47em rgba(0, 0, 0, 0.95);
}

.crt-screen p {
  position: relative;
  z-index: 1;
  margin: 0;
}

.crt-sub {
  margin-top: 0.5em;
  font-size: 0.72em;
  opacity: 0.9;
}

@keyframes crt-flicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: 0.88; }
  94% { opacity: 0.96; }
  95% { opacity: 0.9; }
  96% { opacity: 1; }
}


/* --- CRT fallback when JavaScript is off --- */

html.no-js .crt-screen.crt-panel {
  left: var(--crt-tl-x);
  top: var(--crt-tl-y);
  width: calc(var(--crt-tr-x) - var(--crt-tl-x));
  height: calc((var(--crt-bl-y) + var(--crt-br-y)) * 0.5 - var(--crt-tl-y));
  transform: perspective(900px) rotateY(-5.5deg) rotateX(1.2deg);
  transform-origin: top left;
}

html.no-js .contact-screen-ui,
html.no-js .contact-crt,
html.no-js .contact-crt.crt-panel,
html.no-js .contact-crt__form,
html.no-js .contact-crt__input,
html.no-js .contact-crt__submit {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

html.no-js .contact-crt.crt-panel {
  transform: none;
}

html.no-js .footer-seq-stack {
  visibility: visible;
}

html.no-js .contact-wrap .contact-screen-ui {
  pointer-events: auto;
}


/* --- Contact nav + CRT form --- */

.contact-nav-btns {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.contact-nav-btn {
  position: absolute;
  left: var(--btn-left);
  bottom: var(--btn-bottom);
  width: var(--btn-w);
  height: var(--btn-h);
  margin: 0;
  padding: 0;
  border: 0.12em solid rgba(0, 255, 255, calc(var(--contact-debug) * 0.75));
  border-radius: 0.25em;
  cursor: pointer;
  background: rgba(255, 0, 0, calc(var(--contact-debug) * 0.42));
  transition: background 0.15s ease;
  pointer-events: auto;
  display: block;
  text-decoration: none;
  color: transparent;
}

.contact-nav-btn:nth-child(2) {
  background: rgba(0, 255, 0, calc(var(--contact-debug) * 0.38));
}

.contact-nav-btn:nth-child(3) {
  background: rgba(0, 128, 255, calc(var(--contact-debug) * 0.42));
}

.contact-nav-btn:nth-child(4) {
  background: rgba(255, 200, 0, calc(var(--contact-debug) * 0.42));
}

.contact-nav-btn::before {
  content: attr(aria-label);
  display: none;
  font: 600 9px/1 var(--font-sans);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.contact-nav-btn:hover,
.contact-nav-btn:focus-visible {
  filter: brightness(1.12);
}

.contact-nav-btn:focus {
  outline: none;
}

.contact-crt {
  position: absolute;
  left: var(--contact-crt-left);
  bottom: var(--contact-crt-bottom);
  width: var(--contact-crt-width);
  height: calc(var(--contact-crt-height) * 1%);
  min-height: 0;
  z-index: 3;
  pointer-events: auto;
  container-type: size;
}

.contact-crt.crt-panel {
  font-size: calc(9cqmin * var(--contact-crt-content-scale));
  line-height: 1.35;
  color: #6dff7a;
  filter:
    drop-shadow(0 0 1px rgba(120, 255, 140, 0.85))
    drop-shadow(0 0 5px rgba(60, 220, 90, 0.45))
    drop-shadow(0 0 14px rgba(40, 180, 70, 0.22));
  text-shadow:
    -0.6px 0 rgba(0, 120, 40, 0.35),
    0.6px 0 rgba(160, 255, 180, 0.25),
    0 0 5px #2ecc71,
    0 0 12px rgba(60, 220, 100, 0.85),
    0 0 24px rgba(40, 180, 70, 0.4);
}

.contact-crt.crt-panel::before {
  background:
    radial-gradient(ellipse 88% 82% at 50% 50%, transparent 35%, rgba(0, 0, 0, 0.7) 100%),
    radial-gradient(ellipse 75% 65% at 50% 42%, rgba(80, 255, 120, 0.14), transparent 58%),
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 1px,
      rgba(0, 0, 0, 0.5) 1px,
      rgba(0, 0, 0, 0.5) 3px
    );
}

.contact-crt__form {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.28em 0.4em;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0.55em 0.65em 0.5em;
  box-sizing: border-box;
  pointer-events: auto;
}

.contact-crt__title {
  grid-column: 1 / -1;
  margin: 0 0 0.15em;
  font-size: 1.1em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-crt__field {
  display: block;
  min-width: 0;
}

.contact-crt__field--full {
  grid-column: 1 / -1;
}

.contact-crt__label {
  display: block;
  margin-bottom: 0.08em;
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.92;
}

.contact-crt__input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.18em 0.35em;
  background: rgba(0, 0, 0, 0.35);
  border: 0.08em solid rgba(100, 255, 140, 0.55);
  border-radius: 0.12em;
  color: inherit;
  font: inherit;
  font-size: 0.8em;
  line-height: 1.2;
  outline: none;
  resize: none;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: inset 0 0 0.5em rgba(0, 0, 0, 0.45);
}

.contact-crt__input::placeholder {
  color: rgba(100, 255, 140, 0.35);
}

.contact-crt__input:focus {
  border-color: rgba(140, 255, 170, 0.95);
  box-shadow:
    inset 0 0 0.5em rgba(0, 0, 0, 0.45),
    0 0 0.4em rgba(60, 220, 100, 0.45);
}

.contact-crt__textarea {
  min-height: 2.4em;
}

.contact-crt__submit {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 0.05em;
  padding: 0.2em 0.65em;
  background: rgba(0, 0, 0, 0.35);
  border: 0.08em solid rgba(100, 255, 140, 0.65);
  border-radius: 0.12em;
  color: inherit;
  font: inherit;
  font-size: 0.8em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.contact-crt__submit:hover,
.contact-crt__submit:focus-visible {
  background: rgba(60, 220, 100, 0.18);
  box-shadow: 0 0 8px rgba(60, 220, 100, 0.35);
}


/* --- Clipboard notes (top, beside CRT) --- */

.clipboard-ui {
  position: absolute;
  top: var(--clipboard-top);
  left: var(--clipboard-left);
  width: var(--clipboard-width);
  z-index: 6;
  pointer-events: auto;
  container-type: size;
  transform: rotate(var(--clipboard-rot));
  transform-origin: 12% 20%;
}

.clipboard-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--clipboard-gap);
  font-family: var(--font-hand);
  font-size: var(--clipboard-font);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.clipboard-item {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4em;
  color: var(--clipboard-ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

a.clipboard-item:hover,
a.clipboard-item:hover .clipboard-check {
  color: var(--clipboard-ink-hover);
}

.clipboard-icon {
  flex-shrink: 0;
  width: 1.1em;
  height: 1.1em;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s ease;
}

a.clipboard-item:hover .clipboard-icon {
  opacity: 0.85;
}

.clipboard-check {
  color: var(--clipboard-ink);
  font-size: 1.1em;
  font-weight: 700;
  line-height: 1;
  transition: color 0.2s ease;
}

.clipboard-item--tv {
  cursor: pointer;
}

.tv-hover-preview {
  position: fixed;
  left: 0;
  top: 0;
  width: clamp(176px, 48vw, 280px);
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 2px solid #fff;
  border-radius: 4px;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, calc(-100% - 16px));
  transition: opacity 0.15s ease, visibility 0.15s ease;
  will-change: left, top;
}

.tv-hover-preview.is-active {
  opacity: 1;
  visibility: visible;
}


/* --- Nav button row --- */

.nav-buttons {
  position: absolute;
  top: var(--nav-top);
  left: var(--nav-left);
  width: var(--nav-row-width);
  height: var(--nav-btn-height);
  display: flex;
  gap: var(--nav-gap);
  z-index: 10;
}

.nav-btn {
  position: relative;
  flex: 1;
  top: var(--btn-top);
  left: var(--btn-left);
  width: var(--btn-w);
  height: var(--btn-h);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  background: transparent;
}

/* Debug label — set content to attr(aria-label) and --debug: 1 to re-align */
.nav-btn::before {
  content: none;
  display: none;
}


/* --- Nav icons (black → amber glow on hover) --- */

.nav-icon {
  position: absolute;
  left: calc(50% + var(--icon-x));
  top: calc(50% + var(--icon-y));
  z-index: 1;
  width: var(--icon-size);
  height: var(--icon-size);
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  transform: translate(-50%, -50%) rotate(var(--icon-rot));
  transition: filter 0.2s ease, transform 0.2s ease;
}

.nav-btn:hover .nav-icon,
.nav-btn:focus-visible .nav-icon {
  transform: translate(-50%, -50%) rotate(var(--icon-rot));
  filter:
    brightness(0) invert(1)
    drop-shadow(0 0 2px rgba(232, 160, 32, 0.95))
    drop-shadow(0 0 7px rgba(232, 160, 32, 0.75))
    drop-shadow(0 0 14px rgba(232, 160, 32, 0.45));
}


/* --- Fluid wavy-square outline on hover --- */

.nav-outline {
  position: absolute;
  inset: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  pointer-events: none;
  opacity: 0;
  overflow: visible;
  transition: opacity 0.15s ease;
}

.nav-btn:hover .nav-outline,
.nav-btn:focus-visible .nav-outline {
  opacity: 1;
  filter:
    drop-shadow(0 0 2px rgba(232, 160, 32, 0.95))
    drop-shadow(0 0 6px rgba(232, 160, 32, 0.65))
    drop-shadow(0 0 12px rgba(232, 160, 32, 0.35));
}

/* --- Scroll anchor points (invisible) — tune in :root --anchor-* --- */

.page-section {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  pointer-events: none;
  scroll-margin-top: var(--scroll-margin-header);
}

#home     { top: var(--anchor-home); }
#about    { top: var(--anchor-about); }
#projects { top: var(--anchor-projects); }
#tools    { top: var(--anchor-tools); }
#pinboard { top: var(--anchor-pinboard); }
#contact  {
  top: calc(var(--anchor-contact-canvas) * 100% / (100 + var(--strip-tail)));
}


/* About section — polaroid and note */

.about-ui {
  position: absolute;
  left: 50%;
  top: var(--about-panel-top);
  width: var(--about-panel-width);
  height: var(--about-panel-height);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 5%;
  align-items: start;
  z-index: 12;
  pointer-events: auto;
}

.about-polaroid {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  container-type: size;
}

.about-polaroid__thumb.tool-thumb {
  position: relative;
  left: auto;
  top: auto;
  width: 88%;
  height: auto;
  max-height: 100%;
  aspect-ratio: 4 / 4.35;
  margin-top: var(--about-photo-lift);
  --about-rot: -4deg;
  opacity: 0;
  animation: about-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0s both;
  animation-timeline: view();
  animation-range: entry 0% cover 35%;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: inherit;
  appearance: none;
  -webkit-appearance: none;
  background: #fbfaf6;
  border-radius: 2px;
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.12),
    3px 5px 12px rgba(0, 0, 0, 0.34);
  cursor: zoom-in;
  pointer-events: auto;
}

.about-polaroid__thumb .tool-thumb-photo {
  inset: 7cqmin var(--about-photo-inset-x) 22cqmin;
}

.about-polaroid__thumb .tool-thumb-photo img {
  object-fit: cover;
  object-position: center center;
  transform: scale(var(--about-photo-zoom));
  pointer-events: none;
}

.about-polaroid__caption {
  position: absolute;
  left: 8cqmin;
  right: 8cqmin;
  bottom: 5cqmin;
  margin: 0;
  font-family: var(--font-hand);
  font-size: 10cqmin;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  color: #2e3034;
  pointer-events: none;
}

.about-note {
  position: relative;
  width: 88%;
  height: 100%;
  margin-top: var(--about-note-drop);
  margin-left: var(--about-note-shift-x);
  align-self: start;
  container-type: size;
  --about-rot: 1.6deg;
  opacity: 0;
  animation: about-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
  animation-timeline: view();
  animation-range: entry 0% cover 35%;
}

.about-note__copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.3em;
  padding: 0 4% 0 2%;
  box-sizing: border-box;
  color: #2e3034;
  font-family: var(--font-hand);
  font-size: var(--about-note-font);
  font-weight: 600;
  line-height: 1.16;
}

.about-note__title {
  margin: 0 0 0.08em;
  font-size: 1.2em;
  font-weight: 700;
  line-height: 1;
}

.about-note__copy p {
  margin: 0;
}

@supports not (animation-timeline: view()) {
  .about-polaroid__thumb.tool-thumb,
  .about-note {
    animation: about-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) var(--about-delay, 0s) forwards;
  }

  .about-note {
    --about-delay: 0.12s;
  }
}

@keyframes about-in {
  from {
    opacity: 0;
    transform: rotate(calc(var(--about-rot) - 10deg)) translateY(-16px) scale(0.88);
  }
  to {
    opacity: 1;
    transform: rotate(var(--about-rot)) translateY(0) scale(1);
  }
}


/* Projects panel and picker */

.projects-ui {
  --proj-ink: #fff;
  --proj-muted: rgba(255, 255, 255, 0.94);
  --proj-line: rgba(255, 255, 255, 0.92);
  --proj-dash: max(1px, 0.32cqmin);
  /* Gap between blueprint panel and picker row */
  --projects-picker-gap: 3cqh;
  --proj-body: 2cqh;
  --proj-title: 2.75cqh;
  --proj-picker: 16cqh;
  --proj-picker-font: 6cqh;
  --proj-showcase-pad: 5cqh;

  position: absolute;
  left: 50%;
  width: 84%;
  top: var(--projects-panel-top);
  height: 14%;
  transform: translateX(-50%);
  z-index: 15;
  pointer-events: auto;
  overflow: visible;
  container-type: size;
}

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

.projects-showcase {
  position: absolute;
  inset: 0;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  padding-bottom: var(--proj-showcase-pad);
  transition: opacity 0.45s ease, padding-bottom 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.projects-ui:has(.project-radio:checked) .projects-showcase {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  padding-bottom: var(--proj-showcase-pad);
}

.project-panel {
  position: absolute;
  inset: 0;
  display: none;
}

.project-panel[data-project="lightford"] {
  display: block;
}

.projects-ui:has(#proj-lightford:checked) .project-panel[data-project="lightford"],
.projects-ui:has(#proj-aquapark:checked) .project-panel[data-project="aquapark"],
.projects-ui:has(#proj-nokori:checked) .project-panel[data-project="nokori"],
.projects-ui:has(#proj-mosh:checked) .project-panel[data-project="mosh"] {
  display: block;
}

.projects-ui:has(#proj-aquapark:checked) .project-panel[data-project="lightford"],
.projects-ui:has(#proj-nokori:checked) .project-panel[data-project="lightford"],
.projects-ui:has(#proj-mosh:checked) .project-panel[data-project="lightford"] {
  display: none;
}

.projects-blueprint {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 1.5%;
  padding: 1% 2.5%;
}

/* --- Footer / picker (centered idle → bottom when open) --- */

.projects-footer {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + var(--projects-picker-gap));
  bottom: auto;
  transform: none;
  display: flex;
  justify-content: center;
  padding: 0 2%;
  transition: top 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
}

.projects-ui:has(.project-radio:checked) .projects-footer {
  top: calc(100% + var(--projects-picker-gap));
  transform: none;
}

.projects-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2cqw;
}

.projects-picker::before,
.projects-picker::after {
  content: "";
  width: 5cqw;
  height: var(--proj-dash);
  background: var(--proj-line);
}

.projects-picker-btn {
  display: flex;
  width: var(--proj-picker);
  height: var(--proj-picker);
  padding: 0;
  border: var(--proj-dash) solid var(--proj-line);
  border-radius: 1.2cqh;
  cursor: pointer;
  background: transparent;
  overflow: hidden;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s;
}

.projects-picker-btn:hover {
  background: rgba(255, 255, 255, 0.38);
  border-color: #fff;
  transform: translateY(-3px) scale(1.04);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.55),
    0 0 24px rgba(255, 255, 255, 0.5),
    0 4px 16px rgba(0, 0, 0, 0.35);
}

.projects-ui:has(#proj-lightford:checked) label[for="proj-lightford"],
.projects-ui:has(#proj-aquapark:checked) label[for="proj-aquapark"],
.projects-ui:has(#proj-nokori:checked) label[for="proj-nokori"],
.projects-ui:has(#proj-mosh:checked) label[for="proj-mosh"] {
  background: rgba(255, 255, 255, 0.58);
  border-color: #fff;
  transform: scale(1.12);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.95),
    0 0 28px rgba(255, 255, 255, 0.75),
    0 0 52px rgba(255, 255, 255, 0.35),
    inset 0 0 28px rgba(255, 255, 255, 0.32);
}

.projects-ui:has(#proj-lightford:checked) label[for="proj-lightford"]:hover,
.projects-ui:has(#proj-aquapark:checked) label[for="proj-aquapark"]:hover,
.projects-ui:has(#proj-nokori:checked) label[for="proj-nokori"]:hover,
.projects-ui:has(#proj-mosh:checked) label[for="proj-mosh"]:hover {
  background: rgba(255, 255, 255, 0.68);
  transform: scale(1.14) translateY(-2px);
  box-shadow:
    0 0 0 3px #fff,
    0 0 36px rgba(255, 255, 255, 0.9),
    0 0 64px rgba(255, 255, 255, 0.45),
    inset 0 0 32px rgba(255, 255, 255, 0.38);
}

.projects-picker-btn span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font: 700 var(--proj-picker-font)/1 var(--font-sans);
  letter-spacing: 0.06em;
  color: #fff;
}

.projects-picker-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* --- Content (transparent — sits on seq bg blueprint) --- */

.projects-media-wrap {
  position: relative;
  overflow: hidden;
  border: var(--proj-dash) dashed var(--proj-line);
  background: transparent;
  transform: translateX(-5cqw) scale(0.94);
  opacity: 0;
}

.projects-media-wrap::before,
.projects-media-wrap::after {
  display: none;
}

.projects-media-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.projects-media-inner--image,
.projects-media-inner--video,
button.projects-media-inner {
  display: block;
  cursor: zoom-in;
}

button.projects-media-inner {
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: inherit;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
}

.projects-media-inner img,
.projects-media-inner video,
button.projects-media-inner img,
button.projects-media-inner video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.projects-media-placeholder {
  font: 700 7cqh/1 var(--font-sans);
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  user-select: none;
}

.projects-details {
  display: flex;
  flex-direction: column;
  gap: 0.38em;
  min-height: 0;
  overflow: hidden;
  color: var(--proj-ink);
  font-family: var(--font-sans);
  font-size: var(--proj-body);
  line-height: 1.5;
  padding: 0.4em 0.5em;
  background: linear-gradient(
    145deg,
    rgba(6, 8, 14, 0.78) 0%,
    rgba(10, 14, 24, 0.62) 100%
  );
  border: var(--proj-dash) dashed rgba(255, 255, 255, 0.38);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 4px 18px rgba(0, 0, 0, 0.42);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.projects-header {
  transform: translateY(-8cqh);
  opacity: 0;
  border-bottom: var(--proj-dash) solid var(--proj-line);
  padding-bottom: 0.35em;
}

.projects-title {
  margin: 0;
  font-size: var(--proj-title);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--proj-ink);
}

.projects-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3em 0.5em;
  margin: 0.25em 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.projects-platforms li::before {
  content: "—";
  margin-right: 0.45em;
  opacity: 0.75;
}

.projects-platforms li:first-child::before {
  content: none;
}

.projects-role {
  display: inline-block;
  align-self: flex-start;
  padding: 0.25em 0.65em;
  border: var(--proj-dash) solid var(--proj-line);
  background: rgba(0, 0, 0, 0.38);
  font-size: 0.85em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  transform: scale(0.75);
  opacity: 0;
}

.projects-desc {
  margin: 0.15em 0 0;
  color: var(--proj-muted);
  font-weight: 500;
  transform: translateX(4.5cqw);
  opacity: 0;
}

.projects-desc strong {
  color: #fff;
  font-weight: 700;
}

.projects-tasks {
  margin: 0.15em 0 0;
  padding-left: 1em;
  color: rgba(255, 255, 255, 0.92);
  flex: 1;
  min-height: 0;
  overflow: hidden;
  list-style: none;
}

.projects-tasks li {
  position: relative;
  margin-bottom: 0.35em;
  padding-left: 0.55em;
  transform: translateY(5.5cqh);
  opacity: 0;
}

.projects-tasks li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--proj-line);
  font-weight: 700;
}

.projects-tasks strong {
  color: #fff;
  font-weight: 700;
}

.projects-gallery {
  display: flex;
  gap: 0.3em;
  flex-shrink: 0;
}

.projects-gallery .gallery-tile {
  flex: 1;
  aspect-ratio: 16 / 9;
  border: var(--proj-dash) dashed var(--proj-line);
  background: transparent;
  transform: translateY(8cqh) scale(0.9);
  opacity: 0;
}

.gallery-tile--image,
.gallery-tile--youtube,
.gallery-tile--video {
  border: none;
}

.gallery-tile--video {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.gallery-tile--youtube {
  display: block;
  margin: 0;
  padding: 0;
  border: none;
  font: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background: #0e0e12;
  transform: translateY(8cqh) scale(0.9);
  opacity: 0;
}

.gallery-tile--youtube .gallery-youtube-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.94;
}

.gallery-youtube-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2.6em;
  height: 1.85em;
  transform: translate(-50%, -50%);
  background: rgba(230, 33, 23, 0.94);
  border-radius: 0.35em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.gallery-youtube-play::after {
  content: "";
  position: absolute;
  left: 54%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 0.42em 0 0.42em 0.72em;
  border-color: transparent transparent transparent #fff;
}

.gallery-tile--video-active {
  transform: none;
  opacity: 1;
}

.gallery-tile--video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.gallery-tile--image {
  position: relative;
  overflow: hidden;
  padding: 0;
}

button.gallery-tile--image {
  display: block;
  margin: 0;
  font: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
  cursor: zoom-in;
}

.gallery-tile--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.projects-cta {
  align-self: flex-end;
  margin-top: 0.25em;
  padding: 0.3em 0.55em;
  border: var(--proj-dash) solid var(--proj-line);
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
  font-size: 0.85em;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
  transform: translateY(5.5cqh);
  opacity: 0;
  transition: background 0.2s;
}

.projects-cta:hover {
  background: rgba(255, 255, 255, 0.1);
}

.gallery-tile--swatch {
  background: var(--swatch, transparent);
}

/* --- Project panel build-up (CSS :has selection) --- */

.projects-ui:has(#proj-lightford:checked) .project-panel[data-project="lightford"] .projects-media-wrap,
.projects-ui:has(#proj-aquapark:checked) .project-panel[data-project="aquapark"] .projects-media-wrap,
.projects-ui:has(#proj-nokori:checked) .project-panel[data-project="nokori"] .projects-media-wrap,
.projects-ui:has(#proj-mosh:checked) .project-panel[data-project="mosh"] .projects-media-wrap {
  animation: proj-fly-in-left 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.projects-ui:has(#proj-lightford:checked) .project-panel[data-project="lightford"] .projects-header,
.projects-ui:has(#proj-aquapark:checked) .project-panel[data-project="aquapark"] .projects-header,
.projects-ui:has(#proj-nokori:checked) .project-panel[data-project="nokori"] .projects-header,
.projects-ui:has(#proj-mosh:checked) .project-panel[data-project="mosh"] .projects-header {
  animation: proj-fly-in-top 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.06s forwards;
}

.projects-ui:has(#proj-lightford:checked) .project-panel[data-project="lightford"] .projects-role,
.projects-ui:has(#proj-aquapark:checked) .project-panel[data-project="aquapark"] .projects-role,
.projects-ui:has(#proj-nokori:checked) .project-panel[data-project="nokori"] .projects-role,
.projects-ui:has(#proj-mosh:checked) .project-panel[data-project="mosh"] .projects-role {
  animation: proj-pop-in 0.42s cubic-bezier(0.34, 1.4, 0.64, 1) 0.12s forwards;
}

.projects-ui:has(#proj-lightford:checked) .project-panel[data-project="lightford"] .projects-desc,
.projects-ui:has(#proj-aquapark:checked) .project-panel[data-project="aquapark"] .projects-desc,
.projects-ui:has(#proj-nokori:checked) .project-panel[data-project="nokori"] .projects-desc,
.projects-ui:has(#proj-mosh:checked) .project-panel[data-project="mosh"] .projects-desc {
  animation: proj-fly-in-right 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.16s forwards;
}

.projects-ui:has(#proj-lightford:checked) .project-panel[data-project="lightford"] .projects-tasks li,
.projects-ui:has(#proj-aquapark:checked) .project-panel[data-project="aquapark"] .projects-tasks li,
.projects-ui:has(#proj-nokori:checked) .project-panel[data-project="nokori"] .projects-tasks li,
.projects-ui:has(#proj-mosh:checked) .project-panel[data-project="mosh"] .projects-tasks li {
  animation: proj-fly-in-up 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.projects-ui:has(.project-radio:checked) .project-panel .projects-tasks li:nth-child(1) { animation-delay: 0.22s; }
.projects-ui:has(.project-radio:checked) .project-panel .projects-tasks li:nth-child(2) { animation-delay: 0.28s; }
.projects-ui:has(.project-radio:checked) .project-panel .projects-tasks li:nth-child(3) { animation-delay: 0.34s; }
.projects-ui:has(.project-radio:checked) .project-panel .projects-tasks li:nth-child(4) { animation-delay: 0.4s; }

.projects-ui:has(#proj-lightford:checked) .project-panel[data-project="lightford"] .projects-gallery .gallery-tile,
.projects-ui:has(#proj-aquapark:checked) .project-panel[data-project="aquapark"] .projects-gallery .gallery-tile,
.projects-ui:has(#proj-nokori:checked) .project-panel[data-project="nokori"] .projects-gallery .gallery-tile,
.projects-ui:has(#proj-mosh:checked) .project-panel[data-project="mosh"] .projects-gallery .gallery-tile {
  animation: proj-fly-in-up 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.projects-ui:has(.project-radio:checked) .project-panel .projects-gallery .gallery-tile:nth-child(1) { animation-delay: 0.32s; }
.projects-ui:has(.project-radio:checked) .project-panel .projects-gallery .gallery-tile:nth-child(2) { animation-delay: 0.38s; }
.projects-ui:has(.project-radio:checked) .project-panel .projects-gallery .gallery-tile:nth-child(3) { animation-delay: 0.44s; }

.projects-ui:has(#proj-lightford:checked) .project-panel[data-project="lightford"] .projects-cta,
.projects-ui:has(#proj-aquapark:checked) .project-panel[data-project="aquapark"] .projects-cta,
.projects-ui:has(#proj-nokori:checked) .project-panel[data-project="nokori"] .projects-cta,
.projects-ui:has(#proj-mosh:checked) .project-panel[data-project="mosh"] .projects-cta {
  animation: proj-fly-in-up 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.48s forwards;
}

/* --- Open / settled states --- */

.projects-ui:has(.project-radio:checked) .project-panel .projects-media-wrap,
.projects-ui:has(.project-radio:checked) .project-panel .projects-header,
.projects-ui:has(.project-radio:checked) .project-panel .projects-role,
.projects-ui:has(.project-radio:checked) .project-panel .projects-desc,
.projects-ui:has(.project-radio:checked) .project-panel .projects-tasks li,
.projects-ui:has(.project-radio:checked) .project-panel .projects-gallery .gallery-tile,
.projects-ui:has(.project-radio:checked) .project-panel .projects-cta {
  animation-fill-mode: forwards;
}


@keyframes proj-fly-in-left {
  from { transform: translateX(-5cqw) scale(0.94); opacity: 0; }
  to   { transform: translateX(0) scale(1); opacity: 1; }
}

@keyframes proj-fly-in-right {
  from { transform: translateX(4.5cqw); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

@keyframes proj-fly-in-top {
  from { transform: translateY(-8cqh); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

@keyframes proj-fly-in-up {
  from { transform: translateY(8cqh) scale(0.9); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes proj-pop-in {
  from { transform: scale(0.75); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

@keyframes proj-fly-out-left {
  from { transform: translateX(0) scale(1); opacity: 1; }
  to   { transform: translateX(-4cqw) scale(0.92); opacity: 0; }
}

@keyframes proj-fly-out-right {
  from { transform: translateX(0); opacity: 1; }
  to   { transform: translateX(3.5cqw); opacity: 0; }
}

@keyframes proj-fly-out-top {
  from { transform: translateY(0); opacity: 1; }
  to   { transform: translateY(-6cqh); opacity: 0; }
}

@keyframes proj-fly-out-down {
  from { transform: translateY(0) scale(1); opacity: 1; }
  to   { transform: translateY(7cqh) scale(0.92); opacity: 0; }
}

@keyframes proj-pop-out {
  from { transform: scale(1); opacity: 1; }
  to   { transform: scale(0.8); opacity: 0; }
}

/* --- Tool media popovers (Popover API, no JS) --- */

.tool-popover-portals {
  display: contents;
}

.tool-popover {
  margin: auto;
  padding: 0;
  border: none;
  background: transparent;
  overflow: visible;
  overscroll-behavior: contain;
}

.tool-popover::backdrop {
  background: rgba(8, 8, 10, 0.78);
  cursor: zoom-out;
}

.tool-popover__close {
  position: fixed;
  top: max(0.75rem, env(safe-area-inset-top));
  right: max(0.75rem, env(safe-area-inset-right));
  z-index: 1;
  width: 2.5rem;
  height: 2.5rem;
  border: 2px dashed rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  background: rgba(8, 8, 10, 0.65);
  color: #fff;
  font: 1.5rem/1 system-ui, sans-serif;
  cursor: pointer;
}

.tool-popover__media {
  display: block;
  max-width: 98vw;
  max-height: 96vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 2px dashed rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55);
}

.tool-popover--video .tool-popover__media {
  width: min(98vw, 1280px);
  max-height: 96vh;
  background: #000;
  cursor: default;
}

html:has(.tool-popover:popover-open),
html:has(.tool-popover:popover-open) body {
  overflow: hidden;
}

@media (max-width: 480px) {
  .projects-ui {
    width: 92%;
    height: 30%;
    --projects-picker-gap: 2.5cqh;
    --proj-body: 1.8cqh;
    --proj-title: 2.4cqh;
    --proj-picker: 13cqh;
    --proj-picker-font: 5cqh;
    --proj-showcase-pad: 4cqh;
  }

  .projects-blueprint {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(30cqh, 36%) minmax(0, 1fr);
    gap: 1.2%;
    padding: 1.5%;
    height: 100%;
  }

  .projects-media-wrap {
    transform: none;
    min-height: 0;
  }

  .projects-ui:has(.project-radio:checked) .project-panel .projects-media-wrap {
    animation-name: proj-fly-in-up;
  }

  .projects-details {
    line-height: 1.5;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 0.45em 0.55em;
  }

  .projects-header {
    transform: none;
    opacity: 1;
  }

  .projects-role {
    transform: none;
    opacity: 1;
    font-size: 0.8em;
  }

  .projects-desc,
  .projects-tasks li,
  .projects-gallery .gallery-tile,
  .projects-cta {
    transform: none;
    opacity: 1;
  }

  .projects-ui:has(.project-radio:checked) .project-panel .projects-header,
  .projects-ui:has(.project-radio:checked) .project-panel .projects-role,
  .projects-ui:has(.project-radio:checked) .project-panel .projects-desc,
  .projects-ui:has(.project-radio:checked) .project-panel .projects-tasks li,
  .projects-ui:has(.project-radio:checked) .project-panel .projects-gallery .gallery-tile,
  .projects-ui:has(.project-radio:checked) .project-panel .projects-cta {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .projects-tasks {
    max-height: 9.5em;
    overflow-y: auto;
  }

  .projects-gallery {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .projects-gallery .gallery-tile {
    flex: 0 0 32%;
    min-width: 32%;
  }

  .projects-picker {
    gap: 1.6cqw;
  }

  .projects-picker::before,
  .projects-picker::after {
    width: 4cqw;
  }
}

/* Tools — scattered paper clusters */

.tools-ui {
  position: absolute;
  left: 50%;
  width: 76%;
  top: var(--tools-panel-top);
  height: 15%;
  transform: translateX(-50%);
  z-index: 15;
  pointer-events: auto;
  overflow: visible;
}

.tools-board {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.tool-cluster {
  position: absolute;
  left: var(--cx);
  top: var(--cy);
  width: var(--cw);
  height: var(--ch);
  transform: rotate(var(--rot));
  transform-origin: center center;
  opacity: 0;
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  column-gap: 4%;
  align-items: stretch;
  container-type: size;
}

.tool-cluster__left {
  display: flex;
  flex-direction: column;
  gap: 5%;
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.tool-cluster__tags {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 5%;
  flex: 0 0 auto;
  flex-shrink: 0;
  min-height: 0;
  overflow: visible;
}

.tool-cluster__tag {
  flex: 0 0 calc(42% - 2.5%);
  width: calc(42% - 2.5%);
  max-width: calc(42% - 2.5%);
  height: auto;
  flex-shrink: 0;
  aspect-ratio: 2400 / 1920;
  position: relative;
  transform: rotate(var(--prot, 0deg));
}

.tool-cluster__tag:only-child {
  flex: 0 0 78%;
  width: 78%;
  max-width: 78%;
}

.tool-cluster__tag.tool-paper--postit-graphic {
  flex: 0 0 78%;
  width: 78%;
  max-width: 78%;
  aspect-ratio: 2400 / 1920;
  height: auto;
  flex-shrink: 0;
  max-height: 40cqh;
  min-height: 22cqh;
}

.tool-cluster .tool-paper--postit-graphic img {
  object-fit: fill;
}

.tool-paper--postit-graphic .tool-paper-copy {
  display: none;
}

.tool-cluster__body {
  flex: 1 1 0;
  width: 120%;
  max-width: 120%;
  margin-left: -6%;
  min-height: 0;
  position: relative;
}

.tool-cluster__body.tool-paper {
  height: 100%;
}

.tool-cluster__tag.tool-paper {
  height: auto;
}

.tool-cluster__media {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7%;
  height: 100%;
  min-width: 0;
}

.tool-cluster--media2 .tool-cluster__media {
  justify-content: space-between;
}

.tool-cluster--opengamut .tool-cluster__media {
  justify-content: flex-start;
  gap: 5%;
  padding-top: 1%;
}

.tool-cluster--shaders .tool-cluster__media {
  justify-content: flex-start;
  gap: 5%;
  padding-top: 1%;
}

.tool-cluster .tool-paper {
  position: relative;
  left: auto;
  top: auto;
  height: auto;
  width: 100%;
  z-index: auto;
}

.tool-cluster .tool-thumb {
  position: relative;
  left: auto;
  top: auto;
  width: 100%;
  height: auto;
  flex: 1 1 0;
  min-height: 0;
  max-height: 48%;
  aspect-ratio: 4 / 3;
  transform: rotate(var(--thumb-rot, 0deg));
  z-index: auto;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: inherit;
  appearance: none;
  -webkit-appearance: none;
  cursor: zoom-in;
}

.tool-cluster .tool-thumb--image {
  width: 68%;
  max-width: 68%;
  height: auto;
  flex: 0 0 auto;
  aspect-ratio: 4112 / 2522;
  align-self: center;
  max-height: none;
}

.tool-cluster--media2 .tool-thumb--image {
  width: 64%;
  max-width: 64%;
  max-height: none;
}

.tool-cluster--opengamut .tool-thumb--image {
  width: 80%;
  max-width: 80%;
}

.tool-cluster--shaders .tool-thumb--image {
  width: 76%;
  max-width: 76%;
}

.tool-cluster--lightford .tool-cluster__media {
  justify-content: flex-start;
  padding-top: 1%;
}

.tool-cluster--lightford .tool-cluster__media .media-expand {
  max-height: 86%;
}

.tool-cluster--lightford .tool-thumb--image {
  width: 48%;
  max-width: 48%;
  max-height: 82%;
  aspect-ratio: 3 / 4;
}

.tool-cluster--lightford .tool-thumb-photo .tool-thumb__loop {
  object-fit: cover;
  object-position: center;
}

.tool-cluster--media2 .tool-thumb:not(.tool-thumb--image) {
  max-height: 46%;
}

.tool-cluster:not(.tool-cluster--media2) .tool-thumb {
  max-height: 72%;
  flex: 0 1 auto;
}

.tools-ui .tool-cluster {
  animation: tool-cluster-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) var(--delay) both;
  animation-timeline: view();
  animation-range: entry 0% cover 35%;
}

@supports not (animation-timeline: view()) {
  .tools-ui .tool-cluster {
    animation: tool-cluster-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) var(--delay) forwards;
  }
}

.tool-cluster__media .media-expand {
  width: 100%;
  min-width: 0;
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  justify-content: center;
}

.tool-cluster:not(.tool-cluster--media2) .tool-cluster__media .media-expand {
  flex: 0 1 auto;
  max-height: 72%;
}

.tool-cluster__media .media-expand > .tool-thumb {
  width: 100%;
}

/* cluster placement */
.tool-cluster--opengamut  { --cx: 1%; --cy: 1%; --cw: 48%; --ch: 48%; --rot: -2deg; --delay: 0s; }
.tool-cluster--lightford  { --cx: 51%; --cy: 1%; --cw: 48%; --ch: 48%; --rot: 2deg; --delay: 0.1s; }
.tool-cluster--shaders    { --cx: 1%; --cy: 51%; --cw: 48%; --ch: 48%; --rot: 1deg; --delay: 0.2s; }

.tool-cluster__tag:nth-child(odd)  { --prot: -3deg; }
.tool-cluster__tag:nth-child(even) { --prot: 4deg; }

.tool-cluster__media .media-expand:nth-child(odd) .tool-thumb  { --thumb-rot: 1deg; }
.tool-cluster__media .media-expand:nth-child(even) .tool-thumb { --thumb-rot: -2deg; }

.tool-paper {
  position: absolute;
  left: var(--px);
  top: var(--py);
  height: var(--ph);
  width: auto;
  aspect-ratio: var(--aspect, 1742 / 1920);
  z-index: var(--pz, auto);
  transform: rotate(var(--prot, 0deg));
  transform-origin: center center;
  container-type: size;
}

.tool-paper img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(1px 2px 4px rgba(0, 0, 0, 0.28));
}

.tool-paper-copy {
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  color: #1c2e45;
  font-family: var(--font-hand);
  pointer-events: auto;
  box-sizing: border-box;
}

.tool-paper--tier-postit .tool-paper-copy {
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 11.5cqh;
  line-height: 1.15;
  padding: 18% 14%;
}

.tool-paper--tier-text .tool-paper-copy {
  font-size: 8.75cqh;
  line-height: 1.26;
  padding: 17% 14% 13% 21%;
}

.tool-cluster--opengamut .tool-paper--tier-text .tool-paper-copy,
.tool-cluster--shaders .tool-paper--tier-text .tool-paper-copy {
  padding-right: 21%;
}

.tool-cluster .tool-paper--tier-text .tool-paper-copy h3 {
  font-size: 1.1em;
  margin: 0 0 0.35em;
}

.tool-cluster .tool-paper--tier-text .tool-paper-copy .tool-link {
  font-size: 0.95em;
  margin-top: 0.35em;
}

.tool-paper--sheet .tool-paper-copy,
.tool-paper--postit .tool-paper-copy {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.tool-paper--tier-text .tool-paper-copy h3,
.tool-paper--tier-text .tool-paper-copy p,
.tool-paper--tier-text .tool-paper-copy .tool-link {
  font-size: 1em;
  line-height: inherit;
}

.tool-paper-copy h3 {
  margin: 0 0 0.35em;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.tool-paper--tier-text .tool-paper-copy h3 {
  margin: 0 0 0.4em;
}

.tool-paper-copy p {
  margin: 0;
}

.tool-paper-copy .tool-note {
  font-weight: 600;
}

.tool-paper-copy .tool-note--postit {
  font-weight: 800;
  color: #3a3200;
  font-size: 1em;
}

.tool-link {
  display: inline-block;
  margin-top: 0.45em;
  padding: 0.28em 0.55em;
  border: 1.5px solid #1c2e45;
  border-radius: 3px;
  color: inherit;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  align-self: flex-start;
}

.tool-link:hover {
  background: #1c2e45;
  color: #fff;
}

/* --- Media thumbnails styled like taped photos --- */

.tool-thumb {
  position: absolute;
  left: var(--px);
  top: var(--py);
  height: var(--ph);
  aspect-ratio: 4 / 3;
  width: auto;
  z-index: var(--pz);
  transform: rotate(var(--prot));
  transform-origin: center center;
  background: #fbfaf6;
  border-radius: 2px;
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.12),
    3px 5px 12px rgba(0, 0, 0, 0.34);
  container-type: size;
}

.tool-thumb-photo span {
  font: 700 11cqmin/1 var(--font-sans);
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
}

/* tape strip */
.tool-thumb::before {
  content: "";
  position: absolute;
  top: -5cqmin;
  left: 50%;
  width: 40cqmin;
  height: 14cqmin;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(226, 222, 198, 0.6);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  border-left: 1px dashed rgba(0, 0, 0, 0.08);
  border-right: 1px dashed rgba(0, 0, 0, 0.08);
}

.tool-thumb-photo {
  position: absolute;
  inset: 7cqmin 7cqmin 16cqmin;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 120% 90% at 50% 20%, rgba(255, 255, 255, 0.22), transparent 55%),
    linear-gradient(150deg, #6d7f92 0%, #46566a 55%, #2f3b4a 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.tool-thumb--image .tool-thumb-photo {
  background: #101014;
}

.tool-thumb--image .tool-thumb-photo img,
.tool-thumb--image .tool-thumb-photo .tool-thumb__loop {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.tool-thumb--zoom .tool-thumb-photo {
  cursor: zoom-in;
}

.tool-thumb--image .tool-thumb-photo img {
  cursor: zoom-in;
}

.tool-thumb--image .tool-thumb-photo .tool-thumb__loop {
  pointer-events: none;
}

@keyframes tool-cluster-in {
  from {
    transform: rotate(calc(var(--rot) - 12deg)) translateY(-20px) scale(0.84);
    opacity: 0;
  }
  to {
    transform: rotate(var(--rot)) translateY(0) scale(1);
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .tools-ui {
    width: 82%;
    top: 52%;
    height: 16%;
  }
}

/* Pin board — jam tapes and blog strips */

.pinboard-wrap {
  position: absolute;
  left: 0;
  top: var(--pinboard-top);
  width: 100%;
  height: var(--pinboard-height);
  pointer-events: auto;
  z-index: 15;
}

.pinboard-ui {
  position: absolute;
  left: 50%;
  top: 0;
  width: 76%;
  height: 100%;
  transform: translateX(-50%);
  pointer-events: auto;
  overflow: visible;
}

.pinboard-board {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  column-gap: 5%;
  width: 100%;
  height: 100%;
  container-type: size;
}

.pinboard-zone {
  display: flex;
  flex-direction: column;
  gap: 5%;
  min-width: 0;
  min-height: 0;
  height: 100%;
}

/* --- Post-it labels (match tools page) --- */

.pin-label {
  flex-shrink: 0;
  width: 42%;
  position: relative;
  aspect-ratio: 2400 / 1920;
  opacity: 0;
  transform: rotate(var(--mrot, -3deg));
  transform-origin: center center;
  container-type: size;
}

.pin-label--jams {
  --mrot: -3deg;
  --mdelay: 0s;
}

.pin-label--blog {
  --mrot: 4deg;
  --mdelay: 0s;
}

.pinboard-zone--blog {
  gap: 2.5%;
}

.pinboard-ui .tool-paper {
  position: relative;
  left: auto;
  top: auto;
  height: auto;
  z-index: auto;
}

.pinboard-ui .pin-label.tool-paper {
  width: 42%;
  flex-shrink: 0;
}

/* --- Game jam grid (taped polaroids) --- */

.pinboard-jam-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6%;
  flex: 1;
  min-height: 0;
  align-content: center;
}

.pin-jam {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3.6;
  opacity: 0;
  transform: rotate(var(--mrot, 0deg));
  transform-origin: center center;
  container-type: size;
  text-decoration: none;
  color: #1c2e45;
  transition: transform 0.2s ease;
}

.pinboard-jam-grid .pin-jam:nth-child(1) { --mrot: -5deg; --mdelay: 0.12s; }
.pinboard-jam-grid .pin-jam:nth-child(2) { --mrot: 6deg;  --mdelay: 0.18s; }
.pinboard-jam-grid .pin-jam:nth-child(3) { --mrot: 3deg;  --mdelay: 0.24s; }
.pinboard-jam-grid .pin-jam:nth-child(4) { --mrot: -8deg; --mdelay: 0.3s; }

.pin-jam:hover {
  transform: rotate(var(--mrot)) translateY(-3px) scale(1.03);
  z-index: 20;
}

.pin-jam-thumb.tool-thumb {
  position: relative;
  left: auto;
  top: auto;
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: unset;
  transform: rotate(0deg);
}

.pin-jam .tool-thumb-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation-duration: var(--jam-cycle, 18s);
  animation-timing-function: ease;
  animation-iteration-count: infinite;
}

.pin-jam-slides--2 { --jam-cycle: 9s; }
.pin-jam-slides--3 { --jam-cycle: 13.5s; }
.pin-jam-slides--4 { --jam-cycle: 18s; }

.pin-jam-slides--2 img {
  animation-name: jam-slideshow-2;
}

.pin-jam-slides--3 img {
  animation-name: jam-slideshow-3;
}

.pin-jam-slides--4 img {
  animation-name: jam-slideshow-4;
}

.pin-jam-slides--2 img:nth-child(1) { animation-delay: 0s; }
.pin-jam-slides--2 img:nth-child(2) { animation-delay: calc(var(--jam-cycle) * -0.5); }

.pin-jam-slides--3 img:nth-child(1) { animation-delay: 0s; }
.pin-jam-slides--3 img:nth-child(2) { animation-delay: calc(var(--jam-cycle) * -0.333); }
.pin-jam-slides--3 img:nth-child(3) { animation-delay: calc(var(--jam-cycle) * -0.666); }

.pin-jam-slides--4 img:nth-child(1) { animation-delay: 0s; }
.pin-jam-slides--4 img:nth-child(2) { animation-delay: calc(var(--jam-cycle) * -0.25); }
.pin-jam-slides--4 img:nth-child(3) { animation-delay: calc(var(--jam-cycle) * -0.5); }
.pin-jam-slides--4 img:nth-child(4) { animation-delay: calc(var(--jam-cycle) * -0.75); }

@keyframes jam-slideshow-2 {
  0%, 40% { opacity: 1; }
  50%, 90% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes jam-slideshow-3 {
  0%, 26% { opacity: 1; }
  33%, 100% { opacity: 0; }
}

@keyframes jam-slideshow-4 {
  0%, 20% { opacity: 1; }
  25%, 100% { opacity: 0; }
}

.pin-jam .tool-thumb-photo {
  inset: 7cqmin 7cqmin 22cqmin;
}

.pin-jam-title {
  position: absolute;
  left: 8cqmin;
  right: 8cqmin;
  bottom: 5cqmin;
  z-index: 1;
  font-family: var(--font-sans);
  font-size: 9cqmin;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  pointer-events: none;
}

/* --- Blog paper strips with tape --- */

.pinboard-blog-strips {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 5%;
  flex: 1;
  min-height: 0;
  margin-top: -3%;
}

.pin-strip {
  position: relative;
  display: block;
  width: 100%;
  flex-shrink: 0;
  opacity: 0;
  transform: rotate(var(--mrot, 0deg));
  transform-origin: center center;
  text-decoration: none;
  color: #1c2e45;
  transition: transform 0.2s ease;
  container-type: size;
  padding-top: 2%;
  box-sizing: border-box;
}

.pinboard-blog-strips .pin-strip:nth-child(1) { --mrot: -2deg; --mdelay: 0.1s; }

.pin-strip--empty {
  pointer-events: none;
  cursor: default;
}

.pin-strip--empty .tool-paper-copy {
  align-items: center;
  text-align: center;
}

.pin-strip--empty .tool-paper-copy p {
  margin: 0;
  font-weight: 700;
  opacity: 0.72;
}

.pin-strip--empty:hover {
  transform: rotate(var(--mrot));
  z-index: auto;
}

.pin-strip:hover {
  transform: rotate(var(--mrot)) translateY(-2px) scale(1.02);
  z-index: 20;
}

.pin-strip::before {
  content: "";
  position: absolute;
  top: -4cqh;
  left: 50%;
  width: 28cqw;
  height: 9cqh;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(226, 222, 198, 0.6);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  border-left: 1px dashed rgba(0, 0, 0, 0.08);
  border-right: 1px dashed rgba(0, 0, 0, 0.08);
  z-index: 2;
  pointer-events: none;
}

.pin-strip__paper.tool-paper {
  position: relative;
  left: auto;
  top: auto;
  width: 100%;
  height: auto;
  aspect-ratio: 2.8 / 1;
  transform: rotate(0deg);
}

.pin-strip .tool-paper-copy {
  justify-content: center;
  font-size: 9.5cqh;
  line-height: 1.28;
  padding: 16% 12% 14% 18%;
}

.pin-strip .tool-paper-copy h3 {
  margin: 0 0 0.25em;
  font-size: 1em;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.pin-strip .tool-paper-copy p {
  margin: 0;
  font-size: 0.82em;
  font-weight: 600;
  opacity: 0.82;
}

.pinboard-ui .pin-label,
.pinboard-ui .pin-jam,
.pinboard-ui .pin-strip {
  animation: pin-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--mdelay, 0s) both;
  animation-timeline: view();
  animation-range: entry 0% cover 35%;
}

@supports not (animation-timeline: view()) {
  .pinboard-ui .pin-label,
  .pinboard-ui .pin-jam,
  .pinboard-ui .pin-strip {
    animation: pin-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--mdelay, 0s) forwards;
  }
}

@keyframes pin-in {
  from {
    transform: rotate(calc(var(--mrot) - 10deg)) translateY(-16px) scale(0.86);
    opacity: 0;
  }
  to {
    transform: rotate(var(--mrot)) translateY(0) scale(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-polaroid__thumb.tool-thumb,
  .about-note,
  .about-polaroid__thumb.tool-thumb,
  .about-note,
  .tools-ui .tool-cluster,
  .pinboard-ui .pin-label,
  .pinboard-ui .pin-jam,
  .pinboard-ui .pin-strip {
    animation: none;
    opacity: 1;
    transform: rotate(var(--about-rot, var(--mrot, var(--rot, 0deg))));
  }

  .pin-jam .tool-thumb-photo img {
    animation: none;
    opacity: 0;
  }

  .pin-jam .tool-thumb-photo img:first-child {
    opacity: 1;
  }
}

@media (max-width: 480px) {
  :root {
    --pinboard-top: 76%;
    --pinboard-height: 20%;
    --contact-panel-top: 91;
    --contact-panel-height: 14;
    --tools-panel-top: 52%;
    --projects-panel-top: 30%;
  }

  .pin-strip .tool-paper-copy {
    font-size: 8.5cqh;
  }
}
