/* Lyla Research — v8. Black / white / Capitol blue / ember. */
@font-face { font-family: "Archivo"; src: url("fonts/Archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #07080A;
  --ink-2: #111318;
  --white: #FFFFFF;
  --mist: #F3F5F8;          /* cool light gray panels */
  --line: #E3E6EB;
  --gray: #4B5260;          /* body text on white: 7.9:1 */
  --gray-on-ink: #B9C0CC;   /* body text on black: 10:1 */
  --capitol: #2D5BFF;       /* future blue */
  --capitol-ink: #1E44D6;   /* blue text on white: 6.3:1 */
  --ice: #8FE9FF;           /* glow on black */
  --ember: #FF5A1F;         /* fire accent, used small */
  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --phi: 1.618;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; }
.display, .brand, .kicker, .bignum, .fact .n, .tag b, .ticker .track, .record-top .v, .step .num, .rules li::before, .fields b, .who h2, .who .idx, .foot .big, .coord, .num { font-stretch: 125%; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body { background: var(--white); color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, ul, ol { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--capitol); outline-offset: 3px; }

/* scroll progress */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--ember), var(--capitol) 70%, var(--ice)); }

/* header */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 22px clamp(20px, 4vw, 56px); color: var(--white); transition: background .4s var(--ease), padding .4s var(--ease), color .4s; }
.nav.solid, .nav.always-solid { background: rgba(7, 8, 10, .82); backdrop-filter: blur(14px); padding-top: 14px; padding-bottom: 14px; }
.nav.on-light:not(.solid) { color: var(--ink); }
.brand { white-space: nowrap; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .02em; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 14px var(--ember); }
.nav ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: clamp(14px, 2.4vw, 32px); font-size: 16px; font-weight: 500; }
.nav a { text-decoration: none; }
.nav a:not(.btn) { position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-family: var(--sans);
  font-size: 17px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s; }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn:hover { transform: translateY(-2px); }
.btn-blue { background: var(--capitol); color: var(--white); box-shadow: 0 10px 30px -10px rgba(45, 91, 255, .8); }
.btn-blue:hover { box-shadow: 0 16px 40px -10px rgba(45, 91, 255, .95); }
.btn-white { background: var(--white); color: var(--ink); }
.btn-line { border-color: currentColor; background: transparent; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* ===== Golden-ratio stage: two spirals, the bottom one turned 180° ===== */
.phi { position: relative; min-height: 100svh; overflow: hidden; color: var(--white); background: var(--ink); isolation: isolate; }
.phi .bg { position: absolute; inset: -8% 0; z-index: -2; }
.phi .bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); filter: saturate(1.05) contrast(1.05); }
.phi .shade { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7,8,10,.78) 0%, rgba(7,8,10,.35) 40%, rgba(7,8,10,.35) 55%, rgba(7,8,10,.9) 100%),
              radial-gradient(120% 70% at 100% 100%, rgba(45,91,255,.35), transparent 60%),
              radial-gradient(80% 50% at 0% 0%, rgba(255,90,31,.22), transparent 60%); }
