/* This page's layout. Colours, type, header and footer are in site.css. */

/* Signup */
.signup { scroll-margin-top: 24px; }
.signup-lead { font-weight: 650; margin-bottom: 14px; }
.signup label { font-size: 14px; color: var(--muted); }
.input-row { display: flex; gap: 8px; margin-top: 6px; }
.input-row input { flex: 1; min-width: 0; min-height: 52px; padding: 12px 14px; background: var(--paper); color: var(--ink); border: 1px solid var(--field-border); border-radius: 4px; }
.input-row input::placeholder { color: var(--placeholder); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; }
.consent input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--button); }
.consent label { font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.feedback { margin-top: 16px; padding: 10px 14px; border-left: 3px solid var(--brass); background: var(--paper); font-size: 15px; }
.feedback:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.help, .privacy { margin-top: 14px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.privacy summary { cursor: pointer; width: fit-content; }
.privacy p { margin-top: 8px; max-width: 60ch; }

/* The example, left to right: the image that goes in, then the two files that come out.
   The three panes share their rows, so file names, sheets and captions line up. */
.sheet { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr) minmax(0, .9fr); grid-template-rows: auto auto auto; gap: 0 32px; padding-bottom: 92px; }
.pane { display: grid; grid-row: span 3; grid-template-rows: subgrid; margin: 0; }
.file { padding-bottom: 8px; font-size: 13px; font-stretch: var(--narrow); font-weight: 500; letter-spacing: .02em; color: var(--muted); }
.pane-paper { align-self: start; background: var(--paper); border: 1px solid var(--rule); box-shadow: var(--shadow); }

/* The plan that goes in, with nothing measured on it. The file names above it switch between
   a PDF page (crisp lines, a frame and a title block), a CAD export (light lines on a dark screen)
   and a photographed print (a little crooked, uneven lines). */
.source-kinds { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: end; }
.source-kinds button { min-height: 28px; padding: 2px 0; border: 0; border-bottom: 2px solid transparent; background: none; color: inherit; font: inherit; letter-spacing: inherit; cursor: pointer; }
.source-kinds button:hover { color: var(--ink); }
.source-kinds button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--brass); }
.source-kinds button:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.scan { --ink-line: var(--scan-ink); align-self: center; margin: 6px 4px 0; background: var(--scan-paper); }
.scan svg { display: block; width: 100%; height: auto; }
.scan .lines { fill: none; stroke: var(--ink-line); stroke-linecap: round; }
.scan text { fill: var(--ink-line); font-size: 14px; font-weight: 500; letter-spacing: .08em; text-anchor: middle; }
.scan:not([data-kind="photo"]) .ink { filter: none; }
.scan:not([data-kind="photo"]) .light { display: none; }
.scan .title-block { display: none; }
.scan[data-kind="photo"] { transform: rotate(-1.3deg); box-shadow: 0 16px 28px -18px rgb(0 0 0 / .55); }
.scan[data-kind="pdf"] { --ink-line: #1f2a33; padding: 8px; background: #fff; border: 1px solid #c9cfd4; box-shadow: var(--shadow); }
.scan[data-kind="pdf"] svg { outline: 1px solid #1f2a33; }
.scan[data-kind="pdf"] .title-block { display: flex; justify-content: space-between; gap: 8px; padding: 4px 6px; border: 1px solid #1f2a33; border-top: 0; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #1f2a33; }
.scan[data-kind="cad"] { --ink-line: #e8eef3; background: #10171d; background-image: linear-gradient(#ffffff0c 1px, transparent 1px), linear-gradient(90deg, #ffffff0c 1px, transparent 1px); background-size: 16px 16px; border: 1px solid #34465a; box-shadow: var(--shadow); }
.scan[data-kind="cad"] text { fill: #e0bf88; letter-spacing: .04em; }

/* The drawing */
.plan { width: 100%; height: auto; padding: 10px 14px; font-stretch: var(--narrow); }
.plan .room { fill: var(--room); fill-opacity: var(--room-off); transition: fill-opacity .15s; }
.plan .walls path { fill: none; stroke: var(--ink); stroke-linejoin: miter; }
.plan .fit { fill: none; stroke: var(--ink); stroke-width: 1; pointer-events: none; }
.plan .fit rect { fill: var(--paper); }
.plan .dims { stroke: var(--brass-text); stroke-width: .9; fill: none; }
.plan .dims .tick { stroke-width: 1.5; }
.plan .dims text, .plan .scale text { fill: var(--brass-text); stroke: none; font-size: 12.5px; font-weight: 500; text-anchor: middle; }
.plan .areas { pointer-events: none; }
.plan .areas text { fill: var(--ink); font-size: 13px; text-anchor: middle; }
.plan .areas .name { font-weight: 650; }
.plan .areas .area { fill: var(--muted); font-variant-numeric: tabular-nums; }
.plan .scale rect { stroke: var(--ink); stroke-width: 1; fill: var(--ink); }
.plan .scale .open { fill: var(--paper); }

/* The takeoff */
.takeoff { width: 100%; border-collapse: collapse; font-stretch: var(--narrow); font-size: 15px; font-variant-numeric: tabular-nums; }
.takeoff th, .takeoff td { padding: 11px 16px; text-align: right; border-bottom: 1px solid var(--row-rule); font-weight: 400; transition: background-color .15s; }
.takeoff th:first-child, .takeoff td:first-child { text-align: left; }
.takeoff thead th { font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--muted); border-bottom-color: var(--rule); }
.takeoff tfoot th, .takeoff tfoot td { font-weight: 700; border-bottom: 0; border-top: 1.5px solid var(--ink); }
.takeoff tbody tr:focus-visible { outline-offset: -2px; }

/* A room and its row are one thing: pointing at either marks both. */
.plan .room { cursor: pointer; }
.plan .room.is-on { fill: var(--room-lit); fill-opacity: var(--room-on); }
.takeoff tbody tr { cursor: default; }
.takeoff tbody tr.is-on td { background: var(--row-on); }

/* What the agent does, as the caption of the pane that shows it. */
.capability { position: relative; align-self: start; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--ink); }
/* The slash that ends a dimension line, as on the drawing. */
.capability::before { content: ""; position: absolute; left: 0; top: -7px; width: 1.5px; height: 13px; background: var(--ink); transform: rotate(45deg); }
.capability p { margin-top: 6px; color: var(--muted); max-width: 30ch; }
.capability .hint { margin-top: 10px; font-size: 14px; color: var(--brass-text); }

/* One sequence when the page opens: walls are drawn, then measured, then counted. */
@media (prefers-reduced-motion: no-preference) {
  .plan .walls path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.3s cubic-bezier(.6, 0, .2, 1) .2s forwards; }
  .plan .fit, .plan .dims, .plan .scale, .plan .room, .plan .areas g, .takeoff tbody tr, .takeoff tfoot tr { opacity: 0; animation: appear .5s ease forwards; }
  .plan .fit { animation-delay: 1.1s; }
  .plan .dims, .plan .scale { animation-delay: 1.45s; }
  .plan .room, .plan .areas g, .takeoff tbody tr { animation-delay: calc(1.9s + var(--i) * .13s); }
  .takeoff tfoot tr { animation-delay: 2.75s; }
  .scan { transition: transform .3s ease, background-color .3s ease; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .plan .room, .takeoff th, .takeoff td { transition: none; } }

/* An empty drawing frame until the demo is published. */
.placeholder { position: absolute; inset: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; border: 1px dashed var(--band-rule); color: var(--band-muted); font-size: 14.5px; }
.play-symbol { width: 0; height: 0; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent var(--brass); }
@media (max-width: 1020px) {
  .signup { max-width: 520px; }
  /* The image and the drawing side by side; the takeoff below them, full width. */
  .sheet { grid-template-columns: minmax(0, .62fr) minmax(0, 1fr); gap: 0 28px; padding-bottom: 72px; }
  .pane-takeoff { grid-column: 1 / -1; margin-top: 44px; max-width: 620px; }
}
@media (max-width: 680px) {
  .input-row { flex-direction: column; }
  .sheet { display: block; padding-bottom: 60px; }
  .pane { display: block; }
  .pane + .pane { margin-top: 44px; }
  .pane-source { max-width: 300px; }
  .capability { margin-top: 26px; }
  .demos { padding: 60px 0 68px; }
  .section-top { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 28px; }
  .demo-grid { grid-template-columns: 1fr; gap: 20px; }
  .takeoff th, .takeoff td { padding: 8px 14px; }
  /* The drawing is scaled down here, so its lettering is set larger to stay legible. */
  .plan .areas text { font-size: 14.5px; }
  .plan .dims text, .plan .scale text { font-size: 14px; }
}


/* The Architect's Cartouche: architecture frames the work; evidence stays on paper. */
.hero { overflow: clip; background: #071b2e; color: #e8eef3; padding: 0; }
.hero-layout { display: grid; grid-template-columns: 1.08fr 1fr; gap: 24px; align-items: center; }
.hero-copy { position: relative; z-index: 2; padding: 64px 0 54px; }
.hero .eyebrow { color: #e0bf88; margin-bottom: 24px; }
.hero h1 { font: 400 clamp(2.9rem, 4.65vw, 4.6rem)/1.13 "KhaMetric Monument", Archivo, sans-serif; letter-spacing: -.035em; }
.hero .intro { max-width: 29em; font-size: 18px; line-height: 1.65; color: #a3b7c7; margin-top: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 30px; }
.hero .button { background: #d2aa69; color: #071b2e; gap: 20px; border-radius: 2px; }
.hero .button:hover { background: #e0bf88; }
.text-link { display: inline-flex; align-items: center; gap: 12px; padding-block: 10px; font-size: 15px; font-weight: 550; }
.hero-status { margin-top: 26px; color: #a3b7c7; font-size: 13px; }
.hero-status span { display: inline-block; width: 6px; height: 6px; margin-right: 5px; background: #d2aa69; border-radius: 50%; }
.hero :focus-visible { outline-color: #e0bf88; }
.hero-art { position: relative; isolation: isolate; height: 540px; margin: 0; }
.survey-ring { position: absolute; width: 86%; aspect-ratio: 1; top: 6%; left: 8%; border: 1px solid #c69d5d80; border-radius: 50%; box-shadow: 0 0 0 20px #c69d5d08, 0 0 0 21px #c69d5d30; }
.survey-ring::before { content: ""; position: absolute; inset: 36px; border: 1px dashed #c69d5d50; border-radius: 50%; }
.survey-ring::after { content: ""; position: absolute; inset: -30px; background: linear-gradient(transparent calc(50% - .5px), #c69d5d50 50%, transparent calc(50% + .5px)), linear-gradient(90deg, transparent calc(50% - .5px), #c69d5d50 50%, transparent calc(50% + .5px)); }
.art-plinth { position: absolute; left: 0; right: -18%; bottom: 50px; height: 125px; transform: skewY(-7deg); background: linear-gradient(170deg, #40505a, #102e44 70%); box-shadow: 0 16px 0 #0c2437, 0 17px 0 #9c845355, 0 40px 40px #0005; }
.hero-columns { height: auto; position: absolute; width: 90%; max-width: none; right: -10%; bottom: 65px; filter: drop-shadow(-15px 18px 20px #0007); }
.hero-pyramid { height: auto; position: absolute; width: 58%; left: -13%; bottom: 62px; filter: drop-shadow(0 16px 12px #0006); }
.hero-art figcaption { position: absolute; bottom: 0; right: 0; text-align: right; font-size: 12px; line-height: 1.6; color: #a3b7c7; }
.hero-register { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #34516c; padding-block: 22px; color: #a3b7c7; font-size: 13px; }
.hero-register span + span { border-left: 1px solid #34516c; padding-left: 28px; }
.hero-register b { color: #e0bf88; font-size: 11px; font-weight: 500; margin-right: 16px; }
.demos { background: var(--ground); color: var(--ink); padding: 80px 0; }
.demos :focus-visible { outline-color: var(--ink); }
.section-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-top h2, .workflow-heading h2, .invitation h2 { font: 400 clamp(2rem, 3.1vw, 2.875rem)/1.2 "KhaMetric Monument", Archivo, sans-serif; letter-spacing: -.025em; color: var(--ink); }
.section-top .eyebrow { margin: 0 0 16px; color: var(--brass-text); }
.section-top p { margin-top: 12px; color: var(--muted); }
.small-tag { color: var(--brass-text); border: 1px solid var(--rule); padding: 8px 12px; font-size: 12px; }
.demo-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.demo-gallery { display: grid; grid-template-columns: minmax(0, 1fr) 290px; grid-template-rows: auto 1fr auto; column-gap: 32px; align-items: start; }
.has-gallery .section-top { align-items: center; }
.has-gallery .small-tag { border-radius: 100px; padding: 10px 16px; white-space: nowrap; }
.demo-chooser { grid-column: 2; grid-row: 1 / 4; position: sticky; top: 24px; min-width: 0; padding-top: 4px; }
.demo-chooser[hidden], .demo-controls[hidden] { display: none; }
.demo-chooser-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.demo-total { display: grid; place-items: center; min-width: 30px; height: 30px; border: 1px solid var(--rule); border-radius: 50%; font-size: 12px; font-variant-numeric: tabular-nums; }
.demo-chooser-hint { margin: 8px 0 20px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.demo-choices { position: relative; display: flex; flex-direction: column; gap: 8px; max-height: calc(100svh - 160px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--rule) transparent; padding: 4px; margin: -4px; }
.demo-choice { position: relative; display: grid; grid-template-columns: 84px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 14px; row-gap: 6px; align-items: start; min-width: 0; min-height: 100px; flex-shrink: 0; padding: 12px; border: 1px solid transparent; border-radius: 14px; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.demo-choice:hover { background: var(--paper); transform: translateY(-2px); }
.demo-choice[aria-pressed="true"] { border-color: var(--brass-text); background: var(--paper); box-shadow: 0 4px 16px #00000008; }
.demo-choice-preview { grid-column: 1; grid-row: 1 / 4; display: flex; align-items: center; justify-content: center; align-self: center; aspect-ratio: 1; width: 100%; padding: 5px; box-sizing: border-box; border-radius: 8px; background: #fff; color: #0a2c4b; font-size: 24px; overflow: hidden; }
.demo-choice-preview img { width: 100%; height: 100%; object-fit: contain; }
.demo-choice-number { grid-column: 2; font-size: 9px; font-weight: 600; letter-spacing: .12em; color: var(--muted); }
.demo-choice-title { grid-column: 2; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.demo-choice-selected { grid-column: 2; font-size: 10px; font-weight: 600; color: var(--brass-text); display: none; }
.demo-choice-selected::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: currentColor; vertical-align: middle; }
.demo-choice[aria-pressed="true"] .demo-choice-selected { display: block; }
.demo-controls { grid-column: 1; display: flex; align-items: center; gap: 8px; padding: 0 0 16px; scroll-margin-top: 20px; }
.demo-controls .demo-position { order: -1; margin-right: auto; }
.demo-controls-bottom { padding: 16px 0 0; justify-content: space-between; }
.demo-controls-bottom .demo-position { display: none; }
.demo-controls button { min-height: 44px; padding: 10px 16px; border: 1px solid var(--rule); border-radius: 100px; background: var(--paper); color: var(--ink); font: inherit; font-size: 12px; cursor: pointer; transition: border-color .2s, background .2s; }
.demo-controls button:hover:not(:disabled) { border-color: var(--brass-text); background: var(--ground); }
.demo-controls button:disabled { opacity: .35; cursor: default; }
.demo-controls-bottom button { border-color: transparent; background: transparent; padding-inline: 0; }
.demo-position { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted); }
.demo-grid.is-carousel { grid-column: 1; --card-gap: 20px; position: relative; display: flex; gap: var(--card-gap); overflow-x: auto; padding: 0; border: 1px solid var(--rule); border-radius: 20px; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; box-shadow: 0 16px 48px #00000006; }
.demo-grid.is-carousel::-webkit-scrollbar { display: none; }
.demo-grid.is-carousel .demo-card { flex: 0 0 100%; min-width: 0; box-sizing: border-box; scroll-snap-align: start; scroll-snap-stop: always; }
.demo-gallery.is-single { grid-template-columns: minmax(0, 1fr); }
.demo-grid.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
@media (pointer: fine) { .demo-grid.is-carousel { cursor: grab; } }
@media (max-width: 1000px) {
  .demo-gallery { display: flex; flex-direction: column; gap: 0; }
  .demo-gallery > * { width: 100%; box-sizing: border-box; }
  .demo-chooser { position: static; padding-top: 0; margin-bottom: 24px; }
  .demo-chooser-heading { justify-content: flex-start; }
  .demo-chooser-hint { margin-bottom: 12px; }
  .demo-choices { flex-direction: row; gap: 10px; max-height: none; padding: 4px 4px 10px; scroll-snap-type: x proximity; overscroll-behavior-y: auto; }
  .demo-choice { flex: 0 0 clamp(132px, 38vw, 180px); display: flex; flex-direction: column; gap: 7px; padding: 10px; min-height: 0; border-color: var(--rule); background: var(--paper); scroll-snap-align: center; }
  .demo-choice-preview { aspect-ratio: 16 / 10; border-radius: 6px; }
  .demo-choice-number { font-size: 9px; }
  .demo-choice-title { font-size: 12px; }
  .demo-choice-selected { position: absolute; top: 16px; right: 15px; background: #0a2c4b; color: #fff; padding: 4px 6px; border-radius: 100px; font-size: 9px; }
  .demo-choice-selected::before { display: none; }
}
@media (max-width: 680px) {
  .has-gallery .section-top { display: block; }
  .has-gallery .small-tag { display: inline-block; margin-top: 18px; }
  .demo-controls { flex-wrap: wrap; }
  .demo-controls .demo-position { flex-basis: 100%; margin-bottom: 4px; }
  .demo-controls button { flex: 1; }
  .demo-controls-bottom button { flex: none; }
  .demo-grid.is-carousel { border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) { .demo-choice, .demo-controls button { transition: none; } }
.demo-card { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px; padding: 32px; overflow: visible; background: var(--paper); border: 1px solid var(--rule); box-shadow: 8px 8px 0 #c69d5d20; }
.video-surface { position: relative; aspect-ratio: auto; display: flex; flex-direction: column; align-self: center; background: #fff; border: 0; padding: 0; }
.video-surface img, .video-surface img.poster { position: static; height: auto; width: 100%; object-fit: contain; background: #fff; }
.video-surface .button { background: #c69d5d; color: #0a2c4b; align-self: stretch; margin-top: 12px; border-radius: 2px; min-height: 48px; }
.video-surface.has-video { aspect-ratio: 16 / 9; padding: 0; background: var(--band-well); align-items: center; justify-content: center; }
.video-surface.has-video img.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-surface.has-video .button { position: relative; align-self: center; margin: 0; padding: 12px 24px; border-radius: 4px; }
.video-surface.has-video .button:hover { background: #d6b176; }
.video-surface.has-video :focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.video-surface.is-playing { padding: 0; }
.video-surface.has-gif { aspect-ratio: 16 / 9; background: #101114; align-items: center; justify-content: center; }
.video-surface.has-gif.is-still { background: #fff; }
.video-surface.has-gif img.run-gif { height: 100%; object-fit: contain; background: transparent; }
.video-surface iframe { display: block; width: 100%; height: 100%; border: 0; flex: 1; min-height: 0; }
.video-surface:has(.placeholder) { aspect-ratio: 16 / 9; background: var(--band-well); }
.demo-copy { align-self: center; min-width: 0; }
.demo-copy h3 { font-size: 24px; font-weight: 600; color: var(--ink); }
.demo-copy p { margin-top: 14px; font-size: 16px; line-height: 1.65; color: var(--muted); }
.demo-copy .review-note { font-size: 13px; padding: 12px 0; border-block: 1px solid var(--rule); color: var(--brass-text); }
.demo-copy .sample-links { display: grid; grid-template-columns: 1fr; gap: 4px; margin-top: 12px; font-size: 14px; }
.sample-links a { color: var(--ink); width: fit-content; padding-block: 7px; }
.workflow-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-top: 30px; margin-bottom: 36px; border-top: 1px solid var(--brass); }
.workflow-heading .eyebrow { margin-bottom: 16px; }
.workflow-heading > p { max-width: 26em; font-size: 14px; color: var(--muted); }
.sheet { padding-bottom: 80px; }
.capability h3 { font-size: 21px; font-weight: 600; line-height: 1.3; }
.pane-paper { background: #fff; --paper: #fff; --ink: #0a2c4b; --muted: #55636f; --brass-text: #8a6420; --rule: #d3dae0; --row-rule: #e8ecef; --room: #c69d5d; --room-off: .15; --room-lit: #c69d5d; --room-on: .42; --row-on: #f5ecdc; color: #0a2c4b; color-scheme: light; box-shadow: 5px 6px 0 #c69d5d20; }
.invitation { padding: 64px 0; border-block: 1px solid var(--rule); background: var(--paper); scroll-margin-top: 24px; }
.invitation-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.invitation-story .eyebrow { margin-bottom: 18px; }
.invitation-story > p:not(.eyebrow) { max-width: 30em; margin-top: 20px; color: var(--muted); }
.invitation-story .text-link { margin-top: 12px; }
.temple-study { margin: 12px 0 0; position: relative; }
.temple-study::before { content: ""; position: absolute; inset: 20% 8% 16%; border: 1px solid var(--brass); transform: skewY(-5deg); }
.temple-study img { position: relative; width: 85%; height: auto; margin-inline: auto; filter: drop-shadow(0 16px 12px #071b2e25); }
.temple-study figcaption { position: relative; text-align: center; color: var(--muted); font-size: 12px; }
.signup.limestone { padding: 36px; max-width: none; background: #f3f0e9; border: 1px solid #c3b9a6; border-top: 4px solid #c69d5d; box-shadow: 10px 12px 0 #c69d5d26, 0 25px 40px -30px #071b2e60; --ink: #0a2c4b; --muted: #55636f; --paper: #fff; --field-border: #8996a0; --placeholder: #55636f; --button: #0a2c4b; --button-text: #fff; --button-hover: #134066; color: #0a2c4b; color-scheme: light; }
.signup-lead { scroll-margin-top: 40px; font-size: 24px; font-weight: 600; line-height: 1.35; margin-bottom: 26px; }
.signup .input-row { flex-direction: column; gap: 12px; }
.signup .button { border-radius: 2px; }
.signup .privacy { margin-top: 22px; padding-top: 14px; border-top: 1px solid #c3b9a6; }
.signup .privacy summary { padding-block: 6px; }
@media (max-width: 1020px) {
  .hero h1 { font-size: clamp(2.5rem, 5vw, 3.4rem); }
  .hero-art { height: 470px; }
  .hero-columns { width: 112%; right: -16%; }
  .hero-pyramid { left: -10%; }
  .hero-copy { padding: 48px 0; }
  .hero-actions { gap: 12px; }
  .hero .intro { font-size: 17px; }
  .hero-register span + span { padding-left: 16px; }
  .hero-register b { margin-right: 8px; }
  .demo-card { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; padding: 24px; }
  .invitation-layout { gap: 32px; }
  .signup.limestone { padding: 26px; }
}
@media (max-width: 680px) {
  .hero-layout { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding: 40px 0 12px; }
  .hero .eyebrow { font-size: 10px; margin-bottom: 20px; }
  .hero h1 { font-size: clamp(2.5rem, 9.8vw, 3.8rem); }
  .hero .intro { font-size: 17px; margin-top: 22px; }
  .hero-status { font-size: 12px; margin-top: 18px; }
  .hero-art { height: 390px; width: min(100%, 450px); justify-self: center; }
  .hero-columns { width: 87%; right: -2%; bottom: 46px; }
  .hero-pyramid { width: 53%; left: -3%; bottom: 42px; }
  .survey-ring { width: 72%; left: 20%; top: 7%; }
  .art-plinth { bottom: 35px; left: 2%; right: 0; height: 72px; }
  .hero-art figcaption { bottom: 4px; font-size: 10px; }
  .hero-register { grid-template-columns: 1fr; gap: 12px; margin-top: 14px; padding-block: 20px; }
  .hero-register span + span { padding-left: 0; border-left: 0; }
  .hero-register b { margin-right: 16px; }
  .demos { padding: 48px 0; }
  .demo-card { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .section-top { align-items: flex-start; gap: 12px; }
  .section-top h2, .workflow-heading h2, .invitation h2 { font-size: 2rem; }
  .workflow-heading { flex-direction: column; align-items: flex-start; gap: 18px; padding-top: 24px; }
  .sheet { padding-bottom: 48px; }
  .pane-source { max-width: 100%; }
  .invitation { padding: 44px 0; }
  .invitation-layout { grid-template-columns: 1fr; gap: 36px; }
  .temple-study img { max-width: 350px; }
  .signup.limestone { padding: 24px 20px; box-shadow: 5px 6px 0 #c69d5d26; }
  .temple-study figcaption { font-size: 11px; }
}
@media (max-width: 360px) { .hero-art { height: 320px; } .hero-actions { align-items: flex-start; flex-direction: column; } }

/* The featured project is a media-first gallery; the unenhanced card grid stays usable. */
.demo-gallery .demo-card { display: flex; flex-direction: column; gap: 28px; padding: 24px; border: 0; box-shadow: none; }
.demo-gallery .video-surface { width: 100%; flex: none; border-radius: 10px; overflow: hidden; }
.demo-gallery .demo-copy { display: grid; grid-template-columns: minmax(0, 1fr) 190px; column-gap: 28px; width: 100%; align-self: stretch; }
.demo-gallery .demo-copy h3 { grid-column: 1; margin: 0; font-size: clamp(20px, 2vw, 27px); line-height: 1.3; letter-spacing: -.025em; }
.demo-gallery .demo-copy > p { grid-column: 1; font-size: 14px; line-height: 1.7; }
.demo-gallery .demo-copy .sample-links { grid-column: 2; grid-row: 1 / span 4; display: flex; flex-direction: column; gap: 8px; margin: 0; padding-left: 24px; border-left: 1px solid var(--rule); }
.demo-gallery .sample-links a { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: auto; min-height: 44px; box-sizing: border-box; padding: 9px 12px; border: 1px solid var(--rule); border-radius: 8px; font-size: 12px; line-height: 1.5; text-decoration: none; }
.demo-gallery .sample-links a::after { content: '↗'; flex-shrink: 0; font-size: 16px; color: var(--brass-text); }
.demo-gallery .sample-links a:is(.is-download, .is-image) { flex-wrap: wrap; row-gap: 6px; }
.demo-gallery .sample-links .file-name { flex: 1 1 100%; min-width: 0; }
.demo-gallery .sample-links .file-tag { margin-right: auto; }
.demo-gallery .sample-links .file-tag { flex-shrink: 0; padding: 1px 6px; border: 1px solid var(--rule); border-radius: 4px; font-size: 10px; font-weight: 600; letter-spacing: .08em; color: var(--brass-text); }
/* A tray with a down arrow: the file downloads. A picture frame: the image opens, to view and save. */
.demo-gallery .sample-links a.is-download::after, .demo-gallery .sample-links a.is-image::after { content: ''; width: 18px; height: 18px; background-color: var(--brass-text); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.demo-gallery .sample-links a.is-download { --icon: var(--icon-download); }
.demo-gallery .sample-links a.is-image { --icon: var(--icon-image); }
.demo-gallery .sample-links a:hover .file-tag { border-color: var(--brass-text); }
.demo-gallery { --icon-download: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 10.5l5 5 5-5M4 17v3h16v-3'/%3E%3C/svg%3E"); --icon-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='9' cy='9.5' r='1.5'/%3E%3Cpath d='M3 17l5-4.5 4 3.5 3-2.5 6 4.5'/%3E%3C/svg%3E"); }
.demo-gallery .sample-links a:hover { border-color: var(--brass-text); background: var(--ground); }
.demo-gallery .demo-copy .review-note { border: 0; padding: 0; font-size: 11px; }
@media (max-width: 680px) {
  .demo-gallery .demo-card { padding: 20px; gap: 24px; }
  .demo-gallery .demo-copy { display: flex; flex-direction: column; }
  .demo-gallery .demo-copy .sample-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--rule); }
  .demo-gallery .sample-links a:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* LP-038: measurement objects share the architecture's exact image coordinates. */
.monument-object { filter: none; }
.monument-object img { display: block; width: 100%; height: auto; filter: drop-shadow(0 16px 12px #0006); }
.measurement-overlay { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke: #f0cd8e; stroke-width: 1.5; pointer-events: none; }
.measurement-overlay path, .measurement-overlay circle { vector-effect: non-scaling-stroke; }
.measurement-overlay .surface { fill: #e0bf8820; stroke: none; }
.measurement-overlay .trace { stroke: #ffe4ac; }
.measurement-overlay text { fill: #ffe4ac; stroke: #071b2e; stroke-width: 5px; paint-order: stroke; font: 18px Archivo,sans-serif; letter-spacing: 1.4px; }
.measurement-overlay .column-tags circle { fill: #071b2ee8; stroke: #e0bf88; }
.measurement-overlay .column-tags text { text-anchor: middle; dominant-baseline: central; stroke: none; font-size: 20px; }
.hero-measure-caption { position: absolute; bottom: 25px; left: 0; right: 0; display: flex; justify-content: space-between; gap: 10px; align-items: center; color: #e0bf88; font-size: 11px; }
.hero-replay { color: #e0bf88; background: #071b2e; border: 1px solid #34516c; padding: 5px 8px; font: inherit; cursor: pointer; }
.hero-art figcaption { font-size: 10px; }
@media (prefers-reduced-motion: no-preference) {
 .hero-playing .trace { stroke-dasharray: 1; animation: monument-trace 1.7s both; }
 .hero-playing .dimension { animation: monument-reveal .8s 1.4s both; }
 .hero-playing .surface { animation: monument-reveal 1s 1.8s both; }
 .hero-playing .column-tags { animation: monument-reveal .8s 2.5s both; }
 .hero-playing .measure-label { animation: monument-reveal .8s 3.1s both; }
}
@keyframes monument-trace { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes monument-reveal { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 680px) {
 .hero-measure-caption { font-size: 9px; bottom: 25px; }
 .hero-art figcaption { font-size: 8px; }
 .measurement-overlay text { font-size: 23px; }
}
