:root {
  --vanilla: #eae2ca;
  --white: #fff;
  --blue-fallback: #0875e1;
  --blue: oklch(0.58 0.22 252);
  --blue-deep-fallback: #102f72;
  --blue-deep: oklch(0.42 0.17 255);
  --blue-wash: oklch(0.965 0.025 252);
  --red-fallback: #ef171f;
  --red: oklch(0.628 0.258 29.23);
  --red-wash: oklch(0.97 0.025 29.23);
  --ink: #071a43;
  --line-blue: color-mix(in oklch, var(--blue) 32%, transparent);
  --line-red: color-mix(in oklch, var(--red) 28%, transparent);
  --surface: color-mix(in oklch, var(--white) 87%, var(--vanilla));
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-condensed: "Arial Narrow", "Helvetica Neue Condensed", Helvetica, Arial, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --topbar: 68px;
  --dock: 58px;
  --z-canvas: 1;
  --z-wires: 2;
  --z-nodes: 3;
  --z-header: 10;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  min-width: 320px;
  background: var(--vanilla);
  color: var(--ink);
  font-family: var(--font);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--vanilla);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { color: inherit; font: inherit; }
a { color: inherit; }

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  z-index: calc(var(--z-header) + 1);
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border: 2px solid var(--red);
  background: var(--white);
  color: var(--blue-deep);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus { transform: translateY(0); }

.topbar {
  position: fixed;
  z-index: var(--z-header);
  inset: 0 0 auto;
  height: var(--topbar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(16px, 3vw, 48px);
  border-bottom: 1px solid color-mix(in oklch, var(--blue-deep) 18%, transparent);
  background: color-mix(in oklch, var(--vanilla) 91%, transparent);
  backdrop-filter: blur(14px) saturate(1.08);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-deep);
  font-family: var(--font-condensed);
  font-size: clamp(0.75rem, 1.2vw, 0.92rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  min-width: 44px;
  min-height: 44px;
}

.wordmark-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 2px solid var(--red);
  border-radius: 50%;
  color: var(--red);
  font-size: 0.66rem;
  letter-spacing: -0.08em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, 2vw, 26px);
}

.availability {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-deep);
  font-size: 0.72rem;
  font-weight: 700;
}

.availability > span:first-child {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--red) 12%, transparent);
}

.replay-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--blue-deep);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
}

.replay-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 500ms var(--ease-out);
}

.replay-button:hover svg { transform: rotate(-150deg); }

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: color-mix(in oklch, var(--blue-deep) 44%, transparent);
  font-size: 0.72rem;
  font-weight: 800;
}

