/* Hallmark · macrostructure: Marquee Hero over a live 3D strip · genre: atmospheric · tone: luxury crime-drama · anchor hue: flamingo pink
 * pre-emit critique: P5 H4 E4 S5 R4 V5 */
@font-face { font-family: "Passion One"; src: url(/assets/fonts/passion-one-900.woff2) format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/assets/fonts/barlow-condensed-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/assets/fonts/barlow-condensed-800.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(/assets/fonts/instrument-serif-400-italic.woff2) format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/assets/fonts/barlow-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/assets/fonts/barlow-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/assets/fonts/barlow-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --deep: #1c0c22; --desk: #2d1438; --stage: #2a0f33; --slate: #5a4a5e;
  --night: #160a1c; --dusk: #24102e; --plum: #3b1846; --pink: #ff4f8b; --mag: #b0175f; --orange: #ff8a3d;
  --gold: #ffc24b; --teal: #2fd6c4; --cream: #ede6d6; --ink: #120a14; --mist: #c9b8d3; --dead: #4a3352;
  --side: clamp(20px, 5vw, 80px);
  --display: "Passion One", Impact, "Arial Narrow", sans-serif;
  --hud: "Barlow Condensed", "Arial Narrow", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --body: "Barlow", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--night); color: var(--cream); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
html, body { overflow-x: clip; }
body { margin: 0; font: 400 16px/1.55 var(--body); background: var(--night); }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h2 { font: 900 clamp(48px, 6.4vw, 112px)/0.92 var(--display); margin: 0; color: var(--cream);
  -webkit-text-stroke: 0.05em var(--ink); paint-order: stroke fill; text-shadow: 0.07em 0.07em 0 var(--mag); letter-spacing: 0.005em; overflow-wrap: anywhere; min-width: 0; }
.ital { font: italic 400 clamp(22px, 2vw, 32px)/1.25 var(--serif); color: var(--mist); margin: 18px 0 0; max-width: 34ch; }

/* header: always on a backing strip */
.bar { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 24px; height: 68px; padding: 0 var(--side);
  background: color-mix(in srgb, var(--night) 78%, transparent); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid color-mix(in srgb, var(--cream) 8%, transparent); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 9px; display: block; }
.brand span { font: 900 30px/1 var(--display); -webkit-text-stroke: 0.06em var(--ink); paint-order: stroke fill; text-shadow: 2px 2px 0 var(--mag); }
.links { display: flex; gap: 26px; margin-left: 18px; }
.links a { text-decoration: none; font: 600 18px/1 var(--hud); color: var(--mist); transition: color .2s; }
.links a:hover { color: var(--cream); }
.acts { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.ca { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--cream) 16%, transparent); background: color-mix(in srgb, var(--dusk) 90%, transparent); font: 600 15px/1 var(--hud); color: var(--mist); max-width: 260px; }
.ca b { font-weight: 600; color: var(--cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buy { display: flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 10px; background: var(--pink); color: var(--ink); text-decoration: none; font: 800 18px/1 var(--hud); box-shadow: 3px 3px 0 var(--ink); transition: background-color .15s; white-space: nowrap; }
.buy:hover { background: var(--orange); }
.buy:active, .pill:active:not(:disabled), .connect:active, .ico:active { transform: translateY(1px); }
.ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--cream) 16%, transparent); background: color-mix(in srgb, var(--dusk) 90%, transparent); }
.ico svg { width: 18px; height: 18px; fill: var(--cream); }
.ico:hover { border-color: var(--orange); }
.connect { height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--gold); background: transparent; color: var(--gold); font: 800 17px/1 var(--hud); white-space: nowrap; }
.connect.on { border-color: var(--teal); color: var(--teal); }

