/* Inter, self-hosted. The stack used to open with "Inter" and fall back to the
   platform UI face, which on a machine without Inter installed meant the page
   was always SF Pro or Segoe: the type never actually had a voice of its own.
   Subset to Latin (137 KB, weights 100-900). The eleven Indian scripts in the
   language picker are not in this subset by design; they fall through to the
   system face, which ships better Devanagari and Tamil than any web font we
   would want to load on a shop floor connection. */
@font-face {
  font-family: "Inter var";
  src: url("/static/fonts/InterVariable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg: #0a0a0a;
  --panel: rgba(250, 250, 250, 0.055);
  --panel-soft: rgba(250, 250, 250, 0.075);
  --ink: #fafafa;
  --muted: #a0a0a0;
  --line: rgba(250, 250, 250, 0.1);
  --line-strong: rgba(250, 250, 250, 0.22);

  --accent: #d5f74c;
  --accent-strong: #d5f74c;
  --highlight: #d5f74c;
  --good: #d5f74c;
  --danger: #ff9b87;

  --control-bg: rgba(255, 255, 255, 0.07);
  --control-hover: rgba(255, 255, 255, 0.12);
  --control-border: rgba(250, 250, 250, 0.2);
  --focus: #d5f74c;

  --font-sans: "Inter var", Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Fixed rem steps at a ~1.2 ratio. Product UI is read at a consistent
     distance, so display type does not need to be fluid; it needs to be
     predictable across the two screens that share this sheet. */
  --text-xs: 0.75rem; /* 12 */
  --text-sm: 0.8125rem; /* 13 */
  --text-base: 0.9375rem; /* 15 */
  --text-md: 1.0625rem; /* 17 */
  --text-lg: 1.3125rem; /* 21 */
  --text-xl: 1.75rem; /* 28 */
  --text-2xl: 2.25rem; /* 36 */

  /* Three weights. The scale and the color carry hierarchy; the old sheet had
     eight (620, 640, 650, 720, 760 and friends), which is indecision, not
     emphasis. Inter is variable, so these are exact rather than synthesized. */
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-strong: 600;

  /* Negative tracking on display sizes only. Inter is drawn a touch wide at
     large optical sizes; sizes below ~21px are left as designed. */
  --track-display: 0;
  --track-tight: 0;
  --track-body: 0;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-card: 0 18px 48px rgba(0, 0, 0, 0.32);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(118, 118, 118, 0.46), transparent 32rem),
    radial-gradient(circle at 84% 12%, rgba(213, 247, 76, 0.1), transparent 26rem),
    #0a0a0a;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  line-height: 1.6;
  letter-spacing: 0;
  font-feature-settings: "cv05" 1, "cv08" 1; /* single-storey l, disambiguated I */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

h1,
h2,
h3 {
  font-weight: 850;
  letter-spacing: 0;
  text-wrap: balance;
}

/* Nomenclature is set in tabular mono wherever it appears. A misread part
   number is a wrong part ordered, so these never inherit the prose face. */
code,
.hint code,
.note strong,
#docName {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

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

button:focus-visible,
input:focus-visible,
.lang-chip:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.hero-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- login ---------- */

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

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

.brand img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.brand p {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--muted);
}

.brand h1 {
  margin: 1px 0 0;
  font-size: var(--text-md);
  letter-spacing: var(--track-tight);
  line-height: 1.3;
}

.auth-shell {
  width: min(100%, 1020px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 420px);
  gap: 56px;
  align-items: center;
}

.product-statement {
  padding: 20px 0;
}

/* One kicker on one page, set as a line of text rather than a tracked all-caps
   label. Sentence case keeps it readable next to the statement it introduces. */
.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-strong);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}

.product-statement h2 {
  max-width: 20ch;
  margin: 0;
  font-size: 3rem;
  line-height: 1.05;
  letter-spacing: var(--track-display);
  text-transform: none;
}

/* Three explicit columns rather than auto-fit: at this column width auto-fit
   resolves to two and orphans the third item on its own row. */
.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 40px;
}

.promise-grid p {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.65;
  text-wrap: pretty;
}

.promise-grid code {
  color: var(--ink);
  font-size: 0.9em;
}

.card {
  width: 100%;
  max-width: 420px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.card h2 {
  margin: 0 0 4px;
  font-size: 2rem;
  letter-spacing: var(--track-tight);
  line-height: 1.05;
}

.card .sub {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: var(--text-sm);
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--ink);
  margin-bottom: 6px;
}

.field input,
.field select {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--control-bg);
  border: 1px solid var(--control-border);
  outline: none;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}

.field input::placeholder {
  color: var(--muted);
}

.field input:hover,
.field select:hover {
  border-color: var(--line-strong);
}

.field input:focus,
.field select:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
}

.primary {
  width: 100%;
  margin-top: 8px;
  padding: 11px 16px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #050505;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s var(--ease);
}

.primary:hover {
  background: #e2ff68;
}

.primary:active {
  background: #c2e83d;
}

.primary[disabled] {
  background: var(--control-bg);
  color: var(--muted);
  cursor: not-allowed;
}

.error {
  margin: 16px 0 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 112, 86, 0.12);
  border: 1px solid rgba(255, 155, 135, 0.32);
  color: var(--danger);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.error[hidden] {
  display: none;
}

.hint {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.6;
}

.hint p {
  margin: 0 0 12px;
  color: var(--ink);
  font-weight: var(--weight-medium);
}

.subtle-line {
  display: block;
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.subtle-line a {
  color: var(--accent-strong);
}

.hint code {
  color: var(--ink);
  font-size: 0.92em;
}

/* ---------- public landing ---------- */

body.public-mode {
  display: block;
  padding: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(118, 118, 118, 0.46), transparent 32rem),
    radial-gradient(circle at 74% 14%, rgba(213, 247, 76, 0.1), transparent 20rem),
    #0a0a0a;
}

body.public-mode .landing {
  width: 100%;
  max-width: none;
}

body.public-mode .app-only {
  display: none !important;
}

.public-landing {
  width: 100%;
  min-height: 100vh;
  background: #0a0a0a;
}

.public-landing[hidden] {
  display: none;
}

.public-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.54);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.public-logo {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--accent);
  font-size: 34px;
  line-height: 1;
  text-decoration: none;
}

.public-logo img {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  object-fit: cover;
}

.public-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  min-width: 0;
}

.public-nav a,
.meeting-link,
.scroll-prompt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: color 160ms var(--ease);
}

.public-nav a:hover,
.meeting-link:hover,
.scroll-prompt:hover {
  color: var(--ink);
}

.public-header-actions,
.hero-copy,
.public-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.proposal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 124px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #050505 !important;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: filter 180ms var(--ease), transform 180ms var(--ease);
}

.proposal-button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px) scale(1.02);
}

.public-hero {
  position: relative;
  min-height: calc(100svh - 72px);
  overflow: hidden;
  padding: 28px 32px 76px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 8%, rgba(124, 124, 124, 0.42), transparent 38%),
    radial-gradient(circle at 50% 54%, rgba(213, 247, 76, 0.06), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
}

.public-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(10, 10, 10, 0.9));
}

.hero-wordmark {
  position: relative;
  z-index: 2;
  display: grid;
  margin-top: clamp(42px, 8vh, 88px);
  color: var(--ink);
  font-size: clamp(86px, 16vw, 224px);
  font-weight: 950;
  line-height: 0.76;
  letter-spacing: 0;
  text-transform: lowercase;
}

.hero-wordmark span {
  display: block;
  max-width: 100%;
  animation: heroWordIn 800ms var(--ease) both;
}

.hero-wordmark span:nth-child(2) {
  animation-delay: 100ms;
}

.hero-wordmark span:nth-child(3) {
  animation-delay: 200ms;
}

.glass-object {
  --tilt-x: -5deg;
  --tilt-y: 14deg;
  --move-x: 0px;
  --move-y: 0px;
  position: absolute;
  z-index: 3;
  top: 43%;
  left: 50%;
  width: min(38vw, 480px);
  min-width: 280px;
  aspect-ratio: 1.14;
  transform:
    translate3d(calc(-50% + var(--move-x)), calc(-50% + var(--move-y)), 0)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y))
    rotateZ(-9deg);
  transform-style: preserve-3d;
  transition: transform 180ms ease-out;
  animation: glassFloat 6s ease-in-out infinite alternate;
}

.glass-object::before,
.glass-object::after {
  content: "";
  position: absolute;
  inset: 18% 10%;
  border-radius: 999px;
  background: rgba(213, 247, 76, 0.22);
  filter: blur(46px);
  transform: translateZ(-80px);
}

.glass-object::after {
  inset: 8% 24% 36%;
  background: rgba(250, 250, 250, 0.18);
  filter: blur(30px);
}

.circuit-line,
.circuit-line::before,
.circuit-line::after {
  position: absolute;
  z-index: 5;
  display: block;
  height: 2px;
  border-radius: 999px;
  background: rgba(213, 247, 76, 0.74);
  box-shadow: 0 0 18px rgba(213, 247, 76, 0.45);
  content: "";
}

.circuit-line-a {
  top: 36%;
  left: 14%;
  width: 64%;
  transform: translateZ(150px) rotate(4deg);
}

.circuit-line-a::before {
  top: -48px;
  left: 28%;
  width: 2px;
  height: 48px;
}

.circuit-line-a::after {
  right: -24px;
  bottom: -38px;
  width: 2px;
  height: 38px;
}

.circuit-line-b {
  right: 14%;
  bottom: 31%;
  width: 52%;
  transform: translateZ(148px) rotate(-7deg);
}

.circuit-line-b::before {
  left: -18px;
  bottom: 0;
  width: 2px;
  height: 54px;
}

.pdf-tab,
.pin-node {
  position: absolute;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(213, 247, 76, 0.54);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.58);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 22px rgba(213, 247, 76, 0.22);
  transform: translateZ(170px);
}