.language-switch button {
  min-width: 44px;
  min-height: 44px;
  padding: 7px 4px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  color: var(--red);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.node-stage {
  position: relative;
  min-height: max(100svh, 760px);
  overflow: hidden;
  isolation: isolate;
  background-color: var(--vanilla);
  background-image:
    linear-gradient(to right, color-mix(in oklch, var(--blue) 7%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklch, var(--blue) 7%, transparent) 1px, transparent 1px),
    radial-gradient(circle at 12% 22%, color-mix(in oklch, var(--red) 8%, transparent) 0 1px, transparent 1.5px),
    radial-gradient(circle at 82% 76%, color-mix(in oklch, var(--blue) 9%, transparent) 0 1px, transparent 1.5px);
  background-size: 36px 36px, 36px 36px, 16px 16px, 20px 20px;
}

.node-stage::before,
.node-stage::after {
  content: "";
  position: absolute;
  z-index: var(--z-canvas);
  border: 1px solid color-mix(in oklch, var(--red) 18%, transparent);
  border-radius: 50%;
  pointer-events: none;
}

.node-stage::before {
  width: min(40vw, 520px);
  aspect-ratio: 1;
  top: -24vw;
  right: -12vw;
}

.node-stage::after {
  width: min(28vw, 360px);
  aspect-ratio: 1;
  bottom: -18vw;
  left: -9vw;
}

.canvas-meta {
  position: absolute;
  z-index: var(--z-nodes);
  color: color-mix(in oklch, var(--blue-deep) 55%, transparent);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  pointer-events: none;
}

.canvas-meta-top { top: calc(var(--topbar) + 18px); left: clamp(16px, 3vw, 48px); }
.canvas-meta-side { right: 12px; top: 50%; transform: rotate(90deg) translateX(50%); transform-origin: right center; }

.registration-mark {
  position: absolute;
  z-index: var(--z-canvas);
  color: color-mix(in oklch, var(--red) 45%, transparent);
  font-size: 1.3rem;
  font-weight: 300;
  pointer-events: none;
}

.registration-mark-a { top: 16%; right: 8%; }
.registration-mark-b { bottom: 14%; left: 25%; }

.connection-layer {
  position: absolute;
  z-index: var(--z-wires);
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.connection-path,
.connection-path-shadow {
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.connection-path-shadow {
  stroke: color-mix(in oklch, var(--red) 12%, transparent);
  stroke-width: 7;
}

.connection-path {
  stroke: var(--red);
  stroke-width: 2.25;
}

.connection-path.is-detail { stroke-width: 1.8; }

.wire-pulse {
  fill: var(--vanilla);
  stroke: var(--red);
  stroke-width: 2;
}

.license-zone {
  position: absolute;
  z-index: var(--z-nodes);
  top: 50%;
  left: 50%;
  width: min(78vw, calc((100svh - var(--topbar) - var(--dock) - 94px) * 1.49), 920px);
  transform: translate(-50%, -50%);
  transition:
    top 900ms var(--ease-out),
    left 900ms var(--ease-out),
    width 900ms var(--ease-out),
    transform 900ms var(--ease-out);
}

.node-stage.is-open .license-zone {
  top: calc(var(--topbar) + 3.2vh);
  left: 59%;
  width: min(43vw, 600px);
  transform: translateX(-50%);
}

.license-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: center;
}

.license-trigger:focus-visible { outline: none; }

.license-trigger:focus-visible .license-frame {
  box-shadow:
    0 2px 0 color-mix(in oklch, var(--white) 80%, transparent) inset,
    0 0 0 3px var(--red),
    0 24px 62px color-mix(in oklch, var(--blue-deep) 21%, transparent);
}

.license-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: clamp(10px, 1.4vw, 22px);
  background: var(--white);
  box-shadow:
    0 2px 0 color-mix(in oklch, var(--white) 80%, transparent) inset,
    0 0 0 1px color-mix(in oklch, var(--blue-deep) 18%, transparent),
    0 32px 86px color-mix(in oklch, var(--blue-deep) 23%, transparent);
  transform: perspective(1300px) rotateX(0deg) rotateY(0deg) scale(1);
  transform-style: preserve-3d;
  transition: transform 700ms var(--ease-out), box-shadow 700ms var(--ease-out);
}

.license-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.license-trigger:hover .license-frame,
.license-trigger:focus-visible .license-frame {
  transform: perspective(1300px) rotateX(1.5deg) rotateY(-1.8deg) scale(0.985);
  box-shadow:
    0 2px 0 color-mix(in oklch, var(--white) 80%, transparent) inset,
    0 0 0 2px color-mix(in oklch, var(--red) 52%, transparent),
    0 24px 62px color-mix(in oklch, var(--blue-deep) 21%, transparent);
}

.license-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 38%, color-mix(in oklch, var(--white) 32%, transparent) 49%, transparent 59%);
  transform: translateX(-120%);
  transition: transform 1.1s var(--ease-out);
  pointer-events: none;
}

.license-trigger:hover .license-scan { transform: translateX(120%); }

.license-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  color: var(--blue-deep);
  font-size: clamp(0.68rem, 1vw, 0.78rem);
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: opacity 350ms ease, transform 500ms var(--ease-out);
}

