:root {
  color-scheme: light;
  --paper: #f6f2e9;
  --paper-deep: #eee7d8;
  --surface: #fffdf8;
  --surface-soft: #f9f6ef;
  --ink: #171916;
  --muted: #6d7068;
  --line: #dcd4c5;
  --line-strong: #c8bdab;
  --moss: #294f3b;
  --moss-soft: #e6eee8;
  --amber: #aa771c;
  --amber-soft: #f4e7c9;
  --red: #9b3f36;
  --red-soft: #f5e4df;
  --shadow: 0 24px 60px rgba(44, 39, 28, .10);
  --focus: #1769d2;
  --content: min(1480px, calc(100vw - clamp(28px, 5vw, 96px)));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; min-width: 280px; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .32;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
  z-index: 20;
}
a { color: inherit; }
button, input, textarea { font: inherit; }
button, label, a { -webkit-tap-highlight-color: transparent; }
::selection { color: #fff; background: var(--moss); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.skip-link { position: fixed; left: 18px; top: -80px; z-index: 100; padding: 12px 16px; background: var(--ink); color: #fff; border-radius: 10px; }
.skip-link:focus { top: 18px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 15;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  min-height: 74px;
  padding: 12px max(20px, calc((100vw - 1640px) / 2));
  border-bottom: 1px solid rgba(200, 189, 171, .72);
  background: rgba(255, 253, 248, .90);
  backdrop-filter: blur(18px) saturate(130%);
}
.brand { display: inline-flex; align-items: baseline; width: fit-content; text-decoration: none; letter-spacing: -.05em; font-size: 22px; line-height: 1; }
.brand span { font-weight: 790; }
.brand b { color: var(--amber); font-weight: 790; }
.site-header nav { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-soft); }
.site-header nav a { padding: 9px 15px; color: var(--muted); font-size: 13px; font-weight: 720; text-decoration: none; border-radius: 999px; }
.site-header nav a:first-child { color: var(--ink); background: var(--surface); box-shadow: 0 1px 4px rgba(38, 34, 24, .08); }
.site-header nav a:hover { color: var(--ink); }
.privacy-chip { justify-self: end; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 650; }
.privacy-chip > span { width: 8px; height: 8px; border-radius: 50%; background: #238254; box-shadow: 0 0 0 5px #e4f1e8; }

main { width: var(--content); margin: 0 auto; padding: clamp(24px, 4vw, 64px) 0 100px; }
#capture, #how-it-works, #record { scroll-margin-top: 120px; }
.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(560px, 70vh, 760px);
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: clamp(28px, 5vw, 92px);
  overflow: hidden;
  padding: clamp(44px, 7vw, 112px) clamp(28px, 5vw, 84px);
  border: 1px solid var(--line);
  border-radius: clamp(26px, 3vw, 46px);
  background:
    radial-gradient(circle at 80% 50%, rgba(226, 209, 167, .48), transparent 37%),
    linear-gradient(135deg, #fffdfa 0%, #f8f4eb 54%, #eee8da 100%);
  box-shadow: var(--shadow);
}
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .28; background-image: linear-gradient(rgba(90, 84, 69, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(90, 84, 69, .09) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(90deg, transparent, #000); }
.hero-copy { position: relative; z-index: 2; max-width: 720px; }
.kicker { margin: 0 0 14px; color: #76551b; font-size: 11px; font-weight: 800; letter-spacing: .19em; text-transform: uppercase; }
.hero h1, h2, h3 { letter-spacing: -.055em; }
.hero h1 { max-width: 9.5ch; margin: 0; font-size: clamp(3.25rem, 6.2vw, 6.35rem); line-height: .91; font-weight: 820; }
.hero h1 em { color: var(--amber); font-style: normal; }
.hero-intro { max-width: 630px; margin: 28px 0 0; color: var(--muted); font-size: clamp(17px, 1.45vw, 22px); line-height: 1.52; letter-spacing: -.02em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff; font-weight: 760; font-size: 14px; line-height: 1; text-decoration: none; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(25, 26, 22, .13); }
.button:active { transform: translateY(0); }
.button.primary { background: var(--ink); color: #fff; }
.button.quiet { border-color: var(--line-strong); background: rgba(255,255,255,.64); color: var(--ink); }
.button.compact { min-height: 41px; padding: 0 15px; font-size: 12px; }
.button[disabled] { cursor: not-allowed; opacity: .48; transform: none; box-shadow: none; }
.local-promise { display: flex; align-items: flex-start; gap: 12px; max-width: 580px; margin-top: 30px; padding: 15px 17px; border: 1px solid #b8cdbd; border-radius: 16px; background: rgba(230, 238, 232, .84); color: #375241; font-size: 12px; line-height: 1.5; }
.local-promise svg { flex: 0 0 20px; width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.local-promise strong { display: block; color: var(--moss); }

.hero-object { position: relative; width: min(100%, 620px); aspect-ratio: 1; justify-self: center; }
.specimen-shadow { position: absolute; inset: 18% 10% 7%; border-radius: 50%; filter: blur(28px); transform: translateY(12%); background: rgba(51, 45, 34, .24); }
.specimen-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(113, 91, 53, .33); box-shadow: inset 0 0 40px rgba(255,255,255,.8), 0 20px 60px rgba(54, 48, 35, .12); }
.ring-three { inset: 4%; background: linear-gradient(145deg, rgba(255,255,255,.78), rgba(207,193,163,.56)); }
.ring-two { inset: 11%; border: 2px solid rgba(255,255,255,.7); background: linear-gradient(145deg, #e2d6ba, #fffaf0 58%, #bdab84); }
.ring-one { inset: 19%; border-style: dashed; border-color: rgba(101,76,32,.40); box-shadow: inset 0 0 0 10px rgba(255,255,255,.18); }
.specimen-core { position: absolute; inset: 27%; display: grid; place-items: center; align-content: center; gap: 10px; border-radius: 50%; color: #745419; background: radial-gradient(circle at 40% 30%, #fff9ea, #d7c391 64%, #ad8a43); box-shadow: inset 0 0 0 2px rgba(255,255,255,.35), inset 0 0 36px rgba(111,78,22,.20); }
.specimen-core span { font-family: Georgia, serif; font-size: clamp(82px, 10vw, 150px); line-height: .7; }
.specimen-core small { font-weight: 800; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.scan-line { position: absolute; left: 17%; right: 17%; top: 51%; height: 1px; background: linear-gradient(90deg, transparent, var(--amber), transparent); box-shadow: 0 0 14px rgba(170,119,28,.62); animation: scan 4.6s ease-in-out infinite; }
.object-note { position: absolute; display: grid; gap: 3px; min-width: 150px; padding: 11px 14px; border: 1px solid rgba(200,189,171,.86); border-radius: 13px; background: rgba(255,253,248,.87); box-shadow: 0 12px 30px rgba(45,40,29,.10); backdrop-filter: blur(12px); }
.object-note span { color: var(--muted); font-size: 9px; font-weight: 780; letter-spacing: .13em; text-transform: uppercase; }
.object-note strong { font-size: 12px; }
.note-one { top: 14%; right: 0; }
.note-two { left: 1%; bottom: 16%; }
@keyframes scan { 0%,100% { transform: translateY(-120px); opacity: .12; } 50% { transform: translateY(120px); opacity: .78; } }

.journey { display: grid; grid-template-columns: repeat(3, 1fr); margin: clamp(30px, 4vw, 56px) 0; border-block: 1px solid var(--line); }
.journey > div { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; padding: 24px clamp(18px, 3vw, 42px); }
.journey > div + div { border-left: 1px solid var(--line); }
.journey span { grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #7b591d; background: var(--amber-soft); font-size: 10px; font-weight: 800; }
.journey strong { font-size: 15px; }
.journey p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }

/* Homepage action surface: the first screen starts the real workflow. */
#capture, #how-it-works, #record, #match-results, .clue-workspace { scroll-margin-top: 120px; }
.hero {
  min-height: clamp(600px, 76vh, 820px);
  grid-template-columns: minmax(0, .86fr) minmax(500px, 1.14fr);
  gap: clamp(34px, 5vw, 88px);
  padding: clamp(42px, 5.5vw, 84px);
  border-radius: clamp(26px, 3vw, 42px);
  background: var(--surface);
}
.hero::before { content: ""; position: absolute; inset: 0 50% 0 auto; width: 1px; background: var(--line); opacity: .6; }
.hero::after { inset: 0 0 0 50%; opacity: .25; background-size: 44px 44px; mask-image: linear-gradient(90deg, transparent 2%, #000 42%); }
.hero-copy { max-width: 650px; }
.hero h1 { max-width: 14ch; font-size: clamp(3.35rem, 5.45vw, 5.85rem); text-wrap: balance; }
.hero-intro { max-width: 620px; margin-top: 25px; font-size: clamp(16px, 1.3vw, 20px); }
.hero-evidence { display: grid; gap: 0; margin: 34px 0 0; border-top: 1px solid var(--line); }
.hero-evidence > div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.hero-evidence dt { color: #76551b; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero-evidence dd { margin: 0; color: #4e514b; font-size: 12px; font-weight: 650; }

.start-panel { position: relative; z-index: 2; min-width: 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 30px; background: rgba(249,246,239,.96); box-shadow: 0 20px 55px rgba(50,44,31,.12); }
.start-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 19px 22px 16px; }
.start-header > div { display: flex; align-items: center; gap: 12px; min-width: 0; }
.start-header .kicker { margin: 0 0 3px; font-size: 8px; }
.start-header h2 { margin: 0; font-size: 21px; line-height: 1; }
.start-index { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; color: #fff; background: var(--ink); font-size: 9px; font-weight: 800; }
.no-account { color: var(--muted); font-size: 9px; font-weight: 720; white-space: nowrap; }
.start-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin: 0 22px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper-deep); }
.start-tabs button { min-height: 39px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 760; transition: color .18s ease, background .18s ease, box-shadow .18s ease; }
.start-tabs button[aria-selected="true"] { color: var(--ink); background: var(--surface); box-shadow: 0 2px 8px rgba(50,44,31,.11); }
.start-pane { min-height: 350px; padding: 24px 26px 20px; }
.start-coins { display: grid; grid-template-columns: minmax(110px, 1fr) auto minmax(110px, 1fr); align-items: center; justify-items: center; gap: 14px; max-width: 490px; margin: 0 auto; }
.start-coin { position: relative; display: grid; place-items: center; width: min(100%, 190px); aspect-ratio: 1; overflow: hidden; padding: 0; border: 1px dashed #9f947f; border-radius: 50%; color: var(--ink); background: radial-gradient(circle, #fffdfa 0 34%, #eee9de 35% 61%, #e3dccf 62%); cursor: pointer; box-shadow: inset 0 0 0 10px rgba(255,253,248,.45), 0 16px 28px rgba(50,44,31,.08); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.start-coin:hover { transform: translateY(-2px); border-color: var(--amber); box-shadow: inset 0 0 0 10px rgba(255,253,248,.45), 0 20px 34px rgba(50,44,31,.12); }
.start-coin::before { content: ""; position: absolute; inset: 12%; border: 1px solid rgba(118,85,27,.2); border-radius: 50%; }
.start-coin:first-child::after { content: ""; position: absolute; inset: -2px; border: 2px solid transparent; border-top-color: var(--amber); border-radius: 50%; animation: orbit 4.5s linear infinite; }
.start-coin img { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; }
.start-coin.is-filled { border-style: solid; border-color: var(--moss); }
.coin-action { position: relative; z-index: 1; display: grid; place-items: center; gap: 2px; text-align: center; pointer-events: none; }
.coin-action b { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 4px; border-radius: 50%; color: #fff; background: var(--ink); font-size: 21px; font-weight: 420; }
.coin-action strong { font-size: 12px; }
.coin-action small { color: var(--muted); font-size: 9px; }
.start-coin.is-filled .coin-action { display: none; }
.side-connector { display: flex; align-items: center; gap: 5px; color: var(--muted); }
.side-connector i { display: block; width: 12px; height: 1px; background: var(--line-strong); }
.side-connector b { font-size: 8px; font-weight: 770; letter-spacing: .08em; text-transform: uppercase; }
.start-help { max-width: 480px; margin: 17px auto 0; color: var(--muted); font-size: 10px; line-height: 1.5; text-align: center; }
.start-actions { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.start-actions .button { min-height: 43px; padding-inline: 17px; font-size: 12px; }
.start-privacy { display: flex; align-items: flex-start; gap: 9px; margin: 17px auto 0; padding-top: 14px; border-top: 1px solid var(--line); color: #42584a; font-size: 9px; line-height: 1.45; }
.start-privacy svg { flex: 0 0 16px; width: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.start-privacy strong { color: var(--moss); }
.hero-search { display: grid; align-content: start; }
.hero-search > label { margin: 2px 0 8px; color: var(--muted); font-size: 9px; font-weight: 790; letter-spacing: .1em; text-transform: uppercase; }
.hero-search-control { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; height: 56px; padding: 5px 5px 5px 15px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); box-shadow: 0 9px 25px rgba(50,44,31,.08); }
.hero-search-control:focus-within { border-color: var(--moss); box-shadow: 0 0 0 4px rgba(41,79,59,.12), 0 9px 25px rgba(50,44,31,.08); }
.hero-search-control svg { width: 19px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.hero-search-control input { min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
.hero-search-control button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; cursor: pointer; font-size: 20px; }
.hero-examples { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.hero-examples span { color: var(--muted); font-size: 9px; }
.hero-examples button { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: #5b5549; cursor: pointer; font-size: 9px; }
.hero-examples button:hover { border-color: var(--amber); color: #745419; background: var(--amber-soft); }
.search-return { display: grid; margin-top: 24px; border-block: 1px solid var(--line); }
.search-return > div { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.search-return > div:last-child { border-bottom: 0; }
.search-return span { color: #76551b; font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.search-return strong { font-size: 11px; }
.search-boundary { margin: 15px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.start-route { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.start-route li { display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; padding: 13px 8px; color: var(--muted); font-size: 8px; font-weight: 730; }
.start-route li + li { border-left: 1px solid var(--line); }
.start-route li span { display: grid; place-items: center; width: 19px; height: 19px; border: 1px solid var(--line-strong); border-radius: 50%; font-size: 7px; }
.start-route li.is-current { color: var(--ink); }
.start-route li.is-current span { border-color: var(--amber); color: #fff; background: var(--amber); }
@keyframes orbit { to { transform: rotate(360deg); } }

.journey { grid-template-columns: 1.15fr repeat(3, 1fr); margin: clamp(26px, 3vw, 44px) 0; }
.journey > p, .journey > div { display: block; margin: 0; padding: 22px clamp(16px, 2.4vw, 34px); }
.journey > * + * { border-left: 1px solid var(--line); }
.journey span { display: block; width: auto; height: auto; margin-bottom: 5px; border-radius: 0; color: #76551b; background: none; font-size: 8px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.journey strong { display: block; font-size: 11px; line-height: 1.35; }
.journey > p strong { font-size: 16px; letter-spacing: -.02em; }

.workspace { margin-top: clamp(28px, 4vw, 56px); padding: clamp(24px, 4vw, 62px); border: 1px solid var(--line); border-radius: clamp(22px, 2.5vw, 34px); background: rgba(255,253,248,.82); box-shadow: 0 16px 50px rgba(53,47,35,.055); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 3vw, 42px); }
.section-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 4.25rem); line-height: .98; }
.section-heading > p { max-width: 520px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.capture-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 34px); }
.capture-card { min-width: 0; padding: clamp(16px, 2vw, 26px); border: 1px solid var(--line); border-radius: 25px; background: var(--surface-soft); }
.capture-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.capture-title strong { font-size: 14px; }
.capture-title span { color: var(--muted); font-size: 11px; }
.capture-orbit { position: relative; display: grid; place-items: center; width: min(100%, 500px); aspect-ratio: 1; margin: 0 auto; overflow: hidden; border: 1px dashed #a89d8c; border-radius: 50%; background: radial-gradient(circle, #f8f6f0 0 34%, #ebe7de 35% 62%, #e4dfd5 63%); cursor: pointer; transition: border-color .2s ease, transform .2s ease; }
.capture-orbit:hover { border-color: var(--amber); transform: scale(1.006); }
.capture-orbit::after { content: ""; position: absolute; inset: 8%; border: 1px solid rgba(120,108,85,.25); border-radius: 50%; pointer-events: none; }
.capture-placeholder { display: grid; place-items: center; gap: 4px; z-index: 1; text-align: center; }
.capture-placeholder b { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 4px; border-radius: 50%; color: #fff; background: var(--ink); font-size: 24px; font-weight: 360; }
.capture-placeholder strong { font-size: 13px; }
.capture-placeholder small { color: var(--muted); font-size: 11px; }
.capture-orbit img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.capture-card.has-image .capture-placeholder { display: none; }
.capture-feedback { min-height: 18px; margin: 14px 4px 10px; color: var(--muted); font-size: 11px; }
.capture-feedback[data-state="good"] { color: var(--moss); }
.capture-feedback[data-state="warn"] { color: var(--red); }
.capture-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.text-button { border: 0; padding: 7px 3px; background: none; color: #745419; cursor: pointer; font-size: 12px; font-weight: 760; }
.text-button:hover { text-decoration: underline; }
.remove-capture { margin-left: auto; color: var(--red); }
.capture-count { width: fit-content; margin: 20px auto 0; padding: 8px 12px; border-radius: 999px; color: var(--muted); background: var(--paper-deep); font-size: 11px; font-weight: 720; }
.capture-count.is-complete { color: var(--moss); background: var(--moss-soft); }

.clue-form { display: grid; grid-template-columns: minmax(120px, .28fr) minmax(260px, 1fr) auto; gap: 10px; align-items: end; }
.field { display: grid; gap: 7px; min-width: 0; }
.field > span { color: var(--muted); font-size: 10px; font-weight: 790; letter-spacing: .1em; text-transform: uppercase; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 14px; outline: 0; background: var(--surface); color: var(--ink); }
.field input { height: 52px; padding: 0 16px; }
.field textarea { min-height: 105px; padding: 14px 16px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--moss); box-shadow: 0 0 0 4px rgba(41,79,59,.12); }
.search-button { min-height: 52px; }
.example-clues { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.example-clues span { color: var(--muted); font-size: 11px; }
.example-clues button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: #5b5549; background: transparent; cursor: pointer; font-size: 11px; }
.example-clues button:hover { border-color: var(--amber); color: #745419; background: var(--amber-soft); }

.match-results { margin-top: 30px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.results-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.results-header .kicker { margin-bottom: 4px; }
.results-header h3 { margin: 0; font-size: 22px; }
.results-status { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 11px; text-align: right; }
.result-list { max-height: min(560px, calc(100vh - 190px)); overflow-y: auto; overscroll-behavior: contain; }
.result-group-label { position: sticky; top: 0; z-index: 2; padding: 8px 20px; border-bottom: 1px solid var(--line); background: rgba(246,242,233,.94); color: #745419; font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; backdrop-filter: blur(10px); }
.result-card { width: 100%; display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px 20px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.result-card:last-child { border-bottom: 0; }
.result-card:hover, .result-card[aria-pressed="true"] { background: #f6f1e5; }
.result-card[aria-pressed="true"] { box-shadow: inset 3px 0 var(--amber); }
.result-coin { position: relative; width: 52px; height: 52px; border-radius: 50%; background: radial-gradient(circle, #fdf8eb 0 37%, #d9c89e 38% 41%, #eee4ce 42% 65%, #bba675 66%); box-shadow: inset 0 0 0 1px rgba(94,74,36,.18); }
.result-coin::after { content: "C"; position: absolute; inset: 0; display: grid; place-items: center; color: #8a6827; font-family: Georgia, serif; font-size: 19px; }
.result-copy { min-width: 0; display: grid; gap: 7px; }
.result-copy strong { overflow: hidden; text-overflow: ellipsis; font-size: 14px; white-space: nowrap; }
.result-copy small { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: 10px; }
.authority-badge, .record-badges span { display: inline-flex; align-items: center; min-height: 21px; padding: 0 7px; border: 1px solid #a9c3d0; border-radius: 999px; color: #315b70; background: #f7fbfd; font-size: 9px; font-weight: 790; letter-spacing: .03em; }
.result-action { display: grid; justify-items: end; gap: 4px; min-width: 120px; }
.result-action strong { font-size: 12px; }
.result-action small { color: var(--muted); font-size: 9px; }
.result-state { display: grid; place-items: center; gap: 7px; min-height: 170px; padding: 26px; color: var(--muted); text-align: center; }
.result-state strong { color: var(--ink); }
.result-state button { margin-top: 6px; }

.record-empty { display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 230px; border: 1px dashed var(--line-strong); border-radius: 24px; color: var(--muted); background: var(--surface-soft); }
.record-empty p { max-width: 450px; margin: 5px 0 0; font-size: 12px; line-height: 1.5; }
.record-empty strong { color: var(--ink); }
.empty-coin, .record-coin { display: grid; place-items: center; flex: 0 0 auto; width: 72px; height: 72px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--paper-deep); color: #8a7e6a; font-family: Georgia, serif; font-size: 32px; }
.record-panel { display: grid; gap: 20px; }
.record-identity { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 22px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface-soft); }
.record-coin { width: 88px; height: 88px; color: #76551b; background: radial-gradient(circle, #fff9e9 0 40%, #dfceaa 41% 45%, #efe5d0 46%); }
.record-copy { min-width: 0; }
.record-copy > span { color: var(--muted); font-size: 10px; font-weight: 740; letter-spacing: .1em; text-transform: uppercase; }
.record-copy h3 { margin: 5px 0 10px; font-size: clamp(1.45rem, 2.8vw, 2.8rem); line-height: 1; }
.record-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.record-links { display: grid; gap: 8px; }
.record-links .button { min-width: 160px; }
.record-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.insight-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.insight-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.insight-heading span { font-size: 13px; font-weight: 780; }
.insight-heading small { color: var(--muted); font-size: 9px; text-align: right; }
.insight-content { min-height: 220px; max-height: 520px; padding: 10px 20px 20px; overflow: auto; }
.census-source { padding: 14px 0; border-bottom: 1px solid var(--line); }
.census-source:last-child { border-bottom: 0; }
.census-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.census-summary > span { color: var(--muted); font-size: 10px; }
.census-summary strong { font-size: 26px; }
.grade-bars { display: grid; gap: 7px; }
.grade-bar { display: grid; grid-template-columns: 55px minmax(50px, 1fr) 52px; align-items: center; gap: 8px; font-size: 9px; }
.grade-bar > span:first-child { font-weight: 760; }
.grade-track { height: 5px; overflow: hidden; border-radius: 999px; background: var(--paper-deep); }
.grade-track i { display: block; width: var(--share); height: 100%; border-radius: inherit; background: var(--moss); }
.grade-bar > span:last-child { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.price-grade { padding: 14px 0; border-bottom: 1px solid var(--line); }
.price-grade:last-child { border-bottom: 0; }
.price-grade-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.price-grade-title strong { font-size: 12px; }
.price-grade-title span { color: var(--muted); font-size: 9px; }
.price-series { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 6px 10px; font-size: 9px; }
.price-series span:nth-child(odd) { color: var(--muted); }
.price-series span:nth-child(even) { text-align: right; font-variant-numeric: tabular-nums; }
.insight-empty { display: grid; place-items: center; min-height: 190px; color: var(--muted); text-align: center; font-size: 11px; line-height: 1.5; }
.listing-card { display: grid; grid-template-columns: minmax(240px, .62fr) minmax(420px, 1.38fr); gap: clamp(24px, 4vw, 60px); padding: clamp(22px, 3vw, 40px); border-radius: 24px; color: #fff; background: var(--ink); }
.listing-card h3 { margin: 0; font-size: clamp(1.8rem, 3vw, 3.2rem); line-height: .98; }
.listing-card p:not(.kicker) { color: #b8bbb4; font-size: 12px; line-height: 1.55; }
.listing-card .kicker { color: #d7ac59; }
.listing-card form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.listing-card .notes-field { grid-column: 1 / -1; }
.listing-card .field > span { color: #adb0a9; }
.listing-card .field input, .listing-card .field textarea { border-color: #484b44; background: #272923; color: #fff; }
.listing-card .button { width: fit-content; border-color: #d8b267; background: #d8b267; color: #201c13; }
.draft-status { align-self: center; color: #b8bbb4; font-size: 10px; }

footer { display: grid; grid-template-columns: auto minmax(260px, 680px) auto; align-items: center; gap: 30px; width: var(--content); margin: 0 auto; padding: 28px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
footer p { line-height: 1.5; }
footer > span { text-align: right; }

.camera-dialog { width: min(720px, calc(100vw - 28px)); max-width: none; padding: 0; border: 0; border-radius: 26px; background: var(--surface); box-shadow: 0 35px 90px rgba(15,17,14,.35); }
.camera-dialog::backdrop { background: rgba(18,19,16,.65); backdrop-filter: blur(9px); }
.camera-shell { padding: 20px; }
.camera-header { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 16px; }
.camera-header .kicker { margin-bottom: 4px; }
.camera-header h2 { margin: 0; font-size: 28px; }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; font-size: 24px; }
.camera-view { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 20px; background: #12130f; }
.camera-view video { width: 100%; height: 100%; object-fit: cover; }
.camera-guide { position: absolute; width: min(76%, 460px); aspect-ratio: 1; left: 50%; top: 50%; transform: translate(-50%,-50%); border: 2px dashed rgba(255,255,255,.78); border-radius: 50%; box-shadow: 0 0 0 999px rgba(0,0,0,.14); }
.camera-error { padding: 12px; border-radius: 12px; color: var(--red); background: var(--red-soft); font-size: 12px; }
.camera-shutter { margin: 16px auto 0; }
.camera-shutter span { width: 12px; height: 12px; margin-right: 8px; border: 2px solid currentColor; border-radius: 50%; }

@media (max-width: 1120px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(390px, .92fr); gap: 34px; padding-inline: clamp(28px, 4vw, 50px); }
  .object-note { display: none; }
  .record-grid { grid-template-columns: 1fr; }
  .listing-card { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; align-items: start; }
  .hero::before { display: none; }
  .hero::after { inset: 44% 0 0; mask-image: linear-gradient(transparent, #000 34%); }
  .hero-copy { max-width: 760px; }
  .hero h1 { max-width: 12ch; }
  .hero-evidence { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
  .hero-evidence > div { grid-template-columns: 1fr; gap: 5px; border-bottom: 0; }
  .hero-evidence > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
  .start-panel { width: min(100%, 720px); justify-self: center; }
}

@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr; gap: 9px; min-height: auto; padding-block: 11px; }
  .site-header .brand { justify-self: center; }
  .site-header nav { position: static; justify-self: center; width: min(100%, 360px); transform: none; }
  .site-header nav a { flex: 1 1 auto; text-align: center; }
  .privacy-chip { display: none; }
  main { padding-top: 20px; padding-bottom: 90px; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 28px; padding: 38px 26px 28px; }
  .hero h1 { max-width: 10ch; font-size: clamp(2.9rem, 13vw, 4.5rem); }
  .hero-object { width: min(100%, 410px); }
  .journey { grid-template-columns: 1fr; }
  .journey > * + * { border-left: 0; border-top: 1px solid var(--line); }
  .journey > p, .journey > div { padding-inline: 12px; }
  .section-heading { align-items: start; flex-direction: column; }
  .capture-grid { grid-template-columns: 1fr; }
  .capture-card { max-width: 620px; width: 100%; margin: 0 auto; }
  .clue-form { grid-template-columns: minmax(90px, .3fr) minmax(0, 1fr); }
  .search-button { grid-column: 1 / -1; width: 100%; }
  .record-identity { grid-template-columns: auto 1fr; }
  .record-links { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .record-links .button { min-width: 0; }
  footer { grid-template-columns: 1fr; padding-bottom: 48px; }
  footer > span { text-align: left; }
}

@media (max-width: 520px) {
  :root { --content: calc(100vw - 24px); }
  .site-header { padding-inline: 14px; }
  .site-header nav a { padding-inline: 11px; font-size: 11px; }
  .hero { padding-inline: 20px; border-radius: 24px; }
  .hero-intro { margin-top: 19px; font-size: 15px; }
  .hero-evidence { display: none; }
  .start-panel { border-radius: 22px; }
  .start-header { padding: 16px 15px 13px; }
  .start-header h2 { font-size: 18px; }
  .start-tabs { margin-inline: 14px; }
  .start-pane { min-height: 318px; padding: 21px 14px 17px; }
  .start-coins { grid-template-columns: minmax(82px, 1fr) 22px minmax(82px, 1fr); gap: 6px; }
  .start-coin { width: min(100%, 132px); box-shadow: inset 0 0 0 7px rgba(255,253,248,.45), 0 12px 24px rgba(50,44,31,.08); }
  .coin-action b { width: 30px; height: 30px; font-size: 18px; }
  .coin-action strong { font-size: 10px; }
  .coin-action small { font-size: 8px; }
  .side-connector i { display: none; }
  .side-connector b { font-size: 7px; }
  .start-help { font-size: 9px; }
  .start-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .start-actions .button { min-width: 0; padding-inline: 10px; }
  .start-route li { display: grid; justify-items: center; gap: 4px; padding: 10px 4px; text-align: center; }
  .search-return { margin-top: 20px; }
  .workspace { padding: 22px 16px; border-radius: 22px; }
  .capture-card { padding: 14px; border-radius: 20px; }
  .capture-actions .button { flex: 1 1 auto; }
  .clue-form { grid-template-columns: 1fr; }
  .search-button { grid-column: auto; }
  .results-header { align-items: flex-start; flex-direction: column; }
  .results-status { width: 100%; justify-content: space-between; text-align: left; }
  .result-card { grid-template-columns: 44px minmax(0, 1fr); gap: 11px; padding: 14px 12px; }
  .result-coin { width: 44px; height: 44px; }
  .result-action { grid-column: 2; min-width: 0; justify-items: start; }
  .record-empty { align-items: flex-start; flex-direction: column; padding: 22px; }
  .record-identity { grid-template-columns: 1fr; }
  .record-coin { width: 68px; height: 68px; }
  .record-links { grid-column: auto; grid-template-columns: 1fr; }
  .insight-heading { align-items: flex-start; flex-direction: column; }
  .insight-heading small { text-align: left; }
  .listing-card form { grid-template-columns: 1fr; }
  .listing-card .notes-field { grid-column: auto; }
  .grade-bar { grid-template-columns: 48px minmax(36px, 1fr) 44px; }
}

@media (max-width: 360px) {
  .no-account { display: none; }
  .start-header { justify-content: flex-start; }
  .start-index { width: 30px; height: 30px; }
  .start-tabs button { font-size: 10px; }
  .start-actions { grid-template-columns: 1fr; }
  .start-route li { font-size: 7px; }
}

@media (min-width: 1800px) {
  .site-header { min-height: 82px; }
  .hero { min-height: 760px; }
  .workspace { padding-inline: 68px; }
}

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