.pdf-tab {
  top: 13%;
  left: 18%;
  min-width: 54px;
  min-height: 30px;
}

.pin-node {
  min-width: 42px;
  min-height: 28px;
}

.pin-a {
  top: 29%;
  right: 12%;
}

.pin-b {
  left: 13%;
  bottom: 25%;
}

.pane {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(250, 250, 250, 0.36);
  border-radius: 20px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.05) 31%, rgba(213, 247, 76, 0.16) 58%, rgba(255, 255, 255, 0.08)),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(255, 255, 255, 0.14) 32px 33px),
    repeating-linear-gradient(0deg, transparent 0 43px, rgba(213, 247, 76, 0.08) 44px 45px);
  box-shadow:
    inset 0 0 32px rgba(255, 255, 255, 0.16),
    0 26px 80px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px) saturate(1.4);
}

.pane-a {
  transform: translate3d(-66px, 34px, -60px) rotateY(-24deg);
  opacity: 0.5;
}

.pane-b {
  transform: translate3d(-30px, 10px, -20px) rotateY(-13deg);
  opacity: 0.72;
}

.pane-c {
  transform: translate3d(0, 0, 30px) rotateY(0deg);
}

.pane-d {
  transform: translate3d(38px, -16px, 72px) rotateY(13deg);
  opacity: 0.78;
}

.pane-e {
  transform: translate3d(76px, -34px, 112px) rotateY(26deg);
  opacity: 0.54;
}

.film-dot {
  position: absolute;
  z-index: 4;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 24px rgba(213, 247, 76, 0.8);
}

.dot-a {
  top: 22%;
  left: 12%;
}

.dot-b {
  top: 49%;
  right: 9%;
}

.dot-c {
  left: 43%;
  bottom: 15%;
}

.hero-copy {
  position: absolute;
  z-index: 5;
  right: 32px;
  bottom: 34px;
  max-width: 430px;
  align-items: flex-end;
}

.hero-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  text-wrap: pretty;
}

.hero-copy .public-actions {
  margin-top: 0;
}

.scroll-prompt {
  position: absolute;
  z-index: 5;
  left: 32px;
  bottom: 42px;
}

.award-ribbon {
  position: absolute;
  z-index: 5;
  left: 24px;
  top: 50%;
  padding: 12px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(10, 10, 10, 0.46);
  font-size: 12px;
  font-weight: 850;
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
}

.client-marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #0a0a0a;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 58px;
  padding: 28px 0;
  color: var(--ink);
  font-size: clamp(24px, 4vw, 62px);
  font-weight: 950;
  line-height: 1;
  text-transform: lowercase;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
}

.public-projects,
.public-footer {
  width: min(100% - 48px, 1220px);
  margin: 80px auto 0;
  padding-bottom: 70px;
}

.public-projects h2,
.public-footer h2 {
  max-width: 12ch;
  margin: 0 0 34px;
  font-size: clamp(42px, 7vw, 104px);
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: lowercase;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.project-card {
  display: grid;
  gap: 16px;
  color: var(--ink);
  text-decoration: none;
}

.project-visual {
  display: block;
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 38%, rgba(213, 247, 76, 0.22), transparent 36%),
    repeating-linear-gradient(90deg, transparent 0 44px, rgba(255, 255, 255, 0.08) 45px 46px),
    #111;
  transition: transform 220ms var(--ease), border-color 220ms var(--ease);
}

.project-visual::before,
.project-visual::after {
  position: absolute;
  content: "";
}

.project-visual-a::before {
  inset: 22% 18% 24% 16%;
  background:
    linear-gradient(90deg, transparent 0 18%, var(--accent) 18% 20%, transparent 20% 52%, var(--accent) 52% 54%, transparent 54%),
    linear-gradient(0deg, transparent 0 34%, var(--accent) 34% 36%, transparent 36% 68%, var(--accent) 68% 70%, transparent 70%);
  opacity: 0.72;
  filter: drop-shadow(0 0 18px rgba(213, 247, 76, 0.42));
}

.project-visual-a::after {
  width: 54px;
  height: 54px;
  right: 20%;
  top: 24%;
  border: 2px solid var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 28px rgba(213, 247, 76, 0.5);
}

.project-visual-b::before {
  inset: 13% 18% 15% 22%;
  border: 1px solid rgba(250, 250, 250, 0.42);
  border-radius: 10px;
  background:
    linear-gradient(135deg, transparent 0 76%, rgba(250, 250, 250, 0.2) 76% 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.2) 0 1px, transparent 1px 24px),
    rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.project-visual-b::after {
  left: 28%;
  bottom: 24%;
  width: 44%;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 26px rgba(213, 247, 76, 0.5);
}

.project-visual-b {
  background:
    radial-gradient(circle at 62% 42%, rgba(250, 250, 250, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(213, 247, 76, 0.24), transparent 45%),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(255, 255, 255, 0.08) 39px 40px),
    #111;
}

.project-card:hover .project-visual {
  border-color: rgba(213, 247, 76, 0.55);
  transform: scale(0.985);
}

.project-card strong {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.05;
}

.public-footer {
  border-top: 1px solid var(--line);
  padding-top: 72px;
  margin-bottom: 0;
}

@keyframes heroWordIn {
  from {
    opacity: 0;
    transform: translateY(34px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glassFloat {
  from {
    margin-top: -10px;
  }
  to {
    margin-top: 16px;
  }
}

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

/* ---------- landing ---------- */

.landing {
  width: 100%;
  max-width: 980px;
}

.landing-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.landing-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.who {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  color: #050505;
  font-size: var(--text-sm);
  font-weight: var(--weight-strong);
  letter-spacing: 0;
  background-position: center;
  background-size: cover;
  background-color: var(--accent);
  overflow: hidden;
}

.avatar.has-image {
  color: transparent;
}

.avatar-large {
  width: 64px;
  height: 64px;
  font-size: var(--text-lg);
}

.avatar-editor {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

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

.person-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.person-chip .avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  font-size: var(--text-xs);
}

.person-chip .who {
  display: block;
}

.person-chip .display-name {
  display: block;
  margin-top: 1px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: var(--text-xs);
}

/* ---------- profile ---------- */

.profile-shell {
  width: min(100%, 1180px);
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.profile-rail,
.profile-main,
.profile-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
}

.profile-rail {
  min-height: 640px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile-snapshot {
  display: grid;
  gap: 14px;
  padding: 16px 0 20px;
  border-bottom: 1px solid var(--line);
}

.profile-snapshot .avatar-large {
  width: 84px;
  height: 84px;
  font-size: var(--text-xl);
}

.profile-snapshot p {
  margin: 0;
  color: var(--ink);
  font-size: var(--text-lg);
  font-weight: var(--weight-strong);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.profile-snapshot span,
.profile-panel-head span {
  color: var(--muted);
  font-size: var(--text-sm);
}

.profile-nav {
  display: grid;
  gap: 4px;
}

.profile-nav a,
.profile-home-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-decoration: none;
  font-size: var(--text-sm);
}

.profile-nav a:hover,
.profile-home-link:hover {
  color: var(--ink);
  background: var(--control-hover);
}

.profile-home-link {
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  border: 1px solid var(--control-border);
}

.profile-main {
  min-width: 0;
  padding: 28px;
}

.profile-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.profile-header h2 {
  margin: 0;
  font-size: var(--text-2xl);
  line-height: 1.1;
  letter-spacing: var(--track-display);
}

.profile-status {
  margin: 14px 0 0;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 16px;
  margin-top: 18px;
}

.profile-panel {
  padding: 20px;
}

.profile-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.profile-panel-head h3 {
  margin: 0;
  font-size: var(--text-md);
  line-height: 1.25;
}

.profile-panel-head > div {
  min-width: 0;
}

.profile-fields {
  display: grid;
  gap: 14px;
}

.profile-documents {
  margin-top: 16px;
}

.profile-documents .profile-panel-head {
  align-items: center;
}

.profile-document-list {
  margin-top: 12px;
}

.profile-document-list .document-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.profile-share-output {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  width: 100%;
}

.profile-share-output input {
  width: 100%;
}

.who h1 {
  margin: 0;
  font-size: var(--text-md);
  letter-spacing: var(--track-tight);
  line-height: 1.3;
}

.who p {
  margin: 1px 0 0;
  font-size: var(--text-sm);
  color: var(--muted);
}

.ghost {
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--control-bg);
  border: 1px solid var(--control-border);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  text-decoration: none;
  transition: background 0.15s var(--ease);
}

.ghost:hover {
  background: var(--control-hover);
}

.doc-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
}

.doc-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.doc-glyph {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  color: #050505;
  background: var(--accent);
  flex: 0 0 auto;
}

.doc-glyph .hero-icon {
  width: 20px;
  height: 20px;
}

/* The drawing number is the heading. It is a part number, so it stays mono and
   sized to be read across a bench, not sized to dominate the page. */
.doc-head h2 {
  margin: 0;
  font-size: var(--text-xl);
  line-height: 1.2;
  letter-spacing: var(--track-tight);
  overflow-wrap: anywhere;
}

.doc-head .assigned {
  margin: 4px 0 0;
  font-size: var(--text-sm);
  color: var(--muted);
}

.badge {
  margin-left: auto;
  flex: 0 0 auto;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(213, 247, 76, 0.45);
  background: rgba(213, 247, 76, 0.12);
  color: var(--good);
  white-space: nowrap;
}

.badge.warn {
  border-color: rgba(255, 155, 135, 0.32);
  background: rgba(255, 112, 86, 0.12);
  color: var(--danger);
}

.doc-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.doc-meta div {
  background: var(--panel);
  padding: 22px 20px;
}

.doc-meta div p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--muted);
}

.doc-meta div strong {
  display: block;
  margin-top: 6px;
  font-size: var(--text-xl);
  line-height: 1.1;
  font-weight: var(--weight-strong);
  letter-spacing: var(--track-display);
  font-variant-numeric: tabular-nums;
}

