/*
 * Sixth Sense Picks — site styles
 * Palette from docs/BRAND-TOKENS.json. Local system font stacks only.
 * No external fonts, no remote assets.
 */

:root {
  --bg: #0A0F26;
  --bg-deep: #070B1D;
  --card: #141C38;
  --card-border: #2E3D61;
  --gold: #EBC773;
  --cyan: #73E0FF;
  --success: #73D98C;
  --text: #FFFFFF;
  --text-2: rgba(255, 255, 255, 0.72);
  --text-3: rgba(255, 255, 255, 0.5);

  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --radius: 1.25rem;
  --gutter: 1.25rem;
  --header-offset: 7.25rem;
}

@media (min-width: 80rem) {
  :root {
    --header-offset: 5.25rem;
  }
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  color-scheme: dark;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  color: var(--text-2);
  background:
    radial-gradient(ellipse 80rem 40rem at 50% -10rem, rgba(115, 224, 255, 0.07), transparent 70%),
    var(--bg);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.75rem;
  color: var(--text);
  line-height: 1.2;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(1.15rem, 2.4vw, 1.3rem);
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 0.15em;
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

strong {
  color: var(--text);
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0.3em;
}

section[id] {
  scroll-margin-top: var(--header-offset);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  color: var(--bg);
  background: var(--gold);
  border-radius: 0.6rem;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.container {
  width: min(100% - 2 * var(--gutter), 72rem);
  margin-inline: auto;
}

@media (min-width: 40rem) {
  :root {
    --gutter: 2rem;
  }
}

/* ---------- Header and section navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 15, 38, 0.97);
  border-bottom: 1px solid var(--card-border);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header {
    background: rgba(10, 15, 38, 0.86);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1.5rem;
  width: min(100% - 2 * var(--gutter), 80rem);
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.55rem;
}

.site-nav {
  flex: 1 1 100%;
  min-width: 0;
}

.site-nav ul {
  display: flex;
  gap: 0.15rem;
  margin: 0 calc(-1 * var(--gutter));
  padding: 0 var(--gutter) 0.35rem;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--card-border) transparent;
  -webkit-overflow-scrolling: touch;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.8rem;
  color: var(--text-2);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--card);
}

.site-nav a:focus-visible {
  outline-offset: -3px;
}

.site-nav a[aria-current="page"] {
  color: var(--gold);
}

@media (min-width: 80rem) {
  .site-nav {
    flex: 1 1 auto;
  }

  .site-nav ul {
    flex-wrap: wrap;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .site-nav a {
    padding: 0 0.6rem;
    font-size: 0.875rem;
  }
}

/* ---------- Buttons and pills ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.5rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button--primary {
  color: var(--bg);
  background: var(--gold);
}

.button--primary:hover {
  background: #F2D592;
}

.button--secondary {
  color: var(--text);
  background: transparent;
  border-color: rgba(235, 199, 115, 0.55);
}

.button--secondary:hover {
  background: rgba(235, 199, 115, 0.1);
}

.status-dot::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.15rem;
  border: 2px solid var(--gold);
  border-radius: 50%;
}

@media (prefers-reduced-motion: no-preference) {
  .button,
  .site-nav a {
    transition: background-color 0.18s ease, color 0.18s ease;
  }
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding-block: clamp(4rem, 9vw, 6.5rem);
}

.section--alt {
  background: linear-gradient(180deg, rgba(20, 28, 56, 0.55), rgba(20, 28, 56, 0.15));
  border-block: 1px solid rgba(46, 61, 97, 0.6);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--gold);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lede {
  font-size: clamp(1.075rem, 2vw, 1.2rem);
}

.measure {
  max-width: 46rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 8vw, 6rem) clamp(4rem, 9vw, 6.5rem);
}

.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70rem;
  height: 70rem;
  background: repeating-conic-gradient(from 0deg, rgba(235, 199, 115, 0.075) 0deg 0.45deg, transparent 0.45deg 9deg);
  -webkit-mask-image: radial-gradient(circle, #000 0, transparent 62%);
  mask-image: radial-gradient(circle, #000 0, transparent 62%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

@media (min-width: 56rem) {
  .hero::before {
    left: 74%;
  }
}

.hero__grid {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}

@media (min-width: 56rem) {
  .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero__icon {
  width: clamp(6rem, 16vw, 8.5rem);
  margin-bottom: 1.75rem;
  border-radius: 22%;
  box-shadow: 0 0 0 1px rgba(235, 199, 115, 0.35), 0 18px 60px rgba(235, 199, 115, 0.16);
}

.hero h1 {
  margin-bottom: 0.5rem;
  font-size: clamp(2.6rem, 7.5vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.hero__tagline {
  margin-bottom: 1.5rem;
  color: var(--gold);
  font-size: clamp(1.3rem, 3.2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero__lede {
  max-width: 36rem;
  font-size: clamp(1.075rem, 2vw, 1.2rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0 1.5rem;
}

.hero__note {
  max-width: 36rem;
  margin: 0;
  font-size: 0.9375rem;
}

.hero__media {
  display: flex;
  justify-content: center;
}

/* ---------- Screenshots ---------- */

.shot {
  margin: 0;
  width: min(100%, 17.5rem);
}

.shot--small {
  width: min(100%, 15rem);
}

.device {
  padding: 0.5rem;
  background: linear-gradient(160deg, #1D2850, #0B1130);
  border: 1px solid var(--card-border);
  border-radius: 2.3rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(235, 199, 115, 0.08);
}

.device img {
  width: 100%;
  border-radius: 1.85rem;
}

.shot figcaption {
  margin-top: 0.9rem;
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
}

/* ---------- Evidence labels ---------- */

.label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.9rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.label::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  background: currentColor;
  border-radius: 50%;
}

.label--gov {
  color: var(--cyan);
}

.label--research {
  color: var(--gold);
}

.label--context {
  color: rgba(255, 255, 255, 0.82);
}

.label--product {
  color: var(--success);
}

/* ---------- Legend ---------- */

.legend {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
}

.legend h2 {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
}

.legend dl {
  display: grid;
  gap: 1.25rem 2rem;
  margin: 1.5rem 0 0;
}

@media (min-width: 48rem) {
  .legend dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.legend dt {
  margin: 0;
}

.legend dt .label {
  margin-bottom: 0.4rem;
}

.legend dd {
  margin: 0;
  font-size: 0.9688rem;
}

/* ---------- Cards and grids ---------- */

.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
}

.card {
  padding: clamp(1.35rem, 3vw, 1.85rem);
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
}

.card > :last-child {
  margin-bottom: 0;
}

.card--spaced {
  margin-top: 1.5rem;
}

.subhead {
  margin-top: 2.5rem;
}

.card__meta {
  margin: -0.35rem 0 0.85rem;
  color: var(--text-2);
  font-size: 0.9375rem;
  font-weight: 600;
}

.card__note {
  padding-top: 0.9rem;
  border-top: 1px solid var(--card-border);
  font-size: 0.9375rem;
}

.card__sources {
  margin: 1rem 0 0;
  padding: 0.9rem 0 0;
  border-top: 1px solid var(--card-border);
  font-size: 0.875rem;
  list-style: none;
}

.card__sources li + li {
  margin-top: 0.35rem;
}

.stack > * + * {
  margin-top: 1.25rem;
}

.callout {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(235, 199, 115, 0.06);
  border: 1px solid rgba(235, 199, 115, 0.3);
  border-left-width: 4px;
  border-radius: 0.75rem;
}

.callout h3 {
  font-size: 1.1rem;
}

.callout > :last-child {
  margin-bottom: 0;
}

/* Section source lists */

.section-sources {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--card-border);
  font-size: 0.9375rem;
}

.section-sources h3 {
  margin-bottom: 0.6rem;
  color: var(--text-2);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-sources ul {
  margin: 0;
  padding-left: 1.2rem;
}

.section-sources li + li {
  margin-top: 0.4rem;
}

/* ---------- ARV protocol ---------- */

.protocol {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  counter-reset: protocol;
}

@media (min-width: 52rem) {
  .protocol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.protocol li {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 4rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  counter-increment: protocol;
}

.protocol li::before {
  content: counter(protocol);
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  color: var(--gold);
  border: 1px solid rgba(235, 199, 115, 0.55);
  border-radius: 50%;
  font-weight: 700;
}

/* ---------- Declassified document cards ---------- */

.doc {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.doc::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 2.75rem;
  height: 2.75rem;
  background: linear-gradient(225deg, var(--bg) 50%, var(--card-border) 50%);
}

.doc__id {
  margin: 0 0 0.5rem;
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

.doc h4 {
  margin: 0 0 1rem;
  padding-right: 2rem;
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.3;
}

.doc cite {
  font-style: normal;
}

.doc p:last-child {
  margin-top: auto;
}

/* ---------- 1995 evaluation ---------- */

.perspectives {
  margin-bottom: 1.5rem;
}

.perspective {
  border-top: 3px solid var(--gold);
}

.conclusion {
  border-top: 3px solid var(--cyan);
}

/* ---------- People ---------- */

.person {
  display: flex;
  flex-direction: column;
}

.person__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.person__head > div {
  min-width: 0;
}

.person__head h3 {
  margin: 0;
}

.person__head p {
  margin: 0.1rem 0 0;
  font-size: 0.9375rem;
  font-weight: 600;
}

.monogram {
  flex: none;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  color: var(--gold);
  background:
    radial-gradient(circle at 50% 50%, rgba(235, 199, 115, 0.14), transparent 70%),
    var(--bg);
  border: 1px solid rgba(235, 199, 115, 0.6);
  border-radius: 50%;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* Researcher portraits: one 3:4 frame for photographs and AI illustrations
   alike, sized to stay subordinate to the card copy. */
.portrait {
  position: relative;
  flex: none;
  width: 4.5rem;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 40%, rgba(235, 199, 115, 0.14), transparent 70%),
    var(--bg);
  border: 1px solid rgba(235, 199, 115, 0.6);
  border-radius: 0.85rem;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait__tag {
  position: absolute;
  right: 0.3rem;
  bottom: 0.3rem;
  padding: 0 0.35rem;
  color: var(--bg);
  background: var(--gold);
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.person__head .person__credit {
  margin-top: 0.35rem;
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.45;
}

.person__head .person__credit--ai,
.person__credit--ai strong {
  color: var(--gold);
}

.person .card__sources {
  margin-top: auto;
}

.person > p:last-of-type {
  margin-bottom: 1rem;
}

/* ---------- Videos ---------- */

.video {
  margin: 0;
}

/* Before loading, the frame grows to fit its text at narrow widths;
   once the player is loaded it is a fixed 16:9 box. */
.video__frame {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  min-height: 15rem;
  background:
    repeating-conic-gradient(from 0deg at 50% 120%, rgba(115, 224, 255, 0.05) 0deg 0.6deg, transparent 0.6deg 12deg),
    radial-gradient(circle at 50% 120%, rgba(235, 199, 115, 0.14), transparent 60%),
    var(--card);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
}

@media (max-width: 30rem) {
  .video:not(.is-loaded) .video__frame {
    aspect-ratio: auto;
  }
}

.video.is-loaded .video__frame {
  min-height: 0;
  overflow: hidden;
  background: #000;
}

.video__placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(1.25rem, 4vw, 2rem);
}

.video__kicker {
  margin: 0 0 0.4rem;
  color: var(--cyan);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.video__title {
  margin: 0 0 1rem;
  color: var(--text);
  font-size: clamp(1.1rem, 2.6vw, 1.35rem);
  font-weight: 700;
  line-height: 1.3;
}

.video__note {
  margin: 0.85rem 0 0;
  font-size: 0.875rem;
}

.video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video figcaption {
  margin-top: 0.9rem;
  font-size: 0.9375rem;
}

.video figcaption p {
  margin: 0 0 0.35rem;
}

.video-disclosure {
  max-width: 46rem;
  margin-top: 2rem;
}

/* ---------- Product flow ---------- */

.product-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: start;
}

@media (min-width: 58rem) {
  .product-grid {
    grid-template-columns: minmax(0, 1fr) 17.5rem;
  }
}

.flow {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}

@media (min-width: 40rem) {
  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.flow li {
  position: relative;
  padding: 1.15rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  counter-increment: flow;
}

.flow li::before {
  content: "Stage " counter(flow);
  display: block;
  margin-bottom: 0.3rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.flow h3 {
  margin-bottom: 0.35rem;
  font-size: 1.1rem;
}

.flow p {
  margin: 0;
  font-size: 0.9688rem;
}

.sequence {
  margin: 0 0 1.75rem;
  padding: 1rem 1.25rem;
  color: var(--text);
  background: var(--bg-deep);
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  font-weight: 600;
  line-height: 1.8;
}

.sequence span {
  color: var(--gold);
}

.not-list {
  display: grid;
  gap: 0.4rem 1.5rem;
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
}

@media (min-width: 40rem) {
  .not-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- How it works ---------- */

.guide {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: start;
}

@media (min-width: 58rem) {
  .guide {
    grid-template-columns: minmax(0, 1fr) 15rem;
  }

  .guide__media {
    position: sticky;
    top: calc(var(--header-offset) + 1rem);
  }
}

.guide__media {
  display: grid;
  justify-items: center;
  gap: 2rem;
}

@media (min-width: 34rem) and (max-width: 57.99rem) {
  .guide__media {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.phase + .phase {
  margin-top: 2.5rem;
}

.phase h3 {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.steps {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
}

.steps__num {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--bg);
  background: var(--gold);
  border-radius: 50%;
  font-weight: 700;
}

.steps strong {
  display: block;
  margin-top: 0.35rem;
  line-height: 1.4;
}

.steps p {
  margin: 0.3rem 0 0;
  font-size: 0.9688rem;
}

/* ---------- Download ---------- */

.download {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 6vw, 3.5rem);
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(235, 199, 115, 0.14), transparent 60%),
    var(--card);
  border: 1px solid var(--card-border);
  border-radius: 1.5rem;
}

.download img {
  width: 5.5rem;
  margin: 0 auto 1.5rem;
  border-radius: 22%;
  box-shadow: 0 0 0 1px rgba(235, 199, 115, 0.35);
}

.download p {
  max-width: 34rem;
  margin-inline: auto;
}

.download__state {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0 1.25rem;
  padding: 0.4rem 1rem;
  color: var(--gold);
  border: 1px solid rgba(235, 199, 115, 0.55);
  border-radius: 999px;
  font-weight: 700;
}

.download .button {
  margin-top: 0.5rem;
}

/* ---------- Sources ---------- */

.source-groups {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 58rem) {
  .source-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.source-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.9688rem;
}

.source-list li + li {
  margin-top: 0.7rem;
}

.source-list span {
  display: block;
  font-size: 0.875rem;
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: clamp(3rem, 6vw, 4rem) 2.5rem;
  background: var(--bg-deep);
  border-top: 1px solid var(--card-border);
  font-size: 0.9375rem;
}

.site-footer__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 52rem) {
  .site-footer__grid {
    grid-template-columns: 1fr 1.6fr;
  }
}

.site-footer h2 {
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.site-footer .brand {
  margin-bottom: 0.5rem;
}

.footer-tagline {
  color: var(--gold);
  font-weight: 600;
}

.footer-legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--card-border);
}

.footer-legal p {
  margin-bottom: 0.75rem;
}

.footer-legal p:last-child {
  margin: 1.25rem 0 0;
}

/* ---------- Legal / support pages ---------- */

.doc-page {
  padding-block: clamp(2.5rem, 7vw, 4.5rem);
}

.doc-page__body {
  width: min(100% - 2 * var(--gutter), 50rem);
  margin-inline: auto;
}

.doc-page h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.1rem, 6vw, 3.1rem);
  letter-spacing: -0.02em;
}

.doc-page h2 {
  margin-top: 2.5rem;
  font-size: clamp(1.3rem, 3.4vw, 1.6rem);
}

.doc-page ul {
  padding-left: 1.35rem;
}

.doc-page li + li {
  margin-top: 0.4rem;
}

.meta-list {
  display: grid;
  gap: 0.9rem 1.5rem;
  margin: 0 0 2rem;
  padding: 1.25rem 1.4rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  font-size: 0.9688rem;
}

@media (min-width: 40rem) {
  .meta-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.meta-list div {
  min-width: 0;
}

.meta-list dt {
  color: var(--text);
  font-weight: 700;
}

.meta-list dd {
  margin: 0;
}

.notice {
  margin: 0 0 1.5rem;
  padding: 0.9rem 1.2rem;
  color: var(--text);
  background: rgba(235, 199, 115, 0.08);
  border: 1px solid rgba(235, 199, 115, 0.45);
  border-left-width: 4px;
  border-radius: 0.6rem;
  font-weight: 700;
}

.contact-card {
  margin-top: 1rem;
  padding: 1.25rem 1.4rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
}

.contact-card p {
  margin: 0;
}

.doc-closing {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--card-border);
  font-size: 0.9375rem;
}

/* ---------- Narrow-screen refinements ---------- */

@media (max-width: 39.99rem) {
  :root {
    --header-offset: 6.25rem;
  }

  .site-header__inner {
    gap: 0;
    width: 100%;
  }

  .brand {
    min-height: 3.25rem;
    margin-inline: var(--gutter);
    font-size: 1rem;
  }

  .brand img {
    width: 2rem;
    height: 2rem;
  }

  .site-nav {
    border-top: 1px solid rgba(46, 61, 97, 0.5);
  }

  .site-nav ul {
    gap: 0.1rem;
    margin: 0;
    padding: 0.2rem var(--gutter) 0.35rem;
    scroll-padding-inline: var(--gutter);
    scroll-snap-type: inline proximity;
    overscroll-behavior-inline: contain;
  }

  .site-nav a {
    min-height: 2.5rem;
    padding-inline: 0.65rem;
    font-size: 0.8125rem;
    scroll-snap-align: start;
  }

  .hero {
    padding-block: 2.25rem 3.75rem;
  }

  .hero__grid {
    gap: 2rem;
  }

  .hero__icon {
    width: 5.5rem;
    margin-bottom: 1.25rem;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 10vw, 2.6rem);
    line-height: 1.08;
  }

  .hero__tagline {
    margin-bottom: 1.25rem;
    font-size: 1.125rem;
  }

  .hero__lede {
    font-size: 1rem;
  }

  .hero__actions {
    flex-direction: column;
    gap: 0.65rem;
    align-items: stretch;
    margin: 1.5rem 0 1.25rem;
  }

  .hero__actions .button {
    width: 100%;
    max-width: 22rem;
  }

  .hero__note {
    font-size: 0.875rem;
  }

  .section {
    padding-block: 3.5rem;
  }

  .section-head {
    margin-bottom: 1.75rem;
  }

  .card,
  .legend {
    padding: 1.25rem;
  }

  .label {
    max-width: 100%;
    padding-inline: 0.65rem;
    font-size: 0.6875rem;
    letter-spacing: 0.065em;
  }

  .portrait {
    width: 4rem;
  }

  .shot {
    width: min(82vw, 15.5rem);
  }

  .shot--small {
    width: min(72vw, 13rem);
  }

  .hero__media .shot {
    width: min(72vw, 14.5rem);
  }

  .device {
    padding: 0.4rem;
    border-radius: 1.9rem;
  }

  .device img {
    border-radius: 1.55rem;
  }

  .guide__media {
    gap: 1.5rem;
  }

  .steps li {
    grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: 0.75rem;
    padding: 1rem;
  }

  .steps__num {
    width: 2.25rem;
    height: 2.25rem;
  }

  .download {
    padding: 1.75rem 1.25rem;
  }
}

/* ---------- Forced colors and print ---------- */

@media (forced-colors: active) {
  .label,
  .button,
  .card,
  .steps__num,
  .monogram,
  .portrait,
  .portrait__tag {
    border: 1px solid CanvasText;
  }

  .hero::before {
    display: none;
  }
}

@media print {
  html,
  body {
    color: #000;
    background: #fff;
  }

  .site-header,
  .skip-link,
  .hero::before,
  .video__frame,
  .hero__actions {
    display: none !important;
  }

  h1,
  h2,
  h3,
  strong {
    color: #000;
  }

  a {
    color: #000;
  }

  .person__head .person__credit,
  .person__credit--ai strong {
    color: #000;
  }

  .card,
  .legend,
  .download,
  .meta-list,
  .site-footer {
    color: #000;
    background: #fff;
    border-color: #999;
  }
}
