/* Glass Precinct — site styles */
:root {
  --navy-950: #0a1322;
  --navy-900: #0f1b2d;
  --navy-800: #16253c;
  --navy-700: #1f3352;
  --steel: #9fb2c8;
  --glass: #dceef2;
  --manila: #d9c69b;
  --manila-deep: #c7b07c;
  --manila-ink: #33291a;
  --stamp: #b42318;
  --bar-red: #e5484d;
  --bar-blue: #3e7bfa;

  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --hud: "Share Tech Mono", "Consolas", monospace;

  --wrap: 1140px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy-900);
  color: var(--glass);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-optical-sizing: auto;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--bar-blue); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--glass); color: var(--navy-900); padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* ---------- Header ---------- */
.site-head { border-bottom: 1px solid rgba(159, 178, 200, .16); background: var(--navy-950); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; flex-wrap: wrap; padding-block: .6rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand svg { width: 38px; height: 44px; flex: none; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.brand-name small { display: block; font-weight: 600; font-size: .62rem; letter-spacing: .18em; color: var(--steel); margin-top: .25rem; }
.nav { display: flex; align-items: center; gap: .35rem; font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: .03em; }
.nav a { text-decoration: none; padding: .45rem .8rem; border-radius: 6px; color: var(--steel); }
.nav a:hover { color: var(--glass); background: rgba(220, 238, 242, .06); }
.nav a[aria-current="page"] { color: var(--glass); box-shadow: inset 0 -2px 0 var(--manila); border-radius: 0; }
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: .04em;
  text-decoration: none; padding: .7rem 1.15rem; border-radius: 8px;
  background: var(--glass); color: var(--navy-900); border: 1px solid var(--glass);
  transition: background .15s, color .15s;
}
.btn:hover { background: #fff; }
.btn.ghost { background: transparent; color: var(--glass); border-color: rgba(220, 238, 242, .4); }
.btn.ghost:hover { border-color: var(--glass); background: rgba(220, 238, 242, .06); }
.btn svg { width: 1.15em; height: 1.15em; }
.nav .btn { margin-left: .5rem; padding: .5rem .9rem; font-size: .98rem; color: var(--navy-900); }
.nav .btn:hover { color: var(--navy-900); background: #fff; }

/* ---------- Hero: bodycam frame ---------- */
.hero { padding-block: clamp(1.5rem, 4vw, 3rem) clamp(2.5rem, 6vw, 4.5rem); }
.cam {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: clamp(18px, 3vw, 34px);
  min-height: clamp(460px, 62vh, 640px);
  background:
    radial-gradient(60% 50% at 78% 30%, rgba(255, 196, 120, .22), transparent 60%),
    radial-gradient(18% 14% at 86% 26%, rgba(255, 214, 160, .45), transparent 70%),
    radial-gradient(10% 8% at 64% 40%, rgba(229, 72, 77, .28), transparent 70%),
    radial-gradient(12% 9% at 70% 44%, rgba(62, 123, 250, .30), transparent 70%),
    radial-gradient(90% 70% at 30% 110%, #22324a, transparent 60%),
    linear-gradient(180deg, #0c1626 0%, #101e33 55%, #18263a 100%);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(159, 178, 200, .14);
}
/* fisheye vignette + sensor noise + scanlines */
.cam::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 95% at 50% 50%, transparent 55%, rgba(0, 0, 0, .75) 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px);
}
.cam::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .18; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.lightbar {
  position: absolute; top: 0; left: 0; right: 0; height: 6px; z-index: 2;
  background: linear-gradient(90deg, var(--bar-red) 0 48%, rgba(255,255,255,.7) 49% 51%, var(--bar-blue) 52% 100%);
  opacity: .35; filter: saturate(.8);
}
.lightbar::after {
  content: ""; position: absolute; inset: 0 auto -60px 0; width: 100%;
  background: radial-gradient(40% 100% at 25% 0, rgba(229, 72, 77, .55), transparent 70%),
              radial-gradient(40% 100% at 75% 0, rgba(62, 123, 250, .55), transparent 70%);
  opacity: 0;
}
.cam.live .lightbar { animation: bar 0.5s steps(1) 6; }
.cam.live .lightbar::after { animation: glow 0.5s steps(1) 6; }
@keyframes bar { 0% { opacity: .9; background-position: 0 0; filter: saturate(1.4); } 50% { opacity: .5; } }
@keyframes glow { 0% { opacity: 1; } 50% { opacity: .2; } }

.hud { position: absolute; inset: clamp(14px, 2.4vw, 26px); pointer-events: none; font-family: var(--hud); font-size: clamp(.72rem, 1.3vw, .9rem); color: rgba(235, 245, 248, .9); text-shadow: 0 0 6px rgba(0, 0, 0, .9); letter-spacing: .04em; }
.hud .c { position: absolute; display: flex; flex-direction: column; gap: .1rem; }
.hud .tl { top: 0; left: 0; }
.hud .tr { top: 0; right: 0; text-align: right; align-items: flex-end; }
.hud .bl { bottom: 0; left: 0; }
.hud .br { bottom: 0; right: 0; text-align: right; align-items: flex-end; }
.rec { display: inline-flex; align-items: center; gap: .45rem; }
.rec::before { content: ""; width: .62em; height: .62em; border-radius: 50%; background: var(--bar-red); box-shadow: 0 0 8px var(--bar-red); animation: blink 1.4s steps(1) infinite; }
@keyframes blink { 50% { opacity: .15; } }
.brackets { position: absolute; inset: clamp(8px, 1.6vw, 16px); pointer-events: none; }
.brackets i { position: absolute; width: 28px; height: 28px; border: 2px solid rgba(220, 238, 242, .55); }
.brackets i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.brackets i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.brackets i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.brackets i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.cam-copy { position: relative; padding: clamp(5.5rem, 12vw, 8.5rem) clamp(1.5rem, 6vw, 4.5rem) clamp(5rem, 10vw, 7rem); max-width: 760px; }
.hero h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(3.2rem, 9.5vw, 7.4rem); line-height: .86; letter-spacing: -.005em;
  margin: 0 0 1.4rem; color: #f4fbfd;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .5);
}
.hero h1 .ghost { display: block; color: transparent; -webkit-text-stroke: 1.5px rgba(220, 238, 242, .75); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #c9d8e6; max-width: 54ch; margin: 0 0 2rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Sections ---------- */
section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
h2 { font-family: var(--display); font-weight: 800; font-size: clamp(2.1rem, 4.6vw, 3.2rem); line-height: .95; margin: 0; letter-spacing: .005em; }
.sec-head p { margin: .4rem 0 0; color: var(--steel); max-width: 60ch; }
.text-link { font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: .03em; color: var(--manila); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ---------- Featured release ---------- */
.featured { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: clamp(1.2rem, 3vw, 2.2rem); align-items: stretch; }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(159, 178, 200, .18); }
.player button { all: unset; cursor: pointer; position: absolute; inset: 0; display: block; }
.player img { width: 100%; height: 100%; object-fit: cover; }
.player button::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; transform: translate(-50%, -50%);
  border-radius: 50%; background: rgba(10, 19, 34, .72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23dceef2'%3E%3Cpath d='M8 5.5v13l11-6.5z'/%3E%3C/svg%3E") 56% 50% / 42% no-repeat;
  box-shadow: 0 0 0 2px rgba(220, 238, 242, .5); transition: transform .15s;
}
.player button:hover::after, .player button:focus-visible::after { transform: translate(-50%, -50%) scale(1.06); }
.player button:focus-visible { outline: 3px solid var(--bar-blue); outline-offset: -3px; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .hud { inset: 12px; font-size: .78rem; }

/* evidence label (featured details) */
.label {
  position: relative; background: var(--manila); color: var(--manila-ink);
  border-radius: 6px; padding: 1.6rem 1.5rem 1.4rem;
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
  display: flex; flex-direction: column;
  background-image: repeating-linear-gradient(0deg, transparent 0 31px, rgba(51, 41, 26, .12) 31px 32px);
  background-position: 0 14px;
}
.label .field { font-family: var(--display); font-weight: 600; font-size: .95rem; letter-spacing: .04em; color: #6b5a3b; margin: 0; }
.label h3 { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1; margin: .25rem 0 1rem; }
.label dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: 0 0 1.2rem; font-size: .98rem; }
.label dt { font-family: var(--display); font-weight: 600; letter-spacing: .03em; color: #6b5a3b; }
.label dd { margin: 0; }
.label .desc { font-size: .98rem; margin: 0 0 1.3rem; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.label .btn { background: var(--navy-900); color: var(--glass); border-color: var(--navy-900); align-self: flex-start; margin-top: auto; }
.label .btn:hover { background: var(--navy-700); }
.stamp {
  position: absolute; right: 1.3rem; bottom: 1.5rem; transform: rotate(-9deg);
  font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: .14em;
  color: var(--stamp); border: 3px solid var(--stamp); border-radius: 6px; padding: .1rem .55rem;
  opacity: .82; mix-blend-mode: multiply;
}

/* ---------- Evidence tag grid ---------- */
.tags { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: clamp(1.2rem, 2.4vw, 1.8rem); list-style: none; padding: 0; margin: 0; }
.tag {
  position: relative; background: var(--manila); color: var(--manila-ink);
  border-radius: 5px; padding: 2.4rem 1rem 1.1rem;
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%, 0 18px);
}
.tag::before { /* punch hole + reinforcement ring */
  content: ""; position: absolute; top: 10px; left: 50%; width: 16px; height: 16px; transform: translateX(-50%);
  border-radius: 50%; background: var(--navy-900); box-shadow: 0 0 0 4px var(--manila-deep);
}
.tag a { text-decoration: none; display: block; }
.tag a:focus-visible { outline-offset: 6px; }
.tag .thumb { aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: #1a2333; margin-bottom: .85rem; box-shadow: 0 0 0 1px rgba(51, 41, 26, .25); }
.tag .thumb img { width: 100%; height: 100%; object-fit: cover; }
.tag .meta { font-family: var(--display); font-weight: 600; font-size: .9rem; letter-spacing: .04em; color: #6b5a3b; display: flex; justify-content: space-between; gap: .5rem; }
.tag h3 { font-family: var(--display); font-weight: 700; font-size: 1.35rem; line-height: 1.05; margin: .3rem 0 0; }
.tag a:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- Empty / pending state ---------- */
.pending {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.2rem, 3vw, 2.4rem); align-items: center;
  border: 1px dashed rgba(217, 198, 155, .45); border-radius: 18px; padding: clamp(1.4rem, 4vw, 2.6rem);
  background: linear-gradient(180deg, rgba(217, 198, 155, .05), transparent);
}
.pending h3 { font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1; margin: 0 0 .8rem; }
.pending p { margin: 0 0 1.2rem; color: #c9d8e6; max-width: 56ch; }
.pending .tag { max-width: 330px; justify-self: center; transform: rotate(2.5deg); }
.pending .tag .thumb { display: grid; place-items: center; font-family: var(--hud); color: var(--steel); font-size: .85rem; background: repeating-linear-gradient(45deg, #172235 0 10px, #1b283d 10px 20px); }

/* ---------- Process (real sequence) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--manila); }
.steps li { padding: 1.2rem 1.3rem 0 0; position: relative; }
.steps li + li { padding-left: 1.3rem; border-left: 1px solid rgba(159, 178, 200, .18); }
.steps .n { font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--manila); }
.steps h3 { font-family: var(--display); font-weight: 700; font-size: 1.4rem; margin: .5rem 0 .4rem; line-height: 1.05; }
.steps p { margin: 0; color: var(--steel); font-size: .98rem; }

/* ---------- Tape divider ---------- */
.tape { overflow: hidden; background: var(--manila); color: var(--manila-ink); transform: rotate(-1.2deg); margin-block: 1rem; border-block: 2px solid #b39a63; }
.tape p { margin: 0; white-space: nowrap; font-family: var(--display); font-weight: 800; font-size: 1.05rem; letter-spacing: .2em; padding: .5rem 0; }

/* ---------- About page ---------- */
.page-head { padding-block: clamp(2.5rem, 7vw, 5rem) clamp(1.5rem, 4vw, 2.5rem); border-bottom: 1px solid rgba(159, 178, 200, .16); }
.page-head h1 { font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 8vw, 6rem); line-height: .88; margin: 0 0 1rem; }
.page-head p { font-size: clamp(1.08rem, 1.7vw, 1.25rem); color: #c9d8e6; max-width: 58ch; margin: 0; }
.report { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(2rem, 5vw, 4rem); align-items: start; padding-block: clamp(2.5rem, 6vw, 4rem); }
.prose { max-width: 66ch; }
.prose h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin: 2.4rem 0 .7rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.1rem; color: #d3e1ec; }
.prose a { color: var(--manila); text-underline-offset: 3px; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1.1rem; color: #d3e1ec; }
.prose li { margin-bottom: .45rem; }
.sheet {
  position: sticky; top: 1.5rem; background: var(--manila); color: var(--manila-ink); border-radius: 6px;
  padding: 1.5rem 1.4rem; clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
}
.sheet h2 { font-size: 1.9rem; margin: 0 0 .2rem; }
.sheet .sub { margin: 0 0 1rem; font-size: .95rem; color: #6b5a3b; }
.sheet ul { list-style: none; margin: 0; padding: 0; }
.sheet li { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; padding: .7rem 0; border-top: 1px solid rgba(51, 41, 26, .2); font-size: .97rem; line-height: 1.45; }
.sheet li svg { width: 22px; height: 22px; margin-top: .1rem; }
.sheet .sig { margin: 1rem 0 0; padding-top: .8rem; border-top: 2px solid var(--manila-ink); font-family: var(--display); font-weight: 600; letter-spacing: .03em; font-size: .95rem; }

/* ---------- Footer ---------- */
.site-foot { background: var(--navy-950); border-top: 1px solid rgba(159, 178, 200, .16); padding-block: 2.5rem; margin-top: 2rem; color: var(--steel); font-size: .95rem; }
.site-foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; }
.site-foot p { margin: 0 0 .6rem; max-width: 62ch; }
.site-foot .links { display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; }
.site-foot a { color: var(--glass); text-underline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .featured, .pending, .report, .site-foot .wrap { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { border-left: 0; padding-left: 0; }
  .steps li { padding-bottom: 1.3rem; }
  .sheet { position: static; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .steps li + li { border-left: 0; padding-left: 0; border-top: 1px solid rgba(159, 178, 200, .18); }
  .nav { width: 100%; justify-content: space-between; }
  .nav .btn { margin-left: auto; }
  .hud .bl, .hud .br { font-size: .68rem; }
  .cam-copy { padding-top: 5rem; }
  .stamp { position: static; align-self: flex-start; margin: 0 0 .9rem .2rem; transform: rotate(-4deg); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
