/* Parsons / U.S. Cyber Command case study
   Same structure as the Alphanation case study (hero, facts card, sections),
   in a dark operations-console theme taken from the AMS and Weathervane UIs. */
:root {
  --bg: #0a1020;
  --bg-2: #0d1528;
  --panel: #121c33;
  --panel-2: #172340;
  --line: rgba(140, 190, 255, .14);
  --ink: #e8eef7;
  --muted: #9cabc1;
  --accent: #2fd4c4;
  --accent-2: #5aa8ff;
  --warn: #f5a524;
  --radius: 18px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; border-radius: 10px; background: var(--accent); color: #04201d; font-weight: 700; }
.skip:focus { left: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Background: faint grid and glow, like a console */
.backdrop {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(47, 212, 196, .16), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(90, 168, 255, .12), transparent 60%),
    linear-gradient(rgba(140, 190, 255, .05) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(140, 190, 255, .05) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--bg);
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 16, 32, .78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.header-name { font-weight: 700; color: var(--muted); font-size: .95rem; }
.header-title { font-weight: 800; letter-spacing: .02em; }
.header-title span { color: var(--accent); }

/* Pills / buttons */
.pill {
  display: inline-flex; align-items: center; gap: .4em;
  min-height: 44px; padding: 0 1.2rem;
  border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none;
  transition: background .2s, color .2s, box-shadow .2s, transform .2s;
}
.pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.pill-ghost { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); background: rgba(255, 255, 255, .03); }
.pill-ghost:hover { box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); }
.pill-primary { background: var(--accent); color: #04201d; box-shadow: 0 10px 30px rgba(47, 212, 196, .25); }
.pill-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(47, 212, 196, .35); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3.5rem; align-items: center; padding-block: 4.5rem 5rem; }
.chip {
  display: inline-flex; margin: 0 0 1.1rem; padding: .35rem .9rem; border-radius: 999px;
  background: rgba(47, 212, 196, .08); box-shadow: inset 0 0 0 1px rgba(47, 212, 196, .35);
  color: var(--accent); font-size: .8rem; font-weight: 700;
}
h1, h2, h3 { margin: 0; line-height: 1.1; text-wrap: balance; }
.hero h1 { font-size: clamp(2.8rem, 6vw, 4.8rem); font-weight: 800; letter-spacing: -.02em; }
.tagline { margin: 1rem 0 1.2rem; font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 700; color: var(--accent); line-height: 1.25; }
.lead { margin: 0; max-width: 60ch; color: var(--muted); font-size: 1.05rem; }
.facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.5rem;
  margin: 1.8rem 0; padding: 1.2rem 1.4rem;
  border-radius: var(--radius); background: rgba(18, 28, 51, .75);
  box-shadow: inset 0 0 0 1px var(--line), 0 24px 60px rgba(0, 0, 0, .35);
  font-size: .9rem; line-height: 1.45;
}
.facts dt { font-weight: 800; color: var(--ink); }
.facts dd { margin: .25rem 0 0; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Hero screens: two console windows, offset like the paired phones */
.screens { position: relative; padding-bottom: 14%; }
.window {
  margin: 0; border-radius: 14px; overflow: hidden;
  background: #0b1222;
  box-shadow: 0 0 0 1px var(--line), 0 40px 80px rgba(0, 0, 0, .55);
}
.window-bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; background: #0f1830; border-bottom: 1px solid var(--line); }
.window-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.window-bar span { margin-left: 8px; font-size: .72rem; font-weight: 600; color: var(--muted); }
.window img { width: 100%; }
.window-back { width: 88%; }
.window-front { position: absolute; width: 70%; right: 0; bottom: 0; }

/* Sections */
.section { padding-block: 4.5rem; border-top: 1px solid var(--line); }
.section-head { display: grid; gap: .6rem; margin-bottom: 2.2rem; max-width: 720px; }
.kicker { margin: 0; font-size: .85rem; font-weight: 700; color: var(--accent); }
.section h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -.01em; }
.section-head p { margin: 0; color: var(--muted); font-size: 1.05rem; }

/* What I did */
.skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.skills li {
  padding: 1.3rem 1.4rem; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), rgba(18, 28, 51, .6));
  box-shadow: inset 0 0 0 1px var(--line);
}
.skills svg { width: 28px; height: 28px; color: var(--accent); margin-bottom: .8rem; }
.skills h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .35rem; }
.skills p { margin: 0; color: var(--muted); font-size: .95rem; }
.users { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; align-items: center; color: var(--muted); font-size: .95rem; }
.users strong { color: var(--ink); margin-right: .25rem; }
.tag { padding: .3rem .8rem; border-radius: 999px; background: rgba(90, 168, 255, .1); box-shadow: inset 0 0 0 1px rgba(90, 168, 255, .3); color: #cfe3ff; font-size: .85rem; font-weight: 600; }

/* Program navigation */
.program-nav {
  position: sticky; top: 68px; z-index: 40;
  background: rgba(10, 16, 32, .85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-block: 1px solid var(--line);
}
.program-nav .wrap { display: flex; gap: .5rem; overflow-x: auto; padding-block: .7rem; scrollbar-width: none; }
.program-nav .wrap::-webkit-scrollbar { display: none; }
.program-nav a {
  flex: none; display: inline-flex; align-items: center; gap: .5rem; min-height: 40px; padding: 0 1rem;
  border-radius: 999px; color: var(--muted); font-weight: 700; font-size: .9rem; text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--line);
}
.program-nav a img { width: 22px; height: 22px; object-fit: contain; }
.program-nav a:hover, .program-nav a[aria-current="true"] { color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent); background: rgba(47, 212, 196, .08); }

