/* Studio713 v6 — product surfaces, photographic hardware, mobile-first chrome. */

:root,
:root:not([data-theme="dark"]),
:root[data-theme="light"] {
  color-scheme: dark;
  --ink: #000000;
  --deep: #111111;
  --raise: #1c1c1e;
  --line: #38383a;
  --text: #f5f5f7;
  --dim: #a1a1a6;
  --faint: #6e6e73;
  --accent: #f5f5f7;
  --accent-soft: rgba(255,255,255, .12);
  --good: #30d158;
  --warn: #ff9f0a;
  --danger: #ff453a;
  --view: #111111;
  --view-2: #242426;
  --view-3: #2c2c2e;
  --pad: clamp(20px, 4.5vw, 84px);
}

html {
  background: #000;
  overflow-x: clip;
}

body {
  min-width: 0;
  overflow-x: clip;
  background:
    radial-gradient(80% 45% at 50% -8%, rgba(255,255,255, .17), transparent 70%),
    #000;
}

header.site {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 64px;
  padding: 0 var(--pad);
  flex-wrap: nowrap;
  background: rgba(0, 0, 0, .78);
  border-bottom: 1px solid rgba(255, 255, 255, .055);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
}

header.site .wordmark { flex: 0 0 auto; }
header.site nav { flex-wrap: nowrap; }

.hero {
  padding-top: clamp(72px, 12vh, 132px);
}

.hero.page {
  padding-top: clamp(58px, 9vh, 104px);
}

.art,
.experience {
  width: min(1240px, 100%);
  max-width: none;
  margin: clamp(34px, 6vh, 72px) auto 0;
  padding: 0;
}

.art img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* Shared product-view shell. */
.experience {
  position: relative;
  overflow: hidden;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255,255,255,.018), transparent 25%),
    var(--view);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow:
    0 34px 90px rgba(0, 0, 0, .56),
    inset 0 1px rgba(255,255,255,.035);
  text-align: left;
}

.experience,
.experience button,
.experience input {
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.experience-bar,
.experience-foot {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  color: var(--faint);
  background: rgba(255,255,255,.016);
  border-bottom: 1px solid var(--line);
  font: 500 11px/1.2 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: .01em;
}

.experience-foot {
  justify-content: space-between;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.traffic {
  display: inline-flex;
  gap: 5px;
}

.traffic i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3a3a3c;
}

.traffic i:last-child { background: var(--accent); box-shadow: 0 0 12px rgba(255,255,255, .55); }
.experience-path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.experience-spacer { flex: 1; }

.live-badge,
.status-chip,
.row-status,
.micro-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--dim);
  background: rgba(255,255,255,.02);
  font: 600 9px/1 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.live-badge::before,
.status-chip.good::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 9px rgba(48,209,88, .55);
}

.eyebrow {
  display: block;
  color: var(--faint);
  font: 650 9px/1.2 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.app-pane {
  min-width: 0;
  background: var(--view-2);
  border-right: 1px solid var(--line);
}

.pane-head {
  min-height: 51px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 15px;
  border-bottom: 1px solid var(--line);
}

.pane-head strong {
  font-size: 12px;
  font-weight: 590;
}

.pane-head span {
  color: var(--faint);
  font: 500 9px ui-monospace, "SF Mono", Menlo, monospace;
}

/* Home: one live cell, not a folder icon. */
.cell-workspace {
  display: grid;
  grid-template-columns: minmax(160px, .72fr) minmax(360px, 1.7fr) minmax(220px, .95fr);
  min-height: 500px;
}

.file-pane { padding: 17px 12px; }

.file-pane h3 {
  margin: 8px 7px 17px;
  font-size: 16px;
  font-weight: 610;
  letter-spacing: -.02em;
}

.file-tree {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--dim);
  font: 500 11px/1.25 ui-monospace, "SF Mono", Menlo, monospace;
}

.file-tree li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border-radius: 7px;
}

.file-tree li::before {
  content: "";
  width: 11px;
  height: 8px;
  border: 1px solid #48484a;
  border-radius: 2px;
}

.file-tree li.folder::before { border-color: var(--accent); box-shadow: inset 0 0 0 2px rgba(255,255,255,.06); }
.file-tree li.active { color: var(--text); background: var(--accent-soft); }
.file-tree li small { margin-left: auto; color: var(--faint); font-size: 8px; }

