:root {
  --black: #080808;
  --graphite: #383838;
  --graphite-2: #2b2b2b;
  --ash: #929292;
  --white: #f5f5f2;
  --yellow: #f8c83c;
  --danger: #e05c48;
  --nav-height: 82px;
}

* { box-sizing: border-box; }
html { background: var(--black); color-scheme: dark; }
body { margin: 0; min-width: 320px; background: var(--black); color: var(--white); font-family: Arial, Helvetica, sans-serif; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; background: var(--yellow); color: var(--black); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.app-shell { width: 100%; min-height: 100dvh; background: var(--graphite); }
.app-content { min-height: calc(100dvh - var(--nav-height)); padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom)); }
.page { min-height: calc(100dvh - var(--nav-height)); padding: max(24px, env(safe-area-inset-top)) 20px 40px; background: var(--graphite); animation: page-in 220ms ease-out; }
.page--home { position: relative; display: grid; min-height: calc(100dvh - var(--nav-height)); padding: 0; place-items: center; overflow: hidden; isolation: isolate; }
.page--home::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, transparent 0 55%, rgba(255,255,255,.035) 55% 55.5%, transparent 55.5%); }

.hero-mark { display: flex; align-items: baseline; gap: 5px; padding: 28px 22px; white-space: nowrap; transform: scale(1.05); }
.hero-mark__prefix { color: #8a8a8a; font-size: clamp(20px, 6vw, 32px); font-weight: 700; }
.hero-mark__name { font-size: clamp(40px, 13vw, 72px); font-weight: 900; letter-spacing: -3px; }
.hero-mark__pro { align-self: center; padding: 5px 9px 4px; border-radius: 7px; background: var(--yellow); color: var(--black); font-size: clamp(13px, 4vw, 20px); font-weight: 900; }

.ticker { position: absolute; left: 0; width: 100%; overflow: hidden; background: var(--black); color: var(--white); }
.ticker--top { top: 0; padding-top: env(safe-area-inset-top); }
.ticker--bottom { bottom: 0; }
.ticker__track { display: flex; width: max-content; align-items: center; gap: 18px; min-height: 54px; animation: ticker 24s linear infinite; }
.ticker__track--reverse { animation-direction: reverse; animation-duration: 29s; }
.ticker span { font-size: 13px; font-weight: 900; letter-spacing: .11em; }
.ticker i { width: 9px; height: 9px; background: var(--yellow); transform: rotate(45deg); }

.page-heading { display: flex; align-items: flex-start; gap: 12px; margin: 10px 0 16px; }
.page-heading span { color: var(--yellow); font-size: 13px; font-weight: 900; }
.page-heading h2 { max-width: 280px; margin: 0; font-size: clamp(34px, 11vw, 56px); line-height: .92; letter-spacing: -.05em; text-transform: uppercase; }
.lead { max-width: 520px; margin: 0 0 28px; color: #dfdfdc; font-size: 17px; line-height: 1.5; }
.action-stack { display: grid; gap: 12px; }
.angle-card { position: relative; min-height: 84px; padding: 18px 48px 18px 18px; border: 1px solid #5b5b5b; background: var(--graphite-2); color: var(--white); text-align: left; cursor: pointer; clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%); }
.angle-card::after { content: "→"; position: absolute; right: 18px; top: 25px; color: var(--yellow); font-size: 24px; }
.angle-card b, .angle-card span { display: block; }
.angle-card b { margin-bottom: 6px; font-size: 18px; }
.angle-card span { color: #bdbdb8; line-height: 1.35; }
.angle-card:active { background: #242424; }
.angle-card--muted { border-color: var(--yellow); }
.city-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.city-grid button { min-height: 50px; border: 1px solid #686868; background: #303030; color: var(--white); cursor: pointer; }
.primary-action { width: 100%; min-height: 56px; border: 0; background: var(--yellow); color: var(--black); font-weight: 900; text-transform: uppercase; cursor: pointer; clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); }
.portrait-placeholder { display: grid; width: 100%; min-height: 260px; margin: 0 0 24px; place-items: center; border: 1px solid #5d5d5d; background: linear-gradient(145deg, #323232, #242424); color: #777; font-size: 48px; font-weight: 900; letter-spacing: .12em; }

.bottom-nav { position: fixed; z-index: 20; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(5, 1fr); min-height: var(--nav-height); padding: 7px 4px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid #343434; background: rgba(8,8,8,.98); }
.nav-item { display: flex; min-width: 0; min-height: 58px; padding: 6px 2px; border: 0; align-items: center; justify-content: center; flex-direction: column; gap: 5px; background: transparent; color: #969696; cursor: pointer; }
.nav-item svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-item span { overflow: hidden; max-width: 100%; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.nav-item.is-active { color: var(--yellow); }
.nav-item--primary { position: relative; color: var(--white); }
.nav-item--primary::before { content: ""; position: absolute; inset: 1px 5px; z-index: -1; background: #292929; clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 0 100%); }

@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 700px) {
  .app-shell { max-width: 540px; margin: 0 auto; box-shadow: 0 0 0 1px #333, 0 20px 80px #000; }
  .bottom-nav { right: 50%; left: auto; width: 540px; transform: translateX(50%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .ticker__track { transform: translateX(-8%); }
}

