@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Syne";
  src: url("../fonts/SyneVariable.woff2") format("woff2"),
    url("../fonts/SyneVariable.ttf") format("truetype");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #efefef;
  --paper: #fff;
  --ink: #0e0e0e;
  --muted: #8d8d8d;
  --soft: #5c5c5c;
  --line: #e8e8e8;
  --orange: #ff6a2a;
  --shadow: 0 30px 80px rgba(14, 14, 14, 0.07);
  --radius: 28px;
  --wrap: 1160px;
  --nav: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-feature-settings: "cv11", "ss01";
  background: var(--bg);
  color: var(--ink);
  line-height: 1.45;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}

.page {
  padding-bottom: 80px;
}

/* Nav */

.site-nav {
  height: var(--nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.mark-symbol {
  width: 36px;
  height: 36px;
  flex: none;
  display: block;
}

.mark-rule {
  width: 1px;
  height: 22px;
  flex: none;
  background: var(--orange);
  opacity: 0.95;
}

.mark-words {
  display: flex;
  align-items: baseline;
  gap: 0.32em;
  line-height: 1;
}

.mark-words span:first-child {
  font-family: "Inter", ui-sans-serif, sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  font-variation-settings: "wght" 500;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.mark-words span:last-child {
  font-family: "Syne", "Inter", sans-serif;
  font-size: 20px;
  font-weight: 800;
  font-variation-settings: "wght" 800;
  letter-spacing: -0.05em;
  color: var(--ink);
}

.nav-links {
  display: flex;
  gap: 22px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--soft);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid #d8d8d8;
  border-radius: 12px;
  background: #fff;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 15px;
  height: 1.5px;
  background: var(--ink);
  margin: 0 auto;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

/* Hero */

.hero {
  padding-top: 4px;
}

.split {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  min-height: min(72vh, 640px);
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: rise 0.7s var(--ease);
}

.split-visual {
  position: relative;
  background: #1c140e;
}

.split-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 28% 42%;
}

.split-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 70%, #fff 100%);
  pointer-events: none;
}

.split-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 52px 56px 28px;
  gap: 18px;
}

.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.display {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 1.05;
  max-width: 11ch;
}

.lede {
  margin: 0;
  max-width: 34ch;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  background: var(--ink);
  color: #fff;
  transition: transform 0.2s var(--ease), background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: #000;
}

.btn:disabled {
  opacity: 0.35;
  pointer-events: none;
  transform: none;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--soft);
  border: 1px solid #e0e0e0;
  background: #fff;
}

.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ghost:disabled {
  opacity: 0.35;
  pointer-events: none;
}

.quiet-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 13.5px;
  color: var(--soft);
}

.quiet-links a {
  border-bottom: 1px solid transparent;
}

.quiet-links a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* Rail */

.rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 28px;
  padding: 22px 8px 6px;
}

.rail span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.rail strong {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

/* Sections */

.section-flush {
  margin-top: 8px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 22px;
}

.section-head h1,
.section-head h2 {
  margin: 6px 0 0;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  max-width: 36ch;
  font-size: 14.5px;
  color: var(--soft);
  text-align: right;
}

/* Bento + tiles */

.bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: var(--paper);
  border-radius: 22px;
  padding: 22px 22px 20px;
  min-height: 168px;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), border-color 0.2s ease, box-shadow 0.25s ease;
}

.tile-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 0 0 auto;
}

.tile.has-art {
  padding: 0;
  overflow: hidden;
}

.tile.has-art .tile-art {
  flex: 1 1 auto;
  min-height: 0;
}

.tile.has-art .tile-body {
  padding: 16px 20px 18px;
}

.tile-lead.has-art .tile-body {
  padding: 18px 22px 20px;
}

.tile-art,
.entry-art {
  background: #f4f0e8;
  overflow: hidden;
}

.tile-art {
  aspect-ratio: 16 / 10;
}

.tile-lead .tile-art {
  aspect-ratio: 16 / 10;
  flex: 1 1 0;
}

.tile-art img,
.entry-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.tile:hover {
  transform: translateY(-3px);
  border-color: #ececec;
  box-shadow: 0 16px 40px rgba(14, 14, 14, 0.06);
}

.tile-lead {
  grid-column: 1 / -1;
  padding: 28px;
  background:
    linear-gradient(165deg, rgba(255, 106, 42, 0.08), transparent 42%),
    var(--paper);
}

.tile-lead h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.tile-lead p {
  font-size: 14.5px;
  line-height: 1.5;
  max-width: none;
}

.tile-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.tile-n {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.tile-group {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a15a32;
  background: #fff3ec;
  padding: 4px 9px;
  border-radius: 999px;
}

.tile h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.tile p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--soft);
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.tile-grid {
  min-height: 176px;
}