.lang-block {
  padding-top: 30px;
}

/* Two steps that really are a sequence, so they are numbered. Set as quiet
   text rather than a tracked all-caps kicker. */
.step-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}

.lang-block h3 {
  max-width: 46ch;
  margin: 0 0 10px;
  font-size: var(--text-lg);
  line-height: 1.28;
  letter-spacing: var(--track-tight);
}

.lang-block > .note {
  max-width: 68ch;
  margin: 0 0 24px;
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.65;
  text-wrap: pretty;
}

.lang-block > .note strong {
  color: var(--ink);
  font-weight: var(--weight-normal);
  font-size: 0.94em;
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 8px;
  margin-bottom: 28px;
}

.lang-chip {
  min-height: 76px;
  padding: 13px 10px;
  border-radius: var(--radius-sm);
  background: var(--control-bg);
  border: 1px solid var(--control-border);
  color: var(--ink);
  cursor: pointer;
  text-align: center;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}

.lang-chip:hover {
  background: var(--control-hover);
}

.lang-chip[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #050505;
}

/* Eleven scripts share this box, and none of them are in the Inter subset, so
   they render in the system face. The line-height is set for the tallest of
   them: Devanagari matras and Tamil conjuncts clip at the 1.2 that would be
   plenty for Latin. */
.lang-chip .native {
  display: block;
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  line-height: 1.5;
  letter-spacing: 0;
}

.lang-chip .code {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--muted);
  letter-spacing: 0;
}

.lang-chip[aria-pressed="true"] .code {
  color: var(--ink);
}

/* ---------- sharing ---------- */

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

.share-card {
  margin-top: 20px;
}

.documents-home {
  margin-top: 20px;
}

.share-card h3 {
  margin: 0 0 6px;
  font-size: var(--text-lg);
  letter-spacing: var(--track-tight);
  line-height: 1.28;
}

.share-card .note {
  margin: 0 0 18px;
  max-width: 68ch;
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.65;
}

.grant-list {
  display: grid;
  gap: 0;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.grant-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: var(--text-sm);
}

.grant-list .document-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.grant-list .document-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.grant-list .who {
  display: block;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.92em;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.grant-list .when {
  display: block;
  color: var(--muted);
}

.grant-list .document-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: max-content;
}

.grant-list .revoke {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--control-border);
  color: var(--muted);
  font-size: var(--text-xs);
  cursor: pointer;
}

.grant-list .revoke:hover {
  color: var(--danger);
  border-color: rgba(255, 155, 135, 0.32);
}

.grant-list .share-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--control-border);
  color: var(--ink);
  font-size: var(--text-xs);
  cursor: pointer;
}

.grant-list .share-link-button:first-of-type {
  margin-left: 0;
}

.grant-list .share-link-button:hover {
  color: var(--accent-strong);
  border-color: rgba(255, 178, 146, 0.38);
}

.grant-list .share-link-button:disabled {
  cursor: not-allowed;
  color: var(--muted);
  opacity: 0.58;
}

.grant-list input {
  flex: 1 1 100%;
  min-width: 0;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  background: var(--control-bg);
  border: 1px solid var(--control-border);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  outline: none;
}

.grant-list .empty {
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding: 10px 0;
}

.document-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.document-grid .empty {
  grid-column: 1 / -1;
}

.document-grid .document-card-row {
  display: grid;
  grid-template-rows: auto minmax(58px, auto) auto;
  align-items: stretch;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
}

.document-preview {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #15181a;
  color: var(--muted);
  cursor: pointer;
}

.document-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f8faf8;
}

.document-preview.is-empty,
.document-preview:disabled {
  cursor: not-allowed;
}

.document-grid .document-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  justify-content: flex-start;
  min-width: 0;
  gap: 8px;
}

.document-grid .share-link-button {
  width: 100%;
  min-width: 0;
}

.document-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.document-stat {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
}

.document-stat span {
  color: var(--muted);
  font-size: var(--text-xs);
}

.document-stat strong {
  color: var(--ink);
  font-size: var(--text-md);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.document-language {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: var(--text-xs);
}

.document-language select {
  min-height: 36px;
  max-width: 150px;
  padding: 0 10px;
  border: 1px solid var(--control-border);
  border-radius: var(--radius-sm);
  background: var(--control-bg);
  color: var(--ink);
  font: inherit;
  outline: none;
}

.document-language select:focus {
  border-color: var(--accent);
}

.grant-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* #linkResult ships hidden and is revealed only after a link is created; the
   display above would otherwise beat the [hidden] attribute and leave an empty
   link box sitting on the share card. */
.grant-form[hidden] {
  display: none;
}

.grant-form input {
  flex: 1 1 220px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--control-bg);
  border: 1px solid var(--control-border);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  outline: none;
}

.grant-form input:focus {
  border-color: var(--accent);
}

.grant-form button {
  flex: 0 0 auto;
}

.doc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 12px;
}

.doc-tabs button {
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid var(--control-border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  cursor: pointer;
}

.doc-tabs button:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.doc-tabs button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #050505;
}

.access-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-soft);
}

.access-summary span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

.access-summary span:last-child {
  flex: 0 0 auto;
  padding: 4px 9px;
  border: 1px solid rgba(117, 201, 158, 0.34);
  border-radius: 999px;
  color: var(--good);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
}

/* ---------- WireVoice lime treatment ---------- */

body.landing-page {
  --bg: #0a0a0a;
  --panel: rgba(250, 250, 250, 0.055);
  --panel-soft: rgba(250, 250, 250, 0.075);
  --ink: #fafafa;
  --muted: #a0a0a0;
  --line: rgba(250, 250, 250, 0.1);
  --line-strong: rgba(250, 250, 250, 0.2);
  --accent: #d5f74c;
  --accent-strong: #d5f74c;
  --highlight: #d5f74c;
  --focus: #d5f74c;
  --good: #d5f74c;
  --danger: #ff9b87;
  --radius: 18px;
  --radius-sm: 12px;
  display: block;
  min-height: 100vh;
  overflow-x: hidden;
  padding: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(118, 118, 118, 0.46), transparent 32rem),
    radial-gradient(circle at 74% 14%, rgba(213, 247, 76, 0.1), transparent 20rem),
    #0a0a0a;
  color: var(--ink);
  letter-spacing: 0;
}

.landing-page a {
  color: inherit;
}

.landing-page [hidden] {
  display: none !important;
}

.studio-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.54);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.studio-logo {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--accent);
  font-size: 34px;
  line-height: 1;
  text-decoration: none;
}

.studio-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  min-width: 0;
}

.studio-nav a,
.meeting-link,
.scroll-prompt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms var(--ease);
}

.studio-nav a:hover,
.meeting-link:hover,
.scroll-prompt:hover {
  color: var(--ink);
}

.studio-actions,
.hero-copy {
  display: flex;
  align-items: center;
  gap: 14px;
}

.proposal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 124px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #050505 !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: filter 180ms var(--ease), transform 180ms var(--ease);
}

.proposal-button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px) scale(1.02);
}

.landing-page .landing {
  width: 100%;
  max-width: none;
}

.studio-hero {
  position: relative;
  min-height: calc(100svh - 72px);
  overflow: hidden;
  padding: 28px 32px 76px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 8%, rgba(124, 124, 124, 0.42), transparent 38%),
    radial-gradient(circle at 50% 54%, rgba(213, 247, 76, 0.06), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
}

.studio-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(10, 10, 10, 0.9));
}

.landing-page .landing-top {
  position: relative;
  z-index: 4;
  margin: 0;
}

.landing-page .who {
  padding: 6px 8px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(16px);
}

.landing-page .who h1 {
  font-size: 13px;
  line-height: 1.1;
}

.landing-page .who p {
  font-size: 12px;
}

.landing-page .avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: #050505;
  background: var(--accent);
}

.landing-page .ghost {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(16px);
}

.hero-wordmark {
  position: relative;
  z-index: 2;
  display: grid;
  margin-top: clamp(42px, 8vh, 88px);
  color: var(--ink);
  font-size: clamp(76px, 15.2vw, 218px);
  font-weight: 900;
  line-height: 0.76;
  letter-spacing: 0;
  text-transform: lowercase;
}

.hero-wordmark span {
  display: block;
  max-width: 100%;
  animation: heroWordIn 800ms var(--ease) both;
}

.hero-wordmark span:nth-child(2) {
  animation-delay: 100ms;
}

.hero-wordmark span:nth-child(3) {
  animation-delay: 200ms;
}

.glass-object {
  --tilt-x: -5deg;
  --tilt-y: 14deg;
  --move-x: 0px;
  --move-y: 0px;
  position: absolute;
  z-index: 3;
  top: 43%;
  left: 50%;
  width: min(38vw, 480px);
  min-width: 280px;
  aspect-ratio: 1.14;
  transform:
    translate3d(calc(-50% + var(--move-x)), calc(-50% + var(--move-y)), 0)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y))
    rotateZ(-9deg);
  transform-style: preserve-3d;
  transition: transform 180ms ease-out;
  animation: glassFloat 6s ease-in-out infinite alternate;
}

.glass-object::before,
.glass-object::after {
  content: "";
  position: absolute;
  inset: 18% 10%;
  border-radius: 999px;
  background: rgba(213, 247, 76, 0.22);
  filter: blur(46px);
  transform: translateZ(-80px);
}

.glass-object::after {
  inset: 8% 24% 36%;
  background: rgba(250, 250, 250, 0.18);
  filter: blur(30px);
}

.pane {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(250, 250, 250, 0.36);
  border-radius: 20px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.05) 31%, rgba(213, 247, 76, 0.16) 58%, rgba(255, 255, 255, 0.08)),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(255, 255, 255, 0.14) 32px 33px);
  box-shadow:
    inset 0 0 32px rgba(255, 255, 255, 0.16),
    0 26px 80px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px) saturate(1.4);
}