/* hero: live strip, wordmark cut by the top */
.hero { position: relative; height: 100vh; min-height: 640px; overflow: hidden; background: var(--stage); }
#strip { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 42%; background: linear-gradient(transparent, color-mix(in srgb, var(--night) 82%, transparent)); pointer-events: none; }
.mark, .hero-low, .hud { z-index: 2; }
.mark { position: absolute; left: 0; right: 0; top: 68px; margin: 0; text-align: center; pointer-events: none; overflow: hidden; line-height: 0.8; }
.mark span { display: inline-block; font: 900 clamp(170px, 24vw, 640px)/1 var(--display); color: var(--cream); white-space: nowrap;
  -webkit-text-stroke: 0.035em var(--ink); paint-order: stroke fill; text-shadow: 0.028em 0.028em 0 var(--mag); transform: translateY(-6%); letter-spacing: 0.01em; }
.hero-low { position: absolute; left: 0; right: 0; bottom: clamp(36px, 7vh, 80px); display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 0 var(--side); text-align: center; }
.tag { margin: 0; font: italic 400 clamp(28px, 3.2vw, 56px)/1.1 var(--serif); color: var(--cream); text-shadow: 0 2px 24px color-mix(in srgb, var(--night) 90%, transparent); }
.hero-cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: center; }
.pill { height: 54px; padding: 0 28px; border-radius: 999px; border: 0; background: var(--cream); color: var(--ink); font: 800 21px/1 var(--hud); box-shadow: 0 0 0 3px var(--ink), 5px 5px 0 3px var(--mag); transition: transform .2s, box-shadow .2s; }
.pill:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: 0 0 0 3px var(--ink), 7px 7px 0 3px var(--mag); }
.pill:disabled { opacity: .45; cursor: not-allowed; }
.pill.wide { width: 100%; }
.peek { display: flex; height: 54px; border-radius: 999px; background: color-mix(in srgb, var(--night) 72%, transparent); border: 1px solid color-mix(in srgb, var(--cream) 22%, transparent); backdrop-filter: blur(10px); overflow: hidden; }
.peek input { width: min(320px, 58vw); background: transparent; border: 0; padding: 0 20px; font: 500 16px/1 var(--body); }
.peek input::placeholder { color: var(--mist); }
.peek input:focus { outline: none; }
.peek button { border: 0; background: transparent; color: var(--gold); padding: 0 20px; font: 800 18px/1 var(--hud); }
.hud { position: absolute; left: var(--side); bottom: clamp(36px, 7vh, 80px); display: flex; align-items: flex-end; gap: 14px; pointer-events: none; }
#mini { width: 132px; height: 132px; border-radius: 50%; border: 3px solid var(--ink); box-shadow: 0 0 0 2px color-mix(in srgb, var(--cream) 50%, transparent); background: var(--deep); }
.hud-read p { margin: 6px 0 0; font: 600 16px/1.2 var(--hud); color: var(--cream); max-width: 220px; text-shadow: 0 1px 8px var(--night); }
.stars { display: flex; gap: 3px; }
.stars svg { width: 20px; height: 20px; }
.tip { position: absolute; z-index: 5; pointer-events: none; min-width: 170px; padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--night) 92%, transparent); border: 1px solid color-mix(in srgb, var(--cream) 18%, transparent); font: 600 16px/1.3 var(--hud); transform: translate(14px, -50%); }
.tip b { display: block; font: 900 26px/1 var(--display); margin-bottom: 4px; }
.tip .up { color: var(--teal); } .tip .dn { color: var(--pink); }

/* manifesto */
.manifesto { padding: clamp(140px, 18vw, 260px) var(--side); display: flex; justify-content: center; }
.words { margin: 0; max-width: 980px; font: 500 clamp(26px, 2.9vw, 50px)/1.22 var(--body); text-align: center; letter-spacing: -0.01em; }
.words .w { color: color-mix(in srgb, var(--cream) 16%, transparent); transition: color .25s; }
.words .w.lit { color: var(--cream); }
.words .w.k { font-family: var(--serif); font-style: italic; font-weight: 400; }
.words .w.k.lit { color: var(--orange); }

