/*!
 * Ulmer Security Management System - Enterprise Edition
 * Copyright (c) 2026 Douglas Ulmer. All rights reserved.
 * Proprietary and confidential. Unauthorized copying, reproduction, reuse,
 * or distribution of this file, in whole or in part, by any means, is
 * prohibited without the prior written permission of Douglas Ulmer.
 */

/* The welcome page, in the Ulmer house style: a watch dial on black, engraved gold, Didone type. */

@font-face { font-family: "Ulmer Display"; src: url("/fonts/bodoni-moda.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Ulmer Display"; src: url("/fonts/bodoni-moda-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Ulmer Text"; src: url("/fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-stretch: 75% 100%; font-style: normal; font-display: swap; }

:root {
  --bg: #0b0b0c;
  --panel: #131315;
  --well: #0d0d0f;
  --line: #2a2926;
  --hair: rgba(201, 165, 76, 0.22);
  --hair-soft: rgba(201, 165, 76, 0.1);
  --text: #efe9dc;
  --muted: #9c968a;
  --gold: #c9a54c;
  --gold-hi: #e6cf8f;
  --gold-lo: #8c6b22;
  --gold-dim: rgba(201, 165, 76, 0.25);
  --metal: linear-gradient(180deg, #ead49a 0%, #c9a54c 46%, #a8822f 100%);
  --display: "Ulmer Display", "Didot", "Bodoni 72", "Bodoni MT", Georgia, serif;
  --sans: "Ulmer Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
html, body { margin: 0; background-color: var(--bg); color: var(--text); }
body {
  font-family: var(--sans); font-size: 16.5px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern", "liga";
  background-image:
    radial-gradient(1400px 700px at 50% -8%, rgba(201, 165, 76, 0.09), transparent 62%),
    radial-gradient(900px 900px at 50% 120%, rgba(0, 0, 0, 0.6), transparent 70%),
    url("/guilloche.svg");
  background-attachment: fixed, fixed, fixed;
  overflow-x: hidden;
}
::selection { background: rgba(201, 165, 76, 0.35); color: #fff; }
a { color: var(--gold-hi); text-decoration-color: var(--gold-dim); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--gold); }
:focus-visible { outline: 1px solid var(--gold-hi); outline-offset: 3px; }
main { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px;
  padding: 14px max(20px, env(safe-area-inset-left)) 14px max(20px, env(safe-area-inset-right));
  background: rgba(11, 11, 12, 0.82); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--hair-soft);
}
.top-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.top-brand span {
  font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: 0.08em;
  background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.top-nav { display: flex; gap: 22px; margin: 0 auto; }
.top-nav a, .quiet {
  color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  transition: color 0.2s;
}
.top-nav a:hover, .quiet:hover { color: var(--gold-hi); }
.top-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
button.quiet { background: none; border: 0; padding: 4px 0; font-family: var(--sans); cursor: pointer; }
@media (max-width: 900px) { .top-nav { display: none; } }
@media (max-width: 520px) { .top { gap: 12px; } .top-actions { gap: 12px; } .top-actions a.quiet { display: none; } }

/* ---------- buttons ---------- */
.gold {
  display: inline-flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
  color: #14100a; background: var(--metal); text-decoration: none; border-radius: 2px;
  font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 12.5px; padding: 14px 26px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 14px 30px -14px rgba(201, 165, 76, 0.55);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.gold::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  transition: transform 0.7s var(--ease);
}
.gold:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 20px 40px -16px rgba(201, 165, 76, 0.7); }
.gold:hover::after { transform: translateX(120%); }
.gold.sm { padding: 9px 16px; font-size: 11px; }
.gold.lg { padding: 18px 34px; font-size: 13px; }

.listen {
  display: inline-flex; align-items: center; gap: 12px; padding: 15px 22px; cursor: pointer;
  background: transparent; color: var(--gold-hi); border: 1px solid var(--hair); border-radius: 2px;
  font: 600 12.5px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; transition: border-color 0.2s, background 0.2s;
}
.listen:hover { border-color: var(--gold); background: rgba(201, 165, 76, 0.06); }
.bars { display: inline-flex; align-items: center; gap: 3px; height: 16px; }
.bars i { display: block; width: 2px; height: 5px; background: var(--gold); border-radius: 1px; transform-origin: center; }
.bars i:nth-child(2), .bars i:nth-child(4) { height: 9px; }
.bars i:nth-child(3) { height: 14px; }
.listen[aria-pressed="true"] .bars i { animation: breathe 1.1s ease-in-out infinite; }
.listen[aria-pressed="true"] .bars i:nth-child(2) { animation-delay: 0.15s; }
.listen[aria-pressed="true"] .bars i:nth-child(3) { animation-delay: 0.3s; }
.listen[aria-pressed="true"] .bars i:nth-child(4) { animation-delay: 0.45s; }
.listen[aria-pressed="true"] .bars i:nth-child(5) { animation-delay: 0.6s; }
@keyframes breathe { 0%, 100% { transform: scaleY(0.5); opacity: 0.6; } 50% { transform: scaleY(1.35); opacity: 1; } }

/* ---------- welcome ---------- */
.hero { text-align: center; padding: 64px 0 96px; }
.dial { position: relative; width: min(400px, 82vw); aspect-ratio: 1; margin: 0 auto 30px; animation: rise 1.2s var(--ease) both; }
.dial svg, .dial img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* The outer ring turns clockwise; the seal's inner ring turns the other way; the "U" stays upright. */
.dial-ring { animation: sweep 40s linear infinite; }
.dial-sweep { animation: sweep 60s linear infinite; }
.dial-inner { animation: sweepBack 28s linear infinite; }
.dial-seal { inset: 22%; width: 56%; height: 56%; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.8)); }
@keyframes sweep { to { transform: rotate(360deg); } }
@keyframes sweepBack { to { transform: rotate(-360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: none; } }

.eyebrow {
  margin: 0 0 18px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 0.42em; text-transform: uppercase;
}
.eyebrow::before, .eyebrow::after { content: ""; display: inline-block; width: 28px; height: 1px; margin: 0 14px; vertical-align: middle; background: var(--gold-dim); }
.hero h1 {
  margin: 0 auto 22px; max-width: 16ch; font-family: var(--display); font-weight: 500; font-size: clamp(42px, 8vw, 88px);
  line-height: 1.02; letter-spacing: -0.005em;
}
.hero h1 em {
  font-style: italic; background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { max-width: 40em; margin: 0 auto 34px; color: #d6d0c3; font-size: clamp(17px, 2.1vw, 19.5px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 18px; }
.fine { color: var(--muted); font-size: 13px; margin: 0; }
.caption {
  max-width: 34em; margin: 26px auto 0; padding: 14px 20px; font-family: var(--display); font-style: italic;
  font-size: 18px; line-height: 1.5; color: var(--gold-hi); border-top: 1px solid var(--hair-soft); border-bottom: 1px solid var(--hair-soft);
  animation: rise 0.6s var(--ease) both;
}

/* ---------- chapters ---------- */
.chapter { position: relative; padding: 88px 0; border-top: 1px solid var(--hair-soft); }
.numeral {
  position: absolute; top: 72px; right: 0; margin: 0; font-family: var(--display); font-size: 140px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(201, 165, 76, 0.22); pointer-events: none; user-select: none;
}
.kicker { margin: 0 0 14px; color: var(--gold); font-size: 11px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; }
.kicker::before { content: "\2014\00a0"; color: var(--gold-lo); }
.chapter h2 {
  margin: 0 0 22px; max-width: 18ch; font-family: var(--display); font-weight: 500; font-size: clamp(32px, 5vw, 54px); line-height: 1.08;
}
.chapter h2::after { content: ""; display: block; width: 44px; height: 1px; margin-top: 18px; background: var(--gold); }
.body { max-width: 42em; color: #d6d0c3; font-size: 18px; margin: 0 0 40px; }
.chapter h3 { font-family: var(--display); font-weight: 500; font-size: 24px; line-height: 1.2; margin: 0 0 10px; }

/* the plate: double-ruled panel with hallmark corners */
.plate {
  position: relative; padding: 34px 30px 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0) 140px), var(--panel);
  border: 1px solid var(--hair); border-radius: 4px;
  box-shadow: inset 0 0 0 4px var(--panel), inset 0 0 0 5px var(--hair-soft), 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.plate::before, .plate::after { content: ""; position: absolute; width: 18px; height: 18px; border: 0 solid var(--gold); }
.plate::before { top: -1px; left: -1px; border-width: 1.5px 0 0 1.5px; }
.plate::after { bottom: -1px; right: -1px; border-width: 0 1.5px 1.5px 0; }
.plate h3 { font-size: 30px; background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plate p { margin: 0; color: #d6d0c3; }
.plate .plate-tag { margin: 0 0 10px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; }
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

/* the movements: four columns of features */
.movements { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--hair-soft); border: 1px solid var(--hair-soft); }
.movement { background: var(--bg); padding: 34px 30px; }
.movement h3 { color: var(--gold-hi); }
.movement ul { list-style: none; margin: 0; padding: 0; }
.movement li { position: relative; padding: 0 0 14px 22px; color: #cfc9bc; font-size: 15.5px; }
.movement li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 6px; height: 6px; border: 1px solid var(--gold); transform: rotate(45deg); }
.movement b { color: var(--text); font-weight: 600; }

/* audiences */
.audiences { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 34px; }
.aud { padding: 26px 0 0; border-top: 1px solid var(--gold-dim); }
.aud-n { display: block; margin-bottom: 14px; font-family: var(--display); font-style: italic; font-size: 20px; color: var(--gold); }
.aud h3 { font-size: 22px; }
.aud p { margin: 0; color: #cfc9bc; font-size: 15.5px; }
.roles { max-width: 46em; color: var(--muted); font-size: 15px; margin: 0; }

/* reasons */
.reasons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 34px; counter-reset: r; }
.reasons li { counter-increment: r; position: relative; padding-top: 40px; }
.reasons li::before {
  content: counter(r, upper-roman); position: absolute; top: 0; left: 0; font-family: var(--display); font-size: 15px;
  letter-spacing: 0.1em; color: var(--gold); padding-bottom: 6px; border-bottom: 1px solid var(--gold-dim); min-width: 30px;
}
.reasons p { margin: 0; color: #cfc9bc; font-size: 15.5px; }

/* begin */
.finale { text-align: center; padding-bottom: 110px; }
.finale .kicker::before { content: none; }
.finale h2 { margin-left: auto; margin-right: auto; }
.finale h2::after { margin-left: auto; margin-right: auto; }
.finale .numeral { display: none; }
.finale h2 { max-width: none; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 900px; margin: 10px auto 44px; padding: 0; text-align: left; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.step-n {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--gold); color: var(--gold-hi); font-family: var(--display); font-size: 18px;
  box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 4px var(--hair);
}
.steps p { margin: 4px 0 0; color: #cfc9bc; font-size: 15.5px; }
.finale .fine { margin-top: 20px; }

/* plans */
.interval { display: inline-flex; padding: 3px; margin: 0 0 28px; border: 1px solid var(--hair); border-radius: 999px; }
.seg { background: none; border: 0; padding: 9px 18px; border-radius: 999px; color: var(--muted); cursor: pointer;
  font: 600 12px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; }
.seg.on { background: var(--metal); color: #14100a; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 22px; }
.tier { display: flex; flex-direction: column; }
.tier.featured { border-color: var(--gold); box-shadow: inset 0 0 0 4px var(--panel), inset 0 0 0 5px var(--gold-dim), 0 40px 80px -40px rgba(201, 165, 76, 0.35); }
.tier .badge { align-self: flex-start; margin: 0 0 10px; padding: 3px 10px; border: 1px solid var(--gold); border-radius: 999px; color: var(--gold-hi);
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.tier-price { margin: 8px 0 4px; font-family: var(--display); font-size: 48px; line-height: 1; color: var(--text); }
.tier-unit { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.tier ul { list-style: none; margin: 14px 0 22px; padding: 0; flex: 1; }
.tier li { position: relative; padding: 0 0 8px 20px; color: #cfc9bc; font-size: 15px; }
.tier li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 6px; height: 6px; border: 1px solid var(--gold); transform: rotate(45deg); }
.tier .gold { align-self: stretch; }
.addon { max-width: 46em; color: #d6d0c3; margin: 0 0 8px; }
.addon strong { color: var(--gold-hi); font-weight: 600; }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } }

/* footer */
.foot { text-align: center; padding: 44px 20px calc(44px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hair-soft); }
.foot img { display: block; margin: 0 auto 12px; opacity: 0.85; }
.foot p { margin: 0 0 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); }
.foot .fine { letter-spacing: 0.04em; text-transform: none; font-weight: 400; }

/* reveal as the page scrolls (only when scripts run) */
.js .chapter > * { opacity: 0; transform: translateY(14px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .chapter.seen > * { opacity: 1; transform: none; }
.js .chapter.seen > .numeral { transition-delay: 0.1s; }

@media (max-width: 900px) {
  .audiences { grid-template-columns: repeat(2, 1fr); }
  .reasons { grid-template-columns: repeat(2, 1fr); }
  .numeral { font-size: 100px; }
}
@media (max-width: 640px) {
  .hero { padding: 40px 0 72px; }
  .chapter { padding: 64px 0; }
  .numeral { top: 52px; font-size: 76px; }
  .products, .movements, .audiences, .reasons, .steps { grid-template-columns: 1fr; }
  .movement, .plate { padding: 28px 22px; }
  .hero-actions .gold, .hero-actions .listen, .finale .gold { width: 100%; justify-content: center; }
  .eyebrow { letter-spacing: 0.28em; }
  .eyebrow::before, .eyebrow::after { width: 14px; margin: 0 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dial-ring, .dial-sweep, .dial-inner, .dial, .caption { animation: none; }
  .js .chapter > * { opacity: 1; transform: none; transition: none; }
  .listen[aria-pressed="true"] .bars i { animation: none; }
}

/* The foot patrol version */
.patrol { text-align: left; }
.fp-list { list-style: none; margin: 26px 0; padding: 0; display: grid; gap: 14px; max-width: 760px; }
.fp-list li { position: relative; padding-left: 26px; color: #cfc9bc; font-size: 16px; }
.fp-list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 10px; height: 10px; transform: rotate(45deg); border: 1px solid var(--gold, #c9a54c); }
.fp-price { margin: 0 0 26px; color: #cfc9bc; }
.fp-price b { font-family: "Ulmer Display", Georgia, serif; font-size: 40px; font-weight: 600; color: #e6cf8f; margin-right: 6px; }
.fp-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.quiet-btn { display: inline-block; padding: 17px 26px; border: 1px solid rgba(201, 165, 76, 0.55); border-radius: 2px; color: #e6cf8f; text-decoration: none; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; }
.quiet-btn:hover { border-color: #c9a54c; background: rgba(201, 165, 76, 0.08); }
.fp-page main { max-width: 980px; margin: 0 auto; padding: 120px 22px 80px; }
.fp-page h1 { font-family: "Ulmer Display", Georgia, serif; font-weight: 500; font-size: clamp(36px, 6vw, 64px); line-height: 1.05; margin: 10px 0 18px; }
.fp-page h2 { font-family: "Ulmer Display", Georgia, serif; font-weight: 500; font-size: 30px; margin: 56px 0 14px; }
.fp-page p, .fp-page li { color: #cfc9bc; font-size: 16.5px; line-height: 1.65; }
.fp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.fp-card { border: 1px solid rgba(201, 165, 76, 0.28); border-radius: 4px; padding: 24px 26px; background: rgba(255, 255, 255, 0.02); }
.fp-card h3 { margin: 0 0 10px; color: #e6cf8f; font-size: 15px; letter-spacing: 0.16em; text-transform: uppercase; }
.fp-card ul { margin: 0; padding-left: 20px; }
.fp-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 15px; }
.fp-table th, .fp-table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid rgba(201, 165, 76, 0.18); color: #cfc9bc; }
.fp-table thead th { color: #e6cf8f; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.fp-table td.y { color: #9fd3b6; }
.fp-table td.n { color: #8a8478; }
.fp-cta { margin-top: 56px; padding: 36px; border: 1px solid rgba(201, 165, 76, 0.4); text-align: center; }
@media (max-width: 760px) { .fp-cols { grid-template-columns: 1fr; } .fp-table { font-size: 13.5px; } }
.fp-back { margin-top: 18px; }