/* Catalog */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 24px;
}

.chip {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #e0e0e0;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: var(--soft);
}

.chip:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: #fff;
}

.chip.is-on,
.chip.is-on:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.catalog {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

#atelier {
  scroll-margin-top: 24px;
}

.entry {
  background: var(--paper);
  border-radius: 22px;
  padding: 24px;
  scroll-margin-top: 24px;
  transition: box-shadow 0.25s ease;
}

.entry.has-art {
  padding: 0;
  overflow: hidden;
}

.entry-art {
  aspect-ratio: 16 / 10;
}

.entry.has-art .entry-body {
  padding: 16px 20px 20px;
}

.entry.is-pulse {
  box-shadow: 0 0 0 2px var(--orange);
}

.entry h3 {
  margin: 0 0 10px;
  font-size: 20px;
  letter-spacing: -0.035em;
}

.entry p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--soft);
}

a.entry {
  display: block;
  color: inherit;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

a.entry:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(14, 14, 14, 0.06);
}

.entry-go {
  margin-top: 12px !important;
  font-size: 13px !important;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink) !important;
}

/* Tool workspace */

.tool-page {
  margin-top: 8px;
}

.crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.crumb a:hover {
  color: var(--ink);
}

.scrub {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  min-height: min(68vh, 600px);
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: rise 0.7s var(--ease);
}

.scrub-stage {
  position: relative;
  background: #f4f0e8;
  min-height: 420px;
}

.scrub-stage.is-over .scrub-drop {
  background: rgba(255, 106, 42, 0.08);
}

.scrub-drop {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 40px;
  cursor: pointer;
  z-index: 1;
}

.scrub-drop strong {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.scrub-drop > span:last-child {
  max-width: 32ch;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--soft);
}

.drop-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.scrub-drop.is-busy strong {
  color: var(--soft);
}

.scrub-image {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #1c140e;
}

.scrub-stage.has-file {
  cursor: pointer;
}

.scrub-stage.has-file .scrub-drop {
  display: none;
}

.scrub-stage.has-file .scrub-image,
.scrub-stage.has-file .scrub-canvas {
  display: block;
}

.scrub-canvas {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #1c140e;
}

.scrub-live {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #1c140e;
}

.tool-cam .scrub-stage.has-live .scrub-live {
  display: block;
}

.tool-cam .scrub-stage.has-live .scrub-drop {
  display: none;
}

.tool-blur .scrub-stage.has-file {
  cursor: default;
}

.tool-blur .scrub-stage.is-draw {
  cursor: crosshair;
}

.tool-stego .scrub-stage.has-file,
.tool-monitor .scrub-stage.has-file,
.tool-poison .scrub-stage.has-file,
.tool-watermark .scrub-stage.has-file,
.tool-cloak .scrub-stage.has-file,
.tool-vault .scrub-stage.has-file,
.tool-shamir .scrub-stage.has-file,
.tool-kyc .scrub-stage.has-file,
.tool-osint .scrub-stage.has-file,
.tool-scan .scrub-stage.has-file,
.tool-down .scrub-stage.has-file,
.tool-cam .scrub-stage.has-file,
.tool-cam .scrub-stage.has-live,
.tool-shot .scrub-stage.has-file,
.tool-htmlv .scrub-stage.has-file,
.tool-duress .scrub-stage.has-file,
.tool-corrupt .scrub-stage.has-file,
.tool-ela .scrub-stage.has-file,
.tool-qr .scrub-stage.has-file,
.tool-swap .scrub-stage.has-file,
.tool-ascan .scrub-stage.has-file,
.tool-audit .scrub-stage.has-file {
  cursor: default;
}

.tool-osint .scrub-stage.is-draw {
  cursor: crosshair;
}

.tool-poison .scrub-stage.has-file .scrub-canvas,
.tool-cloak .scrub-stage.has-file .scrub-canvas,
.tool-kyc .scrub-stage.has-file .scrub-canvas,
.tool-osint .scrub-stage.has-file .scrub-canvas,
.tool-scan .scrub-stage.has-file .scrub-canvas,
.tool-down .scrub-stage.has-file .scrub-canvas,
.tool-shot .scrub-stage.has-file .scrub-canvas,
.tool-corrupt .scrub-stage.has-file .scrub-canvas,
.tool-ela .scrub-stage.has-file .scrub-canvas,
.tool-qr .scrub-stage.has-file .scrub-canvas,
.tool-swap .scrub-stage.has-file .scrub-canvas,
.tool-ascan .scrub-stage.has-file .scrub-canvas,
.tool-audit .scrub-stage.has-file .scrub-canvas {
  touch-action: none;
}

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 16px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--soft);
  cursor: pointer;
}