.cta-dot {
  width: 9px;
  height: 9px;
  border: 2px solid var(--red);
  border-radius: 50%;
  box-shadow: 0 0 0 0 color-mix(in oklch, var(--red) 20%, transparent);
  animation: cta-pulse 2s ease-out 3;
}

.node-stage.is-open .license-cta { opacity: 0; transform: translateY(-6px); pointer-events: none; }

@keyframes cta-pulse {
  0%, 38% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--red) 23%, transparent); }
  76%, 100% { box-shadow: 0 0 0 10px transparent; }
}

.node-menu {
  position: absolute;
  z-index: var(--z-nodes);
  top: 20%;
  left: clamp(28px, 6vw, 96px);
  display: grid;
  width: min(22vw, 290px);
  gap: clamp(32px, 6vh, 64px);
}

.nav-node {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 16px;
  border: 1.5px solid color-mix(in oklch, var(--blue) 52%, transparent);
  border-radius: 999px;
  background: color-mix(in oklch, var(--vanilla) 88%, var(--white));
  color: var(--blue-deep);
  box-shadow: 0 12px 30px color-mix(in oklch, var(--blue-deep) 8%, transparent);
  cursor: pointer;
  font-family: var(--font-condensed);
  font-size: clamp(0.74rem, 1.2vw, 0.9rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-align: left;
  text-transform: uppercase;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-14px) scale(0.98);
  transition:
    opacity 420ms ease,
    transform 360ms var(--ease-out),
    border-color 220ms ease,
    background 220ms ease,
    color 220ms ease,
    visibility 0s linear 650ms;
}

.nav-node.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
  transition-delay: 0s;
}

.nav-node:active,
.bottom-dock button:active,
.project-node-button:active,
.contact-action:active,
.replay-button:active,
.language-switch button:active { transform: scale(0.97); }

