/* ==========================================================================
   Pocono Smart — smart home systems, Albrightsville PA
   Design language: "Control Room" — dark instrument panel, bento tiles,
   amber signal accents, hairline rules, spec-sheet labels.
   ========================================================================== */

:root {
  --ink: #0A0F16;
  --panel: #131B26;
  --panel-2: #1A2431;
  --line: #25313F;
  --line-soft: #1C2531;
  --amber: #5FA5C7;
  --amber-dim: #366896;
  --amber-glow: rgba(95, 165, 199, .18);
  --mist: #93A6BC;
  --mist-dim: #68798E;
  --white: #F2F7FB;
  --green: #4ADE80;

  --shell: 1240px;
  --gap: 22px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;

  --f-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Space Grotesk", ui-monospace, "SF Mono", Menlo, monospace;

  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--f-sans);
  font-size: 16.5px;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 { line-height: 1.24; margin: 0; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.15rem, 5.4vw, 3.7rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 3.3vw, 2.45rem); letter-spacing: -.02em; }
h3 { font-size: 1.16rem; }
p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

.shell { width: min(100% - 40px, var(--shell)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--amber); color: var(--ink); padding: 12px 20px; border-radius: 0 0 10px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

/* ---------- spec label (the signature type detail) ----------------------- */
.spec {
  font-family: var(--f-mono);
  font-size: .715rem;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 9px;
}
.spec::before {
  content: ""; width: 22px; height: 1px; background: currentColor; opacity: .55;
}
.spec--plain::before { display: none; }
.spec--mist { color: var(--mist-dim); }

/* ---------- buttons ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 100px; font-weight: 700; font-size: .95rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-amber { background: var(--amber); color: #08131A; box-shadow: 0 8px 26px -10px var(--amber); }
.btn-amber:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -10px var(--amber); }
.btn-ghost { border-color: var(--line); color: var(--white); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: .86rem; }

/* ---------- header ------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 60; }

.util {
  background: #070B11; border-bottom: 1px solid var(--line-soft);
  font-size: .8rem; color: var(--mist);
}
.util-in { display: flex; align-items: center; gap: 22px; min-height: 40px; flex-wrap: wrap; }
.util a { text-decoration: none; }
.util a:hover { color: var(--amber); }
.util-live { display: inline-flex; align-items: center; gap: 8px; color: var(--white); font-weight: 500; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(74,222,128,.16); }
.util-cell { display: inline-flex; align-items: center; gap: 7px; }
.util-cell svg { width: 14px; height: 14px; color: var(--amber); }
.util-right { margin-left: auto; display: inline-flex; align-items: center; gap: 18px; }
@media (max-width: 860px) { .util-hide { display: none; } }

.bar {
  background: rgba(10,15,22,.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
/* HEADER SHAPE — console bar: logo left, nav centred, instrument cluster right */
.bar-in { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 26px; min-height: var(--header-h); }
.brand { flex: none; text-decoration: none; }
.brand img { height: 44px; width: auto; }

.bar-tel {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-family: var(--f-mono); font-size: .82rem; letter-spacing: .04em; color: var(--mist);
  padding-left: 20px; border-left: 1px solid var(--line); margin-right: 4px;
  transition: color .16s ease;
}
.bar-tel svg { width: 15px; height: 15px; color: var(--amber); }
.bar-tel:hover { color: var(--white); }
@media (max-width: 1240px) { .bar-tel { display: none; } }

.nav { justify-self: center; }
.nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--mist); padding: 9px 14px; border-radius: 8px; display: block; transition: color .16s ease, background .16s ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); background: rgba(255,255,255,.05); }

