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

@font-face {
  font-family: "Gabarito";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("./assets/fonts/gabarito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

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

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./assets/fonts/onest-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --paper: #f5efe6;
  --paper-light: #fffbf5;
  --paper-deep: #ebe0d3;
  --ink: #25221e;
  --ink-soft: #5f574e;
  --ink-muted: #756b61;
  --line: #ded3c6;
  --orange: #f06b48;
  --orange-soft: #ffe6dc;
  --dark: #28241f;
  --dark-soft: #37312b;
  --white: #fffdf9;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --page-width: 1200px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  scrollbar-color: #bb8e78 var(--paper);
  scrollbar-width: thin;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Onest", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  color: var(--ink);
  background: #f6a78d;
}

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

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

::-webkit-scrollbar-thumb {
  border: 2px solid var(--paper);
  border-radius: 999px;
  background: #bb8e78;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid #8d3926;
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

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

.site-header {
  position: relative;
  z-index: 2;
  width: min(var(--page-width), calc(100% - 64px));
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header-inner {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 40px;
  flex: none;
  place-items: center;
}

.brand-mark img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.cursor-wrap {
  position: fixed;
  z-index: 1000;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.guider-cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  opacity: 0;
  transition: left 80ms linear, top 80ms linear, opacity 250ms ease;
  will-change: left, top, opacity;
}

.guider-cursor.is-visible {
  opacity: 1;
}

.guider-cursor-arrow {
  display: block;
  width: 14px;
  height: 18px;
  overflow: visible;
  transform: rotate(var(--movement-angle, 0deg));
  transform-origin: 2.4% 1.5%;
  filter: drop-shadow(0 0 1px rgba(246, 162, 122, 0.9)) drop-shadow(0 0 5px rgba(198, 90, 58, 0.62)) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.32));
  transition: transform 100ms cubic-bezier(0.22, 0.61, 0.36, 1), filter 160ms ease;
}

.guider-cursor.is-interactive .guider-cursor-arrow {
  filter: drop-shadow(0 0 4px rgba(246, 162, 122, 1)) drop-shadow(0 0 12px rgba(198, 90, 58, 1)) drop-shadow(0 0 22px rgba(198, 90, 58, 0.8));
}

.cursor-ripple {
  position: absolute;
  top: -6.7px;
  left: -6.7px;
  width: 14px;
  height: 14px;
  border: 2.25px solid #ff9a58;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 130, 49, 1), 0 0 22px rgba(198, 90, 58, 0.98);
  opacity: 0;
}

.cursor-ripple-two {
  border-color: #f6a27a;
  box-shadow: 0 0 10px rgba(246, 162, 122, 1), 0 0 22px rgba(198, 90, 58, 0.92);
}

.cursor-ripple.is-animating {
  animation: guider-cursor-ripple 900ms cubic-bezier(0.15, 0.7, 0.25, 1) forwards;
}

.cursor-ripple-two.is-animating {
  animation-delay: 140ms;
}

@keyframes guider-cursor-ripple {
  0% { transform: scale(0.75); opacity: 1; }
  100% { transform: scale(3.8); opacity: 0; }
}

.cursor-label {
  position: absolute;
  top: 28px;
  left: 50%;
  max-width: min(280px, calc(100vw - 24px));
  padding: 5px 12px;
  border: 1px solid rgba(198, 90, 58, 0.55);
  border-radius: 20px;
  background: rgba(8, 9, 18, 0.92);
  color: #f6a27a;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateX(-50%) translateY(6px);
  transition: opacity 250ms ease, transform 250ms ease;
}

.guider-cursor.is-interactive .cursor-label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (hover: none), (pointer: coarse) {
  .cursor-wrap {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guider-cursor,
  .guider-cursor-arrow,
  .cursor-label {
    transition: none;
  }

  .cursor-ripple.is-animating {
    animation-duration: 1ms;
  }
}

.brand-name,
.footer-brand span {
  font-family: "Gabarito", sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 38px);
}

.nav-link {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms var(--ease-out);
}

.nav-link:hover,
.footer-top:hover {
  color: #8d3926;
}

.nav-action,
.closing-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--orange);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.nav-action:hover,
.closing-link:hover {
  transform: translateY(-2px);
  background: #f47a59;
}

.nav-action svg,
.submit-button svg,
.closing-link svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(50px, 5.5vw, 72px) 24px 32px;
}

.background-mark-layer {
  position: fixed;
  z-index: 0;
  top: 46%;
  left: 50%;
  width: min(90vw, 620px);
  transform: translate3d(-50%, calc(-50% + var(--mark-scroll-y, 0px)), 0);
  pointer-events: none;
  will-change: transform;
}

.background-mark-layer::before {
  position: absolute;
  z-index: 0;
  inset: -18% -12%;
  background: radial-gradient(ellipse, rgba(240, 107, 72, 0.13) 0%, rgba(180, 72, 47, 0.065) 36%, rgba(180, 72, 47, 0) 72%);
  content: "";
}

