/* Brightness Control — stylesheet
   Concept: the page behaves like the thing it documents. A dark "screen off" band
   at the top, light content below, one warm backlight accent, and a live slider
   in the hero that drives the luminance of the artwork.
   Palette: void / ink / slate / bezel / screen / lumen / signal. */

:root {
  --void: #0b0d11;
  --ink: #15171c;
  --slate: #5d6673;
  --mute: #8c95a2;
  --bezel: #e9ebef;
  --screen: #ffffff;
  --rule: #dce0e6;
  --lumen: #f0a93b;
  --lumen-deep: #9d5f0c;
  --lumen-wash: #fdf4e5;
  --signal: #5b9bc4;
  --yes-c: #16714a;
  --no-c: #a52d24;

  --max: 1160px;
  --gut: 28px;
  --display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --body: "Newsreader", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 0.7, 0.24, 1);
  --shadow: 0 1px 2px rgba(15, 20, 30, 0.05), 0 12px 32px -18px rgba(15, 20, 30, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--bezel);
  color: var(--ink);
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }

a {
  color: var(--lumen-deep); text-decoration: none;
  background-image: linear-gradient(var(--lumen), var(--lumen));
  background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 1.05em;
  transition: background-size 0.25s var(--ease), color 0.2s;
}
a:hover { color: var(--ink); background-size: 100% 2px; }
:focus-visible { outline: 3px solid var(--lumen); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); line-height: 1.02; margin: 0 0 22px; }
h2 { font-size: clamp(1.55rem, 3vw, 2.05rem); line-height: 1.16; margin: 54px 0 16px; }
h3 { font-size: 1.22rem; margin: 34px 0 10px; letter-spacing: -0.015em; }
h4 { font-size: 1.02rem; margin: 0 0 8px; }
p { margin: 0 0 20px; }

.eyebrow, .lbl, .lbl-b, .note-t, figcaption, .toc p, .foot-grid h4, thead th, .crumbs, .reviewed, .lum-control {
  font-family: var(--mono);
}
.eyebrow {
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--lumen-deep); margin: 0 0 16px;
}

/* ---------------------------------------------------------------- header */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11, 13, 17, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 0.3s var(--ease);
}
.site-head.solid { background: rgba(11, 13, 17, 0.97); }
.head-row { display: flex; align-items: center; gap: 30px; height: 70px; }

.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 600; font-size: 1.06rem; color: #f2f4f7; letter-spacing: -0.035em; white-space: nowrap; background: none; }
.brand:hover { color: #fff; }
.brand em { font-style: normal; color: var(--lumen); }
.brand .knob {
  width: 20px; height: 20px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 34% 32%, #fff5e4, var(--lumen) 62%, #7d4a08 100%);
  box-shadow: 0 0 0 4px rgba(240, 169, 59, 0.16), 0 0 18px rgba(240, 169, 59, 0.5);
}

.nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.nav a { font-family: var(--display); font-size: 0.87rem; font-weight: 400; color: #a8b1bd; background: none; padding: 5px 0; position: relative; }
.nav a:hover { color: #fff; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--lumen); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after { transform: scaleX(1); box-shadow: 0 0 12px var(--lumen); }

/* ------------------------------------------------------------------ hero */
.hero {
  background: var(--void);
  background-image: radial-gradient(120% 90% at 78% 0%, rgba(240, 169, 59, 0.13), transparent 62%);
  color: #e8ecf1;
  padding: 84px 0 0;
  position: relative;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero.plain .hero-grid { grid-template-columns: 1fr; max-width: 64ch; }
.hero h1 { color: #fff; }
.hero .lede { font-size: 1.24rem; line-height: 1.5; color: #aeb7c3; max-width: 60ch; margin-bottom: 0; }
.hero .pill {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono);
  font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--lumen);
  border: 1px solid rgba(240, 169, 59, 0.32); padding: 6px 13px; border-radius: 999px; margin-bottom: 22px;
}
.hero .pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lumen); box-shadow: 0 0 8px var(--lumen); }
.hero-body { padding-bottom: 78px; }

/* the signature ramp closes the dark band */
.ramp { display: flex; gap: 3px; height: 46px; align-items: flex-end; margin-top: 64px; }
.ramp i { display: block; flex: 1; border-radius: 2px 2px 0 0; transform-origin: bottom; animation: rampup 0.75s var(--ease) backwards; }
@keyframes rampup { from { transform: scaleY(0.06); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }

/* ------------------------------------------------------------ hero stage */
.stage { position: relative; }
.stage svg { width: 100%; height: auto; display: block; }
.stage .glow { opacity: calc(var(--lum) * 0.85); transition: opacity 0.16s linear; }
.stage .lit { opacity: var(--lum); transition: opacity 0.16s linear; }

.lum-control {
  display: flex; align-items: center; gap: 14px; margin-top: 20px;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: #93a0b0;
}
.lum-control input[type="range"] {
  -webkit-appearance: none; appearance: none; flex: 1; height: 4px; border-radius: 3px;
  background: linear-gradient(90deg, #2b323c, var(--lumen)); cursor: pointer;
}
.lum-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 3px solid var(--lumen); box-shadow: 0 0 16px rgba(240, 169, 59, 0.65); cursor: grab;
}
.lum-control input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--lumen); cursor: grab;
}
.lum-control output { color: var(--lumen); min-width: 4ch; text-align: right; }

/* --------------------------------------------------------------- layout */
main { padding-bottom: 40px; }
.crumbs { font-size: 0.72rem; letter-spacing: 0.06em; color: var(--mute); padding: 22px 0 0; }
.crumbs a { color: var(--slate); background: none; }
.crumbs a:hover { color: var(--lumen-deep); }
.crumbs span { margin: 0 8px; opacity: 0.55; }

.cols { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 64px; align-items: start; padding: 12px 0 0; }
.prose { max-width: 70ch; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 24px; }
.prose li { margin-bottom: 9px; }
.prose li::marker { color: var(--lumen-deep); }
.solo { max-width: 74ch; }
.reviewed { font-size: 0.72rem; color: var(--mute); border-top: 1px solid var(--rule); padding-top: 18px; margin-top: 56px; }

.toc { position: sticky; top: 100px; font-family: var(--display); font-size: 0.86rem; }
.toc p { font-size: 0.66rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--mute); margin: 0 0 14px; }
.toc a { display: block; color: var(--slate); background: none; margin-bottom: 2px; line-height: 1.35; padding: 6px 0 6px 16px; border-left: 2px solid var(--rule); transition: color 0.2s, border-color 0.2s; }
.toc a:hover { color: var(--ink); border-color: var(--mute); }
.toc a.active { color: var(--lumen-deep); border-color: var(--lumen); font-weight: 500; }