.nav-node:hover,
.nav-node.is-active {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

.node-port,
.content-port {
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: var(--vanilla);
}

.nav-node:hover .node-port,
.nav-node.is-active .node-port { background: var(--white); }

.node-arrow {
  font-size: 1rem;
  transition: transform 320ms var(--ease-out);
}

.nav-node:hover .node-arrow,
.nav-node.is-active .node-arrow { transform: translate(2px, -2px); }

.content-node,
.project-detail-node {
  position: absolute;
  z-index: var(--z-nodes);
  left: 35%;
  bottom: calc(max(0px, 100% - 100svh) + var(--dock) + 42px);
  width: min(57vw, 820px);
  max-height: 34vh;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1.5px solid var(--red);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 22px 64px color-mix(in oklch, var(--blue-deep) 15%, transparent);
  opacity: 0;
  transform: translateY(12px) scale(0.985);
  transition: opacity 280ms ease, transform 420ms var(--ease-out);
  scrollbar-color: var(--red) transparent;
  scroll-margin-top: calc(var(--topbar) + 12px);
}

.content-node.is-visible,
.project-detail-node.is-visible { opacity: 1; transform: translateY(0) scale(1); }

.node-stage.is-work-active .content-node {
  left: 32%;
  width: 31%;
  max-height: 37vh;
}

.project-detail-node {
  left: 65%;
  width: 31%;
  max-height: 37vh;
}

.content-node-header {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 14px;
  border-bottom: 1px solid color-mix(in oklch, var(--red) 22%, transparent);
  background: color-mix(in oklch, var(--surface) 94%, transparent);
  backdrop-filter: blur(10px);
  color: var(--red);
}

.content-index {
  flex: 1;
  margin: 0;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.content-close {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--blue-deep);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  transition: background 180ms ease, color 180ms ease, transform 320ms var(--ease-out);
}

.content-close:hover { background: var(--red); color: var(--white); transform: rotate(90deg); }

.content-node-body { padding: clamp(18px, 2.4vw, 34px); }

.content-node h2,
.project-detail-node h2 {
  max-width: 22ch;
  margin: 0 0 14px;
  color: var(--blue-deep);
  font-family: var(--font-condensed);
  font-size: clamp(1.45rem, 3vw, 2.55rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.content-node p,
.project-detail-node p {
  max-width: 68ch;
  margin: 0 0 1em;
  color: color-mix(in oklch, var(--blue-deep) 88%, var(--vanilla));
  font-size: clamp(0.88rem, 1.2vw, 1rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.signature-line {
  padding-top: 12px;
  border-top: 1px solid color-mix(in oklch, var(--blue) 22%, transparent);
  color: var(--red) !important;
  font-weight: 800;
}

.project-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.project-group-label {
  margin: 11px 4px 2px;
  color: var(--red);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-node-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 13px;
  border: 1px solid color-mix(in oklch, var(--blue) 28%, transparent);
  border-radius: 999px;
  background: transparent;
  color: var(--blue-deep);
  cursor: pointer;
  font-size: 0.73rem;
  font-weight: 800;
  min-height: 44px;
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 300ms var(--ease-out);
}

.project-node-button:hover,
.project-node-button.is-active {
  border-color: var(--red);
  background: var(--red-wash);
  color: var(--red);
  transform: translateX(3px);
}

.project-node-button span:last-child { flex: none; color: var(--red); }

.project-kicker {
  margin-bottom: 9px !important;
  color: var(--red) !important;
  font-size: 0.62rem !important;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.project-subtitle {
  margin-top: -4px !important;
  color: var(--blue) !important;
  font-weight: 700;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 6px 9px;
  border: 1px solid color-mix(in oklch, var(--blue) 28%, transparent);
  border-radius: 999px;
  color: var(--blue-deep);
  font-size: 0.62rem;
  font-weight: 700;
}

.project-case-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 15px;
  border: 1.5px solid var(--red);
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 220ms var(--ease-out), background 180ms ease, color 180ms ease;
}

.project-case-link:hover { background: transparent; color: var(--red); transform: translateY(-2px); }
.project-case-link:active { transform: scale(0.97); }

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.contact-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1.5px solid var(--red);
  border-radius: 999px;
  background: transparent;
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, transform 300ms var(--ease-out);
}

.contact-action:hover { background: var(--red); color: var(--white); transform: translateY(-2px); }

.support-line {
  position: absolute;
  z-index: var(--z-nodes);
  right: clamp(24px, 4vw, 64px);
  bottom: calc(var(--dock) + 23px);
  max-width: 25ch;
  margin: 0;
  color: color-mix(in oklch, var(--blue-deep) 60%, transparent);
  font-size: 0.65rem;
  font-weight: 700;
  text-align: right;
}

.node-stage.is-open .support-line,
.node-stage:has(.content-node:not([hidden])) .support-line { opacity: 0; }

.bottom-dock {
  position: fixed;
  z-index: var(--z-header);
  left: 50%;
  bottom: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(118px, 1fr));
  width: min(92vw, 620px);
  min-height: var(--dock);
  padding: 5px;
  transform: translateX(-50%);
  border: 1px solid color-mix(in oklch, var(--blue-deep) 18%, transparent);
  border-radius: 999px;
  background: color-mix(in oklch, var(--vanilla) 88%, transparent);
  box-shadow: 0 14px 34px color-mix(in oklch, var(--blue-deep) 14%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
}

.bottom-dock button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--blue-deep);
  cursor: pointer;
  font-family: var(--font-condensed);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}

.bottom-dock button span:first-child { color: var(--red); font-size: 0.58rem; }
.bottom-dock button:hover,
.bottom-dock button.is-active { background: var(--blue-deep); color: var(--white); }
.bottom-dock button:hover span:first-child,
.bottom-dock button.is-active span:first-child { color: var(--white); }

.noscript-message {
  position: fixed;
  z-index: calc(var(--z-header) + 2);
  inset: auto 16px 82px;
  padding: 16px;
  border: 2px solid var(--red);
  background: var(--white);
  color: var(--blue-deep);
  font-weight: 700;
}

@media (max-width: 899px) {
  :root { --topbar: 62px; --dock: 52px; }

  .topbar { padding: 0 14px; }
  .availability { display: none; }
  .replay-button span { display: none; }
  .wordmark > span:last-child { display: none; }

  .node-stage {
    display: flex;
    min-height: 100svh;
    flex-direction: column;
    overflow: hidden visible;
    padding: calc(var(--topbar) + 50px) 16px calc(var(--dock) + 56px);
  }

  .canvas-meta-top { top: calc(var(--topbar) + 14px); left: 16px; }
  .canvas-meta-side { display: none; }

  .license-zone,
  .node-stage.is-open .license-zone {
    position: relative;
    top: auto;
    left: auto;
    width: min(100%, 560px);
    max-width: none;
    margin: 6px auto 0;
    transform: translateY(clamp(52px, 12vh, 104px));
    transition: transform 800ms var(--ease-out);
  }

  .node-stage.is-open .license-zone {
    transform: translateY(0) scale(0.96);
  }

  .license-cta { margin-top: 14px; }

  .node-menu {
    position: relative;
    top: auto;
    left: auto;
    display: none;
    width: min(100%, 560px);
    margin: 24px auto 0;
    gap: 13px;
    overflow: visible;
  }

  .node-stage.is-open .node-menu {
    display: grid;
  }

  .nav-node {
    min-height: 50px;
    padding-left: 18px;
    background: color-mix(in oklch, var(--vanilla) 93%, var(--white));
    font-size: 0.78rem;
  }

  .content-node,
  .project-detail-node,
  .node-stage.is-work-active .content-node {
    position: relative;
    left: auto;
    bottom: auto;
    width: min(100%, 680px);
    max-height: none;
    margin: 16px auto 0;
    overflow: visible;
    border-radius: 20px;
  }

  .project-detail-node { width: min(96%, 650px); }

  .content-node-body { padding: 20px; }
  .content-node h2,
  .project-detail-node h2 { font-size: clamp(1.65rem, 8vw, 2.45rem); }

  .support-line {
    position: absolute;
    top: 62%;
    right: auto;
    bottom: auto;
    left: 50%;
    width: 28ch;
    margin: 0;
    transform: translateX(-50%);
    text-align: center;
  }

  .bottom-dock {
    bottom: 8px;
    grid-template-columns: repeat(3, 1fr);
    width: calc(100vw - 20px);
    padding: 4px;
  }

  .bottom-dock button { gap: 5px; min-height: 44px; padding: 7px 6px; font-size: 0.64rem; }
  .bottom-dock button span:first-child { display: none; }
}

@media (max-width: 440px) {
  .node-stage { padding-inline: 12px; }
  .license-frame { border-radius: 10px; }
  .content-node-body { padding: 18px 16px 22px; }
  .contact-actions { display: grid; }
  .contact-action { width: 100%; }
}

@media (max-height: 500px) and (min-width: 600px) and (orientation: landscape) {
  .node-stage {
    padding-top: calc(var(--topbar) + 14px);
    padding-right: 156px;
  }

  .license-zone,
  .node-stage.is-open .license-zone {
    width: min(100%, 420px);
    transform: none;
  }

  .node-stage.is-open .license-zone { transform: scale(0.96); }
  .node-menu { width: min(100%, 460px); }

  .bottom-dock {
    top: 50%;
    right: 12px;
    bottom: auto;
    left: auto;
    grid-template-columns: 1fr;
    width: 132px;
    transform: translateY(-50%);
    border-radius: 28px;
  }

  .support-line { top: auto; right: 164px; bottom: 20px; left: auto; transform: none; }
}

@media (hover: none), (pointer: coarse) {
  .license-trigger:hover .license-frame { transform: none; }
  .license-trigger:hover .license-scan { transform: translateX(-120%); }
}

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

  .connection-path { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
}

@media print {
  .topbar, .bottom-dock, .connection-layer, .license-cta { display: none !important; }
  .node-stage { min-height: auto; padding: 20px; background: var(--white); }
  .license-zone { position: relative !important; inset: auto !important; width: 100% !important; transform: none !important; }
}