.background-mark-art {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.17;
  clip-path: inset(0);
  transform-origin: center;
  filter: drop-shadow(0 4px 24px rgba(141, 57, 38, 0.11));
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  margin: 0 auto;
  text-align: center;
}

.hero h1,
.section-heading h2,
.film-caption h2,
.control-copy h2,
.closing-inner h2 {
  font-family: "Gabarito", sans-serif;
  font-weight: 650;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero h1 {
  max-width: 11ch;
  margin: 0 auto;
  font-size: clamp(56px, 7.6vw, 96px);
  line-height: 0.98;
}

.hero h1 span {
  color: #b4482f;
}

.hero-copy {
  max-width: 60ch;
  margin: 20px auto 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.6;
  text-wrap: pretty;
}

.preregister-form {
  width: min(590px, 100%);
  margin: 26px auto 0;
  text-align: left;
}

.email-label {
  display: block;
  margin: 0 0 9px 3px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.email-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 6px;
  border: 1px solid #d5c9bb;
  border-radius: 14px;
  background: var(--paper-light);
  transition: border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.email-row:focus-within {
  border-color: #a94c34;
  box-shadow: 0 0 0 3px rgba(240, 107, 72, 0.18);
}

.email-row input {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  outline: 0;
  background: transparent;
  color: var(--ink);
  caret-color: #b94b30;
  font-size: 15px;
}

.email-row input::placeholder {
  color: #71675d;
  opacity: 1;
}

.submit-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: var(--orange);
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
  transition: background 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.submit-button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #f47a59;
}

.submit-button:active:not(:disabled) {
  transform: translateY(0);
}

.submit-button:disabled {
  cursor: wait;
  background: #e5a08b;
}

.verification-row {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  margin-top: 9px;
}

#turnstile-container {
  min-height: 65px;
}

.verification-message {
  width: 100%;
  margin: 0;
  color: var(--ink-muted);
  font-size: 12px;
  text-align: center;
}

.verification-message:empty {
  display: none;
}

.email-note {
  margin: 1px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  text-align: center;
}

.form-status {
  min-height: 1.4em;
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  text-align: center;
}

.form-status:empty {
  min-height: 0;
  margin-top: 0;
}

.form-status.is-error,
.verification-message.is-error {
  color: #8d3524;
}

.form-status.is-success {
  color: #34553e;
}

.film-section {
  width: min(var(--page-width), calc(100% - 64px));
  margin: 0 auto;
  padding: 0 0 clamp(80px, 9vw, 128px);
}

.film-figure {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 286px);
  align-items: center;
  gap: clamp(28px, 4vw, 54px);
  margin: 0;
}

.film-visual {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: #e7d6c4;
}

.desktop-window {
  position: relative;
  min-height: 355px;
  overflow: hidden;
  padding: 12px 14px;
  border: 1px solid rgba(37, 34, 30, 0.12);
  border-radius: 13px;
  background: #fffdf9;
  box-shadow: 0 20px 38px rgba(83, 57, 42, 0.14);
}

.window-bar {
  display: grid;
  height: 42px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 8px 14px;
  border-bottom: 1px solid #eee6de;
  background: #fffaf4;
  color: #554c43;
  font-size: 12px;
}

.window-controls {
  display: flex;
  gap: 5px;
}

.window-controls i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d4c6b8;
}

.window-controls i:first-child {
  background: #d66a4d;
}

.window-title {
  font-weight: 650;
}

.window-status {
  justify-self: end;
  color: #71675d;
}

.workspace {
  display: grid;
  min-height: 313px;
  grid-template-columns: 56px minmax(0, 1fr);
}

.workspace-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 17px;
  padding: 14px 4px;
  border-right: 1px solid #eee6de;
  background: #faf5ee;
}

