@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/assets/fonts/oswald-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/assets/fonts/oswald-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f2e9d8;
  --paper-bright: #fffaf0;
  --paper-deep: #ded0b8;
  --carbon: #151512;
  --muted: #655f54;
  --tomato: #aa2d1b;
  --tomato-dark: #841f11;
  --herb: #3e6b52;
  --herb-dark: #244633;
  --telegram: #126a96;
  --telegram-dark: #0a4d70;
  --steel: #c7b79d;
  --steel-dark: #5e5b54;
  --focus: #ffd83d;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --receipt: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --body: Arial, Helvetica, sans-serif;
  color-scheme: light;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: clip;
  scrollbar-color: var(--tomato) var(--paper-deep);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--carbon);
  background: var(--paper);
  font-family: var(--body);
  text-rendering: optimizeLegibility;
  max-width: 100%;
  overflow-x: clip;
}

::selection {
  color: var(--paper-bright);
  background: var(--tomato);
}

::-webkit-scrollbar {
  width: 13px;
}

::-webkit-scrollbar-track {
  background: var(--paper-deep);
}

::-webkit-scrollbar-thumb {
  border: 3px solid var(--paper-deep);
  background: var(--tomato);
}

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

a {
  color: inherit;
}

button {
  color: inherit;
  font: inherit;
}

:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  color: #fff;
  background: var(--carbon);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.top-rail {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 0 clamp(20px, 4vw, 72px);
  color: #fff;
  border-bottom: 4px solid #2b2a26;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), transparent 26%, rgba(0, 0, 0, 0.17)),
    url("/assets/brushed-steel.jpg") center 46% / cover;
  box-shadow: 0 5px 12px rgba(25, 20, 14, 0.28);
}

.brand-tab {
  text-decoration: none;
}

.brand-tab {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  color: var(--carbon);
  border: 2px solid rgba(21, 21, 18, 0.72);
  background: var(--paper-bright);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.28);
  font-family: var(--display);
  font-size: 1.08rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.brand-dot {
  width: 12px;
  height: 12px;
  background: var(--tomato);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.22);
}

.hero-stage {
  position: relative;
  isolation: isolate;
  min-height: 650px;
  padding: clamp(62px, 6vw, 88px) clamp(20px, 4vw, 72px) 34px;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.75), transparent 42%),
    linear-gradient(105deg, rgba(168, 164, 154, 0.38), rgba(212, 206, 193, 0.26) 34%, rgba(159, 156, 148, 0.36) 72%, rgba(200, 193, 181, 0.3)),
    url("/assets/brushed-steel.jpg") center / cover;
}

