:root {
  --bg: #0a0a0a;
  --bg-deep: #050505;
  --surface: #141414;
  --surface-soft: rgba(25, 25, 24, .76);
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .24);
  --text: #f7f7f2;
  --muted: #a7a7a0;
  --accent: #b4e84b;
  --accent-bright: #c8ff59;
  --accent-soft: rgba(180, 232, 75, .14);
  --shell: 1440px;
  --header-height: 86px;
  --radius: 12px;
}

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

html {
  min-width: 320px;
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
}

body::selection {
  color: #0a0a0a;
  background: var(--accent);
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  color: #0a0a0a;
  background: var(--accent);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .2s ease;
}

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

.shell {
  width: min(calc(100% - 64px), var(--shell));
  margin-inline: auto;
}

.page-atmosphere {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

#qw-particles,
#qw-particles canvas {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

.atmosphere-grid {
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

.atmosphere-glow {
  position: absolute;
  width: min(70vw, 900px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(40px);
  background: radial-gradient(circle, rgba(180, 232, 75, .095), rgba(180, 232, 75, 0) 66%);
}

.atmosphere-glow--one {
  top: -26vw;
  right: -20vw;
}

.atmosphere-glow--two {
  bottom: -35vw;
  left: -28vw;
  opacity: .5;
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(10, 10, 10, .78);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
}

.brand {
  justify-self: start;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1;
  text-decoration: none;
}

.brand span {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 58px);
}

.site-nav a,
.header-contact {
  position: relative;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}

.site-nav a:focus-visible,
.header-contact:focus-visible {
  color: var(--text);
}

.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav a.is-active {
  color: var(--text);
}

.site-nav a.is-active::after {
  transform: scaleX(1);
}

.header-contact {
  justify-self: end;
  color: var(--text);
}

.header-contact span {
  display: inline-block;
  margin-left: 7px;
  color: var(--accent);
  transition: transform .2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover,
  .header-contact:hover {
    color: var(--text);
  }

  .site-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  .header-contact:hover span {
    transform: translate(3px, -3px);
  }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
  align-items: center;
  min-height: 100svh;
  padding-top: calc(var(--header-height) + 58px);
  padding-bottom: 82px;
  gap: clamp(48px, 6vw, 110px);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 34px;
  height: 2px;
  background: var(--accent);
}

.hero-title {
  max-width: 850px;
  margin: 26px 0 0;
  font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  font-size: clamp(4.7rem, 8.5vw, 9rem);
  font-stretch: condensed;
  font-weight: 900;
  line-height: .82;
  letter-spacing: -.055em;
  text-transform: uppercase;
}

.title-line {
  display: block;
  overflow: hidden;
}

.title-line > span {
  display: block;
  padding-right: .08em;
}

.title-line--accent {
  color: var(--accent);
  -webkit-text-stroke: 0 transparent;
}

.hero-lead {
  max-width: 680px;
  margin: 36px 0 0;
  color: #d3d3cc;
  font-size: clamp(1.06rem, 1.55vw, 1.34rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .25s ease, background-color .25s ease, border-color .25s ease, transform .25s ease;
}

.button span {
  margin-left: 13px;
}

.button:hover {
  transform: translateY(-3px);
}

.button--primary {
  border-color: var(--accent);
  color: #0a0a0a;
  background: var(--accent);
}

.button--primary:hover {
  border-color: var(--accent-bright);
  background: var(--accent-bright);
}

.button--ghost:hover {
  border-color: var(--text);
  background: rgba(255, 255, 255, .06);
}

.hero-visual {
  position: relative;
  width: min(100%, 570px);
  aspect-ratio: 1;
  justify-self: end;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 232, 75, .11), rgba(10, 10, 10, .15) 34%, rgba(10, 10, 10, .84) 72%);
  box-shadow: inset 0 0 80px rgba(180, 232, 75, .055), 0 0 0 18px rgba(255, 255, 255, .018);
  transform-style: preserve-3d;
  will-change: transform;
}

.visual-grid {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  opacity: .24;
  background-image:
    linear-gradient(rgba(180, 232, 75, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 232, 75, .16) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle, #000 10%, transparent 68%);
}

.visual-scan {
  position: absolute;
  z-index: 1;
  inset: 4%;
  border-radius: 50%;
  overflow: hidden;
}

.visual-scan::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 50%;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 18px var(--accent);
  animation: scan 4.8s ease-in-out infinite;
}

.orbit {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(180, 232, 75, .25);
  border-radius: 50%;
}

.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.orbit--outer {
  inset: 13%;
  animation: orbit 20s linear infinite;
}

.orbit--outer::before {
  inset: -4px 43%;
  border-top: 4px solid var(--accent);
}

.orbit--inner {
  inset: 29%;
  border-color: rgba(255, 255, 255, .18);
  animation: orbit-reverse 13s linear infinite;
}

.node {
  position: absolute;
  width: 10px;
  aspect-ratio: 1;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(180, 232, 75, .14), 0 0 18px rgba(180, 232, 75, .75);
}

.node--one { top: 13%; right: 10%; }
.node--two { bottom: 8%; left: 17%; }
.node--three { top: 42%; left: -5px; }

.visual-core {
  position: absolute;
  z-index: 3;
  inset: 35%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(180, 232, 75, .48);
  border-radius: 50%;
  background: rgba(10, 10, 10, .78);
  box-shadow: 0 0 45px rgba(180, 232, 75, .12), inset 0 0 25px rgba(180, 232, 75, .08);
}

.core-mark {
  color: var(--text);
  font-size: clamp(3rem, 6vw, 5.4rem);
  font-weight: 950;
  line-height: 1;
}

.core-status {
  position: absolute;
  top: calc(100% + 16px);
  width: max-content;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .58rem;
  letter-spacing: .12em;
}

.core-status i,
.demo-status i {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: blink 1.8s ease-in-out infinite;
}

.visual-label {
  position: absolute;
  z-index: 4;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--text);
  background: rgba(10, 10, 10, .78);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(.55rem, .85vw, .7rem);
  letter-spacing: .08em;
  backdrop-filter: blur(8px);
}

.visual-label--bots { top: 15%; left: 2%; }
.visual-label--shops { right: -3%; bottom: 28%; }
.visual-label--services { bottom: 7%; left: 8%; }

.visual-index {
  position: absolute;
  top: 30%;
  right: 6%;
  color: rgba(255, 255, 255, .38);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .54rem;
  letter-spacing: .12em;
  line-height: 1.7;
  text-align: right;
}

.hero-meta {
  position: absolute;
  right: 0;
  bottom: 28px;
  left: 0;
  display: flex;
  gap: 10px 24px;
  color: rgba(255, 255, 255, .48);
  font-size: .64rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-meta span:not(:last-child)::after {
  content: "/";
  margin-left: 24px;
  color: var(--accent);
}

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--accent);
  color: #0a0a0a;
}

.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  padding: 14px 0;
  animation: marquee 25s linear infinite;
}

.ticker span {
  padding-inline: 30px;
  font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-weight: 900;
  letter-spacing: .06em;
}

.ticker i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0a0a0a;
}

.section {
  padding-top: clamp(110px, 13vw, 190px);
  padding-bottom: clamp(110px, 13vw, 190px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(180px, .38fr) 1fr;
  align-items: start;
  gap: 40px;
  margin-bottom: 78px;
}

.section-heading h2,
.approach-copy h2,
.contact-card h2 {
  margin: 0;
  font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  font-size: clamp(2.9rem, 6vw, 6.6rem);
  font-weight: 900;
  line-height: .96;
  letter-spacing: -.045em;
  text-transform: uppercase;
}

h2 em {
  color: var(--accent);
  font-style: normal;
}

.service-list {
  border-top: 1px solid var(--line);
}

.service-card {
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(330px, .82fr) minmax(340px, 1.18fr);
  gap: clamp(24px, 4vw, 72px);
  min-height: 570px;
  padding: clamp(42px, 6vw, 82px) 0;
  border-bottom: 1px solid var(--line);
}

.service-number {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .72rem;
  letter-spacing: .08em;
}

.service-kicker {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.service-content h3 {
  margin: 0;
  font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  font-size: clamp(2.75rem, 4.8vw, 5.3rem);
  font-weight: 900;
  line-height: .92;
  letter-spacing: -.04em;
  text-transform: uppercase;
}

.service-content > p:not(.service-kicker) {
  max-width: 580px;
  margin: 28px 0 0;
  color: #bdbdb6;
  font-size: clamp(.98rem, 1.2vw, 1.13rem);
  line-height: 1.65;
}

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

.tag-list li {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #d1d1cb;
  font-size: .67rem;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.service-demo {
  position: relative;
  align-self: center;
  min-height: 330px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(30, 30, 28, .8), rgba(12, 12, 12, .94));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .32);
  overflow: hidden;
}

.service-demo::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .26;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}

.demo-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.demo-bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #555;
}

.demo-bar i:last-of-type {
  background: var(--accent);
}

.demo-bar span {
  margin-left: auto;
  color: #777;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .55rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bot-flow {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 18px);
  margin-top: 60px;
}

.bot-flow b {
  color: #575757;
  font-weight: 500;
}

.flow-node {
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: #bdbdb7;
  background: #121212;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.flow-node--accent {
  border-color: var(--accent);
  color: #0a0a0a;
  background: var(--accent);
  box-shadow: 0 0 35px rgba(180, 232, 75, .22);
}

.message {
  position: absolute;
  z-index: 2;
  display: flex;
  gap: 10px;
  width: 128px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(13, 13, 13, .9);
}

.message i {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft);
}

.message span {
  height: 18px;
  flex: 1;
  background: repeating-linear-gradient(to bottom, #4a4a47 0 2px, transparent 2px 7px);
}

.message--one { top: 70px; left: 7%; animation: float 4.2s ease-in-out infinite; }
.message--two { right: 6%; bottom: 52px; animation: float 4.2s .8s ease-in-out infinite; }

.demo-status {
  position: absolute;
  z-index: 2;
  bottom: 20px;
  left: 22px;
  color: #6f6f6b;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .55rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.service-demo--shop {
  display: grid;
  place-items: center;
}

.shop-window {
  position: relative;
  z-index: 2;
  width: 72%;
  min-height: 235px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #101010;
  transform: rotate(-3deg);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

.service-card:hover .shop-window {
  transform: rotate(0deg) translateY(-6px);
}

.shop-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  padding-inline: 14px;
  border-bottom: 1px solid var(--line);
  color: #777;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .54rem;
}

.shop-top i {
  width: 42px;
  height: 5px;
  border-radius: 99px;
  background: var(--accent);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 18px;
}

.shop-grid i {
  aspect-ratio: .78;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #292927, #171717);
}

.shop-grid i:nth-child(2) {
  border-color: rgba(180, 232, 75, .52);
  background: linear-gradient(160deg, rgba(180, 232, 75, .25), #171717);
}

.shop-order {
  position: absolute;
  right: -24px;
  bottom: -18px;
  min-width: 112px;
  padding: 13px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: #0a0a0a;
  background: var(--accent);
  box-shadow: 0 15px 32px rgba(0, 0, 0, .35);
}

.shop-order span,
.shop-order strong {
  display: block;
  font-size: .6rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.shop-order strong {
  margin-top: 2px;
  font-size: .9rem;
}

.pulse-ring {
  position: absolute;
  z-index: 1;
  width: 290px;
  aspect-ratio: 1;
  border: 1px solid rgba(180, 232, 75, .16);
  border-radius: 50%;
  animation: pulse 3s ease-out infinite;
}

.service-demo--system {
  padding: 62px clamp(24px, 5vw, 62px) 42px;
}

.formula {
  position: relative;
  z-index: 2;
  color: #e8e8e2;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(1rem, 2vw, 1.65rem);
  letter-spacing: -.03em;
}

.formula b {
  color: var(--accent);
}

.formula sup {
  color: var(--accent);
  font-size: .55em;
}

.data-lines {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 14px;
  margin-top: 48px;
}

.data-lines span {
  display: block;
  width: var(--w);
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), rgba(180, 232, 75, .1));
  transform-origin: left;
  animation: data 3.6s ease-in-out infinite alternate;
}

.data-lines span:nth-child(2) { animation-delay: -.7s; }
.data-lines span:nth-child(3) { animation-delay: -1.5s; }
.data-lines span:nth-child(4) { animation-delay: -2.1s; }

.data-result {
  position: absolute;
  z-index: 2;
  right: clamp(24px, 5vw, 62px);
  bottom: 35px;
  display: grid;
  grid-template-columns: auto auto;
  align-items: end;
  column-gap: 12px;
}

.data-result small {
  grid-column: 1 / -1;
  color: #777;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .52rem;
  letter-spacing: .12em;
}

.data-result strong {
  font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: .9;
}

.data-result i {
  color: var(--accent);
  font-size: 1.7rem;
  font-style: normal;
}

.approach {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(18, 18, 17, .58);
}

.approach-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(400px, 1.05fr);
  gap: clamp(70px, 10vw, 170px);
}

