:root {
  --paper: #f3eadb;
  --paper-deep: #e6d7c1;
  --paper-light: #fff9ee;
  --paper-warm: #f7eddc;
  --kraft: #e5c8a5;
  --ink: #25221d;
  --muted: #6f6a62;
  --line: rgba(43, 37, 30, 0.14);
  --shadow: rgba(45, 37, 26, 0.14);
  --sakura: #e9a5a6;
  --sakura-soft: #fae2e0;
  --matcha: #74875a;
  --matcha-soft: #e8eddc;
  --mizu: #98c4d7;
  --aizome: #2e536c;
  --indigo-soft: #e3edf1;
  --kurenai: #b84e45;
  --charcoal: #1f2426;
  --card-radius: 5px;
  --topbar-height: 92px;
  --body-font: "Trebuchet MS", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --display-font: Georgia, "Times New Roman", serif;
  --note-base: #fff9ee;
  --note-statement: #fff3cd;
  --note-skills: #edf2dd;
  --note-contact: #eaf2f4;
  --note-project: #fff9ee;
  --note-brand: #e5c8a5;
  --note-sakura: #fae2e0;
  --note-matcha: #e8eddc;
  --note-indigo: #e3edf1;
  --note-youtube: #fff3ec;
  --note-chip: #eee0c9;
  --note-border: rgba(72, 57, 36, 0.13);
  --note-shadow: rgba(45, 37, 26, 0.12);
  --note-ink: #25221d;
  --note-text: #6f6a62;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.58), transparent 28%),
    radial-gradient(circle at 88% 24%, rgba(228, 204, 164, 0.18), transparent 30%),
    linear-gradient(rgba(255, 251, 242, 0.46), rgba(255, 247, 232, 0.2)),
    linear-gradient(90deg, rgba(97, 78, 52, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(97, 78, 52, 0.07) 1px, transparent 1px),
    var(--paper);
  background-size: auto, auto, auto, 28px 28px, 28px 28px, auto;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-radial-gradient(circle at 0 0, rgba(71, 56, 36, 0.055) 0 1px, transparent 1px 7px),
    linear-gradient(115deg, rgba(255, 255, 255, 0.28), transparent 42%, rgba(111, 87, 51, 0.06));
  content: "";
  opacity: 0.46;
  mix-blend-mode: multiply;
}

body.weather-night {
  --note-base: #2d2c28;
  --note-statement: #3a332a;
  --note-skills: #2e352c;
  --note-contact: #28333a;
  --note-project: #312f2a;
  --note-brand: #4a3b2c;
  --note-sakura: #3c2d31;
  --note-matcha: #31372d;
  --note-indigo: #29323a;
  --note-youtube: #3d2d2a;
  --note-chip: rgba(255, 248, 230, 0.12);
  --note-border: rgba(255, 248, 230, 0.16);
  --note-shadow: rgba(0, 0, 0, 0.28);
  --note-ink: #fff4de;
  --note-text: rgba(255, 248, 230, 0.72);
  background:
    radial-gradient(circle at 72% 12%, rgba(219, 226, 238, 0.14), transparent 22%),
    linear-gradient(rgba(23, 24, 27, 0.82), rgba(16, 17, 19, 0.78)),
    #151619;
  background-size: auto, auto, auto;
}

body.weather-moon {
  --note-base: #30333a;
  --note-statement: #34323c;
  --note-skills: #303a35;
  --note-contact: #2d3b43;
  --note-project: #343741;
  --note-brand: #4f4238;
  --note-sakura: #43343d;
  --note-matcha: #343d36;
  --note-indigo: #2f3d48;
  --note-youtube: #443431;
  --note-chip: rgba(235, 239, 246, 0.14);
  --note-border: rgba(235, 239, 246, 0.17);
  --note-shadow: rgba(3, 6, 12, 0.3);
  --note-ink: #f4eedb;
  --note-text: rgba(244, 240, 224, 0.74);
  background:
    radial-gradient(circle at 76% 13%, rgba(244, 238, 209, 0.28), transparent 12%),
    radial-gradient(circle at 74% 11%, rgba(185, 202, 228, 0.2), transparent 34%),
    linear-gradient(rgba(24, 28, 38, 0.72), rgba(20, 22, 28, 0.72)),
    #171b24;
  background-size: auto, auto, auto, auto;
}

body.weather-rainy {
  --note-base: #edf4f5;
  --note-statement: #e4edf0;
  --note-skills: #e2ece6;
  --note-contact: #dfecef;
  --note-project: #f0f5f5;
  --note-brand: #d6c7b6;
  --note-sakura: #eadfdf;
  --note-matcha: #dfe8df;
  --note-indigo: #dbe8ee;
  --note-youtube: #f0e6e1;
  --note-chip: #dde8e8;
  --note-border: rgba(54, 78, 88, 0.14);
  --note-shadow: rgba(44, 64, 74, 0.15);
  --note-ink: #27363b;
  --note-text: #5b6b70;
  background:
    radial-gradient(circle at 20% 5%, rgba(255, 255, 255, 0.48), transparent 24%),
    linear-gradient(rgba(203, 216, 222, 0.46), rgba(193, 207, 214, 0.34)),
    #d7e1e6;
  background-size: auto, auto, auto;
}

body.weather-snowy {
  --note-base: #fbfeff;
  --note-statement: #f6fbfd;
  --note-skills: #f2f8f5;
  --note-contact: #eef8fb;
  --note-project: #ffffff;
  --note-brand: #eee5dc;
  --note-sakura: #f9eeee;
  --note-matcha: #eff6ef;
  --note-indigo: #eef7fb;
  --note-youtube: #fff7f3;
  --note-chip: #eef4f5;
  --note-border: rgba(91, 117, 130, 0.12);
  --note-shadow: rgba(80, 104, 118, 0.12);
  --note-ink: #24333a;
  --note-text: #60727a;
  background:
    radial-gradient(circle at 22% 8%, rgba(255, 255, 255, 0.84), transparent 30%),
    linear-gradient(rgba(245, 249, 250, 0.64), rgba(232, 241, 245, 0.34)),
    #edf4f6;
  background-size: auto, auto, auto;
}

body.weather-sunny {
  --note-base: #fff8e7;
  --note-statement: #fff0bc;
  --note-skills: #f3efcf;
  --note-contact: #f1f3df;
  --note-project: #fff9ea;
  --note-brand: #e7c695;
  --note-sakura: #f8dcd0;
  --note-matcha: #e8e7c9;
  --note-indigo: #e4ebdf;
  --note-youtube: #ffe6d8;
  --note-chip: #ead9b8;
  --note-border: rgba(119, 84, 38, 0.16);
  --note-shadow: rgba(111, 78, 30, 0.18);
  --note-ink: #2d2418;
  --note-text: #715f46;
  background:
    radial-gradient(circle at 82% 8%, rgba(246, 190, 88, 0.34), transparent 24%),
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.58), transparent 28%),
    linear-gradient(rgba(255, 249, 229, 0.48), rgba(250, 233, 194, 0.22)),
    #f6ead4;
  background-size: auto, auto, auto, auto;
}

