/* GroundTruth: drawing-sheet language (grid bubbles, crop marks, title blocks) on off-white, one orange accent. */
:root {
  color-scheme: light;
  --bg: #f9f9f9; --panel: #ffffff; --ink: #262626; --muted: #6b6b6b; --faint: #a3a3a3; --line: #e8e8e8; --line-2: #d9d9d9;
  --soft: #f0f0f0; --dot: #dcdcdc;
  --accent: #ff4c00; --accent-2: #e64400; --accent-ink: #ffffff; --accent-soft: #ffe7da; --accent-line: #ffc7ad;
  --ncr: #dc2626; --ncr-bg: #fef2f2; --rfi: #b45309; --rfi-bg: #fffbeb; --obs: #2563eb; --obs-bg: #eff6ff;
  --pass: #15803d; --pass-bg: #f0fdf4; --run: #525252; --run-bg: #f0f0f0;
  --radius: 8px; --shadow: 0 1px 2px rgba(0, 0, 0, .04);
  --display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
/* light by default; dark only when chosen with the toggle in the top bar */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f0f0f; --panel: #171717; --ink: #ececec; --muted: #a3a3a3; --faint: #6b6b6b; --line: #262626; --line-2: #333333;
  --soft: #1f1f1f; --dot: #2c2c2c;
  --accent: #ff5a1f; --accent-2: #ff6d38; --accent-ink: #ffffff; --accent-soft: #2e170b; --accent-line: #5c2c14;
  --ncr: #f87171; --ncr-bg: #2a1212; --rfi: #fbbf24; --rfi-bg: #2a2010; --obs: #60a5fa; --obs-bg: #111d33;
  --pass: #4ade80; --pass-bg: #0f2418; --run: #a3a3a3; --run-bg: #1f1f1f; --shadow: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -.03em; }
h3 { font-weight: 600; letter-spacing: -.01em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.mono { font-family: var(--mono); font-size: 12px; }
.hl { color: var(--accent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* top bar: brand, links, one call to action */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -.03em; color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand .mark { display: block; width: 28px; height: 28px; flex: none; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.brand:hover .mark { transform: rotate(-6deg) scale(1.06); }
.top nav { display: flex; gap: 22px; font-size: 14.5px; }
.top nav a { color: var(--muted); text-decoration: none; padding: 20px 0 19px; border-bottom: 2px solid transparent; white-space: nowrap; }
.top nav a:hover { color: var(--ink); }
.top nav a.on { color: var(--ink); border-bottom-color: var(--accent); }
.top .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.top .right .gh { color: var(--muted); font-size: 14px; }
.theme-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.theme-btn:hover { color: var(--ink); border-color: var(--ink); }
.theme-btn .moon, :root[data-theme="dark"] .theme-btn .sun { display: block; }
.theme-btn .sun, :root[data-theme="dark"] .theme-btn .moon { display: none; }

/* buttons, chips, labels */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--ink); background: transparent; color: var(--ink); padding: 9px 15px;
  border-radius: 6px; cursor: pointer; font-weight: 500; font-size: 14px; text-decoration: none; transition: background .15s, color .15s, transform .05s; }
.btn:hover { background: var(--ink); color: var(--bg); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.btn.big { padding: 12px 20px; font-size: 15px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:disabled:hover { background: transparent; color: var(--ink); }
.btn.primary:disabled:hover { background: var(--accent); color: #fff; }
.btn.small { padding: 6px 11px; font-size: 13px; border-color: var(--line-2); }
.btn.small:hover { border-color: var(--ink); }
.btn.small.primary { border-color: var(--accent); }
.btn .sub { font-weight: 400; opacity: .8; font-size: 13px; }
.link { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; font-weight: 500; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; padding: 2px 7px; border-radius: 4px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.chip.pass { background: var(--pass-bg); color: var(--pass); }
.chip.fail, .chip.nonconformance { background: var(--ncr-bg); color: var(--ncr); }
.chip.review, .chip.design_query { background: var(--rfi-bg); color: var(--rfi); }
.chip.reporting_discrepancy { background: var(--obs-bg); color: var(--obs); }
.chip.running { background: var(--run-bg); color: var(--run); }
.chip.model { background: transparent; border: 1px solid var(--line-2); font-family: var(--mono); font-size: 11px; color: var(--ink); }
.chip.accent { background: var(--accent); color: #fff; font-family: var(--mono); font-size: 10.5px; padding: 1px 6px; }
.spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid color-mix(in srgb, currentColor 25%, transparent); border-top-color: currentColor; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
section.block { padding: 84px 0; border-top: 1px solid var(--line); }
/* section label: a grid bubble with a number, or a small orange square */
.eyebrow { display: inline-flex; gap: 10px; align-items: center; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--accent); flex: none; }
.eyebrow:has(.n)::before { display: none; }
.eyebrow .n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); font-size: 11.5px; font-weight: 500; }
h2.section { font-size: 46px; line-height: 1.06; margin: 16px 0 14px; max-width: 860px; }

/* drawing sheet: crop marks at the corners and a title block along the bottom */
.sheet { position: relative; background: var(--panel); border: 1px solid var(--line-2); border-radius: 3px; display: flex; flex-direction: column; }
.sheet::before { content: ""; position: absolute; inset: -9px; pointer-events: none; opacity: .45;
  background: linear-gradient(var(--ink), var(--ink)) 0 0 / 16px 1px no-repeat, linear-gradient(var(--ink), var(--ink)) 0 0 / 1px 16px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 100% 0 / 16px 1px no-repeat, linear-gradient(var(--ink), var(--ink)) 100% 0 / 1px 16px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 100% / 16px 1px no-repeat, linear-gradient(var(--ink), var(--ink)) 0 100% / 1px 16px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 100% 100% / 16px 1px no-repeat, linear-gradient(var(--ink), var(--ink)) 100% 100% / 1px 16px no-repeat; }
.sheet-body { padding: 22px; flex: 1; }
.sheet-title { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; border-top: 1px solid var(--line-2); font-family: var(--mono); font-size: 11.5px; }
.sheet-title > div { padding: 7px 12px; border-left: 1px solid var(--line-2); min-width: 0; }
.sheet-title > div:first-child { border-left: 0; }
.sheet-title small { display: block; font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.sheet-title b { font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

/* home: a centred hero on graph paper, with the Studio window under it */
.h-hero { position: relative; text-align: center; padding: 52px 0 0; }
.h-hero::before { content: ""; position: absolute; top: 0; height: 720px; left: 50%; width: 100vw; margin-left: -50vw; z-index: -1; pointer-events: none;
  background-image: radial-gradient(var(--dot) 1.1px, transparent 1.3px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent 92%); mask-image: linear-gradient(to bottom, #000 35%, transparent 92%); }
.pill { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: var(--ink); background: var(--panel); border: 1px solid var(--line-2);
  border-radius: 99px; padding: 4px 14px 4px 4px; box-shadow: var(--shadow); }
.pill:hover { border-color: var(--ink); text-decoration: none; }
.pill span { background: var(--accent); color: #fff; border-radius: 99px; padding: 2px 9px; font: 500 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.h-hero h1 { font-size: clamp(42px, 6.2vw, 82px); line-height: .98; letter-spacing: -.045em; margin: 20px auto 18px; }
.h-hero h1 .mk { color: var(--accent); background: linear-gradient(transparent 74%, var(--accent-soft) 74%, var(--accent-soft) 94%, transparent 94%); }
.h-hero .lead { font-size: 19px; line-height: 1.55; color: var(--muted); margin: 0 auto 26px; max-width: 600px; }
.ctas { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ctas .go { font-weight: 600; font-size: 14.5px; margin-left: 6px; }
.h-ctas { justify-content: center; margin-bottom: 44px; }
/* short laptop screens: more of the window above the fold */
@media (min-width: 961px) and (max-height: 820px) { .h-hero { padding-top: 40px; } .h-hero h1 { font-size: 64px; margin: 18px auto 14px; } .h-hero .lead { margin-bottom: 22px; } .h-ctas { margin-bottom: 36px; } }

/* the Studio window: a title bar with Plan, 3D and Walk, the live view, and the AI designer beside it */
.hs { position: relative; text-align: left; background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 30px 70px -20px rgba(0, 0, 0, .22), 0 10px 26px -12px rgba(0, 0, 0, .1); }
.hs-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; height: 50px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--bg); }
.hs-bar > :first-child { display: flex; } .hs-bar .hs-open { justify-self: end; }
.hs-dots { gap: 7px; } .hs-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.hs-name { position: absolute; left: 82px; top: 16px; font-weight: 600; font-size: 13.5px; white-space: nowrap; } .hs-name span { color: var(--faint); font-weight: 400; }
.hs-tabs { display: flex; gap: 2px; padding: 3px; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; }
.hs-tabs button { position: relative; overflow: hidden; border: 0; background: none; color: var(--muted); padding: 6px 20px 7px; border-radius: 7px; font-size: 13px; font-weight: 600; cursor: pointer; }
.hs-tabs button:hover { color: var(--ink); }
.hs-tabs button.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.hs-prog { position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; overflow: hidden; }
.hs-tabs button.on .hs-prog { background: var(--line); }
.hs-prog b { display: block; width: 0; height: 100%; background: var(--accent); }
.hs-tabs button.going .hs-prog b { animation: hs-prog var(--dur, 7s) linear both; }
.hs.held .hs-tabs button.on .hs-prog b { width: 100%; }
@keyframes hs-prog { to { width: 100%; } }
.hs-open { font-size: 13px; font-weight: 600; white-space: nowrap; }
.hs-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; }
.hs-stage { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #fcfcfb; }
.hs-layer { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; pointer-events: none; }
.hs-layer.on { opacity: 1; }
.hs-plan svg { display: block; width: 100%; height: 100%; }
.hs-3d { background: #eef0f2; } .hs-3d canvas { display: block; }
.hs-pic { width: 100%; height: 100%; object-fit: cover; }
.hs-cap { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; pointer-events: none; }
.hs-cap > span { background: rgba(255, 255, 255, .92); color: #262626; border: 1px solid #e3e1da; border-radius: 99px; padding: 5px 12px; font-size: 12.5px; font-weight: 500;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .08); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hs-cap .hs-clock { font: 500 11.5px var(--mono); } .hs-clock b { font-weight: 600; font-variant-numeric: tabular-nums; }
.hs-live { position: absolute; z-index: 2; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 6px; font: 500 10.5px var(--mono); text-transform: uppercase;
  letter-spacing: .08em; color: #262626; background: rgba(255, 255, 255, .9); border: 1px solid #e3e1da; border-radius: 99px; padding: 3px 9px 3px 8px; }
.hs-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; }
.hs-side { display: flex; flex-direction: column; min-width: 0; border-left: 1px solid var(--line); background: var(--panel); }
.hs-side-tabs { display: flex; gap: 18px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--faint); }
.hs-side-tabs span { padding: 12px 0 11px; margin-bottom: -1px; border-bottom: 2px solid transparent; }
.hs-side-tabs .on { color: var(--ink); border-bottom-color: var(--accent); }
.hs-ask { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.hs-msg { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; font-size: 13.5px; }
.hs-msg b { display: block; } .hs-msg div span { color: var(--muted); font-size: 13px; }
.hs-av { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); display: grid; place-items: center; font: 600 12px var(--display); }
.hs-chips { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 38px; }
.hs-chips button { border: 1px solid var(--line-2); background: var(--panel); border-radius: 99px; padding: 4px 10px; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.hs-chips button:hover { border-color: var(--accent); color: var(--accent); }
.hs-in { margin-top: auto; border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 8px 8px 12px; background: var(--bg); transition: border-color .15s, box-shadow .15s; }
.hs-in:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.hs-in textarea { border: 0; padding: 2px 0; min-height: 60px; resize: none; background: transparent; font: 14px/1.5 var(--sans); }
.hs-in textarea:focus { outline: none; }
.hs-in textarea.nudge { animation: nudge .3s; }
.hs-in-bar { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.hs-ask > .btn { margin-top: auto; }
/* the plan draws itself: rooms, then walls, then doors, furniture and the sun */
.hs-plan.draw .room { transform-box: fill-box; transform-origin: center; animation: hs-room .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 170ms + 150ms); }
.hs-plan.draw svg > line { stroke-dasharray: 1; animation: hs-wall 1.2s cubic-bezier(.4, 0, .2, 1) 1s both; }
.hs-plan.draw .opening, .hs-plan.draw .lbl { animation: hs-fade .5s ease 2s both; }
.hs-plan.draw .item { animation: hs-fade .5s ease 2.3s both; }
.hs-plan.draw .hero-ov { animation: hs-fade .7s ease 2.7s both; }
@keyframes hs-room { from { opacity: 0; transform: scale(.92); } }
@keyframes hs-wall { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes hs-fade { from { opacity: 0; } }
@keyframes nudge { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* home: Meta's models, under the hero */
.h-models { padding: 76px 0 0; text-align: center; }
.h-models > p, .h-proof > p { margin: 0 0 20px; font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.h-models > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.h-models > div > div { display: grid; gap: 4px; align-content: start; padding: 22px 18px; border-left: 1px solid var(--line); }
.h-models > div > div:first-child { border-left: 0; }
.h-models b { font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.h-models span { color: var(--muted); font-size: 13.5px; }

/* home: section heads, centred; a plain label over each, never a number */
.h-sec { padding: 120px 0 0; }
.h-head { max-width: 780px; margin: 0 auto 72px; text-align: center; }
.kicker { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.h-head h2 { font-family: var(--display); font-size: clamp(32px, 4.4vw, 54px); font-weight: 600; line-height: 1.04; letter-spacing: -.035em; margin: 14px 0; }
.h-head p { margin: 0 auto; max-width: 620px; color: var(--muted); font-size: 17.5px; }
.h-head p a { font-weight: 600; }
.h-head h2 .hl, #package h2 .hl { white-space: nowrap; } /* the accent phrase stays on one line */

/* home: Design, Simulate and Verify, each a row with its picture, alternating sides */
.frow { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: center; margin-bottom: 120px; }
.frow:last-child { margin-bottom: 0; }
.frow.flip .f-copy { order: 2; }
.f-copy h3 { font-family: var(--display); font-size: 38px; font-weight: 600; line-height: 1.06; letter-spacing: -.03em; margin: 12px 0 16px; }
.f-copy p { margin: 0 0 22px; color: var(--muted); font-size: 16.5px; }
.f-list { display: grid; gap: 12px; margin: 0 0 26px; padding: 0; list-style: none; }
.f-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.f-list svg { flex: none; margin-top: 1px; color: var(--accent); }
.f-copy .go { padding: 0; border: 0; background: none; color: var(--accent); font-size: 15px; font-weight: 600; cursor: pointer; }
.f-copy .go:hover { text-decoration: underline; text-underline-offset: 3px; }
.f-art .sheet-body { padding: 10px; }
.f-art .sheet-body:has(.f-shot) { padding: 0; }
.f-shot { position: relative; aspect-ratio: 16 / 10.4; overflow: hidden; background: #fbfaf7; border-radius: 2px 2px 0 0; }
.f-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.f-sim svg { display: block; width: 100%; height: auto; border-radius: 2px; }
.show-chat { position: absolute; z-index: 2; right: 18px; bottom: 18px; width: min(340px, 78%); display: grid; gap: 8px; }
.show-chat .u { justify-self: end; background: #262626; color: #fff; padding: 9px 14px; border-radius: 14px 14px 4px 14px; font-size: 13.5px; box-shadow: 0 8px 24px rgba(0, 0, 0, .14); }
.show-chat .a { display: flex; gap: 9px; align-items: center; background: #fff; color: #262626; border: 1px solid #e3e1da; padding: 8px 12px; border-radius: 14px 14px 14px 4px; font-size: 13px; box-shadow: 0 8px 24px rgba(0, 0, 0, .1); }
.show-chat .av { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); display: grid; place-items: center; font: 600 11px var(--display); }
.show-chat .ok { margin-left: auto; color: #15803d; font-weight: 700; }
.hero-cap { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.hero-cap i { display: inline-block; width: 10px; height: 10px; vertical-align: -1px; margin-right: 5px; border-radius: 2px; }
.hero-cap b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
/* Verify: the demo package's own captures, as prints on a desk */
.collage { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; }
.collage figure { display: flex; flex-direction: column; margin: 0; padding: 8px 8px 10px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .22); }
.collage img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 7px; background: var(--soft); }
.collage .c1 { grid-row: 1 / 3; } .collage .c1 img { flex: 1; aspect-ratio: auto; min-height: 0; }
.collage figcaption { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.collage figcaption b { margin-right: 4px; font: 500 11.5px var(--mono); color: var(--ink); }
.c-docs { position: absolute; z-index: 2; left: 18px; bottom: 44px; display: flex; gap: 6px; align-items: center; padding: 7px 14px 7px 8px; background: var(--panel);
  border: 1px solid var(--line-2); border-radius: 99px; font-size: 12.5px; color: var(--muted); box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .25); }
.art-box { border: 1px solid var(--line-2); border-radius: 4px; background: var(--panel); padding: 10px;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px); background-size: 16px 16px; }
.art { display: block; width: 100%; height: auto; }
.art .dot { fill: var(--accent); stroke: var(--panel); stroke-width: 1.5; }
.art .bub-a, .art .plate { fill: var(--panel); stroke: var(--line-2); stroke-width: 1.5; }
.art .bl-a { stroke: var(--faint); stroke-width: 3; stroke-linecap: round; opacity: .7; }
.art .photo { fill: #e9ece1; }
.art .mods rect { fill: #5b6f8f; opacity: .78; }
.art .mask { fill: color-mix(in srgb, var(--accent) 20%, transparent); stroke: var(--accent); stroke-width: 2; }
.art .bad { stroke: var(--ncr); stroke-width: 2.5; stroke-linecap: round; }
.art .ok { fill: var(--pass); } .art .tick { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.art .docp { fill: var(--panel); stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; }

/* home: the results, on a measuring ruler */
.h-proof { padding: 120px 0 0; text-align: center; }
.ruler { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 26px; text-align: left; }
.ruler::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px; border-top: 1px solid var(--ink); opacity: .55;
  background: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 10%) 0 0 / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 2%) 0 0 / 100% 6px no-repeat; }
.ruler b { display: block; font-family: var(--display); font-size: 48px; font-weight: 600; letter-spacing: -.04em; line-height: 1.1; }
.ruler span { color: var(--muted); font-size: 14px; }
#package { border-top: 0; padding: 120px 0 0; }
#package .pkg-head { flex-direction: column; align-items: center; text-align: center; gap: 22px; margin-bottom: 40px; }
#package .pkg-head h2.section { margin: 14px auto 18px; font-size: clamp(32px, 4.4vw, 54px); line-height: 1.04; letter-spacing: -.035em; }
#package .counts { justify-content: center; }

/* home: the principles, four cards */
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.principles > div { display: grid; gap: 10px; align-content: start; padding: 26px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.principles svg { width: 26px; height: 26px; color: var(--accent); margin-bottom: 6px; }
.principles b { font-size: 16px; line-height: 1.3; }
.principles span { color: var(--muted); font-size: 14px; }

/* home and upload: counts of what a package holds */
.counts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.counts span { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); background: var(--panel); border-radius: 6px; padding: 7px 12px 7px 10px; font-size: 13.5px; color: var(--muted); }
.counts svg { color: var(--accent); }
.counts b { font-family: var(--display); font-size: 17px; color: var(--ink); }
.walk-note b { display: block; }
.walk-note p { margin: 10px 0 0; font-size: 15px; }
.walk-note .big-n { font: 600 34px/1 var(--display); color: var(--ncr); margin-right: 6px; vertical-align: -4px; }

/* home: demo package (class names shared with app.js) */
.pkg-head { display: flex; gap: 24px; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; margin-bottom: 30px; }
.groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 28px; }
.group.nameplate_photo, .group.walkthrough_video { grid-column: 1 / -1; }
.group h3 { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 10px; color: var(--muted); font-weight: 500; }
.group h3 span { color: var(--faint); margin-left: 4px; }
.captures { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.group.drone_still .captures, .group.drawing_sheet .captures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.capture { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--panel); cursor: zoom-in; display: flex; flex-direction: column; transition: border-color .15s; }
.capture:hover { border-color: var(--accent); }
.capture img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--soft); }
.capture .cap { padding: 8px 10px; font-size: 12px; flex: 1; color: var(--muted); border-top: 1px solid var(--line); }
.capture .cap b { display: block; font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--ink); }
.walk { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.walk video { width: 100%; border-radius: 4px; background: #000; display: block; }
.tabs { display: flex; gap: 24px; flex-wrap: wrap; margin: 0 0 18px; border-bottom: 1px solid var(--line-2); }
.tabs button { border: 0; background: none; color: var(--muted); padding: 10px 0; margin-bottom: -1px; border-bottom: 2px solid transparent; cursor: pointer; font-size: 14px; font-weight: 500; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); border-bottom-color: var(--accent); }
.tabs button.spoiler { color: var(--accent); }
.tabs.sub { gap: 18px; } .tabs.sub button { font-size: 13px; padding: 7px 0; }
.facts-row { display: flex; gap: 6px; flex-wrap: wrap; }
.models-table td:first-child { white-space: nowrap; font-family: var(--mono); font-size: 12px; color: var(--accent); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--panel); }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-weight: 500; white-space: nowrap; background: var(--bg); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
pre.notes { white-space: pre-wrap; margin: 0; padding: 14px 16px; font-family: var(--mono); font-size: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 4px; }
.key-list { margin: 0; padding-left: 18px; font-size: 14px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.rules p { margin: 0; padding: 14px 0 14px 34px; border-top: 1px solid var(--line); font-size: 14.5px; position: relative; }
.rules p:first-child { border-top: 0; padding-top: 0; }
.rules p::before { content: attr(data-n); position: absolute; left: 0; top: 15px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent);
  font-family: var(--mono); font-size: 10.5px; display: grid; place-items: center; }
.rules p:first-child::before { top: 1px; }
.rules b { display: block; font-weight: 600; margin-bottom: 2px; }

/* page heads (upload, plans) */
.page-head { padding: 60px 0 14px; }
.page-head h1 { font-size: 48px; line-height: 1.04; margin: 16px 0 14px; }
.steps { display: grid; gap: 0; margin: 26px 0 70px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--panel); }
.ustep { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 28px 26px 30px; border-top: 1px solid var(--line); }
.ustep:first-child { border-top: 0; }
.ustep .n { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 15px; }
.ustep h2 { font-size: 22px; margin: 4px 0 4px; letter-spacing: -.02em; }
.drop { border: 1.5px dashed var(--line-2); border-radius: 6px; padding: 30px; text-align: center; color: var(--muted); cursor: pointer; background: var(--bg); transition: border-color .15s, background .15s;
  display: flex; flex-direction: column; align-items: center; gap: 6px; }
.drop svg { color: var(--accent); }
.page-head .counts { margin-top: 8px; }
.drop.over, .drop:hover { border-color: var(--accent); color: var(--ink); background: var(--accent-soft); }
.files { margin-top: 12px; display: grid; gap: 8px; }
.file-row { display: grid; grid-template-columns: 64px minmax(0, 1.2fr) 170px minmax(0, 1fr) 32px; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 6px; padding: 6px; background: var(--panel); }
.file-row img, .file-row .ph { width: 64px; height: 48px; object-fit: cover; border-radius: 3px; background: var(--soft); display: grid; place-items: center; font-size: 11px; color: var(--muted); }
input, select, textarea { font: inherit; font-size: 14px; color: var(--ink); background: var(--panel); border: 1px solid var(--line-2); border-radius: 6px; padding: 8px 10px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--accent) 22%, transparent); border-color: var(--accent); }
textarea { font-family: var(--mono); font-size: 12.5px; min-height: 88px; resize: vertical; }
label.field { display: block; font-size: 13px; font-weight: 500; margin: 12px 0 5px; }
.sched td, .sched th { padding: 4px; }
.sched input { padding: 6px 7px; font-size: 13px; min-width: 90px; }
.icon-btn { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; padding: 4px 6px; border-radius: 4px; }
.icon-btn:hover { background: var(--soft); color: var(--ink); }
details.more { margin-top: 14px; }
details.more summary { cursor: pointer; font-weight: 500; font-size: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

/* run view */
.run-top { padding: 32px 0 8px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.run-top h1 { font-size: 28px; margin: 0; }
.run-top .meta { margin-left: auto; display: flex; gap: 14px; align-items: center; font-size: 12.5px; color: var(--muted); font-family: var(--mono); }
.run-top .meta b { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 500; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; flex: none; }
.pulse.off { animation: none; background: var(--faint); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
/* the run's phases as a dashed sequence of numbered bubbles */
.stepper { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 18px 0 28px; counter-reset: st; }
.stepper::before { content: ""; position: absolute; top: 13px; left: 14px; right: 14px; border-top: 1.5px dashed var(--line-2); }
.stepper .st { position: relative; font-size: 12px; color: var(--faint); padding-top: 36px; counter-increment: st; }
.stepper .st::before { content: counter(st); position: absolute; top: 0; left: 0; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--bg);
  display: grid; place-items: center; font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.stepper .st b { display: block; font-size: 13.5px; font-weight: 600; color: var(--muted); overflow-wrap: anywhere; }
.stepper .st span { font-family: var(--mono); font-size: 11px; }
.stepper .st.done::before { content: "✓"; background: var(--ink); border-color: var(--ink); color: var(--bg); }
.stepper .st.done b { color: var(--ink); }
.stepper .st.now::before { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.stepper .st.now b { color: var(--accent); }
.run { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 26px; padding-bottom: 70px; }
.board { display: grid; gap: 28px; align-content: start; }
.board .grp h3 { font-family: var(--display); font-size: 18px; letter-spacing: -.02em; margin: 0 0 10px; display: flex; gap: 10px; align-items: center; }
.board .grp h3 .count { font-weight: 400; color: var(--faint); font-family: var(--mono); font-size: 11.5px; letter-spacing: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 11px; display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; position: relative; transition: border-color .2s, opacity .2s; }
.card.new { animation: rise .25s ease; }
.card.waiting { opacity: .55; border-style: dashed; background: transparent; }
.card.running { border-color: var(--accent); }
.card .note { font-size: 12.5px; color: var(--ncr); margin-top: 4px; }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.card .th { width: 84px; height: 63px; border-radius: 3px; object-fit: cover; background: var(--soft); display: grid; place-items: center; font-size: 22px; cursor: zoom-in; border: 1px solid var(--line); }
.card .t { font-weight: 600; font-size: 14px; line-height: 1.3; }
.card .s { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.card .f { font-size: 13px; margin-top: 6px; }
.card .row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.card.fail { border-left: 3px solid var(--ncr); }
.card.review { border-left: 3px solid var(--rfi); }
.card.pass { border-left: 3px solid var(--pass); }
.card .claims { grid-column: 1 / -1; display: grid; gap: 5px; margin-top: 2px; }
.card .claim { display: grid; grid-template-columns: 100px minmax(0, 1fr) 64px; gap: 10px; font-size: 13px; align-items: center; padding-top: 6px; border-top: 1px solid var(--line); }
.card .claim img { width: 64px; height: 40px; object-fit: cover; border-radius: 3px; cursor: zoom-in; border: 1px solid var(--line); }
.card .claim .at { font-variant-numeric: tabular-nums; margin-right: 4px; font-family: var(--mono); font-size: 11px; }
#grp-walk .cards { grid-template-columns: minmax(0, 1fr); }
.card .claim .chip { justify-self: start; }
.empty-board { border: 1px dashed var(--line-2); border-radius: 6px; padding: 30px; text-align: center; color: var(--muted); }
.side { position: sticky; top: 80px; align-self: start; display: grid; gap: 16px; }
.agent { background: var(--panel); border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
.agent .hd { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.agent .av { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 13px; flex: none; }
.agent .feed { max-height: calc(100vh - 340px); min-height: 220px; overflow-y: auto; padding: 12px 14px; display: grid; gap: 10px; align-content: start; }
.agent .msg { background: var(--bg); border-left: 2px solid var(--accent); border-radius: 0 6px 6px 0; padding: 8px 12px; font-size: 13.5px; }
.agent .ev { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: baseline; }
.agent .ev .chip { flex: none; }
.agent .turn { font-family: var(--mono); font-size: 10.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; margin-top: 4px; }
.tally { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line-2); border-radius: 6px; background: var(--panel); }
.tally div { padding: 10px 12px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.tally div:nth-child(3n + 1) { border-left: 0; }
.tally div:nth-child(-n + 3) { border-top: 0; }
.tally b { display: block; font-family: var(--display); font-size: 26px; line-height: 1.15; font-weight: 600; letter-spacing: -.03em; }
.tally span { font-size: 11.5px; color: var(--muted); }
.tally .ncr b { color: var(--ncr); } .tally .rfi b { color: var(--rfi); } .tally .obs b { color: var(--obs); }
.done-card { background: var(--panel); border: 1.5px solid var(--accent); border-radius: 6px; padding: 18px; }
.done-card h3 { margin: 0 0 6px; font-family: var(--display); font-size: 19px; letter-spacing: -.02em; }
.error-card { background: var(--ncr-bg); color: var(--ncr); border-radius: 6px; padding: 14px 16px; }

/* findings */
.res-head { display: flex; gap: 16px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; padding: 44px 0 8px; }
.res-head h1 { margin: 14px 0 0; font-size: 40px; }
.score { display: flex; gap: 12px; align-items: center; background: var(--pass-bg); color: var(--pass); padding: 14px 18px; border-radius: 6px; font-weight: 500; margin: 16px 0; flex-wrap: wrap; border-left: 4px solid var(--pass); }
.score b { font-family: var(--display); font-size: 24px; font-weight: 600; }
.score.warn { background: var(--rfi-bg); color: var(--rfi); border-left-color: var(--rfi); }
.overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 16px 0; }
.ov { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; border-top: 3px solid var(--muted); }
.ov.nonconformance { border-top-color: var(--ncr); } .ov.design_query { border-top-color: var(--rfi); } .ov.reporting_discrepancy { border-top-color: var(--obs); }
.ov h3 { margin: 0 0 2px; font-size: 15px; display: flex; justify-content: space-between; }
.ov p { margin: 0 0 8px; font-size: 12.5px; color: var(--muted); }
.ov .jump { display: block; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink); padding: 7px 0; cursor: pointer; }
.ov .jump:hover { color: var(--accent); }
.ov .key-item { padding: 7px 0; border-top: 1px solid var(--line); }
.summary { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; margin: 16px 0; font-size: 14.5px; }
.filters { position: sticky; top: 64px; z-index: 10; background: var(--bg); padding: 6px 0 0; }
.fcard { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--muted); border-radius: 6px; padding: 20px; margin: 14px 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 26px; scroll-margin-top: 130px; }
.fcard.nonconformance { border-left-color: var(--ncr); } .fcard.design_query { border-left-color: var(--rfi); } .fcard.reporting_discrepancy { border-left-color: var(--obs); }
.fcard h3 { margin: 10px 0 8px; font-family: var(--display); font-size: 23px; letter-spacing: -.02em; }
.fcard .ev img { width: 100%; border-radius: 4px; border: 1px solid var(--line); display: block; cursor: zoom-in; }
.fcard .ev figure { margin: 0 0 10px; } .fcard .ev figcaption { font-size: 11.5px; color: var(--muted); margin-top: 5px; font-family: var(--mono); }
dl.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; margin: 14px 0; font-size: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; }
dl.facts dt { color: var(--muted); font-family: var(--mono); font-size: 11.5px; padding-top: 2px; text-transform: uppercase; } dl.facts dd { margin: 0; }
.how-known { font-size: 12.5px; color: var(--muted); }
.doc { border: 1px solid var(--line-2); border-radius: 4px; margin-top: 14px; overflow: hidden; }
.doc > button { width: 100%; text-align: left; background: var(--bg); border: 0; padding: 11px 14px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.doc > button .arrow { transition: transform .15s; }
.doc.open > button .arrow { transform: rotate(90deg); }
.doc-body { padding: 4px 14px 14px; font-size: 14px; display: none; }
.doc.open .doc-body { display: block; }
.doc-body h5 { margin: 12px 0 2px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.doc-body ul { margin: 2px 0; padding-left: 18px; }
details.box { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 13px 16px; margin: 14px 0; }
details.box summary { cursor: pointer; font-weight: 500; }

/* home: the closing call to action, a dark drawing sheet */
.closer { padding: 120px 0 104px; }
.closer-sheet { background: #1b1b1b; border-color: #1b1b1b; color: #ededed; }
.closer-sheet .sheet-body { padding: 0; }
.closer-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 26px 48px; align-items: center; padding: 52px 54px;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1.1px, transparent 1.3px); background-size: 22px 22px; }
.closer h2 { font-family: var(--display); font-size: 46px; line-height: 1.04; margin: 0 0 12px; letter-spacing: -.03em; }
.closer h2 .hl { color: #ff6d38; white-space: nowrap; }
.closer p { margin: 0; color: #a8a8a8; font-size: 16px; max-width: 520px; }
.closer .ctas { justify-content: flex-end; }
.closer .btn:not(.primary) { color: #ededed; border-color: #5c5c5c; }
.closer .btn:not(.primary):hover { background: #ededed; color: #1b1b1b; border-color: #ededed; }
.closer .go { color: #ff8a5c; flex-basis: 100%; text-align: right; }
.closer-sheet .sheet-title { border-top-color: #333; }
.closer-sheet .sheet-title > div { border-left-color: #333; }
.closer-sheet .sheet-title b { color: #ededed; }
.closer-sheet .sheet-title small { color: #777; }
:root[data-theme="dark"] .closer-sheet { background: #191919; border-color: var(--accent-line); }

/* home: sections fade up as they come into view (added by app.js, never with reduced motion) */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms), transform .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }
@media print { .rv { opacity: 1; transform: none; } }

/* footer: the brand, then columns of links */
.foot { border-top: 1px solid var(--line); padding: 56px 0 32px; color: var(--muted); font-size: 14px; background: var(--panel); }
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 32px; }
.foot-brand p { margin: 14px 0 0; max-width: 340px; }
.foot h4 { margin: 4px 0 14px; font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--faint); }
.foot-grid > div:not(.foot-brand) { display: grid; gap: 10px; align-content: start; }
.foot-grid a { color: var(--ink); } .foot-grid a:hover { color: var(--accent); text-decoration: none; }
.foot-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; }

/* lightbox */
#lightbox { position: fixed; inset: 0; background: rgba(10, 10, 10, .88); display: grid; place-items: center; z-index: 50; padding: 24px; cursor: zoom-out; }
#lightbox[hidden] { display: none; }
#lightbox img { max-height: 86vh; border-radius: 4px; }
#lightbox p { color: #ddd; text-align: center; font-size: 13px; margin: 10px 0 0; max-width: 900px; }

@media (max-width: 960px) {
  .top .wrap { gap: 18px; } .top nav { gap: 14px; } .top .right .gh { display: none; }
  h2.section { font-size: 34px; }
  .ruler { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .hs-body { grid-template-columns: minmax(0, 1fr); } .hs-side { border-left: 0; border-top: 1px solid var(--line); } .hs-in textarea { min-height: 44px; }
  .hs-name span, .hs-open { display: none; }
  .h-models > div { grid-template-columns: repeat(2, minmax(0, 1fr)); } .h-models > div > div:nth-child(3) { border-left: 0; } .h-models > div > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .h-sec, .h-proof, #package { padding-top: 88px; } .h-head { margin-bottom: 48px; } .closer { padding-top: 88px; }
  .frow { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-bottom: 80px; } .frow.flip .f-copy { order: 0; }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; }
  .run { grid-template-columns: 1fr; } .side { position: static; } .agent .feed { max-height: 320px; }
  .fcard { grid-template-columns: 1fr; } .walk, .grid2 { grid-template-columns: 1fr; } .overview { grid-template-columns: 1fr; }
  .stepper { grid-template-columns: repeat(5, minmax(64px, 1fr)); overflow-x: auto; }
  .file-row { grid-template-columns: 52px minmax(0, 1fr) 32px; } .file-row select, .file-row .area { grid-column: 2 / 3; }
  .top nav a.hide-sm { display: none; } .run-top .meta { margin-left: 0; width: 100%; }
  .closer-in { grid-template-columns: 1fr; } .closer .ctas { justify-content: flex-start; } .closer .go { text-align: left; }
  section.block { padding: 60px 0; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; } .top .right > .btn { display: none; }
  .h-hero { padding-top: 36px; } .h-hero .lead { font-size: 16.5px; } .h-ctas { margin-bottom: 32px; flex-direction: column; align-items: stretch; max-width: 320px; margin-left: auto; margin-right: auto; }
  .hs { border-radius: 10px; } .hs-bar { grid-template-columns: 1fr; height: 46px; padding: 0 8px; } .hs-dots, .hs-name { display: none !important; }
  .hs-tabs { justify-self: center; } .hs-tabs button { padding: 6px 16px 7px; }
  .hs-stage { aspect-ratio: 4 / 3.3; } .hs-cap { left: 10px; bottom: 10px; } .hs-cap > span { font-size: 11.5px; padding: 4px 10px; } .hs-live { top: 8px; right: 8px; }
  .ruler b { font-size: 32px; }
  .f-copy h3 { font-size: 29px; }
  .show-chat { position: static; width: auto; padding: 12px; border-top: 1px solid var(--line); } .show-chat .u { font-size: 12.5px; }
  .f-shot { aspect-ratio: auto; } .f-shot img { aspect-ratio: 16 / 10.4; height: auto; }
  .collage { gap: 10px; } .collage figcaption { font-size: 11.5px; }
  .c-docs { position: static; grid-column: 1 / -1; justify-self: start; font-size: 12px; } /* under the photos, not over them */
  .h-models b { font-size: 17px; } .h-models > div > div { padding: 16px 12px; }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .stepper { gap: 6px; } .stepper .st span { display: none; } .stepper .st b { font-size: 11.5px; line-height: 1.3; }
  .page-head { padding-top: 38px; } .page-head h1 { font-size: 33px; } .res-head h1 { font-size: 28px; } .panel { padding: 16px; }
  .ustep { padding: 20px 16px; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; }
  .card { grid-template-columns: 64px minmax(0, 1fr); } .card .th { width: 64px; height: 48px; }
  .card .claim { grid-template-columns: 88px minmax(0, 1fr); } .card .claim img { display: none; }
  .sheet-title { grid-template-columns: minmax(0, 1fr) auto; } .sheet-title > div:nth-child(3) { display: none; }
  .groups { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .groups .captures { grid-auto-flow: column; grid-template-columns: none !important; grid-auto-columns: 60%; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -22px; padding: 0 22px 6px; scroll-padding: 0 22px; scrollbar-width: none; }
  .groups .captures::-webkit-scrollbar { display: none; }
  .capture { scroll-snap-align: start; }
  .closer-in { padding: 30px 22px; } .closer h2 { font-size: 34px; }
}
@media (max-width: 480px) { .brand-name { display: none; } .top nav { gap: 12px; min-width: 0; overflow-x: auto; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); padding-right: 18px; } .top nav a { font-size: 14px; } .top .wrap { gap: 12px; } }

/* accounts: the sign-in dialog and the account button (site and studio) */
.auth-dlg { border: 0; padding: 0; background: transparent; max-width: calc(100vw - 32px); }
.auth-dlg::backdrop { background: rgba(20, 20, 20, .45); backdrop-filter: blur(3px); }
.auth-card { position: relative; width: 400px; max-width: 100%; background: var(--panel); color: var(--ink); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 30px 28px 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, .18); display: grid; gap: 12px; }
.auth-card h2 { margin: 6px 0 0; font-size: 26px; }
.auth-note { margin: -4px 0 6px; color: var(--muted); font-size: 14px; }
.auth-mark { display: block; width: 40px; height: 40px; }
.auth-x { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 24px; line-height: 1; color: var(--faint); cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.auth-x:hover { color: var(--ink); background: var(--soft); }
.auth-f { display: grid; gap: 5px; font-size: 13px; font-weight: 500; }
.auth-f[hidden] { display: none; }
.auth-f input { font-size: 15px; padding: 10px 12px; }
.auth-pw { position: relative; display: block; }
.auth-pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); font-size: 12px; cursor: pointer; padding: 4px 6px; }
.auth-err { margin: 0; min-height: 1.2em; color: var(--ncr); font-size: 13px; }
.auth-go { width: 100%; }
.auth-switch { margin: 2px 0 0; text-align: center; font-size: 13.5px; color: var(--muted); }
.acct { position: relative; }
.acct summary { list-style: none; cursor: pointer; }
.acct summary::-webkit-details-marker { display: none; }
.acct-av { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font: 600 14px var(--display); }
.acct-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 220px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .12); padding: 6px; display: grid; }
.acct-who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: grid; }
.acct-who span { font-size: 12.5px; color: var(--muted); }
.acct-list a, .acct-list button { text-align: left; padding: 8px 10px; border-radius: 6px; border: 0; background: none; color: var(--ink); font-size: 14px; cursor: pointer; }
.acct-list a:hover, .acct-list button:hover { background: var(--soft); text-decoration: none; }