.pane-a {
  transform: translate3d(-66px, 34px, -60px) rotateY(-24deg);
  opacity: 0.5;
}

.pane-b {
  transform: translate3d(-30px, 10px, -20px) rotateY(-13deg);
  opacity: 0.72;
}

.pane-c {
  transform: translate3d(0, 0, 30px) rotateY(0deg);
}

.pane-d {
  transform: translate3d(38px, -16px, 72px) rotateY(13deg);
  opacity: 0.78;
}

.pane-e {
  transform: translate3d(76px, -34px, 112px) rotateY(26deg);
  opacity: 0.54;
}

.film-dot {
  position: absolute;
  z-index: 4;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 24px rgba(213, 247, 76, 0.8);
}

.dot-a {
  top: 22%;
  left: 12%;
}

.dot-b {
  top: 49%;
  right: 9%;
}

.dot-c {
  left: 43%;
  bottom: 15%;
}

.hero-copy {
  position: absolute;
  z-index: 5;
  right: 32px;
  bottom: 34px;
  max-width: 420px;
  align-items: flex-end;
}

.hero-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
}

.scroll-prompt {
  position: absolute;
  z-index: 5;
  left: 32px;
  bottom: 42px;
}

.award-ribbon {
  position: absolute;
  z-index: 5;
  left: 24px;
  top: 50%;
  padding: 12px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(10, 10, 10, 0.46);
  font-size: 12px;
  font-weight: 800;
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
}

.client-marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #0a0a0a;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 58px;
  padding: 28px 0;
  color: var(--ink);
  font-size: clamp(24px, 4vw, 62px);
  font-weight: 900;
  line-height: 1;
  text-transform: lowercase;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
}

.marquee-track span {
  opacity: 0.92;
}

.landing-page .doc-card {
  width: min(100% - 48px, 1220px);
  margin: 80px auto 0;
  border-color: var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.landing-page .active-drawing {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.landing-page .doc-head {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

.landing-page .doc-glyph {
  border-radius: 999px;
  color: #050505;
  background: var(--accent);
}

.landing-page .doc-head h2 {
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.landing-page .badge {
  margin: 8px 0 0;
  width: max-content;
  border-color: rgba(213, 247, 76, 0.48);
  background: rgba(213, 247, 76, 0.13);
  color: var(--accent);
}

.landing-page .doc-meta {
  grid-column: 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 0;
  background: var(--line);
}

.landing-page .doc-meta div {
  background: #0a0a0a;
  padding: 26px;
}

.landing-page .doc-meta div strong {
  color: var(--accent);
  font-size: clamp(32px, 5vw, 76px);
  letter-spacing: 0;
}

.landing-page .lang-block {
  grid-column: 1 / -1;
  padding: 30px;
  border-top: 1px solid var(--line);
}

.landing-page .lang-block h3,
.landing-page .share-card h3,
.landing-footer h2 {
  max-width: 14ch;
  font-size: clamp(38px, 7vw, 96px);
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: lowercase;
}

.landing-page .lang-block > .note,
.landing-page .share-card .note {
  max-width: 64ch;
  font-size: 15px;
}

.landing-page .primary,
.landing-page .grant-form button {
  width: auto;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #050505;
  font-weight: 800;
}

.landing-page .primary:hover,
.landing-page .grant-form button:hover {
  background: var(--accent);
  filter: brightness(1.08);
}

.landing-page .lang-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.landing-page .lang-chip {
  border-radius: 999px;
  min-height: 56px;
  background: rgba(255, 255, 255, 0.04);
}

.landing-page .lang-chip[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #050505;
}

.section-kicker {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.landing-page .documents-home {
  padding: 0 0 70px;
}

.landing-page .documents-home > h3,
.landing-page .documents-home > .note,
.landing-page .documents-home > .section-kicker,
.landing-page .documents-home > .grant-form,
.landing-page .documents-home > .doc-tabs {
  width: min(100%, 760px);
}

.landing-page .document-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 34px;
}

.landing-page .document-grid .document-card-row {
  gap: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.landing-page .document-preview {
  border-color: var(--line);
  border-radius: 22px;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 50% 40%, rgba(213, 247, 76, 0.14), transparent 38%),
    #111;
  transition: transform 220ms var(--ease), border-color 220ms var(--ease);
}

.landing-page .document-preview:hover {
  border-color: rgba(213, 247, 76, 0.55);
  transform: scale(0.985);
}

.landing-page .grant-list .who {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 850;
  line-height: 1.05;
}

.landing-page .grant-list .document-actions {
  justify-content: flex-start;
}

.landing-page .grant-list .share-link-button,
.landing-page .doc-tabs button,
.landing-page .grant-list .revoke {
  border-radius: 999px;
}

.landing-page .doc-tabs button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #050505;
}

.landing-page .grant-form input,
.landing-page .grant-list input,
.landing-page .document-language,
.landing-page .document-stat {
  border-color: var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.upload-picker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 360px;
  min-width: min(100%, 260px);
  min-height: 48px;
  padding: 6px 16px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
}

.upload-picker span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(250, 250, 250, 0.12);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.upload-picker strong {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-progress {
  display: grid;
  gap: 8px;
  width: min(100%, 760px);
  margin: 14px 0 18px;
}

.upload-progress[hidden] {
  display: none;
}

.upload-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.upload-progress-head strong {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.upload-progress-track {
  position: relative;
  height: 10px;
  overflow: hidden;
  border: 1px solid rgba(213, 247, 76, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.upload-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  box-shadow: 0 0 26px rgba(213, 247, 76, 0.5);
  transition: width 180ms var(--ease);
}

.upload-progress.is-processing .upload-progress-track::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  animation: uploadShimmer 1.1s linear infinite;
}

.upload-progress.is-complete .upload-progress-head {
  color: var(--ink);
}

.upload-progress.is-complete .upload-progress-track {
  border-color: rgba(213, 247, 76, 0.52);
  background: rgba(213, 247, 76, 0.1);
}

.landing-page .share-card:not(.documents-home) {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.035);
}

.landing-footer {
  display: grid;
  justify-items: start;
  gap: 18px;
  width: min(100% - 48px, 1220px);
  margin: 60px auto 0;
  padding: 78px 0 96px;
  border-top: 1px solid var(--line);
}

.landing-footer p {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.landing-footer h2 {
  margin: 0;
  max-width: 13ch;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroWordIn {
  from {
    opacity: 0;
    transform: translateY(34px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glassFloat {
  from {
    margin-top: -10px;
  }
  to {
    margin-top: 16px;
  }
}

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

@keyframes uploadShimmer {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

@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;
  }

  .glass-object,
  .marquee-track,
  .hero-wordmark span,
  .upload-progress.is-processing .upload-progress-track::after {
    animation: none !important;
  }
}

@media (max-width: 900px) {
  .auth-shell,
  .profile-shell {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .profile-rail {
    min-height: 0;
  }

  .profile-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-home-link {
    margin-top: 0;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .product-statement h2 {
    font-size: var(--text-xl);
    max-width: 26ch;
  }

  .promise-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card {
    max-width: none;
  }

  .studio-header {
    grid-template-columns: auto 1fr;
  }

  .studio-nav {
    display: none;
  }

  .studio-actions {
    justify-content: flex-end;
  }

  .meeting-link {
    display: none;
  }

  .studio-hero {
    padding: 22px 20px 92px;
  }

  .hero-wordmark {
    margin-top: 72px;
    font-size: clamp(70px, 21vw, 150px);
  }

  .glass-object {
    top: 50%;
    width: min(76vw, 420px);
  }

  .hero-wordmark {
    z-index: 4;
  }

  .hero-copy {
    right: 20px;
    left: 20px;
    bottom: 54px;
    display: grid;
    justify-items: start;
  }

  .scroll-prompt,
  .award-ribbon {
    display: none;
  }

  .landing-page .active-drawing {
    grid-template-columns: 1fr;
  }

  .landing-page .doc-head {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .landing-page .doc-meta {
    grid-column: auto;
  }

  .landing-page .document-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body {
    align-items: flex-start;
    padding: 24px 16px;
  }

  .product-statement h2 {
    font-size: var(--text-lg);
    letter-spacing: var(--track-tight);
    max-width: none;
  }

  .doc-head h2 {
    font-size: var(--text-lg);
  }

  .card,
  .doc-card,
  .profile-main,
  .profile-rail,
  .profile-panel {
    padding: 22px;
  }

  .profile-header,
  .profile-documents .profile-panel-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .profile-document-list .document-row,
  .profile-share-output {
    grid-template-columns: 1fr;
  }

  .profile-nav {
    grid-template-columns: 1fr;
  }

  .landing-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .landing-page .landing-top {
    align-items: stretch;
  }

  .landing-page .landing-actions {
    justify-content: flex-start;
  }

  .studio-header {
    min-height: 66px;
    padding: 12px 16px;
  }

  .studio-logo {
    width: 38px;
    height: 38px;
  }

  .studio-hero {
    min-height: calc(100svh - 66px);
    padding-inline: 16px;
  }

  .hero-wordmark {
    font-size: clamp(56px, 22vw, 104px);
  }

  .glass-object {
    opacity: 0.82;
  }

  .hero-copy {
    bottom: 24px;
  }

  .hero-copy p {
    font-size: 14px;
  }

  .landing-page .doc-card,
  .landing-footer {
    width: min(100% - 32px, 1220px);
    margin-top: 54px;
  }

  .doc-head {
    flex-wrap: wrap;
  }

  .badge {
    margin-left: 0;
  }

  .doc-meta {
    grid-template-columns: 1fr;
  }

  .landing-page .doc-meta {
    grid-template-columns: 1fr;
  }

  .landing-page .lang-block,
  .landing-page .doc-head {
    padding: 22px 0;
  }

  .landing-page .active-drawing {
    border-top: 0;
  }

  .landing-page .lang-block h3,
  .landing-page .share-card h3,
  .landing-footer h2 {
    font-size: clamp(34px, 14vw, 58px);
  }

  .landing-page .share-card:not(.documents-home) {
    padding: 22px;
  }

}

body.public-mode .hero-wordmark {
  font-size: clamp(86px, 16vw, 224px);
  font-weight: 950;
}

body.public-mode .hero-copy {
  max-width: 430px;
}

body.public-mode .hero-copy {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  max-width: min(100% - 64px, 680px);
}

body.public-mode .hero-copy span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.54);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  backdrop-filter: blur(16px);
}

body.public-mode .public-header {
  grid-template-columns: auto minmax(260px, 1fr) auto;
  min-height: 88px;
  padding: 14px 30px;
}

body.public-mode .public-logo {
  width: 72px;
  height: 48px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.public-mode .public-logo img {
  width: 56px;
  height: 56px;
  border-radius: 0;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(213, 247, 76, 0.34));
}

.public-header-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.trace-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(213, 247, 76, 0.42);
  border-radius: 999px;
  background: rgba(213, 247, 76, 0.08);
  color: var(--accent);
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
  box-shadow: inset 0 0 20px rgba(213, 247, 76, 0.08);
}

.public-header-copy p {
  max-width: none;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-showcase {
  width: min(100% - 48px, 1220px);
  margin: 86px auto 0;
}

.showcase-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 30px;
}

.showcase-heading p {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.showcase-heading h2 {
  max-width: 13ch;
  margin: 0;
  color: var(--ink);
  font-size: clamp(44px, 7vw, 104px);
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: lowercase;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.showcase-frame {
  position: relative;
  display: grid;
  align-content: space-between;
  min-height: 560px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 18%, rgba(213, 247, 76, 0.17), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    #101010;
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.48);
}

.showcase-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(255, 255, 255, 0.055) 43px 44px),
    repeating-linear-gradient(0deg, transparent 0 42px, rgba(213, 247, 76, 0.045) 43px 44px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 72%);
}

.showcase-frame figcaption {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0 28px 28px;
  color: var(--ink);
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 900;
  line-height: 1.02;
  text-wrap: balance;
}

.mock-browser-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 10, 0.5);
  backdrop-filter: blur(18px);
}

.mock-browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(250, 250, 250, 0.24);
}

.mock-browser-bar span:first-child {
  background: var(--accent);
}

.mock-browser-bar strong {
  margin-left: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.pdf-sheet {
  position: relative;
  z-index: 1;
  width: min(78%, 390px);
  min-height: 348px;
  margin: 34px auto 26px;
  border: 1px solid rgba(250, 250, 250, 0.24);
  border-radius: 16px;
  background:
    linear-gradient(135deg, transparent 0 84%, rgba(250, 250, 250, 0.14) 84% 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 34px),
    rgba(255, 255, 255, 0.055);
  transform: rotate(-3deg);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
}

.sheet-title {
  position: absolute;
  top: 18px;
  left: 18px;
  color: rgba(250, 250, 250, 0.72);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.schematic-line,
.schematic-line::before,
.schematic-line::after {
  position: absolute;
  display: block;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 20px rgba(213, 247, 76, 0.5);
  content: "";
}

.main-line {
  top: 48%;
  left: 14%;
  width: 72%;
}

.main-line::before {
  top: -82px;
  left: 22%;
  width: 3px;
  height: 82px;
}

.main-line::after {
  right: 18%;
  bottom: -70px;
  width: 3px;
  height: 70px;
}

.branch-line-a {
  top: 30%;
  right: 16%;
  width: 34%;
}

.branch-line-b {
  bottom: 27%;
  left: 18%;
  width: 42%;
}

.trace-node {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 32px;
  border: 1px solid rgba(213, 247, 76, 0.64);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.76);
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 0 24px rgba(213, 247, 76, 0.28);
}

.node-j8 {
  top: 39%;
  left: 8%;
}

.node-k1 {
  top: 24%;
  right: 30%;
}

.node-2t1 {
  right: 9%;
  bottom: 31%;
}

.trace-spark {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--accent);
  filter: blur(1px);
  box-shadow: 0 0 34px rgba(213, 247, 76, 0.78);
}

.spark-a {
  top: 47%;
  left: 44%;
}

.spark-b {
  right: 23%;
  bottom: 26%;
}

.response-panel {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 18px;
  width: min(82%, 440px);
  margin: 56px auto 30px;
}

.voice-query,
.answer-card,
.evidence-strip {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 10, 0.58);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.voice-query {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 0 18px;
  border-radius: 999px;
}

.voice-query span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 9px, #050505 9px 12px, transparent 12px 22px, #050505 22px 25px, transparent 25px),
    var(--accent);
  box-shadow: 0 0 28px rgba(213, 247, 76, 0.35);
}

.voice-query strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.answer-card {
  display: grid;
  gap: 22px;
  padding: 24px;
  border-radius: 22px;
}

.answer-card p {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 850;
  line-height: 1.12;
}

.answer-route {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.answer-route span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 34px;
  border-radius: 999px;
  background: var(--accent);
  color: #050505;
  font-size: 12px;
  font-weight: 950;
}

.answer-route i {
  display: block;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(213, 247, 76, 0.42);
}

.evidence-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
}

.evidence-strip span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.product-proof,
.screenshot-proof {
  width: min(100% - 48px, 1220px);
  margin: 92px auto 0;
}

.proof-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 30px;
}

.proof-heading p {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.proof-heading h2 {
  max-width: 13ch;
  margin: 0;
  color: var(--ink);
  font-size: clamp(44px, 7vw, 104px);
  font-weight: 950;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: lowercase;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
}

.capability-grid article {
  position: relative;
  min-height: 320px;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 22%, rgba(213, 247, 76, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    #0f0f0f;
}

.capability-grid article::before,
.capability-grid article::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.capability-grid article::before {
  left: 24px;
  right: 24px;
  top: 46%;
  height: 3px;
  border-radius: 999px;
  background: rgba(213, 247, 76, 0.58);
  box-shadow: 0 0 20px rgba(213, 247, 76, 0.28);
}

.capability-grid article::after {
  right: 26px;
  top: calc(46% - 7px);
  width: 17px;
  height: 17px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 26px rgba(213, 247, 76, 0.64);
}

.capability-grid article > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(213, 247, 76, 0.48);
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
}

.capability-grid h3 {
  margin: 92px 0 14px;
  color: var(--ink);
  font-size: clamp(22px, 2.1vw, 32px);
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
}

.capability-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 28px;
}

.screenshot-card {
  position: relative;
  display: grid;
  gap: 16px;
  margin: 0;
}

.screenshot-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: top center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: #111;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.42);
  transition: transform 220ms var(--ease), border-color 220ms var(--ease);
}