body.weather-night::before,
body.weather-moon::before,
body.weather-sunny::before,
body.weather-rainy::before,
body.weather-snowy::before {
  opacity: 0;
}

.weather-effects {
  position: fixed;
  inset: 0;
  z-index: 10;
  overflow: hidden;
  max-width: 100vw;
  pointer-events: none;
}

.weather-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.weather-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  mix-blend-mode: multiply;
}

.moon-layer canvas,
.rain-layer canvas,
.snow-layer canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.moon-light-beam {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background: radial-gradient(
    ellipse at 90% 6%,
    rgba(180, 200, 230, 0.04) 0%,
    rgba(160, 180, 215, 0.015) 35%,
    transparent 65%
  );
}

.stars-wrap {
  position: absolute;
  inset: 0;
}

.moon-canvas-wrap {
  position: absolute;
  top: 5%;
  right: 12%;
  width: 90px;
  height: 90px;
}

#moonCanvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  filter: drop-shadow(0 0 12px rgba(200, 215, 235, 0.25))
          drop-shadow(0 0 40px rgba(180, 200, 230, 0.10));
}

.moon-canvas-wrap::before {
  position: absolute;
  inset: -45px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(180, 200, 230, 0.08) 25%,
    rgba(160, 185, 225, 0.03) 50%,
    transparent 70%
  );
  content: "";
  animation: haloPulse 14s ease-in-out infinite;
}

@keyframes haloPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.06); opacity: 1; }
}

.sun-layer {
  background:
    radial-gradient(circle at 82% 8%, rgba(255, 205, 92, 0.18), transparent 18%),
    linear-gradient(115deg, rgba(255, 231, 156, 0.1), transparent 46%);
}

.sun-layer::after {
  position: absolute;
  inset: -80px 0 0;
  background-image:
    radial-gradient(ellipse at center, rgba(178, 132, 52, 0.06) 0 34%, transparent 37%),
    radial-gradient(ellipse at center, rgba(128, 143, 83, 0.05) 0 30%, transparent 34%);
  background-position: 12px 18px, 130px 64px;
  background-size: 150px 190px, 210px 250px;
  content: "";
  opacity: 0.5;
  animation: sunny-drift 11s linear infinite;
}

.rain-fog {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(70, 80, 95, 0.15) 0%, transparent 45%),
    radial-gradient(ellipse at 20% 85%, rgba(60, 70, 85, 0.08) 0%, transparent 35%),
    radial-gradient(ellipse at 80% 90%, rgba(55, 65, 80, 0.06) 0%, transparent 30%);
  animation: fogDrift 25s ease-in-out infinite alternate;
}

@keyframes fogDrift {
  0%   { transform: translateX(-1.5%); opacity: 0.7; }
  100% { transform: translateX(1.5%); opacity: 1; }
}

.snow-glow {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(53, 67, 82, 0.22) 0%, rgba(70, 88, 109, 0.12) 35%, rgba(25, 34, 46, 0.08) 100%),
    radial-gradient(ellipse at 18% 18%, rgba(255, 255, 255, 0.34) 0%, transparent 38%),
    radial-gradient(ellipse at 82% 26%, rgba(240, 247, 255, 0.22) 0%, transparent 34%),
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.12) 0%, transparent 55%);
  animation: snowGlowPulse 8s ease-in-out infinite alternate;
}