.record-pane { background: #1c1c1e; }
.event-list { padding: 7px 14px 14px; }

.event {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 73px;
  padding: 10px 3px;
  border-bottom: 1px solid rgba(255,255,255,.055);
}

.event time {
  color: var(--faint);
  font: 500 9px ui-monospace, "SF Mono", Menlo, monospace;
}

.event-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.event-main strong {
  overflow: hidden;
  color: var(--text);
  font: 560 12px/1.2 ui-monospace, "SF Mono", Menlo, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-main small { color: var(--faint); font-size: 10px; }
.row-status { border: 0; background: transparent; padding: 0; color: var(--good); }
.row-status.wait { color: var(--warn); }

.rules-pane { border-right: 0; padding-bottom: 14px; }
.rule-list { padding: 8px 13px; }

.rule {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 2px;
  border-bottom: 1px solid rgba(255,255,255,.055);
}

.rule strong { display: block; font-size: 11px; font-weight: 570; }
.rule small { display: block; margin-top: 3px; color: var(--faint); font-size: 9.5px; }

.toggle {
  width: 28px;
  height: 16px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.35);
}

.toggle::after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(255,255,255,.4);
}

.approval-mini {
  margin: 12px 12px 0;
  padding: 13px;
  border: 1px solid rgba(255,159,10,.3);
  border-radius: 10px;
  background: rgba(255,159,10,.055);
}

.approval-mini .eyebrow { color: var(--warn); }
.approval-mini strong { display: block; margin: 7px 0 3px; font-size: 12px; }
.approval-mini small { color: var(--dim); font-size: 9.5px; }

/* The one-door approval flow. */
.flow-workspace {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 150px minmax(300px, 1.08fr);
  align-items: stretch;
  min-height: 470px;
  background:
    linear-gradient(90deg, transparent 0 33%, rgba(255,255,255,.025) 33% 66%, transparent 66%),
    var(--view);
}

.flow-column { padding: 26px; }
.flow-column > .eyebrow { margin-bottom: 18px; }

.action-card,
.approval-card {
  position: relative;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--view-3);
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
}

.action-card + .action-card { margin-top: 10px; }
.action-card strong { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 590; }
.action-card small { color: var(--faint); font: 500 9px ui-monospace, "SF Mono", Menlo, monospace; }
.action-card .row-status { float: right; margin-top: 2px; }

.flow-gate {
  position: relative;
  display: grid;
  place-items: center;
  border-inline: 1px solid var(--line);
  background: rgba(255,255,255,.025);
}

.flow-gate::before,
.flow-gate::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}

.flow-gate::before { left: 0; }
.flow-gate::after { right: 0; transform: rotate(180deg); }

.gate-core {
  position: relative;
  z-index: 1;
  width: 78px;
  height: 108px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 40px 40px 12px 12px;
  color: var(--accent);
  background: #161618;
  box-shadow: 0 0 42px rgba(255,255,255,.13), inset 0 0 18px rgba(255,255,255,.055);
  font: 650 9px ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.approval-card {
  min-height: 250px;
  padding: 22px;
  border-color: rgba(255,159,10,.3);
  background: linear-gradient(180deg, rgba(255,159,10,.05), var(--view-3) 38%);
}

.approval-card .eyebrow { color: var(--warn); }
.approval-card h3 { margin: 18px 0 2px; font-size: 30px; letter-spacing: -.035em; }
.approval-card p { margin: 0; color: var(--dim); font-size: 12px; }
.approval-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 22px 0; }
.approval-meta div { padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.approval-meta span { display: block; color: var(--faint); font-size: 8.5px; text-transform: uppercase; letter-spacing: .08em; }
.approval-meta strong { display: block; margin-top: 4px; font-size: 11px; }
.decision-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.decision-row span { padding: 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--dim); font-size: 10px; text-align: center; }
.decision-row .approve { color: #000000; background: var(--accent); border-color: var(--accent); font-weight: 650; }

/* Four parts as one modern product surface. */
.parts-workspace {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 450px;
}

.part-card {
  min-width: 0;
  padding: 25px 19px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.015), transparent 35%);
}

