/* ==========================================================================
   SROSENBERRY.COM — shared design system
   Approved direction through October 16, 2026.
   Cool 80s, optimistic retro-futurism: midnight blue, orange/gold metallic
   display type, restrained cyan, angular chamfered accents.
   Palette: navy #061329 · cyan #00C9FF · orange #FF7A13 · gold #FFD34B
            warm white #F4F6FA
   ========================================================================== */

:root {
  --navy: #061329;
  --navy-2: #0a1a35;
  --navy-3: #0e2242;
  --ink: #f4f6fa;
  --muted: #a9b4c7;
  --dim: #64748f;
  --cyan: #00c9ff;
  --cyan-dim: rgba(0, 201, 255, 0.35);
  --orange: #ff7a13;
  --gold: #ffd34b;
  --line: rgba(0, 201, 255, 0.22);
  --card: rgba(10, 26, 53, 0.72);
  --chamfer: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background: var(--navy);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(0, 201, 255, 0.07), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(255, 122, 19, 0.05), transparent 60%);
}
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }

/* ---------- display type: slanted metallic ---------- */
.display {
  font-family: "Arial Black", "Impact", "Segoe UI", sans-serif;
  font-style: italic;
  letter-spacing: 1px;
  line-height: 0.95;
}
/* Metallic orange/gold faces, dimensional blue edge, scroll-driven sheen.
   JS sets --sx (0..1) from scroll position. */