.screenshot-card:hover img {
  border-color: rgba(213, 247, 76, 0.54);
  transform: translateY(-3px);
}

.screenshot-card figcaption {
  margin: 0;
  color: var(--ink);
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 900;
  line-height: 1.04;
  text-wrap: balance;
}

/* Four screens fill a 2x2 grid on their own; the row span this used to carry
   was there to balance an odd third card and now only opens a dead cell. The
   1.12fr column still gives the viewer the wider frame. */
.screenshot-wide img {
  aspect-ratio: 16 / 10;
}

@media (max-width: 900px) {
  body.public-mode .public-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  body.public-mode .public-header-copy {
    justify-content: flex-start;
  }

  body.public-mode .public-header-copy p {
    display: none;
  }

  body.public-mode .public-header-actions {
    justify-content: flex-end;
  }

  body.public-mode .public-hero {
    padding: 22px 20px 92px;
  }

  body.public-mode .hero-wordmark {
    z-index: 4;
    margin-top: 72px;
    font-size: clamp(70px, 21vw, 150px);
  }

  body.public-mode .glass-object {
    top: 50%;
    width: min(76vw, 420px);
  }

  body.public-mode .hero-copy {
    right: 20px;
    left: 20px;
    bottom: 54px;
    justify-content: center;
  }

  body.public-mode .scroll-prompt,
  body.public-mode .award-ribbon {
    display: none;
  }

  body.public-mode .project-grid {
    grid-template-columns: 1fr;
  }

  body.public-mode .showcase-grid {
    grid-template-columns: 1fr;
  }

  body.public-mode .capability-grid,
  body.public-mode .screenshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.public-mode .screenshot-wide {
    grid-row: auto;
    grid-column: span 2;
  }

  body.public-mode .screenshot-wide img {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 560px) {
  body.public-mode .public-header {
    min-height: 66px;
    padding: 12px 16px;
  }

  body.public-mode .public-logo {
    width: 48px;
    height: 42px;
  }

  body.public-mode .public-logo img {
    width: 42px;
    height: 42px;
    border-radius: 0;
  }

  body.public-mode .trace-pill {
    min-height: 32px;
    padding: 0 10px;
    font-size: 11px;
  }

  body.public-mode .meeting-link {
    display: none;
  }

  body.public-mode .public-hero {
    min-height: calc(100svh - 66px);
    padding-inline: 16px;
  }

  body.public-mode .hero-wordmark {
    font-size: clamp(58px, 23vw, 108px);
  }

  body.public-mode .glass-object {
    opacity: 0.82;
  }

  body.public-mode .hero-copy {
    bottom: 24px;
    right: 12px;
    left: 12px;
    gap: 6px;
  }

  body.public-mode .hero-copy span {
    min-height: 30px;
    padding: 0 8px;
    font-size: 10.5px;
  }

  body.public-mode .public-projects,
  body.public-mode .public-footer,
  body.public-mode .app-showcase,
  body.public-mode .product-proof,
  body.public-mode .screenshot-proof {
    width: min(100% - 32px, 1220px);
    margin-top: 54px;
  }

  body.public-mode .public-projects h2,
  body.public-mode .public-footer h2,
  body.public-mode .showcase-heading h2,
  body.public-mode .proof-heading h2 {
    font-size: clamp(36px, 14vw, 62px);
  }

  body.public-mode .capability-grid,
  body.public-mode .screenshot-grid {
    grid-template-columns: 1fr;
  }

  body.public-mode .capability-grid {
    border-radius: 20px;
  }

  body.public-mode .capability-grid article {
    min-height: 280px;
    padding: 20px;
  }

  body.public-mode .screenshot-wide {
    grid-column: auto;
  }

  body.public-mode .screenshot-card img,
  body.public-mode .screenshot-wide img {
    aspect-ratio: 16 / 10;
    border-radius: 18px;
  }

  body.public-mode .showcase-frame {
    min-height: 500px;
    border-radius: 20px;
  }

  body.public-mode .pdf-sheet,
  body.public-mode .response-panel {
    width: min(86%, 360px);
  }

  body.public-mode .showcase-frame figcaption {
    padding: 0 20px 22px;
    font-size: 22px;
  }
}

/* --- Public schematic landing refinement -------------------------------- */

body.public-mode {
  --bg: #090b0c;
  --panel: #111617;
  --panel-soft: #172022;
  --ink: #f6fbfa;
  --muted: #9cafac;
  --line: rgba(246, 251, 250, 0.1);
  --line-strong: rgba(246, 251, 250, 0.22);
  --accent: #30c7d4;
  --accent-strong: #65e6ef;
  --highlight: #cbe83c;
  --focus: #65e6ef;
  color-scheme: dark;
  background:
    linear-gradient(rgba(101, 230, 239, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(101, 230, 239, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 72% 18%, rgba(48, 199, 212, 0.18), transparent 24rem),
    radial-gradient(circle at 28% 74%, rgba(203, 232, 60, 0.08), transparent 24rem),
    #090b0c;
  background-size: 42px 42px, 42px 42px, auto, auto;
}

body.public-mode .public-landing {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(48, 199, 212, 0.16) 18% 18.18%, transparent 18.18% 52%, rgba(48, 199, 212, 0.11) 52% 52.16%, transparent 52.16%),
    linear-gradient(0deg, transparent 0 31%, rgba(48, 199, 212, 0.12) 31% 31.16%, transparent 31.16% 64%, rgba(203, 232, 60, 0.09) 64% 64.14%, transparent 64.14%),
    #090b0c;
}

body.public-mode .public-landing::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 18%, rgba(48, 199, 212, 0.16), transparent 18rem),
    radial-gradient(circle at 78% 12%, rgba(203, 232, 60, 0.08), transparent 20rem),
    linear-gradient(rgba(101, 230, 239, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(101, 230, 239, 0.045) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
  opacity: 0.9;
}

body.public-mode .public-landing::after {
  content: "";
  position: fixed;
  inset: 76px 0 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 22%, rgba(203, 232, 60, 0.42) 0 4px, transparent 5px),
    radial-gradient(circle at 37% 18%, rgba(48, 199, 212, 0.42) 0 3px, transparent 4px),
    radial-gradient(circle at 74% 34%, rgba(203, 232, 60, 0.38) 0 4px, transparent 5px),
    radial-gradient(circle at 86% 68%, rgba(48, 199, 212, 0.36) 0 3px, transparent 4px),
    linear-gradient(90deg, transparent 0 9%, rgba(48, 199, 212, 0.18) 9% 9.16%, transparent 9.16% 31%, rgba(48, 199, 212, 0.14) 31% 31.13%, transparent 31.13%),
    linear-gradient(0deg, transparent 0 22%, rgba(48, 199, 212, 0.15) 22% 22.12%, transparent 22.12% 57%, rgba(203, 232, 60, 0.11) 57% 57.12%, transparent 57.12%),
    linear-gradient(135deg, transparent 0 63%, rgba(48, 199, 212, 0.08) 63% 63.12%, transparent 63.12%);
  opacity: 0.46;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.32) 58%, rgba(0, 0, 0, 0.18));
}

