/* ─── Nav ────────────────────────────────────────────────────── */
body > nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
  transition: background .24s ease, box-shadow .24s ease, border-color .24s ease;
}

body > nav.nav-compact {
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-color: color-mix(in srgb, var(--line) 88%, transparent);
  box-shadow: 0 12px 34px rgba(58, 48, 35, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand { display: flex; align-items: center; gap: 12px; }

.quill { width: 30px; height: 30px; color: var(--teal); }

.brand-name {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.24em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links { display: flex; align-items: center; gap: 10px; }
.nav-links a {
  color: color-mix(in srgb, var(--ink) 78%, transparent);
  text-decoration: none;
  font-size: 16px;
  border-radius: 999px;
  padding: 8px 6px;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}
.nav-links a:hover {
  color: var(--ink);
  background: transparent;
}
.nav-links .btn-primary {
  border: 1px solid color-mix(in srgb, var(--teal) 20%, var(--line));
  background: transparent;
  color: var(--teal);
  box-shadow: none;
  padding: 9px 18px;
}
.nav-links .btn-primary:hover {
  background: var(--teal);
  color: var(--paper);
  border-color: var(--teal);
}

@media (max-width: 780px) {
  .nav-links a:not(.btn) { display: none; }
  .nav-links .btn-primary { padding: 8px 14px; }
}

@media (max-width: 520px) {
  .nav-inner { height: 60px; }
  .brand { gap: 8px; }
  .brand-name { font-size: 21px; }
  .brand-sub { font-size: 7.5px; }
  .quill { width: 23px; height: 23px; }
  .nav-links .btn-primary { font-size: 14px; padding: 7px 11px; }
}

/* ─── Hero ───────────────────────────────────────────────────── */
.hero { padding: 96px 0 70px; position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero h1 { font-size: clamp(40px, 5.6vw, 72px); margin-bottom: 26px; }

.hero h1 .strike { display: block; position: relative; width: fit-content; white-space: nowrap; }
.hero h1 .strike::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: 54%;
  height: 4px;
  background: var(--rust);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: strike 0.7s ease 1.1s forwards;
}

@keyframes strike { to { transform: scaleX(1); } }

.hero .sub { font-size: 21px; color: #3a4544; max-width: 520px; margin-bottom: 34px; line-height: 1.55; }

.hero-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

.ghost {
  color: var(--teal);
  text-decoration: none;
  font-size: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.ghost:hover { border-color: var(--teal); }

.hero-note {
  margin-top: 22px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.tool-shot-card {
  display: block;
  appearance: none;
  width: 100%;
  border: 0;
  background: transparent;
  margin: 0;
  color: inherit;
  cursor: zoom-in;
  font: inherit;
  padding: 0;
  text-align: left;
}

.tool-shot-frame {
  overflow: hidden;
  border: 1px solid rgba(31, 74, 71, 0.16);
  border-radius: 22px;
  background: #FBF8F0;
  box-shadow: 0 34px 72px -34px rgba(28, 43, 42, 0.42);
  transform: rotate(0.35deg);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.tool-shot-card:hover .tool-shot-frame,
.tool-shot-card:focus-visible .tool-shot-frame {
  border-color: rgba(31, 74, 71, 0.34);
  box-shadow: 0 38px 76px -32px rgba(28, 43, 42, 0.5);
  transform: rotate(0.35deg) translateY(-2px);
}

.tool-shot-card:focus-visible {
  border-radius: 22px;
  outline: 3px solid rgba(31, 74, 71, 0.2);
  outline-offset: 6px;
}

.tool-shot-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center top;
}

.tool-shot-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
}

.tool-shot-caption span {
  color: var(--gold);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tool-shot-caption strong {
  color: var(--ink);
  font-weight: 500;
}

/* Narrative map card */
.mapcard {
  background: #FBF8F0;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 30px 26px;
  box-shadow: 0 30px 60px -28px rgba(28, 43, 42, 0.32);
}

.mapcard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.mapcard-head .ttl {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.pill {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  padding: 4px 11px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

.pill-broken {
  background: rgba(154, 59, 59, 0.1);
  color: var(--rust);
  border: 1px solid rgba(154, 59, 59, 0.3);
}

svg.threads { width: 100%; height: auto; display: block; }

.legend {
  display: flex;
  gap: 20px;
  margin-top: 18px;
  flex-wrap: wrap;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.legend span { display: flex; align-items: center; gap: 7px; }

.dot { width: 18px; height: 3px; border-radius: 2px; display: inline-block; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 46px; }
  .hero { padding: 60px 0 40px; }
  .tool-shot-caption { display: grid; gap: 7px; }
}

@media (max-width: 520px) {
  .hero h1 { font-size: clamp(32px, 10vw, 38px); }
  .hero h1 .strike {
    width: auto;
    white-space: normal;
  }
  .hero .sub { font-size: 18px; }
  .hero-cta { align-items: flex-start; flex-direction: column; gap: 12px; }
  .tool-shot-frame { border-radius: 16px; }
}

/* ─── Problem band ───────────────────────────────────────────── */
.band,
.final {
  background:
    radial-gradient(circle at 74% 18%, rgba(176, 125, 43, 0.13), transparent 32%),
    radial-gradient(circle at 18% 84%, rgba(31, 74, 71, 0.36), transparent 34%),
    linear-gradient(135deg, #172827, #10201f);
  color: var(--paper);
}

.problem { padding: 92px 0; }
.problem .eyebrow { color: #9fb0ae; }
.problem h2 { font-size: clamp(30px, 3.6vw, 44px); max-width: 780px; margin: 18px 0 0; color: var(--paper); }
.problem .lead { color: #c4cdcb; max-width: 680px; margin-top: 24px; font-size: 20px; }

.losts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 54px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
}

.lost { background: rgba(16, 32, 31, 0.58); padding: 30px 26px; }
.lost q { display: block; font-style: italic; font-size: 19px; color: #e7e2d4; quotes: none; }
.lost .who { font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.1em; color: #8fa19f; margin-top: 14px; text-transform: uppercase; }

@media (max-width: 780px) { .losts { grid-template-columns: 1fr; } }

/* ─── Lenses ─────────────────────────────────────────────────── */
.lenses { padding: 96px 0; }

.sec-head { max-width: 640px; margin-bottom: 64px; }
.sec-head h2 { font-size: clamp(30px, 3.8vw, 46px); margin: 16px 0 0; }
.sec-head p { color: var(--muted); margin-top: 18px; font-size: 20px; }

.ownership-section {
  overflow: hidden;
  padding: 96px 0;
  background:
    radial-gradient(circle at 82% 14%, rgba(176, 125, 43, 0.14), transparent 34%),
    radial-gradient(circle at 12% 72%, rgba(31, 74, 71, 0.42), transparent 34%),
    linear-gradient(135deg, #172827, #10201f);
  color: var(--paper);
}

.ownership-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 3vw, 34px);
  align-items: start;
  color: var(--paper);
}

.ownership-copy {
  max-width: 780px;
}

.ownership-copy h2 {
  color: var(--paper);
  font-size: clamp(31px, 4vw, 52px);
  margin: 13px 0 16px;
  max-width: 790px;
}

.ownership-copy p:not(.eyebrow) {
  color: rgba(244, 239, 227, 0.78);
  font-size: 18px;
  line-height: 1.55;
}

.ownership-panel .eyebrow {
  color: rgba(236, 229, 212, 0.58);
}

.ownership-map {
  position: relative;
  border: 1px solid rgba(244, 239, 227, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(circle at 48% 34%, rgba(236, 229, 212, 0.11), transparent 34%),
    linear-gradient(180deg, rgba(244, 239, 227, 0.08), rgba(10, 27, 26, 0.22));
  overflow: clip;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 22px 44px -36px rgba(0, 0, 0, 0.8);
  padding: clamp(18px, 2.4vw, 28px);
}

.ownership-map::before {
  content: "";
  position: absolute;
  inset: 20px;
  background-image:
    linear-gradient(rgba(244, 239, 227, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 239, 227, 0.08) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle at center, #000, transparent 74%);
  pointer-events: none;
}

.ownership-zones {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns:
    minmax(160px, 0.9fr)
    clamp(32px, 4vw, 56px)
    minmax(340px, 1.65fr)
    clamp(32px, 4vw, 56px)
    minmax(170px, 0.95fr);
  gap: 0;
  align-items: stretch;
  min-height: clamp(320px, 32vw, 380px);
}

.ownership-zone {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  border: 1px solid rgba(244, 239, 227, 0.14);
  border-radius: 18px;
  background: rgba(244, 239, 227, 0.06);
  padding: clamp(14px, 1.5vw, 18px);
}

.device-zone,
.provider-zone {
  align-self: center;
}

.zone-label {
  color: rgba(236, 229, 212, 0.68);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.computer-zone {
  border-color: rgba(236, 229, 212, 0.18);
  background:
    linear-gradient(180deg, rgba(244, 239, 227, 0.1), rgba(244, 239, 227, 0.04)),
    rgba(9, 23, 22, 0.32);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 16px 36px rgba(0, 0, 0, 0.18);
}

.computer-shell {
  display: grid;
  grid-template-rows: 28px 1fr;
  min-height: clamp(250px, 25vw, 306px);
  border: 1px solid rgba(236, 229, 212, 0.17);
  border-radius: 18px;
  background:
    linear-gradient(rgba(244, 239, 227, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 239, 227, 0.09) 1px, transparent 1px),
    rgba(244, 239, 227, 0.06);
  background-size: 42px 42px;
  overflow: hidden;
}

.computer-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(236, 229, 212, 0.12);
  background: rgba(244, 239, 227, 0.06);
  padding: 0 12px;
}

.computer-topbar i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(236, 229, 212, 0.34);
}

.computer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(min(100%, 136px), 1fr));
  gap: clamp(10px, 1.4vw, 16px);
  align-content: center;
  padding: clamp(14px, 2vw, 22px);
}

.computer-grid .feedback {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(260px, 100%);
}

.ownership-flow-arrow {
  position: relative;
  display: grid;
  place-items: center;
  align-self: center;
  min-height: 80px;
}

.ownership-flow-arrow::before {
  content: "";
  width: 100%;
  border-top: 1.5px solid rgba(236, 229, 212, 0.46);
}

.ownership-flow-arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid rgba(236, 229, 212, 0.46);
  border-right: 1.5px solid rgba(236, 229, 212, 0.46);
  transform: rotate(45deg);
}

.ownership-flow-arrow span {
  position: absolute;
  top: calc(50% + 10px);
  width: min(96px, 12vw);
  color: rgba(236, 229, 212, 0.58);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.provider-arrow::before {
  border-top-style: dashed;
}

.ownership-node {
  display: grid;
  gap: 2px;
  appearance: none;
  width: 100%;
  border: 1px solid rgba(236, 229, 212, 0.28);
  border-radius: 18px;
  background: rgba(244, 239, 227, 0.12);
  color: var(--paper);
  cursor: pointer;
  font: inherit;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
  padding: clamp(11px, 1.35vw, 15px);
  text-align: left;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ownership-node span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ownership-node small {
  color: rgba(244, 239, 227, 0.76);
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.ownership-node:hover,
.ownership-node:focus-visible,
.ownership-node.active {
  border-color: rgba(31, 74, 71, 0.58);
  background: rgba(244, 239, 227, 0.16);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
  outline: none;
}

.ownership-node.passkey,
.ownership-node.encrypted {
  color: #c9bddf;
}

.ownership-node.embedding {
  color: #e0b76d;
}

.ownership-node.model {
  color: #ef9aa5;
}

.ownership-node.feedback {
  color: #a3d4cf;
}

.ownership-detail {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 0.32fr) minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  border: 1px solid rgba(236, 229, 212, 0.16);
  border-radius: 20px;
  background: rgba(244, 239, 227, 0.08);
  backdrop-filter: blur(10px);
  margin-top: 20px;
  padding: clamp(14px, 1.7vw, 18px);
}

.ownership-detail span {
  color: #e0b76d;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.13em;
}

.ownership-detail h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
  line-height: 1.12;
}

.ownership-detail p {
  color: rgba(244, 239, 227, 0.78);
  font-size: 15px;
  line-height: 1.4;
}

@media (max-width: 1080px) {
  .ownership-panel {
    grid-template-columns: 1fr;
  }

  .ownership-map {
    padding: 20px;
  }

  .ownership-zones {
    grid-template-columns: 1fr;
    gap: clamp(14px, 2vw, 20px);
    min-height: auto;
  }

  .ownership-flow-arrow {
    min-height: 44px;
    transform: rotate(90deg);
    width: 64px;
    justify-self: center;
  }

  .ownership-flow-arrow span {
    top: calc(50% + 10px);
    transform: rotate(-90deg);
    width: 110px;
  }

  .computer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .computer-grid .feedback {
    grid-column: auto;
    width: 100%;
  }
}

@media (max-width: 620px) {
  .ownership-map {
    min-height: auto;
    padding: 18px;
  }

  .ownership-map::before {
    display: none;
  }

  .ownership-detail {
    grid-template-columns: auto 1fr;
    margin-top: 8px;
    padding-top: 14px;
  }

  .computer-grid {
    grid-template-columns: 1fr;
  }

  .ownership-detail p {
    grid-column: 1 / -1;
  }
}

.lens {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.lens:nth-child(even) .lens-copy { order: 2; }

.lens-num { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.14em; color: var(--gold); margin-bottom: 14px; }

.lens-copy h3 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 30px; margin-bottom: 14px; letter-spacing: -0.01em; }
.lens-copy p { color: #3f4a49; font-size: 18px; }

.lens-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 6px 13px;
  border-radius: 20px;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  color: var(--teal);
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* Mock UI panels */
.mock {
  background: #FBF8F0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 22px 44px -30px rgba(28, 43, 42, 0.3);
  min-height: 220px;
}

.m-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.m-row:last-child { border-bottom: none; }

.m-ico { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }

.m-flag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  margin-left: auto;
  padding: 2px 9px;
  border-radius: 14px;
}

.m-status {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
}

.m-text { font-size: 16px; line-height: 1.55; color: #2a3534; }
.m-text .hl { background: rgba(176, 125, 43, 0.16); border-bottom: 1.5px solid var(--gold); padding: 1px 2px; cursor: help; }
.m-text .cmt {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  background: var(--teal);
  color: var(--paper);
  border-radius: 10px;
  padding: 1px 6px;
  vertical-align: super;
  margin-left: 2px;
}

@media (max-width: 880px) {
  .lens { grid-template-columns: 1fr; gap: 26px; }
  .lens:nth-child(even) .lens-copy { order: 0; }
}

@media (max-width: 520px) {
  .lens-copy h3,
  .lens-copy p,
  .m-text,
  .manifesto p,
  .who-card p {
    overflow-wrap: anywhere;
  }
  .mock { padding: 18px; }
  .m-status,
  .m-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .m-flag { margin-left: 0; }
}

/* ─── Manifesto ──────────────────────────────────────────────── */
.manifesto {
  padding: 104px 0;
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.manifesto .inner { max-width: 840px; margin: 0 auto; text-align: center; }
.manifesto .eyebrow { color: var(--gold); }
.manifesto h2 { font-size: clamp(30px, 4.4vw, 52px); margin: 22px 0 30px; line-height: 1.12; }
.manifesto p { font-size: 21px; color: #3a4544; max-width: 680px; margin: 0 auto 18px; }
.manifesto .pen { color: var(--teal); font-style: italic; }

/* ─── Final CTA ──────────────────────────────────────────────── */
.final {
  padding: 108px 0;
  text-align: center;
}
.final h2 { font-size: clamp(34px, 4.6vw, 58px); max-width: 760px; margin: 0 auto 28px; color: #FBF8F0; }
.final p { color: #c5d6d4; font-size: 20px; max-width: 500px; margin: 0 auto 38px; }
.final .note { margin-top: 22px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: #9fb6b3; letter-spacing: 0.04em; }

/* ─── Access modal ───────────────────────────────────────────── */
body.access-modal-open { overflow: hidden; }
body.image-modal-open { overflow: hidden; }

.access-modal[hidden] { display: none; }
.image-modal[hidden] { display: none; }

.access-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.access-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 43, 42, 0.48);
  backdrop-filter: blur(8px);
}

.access-dialog {
  position: relative;
  width: min(100%, 520px);
  background: #FBF8F0;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px;
  box-shadow: 0 34px 80px -28px rgba(28, 43, 42, 0.58);
}

.access-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-family: 'Newsreader', serif;
  font-size: 24px;
  line-height: 1;
}

.access-close:hover { background: var(--paper-deep); }

.access-dialog h2 {
  font-size: clamp(30px, 5vw, 44px);
  margin: 16px 42px 14px 0;
}

.access-intro {
  color: #3a4544;
  font-size: 18px;
  line-height: 1.52;
  margin-bottom: 24px;
}

.access-form {
  display: grid;
  gap: 18px;
}

.access-form label {
  display: grid;
  gap: 8px;
}

.access-form label span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.access-form input,
.access-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Newsreader', Georgia, serif;
  font-size: 18px;
  padding: 13px 14px;
  outline: none;
}

.access-form input:focus,
.access-form select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(31, 74, 71, 0.12);
}

.access-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.access-secondary {
  border: none;
  background: transparent;
  color: var(--teal);
  cursor: pointer;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 16px;
  border-bottom: 1px solid var(--line);
  padding: 3px 0;
}

.access-secondary:hover { border-color: var(--teal); }

.access-status {
  min-height: 24px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.access-status.success { color: var(--teal); }
.access-status.error { color: var(--rust); }

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 36px);
}

.image-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(28, 43, 42, 0.62);
  backdrop-filter: blur(10px);
  cursor: zoom-out;
}

.image-dialog {
  position: relative;
  width: min(100%, 1280px);
  margin: 0;
  border-radius: 22px;
  background: #FBF8F0;
  box-shadow: 0 36px 90px -24px rgba(0, 0, 0, 0.48);
  overflow: hidden;
}

.image-dialog img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 72px);
  object-fit: contain;
}

.image-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(217, 208, 188, 0.8);
  border-radius: 50%;
  background: rgba(251, 248, 240, 0.9);
  color: var(--ink);
  cursor: pointer;
  font-family: 'Newsreader', serif;
  font-size: 26px;
  line-height: 1;
}

.image-close:hover {
  background: var(--paper);
}

@media (max-width: 520px) {
  .access-dialog { padding: 28px 22px; }
  .access-actions .btn { width: 100%; text-align: center; }
  .image-dialog { border-radius: 16px; }
  .image-dialog img { max-height: calc(100vh - 44px); }
}

/* ─── Footer ─────────────────────────────────────────────────── */
footer { padding: 46px 0; border-top: 1px solid var(--line); }

.foot-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; }
.foot-inner .c { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }

.foot-links { display: flex; gap: 26px; }
.foot-links a { color: var(--ink); opacity: 0.7; text-decoration: none; font-size: 15px; }
.foot-links a:hover { opacity: 1; }
