/* Hallmark · macrostructure: Instrument Stage (canvas dial + rising console) · genre: atmospheric · studied: yes (Genesis FX Markets) · design-system: HQ/design/DESIGN.md */
/* Hallmark · pre-emit critique: P5 H4 E4 S5 R4 V5 */
/* HOLDIQ: the dial. Near-black instrument, one accent of light (tangerine). */
@font-face { font-family: "Familjen"; src: url("/assets/fonts/familjen-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Familjen"; src: url("/assets/fonts/familjen-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Familjen"; src: url("/assets/fonts/familjen-grotesk-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ink: #08080a;
  --panel: #111113;
  --raised: #17171a;
  --tang: #ff5a1f;
  --ember: #ffb36b;
  --cream: #ede6d6;
  --mute: #8e887d;
  --reset: #e5484d;
  --line: rgba(237, 230, 214, .08);
  --line2: rgba(237, 230, 214, .14);
  --gut: clamp(18px, 3.2vw, 56px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --maxw: clamp(1280px, 84vw, 2040px);
}
* { box-sizing: border-box; }
html { background: var(--ink); color: var(--cream); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
body { margin: 0; font: 400 16px/1.55 "Familjen", system-ui, sans-serif; font-feature-settings: "tnum" 1; overflow-x: hidden; }
a { color: inherit; }
img { display: block; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--cream); color: var(--ink); padding: 8px 14px; border-radius: 99px; }
.skip:focus { left: 12px; }
.note { margin: 0; color: var(--mute); font-size: 13.5px; line-height: 1.45; }

/* ---------- bar ---------- */
.bar { position: fixed; inset: 0 0 auto; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 16px var(--gut); transition: background .4s, backdrop-filter .4s; }
.bar.solid { background: rgba(8, 8, 10, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; justify-self: start; }
.brand img { border-radius: 8px; }
.brand-word { font-weight: 600; font-size: 18px; letter-spacing: -.02em; }
.navpill { display: flex; gap: 2px; padding: 4px; border-radius: 99px; background: rgba(23, 23, 26, .7); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.navpill a { text-decoration: none; font-size: 14px; color: var(--mute); padding: 7px 16px; border-radius: 99px; transition: color .25s, background .25s; }
.navpill a:hover { color: var(--cream); background: rgba(237, 230, 214, .06); }
.bar-end { justify-self: end; display: flex; align-items: center; gap: 8px; }
.ico { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 99px; color: var(--cream); border: 1px solid var(--line2); transition: border-color .25s, color .25s; }
.ico:hover { border-color: var(--tang); color: var(--ember); }
.cachip, .pairchip { font: 500 13px/1 "Familjen", sans-serif; color: var(--mute); background: transparent; border: 1px dashed var(--line2); border-radius: 99px; padding: 10px 13px; white-space: nowrap; }
.cachip:not([disabled]) { cursor: pointer; color: var(--cream); border-style: solid; }
.cachip:not([disabled]):hover { border-color: var(--tang); }
.pairchip { border-style: solid; color: var(--cream); }
.pairchip a { text-decoration: none; color: var(--ember); }
.btn-solid, .btn-ghost { font: 500 14px/1 "Familjen", sans-serif; border-radius: 99px; padding: 11px 18px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: box-shadow .3s, background .3s, border-color .3s; }
.btn-solid { background: var(--tang); color: #160700; border: 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 0 0 0 rgba(255, 90, 31, 0); }
.btn-solid:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 0 28px rgba(255, 90, 31, .45); }
.btn-ghost { color: var(--cream); border: 1px solid var(--line2); background: transparent; }
.btn-ghost:hover { border-color: var(--tang); }
.btn-solid:active, .btn-ghost:active, .ico:active, .cachip:not([disabled]):active, .navpill a:active { opacity: .8; }
.btn-solid:disabled, .btn-ghost:disabled, button[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-ghost[aria-disabled="true"] { opacity: .5; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; padding: 132px var(--gut) 0; display: flex; flex-direction: column; align-items: center; overflow: hidden; isolation: isolate; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 38%; background: linear-gradient(to bottom, rgba(8, 8, 10, 0), var(--ink) 78%); z-index: -1; pointer-events: none; }
.dial { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-copy { text-align: center; max-width: 1500px; position: relative; }
.hero-title { margin: 0; font-weight: 500; font-size: clamp(44px, 6.4vw, 168px); line-height: .98; letter-spacing: -.035em; }
.hero-title .ln { display: inline-block; white-space: nowrap; }
.hero-sub { margin: 22px auto 0; max-width: 34em; color: rgba(237, 230, 214, .72); font-size: clamp(16px, 1.25vw, 18.5px); line-height: 1.5; }
.lookup { margin: 30px auto 0; display: flex; gap: 6px; padding: 6px; width: min(560px, 100%); border-radius: 99px; background: rgba(17, 17, 19, .78); border: 1px solid var(--line2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: border-color .3s, box-shadow .3s; }
.lookup:focus-within { border-color: rgba(255, 90, 31, .6); box-shadow: 0 0 0 4px rgba(255, 90, 31, .12); }
.lookup input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--cream); font: 400 15px/1 "Familjen", sans-serif; padding: 0 16px; outline: none; }
.lookup input::placeholder { color: var(--mute); }

/* console: the product rising out of the dial */
.console { position: relative; margin-top: auto; width: min(var(--maxw), 100%); border-radius: 22px 22px 0 0; background: linear-gradient(to bottom, rgba(23, 23, 26, .9), rgba(14, 14, 16, .96)); border: 1px solid var(--line2); border-bottom: 0; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 -30px 80px rgba(255, 90, 31, .08); transform-origin: 50% 100%; }
.hero-copy { margin-bottom: clamp(40px, 9vh, 120px); }
.console-edge { position: absolute; left: 8%; right: 8%; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--tang), var(--ember), var(--tang), transparent); box-shadow: 0 0 24px 2px rgba(255, 90, 31, .55); }
.console-grid { display: grid; grid-template-columns: 1fr 1.25fr 1.1fr; }
.cell { padding: 26px 28px 30px; min-width: 0; }
.cell + .cell { border-left: 1px solid var(--line); }
.k { margin: 0 0 14px; font-size: 14px; color: var(--mute); }
.clock { margin: 0; font-weight: 500; font-size: clamp(30px, 2.8vw, 44px); letter-spacing: -.03em; line-height: 1; }
.cell-round .note { margin-top: 10px; }
.sweep { margin-top: 22px; height: 4px; border-radius: 99px; background: rgba(237, 230, 214, .07); overflow: hidden; }
.sweep i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--tang), var(--ember)); box-shadow: 0 0 14px rgba(255, 90, 31, .7); transition: width 1s var(--ease); }
.me-big { margin: 0 0 8px; font-size: 22px; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.me-addr { margin: -6px 0 12px; font-size: 14px; }
.me-addr a { color: var(--ember); text-decoration: none; }
.me-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.me-num { margin: 0 0 4px; font-weight: 500; font-size: clamp(24px, 2.2vw, 34px); letter-spacing: -.03em; line-height: 1; }
.me-verdict { margin: 16px 0 0; padding: 10px 14px; border-radius: 12px; font-size: 14px; background: rgba(237, 230, 214, .05); border: 1px solid var(--line); }
.me-verdict.yes { border-color: rgba(255, 90, 31, .5); background: rgba(255, 90, 31, .09); }
.me-verdict.reset { border-color: rgba(229, 72, 77, .45); }
.cell-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; align-content: start; }
.stat-n { margin: 0 0 4px; font-size: clamp(22px, 1.9vw, 30px); font-weight: 500; letter-spacing: -.03em; line-height: 1; }
.stat-n a { text-decoration: none; border-bottom: 1px solid rgba(255, 179, 107, .5); }

/* ---------- sections ---------- */
.sec-title { margin: 0; font-weight: 500; font-size: clamp(34px, 4.2vw, 64px); line-height: 1.02; letter-spacing: -.035em; text-align: center; }
.sec-sub { margin: 18px auto 0; max-width: 620px; text-align: center; color: rgba(237, 230, 214, .68); font-size: 17px; }
.numbers { padding: clamp(110px, 14vw, 200px) var(--gut) 80px; position: relative; }
.numbers::before { content: ""; position: absolute; left: 50%; top: 0; width: min(1100px, 90vw); height: 520px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255, 90, 31, .13), transparent); pointer-events: none; }
.big-row { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 70px auto 0; max-width: var(--maxw); border-top: 1px solid var(--line); }
.big { padding: 34px 28px 10px; text-align: center; }
.big + .big { border-left: 1px solid var(--line); }
.big-n { margin: 0 0 10px; font-weight: 500; font-size: clamp(44px, 5.6vw, 92px); letter-spacing: -.045em; line-height: 1; }
.tape { list-style: none; margin: 56px auto 0; padding: 0; max-width: var(--maxw); display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.tape li { padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); font-size: 13.5px; color: var(--mute); }
.tape li b { display: block; color: var(--cream); font-weight: 500; font-size: 16px; margin-bottom: 4px; }
.tape li.fail b { color: var(--reset); }
.tape .tape-empty { grid-column: 1 / -1; text-align: center; padding: 22px; }