.hero-stage::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero-rail {
  position: absolute;
  z-index: -1;
  top: 58px;
  right: 0;
  left: 0;
  height: 32px;
  border-top: 2px solid rgba(255, 255, 255, 0.8);
  border-bottom: 4px solid rgba(42, 41, 38, 0.72);
  background: linear-gradient(180deg, #efede8, #807e78 42%, #d4d1c9 56%, #6a6965);
  box-shadow: 0 7px 9px rgba(23, 21, 17, 0.35);
}

.hero-rail span {
  position: absolute;
  top: -10px;
  width: 82px;
  height: 50px;
  border: 2px solid #4f4d48;
  background: linear-gradient(90deg, #77736a, #d4cec3 45%, #66635d);
  box-shadow: 0 5px 4px rgba(0, 0, 0, 0.35);
}

.hero-rail span:first-child {
  left: 16%;
}

.hero-rail span:last-child {
  right: 19%;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(430px, 1.1fr) minmax(90px, 0.26fr) minmax(330px, 0.72fr);
  align-items: center;
  max-width: 1220px;
  margin: 0 auto;
}

.hero-grid > * {
  min-width: 0;
}

.hero-scribble {
  position: absolute;
  z-index: 1;
  max-width: 150px;
  color: rgba(21, 21, 18, 0.62);
  font-family: var(--receipt);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.45;
  text-transform: uppercase;
  transform: rotate(-6deg);
}

.hero-scribble svg {
  display: block;
  width: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 3;
}

.scribble-left {
  top: 360px;
  left: max(10px, calc(50vw - 705px));
}

.scribble-right {
  top: 325px;
  right: max(10px, calc(50vw - 705px));
  transform: rotate(5deg);
}

.ticket {
  position: relative;
  min-width: 0;
  max-width: 100%;
  background-color: var(--paper-bright);
  background-image: url("/assets/paper-fiber.png");
  background-size: 512px 512px;
  border: 1px solid rgba(87, 72, 51, 0.24);
  box-shadow: 0 20px 30px rgba(49, 40, 27, 0.22), 0 4px 8px rgba(34, 31, 26, 0.24);
}

.ticket::after,
.pairing-ticket::after,
.voice-roll::after,
.workbench-close::after {
  position: absolute;
  right: 0;
  bottom: -12px;
  left: 0;
  height: 13px;
  content: "";
  background:
    linear-gradient(135deg, var(--paper-bright) 8px, transparent 0) 0 0 / 16px 16px repeat-x,
    linear-gradient(45deg, transparent 8px, var(--paper-bright) 0) 0 0 / 16px 16px repeat-x;
}

.ticket-command {
  z-index: 3;
  min-height: 465px;
  padding: 28px clamp(28px, 3.2vw, 48px) 102px;
  transform: rotate(-0.55deg);
}

.ticket-result {
  z-index: 2;
  min-height: 382px;
  padding: 28px clamp(24px, 2.5vw, 34px) 98px;
  transform: rotate(0.8deg);
}

.clip {
  position: absolute;
  z-index: 4;
  top: -34px;
  width: 74px;
  height: 52px;
  border: 2px solid #504d47;
  background: linear-gradient(90deg, #69665f, #ddd8ce 47%, #5a5751);
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.35);
}

.clip::after {
  position: absolute;
  right: 10px;
  bottom: 8px;
  left: 10px;
  height: 8px;
  content: "";
  border: 1px solid #68645b;
  background: #4d4a44;
}

.clip-left {
  left: 18%;
}

.clip-right {
  right: 18%;
}

.ticket-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 0 0 22px;
  font-family: var(--receipt);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ticket-meta span {
  display: grid;
  width: 30px;
  height: 30px;
  color: #fff;
  background: var(--carbon);
  place-items: center;
}

.ticket h1,
.section-ticket h2,
.command-intro h2,
.questions-heading h2,
.workbench-close h3 {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 0.86;
  text-transform: uppercase;
}

.ticket h1 {
  max-width: 7ch;
  margin: 0;
  font-size: clamp(5.3rem, 7.5vw, 7.9rem);
}

.utterance {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
  padding-block: 13px;
  border-top: 2px dashed var(--muted);
  border-bottom: 2px dashed var(--muted);
}

.utterance svg {
  width: 44px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.5;
}

.utterance p {
  margin: 0;
  font-family: var(--receipt);
  font-size: clamp(1.25rem, 1.7vw, 1.85rem);
  line-height: 1.18;
}

.utterance strong {
  font-weight: 900;
}

.hero-note {
  max-width: 46ch;
  margin: 16px 0 12px;
  color: var(--muted);
  font-size: clamp(0.9rem, 1.05vw, 1rem);
  line-height: 1.45;
}

.copy-line {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 4px 0;
  border: 0;
  border-bottom: 2px solid currentColor;
  background: transparent;
  font-family: var(--receipt);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.ticket-actions {
  position: absolute;
  right: -1px;
  bottom: 0;
  left: -1px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
}

.stub {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 94px;
  padding: 18px 22px;
  color: #fff;
  border: 0;
  text-align: left;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.015em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  background-image: url("/assets/paper-fiber.png");
  background-size: 440px 440px;
  transition: background-color 140ms ease, transform 140ms ease, filter 140ms ease;
}

.stub:hover {
  transform: translateY(3px);
  filter: saturate(1.08);
}

.stub:active {
  transform: translateY(7px);
}

.stub small {
  display: block;
  margin-bottom: 6px;
  font-family: var(--receipt);
  font-size: 0.58rem;
  letter-spacing: 0.05em;
}

.stub-alice {
  background-color: var(--tomato);
}

.stub-alice:hover {
  background-color: var(--tomato-dark);
}

.stub-copy {
  border-left: 2px dashed rgba(21, 21, 18, 0.52);
  background-color: var(--herb);
}

.stub-copy:hover {
  background-color: var(--herb-dark);
}

.alice-mark {
  width: 34px;
  height: 34px;
  border: 8px solid currentColor;
  border-top-color: transparent;
  border-radius: 50% 50% 44% 56%;
  transform: rotate(24deg);
}

.flow-arrow {
  position: relative;
  z-index: 4;
  align-self: center;
  margin-inline: -12px;
  color: var(--carbon);
  transform: rotate(-6deg);
}

.flow-arrow svg {
  display: block;
  width: 100%;
  min-width: 130px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 7;
}

.flow-arrow span {
  display: block;
  font-family: var(--receipt);
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.receipt-head,
.ingredient-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--receipt);
}

.receipt-head {
  padding-block: 12px;
  border-top: 2px dashed var(--muted);
  border-bottom: 2px dashed var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.receipt-head p {
  margin: 0;
}

.ingredient-list {
  margin: 10px 0 24px;
  padding: 0;
  list-style: none;
}

.ingredient-list li {
  gap: 20px;
  padding-block: 13px;
  border-bottom: 1px dashed rgba(21, 21, 18, 0.48);
  font-size: clamp(1rem, 1.5vw, 1.35rem);
}

.ingredient-list li span {
  overflow: hidden;
}

.ingredient-list li span::after {
  margin-left: 8px;
  color: rgba(21, 21, 18, 0.4);
  content: "................................";
  white-space: nowrap;
}

.ingredient-list strong {
  flex: 0 0 auto;
}

.ready-stamp {
  width: fit-content;
  margin: 20px auto 15px;
  padding: 8px 18px 4px;
  color: var(--herb);
  border: 5px double var(--herb);
  font-family: var(--display);
  font-size: clamp(2.4rem, 3.4vw, 3.7rem);
  line-height: 1;
  text-transform: uppercase;
  transform: rotate(-3deg);
}

.receipt-total {
  margin: 0;
  font-family: var(--receipt);
  font-size: 0.68rem;
  text-align: center;
  text-transform: uppercase;
}

.ticket-result .stub-telegram {
  position: absolute;
  right: -1px;
  bottom: 0;
  left: -1px;
  background-color: var(--telegram);
}

.stub-telegram:hover {
  background-color: var(--telegram-dark);
}

.stub-telegram svg {
  width: 42px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.private-note {
  max-width: 760px;
  margin: 30px auto 0;
  padding: 12px 18px;
  color: rgba(21, 21, 18, 0.78);
  border: 1px solid rgba(21, 21, 18, 0.38);
  background: rgba(242, 233, 216, 0.74);
  font-family: var(--receipt);
  font-size: 0.74rem;
  line-height: 1.55;
  text-align: center;
}

.workbench,
.questions-section {
  position: relative;
  padding: clamp(60px, 6vw, 88px) clamp(20px, 5vw, 84px);
  background-color: var(--paper);
  background-image: url("/assets/paper-fiber.png");
  background-size: 640px 640px;
}

.section-ticket {
  display: block;
  align-items: end;
  max-width: 1280px;
  margin: 0 auto 42px;
}

.section-ticket h2,
.questions-heading h2 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(3.2rem, 5.6vw, 5.7rem);
}

.secondary-rail {
  height: 26px;
  margin: 0 calc(clamp(20px, 5vw, 84px) * -1);
  border-top: 2px solid #e6e0d5;
  border-bottom: 4px solid #4c4b47;
  background: linear-gradient(180deg, #cfcac0, #77746d 48%, #d7d3cb 58%, #77746d);
  box-shadow: 0 6px 9px rgba(37, 31, 23, 0.28);
}

.pairing-line {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr 0.9fr;
  gap: clamp(16px, 2.6vw, 38px);
  max-width: 1280px;
  margin: -6px auto 0;
  padding: 0;
  list-style: none;
}

.pairing-ticket {
  position: relative;
  min-height: 260px;
  padding: 44px clamp(22px, 2.6vw, 34px) 26px;
  background-color: var(--paper-bright);
  background-image: url("/assets/paper-fiber.png");
  background-size: 512px 512px;
  border-right: 1px solid rgba(21, 21, 18, 0.16);
  border-left: 1px solid rgba(21, 21, 18, 0.16);
  box-shadow: 0 16px 20px rgba(46, 36, 22, 0.14);
}

.pairing-ticket::before {
  position: absolute;
  top: -14px;
  left: 50%;
  width: 56px;
  height: 34px;
  content: "";
  border: 2px solid #56534d;
  background: linear-gradient(90deg, #747069, #d8d3c9 50%, #66635d);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.28);
  transform: translateX(-50%);
}

.step-number {
  display: block;
  margin-bottom: 18px;
  color: var(--tomato);
  font-family: var(--display);
  font-size: 3.7rem;
  line-height: 0.8;
}

.pairing-ticket h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.25vw, 2.35rem);
  font-weight: 900;
  letter-spacing: 0.015em;
  line-height: 0.98;
  text-transform: uppercase;
}

.pairing-ticket p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.pairing-ticket a,
.pairing-ticket button {
  position: absolute;
  right: 28px;
  bottom: 20px;
  left: 28px;
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border: 0;
  border-top: 2px dashed var(--muted);
  background: transparent;
  text-decoration: none;
  font-family: var(--receipt);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.command-station {
  display: grid;
  grid-template-columns: 0.75fr 1.2fr 0.82fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  max-width: 1280px;
  margin: clamp(62px, 7vw, 96px) auto 0;
  padding: clamp(52px, 5vw, 72px) 0 14px;
  color: var(--carbon);
  border-top: 2px solid rgba(21, 21, 18, 0.18);
}

.command-intro {
  position: relative;
}

.command-intro h2 {
  margin: 0 0 24px;
  font-size: clamp(3.3rem, 4.6vw, 5rem);
}

.command-intro > p:not(.eyebrow) {
  max-width: 32ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.chalk-stamp {
  width: fit-content;
  margin-top: 38px;
  padding: 12px 18px;
  color: var(--herb);
  border: 3px double var(--herb);
  font-family: var(--receipt);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

.voice-roll {
  position: relative;
  color: var(--carbon);
  background-color: var(--paper-bright);
  background-image: url("/assets/paper-fiber.png");
  background-size: 512px 512px;
  box-shadow: 0 18px 32px rgba(55, 43, 27, 0.2);
}

.voice-roll header {
  padding: 30px 32px 24px;
  border-bottom: 3px solid var(--carbon);
}

.voice-roll header p,
.telegram-strip header p {
  margin: 0 0 7px;
  font-family: var(--receipt);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.voice-roll header h3,
.telegram-strip header h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 4vw, 4.6rem);
  letter-spacing: 0.01em;
  line-height: 0.92;
  text-transform: uppercase;
}

.command-list button {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  width: 100%;
  padding: 18px 32px;
  border: 0;
  border-bottom: 1px dashed rgba(21, 21, 18, 0.42);
  background: transparent;
  text-align: left;
  font-family: var(--receipt);
  font-size: clamp(0.82rem, 1.15vw, 1rem);
  cursor: pointer;
}

.command-list button:hover,
.command-list button:focus-visible {
  background: #f8db96;
}

.command-list small {
  display: block;
  margin-bottom: 5px;
  color: var(--herb);
  font-family: var(--body);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.telegram-strip {
  color: #fff;
  background-color: var(--telegram);
  background-image: url("/assets/paper-fiber.png");
  background-size: 480px 480px;
  box-shadow: 0 18px 32px rgba(55, 43, 27, 0.24);
  transform: rotate(0.5deg);
}

.telegram-strip header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 26px;
  border-bottom: 2px dashed rgba(255, 255, 255, 0.62);
}

.telegram-plane {
  display: grid;
  width: 52px;
  height: 52px;
  color: var(--telegram);
  background: #fff;
  border-radius: 50%;
  font-size: 1.6rem;
  place-items: center;
  transform: rotate(-18deg);
}

.telegram-strip ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.telegram-strip li {
  border-bottom: 1px dashed rgba(255, 255, 255, 0.48);
}

.telegram-strip li button {
  display: grid;
  grid-template-columns: minmax(92px, 0.45fr) 1fr;
  gap: 12px;
  width: 100%;
  padding: 17px 24px;
  color: #fff;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.telegram-strip li button:hover,
.telegram-strip li button:focus-visible {
  background: var(--telegram-dark);
}

.telegram-strip code {
  font-family: var(--receipt);
  font-size: 0.92rem;
  font-weight: 900;
}

.telegram-strip li span {
  font-size: 0.78rem;
  line-height: 1.35;
}

.telegram-strip > a {
  display: flex;
  justify-content: space-between;
  margin: 24px;
  padding: 17px 0;
  border-top: 3px solid currentColor;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.5rem;
  text-transform: uppercase;
}

.workbench-side {
  display: grid;
  gap: 32px;
  align-self: start;
}

.workbench-close {
  position: relative;
  padding: 26px 24px 30px;
  background-color: var(--paper-bright);
  background-image: url("/assets/paper-fiber.png");
  background-size: 440px 440px;
  box-shadow: 0 18px 32px rgba(55, 43, 27, 0.2);
  transform: rotate(-0.7deg);
}

.workbench-close > p {
  margin: 0 0 12px;
  font-family: var(--receipt);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.workbench-close h3 {
  margin: 0 0 24px;
  font-size: clamp(2.5rem, 3.5vw, 4rem);
}

.workbench-stamp {
  width: fit-content;
  margin: 0 0 24px;
  padding: 9px 10px 6px;
  color: var(--herb);
  border: 4px double var(--herb);
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 0.95;
  text-transform: uppercase;
  transform: rotate(-3deg);
}

.workbench-actions {
  display: grid;
}

.workbench-actions a {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px;
  color: #fff;
  background-color: var(--tomato);
  background-image: url("/assets/paper-fiber.png");
  background-size: 440px 440px;
  transition: background-color 140ms ease, transform 140ms ease;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.3rem;
  text-transform: uppercase;
}

.workbench-actions a + a {
  border-top: 2px dashed rgba(255, 255, 255, 0.64);
  background-color: var(--telegram);
}

.workbench-actions a:hover,
.workbench-actions a:focus-visible {
  background-color: var(--tomato-dark);
  transform: translateX(4px);
}

.workbench-actions a + a:hover,
.workbench-actions a + a:focus-visible {
  background-color: var(--telegram-dark);
}

.questions-section {
  display: grid;
  grid-template-columns: 0.62fr 1.38fr;
  gap: clamp(44px, 8vw, 130px);
}

.questions-heading {
  align-self: start;
  position: sticky;
  top: 40px;
}

.questions-heading h2 {
  margin-top: 0;
}

.question-drawer {
  border-top: 4px solid var(--carbon);
}

.question-drawer details {
  border-bottom: 2px solid var(--carbon);
}

.question-drawer summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 26px 6px;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.question-drawer summary::-webkit-details-marker {
  display: none;
}

.question-drawer summary > .icon {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  transition: transform 160ms ease;
}

.question-drawer details[open] summary > .icon {
  transform: rotate(45deg);
}

.question-drawer details p {
  max-width: 62ch;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.question-drawer code {
  padding: 2px 5px;
  color: var(--paper-bright);
  background: var(--carbon);
  font-family: var(--receipt);
}

.access-note {
  grid-column: 2;
  justify-self: start;
  display: inline-flex;
  gap: 10px;
  padding-block: 8px;
  border-bottom: 2px solid currentColor;
  font-family: var(--receipt);
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 5vw, 84px);
  color: rgba(255, 250, 240, 0.68);
  background: var(--carbon);
  font-family: var(--receipt);
  font-size: 0.68rem;
  text-transform: uppercase;
}

footer p {
  margin: 0;
}

.copy-toast {
  position: fixed;
  z-index: 60;
  right: 24px;
  bottom: 24px;
  max-width: min(340px, calc(100vw - 48px));
  padding: 16px 20px;
  color: var(--paper-bright);
  border: 2px solid var(--paper-bright);
  background: var(--carbon);
  box-shadow: 8px 8px 0 var(--tomato);
  font-family: var(--receipt);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .hero-grid {
    grid-template-columns: minmax(420px, 1.05fr) 80px minmax(320px, 0.75fr);
  }

  .hero-scribble {
    display: none;
  }

  .command-station {
    grid-template-columns: 0.7fr 1.3fr;
  }

  .workbench-side {
    grid-column: 2;
  }
}

@media (max-width: 860px) {
  .top-rail {
    min-height: 60px;
    padding-inline: 18px;
  }

  .brand-tab {
    min-height: 38px;
    font-size: 0.9rem;
  }

  .hero-stage {
    padding-top: 76px;
  }

  .hero-rail {
    top: 50px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 78px;
    max-width: 620px;
  }

  .ticket-command,
  .ticket-result {
    transform: none;
  }

  .flow-arrow {
    position: relative;
    z-index: 5;
    width: 145px;
    height: 54px;
    margin: -36px auto;
    transform: rotate(78deg);
  }

  .flow-arrow span {
    display: none;
  }

  .ticket-result {
    justify-self: end;
    width: min(88%, 480px);
  }

  .private-note {
    margin-top: 48px;
  }

  .section-ticket,
  .questions-section {
    grid-template-columns: 1fr;
  }

  .section-ticket {
    gap: 18px;
  }

  .pairing-line {
    grid-template-columns: 1fr;
    gap: 46px;
    max-width: 580px;
  }

  .command-station {
    grid-template-columns: 1fr;
  }

  .command-intro,
  .questions-heading {
    position: static;
  }

  .voice-roll,
  .workbench-side {
    grid-column: auto;
    width: min(100%, 620px);
  }

  .workbench-side {
    justify-self: end;
  }

  .access-note {
    grid-column: 1;
  }

}

@media (max-width: 580px) {
  html {
    scroll-behavior: auto;
  }

  .hero-stage {
    min-height: 0;
    padding: 76px 14px 44px;
  }

  .hero-rail {
    top: 48px;
    height: 24px;
  }

  .hero-rail span {
    width: 58px;
    height: 38px;
  }

  .ticket-command {
    width: 100%;
    min-height: 540px;
    padding: 32px 24px 152px;
  }

  .ticket h1 {
    max-width: 100%;
    font-size: clamp(4rem, 19vw, 5.3rem);
    overflow-wrap: normal;
    word-break: normal;
  }

  .utterance {
    grid-template-columns: 38px 1fr;
    gap: 12px;
  }

  .utterance svg {
    width: 36px;
  }

  .utterance p {
    font-size: 1.24rem;
  }

  .ticket-actions {
    grid-template-columns: 1fr;
  }

  .stub {
    min-width: 0;
    min-height: 72px;
    padding: 14px 18px;
    font-size: 1.12rem;
  }

  .stub-copy {
    border-top: 2px dashed rgba(21, 21, 18, 0.52);
    border-left: 0;
  }

  .flow-arrow {
    width: 120px;
    margin-block: -32px;
  }

  .ticket-result {
    width: calc(100% - 34px);
    min-height: 430px;
    padding: 32px 22px 108px;
  }

  .private-note {
    text-align: left;
  }

  .workbench,
  .questions-section,
  .command-station {
    padding: 76px 18px;
  }

  .command-station {
    margin-top: 64px;
    padding-inline: 0;
    padding-bottom: 16px;
  }

  .section-ticket h2,
  .questions-heading h2 {
    font-size: 3.25rem;
  }

  .secondary-rail {
    margin-inline: -18px;
  }

  .pairing-ticket {
    min-height: 280px;
    padding: 52px 24px 28px;
  }

  .command-intro h2 {
    font-size: 3.6rem;
  }

  .voice-roll header,
  .command-list button {
    padding-inline: 22px;
  }

  .command-list button {
    font-size: 0.78rem;
  }

  .workbench-side {
    width: calc(100% - 18px);
  }

  .questions-section {
    gap: 52px;
  }

  .question-drawer summary {
    font-size: 1.9rem;
  }

  .access-note {
    line-height: 1.5;
  }

  .workbench-close h3 {
    font-size: 3.35rem;
  }

  footer {
    display: grid;
  }

  .copy-toast {
    right: 18px;
    bottom: 18px;
    left: 18px;
    max-width: none;
  }
}

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