.phi .grain { position: absolute; inset: 0; z-index: -1; opacity: .16; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.phi .spiral { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.phi .spiral path, .phi .spiral line { fill: none; stroke: var(--ice); stroke-width: 1.2; vector-effect: non-scaling-stroke; opacity: .55; }
.phi .spiral .grid { stroke: rgba(255,255,255,.14); stroke-width: 1; opacity: 1; }
.phi .spiral .draw { stroke-dasharray: var(--len, 3000); stroke-dashoffset: var(--len, 3000); animation: draw 2.6s var(--ease) .3s forwards; }
.phi .spiral .draw.b { animation-delay: 1.1s; stroke: var(--ember); opacity: .6; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* columns 14.6 | 23.6 | 23.6 | 23.6 | 14.6 ; rows 30.9 | 19.1 | 19.1 | 30.9 */
.phi-grid { position: relative; z-index: 1; min-height: 100svh; display: grid;
  grid-template-columns: 14.6fr 23.6fr 23.6fr 23.6fr 14.6fr; grid-template-rows: 30.9fr 19.1fr 19.1fr 30.9fr;
  padding: clamp(84px, 11vh, 120px) clamp(20px, 4vw, 56px) clamp(28px, 5vh, 56px); }
.cell-A  { grid-column: 1 / 4; grid-row: 1 / 3; align-self: end; padding: 0 4% 4% 0; }   /* big top-left */
.cell-B  { grid-column: 4 / 6; grid-row: 1 / 2; justify-self: end; text-align: right; }   /* top-right */
.cell-D  { grid-column: 5 / 6; grid-row: 2 / 3; align-self: end; justify-self: end; }     /* smallest, top */
.cell-A2 { grid-column: 3 / 6; grid-row: 3 / 5; align-self: end; padding: 4% 0 0 8%; }    /* big bottom-right (A turned 180°) */
.cell-B2 { grid-column: 1 / 3; grid-row: 4 / 5; align-self: end; }                        /* bottom-left */
.cell-D2 { grid-column: 1 / 2; grid-row: 3 / 4; }                                         /* smallest, bottom */

.kicker { font-family: var(--display); font-size: 13px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ice); display: inline-flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.on-white .kicker { color: var(--capitol-ink); }
.display { font-family: var(--display); font-weight: 800; letter-spacing: -.025em; line-height: 1.0; }
.h1 { font-size: clamp(36px, 5.2vw, 80px); margin-top: 18px; }
.h2 { font-size: clamp(32px, 4.2vw, 64px); }
.h3 { font-size: clamp(22px, 2vw, 30px); line-height: 1.15; }
.h1 .hl, .h2 .hl { background: linear-gradient(90deg, var(--ice), var(--capitol)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.on-white .h2 .hl { background: linear-gradient(90deg, var(--capitol), var(--ember)); -webkit-background-clip: text; background-clip: text; }
.hl .w, .hl .w > span { background: inherit; -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(18px, 1.5vw, 21px); max-width: 34em; color: #E6EAF0; }
.on-white .lede { color: var(--gray); }
.tag { font-size: 14px; color: #D3D9E2; line-height: 1.5; max-width: 22em; }
.tag b { display: block; font-family: var(--display); font-weight: 600; font-size: 34px; color: var(--white); line-height: 1.1; margin-bottom: 6px; }
.coord { font-family: var(--display); font-size: 12px; letter-spacing: .2em; color: rgba(255,255,255,.7); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* headline words rise in */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.split .w > span { display: inline-block; transform: translateY(105%); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + 150ms); }
@keyframes rise { to { transform: none; } }

/* ===== White sections ===== */
.on-white { background: var(--white); color: var(--ink); }
.on-ink { background: var(--ink); color: var(--white); }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: clamp(20px, 4vw, 56px); padding-right: clamp(20px, 4vw, 56px); }
.sec { padding-top: clamp(80px, 12vw, 160px); padding-bottom: clamp(80px, 12vw, 160px); }

/* golden split for content: 61.8 / 38.2 */
.gsplit { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 900px) { .gsplit { grid-template-columns: 61.8fr 38.2fr; gap: 64px; } .gsplit.rev { grid-template-columns: 38.2fr 61.8fr; } }

.bignum-wrap { overflow: hidden; }
.bignum { font-family: var(--display); font-weight: 800; font-size: clamp(64px, 12vw, 190px); line-height: .9; letter-spacing: -.04em;
  background: linear-gradient(100deg, var(--ink) 30%, var(--capitol) 75%, var(--ember)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border-top: 1px solid var(--line); margin-top: 56px; }
.fact { padding: 28px 28px 0 0; }
.fact + .fact { border-left: 1px solid var(--line); padding-left: 28px; }
.fact .n { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 4.6vw, 64px); line-height: 1.05; letter-spacing: -.02em; }
.fact p:last-child { font-size: 17px; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; }
.fact p { color: var(--gray); font-size: 16px; margin-top: 6px; }

/* ember band: continuous, glowing, not literal flames */
.ticker { position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background: linear-gradient(90deg, #120300, #5c1504, #c2410c, #ff5a1f, #ffa24c, #ff5a1f, #c2410c, #5c1504, #120300);
  background-size: 300% 100%; animation: heat 14s linear infinite; }
.ticker::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55; mix-blend-mode: screen;
  background-image: radial-gradient(2px 2px at 10% 80%, #ffd8a8, transparent), radial-gradient(1.5px 1.5px at 30% 60%, #fff1dc, transparent),
    radial-gradient(2px 2px at 55% 90%, #ffd8a8, transparent), radial-gradient(1.5px 1.5px at 75% 70%, #fff1dc, transparent), radial-gradient(2px 2px at 90% 85%, #ffd8a8, transparent);
  background-size: 260px 120px; animation: sparks 6s linear infinite; }
.ticker::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,8,10,.55), rgba(7,8,10,.4) 45%, rgba(7,8,10,.55)); }
.ticker .track { display: flex; width: max-content; animation: slide 34s linear infinite; }
.ticker .group { display: flex; align-items: center; gap: 64px; padding: 24px 64px 24px 0; font-family: var(--display); font-weight: 800; font-size: clamp(20px, 2.6vw, 34px); white-space: nowrap; text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.ticker .group span { display: inline-flex; align-items: center; gap: 64px; }
.ticker .group span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff3e0; box-shadow: 0 0 12px #ffb36b, 0 0 24px #ff5a1f; }
.ticker em { font-style: normal; color: #FFE2C7; }
@keyframes slide { to { transform: translateX(-50%); } }
@keyframes heat { to { background-position: 300% 0; } }
@keyframes sparks { from { background-position: 0 0; } to { background-position: 0 -240px; } }

/* record card (dark) */
.record { background: var(--ink-2); border: 1px solid rgba(143,233,255,.18); border-radius: 20px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(45,91,255,.45); }
.record-top { padding: 26px 30px; background: linear-gradient(110deg, #3A0E04, #8A2A0C 55%, var(--ember)); }
.record-top .k { font-size: 14px; color: #FFD9C9; letter-spacing: .04em; }
.record-top .v { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.4vw, 32px); color: #fff; }
.rows { padding: 10px 30px 24px; }
.r { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); color: var(--gray-on-ink); }
.r:last-child { border-bottom: 0; }
.r b { color: var(--white); font-weight: 600; text-align: right; }
.r .nr { color: #8C95A3; font-style: italic; }

/* steps */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; margin-top: 56px; }
.step { border-top: 2px solid var(--ink); padding-top: 22px; }
.step .num { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--capitol-ink); letter-spacing: .1em; }
.step h3 { margin: 10px 0 8px; }
.step p { color: var(--gray); }

/* rules list (approach) */
.rules { list-style: none; padding: 0; counter-reset: r; }
.rules li { counter-increment: r; display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 40px 0; border-top: 1px solid var(--line); }
.rules li::before { content: "0" counter(r); font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1; color: var(--capitol); }
.rules p { color: var(--gray); margin-top: 8px; max-width: 38em; }

.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; overflow: hidden; margin-top: 48px; }
.fields div { background: var(--ink); padding: 30px 26px; transition: background .4s; }
.fields div:hover { background: #0C1430; }
.fields b { display: block; font-family: var(--display); font-weight: 600; font-size: 18px; }
.fields span { color: var(--gray-on-ink); font-size: 15px; }

/* who (clients): expandable rows */
.who { list-style: none; padding: 0; }
.who details { border-top: 1px solid var(--line); position: relative; }
.who details:last-child { border-bottom: 1px solid var(--line); }
.who summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 12px 24px; align-items: center; padding: 36px 0; }
.who summary::-webkit-details-marker { display: none; }
@media (min-width: 900px) { .who summary { grid-template-columns: 14.6fr 38.2fr 41.2fr 6fr; gap: 32px; } }
.who .idx { font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--capitol-ink); letter-spacing: .1em; }
.who h2 { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 2.8vw, 40px); line-height: 1.05; transition: color .3s; }
.who .short { color: var(--gray); font-size: 18px; }
.who .chev { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; justify-self: end; transition: transform .45s var(--ease), background .3s, color .3s, border-color .3s; }
.who details[open] .chev { transform: rotate(180deg); background: var(--capitol); border-color: var(--capitol); color: #fff; }
.who summary:hover h2 { color: var(--capitol-ink); }
.who .more { display: grid; grid-template-columns: 1fr; gap: 16px; padding: 0 0 36px; animation: open .5s var(--ease); }
@media (min-width: 900px) { .who .more { grid-template-columns: 14.6fr 79.4fr 6fr; } .who .more ul { grid-column: 2; } }
.who .more ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.who .more li { background: var(--mist); border-radius: 14px; padding: 20px 22px; color: var(--gray); }
.who .more li b { display: block; color: var(--ink); font-weight: 700; margin-bottom: 4px; }
@keyframes open { from { opacity: 0; transform: translateY(-8px); } }
.who details::after { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 100%; background: linear-gradient(90deg, var(--capitol), var(--ember)); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.who details:hover::after, .who details[open]::after { transform: scaleX(1); }

/* full-bleed image band with clip reveal */
.band { position: relative; height: 72svh; min-height: 420px; overflow: hidden; }
.band img { width: 100%; height: 118%; object-fit: cover; }
.band .shade-b { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,8,10,.82), rgba(7,8,10,.25) 70%); }
.band .over { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 24px; color: #fff; padding: 0 clamp(20px, 6vw, 96px); }
.band .cap { position: absolute; left: clamp(20px, 4vw, 56px); bottom: clamp(20px, 4vw, 48px); color: #fff; font-family: var(--display); font-size: 12px; letter-spacing: .2em; }

/* forms */
.access { min-height: 100svh; display: grid; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .access { grid-template-columns: 61.8fr 38.2fr; } }
.access .left { padding: clamp(120px, 16vh, 170px) clamp(20px, 5vw, 80px) 80px; }
.access .right { padding: clamp(120px, 16vh, 170px) clamp(20px, 4vw, 56px) 80px; background: var(--mist); }
.form { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 40px; max-width: 720px; }
@media (min-width: 700px) { .form { grid-template-columns: 1fr 1fr; } .form .full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 15px; font-weight: 600; color: #DDE3EA; }
.light .field label { color: var(--ink); }
.field input, .field select, .field textarea { font: inherit; font-size: 18px; color: var(--white); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.28); border-radius: 12px; padding: 14px 16px; min-height: 54px; transition: border-color .25s, background .25s, box-shadow .25s; }
.field select option { color: var(--ink); }
.light .field input { color: var(--ink); background: var(--white); border-color: #8A929F; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--capitol); box-shadow: 0 0 0 4px rgba(45,91,255,.25); }
.note { font-size: 15px; color: var(--gray-on-ink); }
.light .note { color: var(--gray); }
.login-card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 36px; display: flex; flex-direction: column; gap: 18px; max-width: 440px; box-shadow: 0 30px 60px -30px rgba(7,8,10,.25); }

/* footer */
.foot { background: var(--ink); color: var(--gray-on-ink); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-top: 48px; padding-bottom: 48px; font-size: 15px; }
.foot .big { font-family: var(--display); font-weight: 800; color: var(--white); font-size: clamp(48px, 11vw, 170px); line-height: .9; letter-spacing: -.04em; padding: 80px 0 24px; opacity: .95; }
.foot .big span { color: var(--ember); }

/* client area */
.client-bar { background: var(--ink); color: var(--white); }
.client-bar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.client-bar .who-am-i { display: flex; align-items: center; gap: 22px; font-size: 15px; color: var(--gray-on-ink); }
.search-hero { background: radial-gradient(90% 120% at 100% 0%, rgba(45,91,255,.14), transparent 60%), var(--white); padding: 80px 0 40px; }
.search-form { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; position: relative; }
.search-form input { flex: 1 1 420px; min-width: 0; font: inherit; font-size: 21px; padding: 20px 24px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); }
.search-form input:focus { outline: none; border-color: var(--capitol); box-shadow: 0 0 0 5px rgba(45,91,255,.2); }
.result { padding: 20px 0 120px; }

/* ===== reveal on scroll (JS adds .in) ===== */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal="left"] { transform: translateX(-60px); }
[data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease); }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal].in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }

/* phone: golden grid stacks */
@media (min-width: 1100px) { .fields { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 760px) {
  .phi-grid { display: flex; flex-direction: column; justify-content: flex-end; gap: 28px; padding-top: 110px; }
  .cell-B, .cell-D, .cell-D2 { display: none; }
  .cell-A, .cell-A2 { padding: 0; }
  .nav ul li:not(:last-child):not(.keep) { display: none; }
  .fact + .fact { border-left: 0; padding-left: 0; }
  .rules li { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; clip-path: none; }
  .split .w > span { transform: none; }
  .phi .spiral .draw { stroke-dashoffset: 0; }
}

/* ===== v5 additions ===== */
:root { --ease-out: cubic-bezier(0.23, 1, 0.32, 1); --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1); }
.btn { transition: transform 160ms var(--ease-out), box-shadow 200ms var(--ease-out), background-color 200ms ease, color 200ms ease; }
.btn:active { transform: scale(0.97); }
.btn:hover { transform: none; }
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: translateY(-2px); } }
.who .chev { transition: transform 240ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease; }