.part-card:last-child { border-right: 0; }
.part-card h3 { margin: 10px 0 5px; font-size: 18px; font-weight: 610; letter-spacing: -.02em; }
.part-card > p { min-height: 44px; margin: 0 0 22px; color: var(--faint); font-size: 10px; line-height: 1.45; }

.mini-list { display: grid; gap: 7px; }
.mini-row { display: flex; align-items: center; gap: 8px; min-height: 37px; padding: 8px 9px; border: 1px solid rgba(255,255,255,.065); border-radius: 7px; color: var(--dim); background: rgba(255,255,255,.018); font-size: 9.5px; }
.mini-row::before { content: ""; width: 6px; height: 6px; flex: 0 0 auto; border-radius: 2px; background: var(--accent); opacity: .8; }
.mini-row b { margin-left: auto; color: var(--text); font: 600 9px ui-monospace, "SF Mono", Menlo, monospace; }

.mini-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.mini-actions span { padding: 11px 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--dim); font-size: 9px; text-align: center; }
.mini-actions span:first-child { color: #000000; background: var(--accent); border-color: var(--accent); font-weight: 650; }

.mini-rules { display: grid; gap: 4px; }
.mini-rules .rule { padding: 11px 2px; }
.mini-rules .rule small { margin: 0; }

.mini-chart { display: flex; height: 128px; align-items: end; gap: 7px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.014); }
.mini-chart i { flex: 1; min-width: 6px; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--accent), rgba(255,255,255,.16)); opacity: .85; }
.mini-chart i:nth-child(1) { height: 28%; }
.mini-chart i:nth-child(2) { height: 44%; }
.mini-chart i:nth-child(3) { height: 38%; }
.mini-chart i:nth-child(4) { height: 67%; }
.mini-chart i:nth-child(5) { height: 58%; }
.mini-chart i:nth-child(6) { height: 86%; }

/* A sparse relationship view is used only where the relationship is the point. */
.boundary-workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}

.boundary-panel {
  position: relative;
  overflow: hidden;
  padding: 26px;
  background: var(--view-2);
}

.boundary-panel + .boundary-panel { border-left: 1px solid var(--line); }
.boundary-panel h3 { margin: 9px 0 4px; font-size: 20px; font-weight: 610; letter-spacing: -.025em; }
.boundary-panel > p { margin: 0; color: var(--faint); font-size: 11px; }

.node-stage {
  position: relative;
  height: 230px;
  margin: 28px 0 18px;
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 12px;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    #161618;
  background-size: 32px 32px;
}

.node {
  position: absolute;
  z-index: 2;
  min-width: 68px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--dim);
  background: #242426;
  font: 600 8.5px/1.15 ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: .05em;
  text-align: center;
  text-transform: uppercase;
}

.node.you { left: 7%; top: 42%; }
.node.cloud { right: 7%; top: 15%; }
.node.model { right: 7%; bottom: 14%; }
.node.cell { left: 50%; top: 50%; transform: translate(-50%, -50%); color: var(--accent); border-color: rgba(255,255,255,.42); }

.route {
  position: absolute;
  z-index: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--danger), rgba(255,69,58,.2));
  transform-origin: left center;
}

.route.one { left: 24%; top: 48%; width: 58%; transform: rotate(-19deg); }
.route.two { left: 24%; top: 51%; width: 59%; transform: rotate(18deg); }
.node-stage.local .route { left: 23%; top: 50%; width: 54%; transform: none; background: linear-gradient(90deg, rgba(255,255,255,.18), var(--accent), rgba(255,255,255,.18)); }
.node-stage.local .route.two { top: 54%; transform: rotate(180deg); transform-origin: center; }

.packet-stack { display: grid; gap: 7px; }
.packet { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.05); color: var(--dim); font: 500 9px ui-monospace, "SF Mono", Menlo, monospace; }
.packet b { color: var(--danger); font-weight: 600; }
.local-panel .packet b { color: var(--good); }

/* Photographic anchors with live HTML status, never fake labels baked into art. */
.scene-photo {
  min-height: 0;
  background: #000;
}

.scene-photo > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.photo-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.08), transparent 45%, rgba(0,0,0,.42));
}