/* ---------------------------------------------------------------- cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 18px; margin: 32px 0; }
.card {
  background: var(--screen); border: 1px solid var(--rule); border-radius: 12px; padding: 26px;
  color: inherit; display: block; box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  position: relative; overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(90% 60% at 50% 0%, rgba(240, 169, 59, 0.16), transparent 70%);
  transition: opacity 0.35s var(--ease);
}
a.card { background-image: none; }
a.card:hover { transform: translateY(-4px); border-color: rgba(240, 169, 59, 0.55); box-shadow: 0 1px 2px rgba(15, 20, 30, 0.05), 0 22px 44px -22px rgba(15, 20, 30, 0.38); }
a.card:hover::after { opacity: 1; }
.card h3 { margin: 0 0 8px; font-size: 1.06rem; }
.card p { margin: 0; font-size: 0.94rem; color: var(--slate); line-height: 1.5; }

.note {
  background: var(--screen); border: 1px solid var(--rule); border-left: 3px solid var(--lumen);
  border-radius: 10px; padding: 20px 24px; margin: 32px 0; font-size: 0.97rem; box-shadow: var(--shadow);
}
.note strong { font-family: var(--display); }

/* -------------------------------------------------------------- figures */
.figure { margin: 36px 0; background: var(--screen); border: 1px solid var(--rule); border-radius: 12px; padding: 26px 26px 20px; box-shadow: var(--shadow); }
.figure svg { width: 100%; height: auto; display: block; }
figcaption { font-size: 0.78rem; line-height: 1.5; color: var(--slate); margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rule); }
.lbl { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; fill: var(--mute); }
.lbl-b { font-size: 12px; fill: var(--ink); }
.note-t { font-size: 11.5px; fill: var(--slate); }