body.public-mode .public-landing > * {
  position: relative;
  z-index: 1;
}

body.public-mode .public-header {
  min-height: 76px;
  border-bottom-color: rgba(246, 251, 250, 0.1);
  background: rgba(9, 11, 12, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.public-mode .public-header-copy p,
body.public-mode .meeting-link {
  color: #b6c8c5;
}

body.public-mode .public-logo img {
  filter: none;
}

body.public-mode .proposal-button {
  background: #f6fbfa;
  color: #090b0c !important;
}

body.public-mode .public-hero {
  min-height: calc(100svh - 76px);
  padding: clamp(24px, 4vw, 44px) clamp(18px, 4vw, 56px) 92px;
  border-bottom-color: rgba(246, 251, 250, 0.1);
  background:
    linear-gradient(90deg, transparent 0 12%, rgba(48, 199, 212, 0.14) 12% 12.14%, transparent 12.14% 48%, rgba(48, 199, 212, 0.08) 48% 48.14%, transparent 48.14%),
    linear-gradient(0deg, transparent 0 36%, rgba(48, 199, 212, 0.12) 36% 36.14%, transparent 36.14% 68%, rgba(203, 232, 60, 0.08) 68% 68.12%, transparent 68.12%),
    linear-gradient(90deg, rgba(246, 251, 250, 0.065) 1px, transparent 1px),
    linear-gradient(rgba(246, 251, 250, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 62% 42%, rgba(48, 199, 212, 0.18), transparent 25rem),
    linear-gradient(180deg, #101617, #090b0c);
  background-size: auto, auto, 56px 56px, 56px 56px, auto, auto;
}

body.public-mode .public-hero::before {
  content: "";
  position: absolute;
  inset: 26px 30px;
  pointer-events: none;
  border: 1px solid rgba(246, 251, 250, 0.14);
  background:
    radial-gradient(circle at 18% 34%, rgba(203, 232, 60, 0.5) 0 4px, transparent 5px),
    radial-gradient(circle at 47% 27%, rgba(48, 199, 212, 0.42) 0 3px, transparent 4px),
    radial-gradient(circle at 82% 56%, rgba(203, 232, 60, 0.38) 0 4px, transparent 5px),
    linear-gradient(90deg, transparent 0 18%, rgba(48, 199, 212, 0.18) 18% 18.16%, transparent 18.16% 58%, rgba(48, 199, 212, 0.12) 58% 58.14%, transparent 58.14%),
    linear-gradient(0deg, transparent 0 34%, rgba(48, 199, 212, 0.16) 34% 34.16%, transparent 34.16% 72%, rgba(203, 232, 60, 0.11) 72% 72.12%, transparent 72.12%),
    linear-gradient(90deg, transparent calc(100% - 170px), rgba(246, 251, 250, 0.06) calc(100% - 170px)),
    linear-gradient(180deg, transparent calc(100% - 72px), rgba(246, 251, 250, 0.06) calc(100% - 72px));
  opacity: 0.76;
}

body.public-mode .public-hero::after {
  height: 26%;
  background: linear-gradient(180deg, transparent, rgba(9, 11, 12, 0.96));
}

body.public-mode .hero-wordmark {
  max-width: 7.2ch;
  margin-top: clamp(42px, 9vh, 84px);
  color: #f6fbfa;
  font-size: clamp(64px, 14vw, 164px);
  font-weight: 880;
  line-height: 0.84;
}

body.public-mode .award-ribbon {
  left: clamp(14px, 2.2vw, 28px);
  border-color: rgba(101, 230, 239, 0.36);
  background: rgba(9, 11, 12, 0.78);
  color: #65e6ef;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

body.public-mode .glass-object {
  top: 43%;
  left: 50%;
  width: min(38vw, 500px);
  min-width: 300px;
  aspect-ratio: 1.14;
  transform:
    translate3d(calc(-50% + var(--move-x)), calc(-50% + var(--move-y)), 0)
    rotateX(-5deg)
    rotateY(14deg)
    rotateZ(-9deg);
  transform-style: preserve-3d;
  animation: glassFloat 6s ease-in-out infinite alternate;
}

body.public-mode .glass-object::before {
  inset: 18% 10%;
  border-radius: 999px;
  background: rgba(48, 199, 212, 0.22);
  filter: blur(46px);
  transform: translateZ(-80px);
}

body.public-mode .glass-object::after {
  inset: 8% 24% 36%;
  height: auto;
  border-radius: 999px;
  background: rgba(246, 251, 250, 0.16);
  filter: blur(30px);
  transform: translateZ(-70px);
}

body.public-mode .pane {
  z-index: 1;
  border-radius: 20px;
  border-color: rgba(246, 251, 250, 0.34);
  background:
    linear-gradient(115deg, rgba(246, 251, 250, 0.32), rgba(246, 251, 250, 0.05) 31%, rgba(48, 199, 212, 0.16) 58%, rgba(246, 251, 250, 0.08)),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(246, 251, 250, 0.14) 32px 33px),
    repeating-linear-gradient(0deg, transparent 0 43px, rgba(101, 230, 239, 0.08) 44px 45px);
  box-shadow:
    inset 0 0 32px rgba(246, 251, 250, 0.12),
    0 26px 80px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px) saturate(1.4);
}

body.public-mode .pane-a,
body.public-mode .pane-b,
body.public-mode .pane-d,
body.public-mode .pane-e {
  opacity: 0.54;
}

body.public-mode .pane-a {
  transform: translate3d(-66px, 34px, -60px) rotateY(-24deg);
  opacity: 0.42;
}

body.public-mode .pane-b {
  transform: translate3d(-30px, 10px, -20px) rotateY(-13deg);
  opacity: 0.68;
}

body.public-mode .pane-c {
  transform: translate3d(0, 0, 30px) rotateY(0deg);
}

body.public-mode .pane-d {
  transform: translate3d(38px, -16px, 72px) rotateY(13deg);
  opacity: 0.74;
}

body.public-mode .pane-e {
  transform: translate3d(76px, -34px, 112px) rotateY(26deg);
  opacity: 0.5;
}

body.public-mode .circuit-line,
body.public-mode .circuit-line::before,
body.public-mode .circuit-line::after,
body.public-mode .schematic-line,
body.public-mode .schematic-line::before,
body.public-mode .schematic-line::after,
body.public-mode .answer-route i {
  background: #30c7d4;
  box-shadow: 0 0 0 1px rgba(101, 230, 239, 0.16), 0 0 22px rgba(48, 199, 212, 0.34);
}

body.public-mode .circuit-line {
  z-index: 8;
  height: 3px;
  transform: translateZ(150px);
}

body.public-mode .circuit-line::before,
body.public-mode .circuit-line::after {
  width: 4px;
}

body.public-mode .circuit-line-a {
  top: 36%;
  left: 14%;
  width: 64%;
  transform: translateZ(150px) rotate(4deg);
}

body.public-mode .circuit-line-a::before {
  top: -72px;
  left: 22%;
  width: 3px;
  height: 72px;
}

body.public-mode .circuit-line-a::after {
  right: 18%;
  bottom: -58px;
  width: 3px;
  height: 58px;
}

body.public-mode .circuit-line-b {
  right: 14%;
  bottom: 31%;
  width: 52%;
  transform: translateZ(148px) rotate(-7deg);
}

body.public-mode .circuit-line-b::before {
  left: -16px;
  bottom: 0;
  width: 3px;
  height: 62px;
}

body.public-mode .pdf-tab,
body.public-mode .pin-node,
body.public-mode .trace-node {
  z-index: 9;
  border-color: rgba(101, 230, 239, 0.36);
  border-radius: 6px;
  background: rgba(9, 11, 12, 0.9);
  color: #bff7fb;
  font-family: var(--font-mono);
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
  transform: translateZ(170px);
}

body.public-mode .pdf-tab {
  top: 8%;
  left: 8%;
  min-height: 28px;
  padding: 0 10px;
}

body.public-mode .pin-a {
  top: 36%;
  right: 7%;
}

body.public-mode .pin-b {
  left: 10%;
  bottom: 19%;
}

body.public-mode .pin-c {
  top: 19%;
  left: 41%;
}

body.public-mode .film-dot {
  background: #cbe83c;
  box-shadow: 0 0 0 5px rgba(203, 232, 60, 0.2), 0 0 26px rgba(203, 232, 60, 0.28);
}

body.public-mode .hero-copy {
  right: clamp(18px, 4vw, 56px);
  bottom: 34px;
}

body.public-mode .hero-copy span {
  min-height: 34px;
  border-color: rgba(101, 230, 239, 0.24);
  border-radius: 6px;
  background: rgba(9, 11, 12, 0.82);
  color: #e4fbfd;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 750;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  backdrop-filter: none;
}

body.public-mode .client-marquee {
  border-bottom-color: rgba(246, 251, 250, 0.1);
  background: #050607;
}

body.public-mode .marquee-track {
  color: #f6fbfa;
  font-family: var(--font-mono);
  font-size: clamp(18px, 3.2vw, 44px);
  font-weight: 760;
}

body.public-mode .trace-console {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(100% - 56px, 1180px);
  margin: 38px auto 0;
  overflow: hidden;
  border: 1px solid rgba(246, 251, 250, 0.12);
  border-radius: 10px;
  background: rgba(246, 251, 250, 0.1);
}

body.public-mode .trace-console::before {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, rgba(48, 199, 212, 0.24), rgba(203, 232, 60, 0.22), rgba(48, 199, 212, 0.24));
  transform: translateY(-50%);
}

body.public-mode .trace-console div {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 12px;
  row-gap: 4px;
  min-height: 86px;
  padding: 18px 20px;
  background:
    linear-gradient(rgba(101, 230, 239, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(101, 230, 239, 0.055) 1px, transparent 1px),
    rgba(9, 11, 12, 0.88);
  background-size: auto, 28px 28px, 28px 28px, auto;
}

body.public-mode .trace-console-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  width: 34px;
  height: 34px;
  padding: 7px;
  border: 1px solid rgba(101, 230, 239, 0.26);
  border-radius: 8px;
  background: rgba(48, 199, 212, 0.1);
  color: #65e6ef;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  box-shadow: inset 0 0 18px rgba(48, 199, 212, 0.08);
}

body.public-mode .trace-console span {
  grid-column: 2;
  grid-row: 1;
  color: #65e6ef;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 760;
}

body.public-mode .trace-console strong {
  grid-column: 2;
  grid-row: 2;
  color: #f6fbfa;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 780;
  line-height: 1.05;
}

body.public-mode .app-showcase,
body.public-mode .product-proof,
body.public-mode .screenshot-proof,
body.public-mode .public-footer {
  width: min(100% - 56px, 1180px);
}

body.public-mode .showcase-heading p,
body.public-mode .proof-heading p {
  color: #65e6ef;
  font-size: 13px;
  font-weight: 720;
  letter-spacing: 0;
  text-transform: none;
}

body.public-mode .showcase-heading h2,
body.public-mode .proof-heading h2,
body.public-mode .public-footer h2 {
  max-width: 16ch;
  color: #f6fbfa;
  font-size: clamp(34px, 5.4vw, 76px);
  font-weight: 820;
  line-height: 0.98;
  text-transform: none;
}

body.public-mode .showcase-grid {
  gap: 18px;
}

body.public-mode .showcase-frame,
body.public-mode .capability-grid,
body.public-mode .screenshot-card img {
  border-color: rgba(246, 251, 250, 0.12);
  border-radius: 10px;
  background: #111617;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
}

body.public-mode .showcase-frame {
  min-height: 540px;
  background:
    linear-gradient(rgba(101, 230, 239, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(101, 230, 239, 0.08) 1px, transparent 1px),
    #111617;
  background-size: 32px 32px;
}

body.public-mode .showcase-frame::after {
  content: "";
  position: absolute;
  inset: 14px;
  pointer-events: none;
  background:
    linear-gradient(#65e6ef, #65e6ef) left top / 38px 1px no-repeat,
    linear-gradient(#65e6ef, #65e6ef) left top / 1px 38px no-repeat,
    linear-gradient(#65e6ef, #65e6ef) right top / 38px 1px no-repeat,
    linear-gradient(#65e6ef, #65e6ef) right top / 1px 38px no-repeat,
    linear-gradient(#65e6ef, #65e6ef) left bottom / 38px 1px no-repeat,
    linear-gradient(#65e6ef, #65e6ef) left bottom / 1px 38px no-repeat,
    linear-gradient(#65e6ef, #65e6ef) right bottom / 38px 1px no-repeat,
    linear-gradient(#65e6ef, #65e6ef) right bottom / 1px 38px no-repeat;
  opacity: 0.28;
}

body.public-mode .showcase-frame::before {
  background: none;
  border-top: 1px solid rgba(246, 251, 250, 0.1);
  top: auto;
  height: 92px;
  mask-image: none;
}

body.public-mode .showcase-frame figcaption,
body.public-mode .screenshot-card figcaption {
  color: #f6fbfa;
  font-size: clamp(18px, 2.1vw, 28px);
  font-weight: 760;
  line-height: 1.1;
}

body.public-mode .mock-browser-bar,
body.public-mode .voice-query,
body.public-mode .answer-card,
body.public-mode .evidence-strip {
  border-color: rgba(246, 251, 250, 0.12);
  background: rgba(9, 11, 12, 0.76);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
  backdrop-filter: none;
}

body.public-mode .mock-browser-bar strong,
body.public-mode .voice-query strong,
body.public-mode .answer-card p {
  color: #f6fbfa;
}

body.public-mode .mock-browser-bar span:first-child,
body.public-mode .voice-query span,
body.public-mode .answer-route span {
  background: #30c7d4;
  color: #041012;
}

body.public-mode .pdf-sheet {
  overflow: hidden;
  border-color: rgba(246, 251, 250, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, transparent 0 84%, rgba(246, 251, 250, 0.08) 84% 100%),
    linear-gradient(rgba(101, 230, 239, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(101, 230, 239, 0.12) 1px, transparent 1px),
    #101617;
  background-size: auto, 26px 26px, 34px 34px, auto;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.36);
}

body.public-mode .pdf-sheet::after {
  content: "";
  position: absolute;
  left: 12%;
  top: 47.5%;
  z-index: 4;
  width: 26%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #cbe83c, transparent);
  animation: traceSweep 2.8s var(--ease) infinite;
}

body.public-mode .sheet-title,
body.public-mode .evidence-strip span {
  color: #9cafac;
  font-family: var(--font-mono);
  letter-spacing: 0;
  text-transform: none;
}

body.public-mode .sheet-coordinate,
body.public-mode .sheet-register,
body.public-mode .answer-state {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(101, 230, 239, 0.22);
  border-radius: 6px;
  background: rgba(9, 11, 12, 0.72);
  color: #9cafac;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 720;
}

body.public-mode .coord-a {
  top: 72px;
  left: 18px;
}

body.public-mode .coord-b {
  right: 18px;
  bottom: 78px;
}

body.public-mode .sheet-register {
  right: 16px;
  bottom: 16px;
  color: #bff7fb;
}

body.public-mode .answer-card {
  position: relative;
  border-radius: 10px;
}

body.public-mode .answer-state {
  position: static;
  width: fit-content;
  color: #cbe83c;
}

body.public-mode .answer-route span {
  border-radius: 6px;
  font-family: var(--font-mono);
}

body.public-mode .answer-route i {
  position: relative;
  overflow: hidden;
}

body.public-mode .answer-route i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 34%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, #cbe83c, transparent);
  animation: traceSweep 2.8s var(--ease) infinite;
}

body.public-mode .trace-spark {
  background: #cbe83c;
  box-shadow: 0 0 0 6px rgba(203, 232, 60, 0.14), 0 0 28px rgba(203, 232, 60, 0.36);
  animation: evidencePulse 1.8s ease-in-out infinite alternate;
}

body.public-mode .spark-c {
  left: 28%;
  top: 31%;
  animation-delay: 820ms;
}

body.public-mode .spark-b {
  animation-delay: 420ms;
}

body.public-mode .evidence-strip span {
  border: 1px solid rgba(20, 24, 23, 0.1);
  border-radius: 6px;
  background: rgba(246, 251, 250, 0.06);
}

body.public-mode .capability-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(246, 251, 250, 0.12);
  border-radius: 10px;
  background:
    linear-gradient(rgba(101, 230, 239, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(101, 230, 239, 0.055) 1px, transparent 1px),
    rgba(9, 11, 12, 0.7);
  background-size: 32px 32px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

body.public-mode .capability-grid::before {
  content: "";
  position: absolute;
  top: 36px;
  bottom: 36px;
  left: 96px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #30c7d4, rgba(48, 199, 212, 0.24));
  box-shadow: 0 0 22px rgba(48, 199, 212, 0.32);
}

body.public-mode .capability-grid article {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: start;
  align-content: start;
  gap: clamp(18px, 4vw, 42px);
  row-gap: 12px;
  min-height: 220px;
  padding: clamp(22px, 3vw, 34px) clamp(20px, 4vw, 48px);
  border: 0;
  border-bottom: 1px solid rgba(246, 251, 250, 0.1);
  background: linear-gradient(90deg, rgba(48, 199, 212, 0.045), transparent 42%);
  transition: background 180ms var(--ease);
}

body.public-mode .capability-grid article:last-child {
  border-bottom: 0;
}

body.public-mode .capability-grid article::before {
  left: 93px;
  right: auto;
  top: 42px;
  z-index: 2;
  width: 9px;
  height: 9px;
  border: 2px solid #090b0c;
  border-radius: 999px;
  background: #30c7d4;
  box-shadow: 0 0 0 7px rgba(48, 199, 212, 0.16), 0 0 24px rgba(48, 199, 212, 0.45);
}

body.public-mode .capability-grid article::after {
  display: none;
}

body.public-mode .capability-grid article > span {
  position: relative;
  z-index: 3;
  grid-column: 1;
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  height: auto;
  margin-top: 4px;
  border-color: transparent;
  border-radius: 6px;
  background: transparent;
  color: #bff7fb;
  font-size: 13px;
  font-weight: 760;
  font-family: var(--font-mono);
}

body.public-mode .capability-grid h3 {
  grid-column: 2;
  grid-row: 1;
  margin: 0 0 10px;
  color: #f6fbfa;
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 820;
  line-height: 1.02;
}

body.public-mode .capability-grid p {
  grid-column: 2;
  grid-row: 2;
  max-width: 68ch;
  margin: 0;
  color: #9cafac;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.58;
  text-wrap: pretty;
}

body.public-mode .capability-grid article:hover {
  background: linear-gradient(90deg, rgba(48, 199, 212, 0.09), rgba(203, 232, 60, 0.025) 46%, transparent);
}

body.public-mode .screenshot-card img {
  background: #111617;
}

body.public-mode .screenshot-card::before {
  content: "viewer capture";
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  min-height: 26px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(101, 230, 239, 0.22);
  border-radius: 6px;
  background: rgba(9, 11, 12, 0.78);
  color: #bff7fb;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 760;
}

body.public-mode .screenshot-card:nth-child(2)::before {
  content: "voice answer";
}

body.public-mode .screenshot-card:nth-child(3)::before {
  content: "document home";
}

body.public-mode .screenshot-card:nth-child(4)::before {
  content: "access control";
}

body.public-mode .screenshot-card:hover img {
  border-color: rgba(101, 230, 239, 0.42);
  transform: translateY(-2px);
}

body.public-mode .public-footer {
  border-top-color: rgba(246, 251, 250, 0.1);
}

body.public-mode .powered-by {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 0;
  color: #9cafac;
  font-size: 13px;
  font-weight: 650;
}

body.public-mode .powered-by img {
  display: block;
  width: 92px;
  height: auto;
  filter: invert(1);
  opacity: 0.92;
}

@keyframes schematicFloat {
  from {
    margin-top: -6px;
  }
  to {
    margin-top: 10px;
  }
}

@keyframes traceSweep {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(320%);
  }
}

@keyframes evidencePulse {
  from {
    opacity: 0.54;
    transform: scale(0.86);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.public-mode .glass-object,
  body.public-mode .marquee-track,
  body.public-mode .hero-wordmark span,
  body.public-mode .answer-route i::after,
  body.public-mode .pdf-sheet::after,
  body.public-mode .trace-spark {
    animation: none;
  }
}

@media (max-width: 900px) {
  body.public-mode .trace-console {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.public-mode .glass-object {
    left: 50%;
    top: 53%;
    width: min(78vw, 500px);
  }

  body.public-mode .public-hero::before {
    inset: 18px;
  }

  body.public-mode .hero-wordmark {
    position: relative;
    z-index: 7;
    font-size: clamp(58px, 18vw, 128px);
  }

  body.public-mode .capability-grid article:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 560px) {
  body.public-mode .public-header {
    min-height: 66px;
  }

  body.public-mode .public-hero {
    min-height: calc(100svh - 66px);
    padding-bottom: 112px;
  }

  body.public-mode .public-hero::before {
    inset: 12px;
  }

  body.public-mode .hero-wordmark {
    margin-top: 58px;
    font-size: clamp(52px, 21vw, 96px);
  }

  body.public-mode .glass-object {
    min-width: 0;
    width: min(88vw, 390px);
    opacity: 0.96;
  }

  body.public-mode .hero-copy {
    flex-wrap: wrap;
    bottom: 22px;
  }

  body.public-mode .hero-copy span {
    font-size: 11px;
  }

  body.public-mode .trace-console {
    grid-template-columns: 1fr;
    width: min(100% - 32px, 1180px);
    margin-top: 28px;
  }

  body.public-mode .trace-console::before {
    left: 24px;
    right: auto;
    top: 18px;
    bottom: 18px;
    width: 2px;
    height: auto;
    transform: none;
  }

  body.public-mode .trace-console div {
    min-height: 72px;
    padding-left: 20px;
  }

  body.public-mode .app-showcase,
  body.public-mode .product-proof,
  body.public-mode .screenshot-proof,
  body.public-mode .public-footer {
    width: min(100% - 32px, 1180px);
  }

  body.public-mode .capability-grid article,
  body.public-mode .capability-grid article:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid rgba(246, 251, 250, 0.1);
  }

  body.public-mode .capability-grid article:last-child {
    border-bottom: 0;
  }
}

/* --- Drawing brief: project-specific orientation on the home screen -------
   The document card above carries totals. These are the three things that are
   specific to the drawing in front of the technician — where the parts are,
   how much of it is genuinely traced, and what a question looks like here.
   Built on the same hairline mechanic as .doc-meta: a 1px --line background
   showing through the gaps between --bg cells. */

.drawing-brief {
  margin-top: 22px;
}

.drawing-brief h3 {
  margin: 0 0 6px;
  font-size: var(--text-lg);
  letter-spacing: var(--track-tight);
}

.drawing-brief h4 {
  margin: 0 0 4px;
  font-size: var(--text-base);
  font-weight: var(--weight-strong);
  letter-spacing: var(--track-tight);
}

.drawing-brief .note {
  margin: 0 0 14px;
  max-width: 68ch;
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.65;
}

.brief-coverage {
  border-top: 1px solid var(--line);
  margin-bottom: 0;
}

/* The caveat qualifies the numbers above it, so it is set as legibly as they
   are. A low-confidence note read as chrome is a note that gets skipped. */
/* Selector matches `.drawing-brief .note` in specificity order deliberately:
   the plain-note rule above sets --muted, and a caveat that inherits it is set
   as chrome. It qualifies the numbers, so it is as legible as they are. */
.drawing-brief .brief-caveat {
  margin: 0 !important;
  padding: 14px 2px 0;
  color: var(--ink);
}

/* The rule sits on the block rather than under the caveat: .note is capped at
   68ch for readability, so a border on it stops mid-page and reads as a
   rendering fault. */
.brief-block {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* --- sheet index --- */

.sheet-index {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
}

.sheet-index li {
  margin: 0;
}

.sheet-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 0;
  text-align: left;
  cursor: pointer;
  transition: background 140ms ease;
}

.sheet-row:hover,
.sheet-row:focus-visible {
  background: var(--control-bg);
}

.sheet-no {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--text-lg);
  font-weight: var(--weight-strong);
  color: var(--accent);
  text-align: right;
}

.sheet-parts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Nomenclature. Mono and tabular everywhere it appears, per the rule that a
   misread designator is a wrong part touched. */
.sheet-parts code,
.ask-chip code {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--text-xs);
  letter-spacing: 0;
  padding: 3px 7px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--ink);
  white-space: nowrap;
}

.sheet-none {
  font-size: var(--text-sm);
  color: var(--muted);
}

.sheet-count {
  font-size: var(--text-xs);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* --- ask chips --- */

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

.ask-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--control-bg);
  color: var(--ink);
  cursor: pointer;
  transition:
    border-color 140ms ease,
    background 140ms ease;
}

.ask-chip:hover,
.ask-chip:focus-visible {
  border-color: var(--accent);
  background: var(--control-hover);
}

.ask-chip code {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: var(--text-sm);
}

.ask-chip > span {
  font-size: var(--text-xs);
  color: var(--muted);
  text-transform: lowercase;
}

@media (max-width: 640px) {
  .sheet-row {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    row-gap: 8px;
    /* The number tracks the first row of designators once they wrap, rather
       than floating against the middle of a three-line list. */
    align-items: start;
  }

  /* The wire count moves under the parts rather than being squeezed beside
     them, so designators never truncate on a phone. */
  .sheet-count {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sheet-row,
  .ask-chip {
    transition: none;
  }
}