@keyframes snowGlowPulse {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

body.weather-moon .moon-layer,
body.weather-sunny .sun-layer,
body.weather-rainy .rain-layer,
body.weather-snowy .snow-layer {
  opacity: 1;
}

body.weather-sunny .weather-canvas {
  opacity: 1;
}

main {
  position: relative;
  z-index: 2;
}

@keyframes sunny-drift {
  to {
    transform: translate3d(-80px, 240px, 0) rotate(12deg);
  }
}

body.case-open,
body.paper-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  letter-spacing: 0;
}

button {
  border: 0;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 50;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: #fffaf1;
  color: var(--ink);
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 16px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: var(--topbar-height);
  padding: 16px 30px;
  border-bottom: 0;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 251, 242, 0.88), rgba(247, 236, 220, 0.88)),
    rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 7px 22px rgba(64, 46, 24, 0.08);
}

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

.topbar::after {
  display: none;
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 7px;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      92deg,
      transparent 0 11px,
      rgba(55, 45, 33, 0.18) 11px 12px,
      transparent 12px 26px
    ),
    linear-gradient(
      178deg,
      transparent 0 2px,
      rgba(50, 42, 31, 0.23) 2px 3px,
      rgba(255, 249, 238, 0.28) 3px 4px,
      rgba(50, 42, 31, 0.16) 4px 5px,
      transparent 5px
  );
  content: "";
  opacity: 0.75;
  transform: rotate(-0.15deg);
  -webkit-mask-image: linear-gradient(90deg, #000 0 var(--header-mask-stop, 0%), transparent var(--header-mask-stop, 0%) 100%);
  -webkit-mask-position: left center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-image: linear-gradient(90deg, #000 0 var(--header-mask-stop, 0%), transparent var(--header-mask-stop, 0%) 100%);
  mask-position: left center;
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
}

.topbar::before {
  position: absolute;
  left: 0;
  bottom: 1px;
  z-index: 2;
  width: 58px;
  height: 12px;
  pointer-events: none;
  background:
    linear-gradient(90deg, #2c2925 0 7px, #d4ad6b 7px 16px, #f0cf7c 16px 46px, #c9655b 46px 58px);
  border: 1px solid rgba(45, 36, 25, 0.28);
  border-radius: 2px 7px 7px 2px;
  box-shadow: 0 2px 5px rgba(45, 36, 25, 0.16);
  content: "";
  transform: translateX(-64px) rotate(-2deg);
  animation: pencil-travel 1350ms cubic-bezier(0.33, 0, 0.2, 1) 80ms forwards;
}

@keyframes pencil-travel {
  0% {
    opacity: 0;
    transform: translateX(-64px) translateY(1px) rotate(-3deg);
  }

  12% {
    opacity: 1;
  }

  78% {
    opacity: 1;
    transform: translateX(calc(100vw - 72px)) translateY(-1px) rotate(-1deg);
  }

  100% {
    opacity: 0;
    transform: translateX(calc(100vw + 20px)) translateY(-1px) rotate(-1deg);
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 330px;
}

.brand-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: rgba(255, 249, 238, 0.68);
  color: var(--ink);
  font-family: var(--display-font);
  font-weight: 700;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-family: var(--display-font);
  font-size: 1.42rem;
  line-height: 1.04;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-links {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 26px;
}

.nav-links a,
.nav-links button,
.text-button,
.primary-link,
.filter,
.tool-button,
.case-button {
  min-height: 40px;
  border-radius: 6px;
  cursor: pointer;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease,
    color 140ms ease;
}

.nav-links a,
.nav-links button {
  position: relative;
  padding: 10px 4px;
  border: 0;
  background: transparent;
  color: #4d463d;
  font-size: 1rem;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links button:hover,
.nav-links button:focus-visible {
  background: transparent;
  color: var(--ink);
}

.nav-links button.is-active {
  background: transparent;
  color: var(--ink);
}

.nav-links button::after {
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 4px;
  height: 4px;
  background:
    repeating-linear-gradient(
      91deg,
      currentColor 0 5px,
      transparent 5px 7px,
      currentColor 7px 12px
  );
  content: "";
  opacity: 0;
  transform: rotate(-4deg);
  transform-origin: left center;
  clip-path: polygon(0 42%, 18% 24%, 42% 52%, 70% 30%, 100% 45%, 100% 82%, 70% 68%, 41% 88%, 17% 62%, 0 76%);
  -webkit-mask-image: linear-gradient(90deg, #000 0 var(--nav-mask-stop, 0%), transparent var(--nav-mask-stop, 0%) 100%);
  -webkit-mask-position: left center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-image: linear-gradient(90deg, #000 0 var(--nav-mask-stop, 0%), transparent var(--nav-mask-stop, 0%) 100%);
  mask-position: left center;
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
}

.nav-links button.is-active::after,
.nav-links button:hover::after {
  opacity: 0.78;
}

.weather-switch {
  display: flex;
  flex: 0 0 auto;
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(93, 73, 47, 0.12);
  border-radius: 8px;
  background: rgba(255, 249, 238, 0.68);
  box-shadow: 0 5px 12px rgba(75, 54, 29, 0.08);
}

.weather-switch button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #5f5549;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 700;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.weather-switch button:hover,
.weather-switch button:focus-visible {
  border-color: rgba(93, 73, 47, 0.14);
  background: rgba(234, 220, 201, 0.65);
  color: var(--ink);
}

.weather-switch button.is-active {
  border-color: rgba(37, 34, 29, 0.18);
  background: #5b5146;
  color: #fffaf1;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.text-button,
.primary-link {
  display: inline-grid;
  place-items: center;
  min-width: 124px;
  padding: 0 18px;
  border: 1px solid rgba(93, 73, 47, 0.12);
  background: #eadcc9;
  color: var(--ink);
  white-space: nowrap;
  box-shadow: 0 5px 12px rgba(75, 54, 29, 0.08);
}

.primary-link {
  border-color: rgba(91, 65, 35, 0.24);
  background: #8f7355;
  color: #fffaf1;
}

.text-button:hover,
.primary-link:hover,
.case-button:hover,
.filter:hover,
.tool-button:hover {
  transform: translateY(-1px);
}

.canvas-shell {
  position: relative;
  min-height: calc(100vh - var(--topbar-height));
}

.canvas-tools {
  position: fixed;
  left: 26px;
  top: calc(var(--topbar-height) + 28px);
  z-index: 16;
  display: grid;
  gap: 0;
  width: 48px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(93, 73, 47, 0.14);
  border-radius: 8px;
  background: rgba(255, 249, 238, 0.86);
  box-shadow: 0 12px 24px rgba(64, 46, 24, 0.1);
}

.tool-button {
  display: grid;
  width: 46px;
  height: 43px;
  place-items: center;
  border: 0;
  border-bottom: 1px solid rgba(93, 73, 47, 0.12);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
}

.tool-button-wide {
  font-size: 0.82rem;
}

#zoomValue {
  display: grid;
  min-height: 43px;
  place-items: center;
  border-bottom: 1px solid rgba(93, 73, 47, 0.12);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
  text-align: center;
}

.filter-bar {
  position: fixed;
  right: 30px;
  top: calc(var(--topbar-height) + 22px);
  z-index: 16;
  display: flex;
  max-width: calc(100vw - 112px);
  gap: 0;
  padding: 4px;
  overflow-x: auto;
  border: 1px solid rgba(93, 73, 47, 0.12);
  border-radius: 8px;
  background: rgba(255, 249, 238, 0.9);
  box-shadow: 0 12px 24px rgba(64, 46, 24, 0.1);
}

.filter {
  min-width: 88px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  white-space: nowrap;
}

.filter.is-active {
  border-color: rgba(37, 34, 29, 0.16);
  background: #5b5146;
  color: #fffaf1;
}

.board-viewport {
  height: calc(100vh - var(--topbar-height));
  overflow: auto;
  overscroll-behavior: contain;
  padding: 42px 38px 54px 88px;
}

.board-viewport.is-panning,
.board-viewport.is-panning .board-node {
  cursor: grabbing;
}

.board-space {
  position: relative;
  width: 2140px;
  height: 1240px;
  min-width: 100%;
}

.board {
  position: relative;
  width: 2140px;
  height: 1240px;
  transform-origin: left top;
}

.board-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: var(--z, 1);
  width: var(--w);
  transform: rotate(var(--r, 0deg));
  outline: none;
  touch-action: none;
}

.board-node[data-draggable="true"] {
  cursor: grab;
}

.board-node.is-dragging {
  z-index: 50;
  cursor: grabbing;
  filter: drop-shadow(0 22px 32px rgba(45, 37, 26, 0.2));
}

.board-node:focus-visible {
  box-shadow: 0 0 0 3px rgba(46, 83, 108, 0.35);
}

.intro-note,
.statement-note,
.skills-note,
.contact-note,
.mini-project,
.project-card {
  border: 1px solid var(--note-border);
  border-radius: var(--card-radius);
  color: var(--note-ink);
  box-shadow:
    0 16px 26px var(--note-shadow),
    0 2px 0 rgba(255, 255, 255, 0.55) inset;
  transition:
    border-color 520ms ease,
    box-shadow 520ms ease;
}

.intro-note,
.statement-note,
.skills-note,
.contact-note,
.mini-project {
  padding: 25px;
  background:
    repeating-radial-gradient(circle at 0 0, rgba(80, 61, 38, 0.035) 0 1px, transparent 1px 8px),
    linear-gradient(105deg, rgba(255, 255, 255, 0.48), transparent 44%),
    var(--note-base);
}

.tape-note::before {
  position: absolute;
  left: 34px;
  top: -24px;
  width: 116px;
  height: 34px;
  border: 1px solid rgba(100, 90, 74, 0.08);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0)),
    rgba(218, 178, 112, 0.36);
  content: "";
  transform: rotate(-13deg);
}

.intro-note::after {
  position: absolute;
  right: 26px;
  bottom: 28px;
  display: grid;
  width: 34px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(184, 78, 69, 0.82);
  color: var(--kurenai);
  content: "CL";
  font-family: var(--display-font);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
  opacity: 0.84;
}

.eyebrow,
.project-kicker,
.note-label {
  margin: 0 0 8px;
  color: #4b5364;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.intro-note h1,
.statement-note h2,
.skills-note h2,
.contact-note h2,
.case-panel h2 {
  margin: 0;
  line-height: 1.1;
}

.intro-note h1 {
  font-family: var(--display-font);
  font-size: 2.68rem;
  font-weight: 700;
  overflow-wrap: normal;
}

.intro-note p,
.statement-note p,
.project-card p,
.mini-project p,
.contact-note p,
.case-panel p {
  margin: 12px 0 0;
  color: var(--note-text);
  line-height: 1.62;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.intro-actions a,
.intro-actions button,
.role-pill {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 700;
}

.intro-actions a,
.intro-actions button {
  padding: 0 11px;
  border: 1px solid rgba(72, 57, 36, 0.11);
  background: var(--note-chip);
  color: var(--note-ink);
  cursor: pointer;
  transition: border-color 260ms ease;
}

.statement-note {
  background:
    repeating-radial-gradient(circle at 0 0, rgba(80, 61, 38, 0.032) 0 1px, transparent 1px 8px),
    linear-gradient(105deg, rgba(255, 255, 255, 0.34), transparent 46%),
    var(--note-statement);
}

.statement-note h2,
.skills-note h2,
.contact-note h2 {
  font-family: var(--display-font);
  font-size: 1.5rem;
  line-height: 1.1;
}

.project-card {
  overflow: visible;
  background:
    repeating-radial-gradient(circle at 0 0, rgba(80, 61, 38, 0.034) 0 1px, transparent 1px 8px),
    linear-gradient(102deg, rgba(255, 255, 255, 0.46), transparent 40%),
    var(--note-project);
}

.project-card img {
  width: calc(100% - 48px);
  margin: 28px 24px 0;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(72, 57, 36, 0.12);
  border-radius: 2px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.58);
}

.project-card img[src*="truecost-case-hero"] {
  object-fit: contain;
  background: #1f2426;
}

.project-body {
  padding: 21px 26px 28px;
}

.project-card h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.08;
}

.dark-card {
  border-color: rgba(72, 57, 36, 0.13);
  background:
    repeating-radial-gradient(circle at 0 0, rgba(80, 61, 38, 0.055) 0 1px, transparent 1px 8px),
    linear-gradient(105deg, rgba(255, 255, 255, 0.16), transparent 42%),
    var(--note-brand);
  color: var(--note-ink);
}

.dark-card .project-body p,
.dark-card .project-meta dd,
.dark-card .project-meta dt {
  color: var(--note-text);
}

.dark-card .project-kicker {
  color: color-mix(in srgb, var(--note-ink) 76%, #5f84a0 24%);
}

.dark-card .tag-list span {
  border-color: rgba(72, 57, 36, 0.11);
  background: color-mix(in srgb, var(--note-chip) 42%, transparent);
  color: var(--note-ink);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(72, 57, 36, 0.12);
  border-radius: 5px;
  background: var(--note-chip);
  color: var(--note-ink);
  font-size: 0.8rem;
  font-weight: 700;
}

.project-meta {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
}

.project-meta div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
}

.project-meta dt {
  color: var(--note-ink);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-meta dd {
  margin: 0;
  color: var(--note-text);
  font-size: 0.92rem;
}

.case-button {
  display: inline-flex;
  min-width: 226px;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding: 0 18px;
  border: 1px solid rgba(72, 57, 36, 0.11);
  border-radius: 5px;
  background: var(--note-chip);
  color: var(--note-ink);
  font-weight: 700;
  box-shadow: 0 7px 14px rgba(75, 54, 29, 0.08);
}

.case-button::after {
  margin-left: 18px;
  content: "->";
  font-size: 1.12rem;
  font-weight: 500;
}

.dark-card .case-button {
  border-color: rgba(72, 57, 36, 0.11);
  background: color-mix(in srgb, var(--note-chip) 46%, transparent);
  color: var(--note-ink);
}

.pin {
  position: absolute;
  left: 50%;
  top: -14px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(79, 57, 30, 0.2);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 32%, rgba(255, 255, 255, 0.38), transparent 30%),
    radial-gradient(circle at 64% 72%, rgba(82, 57, 28, 0.18), transparent 42%),
    #c7a777;
  box-shadow:
    0 6px 12px rgba(25, 20, 14, 0.18),
    inset 0 -2px 4px rgba(75, 48, 18, 0.13);
  transform: translateX(-50%);
}

.pin-sakura {
  background:
    radial-gradient(circle at 35% 32%, rgba(255, 255, 255, 0.38), transparent 30%),
    radial-gradient(circle at 64% 72%, rgba(82, 57, 28, 0.18), transparent 42%),
    #c7a777;
}

.pin-indigo {
  background:
    radial-gradient(circle at 35% 32%, rgba(255, 255, 255, 0.38), transparent 30%),
    radial-gradient(circle at 64% 72%, rgba(82, 57, 28, 0.18), transparent 42%),
    #c7a777;
}

.pin-matcha {
  background:
    radial-gradient(circle at 35% 32%, rgba(255, 255, 255, 0.38), transparent 30%),
    radial-gradient(circle at 64% 72%, rgba(82, 57, 28, 0.18), transparent 42%),
    #c7a777;
}

.skills-note {
  background:
    repeating-radial-gradient(circle at 0 0, rgba(80, 61, 38, 0.032) 0 1px, transparent 1px 8px),
    linear-gradient(105deg, rgba(255, 255, 255, 0.34), transparent 46%),
    var(--note-skills);
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.skill-cloud li {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(116, 135, 90, 0.26);
  border-radius: 5px;
  background: color-mix(in srgb, var(--note-chip) 72%, white 28%);
  color: var(--note-ink);
  font-size: 0.84rem;
  font-weight: 700;
}

.mini-project {
  min-height: 150px;
}

.mini-project h3 {
  margin: 0;
  font-family: var(--display-font);
  font-size: 1.34rem;
  line-height: 1.16;
}

.note-sakura {
  background: var(--note-sakura);
}

.note-matcha {
  background: var(--note-matcha);
}

.note-indigo {
  background: var(--note-indigo);
}

.note-youtube {
  background:
    repeating-radial-gradient(circle at 0 0, rgba(122, 53, 34, 0.035) 0 1px, transparent 1px 8px),
    linear-gradient(105deg, rgba(255, 255, 255, 0.36), transparent 46%),
    var(--note-youtube);
}

.youtube-note {
  min-height: 254px;
}

.board-node[data-note-link],
.board-node[data-note-paper-target],
.board-node[data-note-filter] {
  cursor: pointer;
}

.board-node[data-note-link].is-dragging,
.board-node[data-note-paper-target].is-dragging,
.board-node[data-note-filter].is-dragging {
  cursor: grabbing;
}

.youtube-note-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.youtube-channel-link,
.youtube-title-link {
  color: inherit;
  text-decoration: none;
}

.youtube-channel-link {
  width: max-content;
  max-width: 100%;
}

.youtube-channel-link:hover,
.youtube-title-link:hover,
.role-pill:hover {
  border-color: rgba(43, 37, 30, 0.26);
}

.youtube-note-head .project-kicker {
  margin: 0;
}

.youtube-icon {
  position: relative;
  display: inline-flex;
  width: 32px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 7px;
  background: #e33a1d;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.54);
}

.youtube-icon::after {
  position: absolute;
  top: 6px;
  left: 12px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #fff;
  content: "";
}

.youtube-stat {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: baseline;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(72, 57, 36, 0.1);
  border-radius: 5px;
  background: color-mix(in srgb, var(--note-chip) 52%, transparent);
  color: var(--note-ink);
}

.youtube-stat strong {
  font-family: var(--display-font);
  font-size: 1.32rem;
  line-height: 1;
}

.youtube-stat span {
  color: var(--note-text);
  font-size: 0.82rem;
  font-weight: 700;
}

.role-pill {
  margin-top: 16px;
  padding: 0 10px;
  border: 1px solid rgba(43, 37, 30, 0.15);
  background: color-mix(in srgb, var(--note-chip) 68%, white 32%);
  color: var(--note-ink);
  text-decoration: none;
  transition: border-color 260ms ease;
}

.card-label {
  width: max-content;
  max-width: 100%;
  font-weight: 700;
}

.contact-note {
  background:
    repeating-radial-gradient(circle at 0 0, rgba(80, 61, 38, 0.032) 0 1px, transparent 1px 8px),
    linear-gradient(105deg, rgba(255, 255, 255, 0.34), transparent 46%),
    var(--note-contact);
}

.contact-note address {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  color: var(--note-text);
  font-style: normal;
}

.contact-note address a {
  color: var(--note-ink);
  font-weight: 800;
  overflow-wrap: anywhere;
}

body.weather-sunny .intro-note,
body.weather-sunny .statement-note,
body.weather-sunny .skills-note,
body.weather-sunny .contact-note,
body.weather-sunny .mini-project,
body.weather-sunny .project-card {
  color: #2d2418;
}

body.weather-sunny .intro-note p,
body.weather-sunny .statement-note p,
body.weather-sunny .project-card p,
body.weather-sunny .mini-project p,
body.weather-sunny .contact-note p {
  color: #715f46;
}

body.weather-rainy .intro-note,
body.weather-rainy .statement-note,
body.weather-rainy .skills-note,
body.weather-rainy .contact-note,
body.weather-rainy .mini-project,
body.weather-rainy .project-card {
  color: #27363b;
}

body.weather-rainy .intro-note p,
body.weather-rainy .statement-note p,
body.weather-rainy .project-card p,
body.weather-rainy .mini-project p,
body.weather-rainy .contact-note p {
  color: #5b6b70;
}

body.weather-night .intro-note,
body.weather-night .statement-note,
body.weather-night .skills-note,
body.weather-night .contact-note,
body.weather-night .mini-project,
body.weather-night .project-card,
body.weather-moon .intro-note,
body.weather-moon .statement-note,
body.weather-moon .skills-note,
body.weather-moon .contact-note,
body.weather-moon .mini-project,
body.weather-moon .project-card {
  color: #f4eedb;
}

body.weather-night .intro-note p,
body.weather-night .statement-note p,
body.weather-night .project-card p,
body.weather-night .mini-project p,
body.weather-night .contact-note p,
body.weather-moon .intro-note p,
body.weather-moon .statement-note p,
body.weather-moon .project-card p,
body.weather-moon .mini-project p,
body.weather-moon .contact-note p {
  color: rgba(244, 240, 224, 0.74);
}

body.weather-snowy .intro-note,
body.weather-snowy .statement-note,
body.weather-snowy .skills-note,
body.weather-snowy .contact-note,
body.weather-snowy .mini-project,
body.weather-snowy .project-card {
  color: #24333a;
}

body.weather-snowy .intro-note p,
body.weather-snowy .statement-note p,
body.weather-snowy .project-card p,
body.weather-snowy .mini-project p,
body.weather-snowy .contact-note p {
  color: #60727a;
}

.connector {
  z-index: 0;
  height: 2px;
  border-top: 2px dashed rgba(46, 83, 108, 0.32);
  box-shadow: none;
  transform-origin: left center;
}

.connector-one {
  transform: rotate(12deg);
}

.connector-two {
  transform: rotate(-38deg);
}

.connector-three {
  transform: rotate(22deg);
}

[data-project-card].is-muted {
  opacity: 0.22;
  pointer-events: none;
}

.case-panel {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 40;
  width: min(430px, 100%);
  padding: 14px;
  border-left: 1px solid var(--line);
  background: rgba(35, 32, 27, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.case-panel[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.case-panel-inner {
  position: relative;
  height: 100%;
  overflow-y: auto;
  padding: 22px;
  border: 1px solid rgba(43, 37, 30, 0.16);
  border-radius: var(--card-radius);
  background: #fffaf1;
  box-shadow: -18px 0 42px rgba(22, 18, 12, 0.22);
}

.close-button {
  position: absolute;
  right: 18px;
  top: 18px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fffaf1;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.case-panel h2 {
  max-width: 310px;
  font-size: 2rem;
}

.case-panel img {
  width: 100%;
  margin-top: 20px;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  object-fit: cover;
}

.case-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.case-section h3 {
  margin: 0;
  font-size: 1rem;
}

.case-section ul {
  display: grid;
  gap: 9px;
  padding-left: 18px;
  margin: 12px 0 0;
  color: var(--muted);
}

.paper-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 90px 24px 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.paper-overlay[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.paper-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(38, 31, 22, 0.2);
  cursor: zoom-out;
  backdrop-filter: blur(2px);
}

.paper-sheet {
  position: relative;
  width: min(920px, calc(100vw - 40px));
  max-height: min(780px, calc(100vh - 118px));
  overflow-y: auto;
  padding: 34px;
  border: 1px solid rgba(43, 37, 30, 0.18);
  border-radius: var(--card-radius);
  background:
    linear-gradient(90deg, rgba(43, 37, 30, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(43, 37, 30, 0.04) 1px, transparent 1px),
    #fffaf1;
  background-size: 28px 28px;
  box-shadow: 0 28px 80px rgba(31, 25, 17, 0.32);
  transform: translateY(28px) scale(0.84);
  transform-origin: center;
  transition: transform 220ms ease;
}

.paper-overlay[aria-hidden="false"] .paper-sheet {
  transform: translateY(0) scale(1);
}

.paper-sheet::before {
  position: absolute;
  left: 42px;
  top: -13px;
  width: 112px;
  height: 28px;
  border: 1px solid rgba(100, 90, 74, 0.14);
  background: rgba(232, 219, 177, 0.72);
  content: "";
  transform: rotate(-4deg);
}

.paper-sheet h2 {
  max-width: 720px;
  margin: 0;
  font-size: 2.4rem;
  line-height: 1.08;
}

.paper-sheet h3 {
  margin: 0;
  font-size: 1.36rem;
  line-height: 1.14;
}

.paper-sheet h4 {
  margin: 18px 0 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
}

.paper-sheet p {
  margin: 12px 0 0;
  color: var(--muted);
}

.paper-page {
  display: none;
  margin-top: 26px;
}

.paper-page.is-active {
  display: block;
}

.paper-grid,
.paper-project-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
  gap: 24px;
  align-items: start;
}

.paper-callout {
  padding: 20px;
  border: 1px solid rgba(43, 37, 30, 0.14);
  border-radius: var(--card-radius);
  background: rgba(232, 237, 220, 0.78);
}

.paper-callout ul,
.paper-facts {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}

.paper-callout ul {
  padding-left: 18px;
  color: var(--muted);
}

.paper-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.paper-strip span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--indigo-soft);
  color: var(--aizome);
  font-size: 0.86rem;
  font-weight: 800;
}

.paper-hero-image {
  width: 100%;
  aspect-ratio: 16 / 7;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  object-fit: cover;
}

.paper-project-layout {
  margin-top: 24px;
}

.case-study-stack {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.case-study-section,
.case-study-card,
.dairy-drop-note {
  padding: 18px;
  border: 1px solid rgba(43, 37, 30, 0.14);
  border-radius: var(--card-radius);
  background: rgba(255, 250, 241, 0.74);
}

.case-study-card,
.dairy-drop-note {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.case-study-card.reverse {
  grid-template-columns: minmax(0, 1fr) 260px;
}

.case-study-card.wide-asset {
  grid-template-columns: 1fr;
}

.case-study-card.wide-asset img {
  width: 100%;
  max-height: none;
  aspect-ratio: 16 / 5;
  object-fit: contain;
  background: #fff;
}

.case-study-card.reverse img {
  order: 2;
}

.case-study-card img,
.dairy-drop-note img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  object-fit: cover;
  background: #fff;
}

.case-study-card img {
  max-height: 360px;
  object-fit: contain;
}

.survey-card img {
  object-fit: contain;
}

.process-list {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  margin: 16px 0 0;
  color: var(--muted);
}

.process-list strong {
  color: var(--ink);
}

.final-outcome {
  background: rgba(227, 237, 241, 0.74);
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.outcome-grid span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffaf1;
  color: var(--aizome);
  font-size: 0.84rem;
  font-weight: 900;
  text-align: center;
}

.mockup-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
  align-items: stretch;
}

.mockup-gallery > img,
.qr-card {
  width: 100%;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--charcoal);
}

.mockup-gallery > img {
  object-fit: contain;
}

.qr-card {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  margin: 0;
  padding: 18px;
  background: #fffaf1;
}

.qr-card img {
  width: min(150px, 100%);
}

.qr-card figcaption {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.dairy-drop-note {
  margin-top: 24px;
  background: rgba(250, 226, 224, 0.76);
}

.text-only-note {
  grid-template-columns: 1fr;
}

.dairy-drop-note img {
  aspect-ratio: 16 / 10;
}

.paper-facts {
  padding: 0;
}

.paper-facts div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.paper-facts dt {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.paper-facts dd {
  margin: 0;
  color: var(--muted);
}

.paper-contact-list {
  display: grid;
  gap: 9px;
  margin-top: 18px;
  color: var(--muted);
  font-style: normal;
}

.paper-contact-list a {
  color: var(--aizome);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(43, 37, 30, 0.14);
  border-radius: var(--card-radius);
  background: rgba(227, 237, 241, 0.72);
}

.contact-form label {
  display: grid;
  gap: 6px;
}

.contact-form span {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(43, 37, 30, 0.18);
  border-radius: 6px;
  background: #fffaf1;
  color: var(--ink);
}

.contact-form input,
.contact-form select {
  min-height: 42px;
  padding: 0 11px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 128px;
  padding: 10px 11px;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--aizome);
  font-size: 0.9rem;
  font-weight: 800;
}

@media (max-width: 1060px) {
  .topbar {
    flex-wrap: wrap;
  }

  .brand {
    flex: 1 1 280px;
  }

  .nav-links {
    order: 3;
    flex: 1 0 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .weather-switch {
    order: 2;
  }

  .board-viewport {
    padding-left: 78px;
  }
}

@media (max-width: 760px) {
  :root {
    --topbar-height: 118px;
  }

  body.case-open,
  body.paper-open {
    overflow: hidden;
  }

  .topbar {
    position: relative;
    align-items: flex-start;
    padding: 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 0.92rem;
  }

  .brand-copy strong {
    font-size: 0.94rem;
  }

  .brand-copy span {
    font-size: 0.76rem;
  }

  .top-actions {
    width: 100%;
    justify-content: space-between;
  }

  .weather-switch {
    width: 100%;
    justify-content: space-between;
  }

  .weather-switch button {
    width: auto;
    flex: 1;
  }

  .text-button,
  .primary-link {
    flex: 1;
  }

  .canvas-tools {
    display: none;
  }

  .filter-bar {
    position: sticky;
    top: 0;
    right: auto;
    z-index: 12;
    flex-wrap: wrap;
    margin: 10px 12px 0;
    max-width: none;
    overflow: visible;
  }

  .filter {
    flex: 1 1 94px;
  }

  .board-viewport {
    height: auto;
    overflow: visible;
    padding: 14px 12px 32px;
  }

  .board-space,
  .board {
    width: 100%;
    height: auto;
  }

  .board {
    display: grid;
    gap: 16px;
    transform: none !important;
  }

  .board-node {
    position: relative;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    transform: none !important;
    touch-action: auto;
  }

  .board-node[data-draggable="true"] {
    cursor: default;
  }

  .connector {
    display: none;
  }

  .intro-note h1 {
    font-size: 2rem;
    white-space: normal;
  }

  .project-card h2,
  .case-panel h2,
  .paper-sheet h2 {
    font-size: 1.64rem;
  }

  .project-meta div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .case-panel {
    width: 100%;
    padding: 10px;
  }

  .paper-overlay {
    align-items: start;
    padding: 12px;
  }

  .paper-sheet {
    width: 100%;
    max-height: calc(100vh - 24px);
    padding: 26px 18px 20px;
    transform: translateY(18px) scale(0.92);
  }

  .paper-grid,
  .paper-project-layout,
  .contact-grid,
  .case-study-section,
  .case-study-card,
  .case-study-card.reverse,
  .dairy-drop-note {
    grid-template-columns: 1fr;
  }

  .case-study-card.reverse img {
    order: 0;
  }

  .case-study-card.wide-asset img {
    aspect-ratio: 16 / 7;
  }

  .paper-hero-image {
    aspect-ratio: 16 / 10;
  }

  .paper-facts div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .outcome-grid,
  .mockup-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .mockup-gallery > img,
  .qr-card {
    min-height: 210px;
  }
}

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