.consent span {
  min-width: 0;
  overflow-wrap: break-word;
}

.consent input {
  margin-top: 3px;
  flex: none;
  accent-color: var(--ink);
  width: 16px;
  height: 16px;
}

.print {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.hash-mosaic {
  width: 72px;
  height: 72px;
  flex: none;
  border-radius: 10px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: #1c140e;
}

.print .census-empty {
  margin: 0;
}

.tool-monitor .census {
  margin-top: 10px;
}

[hidden] {
  display: none !important;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
}

.field span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 11px 14px;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: #fff;
}

.field textarea {
  min-height: 128px;
  resize: vertical;
  line-height: 1.5;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}

.field-grid .field {
  min-width: 0;
}

.tool-stego #status,
.tool-watermark #status,
.tool-vault #status,
.tool-spoof #status,
.tool-shamir #status,
.tool-kyc #status,
.tool-osint #status,
.tool-scan #status,
.tool-down #status,
.tool-cam #status,
.tool-shot #status,
.tool-htmlv #status,
.tool-duress #status,
.tool-corrupt #status,
.tool-ela #status,
.tool-qr #status,
.tool-swap #status,
.tool-ascan #status,
.tool-audit #status {
  margin-top: 14px;
}

.tool-spoof .census,
.tool-shamir .census {
  min-height: 120px;
}