.approach-copy {
  position: sticky;
  top: calc(var(--header-height) + 60px);
  align-self: start;
}

.approach-copy h2 {
  margin-top: 30px;
  font-size: clamp(3.1rem, 5.4vw, 6.2rem);
}

.approach-copy > p:last-child {
  max-width: 580px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.65;
}

.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.process-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  padding: 30px 0 34px;
  border-bottom: 1px solid var(--line);
}

.process-list span {
  grid-row: 1 / 3;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .68rem;
}

.process-list strong {
  font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1;
  text-transform: uppercase;
}

.process-list p {
  max-width: 480px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .92rem;
}

.statement {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(52px, 7vw, 92px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(180, 232, 75, .12), rgba(18, 18, 17, .78) 43%, rgba(10, 10, 10, .92));
}

.statement-label {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .62rem;
  letter-spacing: .13em;
}

.statement-text {
  position: relative;
  z-index: 2;
  max-width: 1130px;
  margin: 120px 0 0;
  font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  font-size: clamp(3.1rem, 7vw, 7.7rem);
  font-weight: 900;
  line-height: .93;
  letter-spacing: -.045em;
  text-transform: uppercase;
}

.statement-text span {
  color: var(--accent);
}

.statement-orbit {
  position: absolute;
  right: -10%;
  bottom: -45%;
  width: min(60vw, 760px);
  aspect-ratio: 1;
  border: 1px solid rgba(180, 232, 75, .2);
  border-radius: 50%;
  animation: orbit 25s linear infinite;
}

.statement-orbit::before,
.statement-orbit::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
}

.statement-orbit::before { inset: 14%; }
.statement-orbit::after { inset: 31%; }

.statement-orbit i {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent);
}

.statement-orbit i:nth-child(1) { top: 12%; left: 20%; }
.statement-orbit i:nth-child(2) { top: 47%; left: -4px; }
.statement-orbit i:nth-child(3) { right: 12%; bottom: 20%; }

.contact {
  padding-top: clamp(80px, 11vw, 150px);
}

.contact-card {
  padding: clamp(50px, 8vw, 110px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.contact-card .eyebrow {
  justify-content: center;
}

.contact-card h2 {
  margin-top: 34px;
  font-size: clamp(4rem, 9vw, 10rem);
  line-height: .84;
}

.contact-title-accent {
  display: block;
  margin-top: .14em;
}

.contact-card > p:not(.eyebrow) {
  max-width: 610px;
  margin: 36px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 920px;
  margin: 64px auto 0;
  padding: 20px 0;
  border-bottom: 3px solid var(--accent);
  font-size: clamp(1.4rem, 4vw, 4.2rem);
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  transition: color .25s ease;
}

.contact-link i {
  color: var(--accent);
  font-style: normal;
  transition: transform .25s ease;
}

.contact-link:hover {
  color: var(--accent);
}

.contact-link:hover i {
  transform: translate(6px, -6px);
}

body.has-contact-modal {
  overflow: hidden;
}

.contact-modal[hidden] {
  display: none;
}

.contact-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, .76);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.contact-modal-dialog {
  position: relative;
  width: min(100%, 650px);
  max-height: min(860px, calc(100svh - 48px));
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, rgba(180, 232, 75, .055), transparent 36%), #0d0d0d;
  box-shadow: 0 34px 100px rgba(0, 0, 0, .62);
}

.contact-modal-dialog::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
}

.contact-modal-content {
  padding: clamp(32px, 6vw, 62px);
}

.contact-modal-close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--text);
  background: rgba(10, 10, 10, .82);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}

.contact-modal-close:hover,
.contact-modal-close:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(6deg);
}

.contact-modal-index {
  margin: 0;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.contact-modal-title {
  max-width: 500px;
  margin: 20px 0 0;
  font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  font-size: clamp(2.8rem, 8vw, 5.1rem);
  font-weight: 900;
  line-height: .88;
  letter-spacing: -.045em;
  text-transform: uppercase;
}

.contact-modal-lead {
  max-width: 500px;
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.contact-form {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.contact-field {
  position: relative;
  display: grid;
  gap: 8px;
}

.contact-field span {
  color: #b7b7b0;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.contact-field input {
  width: 100%;
  min-height: 58px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--text);
  background: rgba(255, 255, 255, .025);
  font: inherit;
  font-size: 1rem;
  outline: 0;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.contact-field input::placeholder {
  color: #65655f;
}

.contact-field input:hover {
  border-color: #55554f;
}

.contact-field input:focus {
  border-color: var(--accent);
  background: rgba(180, 232, 75, .035);
  box-shadow: 0 0 0 3px rgba(180, 232, 75, .08);
}

.contact-field--trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.contact-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  margin-top: 4px;
  padding: 0 20px;
  border: 1px solid var(--accent);
  color: #0a0a0a;
  background: var(--accent);
  font: inherit;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease, opacity .2s ease;
}

.contact-submit:hover:not(:disabled) {
  border-color: var(--accent-bright);
  background: var(--accent-bright);
  transform: translateY(-2px);
}

.contact-submit:disabled {
  cursor: wait;
  opacity: .68;
}

.contact-submit i {
  font-style: normal;
  font-size: 1.05rem;
}

.contact-form-note {
  margin: 0;
  color: #777770;
  font-size: .72rem;
  line-height: 1.5;
}

.contact-form-status {
  min-height: 1.5em;
  margin: 0;
  color: #ff8a78;
  font-size: .82rem;
  line-height: 1.5;
}

.contact-form-status.is-success {
  color: var(--accent);
}

.contact-modal-success {
  padding: clamp(54px, 9vw, 92px) clamp(32px, 6vw, 62px);
}

.contact-modal-success-mark {
  display: grid;
  width: 72px;
  height: 72px;
  margin-bottom: 34px;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: #0a0a0a;
  background: var(--accent);
  font-size: 1.8rem;
}

.contact-modal-success .contact-modal-lead {
  margin-bottom: 32px;
}

.contact-modal-secondary {
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: transparent;
  font: inherit;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

@keyframes contact-modal-in {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.contact-modal:not([hidden]) .contact-modal-dialog {
  animation: contact-modal-in .28s ease-out both;
}

.site-footer {
  padding: 38px 0 42px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.footer-inner p {
  margin: 0;
  color: #6e6e69;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-inner p:last-child {
  justify-self: end;
}

.reveal {
  will-change: transform, opacity;
}

/* Portfolio */
.portfolio-hero {
  position: relative;
  min-height: min(850px, 100svh);
  padding-top: calc(var(--header-height) + clamp(80px, 10vw, 148px));
  padding-bottom: clamp(90px, 11vw, 154px);
  border-bottom: 1px solid var(--line);
}

.portfolio-hero::after {
  content: "PORTFOLIO / QW";
  position: absolute;
  right: 0;
  bottom: 30px;
  color: rgba(255, 255, 255, .22);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .56rem;
  letter-spacing: .18em;
  writing-mode: vertical-rl;
}

.portfolio-title {
  max-width: 1150px;
  margin: 36px 0 0;
  font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  font-size: clamp(5rem, 10.4vw, 11rem);
  font-weight: 900;
  line-height: .78;
  letter-spacing: -.06em;
  text-transform: uppercase;
}

.portfolio-title .title-line:nth-child(2) {
  padding-left: clamp(28px, 11vw, 170px);
}

.portfolio-intro {
  display: grid;
  grid-template-columns: minmax(0, 660px) auto;
  justify-content: space-between;
  align-items: end;
  gap: 36px;
  margin-top: clamp(44px, 7vw, 84px);
}

.portfolio-intro .hero-lead {
  margin: 0;
}

.portfolio-counter {
  display: flex;
  align-items: end;
  gap: 14px;
  margin: 0 54px 0 0;
}

.portfolio-counter strong {
  color: var(--accent);
  font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  font-size: clamp(3.5rem, 6vw, 6.6rem);
  line-height: .72;
}

.portfolio-counter span {
  color: var(--muted);
  font-size: .63rem;
  font-weight: 800;
  letter-spacing: .11em;
  line-height: 1.45;
  text-transform: uppercase;
}

.portfolio-showcase {
  padding-top: clamp(100px, 12vw, 170px);
  padding-bottom: clamp(110px, 13vw, 190px);
}

.portfolio-section-head {
  display: grid;
  grid-template-columns: minmax(170px, .34fr) 1fr;
  gap: 42px;
  align-items: start;
  margin-bottom: clamp(58px, 7vw, 92px);
}

.portfolio-section-head h2 {
  margin: 0;
  font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  font-size: clamp(3rem, 5.8vw, 6.5rem);
  font-weight: 900;
  line-height: .93;
  letter-spacing: -.045em;
  text-transform: uppercase;
}

.portfolio-section-head em {
  color: var(--accent);
  font-style: normal;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.55vw, 24px);
}

.portfolio-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 650px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(15, 15, 15, .9);
  text-decoration: none;
  overflow: hidden;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), border-color .35s ease, box-shadow .5s ease;
}

.portfolio-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  border-radius: inherit;
  pointer-events: none;
  transition: border-color .35s ease;
}

.portfolio-card:hover,
.portfolio-card:focus-visible {
  border-color: rgba(180, 232, 75, .45);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .35);
  transform: translateY(-12px);
}

.portfolio-card:hover::after,
.portfolio-card:focus-visible::after {
  border-color: rgba(180, 232, 75, .18);
}

.portfolio-card-visual {
  position: relative;
  min-height: 338px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  overflow: hidden;
  isolation: isolate;
}

.portfolio-card-visual::before,
.portfolio-card-visual::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.portfolio-card-visual::before {
  z-index: -1;
  inset: 0;
  opacity: .36;
  background-image:
    linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

.portfolio-card-visual::after {
  z-index: 5;
  top: 0;
  bottom: 0;
  left: -55%;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent);
  transform: skewX(-18deg);
  transition: left .8s cubic-bezier(.2, .7, .2, 1);
}

.portfolio-card:hover .portfolio-card-visual::after,
.portfolio-card:focus-visible .portfolio-card-visual::after {
  left: 120%;
}

.portfolio-card--flowers .portfolio-card-visual {
  background:
    linear-gradient(180deg, rgba(7, 11, 9, .38), rgba(7, 11, 9, .04) 42%, rgba(7, 11, 9, .58)),
    linear-gradient(90deg, rgba(14, 8, 17, .22), transparent 56%),
    url("../images/portfolio/flora-union-studio.webp") center 48% / cover no-repeat;
  box-shadow: inset 0 0 70px rgba(4, 8, 6, .24);
}