/* consigliere phone over the office */
.phone-sec { position: relative; min-height: 100vh; overflow: hidden; display: flex; align-items: center; }
.office { position: absolute; inset: -6% 0; background: var(--dusk) url(/assets/img/office.jpg) center / cover no-repeat; }
.office::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--night) 88%, transparent) 0%, color-mix(in srgb, var(--night) 45%, transparent) 46%, color-mix(in srgb, var(--night) 20%, transparent) 100%); }
.phone-wrap { position: relative; width: 100%; padding: 120px var(--side); display: grid; grid-template-columns: 1fr minmax(320px, 400px); gap: 60px; align-items: center; }
.phone { position: relative; border-radius: 42px; background: var(--ink); padding: 14px; box-shadow: 0 0 0 2px var(--plum), 0 40px 80px color-mix(in srgb, var(--ink) 50%, transparent); }
.phone-top { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 30px 30px 0 0; background: var(--deep); font: 800 18px/1 var(--hud); }
.phone-top .dot { width: 34px; height: 34px; border-radius: 50%; background: url(/assets/img/logo-180.png) center / cover; }
.phone-time { margin-left: auto; color: var(--mist); font-weight: 600; }
.msgs { height: 560px; overflow-y: auto; padding: 16px 14px 20px; border-radius: 0 0 30px 30px; background: linear-gradient(var(--deep), var(--dusk)); display: flex; flex-direction: column; gap: 10px; scrollbar-width: none; }
.msg { align-self: flex-start; max-width: 88%; padding: 12px 15px; border-radius: 20px 20px 20px 6px; background: var(--plum); font: 400 16px/1.4 var(--body); opacity: 0; transform: translateY(12px); transition: opacity .45s, transform .45s cubic-bezier(.2, .8, .2, 1); }
.msg.in { opacity: 1; transform: none; }
.msg.head { background: var(--pink); color: var(--ink); font: 900 24px/1.05 var(--display); }
.msg.sys { align-self: center; background: transparent; color: var(--mist); font: 600 14px/1.3 var(--hud); text-align: center; padding: 4px 8px; }
.msg.me { align-self: flex-end; border-radius: 20px 20px 6px 20px; background: var(--gold); color: var(--ink); font-weight: 500; }
.msg .mv { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.msg .mv button { border: 0; border-radius: 999px; padding: 6px 12px; background: var(--cream); color: var(--ink); font: 800 15px/1 var(--hud); }
.msg .act { font: 800 15px/1 var(--hud); padding: 3px 8px; border-radius: 6px; background: var(--ink); }
.act.expand, .act.watch { color: var(--teal); } .act.trim, .act.close { color: var(--pink); } .act.hold { color: var(--gold); }

/* empire */
.empire { padding: clamp(120px, 14vw, 220px) 0 0; }
.empire-head, .ledger-head, .fam-head { padding: 0 var(--side); }
.empire-stage { position: relative; height: min(86vh, 980px); min-height: 560px; margin-top: 60px; background: var(--stage); overflow: hidden; }
#own { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.empire-figs { position: absolute; left: var(--side); top: 40px; display: flex; gap: 40px; align-items: flex-end; pointer-events: none; }
.empire-figs div { display: flex; flex-direction: column; }
.fig { font: 900 clamp(64px, 7vw, 128px)/0.9 var(--display); color: var(--cream); -webkit-text-stroke: 0.04em var(--ink); paint-order: stroke fill; text-shadow: 0.05em 0.05em 0 var(--mag); }
.fig.sm { font-size: clamp(36px, 3.4vw, 60px); color: var(--gold); text-shadow: 0.05em 0.05em 0 var(--ink); }
.cap { font: 600 17px/1.2 var(--hud); color: var(--cream); margin-top: 6px; }
.empire-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; background: color-mix(in srgb, var(--night) 35%, transparent); }
.empire-empty p { margin: 0; font: italic 400 clamp(28px, 3vw, 48px)/1.1 var(--serif); }
.legend { position: absolute; right: var(--side); bottom: 26px; display: flex; align-items: center; gap: 8px; font: 600 16px/1 var(--hud); padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, var(--night) 75%, transparent); }
.legend i { width: 12px; height: 12px; border-radius: 50%; margin-left: 8px; }
.legend i:first-child { margin-left: 0; }
.l-heat { background: var(--teal); } .l-steady { background: var(--gold); } .l-bleed { background: var(--pink); } .l-dead { background: var(--dead); }

