/* NOLANA. Built to brand/STYLE.md: a dark instrument page in the manner of brand/INSPO.md. */
@font-face { font-family: 'Hanken'; src: url('/assets/fonts/hanken-300.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Hanken'; src: url('/assets/fonts/hanken-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Hanken'; src: url('/assets/fonts/hanken-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --field: #060409;
  --raised: #0e0b13;
  --cream: #ede6d6;
  --mute: #8f8898;
  --line: #2a2430;
  --violet: #9b3cf0;
  --violet-hi: #ad5cf5;
  --pink: #ff2fb0;
  --edge: clamp(20px, 2.2vw, 44px);
  --h1: clamp(40px, 4.1vw, 92px);
  --h2: clamp(32px, 3.4vw, 76px);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--field); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; color: var(--cream); background: var(--field); font-family: 'Hanken', system-ui, sans-serif; font-weight: 300; font-size: 16px; line-height: 1.45; overflow-x: clip; -webkit-font-smoothing: antialiased; font-feature-settings: 'tnum' 1; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-weight: 300; letter-spacing: -0.035em; line-height: 1.04; }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
.small { font-size: 13.5px; line-height: 1.5; color: var(--mute); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--cream); color: var(--field); padding: 8px 12px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--violet-hi); outline-offset: 3px; }
[hidden] { display: none !important; }
.lines > span { display: block; }
.lines .ln { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.lines .ln > i { display: block; font-style: normal; will-change: transform; }

/* header */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 30; height: 64px; display: flex; align-items: center; gap: 28px; padding: 0 var(--edge); transition: background .4s ease, backdrop-filter .4s ease; }
.bar.solid { background: rgba(6, 4, 9, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.mark { display: flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 500; font-size: 15px; letter-spacing: 0.01em; }
.mark img { width: 34px; height: 34px; border-radius: 8px; }
.bar-links { display: flex; gap: 22px; margin-left: 18px; }
.bar-links a { color: var(--mute); text-decoration: none; font-size: 13.5px; transition: color .25s; }
.bar-links a:hover { color: var(--cream); }
.bar-end { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.ico { width: 36px; height: 36px; display: grid; place-items: center; color: var(--cream); border-radius: 50%; transition: background .25s; }
.ico:hover { background: var(--raised); }
.ca { display: flex; gap: 8px; align-items: center; height: 34px; padding: 0 12px; background: var(--raised); color: var(--cream); border: 0; border-radius: 6px; font: inherit; font-size: 13px; cursor: pointer; }
.ca-k { color: var(--mute); }
.buy { height: 34px; display: flex; align-items: center; padding: 0 16px; background: var(--violet); color: var(--cream); text-decoration: none; font-size: 13.5px; font-weight: 400; border-radius: 6px; margin-right: 6px; transition: background .25s; }
.buy:hover { background: var(--violet-hi); }

/* hero */
.hero { position: relative; min-height: 100svh; padding: calc(64px + 9vh) var(--edge) var(--edge); display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; }
.hero-copy { position: relative; z-index: 2; max-width: 44vw; }
.hero-p { max-width: 270px; margin-top: 26px; }
.render { position: absolute; z-index: 1; right: 3vw; bottom: 7vh; width: min(56vw, 118vh); pointer-events: none; perspective: 1400px; }
.render-in { transform-style: preserve-3d; will-change: transform; }
.render img { width: 100%; height: auto; animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { filter: brightness(1) saturate(1); } 50% { filter: brightness(1.12) saturate(1.08); } }
.scan { position: relative; z-index: 3; grid-row: 3; display: grid; grid-template-columns: minmax(0, 420px) auto; grid-template-areas: "in go" "own own" "msg msg"; gap: 0; align-items: stretch; max-width: 560px; }
.scan input { grid-area: in; height: 58px; padding: 0 18px; background: rgba(14, 11, 19, .82); color: var(--cream); border: 0; border-bottom: 1px solid var(--line); font: inherit; font-size: 15px; font-weight: 400; border-radius: 0; min-width: 0; backdrop-filter: blur(8px); }
.scan input::placeholder { color: var(--mute); }
.scan input:focus-visible { outline: none; border-bottom-color: var(--violet-hi); }
.go { grid-area: go; display: inline-flex; align-items: center; justify-content: space-between; gap: 26px; min-width: 150px; height: 58px; padding: 0 20px; background: var(--violet); color: var(--cream); border: 0; font: inherit; font-size: 15px; font-weight: 400; cursor: pointer; text-decoration: none; transition: background .3s ease; }
.go svg { transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.go:hover { background: var(--violet-hi); }
.go:hover svg { transform: translateX(4px); }
.go[disabled] { opacity: .6; cursor: progress; }
.own { grid-area: own; justify-self: start; margin-top: 14px; padding: 4px 0; background: none; border: 0; color: var(--mute); font: inherit; font-size: 13.5px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); transition: color .25s; }
.own:hover { color: var(--cream); }
.form-msg { grid-area: msg; min-height: 20px; margin-top: 8px; }
.form-msg.err { color: var(--pink); }

/* live scan stage */
.stage { padding: 0 var(--edge) 12vh; }
.stage-in { background: var(--raised); min-height: 70vh; padding: clamp(28px, 4vw, 72px); display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; gap: 32px 6vw; }
.stage-who { font-size: var(--h2); letter-spacing: -0.035em; line-height: 1.04; }
.stage-step { margin-top: 16px; }
.stage-step::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); margin-right: 10px; vertical-align: 1px; animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.stage-count { align-self: end; display: flex; flex-direction: column; font-size: clamp(56px, 7vw, 150px); letter-spacing: -0.05em; line-height: .9; }
.feed { grid-column: 2; grid-row: 1 / span 2; list-style: none; margin: 0; padding: 0; align-self: start; }
.feed li { display: grid; grid-template-columns: 88px 92px 1fr auto; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 14px; font-weight: 400; }
.feed li .t, .feed li .k { color: var(--mute); }
.feed li .k.leak { color: var(--pink); }
.feed li .a { text-align: right; }
.feed li.in { animation: rowin .5s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rowin { from { opacity: 0; transform: translateY(8px); } }

/* recent scans wall */
.wall { position: relative; padding: 16vh 0 10vh; overflow: hidden; }
.wall-copy { padding: 0 var(--edge); display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: end; gap: 6vw; }
.wall-copy .small { margin-bottom: 8px; }
.strip-wrap { margin-top: 9vh; }
.strip { list-style: none; margin: 0; padding: 0 var(--edge); display: flex; gap: 14px; width: max-content; will-change: transform; }
.tile { width: clamp(200px, 15vw, 300px); aspect-ratio: 3 / 4; background: var(--raised); padding: 18px 18px 20px; display: flex; flex-direction: column; text-decoration: none; transition: background .35s ease, transform .5s cubic-bezier(.2, .7, .2, 1); }
.tile:hover { background: #15111c; transform: translateY(-4px); }
.tile .sc { font-size: clamp(64px, 5.2vw, 110px); letter-spacing: -0.05em; line-height: .9; margin-top: auto; }
.tile .sc-k { margin-top: 10px; }
.tile .w { font-size: 14px; font-weight: 400; }
.tile .ago { margin-top: 4px; }
.tile .bar-x { height: 2px; background: var(--line); margin-top: 18px; position: relative; }
.tile .bar-x i { position: absolute; inset: 0 auto 0 0; background: var(--pink); }
.strip-empty { padding: 0 var(--edge); max-width: 520px; }
.optout { margin: 26px var(--edge) 0; background: none; border: 0; padding: 4px 0; font: inherit; font-size: 13.5px; color: var(--mute); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); cursor: pointer; }
.optout:hover { color: var(--cream); }

/* statement and zoom */
.statement { padding: 18vh var(--edge) 12vh; }
.right { text-align: right; }
.zoom { height: 220vh; position: relative; }
.zoom-pin { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; overflow: hidden; }
.zoom-pin img { width: min(54vw, 980px); height: auto; will-change: transform; }

/* leak rows */
.leaks { padding: 4vh var(--edge) 18vh; display: grid; grid-template-columns: 4fr 7fr; gap: 6vw; }
.leaks-copy h2 { font-size: clamp(28px, 2.4vw, 52px); }
.leaks-copy .small { margin-top: 22px; max-width: 290px; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding: 26px 0 28px; border-top: 1px solid var(--line); }
.rows > li:last-child { border-bottom: 1px solid var(--line); }
.rows h3 { font-weight: 400; font-size: clamp(18px, 1.35vw, 26px); letter-spacing: -0.015em; }
.rows p { margin-top: 6px; color: var(--mute); font-size: 14.5px; max-width: 560px; }
.pts { color: var(--mute); font-size: 14px; white-space: nowrap; padding-top: 4px; }

/* method */
.method { padding: 10vh var(--edge) 20vh; }
.cols { margin-top: 10vh; display: grid; grid-template-columns: repeat(3, minmax(0, 270px)); gap: 5vw; margin-left: auto; width: max-content; max-width: 100%; }
.cols a { color: var(--cream); text-decoration-color: var(--violet); text-underline-offset: 3px; }

/* report */
.report { padding: calc(64px + 7vh) var(--edge) 10vh; }
.rep-top { display: grid; grid-template-columns: 1.1fr 1fr; gap: 6vw; align-items: end; }
.rep-big { font-size: clamp(150px, 17vw, 380px); letter-spacing: -0.06em; line-height: .82; color: var(--pink); margin-top: 18px; }
.rep-big .pct { font-size: .42em; letter-spacing: -0.03em; margin-left: .04em; }
.rep-line { font-size: clamp(22px, 1.9vw, 40px); letter-spacing: -0.025em; margin-top: 22px; }
.rep-line strong { font-weight: 400; }
.rep-window { margin-top: 16px; max-width: 520px; }
.rep-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin-top: 34px; }
.rep-actions .own { margin-top: 0; }
.hours { margin: 0; }
.bars { display: grid; grid-template-columns: repeat(24, 1fr); gap: 4px; align-items: end; height: clamp(160px, 18vw, 340px); margin-top: 16px; border-bottom: 1px solid var(--line); }
.bars i { display: block; background: #3a3342; min-height: 2px; transform-origin: bottom; }
.bars i.quiet { background: var(--violet); opacity: .55; }
.bars i.peak { background: var(--cream); }
.hours-axis { display: flex; justify-content: space-between; margin-top: 8px; }
.rep-leaks { margin-top: 12vh; }
.rows-rep > li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 70px; gap: 4vw; }
.rows-rep .facts { list-style: none; margin: 14px 0 0; padding: 0; }
.rows-rep .facts li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; font-weight: 400; }
.rows-rep .facts li span:last-child { color: var(--mute); }
.rows-rep .fix { color: var(--cream); font-size: 14.5px; }
.rows-rep .fix-k { color: var(--mute); display: block; margin-bottom: 6px; font-size: 13.5px; }
.rows-rep .w { text-align: right; font-size: clamp(22px, 1.8vw, 36px); letter-spacing: -0.03em; color: var(--mute); }
.rows-rep .w.hit { color: var(--pink); }
.rows-rep .heur { color: var(--mute); }
.rep-feed { margin-top: 14vh; display: grid; grid-template-columns: 4fr 7fr; gap: 6vw; }
.rep-feed h2 { font-size: clamp(26px, 2.2vw, 48px); }
.feed-static { grid-column: 2; grid-row: 1 / span 2; }
.rep-note { max-width: 300px; align-self: end; }

.foot { display: flex; justify-content: space-between; gap: 20px; padding: 28px var(--edge) 34px; border-top: 1px solid var(--line); }
.foot a { color: var(--cream); text-decoration: none; }
.foot-ico { display: flex; gap: 6px; margin: -8px -8px 0 0; }

@media (max-width: 900px) {
  .bar-links { display: none; }
  .hero { padding-top: calc(64px + 6vh); min-height: 100svh; }
  .hero-copy { max-width: none; }
  .render { right: 0; bottom: 25vh; width: 96vw; opacity: .9; }
  .scan { grid-template-columns: 1fr; grid-template-areas: "in" "go" "own" "msg"; max-width: none; }
  .go { width: 100%; }
  .stage-in { grid-template-columns: 1fr; }
  .feed { grid-column: 1; grid-row: auto; }
  .feed li { grid-template-columns: 64px 76px 1fr auto; font-size: 13px; }
  .wall-copy { grid-template-columns: 1fr; }
  .strip { flex-wrap: nowrap; overflow-x: auto; width: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .tile { flex: 0 0 62vw; scroll-snap-align: start; }
  .zoom { height: 140vh; }
  .zoom-pin img { width: 92vw; }
  .leaks, .rep-feed { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr; width: auto; margin-left: 0; margin-top: 6vh; gap: 22px; }
  .rep-top { grid-template-columns: 1fr; }
  .rows-rep > li { grid-template-columns: 1fr 56px; }
  .rows-rep .fixcol { grid-column: 1 / -1; grid-row: 2; }
  .rows-rep .w { grid-column: 2; grid-row: 1; }
  .feed-static { grid-column: 1; grid-row: auto; }
  .foot { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