.board { padding: 110px var(--gut); }
.table-wrap { position: relative; max-width: var(--maxw); margin: 56px auto 0; border-radius: 22px; background: linear-gradient(to bottom, var(--raised), var(--panel) 160px); border: 1px solid var(--line2); overflow: hidden; }
.glowline { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--tang) 30%, var(--ember) 50%, var(--tang) 70%, transparent); box-shadow: 0 0 28px 3px rgba(255, 90, 31, .5); transform-origin: 0 50%; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; font-weight: 400; color: var(--mute); font-size: 13.5px; padding: 18px 22px 14px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 15px 22px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; }
.tbl tbody tr { transition: background .25s; }
.tbl tbody tr:hover { background: rgba(237, 230, 214, .03); }
.tbl a { text-decoration: none; }
.tbl a:hover { color: var(--ember); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; background: var(--mute); vertical-align: 1px; }
.dot.on { background: var(--tang); box-shadow: 0 0 10px var(--tang); }
.empty { margin: 0; padding: 56px 24px 64px; text-align: center; color: var(--mute); font-size: 16px; }
.empty b { display: block; color: var(--cream); font-weight: 500; font-size: 22px; margin-bottom: 8px; letter-spacing: -.02em; }

.ladder { padding: 110px var(--gut); }
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: var(--maxw); margin: 60px auto 0; }
.tier { position: relative; border-radius: 22px; padding: 28px 26px 30px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; transition: transform .45s var(--ease), border-color .3s; }
.tier:hover { transform: translateY(-3px); border-color: var(--line2); }
.tier.hot { background: linear-gradient(to bottom, rgba(255, 90, 31, .16), var(--panel) 70%); border-color: rgba(255, 90, 31, .45); }
.tier.hot::before { content: ""; position: absolute; left: 12%; right: 12%; top: 0; height: 1px; background: var(--ember); box-shadow: 0 0 22px 2px rgba(255, 90, 31, .7); }
.tier-x { margin: 0; font-size: clamp(54px, 5vw, 80px); font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.tier-h { margin: 14px 0 18px; font-size: 18px; font-weight: 500; }
.tier-bar { height: 4px; border-radius: 99px; background: rgba(237, 230, 214, .07); overflow: hidden; margin-bottom: 18px; }
.tier-bar i { display: block; height: 100%; background: var(--tang); border-radius: inherit; transform-origin: 0 50%; }
.tier p.note { font-size: 14.5px; }

.calc { max-width: var(--maxw); margin: 14px auto 0; display: grid; grid-template-columns: 1fr 1.5fr; border-radius: 22px; background: var(--panel); border: 1px solid var(--line2); overflow: hidden; }
.calc-in { padding: 32px 30px; border-right: 1px solid var(--line); }
.calc-title { margin: 0 0 10px; font-size: 26px; font-weight: 500; letter-spacing: -.025em; }
.calc-l { display: flex; justify-content: space-between; margin: 28px 0 10px; font-size: 14.5px; color: var(--mute); }
.calc-l output { color: var(--cream); font-weight: 500; }
.calc input[type=range] { width: 100%; accent-color: var(--tang); height: 22px; }
.calc-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.calc-chart { margin: 0; padding: 28px 28px 22px; display: flex; flex-direction: column; gap: 12px; background: radial-gradient(120% 90% at 100% 0%, rgba(255, 90, 31, .1), transparent 60%); }
.calc-chart svg { width: 100%; flex: 1; min-height: 260px; overflow: visible; }
.how { padding: 60px var(--gut); }
.how-pin { max-width: var(--maxw); margin: 0 auto; min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 110px); align-items: center; }
.how-copy .sec-title, .how-copy .sec-sub { text-align: left; margin-left: 0; }
.rail { position: relative; padding-left: 46px; }
.rail-track { position: absolute; left: 8px; top: 6px; bottom: 6px; width: 3px; border-radius: 99px; background: rgba(237, 230, 214, .08); }
.rail-track i { position: absolute; inset: 0 0 auto; height: 0; border-radius: inherit; background: linear-gradient(to bottom, var(--tang), var(--ember)); box-shadow: 0 0 16px rgba(255, 90, 31, .8); }
.step { position: relative; padding: 0 0 54px; opacity: .32; transition: opacity .5s; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: -44px; top: 8px; width: 13px; height: 13px; border-radius: 50%; background: var(--ink); border: 2px solid var(--line2); transition: border-color .4s, background .4s, box-shadow .4s; }
.step.on { opacity: 1; }
.step.on::before { border-color: var(--tang); background: var(--tang); box-shadow: 0 0 14px var(--tang); }
.step h3 { margin: 0 0 10px; font-size: clamp(26px, 2.4vw, 36px); font-weight: 500; letter-spacing: -.03em; }
.step p { margin: 0; color: rgba(237, 230, 214, .7); max-width: 460px; }