.rail-mark {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  background: var(--dark);
  color: #fffaf4;
  font-family: "Gabarito", sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.rail-item {
  color: #756b61;
  font-size: 11px;
  line-height: 1;
}

.rail-item.is-active {
  color: #a84229;
  font-weight: 700;
}

.sheet {
  position: relative;
  min-width: 0;
  padding: 25px clamp(16px, 3vw, 34px);
}

.sheet-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.sheet-breadcrumb {
  margin: 0 0 7px;
  color: #756b61;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.sheet-breadcrumb span {
  padding: 0 4px;
  color: #b7a99b;
}

.sheet-heading h2 {
  margin: 0;
  font-family: "Gabarito", sans-serif;
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.sheet-date {
  flex: none;
  color: #756b61;
  font-size: 12px;
}

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

.sample-table {
  width: 100%;
  border-collapse: collapse;
  color: #403b35;
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
}

.sample-table th {
  padding: 10px 9px;
  border-bottom: 1px solid #e9dfd5;
  color: #756b61;
  font-size: 11px;
  font-weight: 650;
}

.sample-table td {
  padding: 13px 9px;
  border-bottom: 1px solid #f0e9e1;
}

.sample-table th:first-child,
.sample-table td:first-child {
  padding-left: 0;
}

.sample-table .target-column {
  background: #ffede5;
  color: #743823;
  border-right: 2px solid #b4482f;
  border-left: 2px solid #b4482f;
}

.sample-table th.target-column {
  border-top: 2px solid #b4482f;
  border-bottom-color: #e8b29d;
}

.sample-table tbody tr:last-child td.target-column {
  border-bottom: 2px solid #b4482f;
}

.status-dot,
.demo-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: #6f8867;
  vertical-align: 1px;
}

.status-dot.is-working {
  background: #d9894a;
}

.status-dot.is-later {
  background: #aaa096;
}

.screen-selection {
  position: absolute;
  top: 117px;
  right: clamp(112px, 14vw, 202px);
  width: 84px;
  height: 34px;
  border: 2px solid #b4482f;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.24);
  box-shadow: 0 0 0 4px rgba(240, 107, 72, 0.12);
  pointer-events: none;
}

.guide-demo-pointer {
  position: absolute;
  z-index: 4;
  top: 117px;
  right: clamp(122px, 15vw, 213px);
  width: 34px;
  height: 34px;
  pointer-events: none;
}

.guide-demo-pointer svg {
  display: block;
  width: 17px;
  height: 23px;
  filter: drop-shadow(0 1px 2px rgba(37, 34, 30, 0.4));
}

.guide-demo-pointer span {
  position: absolute;
  top: 18px;
  left: 12px;
  padding: 3px 7px;
  border: 1px solid rgba(180, 72, 47, 0.55);
  border-radius: 999px;
  background: var(--dark);
  color: #fff3e9;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.25;
}

.guide-callout {
  position: absolute;
  right: 25px;
  bottom: 62px;
  width: min(320px, 44%);
  padding: 17px 18px 18px;
  border: 1px solid #ead8cb;
  border-radius: 13px;
  background: var(--white);
  box-shadow: 0 14px 28px rgba(73, 50, 39, 0.16);
}

.callout-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 12px;
}

.callout-mark {
  display: grid;
  width: 26px;
  height: 20px;
  flex: none;
  place-items: center;
}

.callout-mark img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.callout-mode {
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: #743823;
  font-size: 11px;
  font-weight: 700;
}

.guide-callout p {
  margin: 13px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.guide-callout p strong {
  color: var(--ink);
}

.callout-pointer {
  position: absolute;
  top: 59px;
  left: -29px;
  width: 30px;
  height: 1px;
  background: #b4482f;
}

.callout-pointer::after {
  position: absolute;
  top: -3px;
  left: -1px;
  width: 7px;
  height: 7px;
  border: 1px solid #b4482f;
  border-radius: 50%;
  background: var(--white);
  content: "";
}

.illustration-label {
  position: absolute;
  bottom: 13px;
  left: 18px;
  color: #5f574e;
  font-size: 11px;
  font-weight: 650;
}

.film-caption {
  display: flex;
  align-items: flex-start;
  gap: 17px;
}

.caption-mark {
  width: 30px;
  height: 4px;
  flex: none;
  margin-top: 15px;
  border-radius: 999px;
  background: var(--orange);
}

.film-caption h2 {
  margin: 0;
  font-size: clamp(27px, 3.1vw, 39px);
  line-height: 1.08;
}

.film-caption p {
  margin: 13px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.film-caption .video-note {
  margin-top: 20px;
  color: #8d3926;
  font-size: 12px;
  font-weight: 750;
}

.modes-section {
  padding: clamp(76px, 9vw, 126px) 32px clamp(88px, 10vw, 144px);
  border-top: 1px solid var(--line);
  background: rgba(251, 247, 240, 0.48);
}

.section-heading,
.mode-explorer {
  width: min(var(--page-width), 100%);
  margin-right: auto;
  margin-left: auto;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.8fr);
  align-items: end;
  gap: clamp(28px, 7vw, 96px);
  margin-bottom: 54px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(42px, 5.2vw, 68px);
  line-height: 1.02;
}

.section-heading h2 span {
  color: #b4482f;
}

.section-heading > p {
  max-width: 42ch;
  margin: 0 0 3px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
  text-wrap: pretty;
}

.mode-switch {
  display: flex;
  gap: 30px;
  border-bottom: 1px solid var(--line);
}

.mode-button {
  position: relative;
  min-height: 50px;
  padding: 0 2px 12px;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  transition: color 180ms var(--ease-out);
}

.mode-button::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  transform: scaleX(0.25);
  transform-origin: left center;
  background: var(--orange);
  content: "";
  opacity: 0;
  transition: transform 240ms var(--ease-out), opacity 180ms var(--ease-out);
}

.mode-button:hover,
.mode-button.is-active {
  color: var(--ink);
}

.mode-button.is-active::after {
  transform: scaleX(1);
  opacity: 1;
}

