
@font-face { font-family: Barlow; src: url('/assets/display.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: DM; src: url('/assets/sans.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Plex; src: url('/assets/mono.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root { color-scheme: light; --paper: #f5f5ef; --ink: #1c201a; --sub: #54594e; --rule: #c8cbbe; --acid: #d8f36c; --tier: var(--acid); --display: Barlow, Impact, 'Arial Narrow', sans-serif; --mono: Plex, ui-monospace, monospace; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.45 DM, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid #326695; outline-offset: 4px; }
button:disabled { cursor: default; }
h1, h2, h3, p, ol, ul, dl, dd, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { display: block; width: 100%; }
.shell { max-width: 1424px; margin: auto; padding: 0 clamp(20px, 4.4vw, 68px); }
.skip, .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; overflow: visible; clip-path: none; z-index: 9; padding: 9px 16px; background: var(--ink); color: white; }
.mast { min-height: 74px; display: flex; justify-content: space-between; align-items: center; gap: 18px; border-bottom: 1px solid var(--ink); }
.brand { display: inline-flex; align-items: baseline; user-select: none; text-decoration: none; font: 700 31px/.92 var(--display); text-transform: uppercase; letter-spacing: -.035em; }
.brandmark { display: inline-flex; align-self: center; align-items: flex-end; gap: 2px; padding: 4px; width: 26px; height: 26px; margin-right: 8px; background: var(--acid); }
.brandmark i { flex: 1; background: var(--ink); height: 36%; }
.brandmark i:nth-child(2) { height: 65%; } .brandmark i:nth-child(3) { height: 100%; }
.suffix { margin-left: 1px; font: 500 15px/1 var(--mono); letter-spacing: -.08em; }
.mast nav { display: flex; align-items: center; gap: 19px; }
.plain, .mast nav a { color: var(--ink); padding: 7px 0; border: 0; background: transparent; font-size: 14px; font-weight: 650; text-decoration: none; }
.plain:hover, .mast nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero { display: grid; grid-template-columns: 0.93fr 1.07fr; gap: clamp(26px, 4.1vw, 65px); align-items: center; padding: clamp(34px, 4.2vw, 68px) 0; }
.hero-copy h1 { font: 700 clamp(78px, 8.3vw, 128px)/.86 var(--display); text-transform: uppercase; letter-spacing: -.045em; }
.hero-copy h1 span { position: relative; }
.hero-copy p { max-width: 360px; margin: 27px 0 28px; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.35; letter-spacing: -.022em; }
.action, .outline { display: inline-flex; align-items: center; justify-content: center; gap: 13px; padding: 0 23px; min-height: 49px; border: 1px solid var(--ink); color: var(--paper); background: var(--ink); text-decoration: none; font-size: 16px; font-weight: 750; transition: background .15s, color .15s; }
.action:hover:not(:disabled), .outline.solid:hover { color: var(--ink); background: var(--acid); }
.action:disabled { background: #d8d9cd; color: #62685c; border-color: #babeb0; }
.plus { display: inline-block; position: relative; width: 14px; height: 14px; flex: none; }
.plus::before, .plus::after { content: ''; position: absolute; top: 6px; left: 0; width: 14px; height: 2px; background: currentColor; } .plus::after { transform: rotate(90deg); }
.specimen { display: block; background: var(--ink); border: 2px solid var(--ink); text-decoration: none; }
.still-grid { display: grid; grid-template: 1fr 1fr / 1.43fr 1fr; gap: 3px; height: clamp(275px, 25.4vw, 371px); overflow: hidden; }
.still-grid img { height: 100%; min-height: 0; object-fit: cover; }
.hero-photo { grid-row: 1 / 3; object-position: 50% 20%; }
.work-photo { object-position: 48% 51%; } .bench-photo { object-position: 50% 56%; }
.sample-strip { border-top: 2px solid var(--ink); background: var(--acid); color: var(--ink); padding: 13px 19px 12px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.strip-left, .strip-right { display: flex; flex-direction: column; }
.strip-left > small, .kicker, .flag, .market dt { font: 500 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .065em; }
.strip-left b { font: 700 clamp(35px, 3.2vw, 48px)/.94 var(--display); letter-spacing: -.035em; text-transform: uppercase; }
.strip-right { align-items: flex-end; }
.strip-right strong { font: 700 31px/.95 var(--display); letter-spacing: -.04em; }
.strip-right strong small { font-size: 17px; }
.strip-right > span { margin-top: 4px; font-size: 12px; font-weight: 700; }
.strip-right > span::after { content:'↗'; margin-left: 5px; }
.specimen:hover .strip-right > span { text-decoration: underline; text-underline-offset: 3px; }
.landing-scale { border-top: 1px solid var(--ink); padding: 20px 0 40px; }
.landing-scale h2, .board h2, .signals h2 { font: 700 32px/.97 var(--display); text-transform: uppercase; letter-spacing: -.025em; }
.scale { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); margin-top: 17px; gap: 4px; }
.scale li { min-width: 0; border-top: 7px solid var(--swatch); padding-top: 7px; }
.scale strong { display: block; font: 700 clamp(15px,1.43vw,21px)/1 var(--display); }
.scale small, .board small { font: 500 11px/1.35 var(--mono); }
.scale small { display: block; margin-top: 4px; color: var(--sub); }

#report { padding: 24px 0 32px; outline: none; }
.report-nav, .report-actions { display: flex; align-items: center; gap: 8px; }
.report-nav { justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.flag { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.flag::before { content: ''; width: 9px; height: 9px; background: var(--tier); border: 1px solid var(--ink); }
.outline { min-height: 39px; padding: 0 14px; color: var(--ink); background: transparent; gap: 8px; font-size: 14px; }
.outline:hover { background: #e7e8de; } .outline.solid { background: var(--ink); color: var(--paper); }
.report-lead { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(240px, .9fr); border: 1.5px solid var(--ink); }
.verdict { min-width: 0; background: var(--tier); border-right: 1px solid var(--ink); display: flex; flex-direction: column; align-items: flex-start; padding: clamp(22px,3.3vw,48px); }
.verdict h1 { margin: 9px 0 21px; font: 700 clamp(67px,8.5vw,134px)/.86 var(--display); letter-spacing: -.045em; text-transform: uppercase; overflow-wrap: break-word; }
.verdict-meter { display: flex; align-items: baseline; gap: 13px; }
.verdict-meter strong { font: 700 clamp(46px,4.6vw,72px)/.95 var(--display); letter-spacing: -.04em; }
.verdict-meter strong small { font-size: .43em; }
.verdict-meter > span { font: 500 11px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.segments { display: grid; grid-template-columns: repeat(10,1fr); width: min(360px,100%); gap: 3px; margin: 10px 0 26px; }
.segments i { height: 9px; background: var(--ink); opacity: .16; }
.segments i.filled { opacity: 1; }
.verdict blockquote { width: 100%; margin-top: auto; border-top: 1px solid var(--ink); padding-top: 16px; max-width: 660px; font-size: clamp(19px,2.15vw,31px); line-height: 1.13; letter-spacing: -.04em; font-weight: 550; }
.board { padding: 17px 20px 14px; display:flex; flex-direction:column; }
.board h2 { font-size: 25px; margin-bottom: 9px; }
.board ol { flex:1; display:grid; grid-template-rows:repeat(10,minmax(0,1fr)); }
.board li { display: grid; grid-template-columns: 9px 1fr auto 15px; gap: 9px; align-items: center; padding: 4px 6px; border-top: 1px solid var(--rule); line-height: 1.12; }
.board li i { background: var(--swatch); width: 8px; height: 8px; }
.board strong { font-size: 15px; font-weight: 600; }
.board small { color: var(--sub); font-size: 11px; }
.board li[aria-current] { background: var(--tier); }
.board li[aria-current]::after { content: '←'; text-align: right; font-weight: 750; }
.memo-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(24px,5.5vw,80px); margin: 30px 0; }
.cast h2 { font: 700 clamp(40px,4.1vw,62px)/.95 var(--display); text-transform: uppercase; letter-spacing: -.035em; margin: 6px 0 14px; }
.market { display: flex; gap: clamp(23px,3.5vw,50px); margin: 0 0 18px; }
.market dt { font-size: 10px; color: var(--sub); }
.market dd { font-size: 19px; font-weight: 720; letter-spacing: -.025em; }
.cast > p, .cases p { margin-top: 5px; line-height: 1.38; }
.cases { align-self: center; }
.cases > div + div { margin-top: 13px; border-top: 1px solid var(--rule); padding-top: 13px; }
.cases h3 { display: flex; align-items: center; gap: 7px; font: 700 24px/1 var(--display); text-transform: uppercase; }
.tick { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid var(--ink); font: 600 17px/.8 DM, sans-serif; }
.tick.bull { background: #d4eba9; } .tick.bear { background: #f4b394; }
.signals { padding: 23px 0 14px; border-bottom: 1px solid var(--ink); }
.signals-heading, .trait header, .distinct { display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
.signals-heading { margin-bottom:18px; }
#rank-source, .percent, .distinct strong { color:var(--sub); font:500 12px/1.35 var(--mono); }
#traits { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px clamp(17px,2.7vw,42px); }
.trait strong { font-size:16px; line-height:1.15; letter-spacing:-.02em; }
.raw-score { font:700 25px/1 var(--display); white-space:nowrap; }
.raw-score small { font-size:14px; }
.rail { height:7px; margin:6px 0 3px; background:#d9dccd; }
.fill { display:block; height:100%; background:var(--ink); border-top:2px solid var(--tier); }
.distinct { justify-content:flex-start; align-items:center; gap:13px; margin-top:16px; padding-top:10px; border-top:1px solid var(--rule); font-size:14px; font-weight:650; }
.memo-bottom { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.memo-bottom p:empty { display:none; } .error { color: #844326; }

dialog { width: min(495px, calc(100% - 26px)); max-height: calc(100dvh - 26px); color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 0; padding: clamp(19px,4vw,30px); box-shadow: 6px 6px 0 var(--ink); }
dialog::backdrop { background: rgb(21 25 20 / 58%); }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.dialog-head h2 { font: 700 clamp(39px,5vw,52px)/.95 var(--display); letter-spacing: -.04em; text-transform: uppercase; }
.close { width: 31px; height: 31px; flex: none; border: 1px solid var(--ink); background: transparent; color: inherit; font: 400 25px/1 DM, sans-serif; }
.close:hover { background: var(--acid); }
dialog > p { font-size: 15px; line-height: 1.42; }
.drop { display:flex; flex-wrap: wrap; gap: 5px 9px; align-items: center; justify-content:center; width:100%; min-height: 92px; padding: 12px; margin: 18px 0 12px; border: 1.5px dashed var(--ink); border-radius: 0; background: #e8ebdc; color: var(--ink); }
.drop:hover:not(:disabled), .drop.over { background: var(--acid); } .drop:disabled { opacity: .55; }
.drop small { flex-basis:100%; font-size: 12px; } .drop b { font-size:15px; }
.thumbs { display:flex; flex-wrap:wrap; gap:7px; }
.thumbs li { position:relative; width: calc((100% - 28px)/5); aspect-ratio:1; }
.thumbs img { height:100%; object-fit:cover; border:1px solid var(--ink); }
.thumbs button { position:absolute; top:1px; right:1px; width:22px; height:22px; background:var(--paper); color:var(--ink); border:1px solid var(--ink); line-height:1; padding:0; }
.opt { display:flex; align-items:flex-start; gap:9px; cursor:pointer; font-size:14px; margin:16px 0 7px; }
.opt input { width:16px; height:16px; margin:2px 0; flex:none; accent-color:var(--ink); }
.fine, #upload-status { font-size:13px; color:var(--sub); }
#upload-status:not(:empty) { margin-top:13px; } #upload-status[data-error] { color:#943c25; }
#generate { margin-top:16px; width:100%; }
#method-dialog h3 { font-size:16px; margin:14px 0 3px; }
@media (max-width: 960px) {
  .scale { grid-template-columns: repeat(5,minmax(0,1fr)); gap:13px 5px; }
  .hero { gap:24px; } .hero-copy h1 { font-size: clamp(73px,9.1vw,90px); }
  .still-grid { height: 255px; }
  #traits { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .mast { min-height:58px; } .brand { font-size:26px; } .brandmark { width:22px; height:22px; }
  .hero { grid-template-columns:1fr; gap:26px; padding:30px 0 27px; }
  .hero-copy h1 { font-size:clamp(74px,14.4vw,100px); }
  .hero-copy p { margin:15px 0 17px; max-width:370px; font-size:17px; }
  .action { min-height:44px; padding-inline:18px; }
  .still-grid { height:clamp(205px,47vw,300px); grid-template-columns:1.28fr 1fr; }
  .sample-strip { padding:10px 14px; } .strip-left b { font-size:36px; } .strip-right strong { font-size:26px; }
  .landing-scale { padding:17px 0 23px; } .landing-scale h2, .signals h2 { font-size:27px; }
  .scale strong { font-size:16px; } .scale small { font-size:10px; }
  .report-lead { grid-template-columns:1fr; }
  .verdict { border-right:0; border-bottom:1px solid var(--ink); padding:23px; }
  .verdict h1 { font-size:clamp(61px,12vw,87px); margin-bottom:13px; }
  .segments { margin-bottom:16px; }
  .board { padding:13px 14px; }
  .board ol { grid-template-columns:1fr 1fr; grid-template-rows:auto; column-gap:12px; }
  .board li { grid-template-columns:6px 1fr auto 9px; gap:4px; padding:5px 3px; }
  .board li i { width:6px; height:6px; } .board small { font-size:9px; }
  .memo-grid { grid-template-columns:1fr; gap:19px; margin:22px 0; }
  .signals { padding-top:19px; } .signals-heading { margin-bottom:13px; }
  #traits { gap:12px 18px; } .trait strong { font-size:15px; } .raw-score { font-size:21px; }
}
@media (max-width: 430px) {
  .shell { padding-inline:16px; }
  .mast nav { gap:9px; } .mast nav a, .mast .plain { font-size:12px; }
  .scale { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 13px; }
  .scale li { display:flex; align-items:baseline; justify-content:space-between; gap:4px; border-top-width:4px; padding-top:4px; }
  .scale strong { font-size:16px; } .scale small { font-size:10px; margin-top:0; }
  .report-nav { align-items:flex-start; } .report-actions { gap:4px; }
  .outline { padding:0 9px; gap:4px; font-size:12px; min-height:35px; }
  .flag { font-size:10px; gap:5px; padding-top:9px; }
  .board strong { font-size:12px; }
  .trait header { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; column-gap:4px; min-height:34px; }
}
@media (max-width: 360px) {
  .hero-copy h1 { font-size:65px; } .scale { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 10px; }
  .board ol { grid-template-columns:1fr; }
  #rank-source { font-size:11px; } .signals h2 { font-size:24px; }
  .report-nav { flex-wrap:wrap; } .flag { padding-top:0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration:0s !important; scroll-behavior:auto !important; } }