.rounds { padding: 110px var(--gut) 140px; }
.round-list { max-width: var(--maxw); margin: 56px auto 0; display: grid; gap: 12px; }
.round { display: grid; grid-template-columns: 140px 1fr 1fr 1fr 1.3fr; gap: 16px; align-items: center; padding: 22px 26px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.round b { font-weight: 500; font-size: 20px; letter-spacing: -.02em; }
.round a { color: var(--ember); text-decoration: none; }
.round-empty { text-align: center; padding: 50px 24px; border-radius: 22px; border: 1px dashed var(--line2); color: var(--mute); }
.round-empty b { display: block; color: var(--cream); font-weight: 500; font-size: 22px; margin-bottom: 8px; letter-spacing: -.02em; }

.foot { border-top: 1px solid var(--line); padding: 40px var(--gut) 48px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 16px; max-width: 560px; }
.foot-brand img { border-radius: 11px; }
.foot-brand p { margin: 0; color: var(--mute); font-size: 14.5px; }
.foot-links { display: flex; align-items: center; gap: 10px; }
.foot-ca { color: var(--mute); font-size: 14px; margin-left: 6px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .navpill { display: none; }
  .bar { grid-template-columns: auto 1fr; }
  .console-grid { grid-template-columns: 1fr 1fr; }
  .cell-stats { grid-column: 1 / -1; border-left: 0 !important; border-top: 1px solid var(--line); grid-template-columns: repeat(4, 1fr); }
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .tape { grid-template-columns: repeat(3, 1fr); }
  .calc { grid-template-columns: 1fr; }
  .calc-in { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .bar { padding: 12px 14px; gap: 8px; }
  .brand-word, .cachip, .pairchip, .ph-long { display: none; }
  .ico { width: 32px; height: 32px; }
  .bar-end { gap: 6px; }
  .btn-solid, .btn-ghost { padding: 10px 14px; font-size: 13.5px; }
  .hero { padding-top: 104px; }
  .hero-title { font-size: clamp(40px, 11.5vw, 56px); }
  .hero-title .ln { display: block; }
  .lookup { flex-direction: column; border-radius: 22px; }
  .lookup input { padding: 14px 14px; }
  .console { border-radius: 20px 20px 0 0; }
  .hero-copy { margin-bottom: 36px; }
  .console-grid { grid-template-columns: 1fr; }
  .cell + .cell { border-left: 0; border-top: 1px solid var(--line); }
  .cell-stats { grid-template-columns: 1fr 1fr; }
  .big-row { grid-template-columns: 1fr; }
  .big + .big { border-left: 0; border-top: 1px solid var(--line); }
  .tape { grid-template-columns: 1fr 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .how-pin { grid-template-columns: 1fr; min-height: 0; }
  .round { grid-template-columns: 1fr 1fr; }
  .tbl th:nth-child(3), .tbl td:nth-child(3), .tbl th:nth-child(5), .tbl td:nth-child(5), .tbl th:nth-child(7), .tbl td:nth-child(7) { display: none; }
  .tbl th, .tbl td { padding-left: 14px; padding-right: 14px; }
}
@media (min-width: 2200px) {
  body { font-size: 19px; }
  .note { font-size: 16px; }
  .bar { padding-top: 22px; padding-bottom: 22px; }
  .brand img { width: 38px; height: 38px; }
  .brand-word { font-size: 22px; }
  .navpill a, .btn-solid, .btn-ghost, .cachip, .pairchip { font-size: 16.5px; }
  .ico { width: 42px; height: 42px; }
  .hero { padding-top: 170px; }
  .hero-sub, .sec-sub { font-size: 21px; }
  .lookup { width: min(700px, 100%); }
  .lookup input { font-size: 18px; }
  .k { font-size: 16.5px; }
  .cell { padding: 34px 38px 40px; }
  .me-big { font-size: 27px; }
  .tbl { font-size: 17.5px; }
  .tape li { font-size: 15.5px; }
  .step p { font-size: 19px; max-width: 560px; }
  .calc-title { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
