:root {
  --ink: #0B0C0F;
  --panel: #131519;
  --line: #262A31;
  --steel: #878E97;
  --ivory: #EDEAE4;
  --champ: #C9A45D;
  --white: #EDEAE4;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--ink); color-scheme: dark; }
body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input { font: inherit; }
button { color: inherit; }

.masthead,
.footer-line {
  position: fixed;
  z-index: 20;
  left: clamp(24px, 3.5vw, 56px);
  right: clamp(24px, 3.5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.masthead { top: clamp(20px, 3vh, 38px); }
.footer-line {
  bottom: clamp(16px, 2.4vh, 28px);
  padding-top: 11px;
  border-top: 1px solid var(--line);
  color: var(--steel);
  font: 9.5px/1 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.brand { display: block; width: 102px; height: 34px; overflow: hidden; }
.brand img {
  display: block;
  width: 102px;
  height: 34px;
  object-fit: contain;
  filter: invert(1) grayscale(1) brightness(1.1);
  opacity: .94;
}
.event-mark {
  margin: 0;
  color: var(--steel);
  font: 9.5px/1 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.event-mark span { color: var(--champ); }

.kiosk { min-height: 100dvh; }
.screen {
  width: min(1680px, 100%);
  margin: 0 auto;
  min-height: 100dvh;
  padding: clamp(100px, 13vh, 140px) clamp(24px, 7vw, 108px) clamp(72px, 10vh, 110px);
}
.kicker {
  margin: 0 0 18px;
  color: var(--champ);
  font: 9.5px/1.4 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1, h2, h3, p { text-wrap: pretty; }
h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.018em;
}

.idle-screen {
  display: grid;
  grid-template-columns: minmax(440px, 620px) minmax(320px, 1fr);
  gap: clamp(64px, 8vw, 132px);
  align-items: center;
}
.idle-copy { max-width: 620px; }
.idle-copy h1 {
  margin: 0;
  font-size: clamp(72px, 8vw, 124px);
  line-height: .88;
}
.lede {
  max-width: 41ch;
  margin: 34px 0 36px;
  color: var(--steel);
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.58;
}
.match-form { display: grid; grid-template-columns: 1.25fr 1fr .9fr; gap: 22px 14px; max-width: 620px; }
.field { display: grid; gap: 9px; }
.field span,
.portrait-lists h3 {
  color: var(--steel);
  font: 9.5px/1.3 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.field span i { color: #5E646D; font-style: normal; }
.field input {
  width: 100%;
  height: 49px;
  border: 0;
  border-bottom: 1px solid #3A3E45;
  border-radius: 0;
  padding: 0;
  outline: 0;
  background: transparent;
  color: var(--ivory);
  font-size: 16px;
  transition: border-color 180ms ease;
}
.field input::placeholder { color: #4E535B; }
.field input:focus { border-color: var(--champ); outline: 0; }
.form-error { grid-column: 1 / -1; min-height: 17px; margin: -8px 0 -10px; color: var(--ivory); font-size: 12px; }
.button {
  min-height: 47px;
  border: 1px solid transparent;
  border-radius: 2px;
  padding: 12px 18px;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: .01em;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.button.primary { background: var(--ivory); color: var(--ink); }
.button.primary:hover { background: var(--champ); }
.button.secondary { border-color: #41464E; background: transparent; color: var(--ivory); text-decoration: none; }
.button.secondary:hover { border-color: var(--ivory); }
.button:focus-visible { outline: 1px solid var(--champ); outline-offset: 4px; }
.button:disabled { opacity: .42; cursor: wait; }
.match-form .button { grid-column: 1 / -1; width: 100%; }
.privacy-note { max-width: 54ch; margin: 18px 0 0; color: #5E646D; font-size: 10.5px; line-height: 1.55; }

.idle-object {
  position: relative;
  align-self: stretch;
  min-height: 560px;
  overflow: hidden;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.idle-object .pen-hand {
  position: absolute;
  right: -2%;
  bottom: -2%;
  width: 84%;
  max-height: 92%;
  object-fit: contain;
  object-position: right bottom;
  filter: saturate(.48) contrast(1.06);
  opacity: .8;
}
.vera-intro {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 360px;
  margin: -14px 0 28px;
  padding: 0;
}
.vera-intro img {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
  opacity: .78;
}
.vera-intro strong {
  display: block;
  color: var(--ivory);
  font-size: 13px;
  font-weight: 500;
}
.vera-intro span {
  display: block;
  margin-top: 2px;
  color: var(--steel);
  font-size: 11px;
  line-height: 1.45;
}
.idle-object .object-spec {
  position: absolute;
  z-index: 2;
  left: 28px;
  top: 28px;
  margin: 0;
  color: var(--steel);
  font: 9.5px/1.7 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.lookup-screen {
  display: grid;
  place-items: center;
}
.lookup-copy { width: min(640px, 100%); }
.lookup-copy h2 { margin: 0 0 42px; font-size: clamp(52px, 6vw, 76px); line-height: .98; }
.progress-list { margin: 0; padding: 0; list-style: none; counter-reset: progress; }
.progress-list li {
  position: relative;
  padding: 17px 0 17px 42px;
  border-top: 1px solid var(--line);
  color: #50555E;
  font-size: 14px;
  transition: color 500ms ease;
}
.progress-list li::before {
  counter-increment: progress;
  content: "0" counter(progress);
  position: absolute;
  left: 0;
  color: #42464E;
  font: 9.5px/1.6 var(--mono);
  letter-spacing: .12em;
}
.progress-list li.active { color: var(--ivory); }
.progress-list li.active::before { color: var(--champ); }
.progress-list li.done { color: var(--steel); }
.lookup-guide { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.vera-orb { position: relative; flex: 0 0 76px; }
.vera-orb::after { content: ""; position: absolute; right: 2px; bottom: 7px; width: 8px; height: 8px; border: 2px solid var(--ink); border-radius: 50%; background: var(--champ); }
.lookup-guide img { display: block; width: 76px; height: 76px; padding: 4px; border: 1px solid var(--line); border-radius: 50%; background: var(--panel); object-fit: contain; opacity: .78; }
.lookup-guide p { margin: 0; color: var(--ivory); font-size: 13px; line-height: 1.5; }

.result-screen {
  display: grid;
  grid-template-columns: minmax(360px, .82fr) minmax(500px, 1.18fr);
  gap: clamp(56px, 5vw, 72px);
  align-items: stretch;
  height: 100dvh;
  min-height: 720px;
  overflow: hidden;
  padding-top: clamp(78px, 9vh, 96px);
  padding-bottom: clamp(54px, 7vh, 72px);
}
.portrait-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(12px, 2vh, 24px) 0;
}
.portrait-panel h2 { display: -webkit-box; margin: 0; overflow: hidden; font-size: clamp(42px, 4.6vw, 64px); line-height: .94; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.identity { margin: 16px 0 0; color: var(--champ); font: 10px/1.4 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.identity.unverified, #resultSource { color: var(--steel); }
.summary { display: -webkit-box; max-width: 48ch; margin: 22px 0 0; overflow: hidden; color: #B5B9BE; font-size: clamp(14px, 1.15vw, 17px); line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.source-note { margin: 10px 0 0; color: #686E77; font: 9px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.traits { margin: clamp(32px, 4vh, 50px) 0 0; border-top: 1px solid var(--line); }
.traits div { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.traits dt { color: var(--ivory); font: 10px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.traits dd { display: -webkit-box; margin: 0; overflow: hidden; color: var(--steel); font-size: 12px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.portrait-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 28px; }
.portrait-lists h3 { margin: 0 0 9px; }
.portrait-lists p { display: -webkit-box; margin: 0; overflow: hidden; color: #A6ABB2; font-size: 12px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.vera-read { display: grid; grid-template-columns: 36px 1fr; gap: 12px; max-width: 44ch; margin: auto 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); }
.vera-read img { width: 36px; height: 36px; border-radius: 50%; opacity: .72; }
.vera-read span { color: var(--steel); font: 9px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.vera-read blockquote {
  display: -webkit-box;
  margin: 4px 0 0;
  color: var(--ivory);
  font: 15px/1.6 var(--sans);
  letter-spacing: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.vitrine-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  min-width: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  padding-left: clamp(36px, 4vw, 64px);
}
.edition-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.edition-heading .kicker { margin-bottom: 9px; }
.edition-heading h2 { margin: 0; font-size: clamp(48px, 4vw, 58px); line-height: 1; }
.edition-number { color: var(--steel); font: 9.5px/1 var(--mono); letter-spacing: .16em; white-space: nowrap; }
.pen-stage {
  position: relative;
  min-height: 0;
  margin: clamp(14px, 2vh, 22px) 0;
  overflow: hidden;
  border-radius: 0;
  background: var(--ink);
}
.pen-stage svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}
.pen-stage .pen-piece { transform-box: fill-box; transform-origin: center; }
.pen-stage .reveal .barrel { animation: pen-rise .82s cubic-bezier(.16,.9,.3,1) both; }
.pen-stage .reveal .sleeve { animation: sleeve-set .82s .18s cubic-bezier(.16,.9,.3,1) both; }
.pen-stage .reveal .etch { animation: etch-in .72s .5s ease both; }
@keyframes pen-rise { from { opacity: 0; transform: translateY(72px); } to { opacity: 1; transform: none; } }
@keyframes sleeve-set { from { opacity: 0; transform: translateY(-110px); } to { opacity: 1; transform: none; } }
@keyframes etch-in { from { opacity: 0; } to { opacity: 1; } }
.spec-plate { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid #3A3E45; border-bottom: 1px solid #3A3E45; }
.spec-plate div { min-width: 0; padding: 13px 13px 14px 0; }
.spec-plate div + div { padding-left: 13px; border-left: 1px solid var(--line); }
.spec-plate dt { margin: 0 0 7px; color: var(--steel); font: 9px/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.spec-plate dd { margin: 0; overflow: hidden; color: var(--ivory); font: 10px/1.35 var(--mono); text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.result-actions { display: grid; grid-template-columns: 1.25fr .9fr; gap: 10px; align-items: center; margin-top: 16px; }
.action-status { min-height: 16px; margin: 10px 0 0; color: var(--steel); font-size: 11px; text-align: right; }

.share-body { min-height: 100dvh; display: grid; place-items: center; padding: 5vw; }
.share-card { width: min(1080px, 100%); display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; border: 1px solid var(--line); border-radius: 2px; }
.share-card img { width: 100%; max-height: 82vh; object-fit: contain; background: var(--panel); }
.share-copy { padding: clamp(28px, 6vw, 72px); }
.share-copy h1 { margin: 0; font-size: clamp(54px, 7vw, 92px); line-height: .9; }
.share-copy > p:not(.kicker) { color: var(--steel); line-height: 1.65; }
.share-owner { margin-top: 24px; color: var(--champ) !important; font: 10px/1.5 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.share-copy .button { display: inline-block; margin-top: 18px; }

.booth-body { min-height: 100dvh; padding: clamp(24px, 5vw, 72px); }
.booth-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.booth-header .kicker { margin-bottom: 10px; }
.booth-header h1 { margin: 0; font: 56px/.9 var(--serif); letter-spacing: -.018em; }
.booth-main { margin-top: 36px; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metrics article { padding: 22px 0 24px; }
.metrics article + article { padding-left: 28px; border-left: 1px solid var(--line); }
.metrics span { display: block; color: var(--steel); font: 9.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.metrics strong { display: block; margin-top: 13px; font: 48px/1 var(--serif); font-weight: 400; }
.recent { margin-top: 44px; }
.recent-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.recent-heading h2 { margin: 0; font-size: 36px; }
.recent-heading p { margin: 0; color: var(--steel); font: 9.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.table-wrap { margin-top: 18px; overflow-x: auto; }
.table-wrap table { width: 100%; min-width: 720px; border-collapse: collapse; }
.table-wrap th { padding: 12px 16px 12px 0; border-bottom: 1px solid #3A3E45; color: var(--steel); font: 9px/1 var(--mono); letter-spacing: .16em; text-align: left; text-transform: uppercase; }
.table-wrap td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); color: #B8BCC2; font-size: 13px; }
.table-wrap td:first-child { color: var(--ivory); }
.status-mark { color: var(--champ); font: 9px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.status-mark.failed { color: var(--steel); }
.empty-row { padding: 30px 0; color: var(--steel); }

@media (max-width: 1180px) {
  .idle-screen { grid-template-columns: 1fr; }
  .idle-object { position: relative; inset: auto; min-height: 420px; border-left: 0; border-top: 1px solid var(--line); opacity: 1; }
  .result-screen { grid-template-columns: 1fr; height: auto; min-height: 100dvh; overflow: visible; gap: 48px; }
  .portrait-panel { min-height: 720px; }
  .vitrine-panel { min-height: 800px; order: -1; border-left: 0; border-top: 1px solid var(--line); padding: 40px 0 0; }
  .pen-stage { height: clamp(500px, 42svh, 640px); }
}

@media (max-width: 680px) {
  .masthead { left: 18px; right: 18px; }
  .event-mark, .footer-line { display: none; }
  .screen { padding: 96px 18px 32px; }
  .idle-copy h1 { font-size: clamp(62px, 19vw, 82px); }
  .lede { margin-top: 28px; }
  .vera-intro { width: 100%; margin-top: -12px; }
  .match-form { grid-template-columns: 1fr; }
  .match-form > * { grid-column: 1; }
  .idle-object { display: none; }
  .lookup-screen { grid-template-columns: 1fr; align-content: center; }
  .lookup-guide { margin-bottom: 22px; }
  .vera-orb, .lookup-guide img { width: 62px; height: 62px; flex-basis: 62px; }
  .lookup-copy h2 { margin-bottom: 34px; font-size: 48px; }
  .result-screen { gap: 38px; }
  .portrait-panel { min-height: auto; padding: 0; }
  .portrait-panel h2 { font-size: 48px; }
  .summary { margin-top: 18px; -webkit-line-clamp: 3; }
  .traits, .portrait-lists { display: none; }
  .vera-read { margin-top: 34px; }
  .vera-read blockquote { font-size: 14px; }
  .traits div { grid-template-columns: 105px 1fr; gap: 16px; }
  .portrait-lists { grid-template-columns: 1fr; gap: 24px; }
  .vitrine-panel { min-height: 590px; padding: 30px 0 0; }
  .edition-heading { align-items: start; }
  .edition-heading h2 { font-size: 42px; }
  .pen-stage { height: clamp(320px, 43svh, 400px); }
  .spec-plate { grid-template-columns: 1fr 1fr; }
  .spec-plate div:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .spec-plate div:nth-child(4) { border-top: 1px solid var(--line); }
  .result-actions { grid-template-columns: 1fr 1fr; }
  .action-status { text-align: left; }
  .share-card { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; }
}

@media (max-height: 1150px) and (min-width: 1181px) {
  .screen { padding-top: 78px; padding-bottom: 50px; }
  .idle-copy h1 { font-size: 76px; }
  .lede { margin: 24px 0 26px; }
  .idle-object { min-height: 500px; }
  .result-screen { gap: clamp(56px, 5vw, 72px); }
  .portrait-panel { padding: 8px 0; }
  .portrait-panel h2 { font-size: 52px; }
  .summary { margin-top: 18px; font-size: 14px; }
  .traits { margin-top: 16px; }
  .traits div { padding: 7px 0; }
  .portrait-lists { margin-top: 14px; }
  .portrait-lists p { -webkit-line-clamp: 1; }
  .vera-read { padding-top: 12px; }
  .vera-read blockquote { font-size: 13px; line-height: 1.5; -webkit-line-clamp: 2; }
  .edition-heading h2 { font-size: 48px; }
  .pen-stage { margin: 10px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