.has-sub { position: relative; display: flex; align-items: center; }
.sub-btn {
  background: none; border: 0; color: var(--mist-dim); padding: 4px; cursor: pointer; line-height: 0;
  border-radius: 6px; margin-left: -8px;
}
.sub-btn svg { width: 15px; height: 15px; transition: transform .2s ease; }
.has-sub.is-open .sub-btn svg { transform: rotate(180deg); }
.sub {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 268px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 8px; list-style: none; margin: 0;
  box-shadow: 0 24px 60px -22px #000;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-sub:hover .sub, .has-sub.is-open .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { font-size: .9rem; padding: 10px 13px; color: var(--mist); }
.sub a:hover { background: rgba(95,165,199,.12); color: var(--amber); }
.sub-all { color: var(--amber) !important; border-top: 1px solid var(--line-soft); margin-top: 6px; padding-top: 12px !important; border-radius: 0 !important; }

.bar-cta { display: flex; align-items: center; gap: 12px; flex: none; }
.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: none; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { width: 18px; height: 1.8px; background: var(--white); border-radius: 2px; transition: transform .22s ease, opacity .22s ease; }
.site-header.nav-open .burger span:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
.site-header.nav-open .burger span:nth-child(2) { opacity: 0; }
.site-header.nav-open .burger span:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

@media (max-width: 1020px) {
  .burger { display: flex; }
  .bar-cta .btn { display: none; }
  .bar-in { grid-template-columns: auto 1fr; }
  .bar-cta { justify-self: end; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--panel);
    border-bottom: 1px solid var(--line); padding: 10px 20px 22px;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    display: none;
  }
  .site-header.nav-open .nav { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a { padding: 13px 12px; font-size: 1rem; }
  .has-sub { display: flex; flex-wrap: wrap; align-items: center; }
  .has-sub > a { flex: 1; }
  .sub {
    position: static; opacity: 1; visibility: visible; transform: none; display: none;
    width: 100%; box-shadow: none; background: rgba(0,0,0,.25); margin: 4px 0 8px;
  }
  .has-sub.is-open .sub { display: block; }
}

/* ---------- section frame ------------------------------------------------ */
.sec { padding: clamp(62px, 8vw, 108px) 0; position: relative; }
.sec--tight { padding: clamp(46px, 5.5vw, 72px) 0; }
.sec--panel { background: #080D14; border-block: 1px solid var(--line-soft); }

.sec-head { max-width: 660px; margin-bottom: clamp(34px, 4vw, 54px); }
.sec-head h2 { margin: 14px 0 0; }
.sec-head p { margin-top: 14px; color: var(--mist); font-size: 1.03rem; }
.sec-head--split { max-width: none; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; }
.sec-head--split > div { max-width: 660px; }
@media (max-width: 780px) { .sec-head--split { grid-template-columns: 1fr; align-items: start; } }

/* ---------- HERO: instrument panel --------------------------------------- */
.hero { position: relative; padding: clamp(52px, 6.5vw, 96px) 0 clamp(60px, 7vw, 104px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% 30% 40% -20%;
  background: radial-gradient(closest-side, var(--amber-glow), transparent 72%);
  pointer-events: none;
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1.02fr .98fr;
  gap: clamp(30px, 4vw, 62px); align-items: center;
}
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { margin: 18px 0 0; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero-lede { margin-top: 20px; font-size: 1.09rem; color: var(--mist); max-width: 44ch; }
.hero-act { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }

.hero-chips { margin-top: 34px; display: flex; gap: 10px; flex-wrap: wrap; list-style: none; padding: 0; }
.hero-chips li {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: rgba(255,255,255,.02);
  border-radius: 100px; padding: 7px 15px; font-size: .84rem; color: var(--mist);
}
.hero-chips svg { width: 14px; height: 14px; color: var(--amber); }

/* hero visual: photo panel + floating readout tiles */
.hero-vis { position: relative; }
.hero-photo {
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 40px 90px -40px #000;
}
.hero-photo img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.readout {
  position: absolute; background: rgba(20,26,34,.92); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 18px;
  box-shadow: 0 20px 50px -20px #000;
}
.readout .k { font-family: var(--f-mono); font-size: 1.5rem; font-weight: 700; color: var(--amber); line-height: 1; }
.readout .l { font-size: .76rem; color: var(--mist); margin-top: 6px; letter-spacing: .04em; }
.readout--a { left: -26px; bottom: 42px; }
.readout--b { right: -18px; top: 34px; }
@media (max-width: 1120px) { .readout--a { left: 12px; } .readout--b { right: 12px; } }
@media (max-width: 520px) { .readout { display: none; } }

/* ---------- marquee trust strip ------------------------------------------ */
.strip { border-block: 1px solid var(--line-soft); background: #070B11; padding: 20px 0; }
.strip-in { display: flex; gap: 14px 46px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.strip-item { display: inline-flex; align-items: center; gap: 10px; color: var(--mist); font-size: .88rem; }
.strip-item svg { width: 17px; height: 17px; color: var(--amber); flex: none; }

/* ---------- BENTO grid (services) ---------------------------------------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--gap); }
.tile {
  position: relative; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px; overflow: hidden; text-decoration: none;
  display: flex; flex-direction: column; min-height: 208px;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.tile:hover { border-color: rgba(95,165,199,.55); transform: translateY(-3px); background: var(--panel-2); }
.tile-ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--amber-glow); border: 1px solid rgba(95,165,199,.32); color: var(--amber); margin-bottom: 18px;
}
.tile-ico svg { width: 22px; height: 22px; }
.tile h3 { margin-bottom: 8px; }
.tile p { color: var(--mist); font-size: .93rem; line-height: 1.72; margin: 0; }
.tile-go {
  margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 8px;
  color: var(--amber); font-size: .85rem; font-weight: 700;
}
.tile-go svg { width: 15px; height: 15px; transition: transform .2s ease; }
.tile:hover .tile-go svg { transform: translateX(4px); }

.tile--wide { grid-column: span 4; }
.tile--half { grid-column: span 3; }
.tile--third { grid-column: span 2; }
.tile--tall { grid-column: span 2; grid-row: span 2; }

/* photo tile variant */
.tile--photo { padding: 0; min-height: 268px; justify-content: flex-end; }
.tile--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.tile--photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(7,11,17,.96) 30%, rgba(7,11,17,.78) 50%, rgba(7,11,17,.38) 72%, rgba(7,11,17,.12));
}
.tile--photo::after { z-index: 1; }
.tile--photo .tile-body { position: relative; z-index: 2; padding: 26px; }

@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .tile--wide, .tile--half { grid-column: span 4; }
  .tile--third, .tile--tall { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .tile, .tile--wide, .tile--half, .tile--third, .tile--tall { grid-column: 1 / -1; }
}

/* ---------- step rail ---------------------------------------------------- */
.rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); counter-reset: step; }
.rail-item { position: relative; padding-top: 30px; border-top: 1px solid var(--line); }
.rail-item::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: -1px; left: 0; padding-right: 14px;
  background: var(--ink); transform: translateY(-52%);
  font-family: var(--f-mono); font-size: .9rem; font-weight: 700; color: var(--amber);
}
.sec--panel .rail-item::before { background: #080D14; }
.rail-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.rail-item p { color: var(--mist); font-size: .91rem; margin: 0; }
@media (max-width: 900px) { .rail { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .rail { grid-template-columns: 1fr; } }

/* ---------- split feature ------------------------------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 4.5vw, 66px); align-items: center; }
.split--flip .split-media { order: 2; }
.split-media { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); position: relative; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split--flip .split-media { order: 0; } }

.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 13px; }
.ticks li { display: flex; gap: 13px; align-items: flex-start; color: var(--mist); font-size: .96rem; }
.ticks svg { width: 20px; height: 20px; flex: none; color: var(--amber); margin-top: 3px; }
.ticks b { color: var(--white); font-weight: 600; }

/* ---------- stats -------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: var(--ink); padding: 32px 26px; }
.sec--panel .stat { background: #080D14; }
.stat .n { font-family: var(--f-mono); font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 700; color: var(--amber); line-height: 1; }
.stat .t { margin-top: 10px; color: var(--mist); font-size: .89rem; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .stats { grid-template-columns: 1fr; } }

/* ---------- room grid ---------------------------------------------------- */
.rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.room {
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 24px;
  background: linear-gradient(160deg, var(--panel), transparent 70%);
}
.room h3 { font-size: 1.02rem; display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.room h3 svg { width: 19px; height: 19px; color: var(--amber); }
.room p { color: var(--mist); font-size: .9rem; margin: 0; }
@media (max-width: 880px) { .rooms { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .rooms { grid-template-columns: 1fr; } }

/* ---------- quotes ------------------------------------------------------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.quote { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.quote-mark { font-family: var(--f-mono); font-size: 2.6rem; line-height: .7; color: var(--amber); opacity: .5; }
.quote p { margin: 16px 0 20px; color: var(--white); font-size: .98rem; line-height: 1.76; }
.quote footer { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line-soft); padding-top: 16px; }
.quote .av { width: 38px; height: 38px; border-radius: 50%; background: var(--amber-glow); border: 1px solid rgba(95,165,199,.34); color: var(--amber); display: grid; place-items: center; font-weight: 700; font-size: .9rem; flex: none; }
.quote .who { font-size: .88rem; font-weight: 600; }
.quote .where { font-size: .8rem; color: var(--mist-dim); }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- notes / article cards ---------------------------------------- */
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.note { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--panel); text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.note:hover { transform: translateY(-3px); border-color: rgba(95,165,199,.5); }
.note-img { aspect-ratio: 16 / 10; overflow: hidden; }
.note-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.note:hover .note-img img { transform: scale(1.05); }
.note-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.note-meta { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mist-dim); }
.note h3 { margin: 12px 0 10px; font-size: 1.06rem; }
.note p { color: var(--mist); font-size: .91rem; margin: 0 0 18px; }
.note .more { margin-top: auto; color: var(--amber); font-size: .84rem; font-weight: 700; }
@media (max-width: 900px) { .notes { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------------------------------------------------------- */
.faq { display: grid; gap: 12px; max-width: 880px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); overflow: hidden; }
.faq details[open] { border-color: rgba(95,165,199,.5); }
.faq summary {
  cursor: pointer; padding: 19px 56px 19px 24px; font-weight: 600; font-size: 1rem;
  position: relative; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 11px; height: 11px;
  border-right: 2px solid var(--amber); border-bottom: 2px solid var(--amber);
  transform: translateY(-70%) rotate(45deg); transition: transform .22s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .ans { padding: 0 24px 22px; color: var(--mist); font-size: .95rem; }

/* ---------- coverage ----------------------------------------------------- */
.towns { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.towns li { border: 1px solid var(--line); border-radius: 100px; padding: 8px 17px; font-size: .87rem; color: var(--mist); background: rgba(255,255,255,.02); }
.towns li::before { content: "◦"; color: var(--amber); margin-right: 8px; }

/* ---------- CTA band ----------------------------------------------------- */
.cta {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid rgba(95,165,199,.34);
  background: linear-gradient(135deg, #0C1F2B, var(--panel) 55%);
  padding: clamp(38px, 5vw, 62px);
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
.cta::before { content: ""; position: absolute; inset: -60% 55% 20% -10%; background: radial-gradient(closest-side, var(--amber-glow), transparent 70%); }
.cta > * { position: relative; }
.cta h2 { margin-bottom: 12px; }
.cta p { color: var(--mist); margin: 0; max-width: 52ch; }
.cta-act { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } }

/* ---------- page header (inner pages) ------------------------------------ */
.ph { padding: clamp(44px, 5.5vw, 78px) 0 clamp(30px, 4vw, 50px); border-bottom: 1px solid var(--line-soft); position: relative; overflow: hidden; }
.ph::before { content: ""; position: absolute; inset: -50% 60% 30% -15%; background: radial-gradient(closest-side, var(--amber-glow), transparent 72%); }
.ph .shell { position: relative; }
.crumbs { font-size: .8rem; color: var(--mist-dim); margin-bottom: 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--amber); }
.crumbs span { margin: 0 8px; opacity: .45; }
.ph h1 { max-width: 20ch; }
.ph-lede { margin-top: 18px; color: var(--mist); font-size: 1.05rem; max-width: 62ch; }
.ph--wide h1 { max-width: 26ch; }

/* ---------- doc layout (article + rail) ---------------------------------- */
.doc { display: grid; grid-template-columns: minmax(0, 1fr) 316px; gap: clamp(30px, 4vw, 58px); align-items: start; }
@media (max-width: 980px) { .doc { grid-template-columns: 1fr; } }

.rail-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; margin-bottom: 18px; }
.rail-card h3 { font-size: 1rem; margin-bottom: 14px; }
.rail-card p { color: var(--mist); font-size: .89rem; }
.rail-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rail-links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-decoration: none; padding: 10px 12px; border-radius: 9px; font-size: .9rem; color: var(--mist); }
.rail-links a:hover, .rail-links a.is-on { background: rgba(95,165,199,.12); color: var(--amber); }
.rail-links svg { width: 14px; height: 14px; opacity: .7; }
.rail-sticky { position: sticky; top: calc(var(--header-h) + 20px); }

/* ---------- prose -------------------------------------------------------- */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.1em; font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.prose h3 { margin-top: 1.7em; font-size: 1.13rem; }
.prose p { color: #C9D6E3; }
.prose ul, .prose ol { padding-left: 1.3em; color: #C9D6E3; display: grid; gap: 9px; }
.prose li::marker { color: var(--amber); }
.prose strong { color: var(--white); }
.prose a { color: var(--amber); text-underline-offset: 3px; }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: var(--r-md); border: 1px solid var(--line); width: 100%; }
.prose figcaption { margin-top: 11px; font-size: .82rem; color: var(--mist-dim); }
.prose blockquote {
  margin: 2em 0; padding: 22px 26px; border-left: 3px solid var(--amber);
  background: var(--panel); border-radius: 0 var(--r-md) var(--r-md) 0; color: var(--white);
}
.prose blockquote p:last-child { margin: 0; }

.callout {
  border: 1px solid rgba(95,165,199,.38); background: rgba(95,165,199,.08);
  border-radius: var(--r-md); padding: 22px 24px; margin: 2em 0;
}
.callout h3 { color: var(--amber); font-size: 1rem; margin-bottom: 8px; }
.callout p { color: var(--mist); margin: 0; font-size: .94rem; }

.keyfacts { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.keyfacts li { background: var(--panel); padding: 14px 18px; display: flex; justify-content: space-between; gap: 16px; font-size: .89rem; }
.keyfacts .kf-k { color: var(--mist-dim); }
.keyfacts .kf-v { color: var(--white); font-weight: 600; text-align: right; }

/* ---------- forms -------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .85rem; color: var(--mist); font-weight: 500; }
.field input, .field select, .field textarea {
  background: #080D14; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 13px 15px; color: var(--white); font: inherit; font-size: .95rem; width: 100%;
}
.field textarea { min-height: 148px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-glow); }
.form-note { font-size: .82rem; color: var(--mist-dim); margin-top: 14px; }
.form-status { margin-top: 14px; font-size: .9rem; color: var(--green); }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- footer ------------------------------------------------------- */
.site-footer { background: #080B0F; border-top: 1px solid var(--line-soft); padding: clamp(50px, 6vw, 80px) 0 0; }
.foot-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 38px; padding-bottom: 46px; }
.foot-brand img { height: 46px; width: auto; margin-bottom: 18px; }
.foot-brand p { color: var(--mist); font-size: .91rem; max-width: 34ch; }
.foot-col h4 { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .17em; text-transform: uppercase; color: var(--mist-dim); margin-bottom: 16px; font-weight: 600; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-col a { text-decoration: none; color: var(--mist); font-size: .91rem; }
.foot-col a:hover { color: var(--amber); }
.foot-contact { display: grid; gap: 13px; }
.foot-contact div { display: flex; gap: 11px; align-items: flex-start; color: var(--mist); font-size: .91rem; }
.foot-contact svg { width: 16px; height: 16px; color: var(--amber); flex: none; margin-top: 4px; }
.foot-contact a { text-decoration: none; }
.foot-contact a:hover { color: var(--amber); }
.foot-bot { border-top: 1px solid var(--line-soft); padding: 22px 0 30px; display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; font-size: .84rem; color: var(--mist-dim); }
.foot-bot nav { margin-left: auto; display: flex; gap: 22px; }
.foot-bot a { text-decoration: none; }
.foot-bot a:hover { color: var(--amber); }
@media (max-width: 900px) { .foot-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-top { grid-template-columns: 1fr; gap: 30px; } .foot-bot nav { margin-left: 0; } }

/* ---------- cookie ------------------------------------------------------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 18px 22px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  box-shadow: 0 30px 70px -25px #000; max-width: 760px; margin-inline: auto;
}
.cookie p { margin: 0; font-size: .88rem; color: var(--mist); flex: 1; min-width: 240px; }
.cookie-act { display: flex; gap: 10px; }


/* last card of a 5-item index grid spans the spare column so no cell is left empty */
.note--fill { grid-column: span 2; }
.note--fill .note-img { aspect-ratio: 21 / 9; }
@media (max-width: 900px) { .note--fill { grid-column: auto; } .note--fill .note-img { aspect-ratio: 16 / 10; } }

/* ---------- reveal ------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- misc --------------------------------------------------------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.mt0 { margin-top: 0 !important; }
.center { text-align: center; }
.muted { color: var(--mist); }