/* Program blocks */
.program { padding-block: 4.5rem; border-top: 1px solid var(--line); }
.program-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.4rem; align-items: center; margin-bottom: 2rem; }
.program-logo { width: 104px; height: 104px; padding: 12px; object-fit: contain; border-radius: 24px; background: radial-gradient(circle at 50% 40%, #22345c, var(--panel)); box-shadow: inset 0 0 0 1px var(--line); filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .35)); }
.program-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 800; }
.program-head .kicker { margin-bottom: .35rem; }
.program-head p.desc { margin: .5rem 0 0; color: var(--muted); max-width: 70ch; }
.shown { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.block-title { margin: 2.4rem 0 1rem; font-size: 1.1rem; font-weight: 700; display: flex; align-items: baseline; gap: .6rem; }
.block-title span { color: var(--muted); font-weight: 500; font-size: .9rem; }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line), 0 30px 70px rgba(0, 0, 0, .5); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.shot { margin: 0; }
.shot figcaption { margin-top: .6rem; color: var(--muted); font-size: .9rem; }

/* Image buttons (open the viewer) */
.zoom {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  border-radius: 12px; overflow: hidden; background: #0b1222;
  box-shadow: 0 0 0 1px var(--line), 0 20px 50px rgba(0, 0, 0, .4);
  transition: transform .3s ease, box-shadow .3s ease;
}
.zoom:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(47, 212, 196, .5), 0 26px 60px rgba(0, 0, 0, .5); }
.zoom:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.zoom img { width: 100%; }

/* UX analysis report: sideways scroller */
.report { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-color: var(--panel-2) transparent; }
.report .shot { flex: 0 0 min(420px, 78%); scroll-snap-align: start; }
.report-controls { display: flex; gap: .5rem; justify-content: flex-end; margin-top: -.2rem; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); font-size: 1.2rem;
}
.icon-btn:hover { box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); }

/* One-pager + banner */
.collateral { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .42fr); gap: 1.2rem; align-items: start; max-width: 760px; }
.collateral .banner .zoom { max-height: 560px; }
.collateral .banner .zoom img { height: 100%; object-fit: cover; object-position: top; }

/* Identities */
.logos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.logo-tile {
  display: grid; place-items: center; aspect-ratio: 1; padding: 1.2rem; border-radius: var(--radius);
  background: radial-gradient(circle at 50% 40%, var(--panel-2), var(--panel));
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .3s ease, box-shadow .3s ease;
}
.logo-tile:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(47, 212, 196, .5); }
.logo-tile { position: relative; border: 0; cursor: zoom-in; overflow: hidden; }
.logo-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.logo-tile img { position: absolute; inset: 14%; width: 72%; height: 72%; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .5)); }

/* Footer */
.site-footer { padding-block: 4rem 5rem; border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; }
.footer-row h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.footer-row p { margin: .4rem 0 0; color: var(--muted); }

/* Viewer */
.viewer { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5, 9, 18, .96); color: var(--ink); }
.viewer::backdrop { background: rgba(0, 0, 0, .7); }
.viewer[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.viewer img { max-width: calc(100vw - 32px); max-height: calc(100vh - 110px); width: auto; object-fit: contain; border-radius: 8px; }
.viewer p { margin: 14px 16px 0; color: var(--muted); text-align: center; font-size: .95rem; }
.viewer .icon-btn { position: absolute; }
.viewer .v-close { top: 16px; right: 16px; }
.viewer .v-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.viewer .v-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Responsive */
@media (max-width: 991px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding-block: 3rem 3.5rem; }
  .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .header-name { display: none; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .skills, .shots { grid-template-columns: minmax(0, 1fr); }
  .program-head { grid-template-columns: minmax(0, 1fr); }
  .program-logo { width: 72px; height: 72px; }
  .collateral { grid-template-columns: minmax(0, 1fr) minmax(0, .5fr); }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skills li { padding: 1.1rem 1.2rem; }
  .skills svg { margin-bottom: .5rem; }
  .section, .program { padding-block: 3.2rem; }
  .viewer .v-prev, .viewer .v-next { top: auto; bottom: 16px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .zoom, .logo-tile, .pill { transition: none; }
}