.photo-tag {
  position: absolute;
  z-index: 2;
  min-width: 122px;
  padding: 10px 11px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 9px;
  background: rgba(28,28,30,.72);
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.photo-tag span { display: block; color: var(--faint); font: 650 8px ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .1em; text-transform: uppercase; }
.photo-tag strong { display: block; margin-top: 5px; font: 570 11px/1.2 ui-monospace, "SF Mono", Menlo, monospace; }
.photo-tag strong::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 8px rgba(48,209,88,.6); vertical-align: 1px; }
.tag-printer { left: 7%; top: 12%; }
.tag-scanner { left: 31%; bottom: 9%; }
.tag-scale { right: 17%; top: 18%; }
.tag-sensor { right: 5%; bottom: 12%; }

.rack-console {
  position: absolute;
  z-index: 2;
  left: 5%;
  bottom: 7%;
  width: min(340px, 38%);
  padding: 18px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 12px;
  background: rgba(28,28,30,.8);
  box-shadow: 0 18px 48px rgba(0,0,0,.4);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.rack-console h3 { margin: 10px 0 15px; font-size: 18px; letter-spacing: -.02em; }
.rack-stat { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.07); color: var(--faint); font: 500 9px ui-monospace, "SF Mono", Menlo, monospace; }
.rack-stat b { color: var(--good); font-weight: 650; }

/* Capability pages: each gets a real operating view instead of a reused illustration. */
.ops-workspace {
  display: grid;
  grid-template-columns: 150px minmax(360px, 1fr) minmax(220px, .48fr);
  min-height: 465px;
}

.ops-rail {
  padding: 18px 12px;
  border-right: 1px solid var(--line);
  background: #161618;
}

.ops-rail strong { display: block; margin: 3px 7px 15px; font-size: 12px; }
.ops-rail span { display: block; padding: 8px 9px; border-radius: 7px; color: var(--faint); font-size: 9.5px; }
.ops-rail span.active { color: var(--text); background: var(--accent-soft); }