/* -------------------------------------------------------------- chooser */
.chooser { background: var(--void); color: #e6eaef; border-radius: 14px; padding: 30px; margin: 36px 0; }
.chooser .eyebrow { color: var(--lumen); }
.chooser fieldset { border: 0; margin: 0; padding: 0; }
.chooser legend { font-family: var(--display); font-size: 1.15rem; font-weight: 600; margin-bottom: 16px; color: #fff; }
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opts button {
  font-family: var(--display); font-size: 0.88rem; font-weight: 400; color: #cdd5df; cursor: pointer;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px; padding: 10px 18px; transition: all 0.24s var(--ease);
}
.opts button:hover { border-color: var(--lumen); color: #fff; }
.opts button[aria-pressed="true"] { background: var(--lumen); border-color: var(--lumen); color: #241503; font-weight: 500; }
.chooser-out { max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.45s var(--ease), opacity 0.35s var(--ease), margin 0.35s var(--ease); }
.chooser-out.shown { max-height: 400px; opacity: 1; margin-top: 24px; }
.chooser-out h4 { font-size: 1.06rem; color: var(--lumen); margin-bottom: 8px; }
.chooser-out p { font-size: 0.95rem; color: #b6bfca; margin-bottom: 12px; }
.chooser-out a { color: #fff; font-family: var(--display); font-size: 0.88rem; }

/* ---------------------------------------------------------------- table */
.table-scroll { overflow-x: auto; margin: 32px 0; border: 1px solid var(--rule); border-radius: 12px; background: var(--screen); box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; min-width: 780px; }
th, td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); background: #f4f6f8; font-weight: 500; }
tbody th { font-family: var(--display); font-weight: 500; font-size: 0.92rem; }
tbody tr { transition: background 0.2s; }
tbody tr:hover { background: var(--lumen-wash); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.yes { color: var(--yes-c); font-weight: 600; }
.no { color: var(--no-c); font-weight: 600; }
.part { color: var(--lumen-deep); font-weight: 600; }
.na { color: var(--mute); }

/* --------------------------------------------------------------- footer */
.site-foot { background: var(--void); color: #97a1ad; margin-top: 88px; padding: 66px 0 34px; font-size: 0.9rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid h4 { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lumen); margin: 0 0 16px; font-weight: 500; }
.foot-grid a { display: block; color: #97a1ad; background: none; margin-bottom: 10px; font-family: var(--display); font-size: 0.88rem; }
.foot-grid a:hover { color: #fff; }
.foot-about p { color: #7f8996; font-size: 0.88rem; line-height: 1.55; }
.foot-about strong { color: #dfe4ea; font-family: var(--display); }
.foot-about a { display: inline; color: #97a1ad; }
.foot-legal { border-top: 1px solid rgba(255, 255, 255, 0.08); margin-top: 44px; padding-top: 24px; color: #6d7683; font-size: 0.78rem; }
.foot-legal p { margin-bottom: 8px; }

/* -------------------------------------------------------- cookie banner */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100;
  background: #fff; color: var(--ink); border: 1px solid var(--rule); border-radius: 14px;
  padding: 22px 26px; display: none; gap: 24px; align-items: center; justify-content: space-between;
  box-shadow: 0 24px 60px -20px rgba(11, 13, 17, 0.45); max-width: 1000px; margin: 0 auto; font-size: 0.9rem;
  transform: translateY(14px); opacity: 0; transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.cookie.show { display: flex; }
.cookie.in { transform: none; opacity: 1; }
.cookie p { margin: 0; max-width: 64ch; color: var(--slate); }
.cookie-btns { display: flex; gap: 10px; flex: none; }
button { font-family: var(--display); font-size: 0.88rem; font-weight: 500; cursor: pointer; border-radius: 9px; padding: 12px 22px; border: 1px solid transparent; transition: all 0.2s var(--ease); }
.btn-accept { background: var(--ink); color: #fff; }
.btn-accept:hover { background: #000; }
.btn-reject { background: transparent; color: var(--slate); border-color: var(--rule); }
.btn-reject:hover { border-color: var(--slate); color: var(--ink); }

/* ----------------------------------------------------------- reveal work */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ramp i { animation: none; }
  .rv { opacity: 1; transform: none; transition: none; }
  .cookie { transform: none; opacity: 1; transition: none; }
  a.card:hover { transform: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .cols { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 720px) {
  body { font-size: 17.5px; }
  :root { --gut: 20px; }
  .head-row { height: auto; padding: 12px 0; flex-wrap: wrap; gap: 12px; }
  .nav { margin-left: 0; width: 100%; gap: 15px; }
  .nav a { font-size: 0.81rem; }
  .hero { padding-top: 52px; }
  .hero-body { padding-bottom: 52px; }
  .ramp { height: 32px; margin-top: 44px; }
  .cookie { flex-direction: column; align-items: flex-start; padding: 20px; }
  .cookie-btns { width: 100%; }
  .cookie-btns button { flex: 1; padding: 12px 10px; }
  .foot-grid { grid-template-columns: 1fr; }
  .figure { padding: 18px 16px 14px; }
}

/* --- Your Privacy Choices icon + footer legal strip ---------------------- */
.pc-icon {
  display: inline-block; width: 30px; height: 14px; margin-right: 7px;
  vertical-align: -2px; border-radius: 2px; overflow: hidden;
  background:
    linear-gradient(90deg, #1f5bd7 0 50%, #fff 50% 100%);
  border: 1px solid #1f5bd7; position: relative;
}
.pc-icon::after {
  content: ""; position: absolute; right: 2px; top: 2px; width: 9px; height: 8px;
  background: #1f5bd7;
  clip-path: polygon(0 40%, 40% 100%, 100% 0, 78% 0, 38% 62%, 16% 34%);
}
.foot-bar { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.pc-link { white-space: nowrap; }
.foot-legal p { margin-bottom: 10px; }
