/* Half Mile Holdings — single-page stylesheet.
   Palette and type follow the brand artwork: deep night navy, brushed chrome,
   and a cold blue rim light. No external fonts, no CDNs, no requests off-site. */

:root {
  --void:    #04070e;
  --void-2:  #070c16;
  --panel:   rgba(16, 27, 44, 0.72);
  --ink:     #e9eef6;
  --body:    #c3cddb;
  --muted:   #8d9cb0;
  --rule:    rgba(125, 163, 201, 0.18);
  --accent:  #74b6e0;
  --accent-2:#a9d6ef;
  --chrome-1:#ffffff;
  --chrome-2:#c9d5e2;
  --chrome-3:#8fa2b5;
  --measure: 34rem;
  --wide:    72rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(90rem 40rem at 50% -18%, rgba(58, 118, 173, 0.28), transparent 62%),
    radial-gradient(60rem 30rem at 88% 8%, rgba(96, 148, 190, 0.12), transparent 70%),
    linear-gradient(180deg, var(--void-2), var(--void) 40%);
  background-color: var(--void);
  color: var(--body);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
}

.site-head,
main,
.site-foot {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- header ---------- */

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  padding-bottom: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
}

.mark {
  width: 28px;
  height: 28px;
  color: var(--accent);
  flex: none;
  filter: drop-shadow(0 0 6px rgba(116, 182, 224, 0.45));
}

.brand-text {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--chrome-2);
  background: linear-gradient(180deg, var(--chrome-1), var(--chrome-2) 55%, var(--chrome-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- hero artwork ---------- */

.hero-art {
  margin: 0 0 3rem;
  border: 1px solid var(--rule);
  border-radius: 3px;
  overflow: hidden;
  box-shadow:
    0 40px 90px -50px rgba(83, 160, 214, 0.55),
    0 0 0 1px rgba(3, 6, 12, 0.9) inset;
  position: relative;
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 26%;
  background: linear-gradient(180deg, transparent, rgba(4, 7, 14, 0.55));
  pointer-events: none;
}

.hero-art picture,
.hero-art img { display: block; }

.hero-art img {
  width: 100%;
  height: auto;
  aspect-ratio: 1600 / 900;
}

/* ---------- intro ---------- */

.hero {
  padding-bottom: 3.25rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
  flex: none;
}

.hero h1 {
  margin: 0 0 1.5rem;
  max-width: 28ch;
  font-size: clamp(2rem, 5.4vw, 3.5rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.022em;
  background: linear-gradient(174deg, var(--chrome-1) 12%, var(--chrome-2) 58%, var(--chrome-3) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1,
  .brand-text {
    -webkit-text-fill-color: currentColor;
    color: var(--ink);
    background: none;
  }
}

.lede {
  margin: 0;
  max-width: var(--measure);
  font-size: 1.06rem;
  color: var(--body);
}

/* ---------- verse ticker ---------- */

.ticker {
  position: relative;
  overflow: hidden;
  margin: 0 0 1.5rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  will-change: transform;
  animation: crawl 120s linear infinite;
}

.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track { animation-play-state: paused; }

.ticker-item {
  padding-right: 3.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 0 16px rgba(116, 182, 224, 0.28);
}

@keyframes crawl {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* ---------- candles ---------- */

.candles {
  position: relative;
  height: 152px;
  margin: 0 0 3.25rem;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(16, 27, 44, 0.55), rgba(6, 10, 18, 0.9));
  box-shadow: 0 30px 70px -50px rgba(83, 160, 214, 0.6);
  overflow: hidden;
}

#candles {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------- footer ---------- */

.site-foot {
  padding-top: 1.75rem;
  padding-bottom: 2.75rem;
  border-top: 1px solid var(--rule);
}

.site-foot p {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---------- utility ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a { color: var(--accent-2); }

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: rgba(116, 182, 224, 0.32);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero-art {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .hero-art img { aspect-ratio: 16 / 10; object-fit: cover; }
  .ticker-item { font-size: 0.64rem; letter-spacing: 0.2em; }
  .candles { height: 124px; }
}