.mode-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
  align-items: center;
  gap: clamp(36px, 8vw, 112px);
  padding-top: 38px;
}

.mode-story h3 {
  max-width: 12ch;
  margin: 0;
  font-family: "Gabarito", sans-serif;
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-wrap: balance;
}

.mode-story > p:first-of-type {
  max-width: 50ch;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
  text-wrap: pretty;
}

.mode-boundary {
  display: inline-block;
  margin: 24px 0 0;
  padding: 8px 0 8px 14px;
  border-left: 1px solid #c95033;
  color: #743823;
  font-size: 13px;
  font-weight: 700;
}

.mode-demo {
  position: relative;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: #17191d;
  color: var(--paper-light);
  box-shadow: 0 24px 70px rgba(42, 31, 25, 0.2);
}

.screen-window {
  overflow: hidden;
  border: 1px solid #d9d6d0;
  border-radius: 12px;
  background: #fbfaf7;
  color: #262725;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.screen-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 27px;
  padding: 0 11px;
  background: #f2f1ee;
  color: #888984;
  font-size: 9px;
}

.window-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.window-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d4d1ca;
}

.window-dots i:first-child { background: #d78a72; }
.window-dots i:nth-child(2) { background: #d8b96f; }
.window-dots i:nth-child(3) { background: #98b48d; }
.window-location {
  width: min(250px, 66%);
  margin: 0 auto;
  padding: 3px 12px;
  overflow: hidden;
  border: 1px solid #e2e0db;
  border-radius: 5px;
  background: #faf9f7;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window-menu { letter-spacing: 2px; }
.screen-appbar {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 17px;
  border-bottom: 1px solid #e9e6e0;
  background: #fff;
  font-size: 10px;
}

.screen-app-icon {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 6px;
  background: #333b35;
  color: white;
  font-family: "Gabarito", sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.screen-app-name { font-weight: 750; }
.screen-app-divider { width: 1px; height: 18px; margin: 0 2px; background: #e5e2dc; }
.screen-app-view { color: #73756f; }
.screen-avatar, .avatar-mini {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #dfc9b8;
  color: #574a40;
  font-size: 8px;
  font-weight: 700;
}

.screen-avatar { width: 21px; height: 21px; margin-left: auto; }
.screen-canvas {
  position: relative;
  display: grid;
  min-height: 318px;
  padding: 18px 19px;
  overflow: hidden;
  background: #fbfaf7;
}
.cube-sheet { position: relative; width: 100%; align-self: center; }
.cube-prompt { display: grid; gap: 5px; margin-bottom: 3px; }
.cube-kicker {
  color: #756b61;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.1em;
}
.cube-prompt strong {
  color: #34332f;
  font-family: "Gabarito", sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.cube-diagram { display: block; width: 100%; height: auto; overflow: visible; }
.cube-face {
  fill: rgba(198, 90, 58, 0.11);
  fill-opacity: 0;
  stroke: #a8442e;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  transition: fill-opacity 180ms ease;
}
.cube-face.is-drawn { fill-opacity: 1; }
.cube-face-label {
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}
.cube-face-label.is-visible { opacity: 1; }
.cube-face-label rect {
  fill: rgba(37, 34, 30, 0.91);
  stroke: rgba(168, 68, 46, 0.72);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.cube-face-label text {
  fill: #fffaf4;
  font-family: "Onest", sans-serif;
  font-size: 9px;
  font-weight: 750;
  text-anchor: middle;
  dominant-baseline: central;
  letter-spacing: 0.06em;
}
.cube-drawing-cursor {
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(42, 31, 25, 0.35));
}
.cube-guide-caption {
  position: absolute;
  z-index: 4;
  max-width: min(230px, 72%);
  padding: 6px 9px;
  border: 1px solid rgba(198, 90, 58, 0.72);
  border-radius: 8px;
  background: rgba(37, 34, 30, 0.94);
  color: #fffaf4;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: 0 4px 12px rgba(37, 34, 30, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(2px);
  transition: opacity 150ms ease, transform 150ms ease;
  visibility: hidden;
}
.cube-guide-caption.is-visible { opacity: 1; transform: translateY(0); visibility: visible; }
.agent-worker {
  position: absolute;
  z-index: 5;
  top: 13px;
  right: 13px;
  width: min(222px, 53%);
  padding: 11px 12px 10px;
  border: 1px solid rgba(117, 173, 226, 0.58);
  border-radius: 11px;
  background: rgba(12, 23, 37, 0.96);
  box-shadow: 0 8px 22px rgba(12, 24, 41, 0.26), 0 0 16px rgba(77, 145, 211, 0.12);
  color: #d9eaff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px) scale(0.98);
  transition: opacity 220ms ease, transform 260ms var(--ease-out);
}
.mode-explorer[data-mode="agent"] .agent-worker { opacity: 1; transform: translateY(0) scale(1); }
.mode-explorer[data-mode="agent"] .cube-face { fill-opacity: 1; stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
.mode-explorer[data-mode="agent"] .cube-face-label { opacity: 1; }
.mode-explorer[data-mode="agent"] .cube-drawing-cursor,
.mode-explorer[data-mode="agent"] .cube-guide-caption { opacity: 0 !important; visibility: hidden; }
.agent-worker-top { display: flex; align-items: center; gap: 8px; }
.agent-worker-orb {
  display: grid;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(116, 174, 229, 0.35);
  border-radius: 8px;
  background: rgba(88, 166, 255, 0.13);
  color: #a9d2ff;
  font-size: 13px;
}
.agent-worker-orb svg { display: block; width: 16px; height: 16px; }
.agent-worker-top > span:nth-child(2) { display: grid; min-width: 0; gap: 3px; }
.agent-worker-top b { color: #8fc4ff; font-size: 7px; letter-spacing: 0.08em; }
.agent-worker-top small { overflow: hidden; color: #e0edfb; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.agent-worker-live { width: 6px; height: 6px; flex: 0 0 auto; margin-left: auto; border-radius: 50%; background: #58a6ff; box-shadow: 0 0 9px rgba(88, 166, 255, 0.9); }
.agent-worker-steps { display: flex; align-items: center; gap: 7px; margin: 10px 0 0 4px; color: #8c9eb2; font-size: 7px; }
.agent-worker-steps.is-current { margin-top: 7px; color: #d2e5fa; }
.step-done { display: grid; width: 10px; height: 10px; place-items: center; border-radius: 50%; background: rgba(83, 168, 129, 0.16); color: #8bd0a6; }
.step-done svg { display: block; width: 10px; height: 10px; }
.step-spinner { width: 9px; height: 9px; border: 1px solid rgba(133, 192, 246, 0.32); border-top-color: #8fc4ff; border-radius: 50%; }
.agent-worker-progress { height: 2px; margin: 10px 0 0 4px; overflow: hidden; border-radius: 9px; background: rgba(156, 191, 224, 0.14); }
.agent-worker-progress i { display: block; width: 68%; height: 100%; border-radius: inherit; background: #6eabe4; box-shadow: 0 0 7px rgba(88, 166, 255, 0.56); }
.mode-explorer[data-mode="agent"] #mode-demo.is-in-view:not(.is-page-hidden) .agent-worker-live { animation: agentLivePulse 1.2s ease-in-out infinite; }
.mode-explorer[data-mode="agent"] #mode-demo.is-in-view:not(.is-page-hidden) .step-spinner { animation: agentSpinner 1s linear infinite; }
.mode-explorer[data-mode="agent"] #mode-demo.is-in-view:not(.is-page-hidden) .agent-worker-progress i { animation: agentProgress 4.5s ease-in-out infinite alternate; }
.screen-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 25px;
  padding: 0 10px;
  background: #f4f2ee;
  color: #8c8b84;
  font-size: 7px;
}
.screen-footer > span:first-child { display: flex; align-items: center; gap: 6px; }
.screen-footer i { width: 5px; height: 5px; border-radius: 50%; background: #ce6547; }
.mode-explorer[data-mode="agent"] .screen-footer i { background: #58a6ff; }
.screen-footer b { color: #5d605c; font-size: 7px; letter-spacing: 0.09em; }

@keyframes agentLivePulse {
  0%, 100% { opacity: 0.65; transform: scale(0.88); }
  50% { opacity: 1; transform: scale(1.12); }
}
@keyframes agentSpinner { to { transform: rotate(360deg); } }
@keyframes agentProgress { to { width: 82%; } }

@media (prefers-reduced-motion: reduce) {
  .agent-worker-live, .step-spinner, .agent-worker-progress i {
    animation: none !important;
  }
  .cube-face { fill-opacity: 1; stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
  .cube-face-label { opacity: 1; }
  .cube-drawing-cursor, .cube-guide-caption { opacity: 0 !important; visibility: hidden; }
  .agent-worker-live { opacity: 1; }
  .agent-worker-progress i { width: 68%; }
}

.control-section {
  padding: clamp(74px, 8vw, 112px) 32px;
  background: var(--dark);
  color: var(--paper-light);
}

.control-inner {
  display: grid;
  width: min(var(--page-width), 100%);
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: start;
  gap: clamp(40px, 8vw, 118px);
  margin: 0 auto;
}

.control-copy h2 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.02;
}

.control-copy p {
  max-width: 48ch;
  margin: 20px 0 0;
  color: #e2d6c9;
  font-size: 16px;
  line-height: 1.7;
  text-wrap: pretty;
}

.control-list {
  margin: 0;
  border-top: 1px solid rgba(255, 251, 245, 0.24);
}

.control-list div {
  display: grid;
  grid-template-columns: minmax(100px, 0.42fr) minmax(0, 1fr);
  gap: 22px;
  padding: 19px 0;
  border-bottom: 1px solid rgba(255, 251, 245, 0.24);
}

.control-list dt {
  color: #fffaf4;
  font-family: "Gabarito", sans-serif;
  font-size: 18px;
  font-weight: 650;
}

.control-list dd {
  margin: 0;
  color: #e2d6c9;
  font-size: 14px;
}

.closing-section {
  padding: 46px 32px;
  background: var(--orange);
}

.closing-inner {
  display: flex;
  width: min(var(--page-width), 100%);
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 0 auto;
}

.closing-inner h2 {
  max-width: 17ch;
  margin: 0;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.1;
}

.closing-link {
  flex: none;
  min-height: 48px;
  background: var(--dark);
  color: var(--paper-light);
}

.closing-link:hover {
  background: #3d352d;
}

.continuity-section {
  padding: clamp(84px, 9vw, 128px) 32px;
  background: rgba(235, 224, 211, 0.56);
}

.continuity-inner {
  display: grid;
  width: min(var(--page-width), 100%);
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(48px, 8vw, 112px);
  margin: 0 auto;
}

.continuity-copy h2 {
  max-width: 12ch;
  margin: 0;
  font-family: "Gabarito", sans-serif;
  font-size: clamp(42px, 5.4vw, 68px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

.continuity-copy > p {
  max-width: 48ch;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
  text-wrap: pretty;
}

.continuity-list {
  margin: 32px 0 0;
  border-top: 1px solid #cfc2b5;
}

.continuity-row {
  display: grid;
  grid-template-columns: minmax(112px, 0.44fr) minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid #cfc2b5;
}

.continuity-row dt {
  color: var(--ink);
  font-family: "Gabarito", sans-serif;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.35;
}

.continuity-row dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.continuity-preview {
  position: relative;
  min-width: 0;
  padding: clamp(17px, 2.8vw, 30px) clamp(17px, 2.8vw, 30px) 48px;
  border-radius: var(--radius-lg);
  background: var(--dark);
  box-shadow: 0 20px 38px rgba(83, 57, 42, 0.14);
}

.widget-window {
  padding: clamp(17px, 2.7vw, 26px);
  border-radius: 15px;
  background: var(--paper-light);
  color: var(--ink);
}

.widget-topbar,
.widget-identity,
.widget-mode-tabs,
.history-heading,
.history-entry,
.widget-actions,
.voice-action,
.permission-action {
  display: flex;
  align-items: center;
}

.widget-topbar {
  justify-content: space-between;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.widget-identity {
  gap: 9px;
}

.widget-identity img {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.widget-identity span {
  font-family: "Gabarito", sans-serif;
  font-size: 17px;
  font-weight: 700;
}

.widget-live-mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c65a3a;
  box-shadow: 0 0 0 4px #f5ded4;
}

.widget-mode-tabs {
  gap: 22px;
  height: 44px;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 650;
}

.widget-mode-tabs span {
  display: grid;
  height: 100%;
  align-items: center;
}

.widget-mode-tabs .is-active {
  border-bottom: 2px solid var(--orange);
  color: var(--ink);
}

.history-heading {
  justify-content: space-between;
  gap: 14px;
  margin: 20px 0 8px;
}

.history-heading strong {
  font-family: "Gabarito", sans-serif;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.history-heading span {
  color: #8d3926;
  font-size: 11px;
  font-weight: 700;
}

.history-entry {
  min-width: 0;
  gap: 11px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.history-entry-mark {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: var(--orange-soft);
  color: #9d422b;
}

.history-entry-mark svg {
  display: block;
  width: 18px;
  height: 18px;
}

.history-entry-copy {
  display: grid;
  min-width: 0;
  flex: 1 1 auto;
  gap: 3px;
}

.history-entry-copy strong,
.history-entry-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-entry-copy strong {
  font-size: 12px;
  font-weight: 700;
}

.history-entry-copy small {
  color: var(--ink-soft);
  font-size: 11px;
}

.history-entry-time {
  flex: 0 0 auto;
  color: var(--ink-muted);
  font-size: 11px;
}

.widget-actions {
  align-items: stretch;
  gap: 10px;
  margin-top: 16px;
}

.voice-action,
.permission-action {
  min-width: 0;
  border-radius: 9px;
}

.voice-action {
  min-height: 40px;
  flex: 0 0 auto;
  gap: 8px;
  padding: 0 11px;
  background: var(--dark);
  color: var(--paper-light);
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.voice-action svg {
  display: block;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.permission-action {
  display: grid;
  flex: 1 1 auto;
  align-content: center;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid var(--line);
}

.permission-action > span {
  color: var(--ink-muted);
  font-size: 11px;
}

.permission-action strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
}

.permission-action strong span {
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 0.8;
}

.preview-caption {
  position: absolute;
  right: 28px;
  bottom: 17px;
  color: #e2d6c9;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-footer {
  padding: clamp(50px, 7vw, 82px) 32px 30px;
  background: var(--dark);
  color: var(--paper-light);
}

.footer-inner {
  width: min(var(--page-width), 100%);
  margin: 0 auto;
}

.footer-pitch {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(32px, 7vw, 96px);
  padding-bottom: clamp(38px, 5vw, 58px);
  border-bottom: 1px solid rgba(255, 251, 245, 0.22);
}

.footer-pitch-copy {
  max-width: 620px;
}

.footer-brand {
  width: fit-content;
  gap: 10px;
  text-decoration: none;
}

.footer-brand img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.footer-brand span {
  color: var(--paper-light);
  font-size: 20px;
}

.footer-pitch-copy h2 {
  max-width: 17ch;
  margin: 26px 0 0;
  font-family: "Gabarito", sans-serif;
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

.footer-pitch-copy > p {
  max-width: 48ch;
  margin: 14px 0 0;
  color: #e2d6c9;
  font-size: 15px;
  line-height: 1.65;
  text-wrap: pretty;
}

.footer-join {
  display: inline-flex;
  min-height: 50px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 0 18px;
  border-radius: 10px;
  background: var(--orange);
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  transition: background 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.footer-join:hover {
  transform: translateY(-2px);
  background: #f47a59;
}

.footer-join svg {
  display: block;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: start;
  gap: clamp(28px, 5vw, 70px);
  padding-top: 31px;
}

.footer-nav,
.footer-preregistration {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 10px;
}

.footer-nav h3,
.footer-preregistration h3 {
  margin: 0 0 3px;
  color: var(--paper-light);
  font-family: "Gabarito", sans-serif;
  font-size: 18px;
  font-weight: 650;
}

.footer-nav a,
.footer-preregistration a,
.footer-back-to-top {
  color: #e2d6c9;
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
  text-underline-offset: 0.25em;
  transition: color 180ms var(--ease-out);
}

.footer-nav a:hover,
.footer-preregistration a:hover,
.footer-back-to-top:hover {
  color: #fffaf4;
  text-decoration: underline;
}

.footer-preregistration p {
  max-width: 35ch;
  margin: 0;
  color: #e2d6c9;
  font-size: 13px;
  line-height: 1.6;
}

.footer-preregistration a span {
  padding-left: 4px;
  color: #f6a27a;
}

.footer-back-to-top {
  justify-self: end;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .site-header,
  .film-section {
    width: calc(100% - 48px);
  }

  .film-figure {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .film-caption {
    max-width: 640px;
  }

  .section-heading {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.7fr);
    gap: 34px;
  }

  .mode-panel {
    grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
    gap: 36px;
  }

  .control-inner {
    gap: 50px;
  }

  .continuity-inner {
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
    gap: 48px;
  }
}

@media (max-width: 700px) {
  .site-header,
  .film-section {
    width: calc(100% - 36px);
  }

  .site-header-inner {
    min-height: 72px;
    gap: 12px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 42px;
    height: 28px;
  }

  .screen-selection {
    top: 108px;
    right: 111px;
    width: 64px;
    height: 28px;
  }

  .guide-demo-pointer {
    top: 108px;
    right: 116px;
  }

  .brand-name {
    font-size: 20px;
  }

  .site-nav {
    gap: 12px;
  }

  .nav-link {
    font-size: 12px;
  }

  .nav-action {
    min-height: 40px;
    gap: 7px;
    padding: 8px 11px;
    font-size: 12px;
  }

  .hero {
    padding: 44px 20px 25px;
  }

  .background-mark-layer {
    top: 42%;
    width: min(112vw, 520px);
  }

  .background-mark-art {
    opacity: 0.15;
  }

  .hero h1 {
    max-width: 10ch;
    font-size: clamp(51px, 11vw, 72px);
  }

  .hero-copy {
    max-width: 38ch;
    margin-top: 16px;
    font-size: 16px;
  }

  .preregister-form {
    margin-top: 22px;
  }

  .email-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 7px;
  }

  .email-row input {
    min-height: 48px;
  }

  .submit-button {
    width: 100%;
    min-height: 48px;
  }

  .verification-row {
    min-height: 68px;
  }

  .film-section {
    padding-bottom: 88px;
  }

  .film-visual {
    min-height: 0;
    padding: 15px 14px 37px;
    border-radius: 18px;
  }

  .desktop-window {
    min-height: 295px;
  }

  .workspace {
    min-height: 253px;
    grid-template-columns: minmax(0, 1fr);
  }

  .workspace-rail {
    display: none;
  }

  .sheet {
    padding: 20px 15px;
  }

  .sheet-heading {
    margin-bottom: 17px;
  }

  .sheet-heading h2 {
    font-size: 19px;
  }

  .sheet-date {
    font-size: 12px;
  }

  .sample-table {
    font-size: 12px;
  }

  .sample-table th {
    padding: 8px 6px;
    font-size: 11px;
  }

  .sample-table td {
    padding: 11px 6px;
  }

  .sample-table th:nth-child(2),
  .sample-table td:nth-child(2),
  .sample-table th:nth-child(4),
  .sample-table td:nth-child(4) {
    display: none;
  }

  .screen-selection {
    top: 127px;
    right: 34%;
  }

  .guide-callout {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100%, 360px);
    margin: -20px 0 0 auto;
    padding: 13px 14px;
  }

  .guide-callout p {
    margin-top: 10px;
    font-size: 12px;
  }

  .callout-pointer {
    display: none;
  }

  .illustration-label {
    bottom: 12px;
    left: 14px;
  }

  .film-caption {
    gap: 12px;
  }

  .film-caption h2 {
    font-size: 30px;
  }

  .modes-section {
    padding: 82px 20px 94px;
  }

  .section-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 36px;
  }

  .section-heading h2 {
    font-size: clamp(41px, 9vw, 56px);
  }

  .section-heading > p {
    max-width: 50ch;
    font-size: 15px;
  }

  .mode-switch {
    gap: 24px;
  }

  .mode-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 27px;
    padding-top: 29px;
  }

  .mode-story h3 {
    max-width: 14ch;
    font-size: 40px;
  }

  .mode-story > p:first-of-type {
    margin-top: 15px;
    font-size: 15px;
  }

  .mode-boundary {
    margin-top: 16px;
  }

  .mode-demo { padding: 7px; border-radius: 16px; }
  .screen-canvas { min-height: 0; padding: 15px 12px; }
  .cube-sheet { width: min(100%, 390px); margin: 0 auto; }
  .cube-prompt strong { font-size: 15px; }
  .cube-guide-caption { max-width: min(210px, 76%); }
  .screen-appbar { padding: 0 12px; }
  .agent-worker { top: 10px; right: 9px; width: min(204px, 56%); padding: 9px 10px; }
  .agent-worker-steps { margin-top: 8px; }
  .agent-worker-steps.is-current { margin-top: 6px; }
  .agent-worker-progress { margin-top: 8px; }

  .control-section {
    padding: 76px 20px;
  }

  .continuity-section {
    padding: 78px 20px;
  }

  .continuity-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 38px;
  }

  .continuity-copy h2 {
    max-width: 13ch;
    font-size: clamp(42px, 9vw, 56px);
  }

  .continuity-copy > p {
    margin-top: 15px;
    font-size: 15px;
  }

  .continuity-list {
    margin-top: 26px;
  }

  .continuity-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 15px 0;
  }

  .continuity-preview {
    padding: 16px 16px 44px;
  }

  .widget-window {
    padding: 18px;
  }

  .control-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 37px;
  }

  .control-copy h2 {
    max-width: 12ch;
    font-size: 48px;
  }

  .control-copy p {
    margin-top: 16px;
    font-size: 15px;
  }

  .control-list div {
    grid-template-columns: minmax(86px, 0.4fr) minmax(0, 1fr);
    gap: 15px;
    padding: 17px 0;
  }

  .closing-section {
    padding: 38px 20px;
  }

  .closing-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 21px;
  }

  .closing-inner h2 {
    max-width: 18ch;
    font-size: 32px;
  }

  .site-footer {
    padding: 50px 20px 25px;
  }

  .footer-pitch {
    align-items: flex-start;
    flex-direction: column;
    gap: 25px;
    padding-bottom: 34px;
  }

  .footer-pitch-copy h2 {
    max-width: 15ch;
    margin-top: 21px;
    font-size: 42px;
  }

  .footer-pitch-copy > p {
    font-size: 14px;
  }

  .footer-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 27px 18px;
    padding-top: 26px;
  }

  .footer-preregistration {
    grid-column: 1 / -1;
  }

  .footer-back-to-top {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .footer-join {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .continuity-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .widget-window {
    padding: 15px;
  }

  .history-entry {
    gap: 8px;
  }

  .history-entry-time {
    font-size: 11px;
  }

  .widget-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .voice-action {
    min-height: 40px;
  }
}

@media (max-width: 390px) {
  .screen-canvas { padding-right: 9px; padding-left: 9px; }
  .cube-prompt strong { font-size: 14px; }
  .agent-worker { width: min(190px, 61%); }
  .agent-worker-top b { font-size: 6px; }
  .agent-worker-top small { font-size: 7px; }

  .screen-selection {
    right: 100px;
  }
}

@media (max-width: 380px) {
  .nav-link {
    display: none;
  }

  .hero h1 {
    font-size: 49px;
  }

  .film-section {
    width: calc(100% - 28px);
  }

  .window-bar {
    padding: 0 9px;
  }

  .sheet {
    padding-right: 10px;
    padding-left: 10px;
  }

  .sample-table th,
  .sample-table td {
    padding-right: 4px;
    padding-left: 4px;
  }
}

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

  .background-mark-layer {
    transform: translate(-50%, -50%);
    will-change: auto;
  }

  .background-mark-art {
    clip-path: inset(0);
    transform-origin: center;
    opacity: 0.17;
    filter: none;
  }
}