/* embers drifting up in the hero */
.embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* building types */
.types { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.types::before { content: ""; position: absolute; left: -10%; right: -10%; bottom: -30%; height: 70%;
  background: radial-gradient(50% 60% at 50% 100%, rgba(255,90,31,.45), rgba(255,90,31,.12) 45%, transparent 70%); filter: blur(10px); animation: glow 5s ease-in-out infinite alternate; }
@keyframes glow { from { opacity: .7; transform: scaleX(1); } to { opacity: 1; transform: scaleX(1.06); } }
.skyline { position: relative; width: 100%; height: auto; margin-top: 56px; display: block; }
.skyline .b { fill: rgba(7,8,10,.85); stroke: var(--ice); stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: var(--len, 2000); stroke-dashoffset: var(--len, 2000); transition: stroke-dashoffset 1.8s var(--ease-in-out); transition-delay: var(--d, 0ms); }
.skyline.in .b { stroke-dashoffset: 0; }
.skyline .win { fill: #FFB36B; opacity: 0; transition: opacity .5s ease; transition-delay: calc(var(--d, 0ms) + 1.3s); }
.skyline.in .win { opacity: .9; animation: flicker 3.5s ease-in-out infinite; animation-delay: var(--f, 0s); }
@keyframes flicker { 0%,100% { opacity: .9; } 50% { opacity: .55; } }
.skyline .scan { fill: url(#scanGrad); opacity: 0; }
.skyline.in .scan { opacity: 1; animation: scan 6s var(--ease-in-out) 2.4s infinite; }
@keyframes scan { 0% { transform: translateX(-200px); } 100% { transform: translateX(1400px); } }
.type-labels { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 28px; position: relative; }
.type-labels li { background: rgba(7,8,10,.9); border: 1px solid rgba(143,233,255,.18); border-radius: 12px; padding: 18px 20px; font-family: var(--display); font-stretch: 125%; font-weight: 700; font-size: 16px; }
.type-labels li span { display: block; font-family: var(--sans); font-stretch: 100%; font-weight: 500; font-size: 14px; color: var(--gray-on-ink); margin-top: 4px; }

/* security */
.secure { background: radial-gradient(70% 90% at 100% 0%, rgba(45,91,255,.22), transparent 60%), var(--ink-2); color: #fff; }
.locks { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-top: 48px; }
.locks li { border: 1px solid rgba(143,233,255,.2); border-radius: 18px; padding: 28px; background: rgba(255,255,255,.03); position: relative; overflow: hidden; }
.locks li::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(143,233,255,.12) 50%, transparent 70%); transform: translateX(-100%); }
.locks li.in::after { animation: sheen 1.6s var(--ease-out) var(--d, 0ms) 1; }
@keyframes sheen { to { transform: translateX(100%); } }
.locks svg { width: 40px; height: 40px; stroke: var(--ice); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.locks h3 { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 22px; margin: 18px 0 6px; }
.locks p { color: var(--gray-on-ink); font-size: 16px; }
.lockbig { width: min(260px, 60%); display: block; margin-left: auto; }
.lockbig path, .lockbig rect, .lockbig circle { fill: none; stroke: var(--ice); stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-dasharray: 900; stroke-dashoffset: 900; transition: stroke-dashoffset 2s var(--ease-in-out); }
.lockbig.in path, .lockbig.in rect, .lockbig.in circle { stroke-dashoffset: 0; }
.lockbig .core { stroke: var(--ember); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: .5; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .skyline .b { stroke-dashoffset: 0; } .skyline .win { opacity: .9; } .lockbig path, .lockbig rect, .lockbig circle { stroke-dashoffset: 0; }
  .embers { display: none; }
}

/* ===== v6: corporate layer (mono labels, menus, address bar, globe) ===== */
@font-face { font-family: "JetBrains Mono"; src: url("fonts/JetBrainsMono.woff2") format("woff2"); font-weight: 500; font-display: swap; }
:root { --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace; }
.kicker { font-family: var(--mono); font-stretch: 100%; font-weight: 500; letter-spacing: .14em; }
.mono { font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; }

/* nav v6 */
.nav { gap: 20px; }
.nav .nav-addr { flex: 0 1 300px; display: flex; min-width: 0; }
.nav .nav-addr input { flex: 1; min-width: 0; font: inherit; font-size: 14px; padding: 10px 14px; border-radius: 999px 0 0 999px; border: 1px solid rgba(255,255,255,.35); border-right: 0; background: rgba(255,255,255,.08); color: #fff; }
.nav .nav-addr input::placeholder { color: rgba(255,255,255,.7); }
.nav .nav-addr button { border: 1px solid rgba(255,255,255,.35); border-radius: 0 999px 999px 0; background: rgba(255,255,255,.14); color: #fff; padding: 0 14px; cursor: pointer; min-height: 40px; }
.nav.solid .nav-addr input, .nav.always-solid .nav-addr input { background: rgba(255,255,255,.1); }
.menu-btn { font: inherit; font-size: 16px; font-weight: 500; color: inherit; background: none; border: 0; cursor: pointer; padding: 8px 2px; display: inline-flex; align-items: center; gap: 6px; }
.menu-btn svg { transition: transform 200ms var(--ease-out); }
.menu-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.mega { position: fixed; left: 0; right: 0; top: 72px; z-index: 49; background: rgba(7,8,10,.96); backdrop-filter: blur(14px); border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); color: #fff;
  animation: megaIn 200ms var(--ease-out); }
@keyframes megaIn { from { opacity: 0; transform: translateY(-6px); } }
.mega .cols { max-width: 1280px; margin: 0 auto; padding: 36px clamp(20px,4vw,56px) 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; }
.mega .col { border-left: 1px solid rgba(255,255,255,.25); padding: 4px 28px; }
.mega h3 { font-family: var(--sans); font-weight: 300; font-size: 28px; margin-bottom: 26px; }
.mega ul { list-style: none; padding: 0; display: grid; gap: 14px; }
.mega a { font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; font-size: 16px; text-decoration: none; color: #E9EDF3; }
.mega a:hover { color: var(--ice); }
@media (max-width: 960px) { .nav .nav-addr { display: none; } }

/* hero address bar */
.addr { display: grid; gap: 10px; max-width: 620px; }
.addr .row { display: flex; gap: 0; background: #fff; border-radius: 999px; padding: 6px; box-shadow: 0 20px 60px -20px rgba(0,0,0,.6); }
.addr input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 18px; padding: 12px 18px; color: var(--ink); border-radius: 999px; }
.addr input:focus { outline: none; }
.addr .row:focus-within { box-shadow: 0 0 0 4px rgba(45,91,255,.45), 0 20px 60px -20px rgba(0,0,0,.6); }
.addr .addr-out { background: rgba(7,8,10,.78); border: 1px solid rgba(143,233,255,.25); border-radius: 16px; padding: 16px 18px; color: #E6EAF0; font-size: 16px; }
.addr .addr-out a { color: var(--ice); font-weight: 600; }

/* globe section */
.globe-sec { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.globe-grid { display: grid; grid-template-columns: 1fr; align-items: center; gap: 24px; min-height: 100svh; padding-top: 96px; padding-bottom: 72px; }
@media (min-width: 1000px) { .globe-grid { grid-template-columns: 38.2fr 61.8fr; } }
canvas.globe { width: 100%; aspect-ratio: 1 / 1; max-height: 82svh; display: block; }
.odo { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: clamp(56px, 7.4vw, 112px); line-height: 1; letter-spacing: -.03em; display: inline-flex; margin: 18px 0 8px; font-variant-numeric: tabular-nums; }
.odo-col { display: inline-block; height: 1em; overflow: hidden; }
.odo-strip { display: flex; flex-direction: column; transition: transform 1400ms var(--ease-in-out); }
.odo-strip span { height: 1em; line-height: 1; }
.odo-sep { display: inline-block; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; font-size: 13px; color: var(--gray-on-ink); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: -1px; }
.src { font-size: 12px; color: #9AA3B2; margin-top: 18px; line-height: 1.6; }
.globe-facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-top: 1px solid rgba(255,255,255,.14); margin-top: 28px; }
.globe-facts div { padding: 18px 16px 0 0; }
.globe-facts div + div { border-left: 1px solid rgba(255,255,255,.14); padding-left: 16px; }
.globe-facts b { display: block; font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: clamp(18px, 1.6vw, 22px); white-space: nowrap; }
.globe-facts span { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-on-ink); }
@media (prefers-reduced-motion: reduce) { .odo-strip { transition: none; } .mega { animation: none; } }

/* v7: one top bar everywhere */
.nav.always-solid { min-height: 72px; box-sizing: border-box; }
.nav .btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.nav .btn-ghost:hover { border-color: #fff; }
.mega .mega-addr { display: none; }
@media (max-width: 960px) {
  .mega .mega-addr { display: flex; max-width: 1280px; margin: 24px clamp(20px,4vw,56px) 0; }
  .mega .mega-addr input { flex: 1; font: inherit; font-size: 16px; padding: 12px 16px; border-radius: 999px 0 0 999px; border: 1px solid rgba(255,255,255,.35); border-right: 0; background: rgba(255,255,255,.08); color: #fff; }
  .mega .mega-addr button { border: 1px solid rgba(255,255,255,.35); border-radius: 0 999px 999px 0; background: rgba(255,255,255,.14); color: #fff; padding: 0 16px; min-height: 44px; }
}
@media (max-width: 760px) {
  .nav ul li.keep { display: list-item !important; }
  .nav ul li.hide-sm { display: none; }
  .nav ul { gap: 12px; }
}
.nav.client + main .search-hero { padding-top: 140px; }
.credit-list { list-style: none; padding: 0; margin-top: 18px; display: grid; gap: 14px; font-size: 18px; }
.credit-list li { padding: 14px 0; border-top: 1px solid #E3E7EE; }
@media (max-width: 760px) {
  .nav.always-solid { flex-wrap: nowrap; padding-left: 16px; padding-right: 16px; gap: 10px; }
  .nav ul { flex-wrap: nowrap; gap: 10px; font-size: 15px; }
  .nav .brand { white-space: nowrap; font-size: 16px; }
  .nav .btn-sm { white-space: nowrap; padding: 9px 14px; font-size: 14px; }
  .mega { top: 64px; }
}
@media (max-width: 380px) { .nav .brand { font-size: 14px; } }
@media (max-width: 430px) {
  .nav.always-solid { padding-left: 14px; padding-right: 14px; gap: 6px; }
  .nav .brand { font-size: 14px; }
  .nav ul { gap: 8px; font-size: 14px; }
  .nav .btn-sm { padding: 8px 12px; font-size: 13px; }
}
@media (max-width: 380px) { .nav .brand { font-stretch: 100%; font-size: 14px; } .nav .btn-sm { padding: 8px 10px; } }

/* v8: calm. Fewer moving parts, simple fades only. */
.phi .spiral .draw { animation: none; stroke-dashoffset: 0; }
.split .w > span { animation: none; transform: none; }
.skyline .win, .skyline.in .win { animation: none; opacity: .75; }
.skyline .scan, .skyline.in .scan { display: none; }
.lockbig .core { animation: none; }
.locks li.in::after { animation: none; }
[data-reveal] { transform: none !important; clip-path: none !important; transition: opacity .5s ease-out !important; }
.fireline { background: var(--ink); color: var(--gray-on-ink); border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); }
.fireline .wrap { padding-top: 18px; padding-bottom: 18px; }
.fireline p { font-size: 16px; }
.fireline b { color: #fff; font-weight: 600; }
.globe-sec .odo { font-variant-numeric: tabular-nums; }
/* simple top bar */
.nav .show-sm { display: none; }
.mega.simple { padding: 8px clamp(20px,4vw,56px) 20px; }
.mega.simple ul { list-style: none; padding: 0; max-width: 1280px; margin: 0 auto; }
.mega.simple a { display: block; padding: 14px 0; font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
@media (min-width: 761px) { .mega.simple { display: none !important; } }
@media (max-width: 760px) {
  .nav .show-sm { display: list-item; }
  .menu-btn { background: none; border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 999px; padding: 8px 12px; font: inherit; font-size: 14px; }
}

/* End of Lyndon's v8 design (changes listed in the tests). Below: only what the working search needs, in its colors. */
[hidden] { display: none !important; }
.search-form .combo { flex: 1 1 420px; min-width: 0; }
.search-form .box { position: relative; }
.search-form .box input { position: relative; width: 100%; background: transparent; line-height: normal; }
.search-form .btn:disabled { opacity: .6; cursor: progress; }
.ghost { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 26px; border: 2px solid transparent; border-radius: 999px;
  background: var(--white); color: var(--gray); font-size: 21px; line-height: normal; white-space: pre; overflow: hidden; pointer-events: none; }
.ghost-typed { visibility: hidden; }
.no-match { margin-top: 12px; color: var(--gray); }
.suggest-panel { position: absolute; z-index: 5; top: calc(100% + 8px); left: 0; right: 0; background: var(--white); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: 0 30px 60px -30px rgba(7,8,10,.35); max-height: 60vh; overflow-y: auto; }
.suggest-list { margin: 0; padding: 8px 0; list-style: none; }
.suggest-list li { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 8px 22px; cursor: pointer; }
.suggest-list li:hover { background: var(--mist); }
.suggest-list li[aria-selected="true"] { background: var(--mist); box-shadow: inset 4px 0 var(--capitol); }
.pin { flex: none; width: 24px; height: 24px; fill: var(--gray); }
.suggest-list li[aria-selected="true"] .pin { fill: var(--capitol-ink); }
.suggest-list .more-row { justify-content: center; gap: 10px; min-height: 48px; border-top: 1px solid var(--line); color: var(--gray); font-size: 15px; font-weight: 600; }
.suggest-list .more-row .dots { font-size: 20px; letter-spacing: .18em; color: var(--capitol-ink); line-height: 1; }
.suggest-list .more-row[aria-selected="true"] { color: var(--ink); }
.suggest-list .more-row .more-count { font-variant-numeric: tabular-nums; }
.addr { position: relative; }
.hero-panel { top: auto; bottom: calc(100% + 8px); text-align: left; }   /* the main page's box sits low on the photo: open upward */
.lines { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.35; }
.lines b { font-weight: 700; }
.main-line { display: block; font-size: 19px; color: var(--ink); }
.second-line { display: block; font-size: 16px; color: var(--gray); }
.did-you-mean { display: block; font-size: 14px; font-weight: 600; color: var(--capitol-ink); }
.tag-record { flex: none; padding: 4px 12px; border-radius: 999px; background: var(--capitol-ink); color: var(--white); font-size: 14px; font-weight: 600; white-space: nowrap; }
.status { padding: 24px 30px; background: var(--mist); border: 1px solid var(--line); border-radius: 20px; font-size: 19px; color: var(--ink); }
.status-address { display: block; margin-bottom: 4px; font-weight: 600; overflow-wrap: anywhere; }
.result-address { margin-bottom: 14px; font-weight: 600; overflow-wrap: anywhere; }
.record-top.quiet { background: linear-gradient(110deg, var(--ink), #2A2F3A); }
.record-top .k + .k { margin-top: 6px; }
.r b { overflow-wrap: anywhere; }
.structure-title { padding-top: 18px; font-family: var(--display); font-weight: 600; font-size: 16px; color: var(--ice); }
.rows + .rows { border-top: 1px solid rgba(143,233,255,.18); }
.show-more { margin: 0 30px 24px; }
.record .show-more { color: var(--white); }
.result .note { margin-top: 12px; color: var(--gray); }
@media (max-width: 760px) {
  .suggest-list li { flex-wrap: wrap; }
  .lines { flex-basis: 60%; }
  .tag-record { margin-left: 38px; }
  .rows, .record-top { padding-left: 20px; padding-right: 20px; }
  .r { flex-direction: column; gap: 2px; }
  .r b { text-align: left; }
  .show-more { margin: 0 20px 20px; }
  .search-form .combo, .search-form .btn { flex: 1 1 100%; justify-content: center; }
}

/* Phone fix for v4 (2026-11-26): the dropdown rows' short line was squeezed into a thin column, and
   "Request access" in the menu wrapped. Desktop keeps the v4 columns. */
@media (max-width: 899px) {
  .who summary { grid-template-columns: 1fr auto; gap: 8px 16px; }
  .who summary .idx { grid-column: 1 / -1; }
  .who summary h2, .who summary .short { grid-column: 1; }
  .who summary .chev { grid-column: 2; grid-row: 2 / span 2; align-self: center; }
  .nav .btn-sm { white-space: nowrap; }
}

/* Sign-in (B2): the client area stays hidden until auth.js has checked the session. */
html.auth-pending main, html.auth-pending .sidebar, html.auth-pending .nav.client nav { visibility: hidden; }
.client-bar .wrap { flex-wrap: wrap; }
#signed-in-as { overflow-wrap: anywhere; min-width: 0; }
.login-card .btn:disabled { opacity: .6; cursor: progress; }

/* Search page redesign (in progress, 2026-11-26): sidebar, Help, phone menu, Save on the strip. */
.client-layout { display: grid; grid-template-columns: 300px 1fr; grid-template-areas: "side main"; min-height: calc(100svh - 70px); }
.client-layout main { grid-area: main; min-width: 0; }
.sidebar { grid-area: side; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; background: var(--ink-2); color: var(--gray-on-ink); padding: 28px 20px; position: sticky; top: 0; height: calc(100svh - 70px); overflow-y: auto; }
.side-head { display: flex; justify-content: space-between; align-items: baseline; }
.side-title { font-family: var(--display); font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--white); }
.side-block + .side-block { margin-top: 28px; }
.side-list { list-style: none; padding: 0; margin-top: 10px; }
.side-item { display: flex; align-items: center; gap: 4px; }
.side-open { flex: 1; min-width: 0; text-align: left; background: none; border: 0; color: inherit; font: inherit; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.side-open:hover { background: rgba(255,255,255,.06); }
.side-address { display: block; color: var(--white); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-damage { display: block; font-size: 14px; color: var(--gray-on-ink); }
.side-remove, .help-close { flex: none; width: 36px; height: 36px; display: grid; place-items: center; background: none; border: 0; border-radius: 50%; color: var(--gray-on-ink); cursor: pointer; }
.side-remove svg, .help-close svg { width: 18px; height: 18px; }
.side-remove:hover, .help-close:hover { background: rgba(255,255,255,.1); color: var(--white); }
.side-link { background: none; border: 0; color: var(--ice); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
.side-empty, .side-error { margin-top: 8px; font-size: 14px; }
.side-foot { position: relative; }
.help-button { display: inline-flex; align-items: center; gap: 10px; background: none; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: var(--white); font: inherit; font-size: 15px; padding: 10px 18px; cursor: pointer; }
.help-panel { position: absolute; left: 0; bottom: calc(100% + 10px); width: min(360px, 86vw); background: var(--ink); border: 1px solid rgba(143,233,255,.25); border-radius: 16px; padding: 18px 20px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); z-index: 20; }
.help-head { display: flex; justify-content: space-between; align-items: center; }
.faq { margin: 10px 0 16px; font-size: 14px; }
.faq dt { color: var(--white); font-weight: 600; margin-top: 10px; }
.faq dd { margin: 2px 0 0; color: var(--gray-on-ink); }
.side-close { display: none; margin: -8px 0 12px auto; width: 44px; height: 44px; place-items: center; background: none; border: 0; border-radius: 50%; color: var(--white); cursor: pointer; }
.menu-button { display: none; background: none; border: 0; color: var(--white); width: 44px; height: 44px; place-items: center; cursor: pointer; }
.side-backdrop { position: fixed; inset: 0; background: rgba(7,8,10,.55); z-index: 39; }
.record-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.strip-text { min-width: 0; flex: 1; }
.strip-address { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.save-btn { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.6); background: rgba(7,8,10,.55); color: var(--white); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.save-btn svg { width: 18px; height: 18px; }
.save-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--white); }
.save-btn:disabled { opacity: .6; cursor: progress; }
@media (max-width: 899px) {
  .client-layout { grid-template-columns: 1fr; grid-template-areas: "main"; }
  .menu-button, .side-close { display: grid; }
  /* Save sits in the strip's top-right corner on a phone, so the damage line keeps its full width
     and the strip keeps its exact height. */
  .record-top { position: relative; }
  .strip-address { padding-right: 104px; }
  .record-top .save-btn { position: absolute; top: 14px; right: 14px; min-height: 36px; height: 36px; padding: 0 12px; font-size: 14px; }
  .sidebar { position: fixed; top: 0; left: 0; bottom: 0; height: 100svh; width: min(320px, 86vw); z-index: 40; transform: translateX(-100%); transition: transform .3s var(--ease); }
  .sidebar.open { transform: none; }
}

/* Saved view (2026-11-26): tiles like small files, 5 to a row (2 on a phone); a tile grows into the full card. */
.side-title-btn { background: none; border: 0; padding: 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.side-title-btn:hover { text-decoration: underline; }
.side-all { display: block; margin: 6px 0 0 10px; }
.saved-view { padding: 8px 0 120px; }
.saved-wrap { max-width: 1180px; }
.saved-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.saved-head .note { color: var(--gray); margin-top: 4px; }
#saved-view-title:focus { outline: none; }
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 160px; padding: 18px 16px 14px;
  text-align: left; font: inherit; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 10px 24px -14px rgba(7, 8, 10, .45); cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.tile::after { content: ""; position: absolute; top: -1px; right: -1px; width: 18px; height: 18px; border-top-right-radius: 14px;
  background: linear-gradient(225deg, var(--mist) 50%, var(--line) 50%); }
.tile:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(7, 8, 10, .5); }
.tile-street { font-weight: 700; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; padding-right: 12px; }
.tile-place { font-size: 14px; line-height: 1.35; color: var(--gray); overflow-wrap: anywhere; }
.tile-fire { font-size: 14px; color: var(--gray); }
.chip { margin-top: auto; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
@media (min-width: 900px) { .client-layout { background: linear-gradient(90deg, var(--ink-2) 300px, transparent 300px); } .sidebar { align-self: start; } }
.chip-destroyed { background: #8A2A0C; color: var(--white); }
.chip-major { background: #C2410C; color: var(--white); }
.chip-minor { background: #FFE2C7; color: #5C1504; }
.chip-affected { background: #FFF1DC; color: #5C1504; }
.chip-none { background: var(--mist); color: var(--ink); }
.chip-other { background: var(--line); color: var(--gray); }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 32px; }
.page-btn { min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white);
  color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.page-btn[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.saved-backdrop { position: fixed; inset: 0; z-index: 69; background: rgba(7, 8, 10, .45); backdrop-filter: blur(2px); }
.saved-dialog { position: fixed; inset: 0; z-index: 70; margin: auto; width: min(780px, 92vw); height: fit-content; max-height: 88vh; overflow: auto;
  padding: 18px; background: var(--white); border-radius: 24px; transform-origin: top left; box-shadow: 0 40px 120px -20px rgba(7, 8, 10, .7); }
.saved-dialog .note { color: var(--gray); margin-top: 10px; }
.saved-close { display: block; margin: 0 0 10px auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--white); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }
@media (max-width: 899px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tile { min-height: 150px; padding: 16px 12px 12px; }
  .saved-dialog { width: 94vw; max-height: 92vh; padding: 12px; }
}

/* v8 calm, completed (2026-11-28): the v5 parts still moving after the v8 block. Simple fade-ins only. */
.types::before { animation: none; }
.skyline .b { transition: none; stroke-dashoffset: 0; }
.mega { animation: none; }
.btn:hover, .tile:hover { transform: none; }

/* The signed-in pages use the same fixed top bar: the page starts below it. */
.nav.client ~ .client-layout { padding-top: 72px; }
.nav.client ~ .client-layout .sidebar { top: 72px; height: calc(100svh - 72px); }
.nav.client .nav-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.nav.client .nav-link:hover { text-decoration: underline; }
.nav.client [aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
@media (max-width: 899px) { .nav.client ~ .client-layout .sidebar { top: 72px; height: calc(100svh - 72px); } .nav.client ~ .client-layout .side-backdrop { top: 72px; } }
@media (min-width: 761px) and (max-width: 899px) { .nav.client .show-sm { display: list-item; } }
.nav.client { background: var(--ink); backdrop-filter: none; }   /* same black bar as over the dark heroes */

/* Photos: darker shades so the text on them passes the contrast check at 1440 and 390 (measured, test_photo_contrast.py).
   The headline gradient ends in Capitol blue, which needs a near-black backdrop; the photo shows more where no text sits. */
.phi .shade { background: linear-gradient(180deg, rgba(7,8,10,.94) 0%, rgba(7,8,10,.89) 45%, rgba(7,8,10,.89) 60%, rgba(7,8,10,.95) 100%),
              radial-gradient(120% 70% at 100% 100%, rgba(45,91,255,.12), transparent 60%); }
.band .shade-b { background: linear-gradient(90deg, rgba(7,8,10,.95), rgba(7,8,10,.93) 62%, rgba(7,8,10,.5) 92%); }
@media (max-width: 760px) { .band .shade-b { background: rgba(7,8,10,.9); } }

/* Brighter (2026-11-29): the middle sections are white or light gray; the photos, the globe and the top bar stay dark. */
.mist { background: var(--mist); }
.types.on-white { background: var(--white); color: var(--ink); }
.types.on-white::before { background: radial-gradient(50% 60% at 50% 100%, rgba(255,90,31,.16), rgba(255,90,31,.05) 45%, transparent 70%); }
.types.on-white .skyline .b { fill: var(--white); stroke: var(--ink); }
.types.on-white .type-labels li { background: var(--mist); border-color: var(--line); color: var(--ink); }
.types.on-white .type-labels li span { color: var(--gray); }
.secure.on-white { background: radial-gradient(70% 90% at 100% 0%, rgba(45,91,255,.08), transparent 60%), var(--mist); color: var(--ink); }
.secure.on-white .locks li { background: var(--white); border-color: var(--line); }
.secure.on-white .locks svg, .secure.on-white .lockbig path, .secure.on-white .lockbig rect, .secure.on-white .lockbig circle { stroke: var(--capitol-ink); }
.secure.on-white .lockbig .core { stroke: var(--ember); }
.secure.on-white .locks p { color: var(--gray); }
.mist .fields { background: var(--line); border-color: var(--line); }
.mist .fields div { background: var(--white); }
.mist .fields div:hover { background: var(--mist); }
.mist .fields span { color: var(--gray); }
.foot { background: var(--mist); color: var(--gray); border-top: 1px solid var(--line); }
.foot .big { color: var(--ink); }
.foot a { color: var(--ink); }
/* The search page's sidebar, light too (Help stays a small dark panel). */
.sidebar { background: var(--mist); color: var(--gray); border-right: 1px solid var(--line); }
@media (min-width: 900px) { .client-layout { background: linear-gradient(90deg, var(--mist) 300px, transparent 300px); } }
.sidebar .side-title, .sidebar .side-address, .sidebar .side-close { color: var(--ink); }
.sidebar .side-damage, .sidebar .side-remove { color: var(--gray); }
.sidebar .side-open:hover { background: var(--white); }
.sidebar .side-remove:hover { background: var(--line); color: var(--ink); }
.sidebar .side-link { color: var(--capitol-ink); }
.sidebar .help-button { border-color: var(--line); background: var(--white); color: var(--ink); }
.sidebar .side-title-btn { color: inherit; }
/* Phones: compact dropdown rows (tag on the same line), so the 5 addresses and the ••• row fit on screen. */
@media (max-width: 760px) {
  .suggest-list li { flex-wrap: nowrap; min-height: 54px; gap: 10px; padding: 6px 14px; }
  .suggest-list .lines { flex-basis: auto; line-height: 1.25; }
  .suggest-list .main-line { font-size: 16px; }
  .suggest-list .second-line { font-size: 14px; }
  .suggest-list .pin { width: 20px; height: 20px; }
  .suggest-list .tag-record { margin-left: 0; padding: 3px 9px; font-size: 12px; }
  .suggest-list .more-row { min-height: 44px; }
  .hero-panel { max-height: calc(100svh - 72px - 150px); }
}

/* White openings (2026-11-29): the same golden-ratio grid on white. Headline in the big top-left cell, words and
   actions in the big bottom-right cell, the photo as it is in the top-right cell (38.2% wide, half the height). */
.phi.light { background: var(--white); color: var(--ink); }
.phi.light .cell-photo { position: relative; inset: auto; z-index: 0; grid-column: 4 / 6; grid-row: 1 / 3; margin: 0 0 6% 6%;
  border-radius: 24px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(7,8,10,.35); }
.phi.light .cell-photo img { width: 100%; height: 100%; object-fit: cover; transform: none; filter: none; display: block; }
.phi.light .cell-A { grid-column: 1 / 4; }
.phi.light .h1 .hl { background: linear-gradient(90deg, var(--capitol), var(--ember)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.phi.light .lede { color: var(--gray); }
.phi.light .addr .row { border: 1px solid var(--line); box-shadow: 0 20px 50px -25px rgba(7,8,10,.3); }
.phi.light .addr .addr-out { background: var(--mist); border-color: var(--line); color: var(--ink); }
.phi.light .addr .addr-out a { color: var(--capitol-ink); }
.fireline { background: var(--mist); color: var(--gray); border-color: var(--line); }
.fireline b { color: var(--ink); }
@media (max-width: 760px) {
  .phi.light .phi-grid { justify-content: flex-start; min-height: auto; padding-bottom: 56px; }
  .phi.light .cell-photo { order: -1; margin: 0; height: 42svh; }
}
.phi.light .phi-grid { min-height: 92svh; }
.phi-facts { display: flex; gap: 40px; padding-bottom: 10px; }
.phi-facts p { color: var(--gray); font-size: 15px; line-height: 1.3; }
.phi-facts b { display: block; font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: clamp(28px, 2.6vw, 40px); color: var(--ink); letter-spacing: -.02em; }
.nav:not(.client) { background: var(--ink); backdrop-filter: none; }
@media (max-width: 760px) {
  .phi.light .cell-A, .phi.light .cell-A2 { align-self: stretch; min-width: 0; }
  .phi.light .phi-facts { display: flex; order: 3; }
}
.phi.light .addr { max-width: min(620px, 100%); grid-template-columns: minmax(0, 1fr); }
.phi.light:not(:has(form)) .phi-grid { min-height: 66svh; }
@media (max-width: 760px) { .phi.light:not(:has(form)) .phi-grid { min-height: auto; } }
/* Signed out: the dropdown's one row asks to log in (no addresses). */
.gate-panel { padding: 18px 20px; display: grid; gap: 14px; }
.gate-text { display: flex; align-items: center; gap: 12px; color: var(--ink); font-size: 17px; font-weight: 600; }
.gate-text svg { flex: none; color: var(--capitol-ink); }
.gate-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.gate-panel .btn-line { color: var(--ink); }

/* Free summary pages: fires, ZIP code areas, what helped homes survive (built by build_pages.py). */
.sum { padding-top: clamp(120px, 14vw, 170px); }
.sum-lede { margin-top: 18px; }
.sum-h { margin-top: 56px; }
.sum-facts { display: flex; flex-wrap: wrap; gap: 20px 48px; margin-top: 40px; }
.sum-facts p { color: var(--gray); font-size: 15px; line-height: 1.3; }
.sum-facts b { display: block; font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: clamp(30px, 3.4vw, 48px); color: var(--ink); letter-spacing: -.02em; }
.dmg-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--mist); margin-top: 36px; }
.dmg-bar span, .key { display: block; }
.d-destroyed { background: var(--ember); }
.d-major { background: var(--capitol-ink); }
.d-minor { background: var(--capitol); }
.d-affected { background: var(--ice); }
.d-none { background: var(--line); }
.d-inaccessible { background: var(--gray); }
.key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 10px; vertical-align: -1px; }
.dmg-table, .fire-table, .rate-table { width: 100%; border-collapse: collapse; margin-top: 20px; font-size: 16px; }
.dmg-table th, .dmg-table td, .fire-table th, .fire-table td, .rate-table th, .rate-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); font-weight: 400; }
.dmg-table thead th, .fire-table thead th, .rate-table thead th { font-size: 13px; font-weight: 600; color: var(--gray); letter-spacing: .04em; }
.dmg-table td, .fire-table td:nth-child(n+4), .rate-table td:last-child { font-variant-numeric: tabular-nums; }
.fire-table th[scope="row"] a, .sum-list a, .zip-grid a, .sum-cta a, .sum-notes a { color: var(--capitol-ink); font-weight: 600; }
.table-wrap { overflow-x: auto; max-height: 70vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 16px; margin-top: 20px; }
.table-wrap .fire-table { margin-top: 0; }
.table-wrap thead th { position: sticky; top: 0; background: var(--white); }
.sum-list { list-style: none; padding: 0; margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 24px; }
.sum-list li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 8px 0; }
.sum-list span { color: var(--gray); font-variant-numeric: tabular-nums; }
.zip-grid { list-style: none; padding: 0; margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; }
.zip-grid a { display: block; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; text-align: center; font-variant-numeric: tabular-nums; }
.zip-grid a:hover { background: var(--mist); }
.sum-notes { margin-top: 56px; padding: 22px 24px; background: var(--mist); border-radius: 16px; display: grid; gap: 8px; font-size: 15px; color: var(--gray); }
.sum-cta { margin-top: 28px; }
.zip-find { margin-top: 32px; max-width: 420px; display: grid; gap: 8px; }
.zip-find label { font-weight: 600; }
.zip-find .row { display: flex; gap: 10px; }
.zip-find input { flex: 1; min-width: 0; font: inherit; padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; }
.zip-out { color: var(--ink); }
.rate-table th[scope="row"] { width: 34%; }
.rate-bar { display: inline-block; width: 120px; height: 8px; border-radius: 999px; background: var(--mist); margin-right: 12px; vertical-align: 1px; overflow: hidden; }
.rate-bar span { display: block; height: 100%; background: var(--ember); }
@media (max-width: 760px) { .rate-bar { width: 60px; } .rate-table, .dmg-table, .fire-table { font-size: 15px; } }
.rate-table .top-fire { color: var(--gray); font-size: 14px; }
@media (max-width: 760px) { .rate-table th, .rate-table td { padding: 10px 6px; } .rate-bar { display: none; } }
.sum-sub { margin-top: 8px; color: var(--gray); font-size: 15px; }
/* The "no record" result: the ZIP code area's summary and the nearest recorded fires. */
.no-record { margin-top: 16px; padding: 24px 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.nr-zip { font-size: 18px; color: var(--ink); }
.nr-zip a, .nr-fires a { color: var(--capitol-ink); font-weight: 600; }
.nr-title { margin-top: 22px; font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 18px; }
.nr-fires { list-style: none; padding: 0; margin-top: 8px; }
.nr-fires li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.nr-note { margin-top: 12px; font-size: 14px; color: var(--gray); }
@media (max-width: 760px) { .no-record { padding: 20px; } }
.h1-long { font-size: clamp(32px, 3.9vw, 58px); line-height: 1.04; }
.hero-links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 18px; }
.hero-links a { color: var(--capitol-ink); font-weight: 600; }
/* The main page's search result (anyone can search there). */
.home-result { padding: 24px 0 72px; }
.home-result .record, .home-result .no-record { margin-top: 16px; }
.home-result .note { margin-top: 12px; color: var(--gray); }
.zip-find { grid-template-columns: minmax(0, 1fr); width: 100%; } .zip-find .row .btn { flex: none; }
/* Very narrow phones (320 wide): the bar still fits. */
@media (max-width: 359px) { .nav { gap: 6px; padding-left: 10px; padding-right: 10px; } .brand { font-size: 14px; gap: 6px; } .nav ul { gap: 6px; } .nav .btn-sm { padding: 0 10px; font-size: 13px; } .nav .menu-btn { padding: 8px 8px; font-size: 14px; } .rate-table th[scope="row"] { width: auto; } .rate-table th, .rate-table td { padding: 8px 4px; font-size: 14px; } }
/* The access page never wider than the screen: its columns and form fields may shrink (small phones). */
.access { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .access { grid-template-columns: minmax(0, 61.8fr) minmax(0, 38.2fr); } }
.access > section { min-width: 0; }
.access input, .access select, .access textarea { max-width: 100%; min-width: 0; box-sizing: border-box; }
.form { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
/* Help floats over the page (not inside the scrolling sidebar), always fully on screen, scrolling inside if short. */
.help-panel { position: fixed; left: 16px; bottom: 84px; width: min(360px, calc(100vw - 32px));
  max-height: calc(100svh - 72px - 100px); overflow-y: auto; z-index: 60; }
.sidebar { overflow-x: hidden; }
.sidebar .help-panel .side-title { color: var(--white); }

/* 2026-11-29: tighter spacing, flat section backgrounds (no faint blue gradient at section edges), FIRE steps. */
.sec { padding-top: clamp(56px, 7vw, 100px); padding-bottom: clamp(56px, 7vw, 100px); }
.phi.light .phi-grid { min-height: 78svh; }
.phi.light:not(:has(form)) .phi-grid { min-height: 56svh; }
.secure.on-white { background: var(--mist); }
.search-hero { background: var(--white); padding: 64px 0 28px; }
.types.on-white::before { display: none; }
.locks { margin-top: 32px; }
.locks li { padding: 22px 24px; }
.locks h3 { margin: 14px 0 0; }
.steps { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 36px; }
.step .num { font-size: clamp(56px, 6vw, 88px); font-weight: 800; line-height: .9; letter-spacing: 0; color: var(--capitol-ink); }
.step h3 { margin-top: 12px; }
.sum { padding-top: clamp(110px, 12vw, 140px); }
.sum-h { margin-top: 40px; }
.sum-facts { margin-top: 28px; }
.sum-notes { margin-top: 36px; }
.skyline { margin-top: 36px; }
/* FIRE: the big blue letter starts its word ("F" + "ill"). */
.step .acro { display: flex; align-items: baseline; margin: 0 0 8px; }
.step .acro .num { font-size: clamp(56px, 6vw, 88px); line-height: .9; color: var(--capitol-ink); }
/* Openings with only a headline (How it works, Who it's for): no tall empty band under the heading. */
.phi.light:not(:has(form)) .phi-grid { min-height: 0; grid-template-rows: auto auto; padding-bottom: 28px; row-gap: 20px; }
.phi.light:not(:has(form)) .cell-A { grid-row: 1; align-self: start; padding-bottom: 0; }
.phi.light:not(:has(form)) .cell-A2 { grid-row: 2; padding-top: 0; }
.phi.light:not(:has(form)) .cell-photo { grid-row: 1 / 3; }
.phi.light:not(:has(form)) { min-height: 0; }
.phi.light:not(:has(form)) .cell-A2 { grid-column: 1 / 4; padding: 0 4% 0 0; align-self: start; }