.tool-vault .scrub-canvas.is-mosaic,
.tool-shamir .scrub-canvas.is-mosaic,
.tool-htmlv .scrub-canvas.is-mosaic,
.tool-duress .scrub-canvas.is-mosaic,
.tool-corrupt .scrub-canvas.is-mosaic,
.tool-shot .scrub-stage.has-file .scrub-canvas {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.mode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.strength-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.strength-row input[type="range"] {
  flex: 1;
  accent-color: var(--ink);
}

.btn-ghost.is-on {
  color: var(--ink);
  border-color: var(--ink);
  background: #f4f4f4;
}

button.trace {
  width: 100%;
  text-align: left;
  padding: 9px 0;
  border-radius: 0;
}

.scrub-panel {
  display: flex;
  flex-direction: column;
  padding: 28px 28px 24px;
  border-left: 1px solid var(--line);
  min-width: 0;
}

.scrub-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.scrub-stats span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.scrub-stats strong {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.census {
  flex: 1 1 auto;
  overflow: auto;
  margin: 16px 0;
  min-height: 160px;
}

.census-empty {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--soft);
}

.census-empty.is-error,
.census-note.is-error {
  color: var(--ink);
}

.census-note {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

.trace {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #f2f2f2;
  font-size: 13.5px;
}

.trace span {
  color: var(--muted);
  font-weight: 500;
}

.trace strong {
  font-weight: 550;
  letter-spacing: -0.02em;
  word-break: break-word;
}

.trace.is-hot span,
.trace.is-hot strong {
  color: #c24a16;
}

.scrub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 8px;
}

/* Method */

.method {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.method-aside h1 {
  margin: 8px 0 0;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.05em;
  line-height: 1.12;
}

.method-body {
  background: var(--paper);
  border-radius: 22px;
  padding: 36px 40px;
}

.method-body h2 {
  margin: 28px 0 8px;
  font-size: 16px;
  letter-spacing: -0.03em;
}

.method-body h2:first-child {
  margin-top: 0;
}

.method-body p {
  margin: 0;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.65;
}

.site-footer {
  margin-top: 72px;
  padding-top: 22px;
  border-top: 1px solid #e2e2e2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

.foot-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px 28px;
  flex-wrap: wrap;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 18px;
}

.foot-link {
  padding: 0;
  color: var(--soft);
  font-size: 13px;
  letter-spacing: 0.01em;
  transition: color 0.2s var(--ease);
}

.foot-link:hover,
.foot-link:focus-visible {
  color: var(--orange);
}

.foot-link:focus-visible {
  outline-offset: 3px;
}

.foot-sisters {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35em 0.55em;
  color: #a3a3a3;
  font-size: 11px;
  letter-spacing: 0.015em;
  line-height: 1.5;
}

.foot-sisters-kicker {
  margin-right: 0.3em;
  color: #b0b0b0;
}

.foot-sisters a {
  color: #7a7a7a;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.foot-sisters a:hover,
.foot-sisters a:focus-visible {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.foot-sisters > span[aria-hidden] {
  color: #d0d0d0;
}

.foot-credit {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #a3a3a3;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1.5;
}

.foot-credit p {
  margin: 0;
}

.foot-credit a {
  color: #7a7a7a;
  border-bottom: 1px solid #dedede;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.foot-credit a:hover,
.foot-credit a:focus-visible {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.foot-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.32em;
  font-size: 13.5px;
  color: var(--ink);
}

.foot-brand span:first-child {
  font-family: "Inter", ui-sans-serif, sans-serif;
  font-weight: 500;
  font-variation-settings: "wght" 500;
  letter-spacing: 0.06em;
}

.foot-brand span:last-child {
  font-family: "Syne", "Inter", sans-serif;
  font-weight: 800;
  font-variation-settings: "wght" 800;
  letter-spacing: -0.04em;
}

.foot-sep {
  margin: 0 0.55em;
  color: #c8c8c8;
}

body.is-modal {
  overflow: hidden;
}

.site-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 24px;
}

.site-modal.is-open {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
  background:
    radial-gradient(70% 50% at 50% 40%, rgba(232, 90, 36, 0.12), transparent 72%),
    rgba(14, 14, 14, 0.58);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 540px);
  max-height: min(82vh, 640px);
  overflow: auto;
  padding: clamp(28px, 4vw, 40px);
  border: 1px solid #ececec;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  animation: rise 0.45s var(--ease) both;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #e6e6e6;
  border-radius: 999px;
  background: #fafafa;
  color: var(--soft);
  font-size: 22px;
  line-height: 1;
  transition:
    color 0.2s var(--ease),
    background 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.modal-close:hover,
.modal-close:focus-visible {
  color: var(--ink);
  background: #fff;
  border-color: var(--orange);
}

.modal-close:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.modal-category {
  margin: 0 40px 10px 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
}

.modal-title {
  margin: 0 40px 0 0;
  font-family: "Syne", "Inter", sans-serif;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  font-variation-settings: "wght" 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
  color: var(--ink);
}

.modal-lead {
  margin: 14px 0 0;
  max-width: 38ch;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
}

.modal-body {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.modal-body p {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--soft);
}

.modal-body p:last-child {
  margin-bottom: 0;
}

.modal-body a {
  color: var(--ink);
  border-bottom: 1px solid rgba(255, 106, 42, 0.45);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.modal-body a:hover,
.modal-body a:focus-visible {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.modal-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.modal-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.32em;
  font-size: 13px;
  color: var(--ink);
}

.modal-brand span:first-child {
  font-family: "Inter", ui-sans-serif, sans-serif;
  font-weight: 500;
  font-variation-settings: "wght" 500;
  letter-spacing: 0.06em;
}

.modal-brand span:last-child {
  font-family: "Syne", "Inter", sans-serif;
  font-weight: 800;
  font-variation-settings: "wght" 800;
  letter-spacing: -0.04em;
}

.modal-hint {
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--muted);
}

@media (max-width: 520px) {
  .site-modal {
    padding: 0;
    align-items: end;
  }

  .modal-panel {
    width: 100%;
    max-height: 90vh;
    border-radius: 28px 28px 0 0;
    padding: 28px 22px 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .modal-panel {
    animation: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 961px) {
  .tile-lead.has-art {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .tile-lead .tile-art {
    aspect-ratio: 2 / 1;
    height: auto;
    min-height: 0;
    flex: none;
  }

  .tile-lead.has-art .tile-body {
    justify-content: center;
    padding: 24px 28px;
  }
}

@media (max-width: 960px) {
  .bento,
  .home-grid,
  .catalog,
  .method,
  .rail {
    grid-template-columns: 1fr 1fr;
  }

  .bento {
    grid-template-rows: auto;
  }

  .tile-lead {
    grid-row: auto;
    grid-column: 1 / -1;
  }

  .section-head {
    flex-direction: column;
    align-items: start;
  }

  .section-head p {
    text-align: left;
  }
}

@media (max-width: 820px) {
  .wrap {
    width: calc(100% - 28px);
  }

  .split {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .split-visual {
    height: 280px;
  }

  .split-visual::after {
    background: linear-gradient(180deg, transparent 58%, #fff 100%);
  }

  .split-copy {
    padding: 8px 24px 32px;
  }

  .display {
    max-width: none;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav-links {
    display: none;
  }

  .nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav);
    left: 0;
    right: 0;
    background: #fff;
    padding: 16px 18px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    z-index: 20;
    gap: 14px;
  }

  .rail,
  .home-grid,
  .catalog,
  .bento,
  .method,
  .scrub {
    grid-template-columns: 1fr;
  }

  .method-body {
    padding: 24px;
  }

  .scrub-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .scrub-stage {
    min-height: 220px;
  }

  .census {
    min-height: 0;
  }

  .tool-page .section-head {
    margin-bottom: 14px;
  }

  .scrub-drop {
    padding: 28px 24px;
  }

  .scrub-panel {
    padding: 20px 20px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