.ops-main { min-width: 0; padding: 22px; background: #1c1c1e; }
.ops-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.ops-head h3 { margin: 5px 0 0; font-size: 24px; font-weight: 620; letter-spacing: -.03em; }
.ops-action { padding: 8px 12px; border-radius: 7px; color: #000000; background: var(--accent); font-size: 9.5px; font-weight: 680; }

.metric-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.metric { padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.016); }
.metric span { display: block; color: var(--faint); font-size: 8.5px; text-transform: uppercase; letter-spacing: .08em; }
.metric strong { display: block; margin-top: 7px; font: 610 17px ui-monospace, "SF Mono", Menlo, monospace; }

.ops-list { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.ops-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(80px, .7fr) auto; gap: 12px; align-items: center; min-height: 53px; padding: 8px 12px; border-bottom: 1px solid var(--line); color: var(--dim); font-size: 10px; }
.ops-row:last-child { border-bottom: 0; }
.ops-row strong { overflow: hidden; color: var(--text); font-weight: 570; text-overflow: ellipsis; white-space: nowrap; }
.ops-row b { color: var(--good); font: 600 9px ui-monospace, "SF Mono", Menlo, monospace; }
.ops-row b.wait { color: var(--warn); }

.ops-side { padding: 20px 15px; border-left: 1px solid var(--line); background: #161618; }
.ops-side h4 { margin: 8px 0 14px; font-size: 13px; font-weight: 590; }
.ops-note { margin-bottom: 9px; padding: 11px; border: 1px solid var(--line); border-radius: 8px; }
.ops-note strong { display: block; font-size: 10px; }
.ops-note small { display: block; margin-top: 5px; color: var(--faint); font-size: 9px; line-height: 1.4; }

/* Setup guide: canonical surfaces read like destinations, not a wall of URLs. */
.surface-intro,
.surface-note {
  color: var(--dim);
  font-size: 15px;
}

.surface-intro strong { color: var(--text); font-weight: 560; }
.surface-note { margin-top: 16px; font-size: 13px; }

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

.surface-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  background: var(--raise);
  text-decoration: none;
}

.surface-link:hover,
.surface-link:focus-visible { border-color: var(--accent); }
.surface-link span { font-size: 13px; font-weight: 560; }
.surface-link code { flex: 0 1 auto; overflow: hidden; padding: 0; border: 0; color: var(--accent); background: transparent; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 900px) {
  .experience { width: calc(100% - 32px); }
  .cell-workspace { grid-template-columns: 150px minmax(330px, 1fr); }
  .rules-pane { display: none; }
  .parts-workspace { grid-template-columns: repeat(2, 1fr); }
  .part-card:nth-child(2) { border-right: 0; }
  .part-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .ops-workspace { grid-template-columns: 132px minmax(0, 1fr); }
  .ops-side { display: none; }
}

@media (max-width: 760px) {
  :root,
  :root:not([data-theme="dark"]),
  :root[data-theme="light"] { --pad: 18px; }

  body { font-size: 15px; }

  header.site {
    min-height: 54px;
    gap: 14px;
    padding: 0 14px;
  }

  header.site nav {
    min-width: 0;
    margin-left: auto;
    gap: 15px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 16px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 16px), transparent 100%);
    padding-inline: 14px 18px;
  }

  header.site nav::-webkit-scrollbar { display: none; }
  header.site nav a { flex: 0 0 auto; }
  header.site nav .pill { display: none; }

  .hero,
  .hero.page {
    padding: 62px 20px 10px;
  }

  .hero h1 { font-size: clamp(36px, 10.8vw, 46px); }
  .hero.page h1 { font-size: clamp(31px, 9.2vw, 40px); }
  .lede { font-size: 15px; }

  .claim {
    padding: 70px 20px 0;
  }

  .claim h2 { font-size: 29px; }

  .art,
  .experience {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .art img,
  .scene-photo > img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }

  .triple {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 52px 20px;
  }

  .triple > div {
    padding: 22px 0;
    border-top: 1px solid var(--line);
  }

  .triple > div:last-child { border-bottom: 1px solid var(--line); }

  .get {
    padding-right: 0;
    padding-left: 0;
  }

  .termwrap,
  .term { width: 100%; }
  .term { border-right: 0; border-left: 0; border-radius: 0; padding: 18px 20px; }
  .fine { padding: 0 20px; }

  footer { padding-inline: 20px; }
  footer .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 20px; }

  .experience-bar,
  .experience-foot { padding-inline: 12px; }

  .experience-bar::after {
    content: "swipe";
    margin-left: auto;
    color: var(--faint);
    font-size: 8px;
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  .scene-boundary .experience-bar::after,
  .scene-ops .experience-bar::after { content: "live view"; }

  .experience-bar .experience-spacer,
  .experience-bar .live-badge { display: none; }

  .cell-workspace,
  .parts-workspace,
  .flow-workspace {
    display: flex;
    min-height: 480px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .cell-workspace::-webkit-scrollbar,
  .parts-workspace::-webkit-scrollbar,
  .flow-workspace::-webkit-scrollbar { display: none; }

  .cell-workspace .app-pane,
  .part-card,
  .flow-column {
    flex: 0 0 88vw;
    scroll-snap-align: start;
    border-right: 1px solid var(--line);
  }

  .record-pane { order: -1; }
  .rules-pane { display: block; }
  .event-list { padding-inline: 12px; }
  .event { grid-template-columns: 49px minmax(0,1fr) auto; gap: 8px; }
  .event-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .flow-workspace { align-items: stretch; }
  .flow-column { padding: 22px 18px; }
  .flow-gate { flex: 0 0 38vw; scroll-snap-align: center; border-inline: 1px solid var(--line); }

  .part-card { padding: 24px 18px; border-bottom: 0 !important; }

  .boundary-workspace { grid-template-columns: 1fr; }
  .boundary-panel { padding: 24px 18px; }
  .boundary-panel + .boundary-panel { border-left: 0; border-top: 1px solid var(--line); }
  .node-stage { height: 220px; }

  .scene-photo { aspect-ratio: auto; }
  .scene-devices > img { object-position: 48% center; }
  .photo-tag { min-width: 105px; padding: 8px; }
  .photo-tag strong { font-size: 9px; }
  .tag-printer { left: 3%; top: 5%; }
  .tag-scanner { left: 4%; bottom: 5%; }
  .tag-scale { right: 3%; top: 5%; }
  .tag-sensor { right: 3%; bottom: 5%; }

  .scene-enterprise > img { aspect-ratio: 4 / 5; object-position: 58% center; }
  .rack-console { left: 14px; right: 14px; bottom: 14px; width: auto; }

  .ops-workspace { display: block; min-height: 0; }
  .ops-rail { display: flex; gap: 6px; overflow-x: auto; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .ops-rail::-webkit-scrollbar { display: none; }
  .ops-rail strong { display: none; }
  .ops-rail span { flex: 0 0 auto; padding: 7px 9px; }
  .ops-main { padding: 20px 14px; }
  .ops-side { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; padding: 14px; border-left: 0; border-top: 1px solid var(--line); }
  .ops-side .eyebrow,
  .ops-side h4 { grid-column: 1 / -1; }
  .ops-note { margin: 0; }
  .metric-strip { gap: 6px; }
  .metric { padding: 10px 8px; }
  .metric strong { font-size: 14px; }
  .ops-row { grid-template-columns: minmax(0,1fr) auto; }
  .ops-row > :nth-child(2) { display: none; }

  .surface-grid { grid-template-columns: 1fr; }
  .surface-link { border-radius: 8px; }
}

@media (max-width: 420px) {
  .wordmark { font-size: 15px; }
  header.site nav { font-size: 11px; }
  .photo-tag { min-width: 94px; }
  .photo-tag span { font-size: 7px; }
  .photo-tag strong { font-size: 8px; }
  .metric span { font-size: 7.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .cell-workspace,
  .parts-workspace,
  .flow-workspace { scroll-behavior: auto; }
}

/*
 * Studio713 v7 — native, neutral, and product-first.
 *
 * The page is deliberately pure black. Product views borrow macOS material,
 * spacing, typography, and window behavior without imitating a generic SaaS
 * dashboard. White is the only brand accent; semantic color is reserved for
 * status that carries meaning.
 */
:root,
:root:not([data-theme="dark"]),
:root[data-theme="light"] {
  color-scheme: dark;
  --ink: #000000;
  --deep: #111111;
  --raise: #1c1c1e;
  --line: #38383a;
  --text: #f5f5f7;
  --dim: #a1a1a6;
  --faint: #6e6e73;
  --accent: #f5f5f7;
  --accent-soft: rgba(255, 255, 255, .085);
  --good: #30d158;
  --warn: #ff9f0a;
  --danger: #ff453a;
  --view: #1c1c1e;
  --view-2: #242426;
  --view-3: #2c2c2e;
  --pad: clamp(22px, 5vw, 96px);
}

html {
  background: #000;
}

body {
  background: #000;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Geist", sans-serif;
  font-feature-settings: "kern" 1, "liga" 1;
  letter-spacing: -.008em;
}

::selection {
  color: #000;
  background: #fff;
}

header.site {
  min-height: 56px;
  padding: 0 max(22px, calc((100vw - 1280px) / 2));
  background: rgba(0, 0, 0, .72);
  border-color: rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: saturate(140%) blur(28px);
  backdrop-filter: saturate(140%) blur(28px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -.02em;
}

.wordmark::after {
  content: "";
  width: 6px;
  height: 6px;
  margin: 0;
  border-radius: 50%;
  background: #fff;
  opacity: .92;
}

header.site nav {
  gap: 8px 24px;
  font-size: 12px;
  font-weight: 500;
}

header.site nav a {
  color: #8e8e93;
}

header.site nav a:hover,
header.site nav a:focus-visible,
header.site nav a[aria-current="page"] {
  color: #fff;
}

header.site nav a.pill {
  padding: 6px 14px;
  color: #000;
  background: #f5f5f7;
  border: 0;
}

header.site nav a.pill:hover,
header.site nav a.pill:focus-visible {
  color: #000;
  background: #fff;
}

.hero,
.hero.page {
  padding-top: clamp(88px, 14vh, 158px);
}

.hero h1,
.hero.page h1 {
  max-width: 1040px;
  margin-inline: auto;
  color: #f5f5f7;
  font-size: clamp(48px, 6.8vw, 92px);
  font-weight: 620;
  line-height: .98;
  letter-spacing: -.058em;
}

.hero.page h1 {
  max-width: 900px;
  font-size: clamp(44px, 5.7vw, 78px);
}

.hero .lede {
  max-width: 650px;
  margin-top: 28px;
  color: #86868b;
  font-size: clamp(18px, 1.65vw, 23px);
  line-height: 1.42;
  letter-spacing: -.018em;
}

.lede strong,
.claim p strong {
  color: #d2d2d7;
  font-weight: 560;
}

.claim {
  padding-top: clamp(100px, 14vh, 168px);
}

.claim h2 {
  max-width: 900px;
  margin-inline: auto;
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 610;
  line-height: 1.04;
  letter-spacing: -.045em;
}

.claim p {
  margin-top: 22px;
  color: #86868b;
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.48;
}

.claim a.btn {
  color: #000;
  background: #f5f5f7;
  border: 0;
  padding: 11px 22px;
  font-weight: 600;
}

.claim a.btn:hover,
.claim a.btn:focus-visible {
  color: #000;
  background: #fff;
}

.triple {
  max-width: 1240px;
  gap: clamp(42px, 5vw, 76px);
  padding-top: clamp(72px, 10vh, 118px);
  padding-bottom: clamp(88px, 12vh, 148px);
}

.triple h3 {
  color: #f5f5f7;
  font-size: clamp(20px, 1.65vw, 25px);
  font-weight: 590;
  letter-spacing: -.03em;
}

.triple p {
  color: #86868b;
  font-size: 15px;
  line-height: 1.55;
}

.teasers h3 a::after {
  color: #8e8e93;
}

.get {
  padding-top: clamp(62px, 9vh, 110px);
}

.term,
.doc pre {
  color: #f5f5f7;
  background: #1c1c1e;
  border-color: #38383a;
  border-radius: 14px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .45);
}

.term .p,
.doc pre .p,
a.plain,
.surface-link code {
  color: #f5f5f7;
}

.copybtn {
  color: #8e8e93;
  background: #2c2c2e;
  border: 0;
  border-radius: 7px;
}

.copybtn:hover,
.copybtn:focus-visible {
  color: #fff;
}

footer {
  border-color: rgba(255, 255, 255, .12);
}

footer a:hover,
footer a:focus-visible {
  color: #fff;
}

/* A product window, not a framed illustration. */
.experience {
  width: min(1320px, calc(100% - 48px));
  overflow: hidden;
  color: #f5f5f7;
  background: #1c1c1e;
  border: 1px solid #3a3a3c;
  border-radius: 22px;
  box-shadow:
    0 50px 120px rgba(0, 0, 0, .72),
    0 1px 0 rgba(255, 255, 255, .08) inset;
}

.experience,
.experience button,
.experience input {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
}

.experience-bar {
  min-height: 52px;
  padding-inline: 18px;
  color: #8e8e93;
  background: linear-gradient(#303032, #29292b);
  border-color: #3a3a3c;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 11px;
  font-weight: 520;
  letter-spacing: -.005em;
}

.experience-foot {
  min-height: 39px;
  color: #636366;
  background: #1c1c1e;
  border-color: #38383a;
  font-size: 9px;
}

.traffic {
  gap: 7px;
}

.traffic i {
  width: 12px;
  height: 12px;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .25) inset;
}

.traffic i:nth-child(1) { background: #ff5f57; }
.traffic i:nth-child(2) { background: #febc2e; }
.traffic i:nth-child(3),
.traffic i:last-child { background: #28c840; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .25) inset; }

.live-badge,
.status-chip,
.row-status,
.micro-chip {
  color: #a1a1a6;
  background: rgba(255, 255, 255, .055);
  border-color: #48484a;
  font-weight: 600;
}

.live-badge::before,
.status-chip.good::before,
.photo-tag strong::before {
  box-shadow: none;
}

.app-pane {
  background: #1c1c1e;
  border-color: #3a3a3c;
}

.file-pane,
.rules-pane,
.ops-rail,
.ops-side {
  background: #242426;
}

.record-pane,
.ops-main {
  background: #1c1c1e;
}

.pane-head,
.event,
.rule,
.ops-row,
.rack-stat {
  border-color: rgba(255, 255, 255, .085);
}

.file-tree li::before {
  border-color: #636366;
}

.file-tree li.folder::before {
  border-color: #a1a1a6;
  box-shadow: none;
}

.file-tree li.active,
.ops-rail span.active {
  color: #fff;
  background: rgba(255, 255, 255, .1);
}

.event-main strong {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  font-weight: 590;
  letter-spacing: -.012em;
}

.metric strong {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-variant-numeric: tabular-nums;
}

.toggle {
  background: #30d158;
  border-color: #30d158;
}

.toggle::after {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .45);
}

.approval-mini,
.approval-card {
  background: #2c2c2e;
  border-color: #48484a;
  box-shadow: none;
}

.flow-workspace {
  background: #1c1c1e;
}

.flow-gate {
  background: #161618;
  border-color: #38383a;
}

.flow-gate::before,
.flow-gate::after,
.node-stage.local .route {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .65));
}

.gate-core {
  color: #f5f5f7;
  background: #2c2c2e;
  border-color: #636366;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .34);
}

.decision-row .approve,
.mini-actions span:first-child,
.ops-action {
  color: #000;
  background: #f5f5f7;
  border-color: #f5f5f7;
}

.action-card,
.part-card,
.metric,
.ops-list,
.ops-note,
.surface-link {
  background: #2c2c2e;
  border-color: #3a3a3c;
  box-shadow: none;
}

.mini-row::before {
  background: #8e8e93;
}

.mini-chart {
  background: #242426;
  border-color: #3a3a3c;
}

.mini-chart i {
  background: linear-gradient(180deg, #f5f5f7, #636366);
  opacity: .8;
}

.boundary-panel {
  background: #1c1c1e;
}

.node-stage {
  background: #161618;
  border-color: #38383a;
}

.node {
  color: #a1a1a6;
  background: #2c2c2e;
  border-color: #48484a;
}

.node.cell {
  color: #fff;
  border-color: #8e8e93;
}

.node-stage.local .route {
  box-shadow: none;
}

.scene-photo > img {
  filter: grayscale(1) saturate(0) contrast(1.08) brightness(.82);
}

.photo-shade {
  background: linear-gradient(180deg, rgba(0, 0, 0, .08), transparent 35%, rgba(0, 0, 0, .58));
}

.photo-tag,
.rack-console {
  background: rgba(28, 28, 30, .78);
  border-color: rgba(255, 255, 255, .2);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: saturate(120%) blur(22px);
  backdrop-filter: saturate(120%) blur(22px);
}

.surface-link:hover,
.surface-link:focus-visible {
  border-color: #8e8e93;
  background: #323234;
}

@media (max-width: 900px) {
  .experience { width: calc(100% - 28px); }
}

@media (max-width: 760px) {
  :root,
  :root:not([data-theme="dark"]),
  :root[data-theme="light"] { --pad: 20px; }

  header.site {
    min-height: 52px;
    padding-inline: 14px;
  }

  header.site nav {
    gap: 14px;
    padding-right: 2px;
    padding-left: 10px;
    -webkit-mask-image: none;
    mask-image: none;
  }

  header.site nav a:nth-child(2),
  header.site nav a:nth-child(3) {
    display: none;
  }

  header.site nav a.pill {
    padding: 6px 12px;
  }

  .hero,
  .hero.page {
    padding: 70px 20px 16px;
  }

  .hero h1,
  .hero.page h1 {
    font-size: clamp(43px, 13.4vw, 58px);
    line-height: .98;
    letter-spacing: -.06em;
  }

  .hero .lede {
    margin-top: 22px;
    font-size: 17px;
    line-height: 1.45;
  }

  .claim {
    padding-top: 96px;
  }

  .claim h2 {
    font-size: 38px;
    line-height: 1.02;
  }

  .claim p {
    font-size: 17px;
  }

  .art,
  .experience {
    width: 100vw;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .experience-bar::after {
    content: none;
    display: none;
  }

  .experience-bar {
    min-height: 50px;
  }

  .cell-workspace .app-pane,
  .part-card,
  .flow-column,
  .flow-gate {
    flex-basis: 100vw;
  }

  .cell-workspace,
  .parts-workspace,
  .flow-workspace {
    min-height: 520px;
  }

  .triple {
    padding: 72px 20px 100px;
  }

  .triple > div {
    padding-block: 28px;
  }

  .term {
    padding-inline: 20px;
    border-radius: 0;
  }

  footer {
    padding-inline: 20px;
  }

  .experience-foot span:last-child {
    display: none;
  }
}