.portfolio-card--crypto .portfolio-card-visual {
  background:
    radial-gradient(circle at 76% 18%, rgba(180, 232, 75, .44), transparent 27%),
    radial-gradient(circle at 18% 86%, rgba(58, 110, 255, .3), transparent 34%),
    linear-gradient(145deg, #101c19, #111927 58%, #090c12);
}

.portfolio-card--bot .portfolio-card-visual {
  background:
    radial-gradient(circle at 22% 20%, rgba(119, 92, 255, .48), transparent 29%),
    radial-gradient(circle at 84% 78%, rgba(180, 232, 75, .32), transparent 32%),
    linear-gradient(145deg, #1b1731, #121e20 62%, #0b0e0d);
}

.portfolio-card-index {
  position: absolute;
  z-index: 4;
  top: 22px;
  left: 24px;
  color: rgba(255, 255, 255, .68);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .54rem;
  letter-spacing: .12em;
}

.visual-caption {
  position: absolute;
  z-index: 4;
  right: 22px;
  bottom: 20px;
  color: rgba(255, 255, 255, .58);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .51rem;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.flower-orbit {
  position: absolute;
  z-index: 2;
  width: 138px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 50%;
  animation: flower-drift 5.6s ease-in-out infinite;
}

.flower-orbit--one {
  top: 90px;
  left: 18%;
  transform: rotate(-12deg);
}

.flower-orbit--two {
  top: 116px;
  right: 14%;
  width: 112px;
  animation-delay: -2.4s;
}

.flower-orbit i,
.flower-orbit b {
  position: absolute;
  width: 44%;
  aspect-ratio: 1;
  border-radius: 50% 50% 45% 55%;
  background: linear-gradient(145deg, rgba(255, 255, 255, .72), rgba(255, 147, 190, .16));
  box-shadow: inset 0 0 18px rgba(255, 255, 255, .14);
}

.flower-orbit i:nth-child(1) { top: -9%; left: 28%; }
.flower-orbit i:nth-child(2) { top: 28%; right: -9%; transform: rotate(90deg); }
.flower-orbit i:nth-child(3) { right: 28%; bottom: -9%; transform: rotate(180deg); }
.flower-orbit i:nth-child(4) { top: 28%; left: -9%; transform: rotate(270deg); }
.flower-orbit b { inset: 32%; width: 36%; border-radius: 50%; background: var(--accent); box-shadow: 0 0 32px rgba(180, 232, 75, .54); }

.market-chart {
  position: absolute;
  z-index: 2;
  right: 10%;
  bottom: 66px;
  left: 10%;
  display: flex;
  align-items: end;
  gap: 7%;
  height: 164px;
  border-bottom: 1px solid rgba(255, 255, 255, .32);
}

.market-chart span {
  width: 8%;
  height: var(--h);
  border: 1px solid rgba(255, 255, 255, .22);
  border-bottom: 0;
  background: linear-gradient(to top, rgba(180, 232, 75, .08), rgba(180, 232, 75, .88));
  transform-origin: bottom;
  animation: chart-pulse 2.8s ease-in-out infinite alternate;
}

.market-chart span:nth-child(2n) { animation-delay: -.7s; }
.market-chart span:nth-child(3n) { animation-delay: -1.4s; }

.market-result {
  position: absolute;
  z-index: 3;
  top: 62px;
  right: 9%;
  display: grid;
  padding: 14px 16px;
  border: 1px solid rgba(180, 232, 75, .52);
  background: rgba(7, 11, 10, .72);
  backdrop-filter: blur(10px);
}

.market-result small,
.market-result i {
  color: rgba(255, 255, 255, .54);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .46rem;
  font-style: normal;
  letter-spacing: .12em;
}

.market-result strong {
  color: var(--accent);
  font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  font-size: 1.8rem;
  line-height: 1.1;
}

.market-result i {
  position: absolute;
  right: 8px;
  bottom: -17px;
}

.dialog-window {
  position: absolute;
  z-index: 2;
  top: 74px;
  right: 9%;
  left: 9%;
  display: flex;
  min-height: 204px;
  flex-direction: column;
  gap: 12px;
  padding: 28px 20px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  background: rgba(9, 12, 15, .56);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .22);
  backdrop-filter: blur(14px);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

.portfolio-card:hover .dialog-window {
  transform: translateY(-7px) rotate(-1deg);
}

.dialog-line {
  max-width: 82%;
  padding: 10px 12px;
  border-radius: 4px 12px 12px 12px;
  color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .08);
  font-size: .62rem;
  letter-spacing: .02em;
}

.dialog-line--bot {
  align-self: end;
  border: 1px solid rgba(180, 232, 75, .35);
  border-radius: 12px 4px 12px 12px;
  color: #111;
  background: var(--accent);
}

.dialog-line--bot i {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: #111;
}

.dialog-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  padding: 9px 11px;
  border-radius: 4px 12px 12px 12px;
  background: rgba(255, 255, 255, .08);
}

.dialog-typing i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .62);
  animation: typing 1.2s ease-in-out infinite;
}

.dialog-typing i:nth-child(2) { animation-delay: .14s; }
.dialog-typing i:nth-child(3) { animation-delay: .28s; }

.portfolio-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(24px, 2.4vw, 34px);
}

.portfolio-card-type {
  margin: 0 0 17px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .55rem;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.portfolio-card h3 {
  margin: 0;
  font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  font-size: clamp(2.4rem, 3.6vw, 4rem);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.portfolio-card-body > p:not(.portfolio-card-type) {
  margin: 22px 0 28px;
  color: #a9a9a3;
  font-size: clamp(.86rem, 1vw, .96rem);
  line-height: 1.6;
}

.portfolio-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: .66rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.portfolio-card-link i {
  color: var(--accent);
  font-size: 1rem;
  font-style: normal;
  transition: transform .25s ease;
}

.portfolio-card:hover .portfolio-card-link i {
  transform: translate(4px, -4px);
}

/* Full-width pallet calculator case */
.pallet-case {
  margin-bottom: clamp(110px, 13vw, 190px);
}

.pallet-case-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  align-items: end;
  gap: clamp(48px, 8vw, 120px);
  margin-bottom: clamp(54px, 7vw, 90px);
}

.pallet-case-head h2 {
  margin: 32px 0 0;
  font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  font-size: clamp(3.2rem, 6.2vw, 7rem);
  font-weight: 900;
  line-height: .92;
  letter-spacing: -.05em;
  text-transform: uppercase;
}

.pallet-case-head h2 em {
  color: var(--accent);
  font-style: normal;
}

.pallet-case-head > p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: clamp(.98rem, 1.2vw, 1.12rem);
  line-height: 1.65;
}

.pallet-calculator {
  --pc-bg: #e8eceb;
  --pc-surface: #f7f8f7;
  --pc-surface-strong: #ffffff;
  --pc-ink: #243033;
  --pc-muted: #718084;
  --pc-line: rgba(36, 48, 51, .14);
  --pc-line-strong: rgba(36, 48, 51, .24);
  --pc-accent: #5950df;
  --pc-accent-dark: #3930bb;
  --pc-teal: #2f927f;
  position: relative;
  color: var(--pc-ink);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 20px;
  background:
    radial-gradient(circle at 92% 6%, rgba(89, 80, 223, .11), transparent 26%),
    linear-gradient(145deg, #edf0ef, #dfe5e4);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .28);
  overflow: hidden;
}

.pallet-calculator::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .36;
  background-image:
    linear-gradient(rgba(36, 48, 51, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 48, 51, .035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, #000, transparent 48%);
}

.pallet-calculator-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px clamp(20px, 2.6vw, 38px);
  border-bottom: 1px solid var(--pc-line);
  background: rgba(247, 248, 247, .72);
  backdrop-filter: blur(18px);
}

.pallet-calculator-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pallet-calculator-brand > span:last-child {
  display: grid;
  gap: 3px;
}

.pallet-calculator-brand strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .72rem;
  letter-spacing: .11em;
}

.pallet-calculator-brand small {
  color: var(--pc-muted);
  font-size: .6rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.pallet-cube-icon {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  transform: rotate(30deg) skewY(-8deg);
}

.pallet-cube-icon i {
  position: absolute;
  width: 19px;
  height: 19px;
  border: 1px solid rgba(255, 255, 255, .55);
  background: var(--pc-accent);
}

.pallet-cube-icon i:nth-child(1) { top: 1px; left: 7px; }
.pallet-cube-icon i:nth-child(2) { top: 10px; left: 1px; opacity: .75; }
.pallet-cube-icon i:nth-child(3) { top: 10px; right: 1px; opacity: .5; }

.pallet-calculator-status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--pc-muted);
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pallet-calculator-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #58b978;
  box-shadow: 0 0 0 5px rgba(88, 185, 120, .12);
  animation: blink 1.8s ease-in-out infinite;
}

.pallet-workspace {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
  border-bottom: 1px solid var(--pc-line);
}

.pallet-controls {
  padding: clamp(22px, 2.7vw, 40px);
  border-right: 1px solid var(--pc-line);
}

.pallet-panel + .pallet-panel {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--pc-line);
}

.pallet-panel-head,
.pallet-output-head,
.pallet-report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.pallet-panel-head > div,
.pallet-output-head > div:first-child,
.pallet-report-head > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pallet-panel-head > div > span,
.pallet-output-head > div:first-child > span,
.pallet-report-head > div > span {
  color: var(--pc-accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.pallet-panel h3,
.pallet-output h3,
.pallet-report h3 {
  margin: 0;
  font-size: .84rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.pallet-panel-note {
  margin: 10px 0 20px;
  color: var(--pc-muted);
  font-size: .72rem;
  line-height: 1.5;
}

.pallet-add-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--pc-line-strong);
  border-radius: 7px;
  color: var(--pc-ink);
  background: rgba(255, 255, 255, .58);
  font: inherit;
  font-size: .58rem;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}

.pallet-add-button span {
  color: var(--pc-accent);
  font-size: 1rem;
  line-height: 0;
}

.pallet-add-button:hover {
  border-color: var(--pc-accent);
  color: var(--pc-accent);
  transform: translateY(-2px);
}

.pallet-products-shell {
  position: relative;
}

.pallet-products {
  display: grid;
  gap: 6px;
  max-height: clamp(340px, 52vh, 510px);
  padding-right: 11px;
  overflow-y: scroll;
  overscroll-behavior: contain;
  scrollbar-color: transparent transparent;
  scrollbar-gutter: stable;
  scrollbar-width: none;
}

.pallet-products::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.pallet-products-scrollbar {
  position: absolute;
  z-index: 2;
  top: 2px;
  right: 1px;
  bottom: 2px;
  width: 6px;
  border-radius: 999px;
  background: rgba(72, 87, 91, .08);
  box-shadow: inset 0 0 0 1px rgba(72, 87, 91, .045);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.pallet-products-shell.has-scrollbar .pallet-products-scrollbar {
  opacity: 1;
}

.pallet-products-scrollbar i {
  position: absolute;
  top: 0;
  right: 1px;
  left: 1px;
  height: var(--products-thumb-size, 48px);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(101, 92, 229, .72), rgba(72, 87, 91, .52));
  box-shadow: 0 2px 8px rgba(68, 61, 174, .18), inset 0 0 0 1px rgba(255, 255, 255, .32);
  transform: translate3d(0, var(--products-thumb-offset, 0), 0);
  will-change: transform;
}

.pallet-product {
  --product-color: var(--pc-accent);
  padding: 8px 12px;
  border: 1px solid var(--pc-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .62);
  box-shadow: 0 10px 30px rgba(46, 61, 65, .035);
  transition: border-color .2s ease, box-shadow .2s ease, padding .2s ease;
}

.pallet-product:focus-within {
  border-color: color-mix(in srgb, var(--product-color) 55%, transparent);
  box-shadow: 0 12px 34px rgba(46, 61, 65, .08);
}

.pallet-product-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
}

.pallet-product.is-expanded {
  padding-block: 13px;
}

.pallet-product.is-expanded .pallet-product-head {
  margin-bottom: 10px;
}

