:root {
  --bg: #000;
  --bg-2: #0a0a0a;
  --panel: #111;
  --ink: #fff;
  --muted: rgba(255, 255, 255, 0.64);
  --faint: rgba(255, 255, 255, 0.42);
  --line: rgba(255, 255, 255, 0.14);
  --danger: #ff8d86;
  --ok: #b7f0c2;
  --sans: "Inter Tight", Inter, "Segoe UI", sans-serif;
  --wrap: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.5;
  font-weight: 400;
}
body.admin { background: var(--bg-2); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
section[id], .panel[id] { scroll-margin-top: 5.5rem; }
h1 { font-size: clamp(3.2rem, 7.4vw, 6.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.03em; }
p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: #fff; color: #000; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: #fff;
  color: #000;
  padding: 0.5rem 0.8rem;
  z-index: 20;
}
.skip:focus { top: 0.5rem; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: #fff;
}
.logo-mark { width: 32px; height: 32px; }
.word {
  font-weight: 600;
  letter-spacing: -0.05em;
  font-size: 1.25rem;
}
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { text-decoration: none; color: rgba(255, 255, 255, 0.82); font-weight: 500; }
.nav a[aria-current="page"] { color: #fff; }
.nav-cta {
  background: #fff;
  color: #000;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
}
.nav-toggle {
  display: none;
  background: transparent;
  color: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.85rem;
}
.lede {
  max-width: 38rem;
  font-size: 1.15rem;
  color: var(--muted);
  margin-top: 1.1rem;
  letter-spacing: -0.02em;
}
.quiet, .muted { color: var(--muted); }
.muted { font-size: 0.92rem; }
.optional {
  color: var(--faint);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mono { font-variant-numeric: tabular-nums; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: #fff;
  color: #000;
  text-decoration: none;
  border: 1px solid #fff;
  border-radius: 999px;
  padding: 0.8rem 1.15rem;
  cursor: pointer;
  font-weight: 600;
}
.btn.primary { background: #fff; color: #000; }
.btn.quiet { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn.danger { background: transparent; color: var(--danger); border-color: rgba(255, 141, 134, 0.45); }
.btn.small { padding: 0.45rem 0.8rem; font-size: 0.92rem; }
.btn:disabled { opacity: 0.55; cursor: wait; }
.linkish {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}
.linkish.danger { color: var(--danger); }

.hero {
  position: relative;
  min-height: calc(100vh - 4.25rem);
  display: flex;
  align-items: flex-end;
  padding: 0 0 4.5rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) brightness(0.42) contrast(1.05);
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.82) 38%, rgba(0, 0, 0, 0.25) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, #000 100%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding-top: 6rem;
  container-type: inline-size;
}
.hero-copy h1 {
  max-width: none;
  font-size: min(4.75rem, calc(100cqi / 16.5));
  line-height: 1.05;
  white-space: nowrap;
  text-wrap: nowrap;
}
.hero-copy .lede { max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }

.spec-bar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin: 0;
  padding: 0.95rem 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.section { padding: 5rem 0 1rem; }
.section-head { margin-bottom: 1.6rem; max-width: 36rem; }
.catalog {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.catalog a {
  display: block;
  padding: 1.6rem 1.4rem 1.7rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.catalog a:nth-child(odd) { border-right: 1px solid var(--line); }
.catalog a:hover { background: #0c0c0c; }
.catalog strong {
  display: block;
  margin-top: 0.7rem;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}
.catalog em {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-style: normal;
}
.num {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--faint);
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
  padding: 5rem 0;
}
.steps { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.15rem; }
.steps li { display: grid; grid-template-columns: 2.2rem 1fr; gap: 0.8rem; }
.steps li > span { color: var(--faint); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; padding-top: 0.3rem; }
.steps p { color: var(--muted); margin-top: 0.3rem; }

.frame {
  border-radius: 8px;
  overflow: hidden;
  background: #111;
  border: 1px solid var(--line);
}
.frame img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.75) contrast(1.05); }
.frame-wide { aspect-ratio: 16 / 9; }
.frame-photo { aspect-ratio: 3 / 2; }

.band { background: #fff; color: #000; }
.band-inner { padding: 5rem 0; max-width: 40rem; }
.band h2 { max-width: 16em; }
.band p { margin: 1rem 0 1.5rem; color: rgba(0, 0, 0, 0.68); }
.band .eyebrow { color: rgba(0, 0, 0, 0.5); }
.band .btn.primary { background: #000; color: #fff; border-color: #000; }

.page-head { padding: 4.5rem 0 1rem; }
.page-head h1 { max-width: 14ch; }
.service {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  padding: 3.4rem 0;
  border-top: 1px solid var(--line);
}
.service.flip .frame { order: -1; }
.service-copy p { margin-top: 0.85rem; max-width: 40rem; color: var(--muted); }
.service-copy h2 { color: #fff; }
.service-copy ul, .aside ul, .plain-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.service-copy li, .aside li, .plain-list li {
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.86);
}
.service-copy .btn { margin-top: 1.3rem; }
.about-split { align-items: start; }
.prose p + p { margin-top: 1rem; }
.prose p { color: var(--muted); }
.prose .btn { margin-top: 1.3rem; }
.plain-list { max-width: 42rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  padding-bottom: 4.5rem;
}
.aside {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.3rem 1.2rem 1.5rem;
  align-self: start;
}
.aside h2 { font-size: 1.7rem; margin-bottom: 0.5rem; }
.aside-contact { margin-top: 1.2rem; display: grid; gap: 0.35rem; color: var(--muted); }
.notice {
  background: #102215;
  color: var(--ok);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
}

.stack { display: grid; gap: 0.85rem; }
label { display: grid; gap: 0.35rem; font-size: 0.95rem; }
input, textarea, select {
  width: 100%;
  background: #0c0c0c;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.72rem 0.8rem;
  color: #fff;
}
textarea { min-height: 8rem; resize: vertical; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.form-errors {
  background: #2a1212;
  color: var(--danger);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.8rem;
}
.form-errors p { margin: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.check { display: flex; align-items: center; gap: 0.55rem; }
.check input { width: auto; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.4rem 0 2.8rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 2rem;
}
.footer-grid p { color: var(--muted); margin-top: 0.7rem; }
.footer-nav { display: grid; gap: 0.4rem; align-content: start; }
.footer-nav a { text-decoration: none; color: rgba(255, 255, 255, 0.82); }
.flashes { display: grid; gap: 0.5rem; margin-bottom: 1rem; }
.flash { border-radius: 12px; padding: 0.75rem 0.9rem; }
.flash-ok { background: #102215; color: var(--ok); }
.flash-error { background: #2a1212; color: var(--danger); }

.shell {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 100vh;
}
.rail {
  background: #000;
  color: #fff;
  padding: 1.1rem 1rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
}
.rail a { color: #fff; text-decoration: none; }
.rail :focus-visible { outline-color: #fff; }
.rail-nav { display: grid; gap: 0.25rem; }
.rail-nav a { padding: 0.45rem 0.55rem; border-radius: 8px; color: rgba(255, 255, 255, 0.75); }
.rail-nav a[aria-current="page"],
.rail-nav a:hover { background: #161616; color: #fff; }
.badge {
  display: inline-block;
  margin-left: 0.35rem;
  background: #fff;
  color: #000;
  border-radius: 999px;
  padding: 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.rail-foot { margin-top: auto; display: grid; gap: 0.35rem; font-size: 0.95rem; }
.rail-foot .linkish, .rail-foot a { color: rgba(255, 255, 255, 0.7); }
.canvas { padding: 1.6rem 1.4rem 4rem; max-width: 1080px; }
.canvas-head { margin-bottom: 1.2rem; }
.canvas-head h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
.row-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; }
.meta-line { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; margin-top: 0.7rem; color: var(--muted); }
.callout {
  background: #111;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}
.callout p { color: var(--muted); margin-top: 0.35rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; margin-bottom: 1rem; }
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  text-decoration: none;
}
.stat b { display: block; font-size: 2.3rem; font-weight: 600; letter-spacing: -0.04em; }
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.05rem 1.1rem 1.2rem;
}
.panel h2 { margin-bottom: 0.45rem; }
.panel > .quiet { margin-bottom: 0.9rem; }
.link-list, .activity { list-style: none; margin: 0.6rem 0 0; padding: 0; }
.link-list li, .activity li {
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}
.link-list time, .activity small { color: var(--muted); font-size: 0.85rem; }
.activity em { font-style: normal; color: var(--muted); }
.search, .inline-reset { display: flex; gap: 0.6rem; align-items: end; margin-bottom: 1rem; }
.grow { flex: 1; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
}
.table th, .table td { padding: 0.75rem 0.45rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  background: #1c1c1c;
  border: 1px solid var(--line);
}
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem 1.4rem; margin: 0 0 1.2rem; }
.facts div { margin: 0; }
.facts dt { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.facts dd { margin: 0.15rem 0 0; }
.facts .wide { grid-column: 1 / -1; }
.record-grid { display: grid; grid-template-columns: 1.15fr 0.92fr; gap: 1rem; align-items: start; }
#notes { order: 2; }
#passwords { order: 1; }
@media (min-width: 901px) { #notes { order: -1; } }
.cred-list, .note-list, .message-list { display: grid; gap: 0.8rem; margin-top: 0.9rem; }
.cred, .note, .message { border-top: 1px solid var(--line); padding-top: 0.85rem; }
.cred-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.55rem 0; }
.secret-slot { background: #000; border: 1px solid var(--line); border-radius: 12px; padding: 0.7rem; margin: 0.4rem 0 0.6rem; }
details { margin-top: 0.4rem; }
summary { cursor: pointer; color: var(--muted); }
.add-block { margin-top: 1rem; }
.danger-zone { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.danger-zone h2 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.form-card { max-width: 46rem; }
.settings-block { margin-bottom: 0.9rem; }
.settings-block h3 { margin: 1rem 0 0.6rem; }
.unread { box-shadow: inset 3px 0 0 #fff; }
.gate { background: #000; }
.gate-main {
  width: min(32rem, calc(100% - 2rem));
  margin: 8vh auto 3rem;
  display: grid;
  gap: 1.2rem;
}
.gate-card {
  background: #0c0c0c;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.3rem 1.2rem 1.4rem;
}
.gate-card h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); }
.gate-card .quiet { margin: 0.7rem 0 1rem; }

@media (max-width: 900px) {
  .split, .service, .contact-grid, .footer-grid, .record-grid, .facts, .fields, .stats, .catalog {
    grid-template-columns: 1fr;
  }
  .catalog a:nth-child(odd) { border-right: 0; }
  .service.flip .frame { order: 0; }
  .page-head h1 { max-width: none; }
  .shell { display: block; }
  .rail {
    position: sticky;
    top: 0;
    height: auto;
    z-index: 12;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    gap: 0.8rem;
    padding: 0.7rem 0.8rem;
  }
  .rail-nav { display: flex; gap: 0.2rem; }
  .rail-foot { margin-top: 0; display: flex; align-items: center; gap: 0.7rem; }
  .rail-foot p { margin: 0; white-space: nowrap; }
  .canvas { padding: 1.1rem 1rem 3rem; }
  .row-head { flex-direction: column; align-items: start; }
  .hero { min-height: 88vh; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #000;
    border-bottom: 1px solid var(--line);
    padding: 0.7rem 1.25rem 1rem;
    flex-direction: column;
    align-items: flex-start;
  }
  .site-header.is-open .nav { display: flex; }
  .header-bar { position: relative; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