.metal {
  --sx: 0.5;
  background-image:
    linear-gradient(105deg,
      transparent calc(var(--sx) * 100% - 22%),
      rgba(255, 255, 255, 0.55) calc(var(--sx) * 100% - 6%),
      rgba(255, 255, 255, 0.9) calc(var(--sx) * 100%),
      rgba(255, 255, 255, 0.55) calc(var(--sx) * 100% + 6%),
      transparent calc(var(--sx) * 100% + 22%)),
    linear-gradient(180deg, var(--orange) 8%, var(--gold) 55%, #ff9a2e 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(3px 3px 0 #0b3f9e) drop-shadow(6px 6px 0 rgba(0, 201, 255, 0.18));
}
@media (prefers-reduced-motion: reduce) {
  .metal { --sx: 0.5; }
  html { scroll-behavior: auto; }
}

.kicker {
  color: var(--cyan); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 4px; margin-bottom: 14px;
}
.kicker.dim { color: var(--dim); }
h2.sec {
  font-family: "Arial Black", "Impact", sans-serif; font-style: italic;
  font-size: clamp(1.9rem, 4.5vw, 3rem); letter-spacing: 1px;
  line-height: 1.05; margin-bottom: 14px; color: var(--ink);
}
.lede { color: var(--muted); max-width: 680px; font-size: 1.06rem; }
.lede strong { color: var(--ink); }

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 19, 41, 0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; gap: 34px; height: 72px; }
.logo {
  font-family: "Arial Black", sans-serif; font-style: italic; font-size: 1.5rem;
  letter-spacing: 1px; text-decoration: none; margin-right: auto;
  background: linear-gradient(180deg, var(--cyan), #4d9fff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(2px 2px 0 rgba(11, 63, 158, 0.9));
}
nav.main { display: flex; align-items: center; gap: 30px; }
nav.main a.nl {
  color: var(--muted); text-decoration: none; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 2.5px; padding: 6px 2px; position: relative;
}
nav.main a.nl:hover { color: var(--ink); }
nav.main a.nl.on { color: var(--ink); }
nav.main a.nl.on::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px;
  background: var(--gold);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
/* capabilities dropdown */
.has-menu { position: relative; }
.has-menu > button {
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 0.85rem; font-weight: 600; letter-spacing: 2.5px;
  padding: 6px 2px; font-family: inherit;
}
.has-menu > button:hover, .has-menu > button[aria-expanded="true"] { color: var(--ink); }
.has-menu > button .car { font-size: 0.7rem; margin-left: 4px; }
.menu {
  position: absolute; top: calc(100% + 14px); left: -14px; min-width: 250px;
  background: var(--navy-2); border: 1px solid var(--line); border-radius: 4px;
  padding: 8px; display: none; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
.has-menu.open .menu { display: block; }
.menu a {
  display: block; padding: 12px 16px; text-decoration: none; border-radius: 3px;
  font-size: 0.92rem; color: var(--ink);
}
.menu a small { display: block; color: var(--dim); font-size: 0.78rem; }
.menu a:hover, .menu a:focus-visible { background: rgba(0, 201, 255, 0.1); }
.menu a:hover small { color: var(--muted); }

/* ---------- chamfered buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 800; letter-spacing: 2px;
  font-size: 0.88rem; padding: 15px 34px; color: #1a1206;
  background: linear-gradient(180deg, var(--gold), var(--orange));
  clip-path: polygon(var(--chamfer) 0, 100% 0, calc(100% - var(--chamfer)) 100%, 0 100%);
  transition: filter 0.15s ease, transform 0.15s ease;
  border: none; cursor: pointer; font-family: inherit;
}
.btn:hover { filter: brightness(1.1); transform: translateY(-2px); }
.btn.ghost {
  background: transparent; color: var(--cyan);
  box-shadow: inset 0 0 0 2px var(--cyan-dim);
  clip-path: polygon(var(--chamfer) 0, 100% 0, calc(100% - var(--chamfer)) 100%, 0 100%);
}
.btn.ghost:hover { color: var(--ink); box-shadow: inset 0 0 0 2px var(--cyan); filter: none; }
.btn.sm { padding: 11px 24px; font-size: 0.8rem; }
.btn.connect {
  background: transparent; color: var(--gold);
  box-shadow: inset 0 0 0 2px rgba(255, 211, 75, 0.55);
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}
.btn.connect:hover { box-shadow: inset 0 0 0 2px var(--gold); color: var(--ink); filter: none; }

/* ---------- panels & tiles ---------- */
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  padding: 30px;
}
.tile {
  display: block; text-decoration: none; background: var(--card);
  border: 1px solid var(--line); padding: 30px 28px; position: relative;
  clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.tile:hover, .tile:focus-visible { border-color: var(--cyan); transform: translateY(-3px); background: rgba(14, 34, 66, 0.85); }
.tile .t-top { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 6px; }
.tile .t-ico { flex: 0 0 56px; color: var(--cyan); }
.tile h3 { font-size: 1.05rem; letter-spacing: 2.5px; font-weight: 800; }
.tile .t-go { color: var(--cyan); font-size: 0.92rem; margin-top: 10px; }
.tile .t-go .arr { transition: margin-left 0.15s ease; }
.tile:hover .t-go .arr { margin-left: 6px; }
.tile::after {
  content: ""; position: absolute; right: 14px; bottom: 12px; width: 26px; height: 3px;
  background: var(--gold); clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  opacity: 0.8;
}

/* ---------- page hero ---------- */
.page-hero { padding: 72px 0 26px; }
.page-hero h1 {
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  margin: 6px 0 12px;
}
.page-hero .sub { color: var(--ink); font-size: 1.35rem; font-weight: 600; }
.page-hero .lede { margin-top: 8px; }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--line); margin-top: 90px; padding: 30px 0 38px; }
footer.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer.site .fname { color: var(--cyan); font-size: 0.85rem; letter-spacing: 3px; font-weight: 600; }
footer.site a.flink { color: var(--gold); text-decoration: none; font-size: 0.85rem; letter-spacing: 3px; font-weight: 700; }
footer.site a.flink:hover { color: var(--ink); }
footer.site .vib { width: 100%; color: var(--dim); font-size: 0.78rem; font-family: "Courier New", monospace; margin-top: 10px; }

/* ---------- focus visibility ---------- */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 2px;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  nav.main { gap: 18px; }
  nav.main a.nl { display: none; }
  nav.main .has-menu > button { font-size: 0.78rem; }
  .page-hero h1 { font-size: clamp(2.4rem, 11vw, 3.4rem); }
}

/* ---------- maps ---------- */
.map-frame { background: rgba(10,26,53,0.6); border: 1px solid var(--line); border-radius: 6px; padding: 18px; }
.map-frame svg { width: 100%; height: auto; }
.region-tint { transition: opacity 0.25s ease; }
.city { cursor: pointer; }
.city .halo { transition: opacity 0.2s ease; }
.city .dot, .city .core { transition: stroke 0.2s ease, fill 0.2s ease; }
.hq { cursor: pointer; }
.hq circle { transition: stroke 0.2s ease, fill 0.2s ease; }
.region .office, .region .spoke { transition: opacity 0.25s ease; }
.region:not(.active) .office { opacity: 0.18; }
.region:not(.active) .spoke { opacity: 0.06; }