.pallet-product-toggle {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  min-width: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.pallet-product-number {
  color: var(--pc-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .54rem;
}

.pallet-product-color {
  width: 7px;
  height: 7px;
  margin-left: 9px;
  border-radius: 50%;
  background: var(--product-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--product-color) 15%, transparent);
}

.pallet-product-identity {
  display: grid;
  gap: 1px;
  min-width: 0;
  margin-left: 11px;
}

.pallet-product-identity strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: .61rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.pallet-product-identity strong span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pallet-product-identity small {
  overflow: hidden;
  color: var(--pc-muted);
  font-size: .52rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pallet-product-identity strong svg,
.pallet-icon-button svg,
.pallet-download-button svg,
.pallet-product-chevron svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.pallet-product-chevron {
  display: grid;
  width: 24px;
  height: 24px;
  margin-left: 6px;
  place-items: center;
  border-radius: 7px;
  color: var(--pc-muted);
  transition: color .2s ease, transform .2s ease, background-color .2s ease;
}

.pallet-product-toggle:hover .pallet-product-chevron {
  color: var(--product-color);
  background: color-mix(in srgb, var(--product-color) 9%, transparent);
}

.pallet-product.is-expanded .pallet-product-chevron {
  transform: rotate(180deg);
}

.pallet-icon-button {
  display: grid;
  width: 26px;
  height: 26px;
  padding: 0;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #9a6e6e;
  background: transparent;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}

.pallet-icon-button:hover:not(:disabled) {
  border-color: rgba(181, 78, 78, .18);
  background: rgba(181, 78, 78, .08);
}

.pallet-icon-button:disabled {
  opacity: .28;
  cursor: not-allowed;
}

.pallet-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
}

.pallet-product-grid[hidden] {
  display: none;
}

.pallet-product-attributes {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin-top: 2px;
}

.pallet-product-attribute {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid var(--pc-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .5);
}

.pallet-product-attribute label {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.pallet-product-attribute label input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.pallet-product-attribute label > span {
  position: relative;
  width: 34px;
  height: 20px;
  flex: 0 0 auto;
  border: 1px solid var(--pc-line-strong);
  border-radius: 999px;
  background: #dce2e0;
  transition: border-color .2s ease, background-color .2s ease;
}

.pallet-product-attribute label > span i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 5px rgba(39, 50, 53, .18);
  transition: transform .2s ease;
}

.pallet-product-attribute label input:checked + span {
  border-color: var(--product-color);
  background: var(--product-color);
}

.pallet-product-attribute label input:checked + span i {
  transform: translateX(14px);
}

.pallet-product-attribute label input:focus-visible + span {
  outline: 2px solid color-mix(in srgb, var(--product-color) 50%, transparent);
  outline-offset: 2px;
}

.pallet-product-attribute label strong {
  overflow: hidden;
  font-size: .57rem;
  letter-spacing: .045em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.pallet-help-button {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  border: 1px solid var(--pc-line-strong);
  border-radius: 50%;
  color: var(--pc-muted);
  background: white;
  font: inherit;
  font-size: .58rem;
  font-weight: 850;
  cursor: pointer;
}

.pallet-help-button:hover,
.pallet-help-button:focus-visible,
.pallet-help-button[aria-expanded="true"] {
  border-color: var(--product-color);
  color: var(--product-color);
  outline: 0;
}

.pallet-help-popover {
  position: static;
  z-index: 12;
  grid-column: 1 / -1;
  margin-top: 3px;
  padding: 10px 11px;
  border: 1px solid color-mix(in srgb, var(--product-color) 34%, var(--pc-line));
  border-radius: 8px;
  color: var(--pc-ink);
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 12px 28px rgba(39, 50, 53, .15);
  font-size: .55rem;
  font-weight: 650;
  line-height: 1.5;
}

.pallet-help-popover[hidden] {
  display: none;
}

.pallet-field {
  position: relative;
  display: grid;
  gap: 6px;
  min-width: 0;
}

.pallet-field--name {
  grid-column: span 2;
}

.pallet-field--wide {
  grid-column: span 2;
}

.pallet-field > span {
  color: var(--pc-muted);
  font-size: .53rem;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.pallet-field input,
.pallet-field select {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--pc-line);
  border-radius: 7px;
  outline: 0;
  color: var(--pc-ink);
  background: rgba(255, 255, 255, .86);
  font: inherit;
  font-size: .73rem;
  font-weight: 700;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.pallet-field select {
  appearance: none;
  padding-right: 30px;
  background-image: linear-gradient(45deg, transparent 50%, #69777a 50%), linear-gradient(135deg, #69777a 50%, transparent 50%);
  background-position: calc(100% - 16px) 17px, calc(100% - 11px) 17px;
  background-repeat: no-repeat;
  background-size: 5px 5px;
}

.pallet-field input:focus,
.pallet-field select:focus {
  border-color: var(--pc-accent);
  box-shadow: 0 0 0 3px rgba(89, 80, 223, .11);
}

.pallet-field input[readonly] {
  color: #556266;
  background: rgba(227, 232, 231, .86);
}

.pallet-field input.is-invalid {
  border-color: #c75d5d;
  box-shadow: 0 0 0 3px rgba(199, 93, 93, .1);
}

.pallet-field small {
  position: absolute;
  right: 9px;
  bottom: 13px;
  color: #98a3a5;
  font-size: .5rem;
  font-weight: 800;
  pointer-events: none;
  text-transform: uppercase;
}

.pallet-field input[type="number"] {
  padding-right: 31px;
}

.pallet-settings-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  margin-top: 20px;
}

.pallet-settings-disclosure {
  display: block;
}

.pallet-settings-summary {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  list-style: none;
  cursor: pointer;
}

.pallet-settings-summary::-webkit-details-marker {
  display: none;
}

.pallet-settings-summary-index {
  color: var(--pc-accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.pallet-settings-summary-copy {
  display: grid;
  flex: 0 1 auto;
  gap: 4px;
  min-width: 0;
}

.pallet-settings-summary-copy strong {
  font-size: .84rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.pallet-settings-summary-copy small {
  overflow: hidden;
  color: var(--pc-muted);
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pallet-settings-summary-chevron {
  position: relative;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  margin-left: 2px;
  border: 1px solid var(--pc-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .58);
  transition: border-color .2s ease, background .2s ease;
}

.pallet-settings-summary-chevron::before {
  position: absolute;
  top: 7px;
  left: 8px;
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--pc-ink);
  border-bottom: 2px solid var(--pc-ink);
  content: "";
  transform: rotate(45deg);
  transition: transform .2s ease, top .2s ease;
}

.pallet-settings-summary:hover .pallet-settings-summary-chevron,
.pallet-settings-summary:focus-visible .pallet-settings-summary-chevron {
  border-color: rgba(89, 80, 223, .38);
  background: rgba(89, 80, 223, .08);
}

.pallet-settings-summary:focus-visible {
  border-radius: 8px;
  outline: 2px solid rgba(89, 80, 223, .38);
  outline-offset: 5px;
}

.pallet-settings-disclosure[open] .pallet-settings-summary-chevron::before {
  top: 10px;
  transform: rotate(225deg);
}

.pallet-size-hint {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 2px solid var(--pc-accent);
  color: var(--pc-muted);
  background: rgba(89, 80, 223, .055);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .56rem;
  letter-spacing: .06em;
}

.pallet-toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 17px;
}

.pallet-toggle {
  display: flex;
  align-items: center;
  gap: 11px;
  width: max-content;
  margin-top: 0;
  cursor: pointer;
}

.pallet-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pallet-toggle > span {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #b9c2c1;
  transition: background-color .2s ease;
}

.pallet-toggle > span i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .18);
  transition: transform .2s ease;
}

.pallet-toggle input:checked + span {
  background: var(--pc-accent);
}

.pallet-toggle input:checked + span i {
  transform: translateX(16px);
}

.pallet-toggle input:focus-visible + span {
  outline: 2px solid var(--pc-accent);
  outline-offset: 3px;
}

.pallet-toggle strong {
  font-size: .64rem;
  letter-spacing: .025em;
}

.pallet-run-panel {
  margin-top: 12px;
}

.pallet-run-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pallet-calculate-button {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 15px;
  width: 100%;
  min-height: 64px;
  padding: 14px 18px;
  border: 0;
  border-radius: 11px;
  color: white;
  background: linear-gradient(135deg, var(--pc-accent), var(--pc-accent-dark));
  box-shadow: 0 16px 32px rgba(66, 56, 190, .2);
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.pallet-calculate-button:hover:not(:disabled) {
  box-shadow: 0 20px 38px rgba(66, 56, 190, .28);
  transform: translateY(-3px);
}

.pallet-calculate-button > span:nth-child(2) {
  display: grid;
  gap: 4px;
}

.pallet-calculate-button strong {
  font-size: .76rem;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.pallet-calculate-button small {
  color: rgba(255, 255, 255, .66);
  font-size: .58rem;
}

.pallet-calculate-button b {
  font-size: 1.5rem;
  font-weight: 400;
  transition: transform .2s ease;
}

.pallet-build-manual-button {
  display: grid;
  width: 100%;
  min-height: 64px;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  margin-top: 0;
  padding: 10px 16px;
  border: 1px solid color-mix(in srgb, var(--pc-accent) 35%, var(--pc-line));
  border-radius: 10px;
  align-items: center;
  color: var(--pc-ink);
  background: rgba(255, 255, 255, .7);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.pallet-build-manual-button:hover {
  border-color: var(--pc-accent);
  background: white;
  transform: translateY(-2px);
}

.pallet-build-manual-button:disabled,
.pallet-calculate-button:disabled {
  cursor: wait;
  opacity: .68;
  transform: none;
}

.pallet-build-manual-button svg {
  width: 30px;
  height: 30px;
  padding: 5px;
  border-radius: 8px;
  fill: none;
  stroke: var(--pc-accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  background: rgba(89, 80, 223, .08);
}

.pallet-build-manual-button span {
  display: grid;
  gap: 2px;
}

.pallet-build-manual-button strong {
  font-size: .65rem;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.pallet-build-manual-button small {
  color: var(--pc-muted);
  font-size: .53rem;
}

.pallet-calculate-button:hover b {
  transform: translateX(4px);
}

.pallet-calculate-icon {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 10px);
  gap: 2px;
  width: 27px;
  height: 27px;
  place-content: center;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 7px;
}

.pallet-calculate-icon i {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 2px;
}

.pallet-calculate-icon i:last-child {
  grid-column: 1 / -1;
  justify-self: center;
}

.pallet-calculate-button.is-loading .pallet-calculate-icon {
  animation: orbit 1.2s linear infinite;
}

.pallet-calc-message {
  min-height: 18px;
  margin: 10px 2px 0;
  color: var(--pc-muted);
  font-size: .59rem;
}

.pallet-run-panel .pallet-calc-message {
  margin-top: 7px;
}

.pallet-calc-message[data-type="success"] { color: #337f62; }
.pallet-calc-message[data-type="error"] { color: #b34f4f; }

.pallet-output {
  min-width: 0;
  padding: clamp(22px, 2.7vw, 40px);
  background: rgba(247, 248, 247, .46);
}

.pallet-output-sticky {
  position: sticky;
  top: calc(var(--header-height) + 20px);
}

.pallet-output-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.pallet-output-action {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--pc-line);
  border-radius: 8px;
  color: var(--pc-muted);
  background: rgba(255, 255, 255, .76);
  font: inherit;
  font-size: .51rem;
  font-weight: 850;
  letter-spacing: .035em;
  text-transform: uppercase;
  cursor: pointer;
}

.pallet-output-action:hover,
.pallet-output-action:focus-visible,
.pallet-output-action[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--pc-accent) 45%, var(--pc-line));
  color: var(--pc-accent);
  background: white;
}

.pallet-output-action svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.pallet-manual-edit-button {
  display: none;
}

.pallet-editor-layout,
.pallet-editor-canvas {
  min-width: 0;
  min-height: 0;
}

.pallet-manual-sidebar {
  display: none;
}

.pallet-output-sticky:fullscreen {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: 100vw;
  height: 100vh;
  padding: 18px;
  overflow: hidden;
  color: var(--pc-ink);
  background: #eef2f1;
}

.pallet-output-sticky:fullscreen .pallet-manual-edit-button {
  display: inline-flex;
}

.pallet-output-sticky:fullscreen .pallet-editor-layout {
  display: grid;
  min-height: 0;
  margin-top: 14px;
}

.pallet-output-sticky:fullscreen .pallet-editor-canvas {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.pallet-output-sticky:fullscreen .pallet-visual {
  min-height: 0;
  height: 100%;
  margin-top: 0;
}

.pallet-output-sticky:fullscreen .pallet-visual-bottom,
.pallet-output-sticky:fullscreen .pallet-result-metrics {
  display: none;
}

.pallet-output-sticky:fullscreen.is-manual-editing .pallet-editor-layout {
  grid-template-columns: minmax(270px, 320px) minmax(0, 1fr);
  gap: 14px;
}

.pallet-output-sticky:fullscreen.is-manual-editing .pallet-manual-sidebar {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 12px;
  padding: 15px;
  overflow: auto;
  border: 1px solid var(--pc-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .78);
}

.pallet-manual-sidebar > header {
  display: grid;
  gap: 4px;
}

.pallet-manual-sidebar > header > span {
  color: var(--pc-accent);
  font-size: .49rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pallet-manual-sidebar > header > strong {
  font-size: .78rem;
}

.pallet-manual-history {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 5px;
}

.pallet-manual-history button {
  display: inline-flex;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--pc-line);
  border-radius: 7px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--pc-ink);
  background: rgba(255, 255, 255, .78);
  font: inherit;
  font-size: .52rem;
  font-weight: 800;
  cursor: pointer;
}

.pallet-manual-history button:hover:not(:disabled),
.pallet-manual-history button:focus-visible {
  border-color: color-mix(in srgb, var(--pc-accent) 45%, var(--pc-line));
  color: var(--pc-accent);
  outline: 0;
}

.pallet-manual-history button:disabled {
  opacity: .38;
  cursor: not-allowed;
}

.pallet-manual-sidebar > header > p,
.pallet-manual-empty {
  margin: 2px 0 0;
  color: var(--pc-muted);
  font-size: .54rem;
  line-height: 1.5;
}

.pallet-manual-status {
  padding: 10px 11px;
  border: 1px solid rgba(55, 144, 100, .22);
  border-radius: 9px;
  color: #276c50;
  background: rgba(71, 171, 119, .08);
  font-size: .54rem;
}

.pallet-manual-status[data-valid="false"] {
  border-color: rgba(191, 75, 75, .24);
  color: #9f3e3e;
  background: rgba(191, 75, 75, .07);
}

.pallet-manual-status ul {
  display: grid;
  gap: 3px;
  margin: 7px 0 0;
  padding-left: 15px;
}

.pallet-manual-sidebar section {
  display: grid;
  gap: 6px;
}

.pallet-manual-sidebar h4 {
  display: flex;
  margin: 2px 0 1px;
  align-items: center;
  justify-content: space-between;
  color: var(--pc-muted);
  font-size: .49rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.pallet-manual-sidebar h4 span {
  display: inline-flex;
  min-width: 20px;
  height: 20px;
  padding: 0 7px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(59, 72, 76, .07);
  letter-spacing: 0;
  text-transform: none;
}

.pallet-manual-box {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--pc-line);
  border-radius: 9px;
  background: white;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.pallet-manual-box.is-selected {
  border-color: var(--pc-accent);
  background: rgba(89, 77, 218, .045);
  box-shadow: 0 0 0 2px rgba(89, 77, 218, .13), 0 8px 18px rgba(43, 39, 112, .1);
}

.pallet-manual-box-main {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: 5px minmax(0, 1fr);
  gap: 8px;
  padding: 9px;
  border: 0;
  color: var(--pc-ink);
  background: transparent;
  font: inherit;
  text-align: left;
}

button.pallet-manual-box-main {
  cursor: pointer;
}

button.pallet-manual-box-main:hover,
button.pallet-manual-box-main:focus-visible {
  background: rgba(89, 77, 218, .055);
  outline: 0;
}

button.pallet-manual-box-main:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(89, 77, 218, .35);
}

.pallet-manual-box-main > i {
  border-radius: 3px;
  background: var(--manual-color);
}

.pallet-manual-box-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.pallet-manual-box strong,
.pallet-manual-box small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pallet-manual-box strong {
  font-size: .57rem;
}

.pallet-manual-box-copy > small,
.pallet-manual-box-copy > span {
  color: var(--pc-muted);
  font-size: .46rem;
}

.pallet-manual-box footer {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0 9px 9px 22px;
}

.pallet-manual-box footer button,
.pallet-manual-footer button {
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid var(--pc-line);
  border-radius: 6px;
  color: var(--pc-ink);
  background: #f7f9f8;
  font: inherit;
  font-size: .45rem;
  font-weight: 800;
  cursor: pointer;
}

.pallet-manual-box footer button:hover,
.pallet-manual-footer button:hover {
  border-color: color-mix(in srgb, var(--pc-accent) 40%, var(--pc-line));
}

.pallet-manual-box footer button.is-danger {
  color: #a24747;
}

.pallet-manual-box footer button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.pallet-manual-system {
  display: inline-flex;
  align-items: center;
  font-size: .45rem;
  font-weight: 800;
}

.pallet-manual-footer {
  position: sticky;
  z-index: 2;
  bottom: -15px;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 7px;
  margin: auto -15px -15px;
  padding: 12px 15px 15px;
  border-top: 1px solid var(--pc-line);
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(10px);
}

.pallet-manual-footer button {
  min-height: 36px;
}

.pallet-manual-footer button.is-primary {
  border-color: var(--pc-accent);
  color: white;
  background: var(--pc-accent);
}

.pallet-manual-footer button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.pallet-visual svg .is-manual-draggable {
  cursor: grab;
  touch-action: none;
}

.pallet-visual svg .is-manual-draggable.is-dragging {
  cursor: grabbing;
  opacity: .88;
}

.pallet-visual svg .is-manual-draggable.is-invalid rect {
  stroke: #d64c4c;
  stroke-width: 4;
}

.pallet-visual svg .is-manual-selected rect {
  stroke: var(--pc-accent);
  stroke-width: 5;
  filter: drop-shadow(0 0 5px rgba(89, 77, 218, .55));
}

.pallet-3d-viewer.is-editing .pallet-3d-canvas {
  cursor: move;
  touch-action: none;
}

.pallet-3d-viewer.is-editing.is-height-dragging .pallet-3d-canvas {
  cursor: ns-resize;
}

.pallet-pallet-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 7px;
  margin-top: 16px;
}

.pallet-pallet-tabs[hidden] {
  display: none;
}

.pallet-pallet-tabs button {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--pc-line);
  border-radius: 8px;
  color: var(--pc-muted);
  background: rgba(255, 255, 255, .55);
  text-align: left;
  cursor: pointer;
}

.pallet-pallet-tabs button strong {
  color: var(--pc-ink);
  font-size: .58rem;
  text-transform: uppercase;
}

.pallet-pallet-tabs button small {
  overflow: hidden;
  font-size: .48rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pallet-pallet-tabs button.is-active {
  border-color: color-mix(in srgb, var(--pc-accent) 52%, var(--pc-line));
  background: color-mix(in srgb, var(--pc-accent) 8%, white);
  box-shadow: 0 0 0 2px rgba(89, 80, 223, .08);
}

.pallet-visual {
  position: relative;
  display: grid;
  min-height: 510px;
  margin-top: 22px;
  place-items: center;
  border: 1px solid var(--pc-line);
  border-radius: 14px;
  background:
    radial-gradient(circle at 54% 42%, rgba(255, 255, 255, .92), rgba(225, 231, 230, .78) 64%, rgba(210, 219, 217, .88)),
    #e3e8e7;
  overflow: hidden;
}

.pallet-calculation-progress {
  --calculation-progress: 2%;
  position: relative;
  z-index: 4;
  display: grid;
  width: min(calc(100% - 40px), 500px);
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 20px;
  color: var(--pc-ink);
  background: rgba(250, 252, 251, .82);
  box-shadow: 0 24px 70px rgba(50, 64, 64, .14), inset 0 1px 0 white;
  text-align: center;
  backdrop-filter: blur(14px);
}

.pallet-calculation-boxes {
  position: relative;
  width: 94px;
  height: 66px;
  margin: 0 auto 18px;
}

.pallet-calculation-boxes i {
  position: absolute;
  width: 30px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, .74);
  border-radius: 5px;
  background: linear-gradient(145deg, #8b80ff, #5a50df);
  box-shadow: 0 8px 18px rgba(76, 65, 200, .2);
  animation: pallet-progress-box 1.8s ease-in-out infinite;
}

.pallet-calculation-boxes i:nth-child(1) {
  bottom: 3px;
  left: 14px;
}

.pallet-calculation-boxes i:nth-child(2) {
  right: 14px;
  bottom: 3px;
  background: linear-gradient(145deg, #58c1ad, #29937f);
  animation-delay: -.45s;
}

.pallet-calculation-boxes i:nth-child(3) {
  bottom: 31px;
  left: 23px;
  background: linear-gradient(145deg, #ff9878, #e66d4e);
  animation-delay: -.9s;
}

.pallet-calculation-boxes i:nth-child(4) {
  right: 23px;
  bottom: 31px;
  background: linear-gradient(145deg, #f2c560, #d79d2d);
  animation-delay: -1.35s;
}

.pallet-calculation-kicker {
  margin-bottom: 9px;
  color: var(--pc-accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .55rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.pallet-calculation-progress > strong {
  min-height: 1.35em;
  font-size: clamp(.86rem, 1.5vw, 1.05rem);
  font-weight: 900;
  letter-spacing: .025em;
}

.pallet-calculation-progress > p {
  min-height: 2.8em;
  margin: 8px auto 20px;
  color: var(--pc-muted);
  font-size: .64rem;
  line-height: 1.45;
}

.pallet-calculation-track {
  position: relative;
  height: 10px;
  border: 1px solid rgba(89, 80, 223, .09);
  border-radius: 999px;
  background: rgba(89, 80, 223, .1);
  box-shadow: inset 0 1px 3px rgba(45, 50, 66, .08);
  overflow: hidden;
}

.pallet-calculation-track > i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--calculation-progress);
  border-radius: inherit;
  background: linear-gradient(90deg, #5b50df, #806ff3 52%, #45b8a0);
  box-shadow: 0 0 18px rgba(89, 80, 223, .35);
  overflow: hidden;
  transition: width .55s cubic-bezier(.22, .8, .28, 1);
}

.pallet-calculation-track > i::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, .68) 47%, transparent 74%);
  content: "";
  transform: translateX(-110%);
  animation: pallet-progress-shimmer 1.25s ease-in-out infinite;
}

.pallet-calculation-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 20px;
  margin-top: 10px;
  color: var(--pc-muted);
  font-size: .51rem;
  font-weight: 750;
}

.pallet-calculation-meta [data-calc-progress-meta] {
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pallet-calculation-meta [data-calc-progress-attempts] {
  flex: 0 0 auto;
  color: var(--pc-accent);
}

.pallet-calculation-meta time {
  flex: 0 0 auto;
  min-width: 34px;
  color: var(--pc-ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 850;
  text-align: right;
}

@keyframes pallet-progress-box {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-5px) rotate(-2deg); }
}

@keyframes pallet-progress-shimmer {
  0% { transform: translateX(-110%); }
  70%, 100% { transform: translateX(110%); }
}

.pallet-visual svg {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  max-height: 540px;
}

.pallet-3d-viewer {
  position: absolute;
  z-index: 2;
  inset: 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.pallet-3d-stage,
.pallet-3d-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pallet-3d-canvas {
  display: block;
  outline: 0;
  cursor: grab;
  touch-action: pan-y;
}

.pallet-3d-canvas:active,
.pallet-3d-viewer.is-interacting .pallet-3d-canvas {
  cursor: grabbing;
}

.pallet-3d-canvas:focus-visible {
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--pc-accent) 55%, transparent);
}

.pallet-3d-toolbar {
  position: absolute;
  z-index: 5;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(84, 101, 104, .16);
  border-radius: 10px;
  background: rgba(248, 250, 249, .84);
  box-shadow: 0 9px 28px rgba(39, 50, 53, .1);
  backdrop-filter: blur(12px);
}

.pallet-3d-toolbar button {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 0;
  border-radius: 7px;
  color: var(--pc-muted);
  background: transparent;
  font: inherit;
  font-size: .49rem;
  font-weight: 850;
  letter-spacing: .035em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.pallet-3d-toolbar button:hover,
.pallet-3d-toolbar button:focus-visible,
.pallet-3d-toolbar button.is-active {
  color: var(--pc-ink);
  background: white;
  box-shadow: 0 3px 11px rgba(40, 57, 61, .1);
}

.pallet-3d-toolbar button.is-active {
  color: var(--pc-accent);
}

.pallet-3d-toolbar svg,
.pallet-3d-fix-button svg,
.pallet-3d-details button svg,
.pallet-3d-context-menu svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.pallet-3d-fix-button {
  position: absolute;
  z-index: 13;
  top: 12px;
  left: 50%;
  display: grid;
  min-width: 180px;
  min-height: 44px;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 9px;
  padding: 6px 13px;
  border: 1px solid rgba(48, 148, 100, .32);
  border-radius: 11px;
  align-items: center;
  color: #226f4c;
  background: rgba(247, 253, 249, .95);
  box-shadow: 0 12px 34px rgba(35, 94, 68, .18);
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.pallet-3d-fix-button[hidden] {
  display: none;
}

.pallet-3d-fix-button:disabled,
.pallet-3d-fix-button[data-valid="false"] {
  border-color: rgba(190, 67, 67, .32);
  color: #ad3e3e;
  background: rgba(255, 246, 246, .96);
  box-shadow: 0 12px 34px rgba(128, 44, 44, .14);
  cursor: not-allowed;
}

.pallet-3d-fix-button:not(:disabled):hover,
.pallet-3d-fix-button:not(:disabled):focus-visible {
  border-color: rgba(38, 135, 88, .62);
  background: white;
  outline: 0;
  box-shadow: 0 14px 38px rgba(35, 94, 68, .24);
}

.pallet-3d-fix-button > span {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.pallet-3d-fix-button strong {
  font-size: .58rem;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.pallet-3d-fix-button small {
  overflow: hidden;
  color: currentColor;
  font-size: .43rem;
  opacity: .72;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pallet-3d-context-menu {
  position: absolute;
  z-index: 12;
  display: grid;
  width: 264px;
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(78, 92, 96, .18);
  border-radius: 12px;
  color: var(--pc-ink);
  background: rgba(252, 253, 252, .96);
  box-shadow: 0 18px 48px rgba(33, 43, 46, .2);
  backdrop-filter: blur(16px);
}

.pallet-3d-context-menu[hidden],
.pallet-3d-height-preview[hidden],
.pallet-3d-snap-preview[hidden],
.pallet-3d-pick-preview[hidden],
.pallet-3d-context-targets[hidden] {
  display: none;
}

.pallet-3d-context-targets {
  display: grid;
  gap: 4px;
  margin: 0 2px 4px;
  padding: 5px 3px 8px;
  border-bottom: 1px solid rgba(78, 92, 96, .13);
}

.pallet-3d-context-targets > span {
  padding: 0 6px 2px;
  color: var(--pc-muted);
  font-size: .47rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pallet-3d-context-targets > div {
  display: grid;
  gap: 2px;
  max-height: 172px;
  overflow: auto;
}

.pallet-3d-context-targets > small {
  padding: 2px 6px 0;
  line-height: 1.35;
}

.pallet-3d-context-menu button {
  display: grid;
  min-height: 48px;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  padding: 6px 9px;
  border: 0;
  border-radius: 8px;
  align-items: center;
  color: var(--pc-ink);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.pallet-3d-context-menu button:hover,
.pallet-3d-context-menu button:focus-visible,
.pallet-3d-context-menu button.is-active {
  color: var(--pc-accent);
  background: rgba(89, 77, 218, .08);
  outline: 0;
}

.pallet-3d-context-menu button.pallet-3d-context-target {
  min-height: 40px;
  grid-template-columns: 13px minmax(0, 1fr);
  gap: 8px;
  padding: 5px 7px;
}

.pallet-3d-context-target > i {
  width: 10px;
  height: 10px;
  border: 2px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  background: var(--box-color);
  box-shadow: 0 0 0 1px rgba(47, 58, 61, .18);
}

.pallet-3d-context-target > span {
  min-width: 0;
}

.pallet-3d-context-target > span strong,
.pallet-3d-context-target > span small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pallet-3d-context-menu button:disabled {
  opacity: .42;
  cursor: not-allowed;
}

.pallet-3d-context-menu button > svg {
  width: 27px;
  height: 27px;
  padding: 4px;
  border: 1px solid currentColor;
  border-radius: 7px;
}

.pallet-3d-context-menu button > span {
  display: grid;
  gap: 2px;
}

.pallet-3d-context-menu strong {
  font-size: .57rem;
}

.pallet-3d-context-menu small,
.pallet-3d-context-menu p {
  color: var(--pc-muted);
  font-size: .46rem;
}

.pallet-3d-context-menu p {
  margin: 2px 7px 5px;
}

.pallet-3d-height-preview {
  position: absolute;
  z-index: 11;
  top: 62px;
  left: 50%;
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(89, 77, 218, .28);
  border-radius: 9px;
  align-items: baseline;
  color: #4037bf;
  background: rgba(248, 247, 255, .94);
  box-shadow: 0 10px 28px rgba(51, 43, 150, .16);
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
  pointer-events: none;
}

.pallet-3d-height-preview[data-valid="false"] {
  border-color: rgba(190, 67, 67, .32);
  color: #ad3e3e;
  background: rgba(255, 246, 246, .95);
}

.pallet-3d-height-preview strong {
  font-size: .6rem;
}

.pallet-3d-height-preview span {
  color: currentColor;
  font-size: .48rem;
  opacity: .72;
}

.pallet-3d-snap-preview {
  position: absolute;
  z-index: 11;
  top: 104px;
  left: 50%;
  display: flex;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid rgba(51, 145, 101, .28);
  border-radius: 9px;
  align-items: baseline;
  color: #27734f;
  background: rgba(245, 253, 249, .95);
  box-shadow: 0 10px 28px rgba(34, 100, 69, .14);
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
  pointer-events: none;
}

.pallet-3d-snap-preview[data-valid="false"] {
  border-color: rgba(190, 67, 67, .32);
  color: #ad3e3e;
  background: rgba(255, 246, 246, .95);
}

.pallet-3d-snap-preview strong {
  font-size: .6rem;
}

.pallet-3d-snap-preview span {
  color: currentColor;
  font-size: .48rem;
  opacity: .78;
}

.pallet-3d-pick-preview {
  position: absolute;
  z-index: 11;
  top: 104px;
  left: 50%;
  display: flex;
  gap: 8px;
  max-width: min(520px, calc(100% - 28px));
  padding: 7px 11px;
  border: 1px solid rgba(89, 77, 218, .28);
  border-radius: 9px;
  align-items: baseline;
  color: #4037bf;
  background: rgba(248, 247, 255, .95);
  box-shadow: 0 10px 28px rgba(51, 43, 150, .16);
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
  pointer-events: none;
}

.pallet-3d-pick-preview strong {
  flex: 0 0 auto;
  font-size: .6rem;
}

.pallet-3d-pick-preview span {
  overflow: hidden;
  color: currentColor;
  font-size: .48rem;
  opacity: .78;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pallet-3d-hint {
  position: absolute;
  z-index: 4;
  right: 14px;
  bottom: 12px;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid rgba(84, 101, 104, .13);
  border-radius: 7px;
  color: var(--pc-muted);
  background: rgba(248, 250, 249, .78);
  font-size: .48rem;
  letter-spacing: .025em;
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.pallet-3d-hint b {
  color: var(--pc-ink);
}

.pallet-3d-hint .is-mobile {
  display: none;
}

.pallet-3d-details {
  position: absolute;
  z-index: 6;
  bottom: 14px;
  left: 14px;
  display: grid;
  width: min(370px, calc(100% - 28px));
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(78, 92, 96, .16);
  border-radius: 11px;
  color: var(--pc-ink);
  background: rgba(252, 253, 252, .92);
  box-shadow: 0 14px 38px rgba(37, 51, 54, .15);
  backdrop-filter: blur(14px);
}

.pallet-3d-details[hidden] {
  display: none;
}

.pallet-3d-details > strong {
  padding-right: 24px;
  font-size: .76rem;
}

.pallet-3d-details > span {
  color: var(--pc-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .56rem;
  font-weight: 750;
}

.pallet-3d-details > button[data-3d-close] {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 26px;
  height: 26px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 6px;
  color: var(--pc-muted);
  background: transparent;
  cursor: pointer;
}

.pallet-3d-details > button[data-3d-close]:hover {
  color: var(--pc-ink);
  background: rgba(43, 57, 61, .07);
}

.pallet-3d-manipulator {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding-top: 9px;
  border-top: 1px solid var(--pc-line);
}

.pallet-3d-manipulator > span {
  color: var(--pc-muted);
  font-size: .46rem;
  font-weight: 850;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.pallet-3d-manipulator > .pallet-3d-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}

.pallet-3d-manipulator button {
  position: static;
  display: grid;
  min-height: 45px;
  gap: 3px;
  padding: 5px 3px;
  place-items: center;
  border: 1px solid var(--pc-line);
  border-radius: 7px;
  color: var(--pc-muted);
  background: rgba(255, 255, 255, .72);
  font: inherit;
  cursor: pointer;
}

.pallet-3d-manipulator button:hover,
.pallet-3d-manipulator button:focus-visible,
.pallet-3d-manipulator button.is-active {
  border-color: color-mix(in srgb, var(--pc-accent) 55%, var(--pc-line));
  color: var(--pc-accent);
  background: color-mix(in srgb, var(--pc-accent) 7%, white);
  outline: 0;
}

.pallet-3d-manipulator button:disabled {
  opacity: .36;
  cursor: not-allowed;
}

.pallet-3d-manipulator button.is-danger:not(:disabled) {
  color: #a64d4d;
}

.pallet-3d-manipulator button.is-danger:not(:disabled):hover,
.pallet-3d-manipulator button.is-danger:not(:disabled):focus-visible {
  border-color: rgba(166, 77, 77, .42);
  color: #963f3f;
  background: rgba(166, 77, 77, .07);
}

.pallet-3d-manipulator button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.pallet-3d-manipulator button span {
  font-size: .42rem;
  font-weight: 820;
  line-height: 1.1;
}

.pallet-3d-manipulator small {
  color: var(--pc-muted);
  font-size: .42rem;
  line-height: 1.35;
}

.pallet-3d-height-targets {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--pc-accent) 25%, var(--pc-line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--pc-accent) 4%, white);
}

.pallet-3d-height-targets[hidden] {
  display: none;
}

.pallet-3d-height-targets > span {
  color: var(--pc-ink);
  font-size: .46rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pallet-3d-height-targets > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.pallet-3d-height-targets button {
  display: block;
  min-height: 28px;
  padding: 6px 8px;
  border-radius: 999px;
  font-size: .44rem;
  font-weight: 820;
  line-height: 1.1;
}

.pallet-3d-height-targets > small {
  font-size: .4rem;
}

.pallet-3d-details dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 9px 0 0;
}

.pallet-3d-details dl div {
  display: grid;
  gap: 2px;
  padding-top: 7px;
  border-top: 1px solid var(--pc-line);
}

.pallet-3d-details dl div:last-child {
  grid-column: 1 / -1;
}

.pallet-3d-details dt {
  color: var(--pc-muted);
  font-size: .46rem;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.pallet-3d-details dd {
  margin: 0;
  font-size: .58rem;
  font-weight: 760;
}

.pallet-visual-empty {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 15px;
  place-items: center;
  color: var(--pc-muted);
  font-size: .65rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.pallet-visual-empty i {
  width: 65px;
  height: 45px;
  border: 1px solid var(--pc-line-strong);
  transform: skewY(-15deg);
}

.pallet-visual-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 14px;
}

.pallet-download-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  color: var(--pc-accent);
  background: transparent;
  font: inherit;
  font-size: .54rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}

.pallet-download-actions {
  display: inline-flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 15px;
}

.pallet-download-button[hidden] {
  display: none;
}

@media (max-width: 600px) {
  .pallet-product-attributes {
    grid-template-columns: 1fr;
  }

  .pallet-3d-toolbar {
    top: 8px;
    right: 8px;
    gap: 3px;
    padding: 3px;
  }

  .pallet-3d-toolbar button {
    width: 32px;
    min-height: 30px;
    justify-content: center;
    padding: 0;
  }

  .pallet-3d-toolbar button span {
    display: none;
  }

  .pallet-3d-hint {
    right: 8px;
    bottom: 8px;
    left: 8px;
    text-align: center;
  }

  .pallet-3d-hint .is-desktop {
    display: none;
  }

  .pallet-3d-hint .is-mobile {
    display: inline;
  }

  .pallet-3d-details {
    right: 8px;
    bottom: 42px;
    left: 8px;
    width: auto;
  }
}

.pallet-result-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.pallet-result-metrics article {
  display: grid;
  gap: 5px;
  min-height: 104px;
  padding: 15px;
  border: 1px solid var(--pc-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .62);
}

.pallet-result-metrics span,
.pallet-report-summary span {
  color: var(--pc-muted);
  font-size: .52rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.pallet-result-metrics strong {
  align-self: end;
  font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  font-size: clamp(1.55rem, 2.2vw, 2.45rem);
  line-height: .9;
  letter-spacing: -.025em;
}

.pallet-result-metrics article:first-child strong {
  color: var(--pc-accent);
  font-size: clamp(1.25rem, 1.75vw, 1.9rem);
}

.pallet-balance-metric strong {
  color: #4f744f;
}

.pallet-balance-metric strong em {
  margin-left: 3px;
  color: var(--pc-muted);
  font-family: inherit;
  font-size: .44em;
  font-style: normal;
  letter-spacing: 0;
}

.pallet-balance-metric[data-tone="attention"] strong {
  color: #9b752e;
}

.pallet-balance-metric[data-tone="risk"] strong {
  color: #a84f4f;
}

.pallet-result-metrics small,
.pallet-report-summary small {
  color: var(--pc-muted);
  font-size: .52rem;
}

.pallet-report {
  position: relative;
  z-index: 1;
  padding: clamp(28px, 3.4vw, 50px);
  background: rgba(247, 248, 247, .64);
}

.pallet-report-head p {
  max-width: 420px;
  margin: 0;
  color: var(--pc-muted);
  font-size: .62rem;
}

.pallet-report-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 16px;
  border: 1px solid var(--pc-line);
  border-radius: 12px;
  background: var(--pc-line);
  overflow: hidden;
}

.pallet-order-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.pallet-order-summary > div {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border: 1px solid color-mix(in srgb, var(--pc-accent) 18%, var(--pc-line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--pc-accent) 5%, rgba(255, 255, 255, .82));
}

.pallet-order-summary span {
  color: var(--pc-muted);
  font-size: .5rem;
  font-weight: 850;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.pallet-order-summary strong {
  color: var(--pc-ink);
  font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  font-size: clamp(1.15rem, 1.7vw, 1.7rem);
  line-height: 1;
}

.pallet-order-summary small {
  color: var(--pc-muted);
  font-size: .5rem;
}

.pallet-order-empty {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid rgba(168, 79, 79, .22);
  border-radius: 12px;
  color: #843f3f;
  background: rgba(168, 79, 79, .055);
}

.pallet-order-empty p {
  margin: 8px 0 0;
  font-size: .65rem;
}

.pallet-report-summary > div {
  display: grid;
  gap: 1px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, .8);
}

.pallet-report-summary strong {
  margin-top: 1px;
  font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  font-size: clamp(1.3rem, 2vw, 2.15rem);
  line-height: .9;
}

.pallet-report-summary > div:last-child strong {
  color: var(--pc-accent);
}

.pallet-cdek-report {
  margin-top: 18px;
  border: 1px solid rgba(0, 151, 95, .24);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 169, 107, .065), rgba(255, 255, 255, .78) 48%);
  box-shadow: 0 14px 38px rgba(29, 62, 51, .055);
  overflow: hidden;
}

.pallet-cdek-report > header {
  display: flex;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(0, 151, 95, .16);
  align-items: center;
  justify-content: space-between;
}

.pallet-cdek-report > header > div,
.pallet-cdek-report > header > div > div {
  display: flex;
  gap: 11px;
  align-items: center;
}

.pallet-cdek-report > header > div > div {
  display: grid;
  gap: 3px;
}

.pallet-cdek-report > header > div > span {
  padding: 7px 9px 6px;
  border-radius: 7px;
  color: #fff;
  background: #00975f;
  font-size: .58rem;
  font-weight: 950;
  letter-spacing: .08em;
}

.pallet-cdek-report h4 {
  margin: 0;
  color: var(--pc-ink);
  font-size: .72rem;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.pallet-cdek-report header p {
  margin: 0;
  color: var(--pc-muted);
  font-size: .54rem;
}

.pallet-cdek-report > header > strong {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #27734f;
  font-size: .57rem;
}

.pallet-cdek-report > header > strong i,
.pallet-cdek-state i {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3da778;
  box-shadow: 0 0 0 4px rgba(61, 167, 120, .12);
}

.pallet-cdek-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(0, 151, 95, .14);
}

.pallet-cdek-summary > div {
  display: grid;
  gap: 2px;
  padding: 11px 16px;
  background: rgba(255, 255, 255, .82);
}

.pallet-cdek-summary span {
  color: var(--pc-muted);
  font-size: .46rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.pallet-cdek-summary strong {
  font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  font-size: clamp(1.15rem, 1.7vw, 1.65rem);
  line-height: 1;
}

.pallet-cdek-summary small,
.pallet-cdek-report td small {
  display: block;
  color: var(--pc-muted);
  font-size: .48rem;
}

.pallet-cdek-table-wrap {
  overflow-x: auto;
}

.pallet-cdek-report table {
  min-width: 940px;
}

.pallet-cdek-report td:first-child {
  display: table-cell;
}

.pallet-cdek-report td strong {
  display: block;
  margin-bottom: 3px;
  font-size: .64rem;
}

.pallet-cdek-state {
  display: inline-flex;
  gap: 7px;
  margin-bottom: 4px;
  align-items: center;
  color: #27734f;
  font-size: .58rem;
  font-weight: 800;
}

.pallet-cdek-report tr[data-tone="attention"] .pallet-cdek-state,
.pallet-cdek-report[data-tone="attention"] > header > strong {
  color: #916b26;
}

.pallet-cdek-report tr[data-tone="attention"] .pallet-cdek-state i,
.pallet-cdek-report[data-tone="attention"] > header > strong i {
  background: #d19a35;
  box-shadow: 0 0 0 4px rgba(209, 154, 53, .12);
}

.pallet-cdek-report tr[data-tone="risk"] .pallet-cdek-state,
.pallet-cdek-report[data-tone="risk"] > header > strong {
  color: #a84f4f;
}

.pallet-cdek-report tr[data-tone="risk"] .pallet-cdek-state i,
.pallet-cdek-report[data-tone="risk"] > header > strong i {
  background: #c45c5c;
  box-shadow: 0 0 0 4px rgba(196, 92, 92, .12);
}

.pallet-cdek-report > footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 12px 18px 14px;
  border-top: 1px solid rgba(0, 151, 95, .14);
  color: var(--pc-muted);
  background: rgba(245, 250, 248, .7);
}

.pallet-cdek-report > footer p {
  margin: 0;
  font-size: .5rem;
  line-height: 1.5;
}

.pallet-report-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 18px;
}

.pallet-report-table-wrap,
.pallet-report-check {
  border: 1px solid var(--pc-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .68);
  overflow: hidden;
}

.pallet-report-table-wrap {
  overflow-x: auto;
}

.pallet-report table {
  width: 100%;
  border-collapse: collapse;
  font-size: .65rem;
}

.pallet-report th,
.pallet-report td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--pc-line);
  text-align: left;
  white-space: nowrap;
}

.pallet-report th {
  color: var(--pc-muted);
  background: rgba(226, 232, 231, .62);
  font-size: .49rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.pallet-report tbody tr:last-child td {
  border-bottom: 0;
}

.pallet-report td:first-child {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 9px;
}

.pallet-report td:first-child i {
  grid-row: 1 / 3;
  width: 8px;
  height: 28px;
  border-radius: 3px;
  background: var(--row-color);
}

.pallet-report td:first-child strong {
  font-size: .67rem;
}

.pallet-report td:first-child small {
  color: var(--pc-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .49rem;
}

.pallet-report-check {
  padding: 18px;
}

.pallet-report-check > span {
  font-size: .57rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.pallet-report-check ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.pallet-report-check li {
  display: flex;
  gap: 8px;
  color: #a84f4f;
  font-size: .62rem;
  line-height: 1.4;
}

.pallet-report-check li i {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 4px;
  border-radius: 50%;
  background: #c45c5c;
  box-shadow: 0 0 0 4px rgba(196, 92, 92, .1);
}

.pallet-report-check li.is-ok {
  color: #34775f;
}

.pallet-report-check li.is-ok i {
  background: #4ba77f;
  box-shadow: 0 0 0 4px rgba(75, 167, 127, .1);
}

.pallet-balance-panel {
  display: grid;
  gap: 13px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(75, 167, 127, .2);
  border-radius: 9px;
  background: rgba(75, 167, 127, .055);
}

.pallet-balance-panel > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 3px 10px;
}

.pallet-balance-panel > div > span {
  color: var(--pc-muted);
  font-size: .48rem;
  font-weight: 850;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.pallet-balance-panel > div > strong {
  grid-row: 1 / 3;
  grid-column: 2;
  color: #3f745a;
  font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  font-size: 1.55rem;
  line-height: .9;
}

.pallet-balance-panel > div > strong small {
  margin-left: 2px;
  color: var(--pc-muted);
  font-size: .38em;
}

.pallet-balance-panel > div > em {
  color: #34775f;
  font-size: .57rem;
  font-style: normal;
  font-weight: 800;
}

.pallet-balance-panel dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin: 0;
}

.pallet-balance-panel dl div {
  display: grid;
  gap: 2px;
  padding-top: 7px;
  border-top: 1px solid var(--pc-line);
}

.pallet-balance-panel dt {
  color: var(--pc-muted);
  font-size: .46rem;
}

.pallet-balance-panel dd {
  margin: 0;
  font-size: .6rem;
  font-weight: 800;
}

.pallet-balance-panel[data-tone="attention"] {
  border-color: rgba(174, 129, 45, .22);
  background: rgba(174, 129, 45, .06);
}

.pallet-balance-panel[data-tone="attention"] > div > strong,
.pallet-balance-panel[data-tone="attention"] > div > em {
  color: #916b26;
}

.pallet-balance-panel[data-tone="risk"] {
  border-color: rgba(168, 79, 79, .22);
  background: rgba(168, 79, 79, .055);
}

.pallet-balance-panel[data-tone="risk"] > div > strong,
.pallet-balance-panel[data-tone="risk"] > div > em {
  color: #a84f4f;
}

.pallet-report-check > small {
  display: block;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--pc-line);
  color: var(--pc-muted);
  font-size: .53rem;
  line-height: 1.5;
}

.portfolio-next {
  display: grid;
  grid-template-columns: .6fr 1.4fr auto;
  align-items: center;
  gap: 34px;
  padding-top: 42px;
  padding-bottom: 42px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.portfolio-next span {
  color: var(--accent);
  font-size: .62rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.portfolio-next p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(.95rem, 1.2vw, 1.12rem);
}

.portfolio-next i {
  color: var(--accent);
  font-size: 1.6rem;
  font-style: normal;
  animation: next-bounce 2s ease-in-out infinite;
}

.portfolio-footer {
  padding-top: 76px;
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

@keyframes orbit-reverse {
  to { transform: rotate(-360deg); }
}

@keyframes scan {
  0%, 100% { transform: translateY(-170px); opacity: 0; }
  15%, 85% { opacity: .65; }
  50% { transform: translateY(170px); opacity: .9; }
}

@keyframes blink {
  0%, 100% { opacity: .35; }
  50% { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@keyframes pulse {
  0% { transform: scale(.68); opacity: 0; }
  35% { opacity: .7; }
  100% { transform: scale(1.26); opacity: 0; }
}

@keyframes data {
  from { transform: scaleX(.62); opacity: .4; }
  to { transform: scaleX(1); opacity: 1; }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@keyframes flower-drift {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-12px) rotate(4deg); }
}

@keyframes chart-pulse {
  from { transform: scaleY(.65); opacity: .55; }
  to { transform: scaleY(1); opacity: 1; }
}

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: .42; }
  30% { transform: translateY(-3px); opacity: 1; }
}

@keyframes next-bounce {
  0%, 100% { transform: translateY(-3px); }
  50% { transform: translateY(5px); }
}

@media (max-width: 1100px) {
  :root { --header-height: 78px; }

  .hero {
    grid-template-columns: 1fr minmax(320px, .72fr);
    gap: 34px;
  }

  .hero-title {
    font-size: clamp(4rem, 9vw, 7.2rem);
  }

  .service-card {
    grid-template-columns: 48px minmax(280px, .85fr) minmax(300px, 1.15fr);
    gap: 28px;
  }

  .service-demo {
    min-height: 300px;
  }

  .portfolio-card {
    min-height: 620px;
  }

  .portfolio-card-visual {
    min-height: 310px;
  }

  .pallet-workspace {
    grid-template-columns: 1fr;
  }

  .pallet-controls {
    border-right: 0;
    border-bottom: 1px solid var(--pc-line);
  }

  .pallet-output-sticky {
    position: static;
  }

  .pallet-product-grid,
  .pallet-settings-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pallet-visual {
    min-height: 520px;
  }
}

@media (max-width: 860px) {
  .shell {
    width: min(calc(100% - 40px), var(--shell));
  }

  .header-inner {
    grid-template-columns: 1fr auto auto;
    gap: 22px;
  }

  .site-nav {
    gap: 0;
  }

  .site-nav a:not(:last-child) {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    align-content: center;
    padding-top: calc(var(--header-height) + 74px);
    padding-bottom: 94px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-title {
    font-size: clamp(4.2rem, 15vw, 7.8rem);
  }

  .hero-visual {
    width: min(76vw, 520px);
    margin-top: 20px;
    justify-self: center;
  }

  .hero-meta {
    bottom: 30px;
    overflow: hidden;
    white-space: nowrap;
  }

  .section-heading,
  .approach-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 28px;
  }

  .service-card {
    grid-template-columns: 42px 1fr;
    min-height: auto;
  }

  .service-content {
    grid-column: 2;
  }

  .service-demo {
    grid-column: 1 / -1;
    margin-top: 24px;
  }

  .approach-grid {
    gap: 76px;
  }

  .approach-copy {
    position: static;
  }

  .statement {
    min-height: 540px;
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
  }

  .footer-inner p:first-of-type {
    display: none;
  }

  .portfolio-hero {
    min-height: auto;
  }

  .portfolio-title {
    font-size: clamp(4.8rem, 15vw, 8rem);
  }

  .portfolio-section-head {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .portfolio-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
    min-height: 420px;
  }

  .portfolio-card-visual {
    min-height: 420px;
    border-right: 1px solid rgba(255, 255, 255, .1);
    border-bottom: 0;
  }

  .pallet-case-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .pallet-case-head > p {
    max-width: 620px;
  }

  .pallet-report-grid {
    grid-template-columns: 1fr;
  }

  .pallet-report-summary,
  .pallet-order-summary,
  .pallet-cdek-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .pallet-cdek-report > footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  :root { --header-height: 68px; }

  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    will-change: auto;
  }

  .header-contact {
    font-size: .66rem;
  }

  .header-inner {
    gap: 12px;
  }

  .site-nav a {
    font-size: .62rem;
  }

  .header-contact span {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 62px);
    padding-bottom: 96px;
    gap: 42px;
  }

  .hero-title {
    margin-top: 22px;
    font-size: clamp(3.35rem, 17.2vw, 5.5rem);
    line-height: .84;
  }

  .hero-lead {
    margin-top: 27px;
    font-size: .98rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 30px;
  }

  .button {
    justify-content: space-between;
  }

  .hero-visual {
    width: min(88vw, 390px);
  }

  .visual-label--shops {
    right: 0;
  }

  .hero-meta {
    gap: 0;
    font-size: .55rem;
  }

  .hero-meta span:nth-child(n+3) {
    display: none;
  }

  .section {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .section-heading {
    margin-bottom: 58px;
  }

  .section-heading h2,
  .approach-copy h2 {
    font-size: clamp(2.7rem, 13vw, 4.3rem);
  }

  .service-card {
    display: block;
    padding: 48px 0 58px;
  }

  .service-number {
    margin-bottom: 26px;
  }

  .service-content h3 {
    font-size: clamp(2.7rem, 12.5vw, 4.2rem);
  }

  .service-content > p:not(.service-kicker) {
    font-size: .94rem;
  }

  .service-demo {
    min-height: 280px;
    margin-top: 36px;
  }

  .message--one {
    top: 60px;
    left: 4%;
  }

  .message--two {
    right: 4%;
    bottom: 45px;
  }

  .flow-node {
    padding: 10px 9px;
    font-size: .54rem;
  }

  .bot-flow {
    gap: 5px;
  }

  .shop-window {
    width: 78%;
  }

  .shop-grid {
    padding: 14px;
    gap: 5px;
  }

  .service-demo--system {
    padding: 52px 22px 34px;
  }

  .data-result {
    right: 22px;
  }

  .approach-grid {
    gap: 60px;
  }

  .process-list li {
    grid-template-columns: 42px 1fr;
  }

  .statement {
    width: calc(100% - 28px);
    min-height: 500px;
    padding: 36px 24px;
  }

  .statement-text {
    font-size: clamp(2.7rem, 14vw, 4.7rem);
  }

  .statement-orbit {
    right: -36%;
    width: 100vw;
  }

  .contact-card {
    padding-inline: 10px;
  }

  .contact-card h2 {
    font-size: clamp(3.5rem, 17vw, 6rem);
  }

  .contact-link {
    margin-top: 48px;
    font-size: clamp(1.2rem, 6vw, 2rem);
  }

  .contact-modal {
    align-items: end;
    padding: 0;
  }

  .contact-modal-dialog {
    width: 100%;
    max-height: calc(100svh - 14px);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
  }

  .contact-modal-content {
    padding: 34px 20px max(28px, env(safe-area-inset-bottom));
  }

  .contact-modal-close {
    top: 14px;
    right: 14px;
  }

  .contact-modal-title {
    padding-right: 46px;
  }

  .contact-form {
    gap: 14px;
    margin-top: 26px;
  }

  .contact-field input {
    min-height: 54px;
  }

  .contact-modal-success {
    padding: 58px 20px max(34px, env(safe-area-inset-bottom));
  }

  .site-footer {
    padding-bottom: max(32px, env(safe-area-inset-bottom));
  }

  .portfolio-hero {
    padding-top: calc(var(--header-height) + 62px);
    padding-bottom: 90px;
  }

  .portfolio-hero::after {
    display: none;
  }

  .portfolio-title {
    margin-top: 25px;
    font-size: clamp(3.45rem, 17.2vw, 5.7rem);
    line-height: .82;
  }

  .portfolio-title .title-line:nth-child(2) {
    padding-left: 18px;
  }

  .portfolio-intro {
    grid-template-columns: 1fr;
    margin-top: 42px;
  }

  .portfolio-counter {
    margin: 10px 0 0;
  }

  .portfolio-showcase {
    padding-top: 96px;
    padding-bottom: 108px;
  }

  .portfolio-section-head h2 {
    font-size: clamp(2.75rem, 13vw, 4.4rem);
  }

  .portfolio-grid {
    gap: 18px;
  }

  .portfolio-card {
    display: flex;
    min-height: 650px;
  }

  .portfolio-card-visual {
    min-height: 320px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }

  .portfolio-card:hover,
  .portfolio-card:focus-visible {
    transform: translateY(-6px);
  }

  .portfolio-card h3 {
    font-size: 3rem;
  }

  .portfolio-next {
    grid-template-columns: 1fr auto;
    gap: 12px 20px;
  }

  .portfolio-next p {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .pallet-case {
    width: calc(100% - 14px);
  }

  .pallet-case-head {
    width: calc(100% - 14px);
    margin-inline: auto;
  }

  .pallet-case-head h2 {
    margin-top: 25px;
    font-size: clamp(2.75rem, 13vw, 4.5rem);
  }

  .pallet-calculator {
    border-radius: 14px;
  }

  .pallet-calculator-topbar {
    min-height: 68px;
    padding-inline: 16px;
  }

  .pallet-calculator-status {
    display: none;
  }

  .pallet-controls,
  .pallet-output,
  .pallet-report {
    padding: 20px 14px;
  }

  .pallet-panel-head,
  .pallet-output-head,
  .pallet-report-head {
    align-items: flex-start;
  }

  .pallet-output-head {
    flex-direction: column;
  }

  .pallet-output-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .pallet-output-sticky:fullscreen {
    padding: 10px;
  }

  .pallet-output-sticky:fullscreen.is-manual-editing .pallet-editor-layout {
    grid-template-columns: minmax(210px, 40vw) minmax(0, 1fr);
    gap: 8px;
  }

  .pallet-output-sticky:fullscreen.is-manual-editing .pallet-manual-sidebar {
    padding: 10px;
  }

  .pallet-add-button {
    padding-inline: 9px;
    font-size: .5rem;
  }

  .pallet-product {
    padding: 8px 10px;
  }

  .pallet-product.is-expanded {
    padding-block: 12px;
  }

  .pallet-product-identity {
    margin-left: 9px;
  }

  .pallet-product-chevron {
    margin-left: 4px;
  }

  .pallet-product-grid,
  .pallet-settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pallet-field--name,
  .pallet-field--wide {
    grid-column: span 2;
  }

  .pallet-visual {
    min-height: 310px;
  }

  .pallet-result-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .pallet-result-metrics article {
    min-height: 112px;
    padding: 12px;
  }

  .pallet-result-metrics article:first-child strong {
    font-size: 1.18rem;
  }

  .pallet-visual-bottom {
    align-items: flex-end;
  }

  .pallet-run-actions {
    gap: 7px;
  }

  .pallet-run-actions .pallet-calculate-button,
  .pallet-run-actions .pallet-build-manual-button {
    min-height: 58px;
    gap: 8px;
    padding: 9px 10px;
  }

  .pallet-run-actions .pallet-calculate-button {
    grid-template-columns: 27px minmax(0, 1fr);
  }

  .pallet-run-actions .pallet-calculate-button b {
    display: none;
  }

  .pallet-run-actions .pallet-build-manual-button {
    grid-template-columns: 27px minmax(0, 1fr);
  }

  .pallet-run-actions .pallet-build-manual-button svg {
    width: 27px;
    height: 27px;
  }

  .pallet-run-actions .pallet-calculate-button strong,
  .pallet-run-actions .pallet-build-manual-button strong {
    font-size: .58rem;
    line-height: 1.2;
  }

  .pallet-run-actions .pallet-calculate-button small,
  .pallet-run-actions .pallet-build-manual-button small {
    font-size: .48rem;
    line-height: 1.25;
  }

  .pallet-download-button {
    font-size: .48rem;
  }

  .pallet-report-head {
    display: grid;
  }

  .pallet-report-summary,
  .pallet-order-summary,
  .pallet-cdek-summary {
    grid-template-columns: 1fr 1fr;
  }

  .pallet-cdek-report > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .pallet-report-summary > div {
    padding: 8px 10px;
  }

  .pallet-report-summary strong {
    font-size: 1.35rem;
  }

  .pallet-report table {
    min-width: 610px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