/* orders */
.orders { padding: clamp(120px, 14vw, 220px) var(--side); }
.orders-in { max-width: 1240px; margin: 0 auto; }
.desk { margin-top: 56px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border-radius: 26px; overflow: hidden; background: var(--dusk); box-shadow: 0 0 0 3px var(--ink), 10px 10px 0 3px var(--mag); }
.desk-pick, .desk-act { padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.desk-act { background: var(--desk); }
.desk label { font: 600 18px/1 var(--hud); color: var(--mist); }
.desk select { height: 56px; padding: 0 16px; border-radius: 14px; border: 2px solid var(--ink); background: var(--night); font: 800 22px/1 var(--hud); }
.front-card { min-height: 190px; border-radius: 18px; padding: 22px; background: var(--night); display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.front-card .fc-sym { font: 900 52px/0.9 var(--display); }
.front-card .fc-row { display: flex; flex-wrap: wrap; gap: 24px; font: 600 18px/1.2 var(--hud); color: var(--mist); }
.front-card .fc-row b { display: block; font: 800 28px/1 var(--hud); color: var(--cream); }
.front-card .fc-empty { margin: auto 0; font: italic 400 24px/1.2 var(--serif); color: var(--mist); }
.seg { display: grid; grid-template-columns: 1fr 1fr; border-radius: 14px; overflow: hidden; border: 2px solid var(--ink); }
.seg button { height: 52px; border: 0; background: var(--night); font: 800 20px/1 var(--hud); color: var(--mist); }
.seg button.on { background: var(--gold); color: var(--ink); }
.amt { display: flex; flex-direction: column; gap: 12px; }
.amt-row { display: flex; align-items: center; height: 64px; border-radius: 14px; border: 2px solid var(--ink); background: var(--night); padding: 0 18px; }
.amt-row input { flex: 1; min-width: 0; border: 0; background: transparent; font: 800 34px/1 var(--hud); }
.amt-row input:focus { outline: none; }
.amt-row span { font: 800 22px/1 var(--hud); color: var(--gold); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button { height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--cream) 25%, transparent); background: transparent; font: 600 17px/1 var(--hud); }
.chips button.on, .chips button:hover { border-color: var(--gold); color: var(--gold); }
.chips.big button { height: 52px; flex: 1; font-size: 20px; font-weight: 800; }
.desk-note { margin: 0; font: 500 15px/1.4 var(--body); color: var(--mist); }
.desk-note.bad { color: var(--pink); } .desk-note.good { color: var(--teal); }

/* ledger: dragged row of property cards */
.ledger { padding: clamp(80px, 10vw, 160px) 0; }
.row { display: flex; gap: 22px; padding: 56px var(--side) 20px; overflow-x: auto; cursor: grab; scrollbar-width: none; user-select: none; }
.row::-webkit-scrollbar { display: none; }
.row.drag { cursor: grabbing; }
.row-empty { margin: 0; font: italic 400 26px/1.2 var(--serif); color: var(--mist); }
.deed { flex: 0 0 300px; border-radius: 22px; background: var(--cream); color: var(--ink); overflow: hidden; box-shadow: 0 0 0 3px var(--ink); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.deed:hover { transform: translateY(-8px) rotate(-1deg); }
.deed-top { height: 150px; position: relative; display: flex; align-items: flex-end; padding: 14px 18px; }
.deed-top img { position: absolute; right: 16px; top: 16px; width: 62px; height: 62px; border-radius: 50%; border: 3px solid var(--ink); object-fit: cover; background: var(--night); }
.deed-top .d-sym { font: 900 46px/0.9 var(--display); color: var(--cream); -webkit-text-stroke: 0.05em var(--ink); paint-order: stroke fill; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deed-body { padding: 16px 18px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; font: 600 15px/1.2 var(--hud); color: var(--slate); }
.deed-body b { display: block; font: 800 24px/1 var(--hud); color: var(--ink); }
.deed-body .mood { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 2px dashed color-mix(in srgb, var(--ink) 20%, transparent); font: 800 18px/1 var(--hud); color: var(--ink); text-transform: lowercase; }
.deed-body .mood button { border: 0; border-radius: 999px; padding: 8px 14px; background: var(--ink); color: var(--cream); font: 800 15px/1 var(--hud); }

/* families */
.families { padding: clamp(80px, 10vw, 160px) 0 clamp(120px, 12vw, 200px); background: var(--cream); color: var(--ink); }
.families h2 { color: var(--ink); -webkit-text-stroke: 0; text-shadow: 0.06em 0.06em 0 var(--pink); }
.families .ital { color: var(--slate); }
.fam-acts { display: flex; gap: 14px; align-items: center; margin-top: 30px; flex-wrap: wrap; }
.families .pill { background: var(--ink); color: var(--cream); box-shadow: 5px 5px 0 0 var(--pink); }
.families .pill:hover:not(:disabled) { box-shadow: 7px 7px 0 0 var(--pink); }
.ghost { font: 800 20px/1 var(--hud); color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.board { list-style: none; margin: 64px 0 0; padding: 0 var(--side); }
.board li { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 28px; padding: 26px 0; border-top: 2px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.board li:last-child { border-bottom: 2px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.board .rk { font: 900 clamp(48px, 5vw, 88px)/0.85 var(--display); color: var(--ink); }
.board li:nth-child(1) .rk { color: var(--pink); }
.board .who { font: 800 26px/1.1 var(--hud); }
.board .who small { display: block; margin-top: 6px; font: 500 15px/1.3 var(--body); color: var(--slate); }
.board .val { font: 900 clamp(36px, 3.6vw, 64px)/0.9 var(--display); text-align: right; }
.board li.mine { background: color-mix(in srgb, var(--pink) 12%, transparent); }
.board-empty { display: block !important; font: italic 400 28px/1.2 var(--serif); color: var(--slate); }

.foot { padding: 80px var(--side) 60px; display: grid; grid-template-columns: auto 1fr; gap: 10px 26px; align-items: start; color: var(--mist); }
.foot img { border-radius: 12px; grid-row: span 2; }
.foot p { margin: 0; max-width: 70ch; font-size: 15px; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { font: 600 16px/1 var(--hud); text-decoration: none; color: var(--cream); }

.toast { position: fixed; z-index: 60; left: 50%; bottom: 26px; transform: translateX(-50%); padding: 14px 20px; border-radius: 14px; background: var(--ink); border: 1px solid var(--plum); font: 600 17px/1.3 var(--hud); max-width: min(560px, 90vw); }

@media (max-width: 1700px) {
  .hud-read p { display: none; }
}
@media (max-width: 1100px) {
  .links { display: none; }
  .phone-wrap { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .phone-copy .ital { margin-inline: auto; }
  .phone { width: min(400px, 100%); }
  .desk { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .bar { height: 60px; gap: 8px; padding: 0 12px; }
  .brand span, .connect, .ca { display: none; }
  .buy { height: 36px; padding: 0 12px; font-size: 16px; }
  .ico { width: 36px; height: 36px; }
  .acts { gap: 6px; }
  .mark { top: 60px; }
  .mark span { font-size: 40vw; transform: none; }
  .hud { display: none; }
  .hero-low { bottom: 32px; }
  .peek input { width: 62vw; }
  .msgs { height: 480px; }
  .empire-figs { gap: 22px; top: 24px; flex-wrap: wrap; }
  .legend { left: 12px; right: 12px; justify-content: center; font-size: 14px; }
  .desk-pick, .desk-act { padding: 22px; }
  .board li { grid-template-columns: 60px 1fr; gap: 6px 16px; }
  .board .val { grid-column: 2; text-align: left; }
  .deed { flex-basis: 260px; }
  .foot { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
