@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/archivo-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/archivo-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #fff;
  --ink: #000;
  --rail: 248px;
  --line: 3px;
  --shadow: 8px 8px 0 var(--ink);
  --font-display: "Archivo", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
  color-scheme: light;
  font-family: var(--font-display);
  background: var(--paper);
  color: var(--ink);
}

:root[data-theme="dark"] {
  --paper: #000;
  --ink: #fff;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.35;
  text-rendering: geometricPrecision;
}

body.menu-open {
  overflow: hidden;
}

button,
input {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border-radius: 0;
}

input::placeholder {
  color: var(--ink);
  opacity: 1;
}

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

p,
h1,
h2,
h3 {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

[hidden],
.hidden {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border: var(--line) solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 600;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.shell {
  min-height: 100vh;
  padding-left: var(--rail);
}

.rail {
  position: fixed;
  z-index: 30;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--rail);
  flex-direction: column;
  border-right: var(--line) solid var(--ink);
  background: var(--paper);
}

.wordmark {
  display: flex;
  min-height: 118px;
  align-items: flex-end;
  justify-content: space-between;
  padding: 20px 18px;
  border-bottom: var(--line) solid var(--ink);
  font-size: 31px;
  font-weight: 900;
  letter-spacing: -.07em;
  line-height: .8;
  text-transform: uppercase;
}

.wordmark sup {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
}

.rail-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.rail-nav a {
  display: grid;
  min-height: 66px;
  grid-template-columns: 44px 1fr;
  align-items: center;
  border-bottom: var(--line) solid var(--ink);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.02em;
  text-transform: uppercase;
  transition: transform 120ms ease, background 120ms ease, color 120ms ease;
}

.rail-nav a span:first-child {
  display: grid;
  height: 100%;
  place-items: center;
  border-right: var(--line) solid var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
}

.rail-nav a span:last-child {
  padding: 0 14px;
}

.rail-nav a:hover,
.rail-nav a:focus-visible,
.rail-nav a[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
}

.rail-nav a:active {
  transform: translate(3px, 3px);
}

.rail-foot {
  border-top: var(--line) solid var(--ink);
}

.rail-network,
.mobile-network {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.rail-network::before,
.mobile-network::before {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border: 2px solid var(--ink);
  background: var(--ink);
  content: "";
}

.rail-network.offline::before,
.mobile-network.offline::before {
  background: transparent;
}

.theme-toggle {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border: 0;
  border-top: var(--line) solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.theme-toggle::after {
  width: 20px;
  height: 20px;
  border: 2px solid var(--ink);
  background: var(--ink);
  box-shadow: inset -9px 0 0 var(--paper);
  content: "";
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.theme-toggle:hover::after,
.theme-toggle:focus-visible::after {
  border-color: var(--paper);
}

.mobile-bar,
.mobile-menu {
  display: none;
}

.page-main {
  min-height: 100vh;
  background: var(--paper);
}

.page-stamp {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 3vw, 48px);
  border-bottom: var(--line) solid var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.page-stamp span:last-child {
  text-align: right;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hard-button,
.outline-button,
.text-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 20px;
  border: var(--line) solid var(--ink);
  background: var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  color: var(--paper);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.outline-button {
  background: var(--paper);
  color: var(--ink);
}

.text-button {
  min-height: 42px;
  padding: 0;
  border: 0;
  border-bottom: 3px solid currentColor;
  box-shadow: none;
  background: transparent;
  color: var(--ink);
}

.hard-button:hover,
.outline-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 9px 9px 0 var(--ink);
}

.hard-button:active,
.outline-button:active {
  transform: translate(6px, 6px);
  box-shadow: 0 0 0 var(--ink);
}

.hard-button:disabled,
.outline-button:disabled {
  cursor: not-allowed;
  text-decoration: line-through 3px;
  box-shadow: 3px 3px 0 var(--ink);
}

.mono {
  font-family: var(--font-mono);
}

/* Transfer */
.transfer-stage {
  padding: clamp(28px, 4vw, 64px) clamp(20px, 4vw, 64px) 80px;
}

.transfer-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 28%);
  align-items: end;
  gap: 28px;
  margin-bottom: 42px;
}

.transfer-title h1 {
  max-width: 100%;
  font-size: clamp(64px, 11.5vw, 176px);
  font-weight: 900;
  letter-spacing: -.085em;
  line-height: .72;
  text-transform: uppercase;
}

.transfer-title h1 span {
  display: block;
  margin-left: 7vw;
}

.transfer-intro {
  padding: 18px 0 4px 18px;
  border-left: var(--line) solid var(--ink);
}

.transfer-intro p:last-child {
  max-width: 320px;
  margin-top: 16px;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.22;
}

.transfer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, .55fr);
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
}

.transfer-console {
  position: relative;
  border: var(--line) solid var(--ink);
  box-shadow: var(--shadow);
  background: var(--paper);
}

.console-index {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: var(--line) solid var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: var(--line) solid var(--ink);
}

.segment {
  min-height: 72px;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.segment:first-child {
  border-right: var(--line) solid var(--ink);
}

.segment.active,
.segment:hover {
  background: var(--ink);
  color: var(--paper);
}

.panel,
.connection-view {
  padding: clamp(20px, 3.5vw, 48px);
}

.drop-zone {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 312px;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 28px;
  border: var(--line) dashed var(--ink);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  text-align: center;
  transition: transform 120ms ease, background 120ms ease, color 120ms ease;
}

.drop-zone::before {
  display: grid;
  width: 76px;
  height: 76px;
  margin-bottom: 14px;
  place-items: center;
  border: var(--line) solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  content: "+";
  font-family: var(--font-mono);
  font-size: 42px;
  font-weight: 600;
}

.drop-zone:hover,
.drop-zone.dragging {
  background: var(--ink);
  color: var(--paper);
  transform: translate(-3px, -3px);
}

.drop-zone:hover::before,
.drop-zone.dragging::before {
  border-color: var(--paper);
  box-shadow: 6px 6px 0 var(--paper);
}

.drop-zone strong {
  font-size: clamp(27px, 4vw, 52px);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .9;
  text-transform: uppercase;
}

.drop-zone span,
.drop-zone small {
  font-family: var(--font-mono);
  font-size: 11px;
}

.drop-zone small {
  font-weight: 600;
}

.file-chip {
  display: grid;
  min-height: 180px;
  grid-template-columns: 84px 1fr 54px;
  align-items: stretch;
  border: var(--line) solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}

.file-chip::before {
  display: grid;
  place-items: center;
  border-right: var(--line) solid var(--ink);
  content: "DOSYA";
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  writing-mode: vertical-rl;
}

.file-details {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
}

.file-details small,
.file-details span {
  font-family: var(--font-mono);
  font-size: 11px;
}

.file-details strong {
  overflow: hidden;
  margin: 8px 0;
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 850;
  letter-spacing: -.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#removeFile {
  border: 0;
  border-left: var(--line) solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 28px;
}

#removeFile:hover {
  background: var(--ink);
  color: var(--paper);
}

.primary-button,
.secondary-button,
.quiet-button,
.room-code,
.share-link,
.download-button {
  display: flex;
  width: 100%;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  padding: 0 20px;
  border: var(--line) solid var(--ink);
  background: var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  color: var(--paper);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.secondary-button,
.quiet-button,
.share-link {
  background: var(--paper);
  color: var(--ink);
}

.primary-button:hover,
.secondary-button:hover,
.quiet-button:hover,
.room-code:hover,
.share-link:hover,
.download-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 9px 9px 0 var(--ink);
}

.primary-button:active,
.secondary-button:active,
.quiet-button:active,
.room-code:active,
.share-link:active,
.download-button:active {
  transform: translate(6px, 6px);
  box-shadow: 0 0 0 var(--ink);
}

.primary-button:disabled {
  cursor: not-allowed;
  text-decoration: line-through 3px;
}

.code-entry {
  padding: clamp(24px, 4vw, 56px) 0;
  text-align: center;
}

.code-entry label {
  display: block;
  font-size: clamp(26px, 4vw, 52px);
  font-weight: 900;
  letter-spacing: -.05em;
  text-transform: uppercase;
}

.code-entry p {
  margin: 12px 0 28px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.code-entry input {
  width: min(100%, 520px);
  min-height: 88px;
  border: var(--line) solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: clamp(28px, 6vw, 54px);
  font-weight: 600;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}

.connection-view {
  min-height: 480px;
  text-align: center;
}

.connection-orb {
  display: grid;
  width: 86px;
  height: 86px;
  margin: 0 auto 28px;
  place-items: center;
  border: var(--line) solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}

.connection-orb::after {
  content: "···";
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 600;
}

.connection-orb.connected {
  background: var(--ink);
  color: var(--paper);
}

.status-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
}

.connection-view h2 {
  max-width: 720px;
  margin: 10px auto;
  font-size: clamp(30px, 5vw, 66px);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .9;
}

.status-copy {
  max-width: 560px;
  margin: 18px auto;
  font-size: 17px;
  font-weight: 600;
}

.code-cluster {
  display: grid;
  max-width: 600px;
  grid-template-columns: 1.25fr .75fr;
  gap: 14px;
  margin: 30px auto 0;
}

.room-code,
.share-link {
  margin-top: 0;
}

.room-code span {
  font-size: 22px;
  letter-spacing: .08em;
}

.incoming-card,
.progress-wrap {
  max-width: 680px;
  margin: 32px auto 0;
  padding: 22px;
  border: var(--line) solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  text-align: left;
}

.incoming-top {
  display: flex;
  flex-direction: column;
}

.incoming-top small,
.incoming-top em {
  font-family: var(--font-mono);
  font-size: 10px;
  font-style: normal;
}

.incoming-top strong {
  overflow-wrap: anywhere;
  margin: 8px 0;
  font-size: 26px;
}

.incoming-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.incoming-actions button {
  margin-top: 18px;
}

.progress-head,
.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.progress-head strong {
  font-size: 24px;
}

.progress-track {
  height: 34px;
  margin: 18px 0;
  border: var(--line) solid var(--ink);
}

.progress-track i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--ink);
}

.console-foot {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 14px;
  border-top: var(--line) solid var(--ink);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
}

.toast {
  position: fixed;
  z-index: 60;
  right: 28px;
  bottom: 28px;
  display: none;
  max-width: 360px;
  padding: 16px 20px;
  border: var(--line) solid var(--ink);
  box-shadow: var(--shadow);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

.toast.show {
  display: block;
}

.transfer-aside {
  display: grid;
  gap: 28px;
  padding-top: 28px;
}

.index-card {
  border: var(--line) solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}

.index-card h2 {
  padding: 14px;
  border-bottom: var(--line) solid var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
}

.spec-list li {
  display: grid;
  min-height: 66px;
  grid-template-columns: 48px 1fr;
  align-items: center;
  border-bottom: var(--line) solid var(--ink);
  list-style: none;
}

.spec-list li:last-child {
  border-bottom: 0;
}

.spec-list span {
  display: grid;
  height: 100%;
  place-items: center;
  border-right: var(--line) solid var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
}

.spec-list strong {
  padding: 12px;
  font-size: 14px;
  text-transform: uppercase;
}

.device-readout {
  padding: 20px;
  border: var(--line) solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.device-readout h2 {
  margin-bottom: 18px;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -.04em;
}

.device-readout dl {
  margin: 0;
}

.device-readout div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 2px solid var(--paper);
  font-family: var(--font-mono);
  font-size: 10px;
}

.device-readout dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.recent-section {
  margin-top: 70px;
  border-top: var(--line) solid var(--ink);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0 18px;
}

.section-heading h2 {
  margin-top: 6px;
  font-size: clamp(28px, 4vw, 54px);
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: .9;
}

.section-heading a {
  border-bottom: 3px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.recent-list,
.activity-table {
  border: var(--line) solid var(--ink);
}

.recent-item,
.activity-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) .6fr .6fr;
  align-items: center;
  min-height: 72px;
  border-bottom: var(--line) solid var(--ink);
}

.recent-item:last-child,
.activity-row:last-child {
  border-bottom: 0;
}

.recent-item > *,
.activity-row > * {
  height: 100%;
  padding: 16px;
  border-right: var(--line) solid var(--ink);
}

.recent-item > *:last-child,
.activity-row > *:last-child {
  border-right: 0;
}

.recent-item div,
.activity-file {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.recent-item strong,
.activity-file strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-item small,
.activity-file small,
.recent-item span,
.recent-item time,
.activity-row > span,
.activity-row > time {
  font-family: var(--font-mono);
  font-size: 10px;
}

.empty-state {
  display: grid;
  min-height: 180px;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 28px;
  border: var(--line) solid var(--ink);
  text-align: center;
}

.empty-state::before {
  content: "[ Ø ]";
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 600;
}

.empty-state strong {
  font-size: 22px;
  text-transform: uppercase;
}

.empty-state p {
  font-family: var(--font-mono);
  font-size: 10px;
}

.empty-state a {
  margin-top: 8px;
  border-bottom: 2px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

/* Shared inner-page titles */
.inner-stage {
  padding: clamp(28px, 4vw, 64px) clamp(20px, 4vw, 64px) 90px;
}

.inner-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  margin-bottom: clamp(40px, 7vw, 92px);
}

.inner-title h1 {
  max-width: 1100px;
  margin-top: 12px;
  font-size: clamp(62px, 10vw, 150px);
  font-weight: 900;
  letter-spacing: -.08em;
  line-height: .72;
  text-transform: uppercase;
}

.inner-title .lede {
  max-width: 510px;
  margin-top: 24px;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 650;
  line-height: 1.18;
}

/* Activity */
.activity-title {
  grid-template-columns: minmax(0, 1fr) 190px;
}

.activity-total {
  padding: 18px;
  border: var(--line) solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}

.activity-total span {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
}

.activity-total strong {
  display: block;
  margin: 10px 0;
  font-size: 62px;
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: .8;
}

.ledger-note {
  display: grid;
  grid-template-columns: 120px 1fr;
  margin-bottom: 34px;
  border: var(--line) solid var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.ledger-note span {
  display: grid;
  min-height: 104px;
  place-items: center;
  border-right: var(--line) solid var(--paper);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

.ledger-note div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 24px;
}

.ledger-note strong {
  font-size: 22px;
  text-transform: uppercase;
}

.ledger-note p {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
}

.ledger-head {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) .55fr .55fr .7fr;
  border: var(--line) solid var(--ink);
  border-bottom: 0;
  background: var(--ink);
  color: var(--paper);
}

.ledger-head span {
  padding: 10px 16px;
  border-right: var(--line) solid var(--paper);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
}

.ledger-head span:last-child {
  border-right: 0;
}

.activity-row {
  grid-template-columns: minmax(0, 1.5fr) .55fr .55fr .7fr;
}

.activity-file {
  flex-direction: row;
  align-items: center;
  gap: 14px;
}

.activity-file::before {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid var(--ink);
  content: "↕";
  font-family: var(--font-mono);
  font-weight: 600;
}

.direction-badge {
  font-weight: 600;
  text-transform: uppercase;
}

.activity-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 26px;
}

/* Security */
.security-title h1 {
  max-width: 1050px;
  overflow-wrap: anywhere;
  font-size: clamp(58px, 8vw, 118px);
}

.assurance-mark {
  display: grid;
  width: 178px;
  height: 178px;
  place-items: center;
  border: var(--line) solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  transform: rotate(3deg);
}

.architecture {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  border: var(--line) solid var(--ink);
  box-shadow: var(--shadow);
}

.arch-device,
.arch-channel {
  min-width: 0;
  min-height: 280px;
  padding: clamp(20px, 3vw, 38px);
}

.arch-device {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.arch-device:first-child {
  border-right: var(--line) solid var(--ink);
}

.arch-device:last-child {
  border-left: var(--line) solid var(--ink);
}

.arch-device span,
.arch-channel span {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
}

.arch-device strong {
  overflow-wrap: anywhere;
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: .9;
  text-transform: uppercase;
}

.device-glyph {
  display: block;
  width: 62px;
  height: 82px;
  border: var(--line) solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}

.arch-channel {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 24px;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}

.arch-channel strong {
  font-size: clamp(25px, 3vw, 44px);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: .9;
}

.channel-line {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
}

.channel-line::before,
.channel-line::after {
  height: 3px;
  flex: 1;
  background: var(--paper);
  content: "";
}

.channel-line i {
  display: block;
  width: 18px;
  height: 18px;
  border: 3px solid var(--paper);
  transform: rotate(45deg);
}

.security-principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--line);
  margin-top: 52px;
  border: var(--line) solid var(--ink);
  background: var(--ink);
}

.security-principles article {
  display: grid;
  min-height: 210px;
  grid-template-columns: 84px 1fr;
  background: var(--paper);
}

.security-principles article > span {
  display: grid;
  place-items: start center;
  padding-top: 28px;
  border-right: var(--line) solid var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}

.security-principles article div {
  padding: 28px;
}

.security-principles h2 {
  margin-bottom: 14px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -.04em;
  text-transform: uppercase;
}

.security-principles p {
  max-width: 460px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
}

.boundary {
  display: grid;
  grid-template-columns: .7fr 1fr 1fr;
  margin-top: 52px;
  border: var(--line) solid var(--ink);
}

.boundary > * {
  padding: 28px;
  border-right: var(--line) solid var(--ink);
}

.boundary > *:last-child {
  border-right: 0;
}

.boundary h2 {
  margin-top: 8px;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -.04em;
  text-transform: uppercase;
}

.boundary strong {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.boundary li {
  padding: 10px 0;
  border-bottom: 2px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  list-style: none;
}

/* Status */
.status-title {
  margin-bottom: 42px;
}

.overall-status {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  min-height: 220px;
  border: var(--line) solid var(--ink);
  box-shadow: var(--shadow);
}

.overall-code {
  display: grid;
  place-items: center;
  border-right: var(--line) solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 52px;
  font-weight: 600;
}

.overall-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
}

.overall-copy small {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
}

.overall-copy strong {
  margin: 10px 0;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: .9;
  text-transform: uppercase;
}

.overall-copy p {
  font-family: var(--font-mono);
  font-size: 10px;
}

.overall-status time {
  display: flex;
  align-items: flex-end;
  min-width: 150px;
  padding: 22px;
  border-left: var(--line) solid var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
}

.diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin-top: 52px;
  border: var(--line) solid var(--ink);
}

.diagnostic-grid article {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border-right: var(--line) solid var(--ink);
}

.diagnostic-grid article:last-child {
  border-right: 0;
}

.diagnostic-grid article::before {
  content: "[ ? ]";
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
}

.diagnostic-grid article.ok::before {
  content: "[ + ]";
}

.diagnostic-grid article.fail::before {
  content: "[ ! ]";
}

.diagnostic-grid article.ok {
  background: var(--ink);
  color: var(--paper);
}

.diagnostic-grid article div {
  display: flex;
  flex-direction: column;
}

.diagnostic-grid strong {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.03em;
  text-transform: uppercase;
}

.diagnostic-grid em,
.diagnostic-grid p {
  font-family: var(--font-mono);
  font-size: 9px;
  font-style: normal;
}

.diagnostic-grid em {
  margin: 14px 0;
  font-weight: 600;
  text-transform: uppercase;
}

.status-note {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  margin-top: 30px;
  padding: 18px 0;
  border-top: var(--line) solid var(--ink);
  border-bottom: var(--line) solid var(--ink);
}

.status-note strong {
  font-size: 18px;
  text-transform: uppercase;
}

.status-note p {
  max-width: 620px;
  font-family: var(--font-mono);
  font-size: 10px;
}

/* Guide */
.guide-title {
  grid-template-columns: minmax(0, 1fr) 210px;
}

.guide-edition {
  padding: 20px;
  border: var(--line) solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
}

.guide-edition strong {
  display: block;
  margin: 12px 0;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
}

.guide-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(34px, 6vw, 90px);
  align-items: start;
}

.guide-index {
  position: sticky;
  top: 24px;
  border: var(--line) solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}

.guide-index p {
  padding: 12px 16px;
  border-bottom: var(--line) solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
}

.guide-index a {
  display: grid;
  min-height: 54px;
  grid-template-columns: 40px 1fr;
  align-items: center;
  border-bottom: var(--line) solid var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.guide-index a:last-child {
  border-bottom: 0;
}

.guide-index a span {
  display: grid;
  height: 100%;
  place-items: center;
  border-right: var(--line) solid var(--ink);
  font-family: var(--font-mono);
  font-size: 9px;
}

.guide-index a strong {
  padding: 0 12px;
  text-transform: uppercase;
}

.guide-index a:hover {
  background: var(--ink);
  color: var(--paper);
}

.guide-content > section {
  scroll-margin-top: 20px;
  padding: 0 0 80px;
}

.chapter-head {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: end;
  padding-bottom: 22px;
  border-bottom: var(--line) solid var(--ink);
}

.chapter-head span {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
}

.chapter-head h2 {
  font-size: clamp(42px, 7vw, 92px);
  font-weight: 900;
  letter-spacing: -.065em;
  line-height: .78;
  text-transform: uppercase;
}

.guide-steps {
  list-style: none;
}

.guide-steps li {
  display: grid;
  grid-template-columns: 92px 1fr;
  min-height: 150px;
  border-bottom: var(--line) solid var(--ink);
}

.guide-steps li > span {
  display: grid;
  place-items: center;
  border-right: var(--line) solid var(--ink);
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 600;
}

.guide-steps li div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 32px;
}

.guide-steps strong {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -.03em;
  text-transform: uppercase;
}

.guide-steps p {
  max-width: 680px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
}

.guide-callout {
  margin-top: 28px;
  padding: clamp(26px, 5vw, 64px);
  border: var(--line) solid var(--ink);
  box-shadow: var(--shadow);
  background: var(--ink);
  color: var(--paper);
}

.guide-callout strong {
  display: block;
  max-width: 800px;
  font-size: clamp(30px, 5vw, 62px);
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: .92;
  text-transform: uppercase;
}

.guide-callout p {
  max-width: 760px;
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
}

.faq-list {
  margin-top: 28px;
  border-top: var(--line) solid var(--ink);
}

.faq-list details {
  border-bottom: var(--line) solid var(--ink);
}

.faq-list summary {
  position: relative;
  padding: 24px 60px 24px 0;
  cursor: pointer;
  font-size: 22px;
  font-weight: 850;
  list-style: none;
  text-transform: uppercase;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 20px;
  right: 0;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid var(--ink);
  content: "+";
  font-family: var(--font-mono);
}

.faq-list details[open] summary::after {
  content: "−";
  background: var(--ink);
  color: var(--paper);
}

.faq-list details p {
  max-width: 720px;
  padding: 0 60px 26px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
}

.home-explainer,
.home-faq {
  margin-top: clamp(72px, 9vw, 130px);
  border-top: var(--line) solid var(--ink);
}

.home-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: var(--line) solid var(--ink);
}

.home-proof article {
  min-height: 270px;
  padding: 24px;
  border-right: var(--line) solid var(--ink);
}

.home-proof article:last-child {
  border-right: 0;
}

.home-proof span {
  display: block;
  margin-bottom: 64px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

.home-proof h3 {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: .92;
  text-transform: uppercase;
}

.home-proof p {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.65;
}

.home-faq > h2 {
  max-width: 900px;
  margin-top: 12px;
  font-size: clamp(38px, 6.5vw, 86px);
  font-weight: 900;
  letter-spacing: -.065em;
  line-height: .86;
  text-transform: uppercase;
}

.home-faq .faq-list {
  margin-top: 36px;
}

.faq-link {
  display: inline-flex;
  width: auto;
  margin-top: 28px;
}

.faq-expanded details p {
  max-width: 820px;
}

@media (max-width: 1180px) {
  :root {
    --rail: 210px;
  }

  .transfer-title {
    grid-template-columns: 1fr;
  }

  .transfer-intro {
    max-width: 520px;
  }

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

  .transfer-aside {
    grid-template-columns: 1fr 1fr;
    padding-top: 0;
  }

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

  .diagnostic-grid article {
    border-bottom: var(--line) solid var(--ink);
  }

  .diagnostic-grid article:nth-child(3n) {
    border-right: 0;
  }

  .diagnostic-grid article:nth-last-child(-n+3) {
    border-bottom: 0;
  }
}

@media (max-width: 820px) {
  .shell {
    padding: 70px 0 0;
  }

  .rail {
    display: none;
  }

  .mobile-bar {
    position: fixed;
    z-index: 50;
    inset: 0 0 auto;
    display: flex;
    height: 70px;
    align-items: center;
    justify-content: space-between;
    border-bottom: var(--line) solid var(--ink);
    background: var(--paper);
  }

  .mobile-wordmark,
  .menu-toggle {
    display: grid;
    height: 100%;
    place-items: center;
    background: var(--paper);
    color: var(--ink);
    font-weight: 900;
    text-transform: uppercase;
  }

  .mobile-wordmark {
    padding: 0 18px;
    border-right: var(--line) solid var(--ink);
    font-size: 24px;
    letter-spacing: -.06em;
  }

  .menu-toggle {
    min-width: 94px;
    padding: 0 16px;
    border: 0;
    border-left: var(--line) solid var(--ink);
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 11px;
  }

  .menu-toggle:hover,
  .menu-toggle[aria-expanded="true"] {
    background: var(--ink);
    color: var(--paper);
  }

  .mobile-menu {
    position: fixed;
    z-index: 45;
    inset: 70px 0 0;
    display: none;
    flex-direction: column;
    overflow-y: auto;
    background: var(--paper);
  }

  .mobile-menu.open {
    display: flex;
  }

  .mobile-menu nav a {
    display: grid;
    min-height: 86px;
    grid-template-columns: 66px 1fr;
    align-items: center;
    border-bottom: var(--line) solid var(--ink);
    font-size: clamp(24px, 7vw, 42px);
    font-weight: 900;
    letter-spacing: -.04em;
    text-transform: uppercase;
  }

  .mobile-menu nav span {
    display: grid;
    height: 100%;
    place-items: center;
    border-right: var(--line) solid var(--ink);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0;
  }

  .mobile-menu nav strong {
    padding: 0 20px;
  }

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

  .mobile-menu-meta {
    margin-top: auto;
    border-top: var(--line) solid var(--ink);
  }

  .page-stamp {
    min-height: 44px;
  }

  .page-stamp span:last-child {
    display: none;
  }

  .transfer-title,
  .inner-title,
  .activity-title,
  .guide-title {
    grid-template-columns: 1fr;
  }

  .activity-total,
  .guide-edition {
    width: min(100%, 240px);
  }

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

  .arch-device:first-child,
  .arch-device:last-child {
    border: 0;
  }

  .arch-device:first-child {
    border-bottom: var(--line) solid var(--ink);
  }

  .arch-device:last-child {
    border-top: var(--line) solid var(--ink);
  }

  .security-principles {
    grid-template-columns: 1fr;
  }

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

  .boundary > * {
    border-right: 0;
    border-bottom: var(--line) solid var(--ink);
  }

  .boundary > *:last-child {
    border-bottom: 0;
  }

  .overall-status {
    grid-template-columns: 100px 1fr;
  }

  .overall-status time {
    grid-column: 1 / -1;
    min-height: 54px;
    align-items: center;
    border-top: var(--line) solid var(--ink);
    border-left: 0;
  }

  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-index {
    position: static;
  }

  .home-proof {
    grid-template-columns: 1fr;
  }

  .home-proof article {
    min-height: 0;
    border-right: 0;
    border-bottom: var(--line) solid var(--ink);
  }

  .home-proof article:last-child {
    border-bottom: 0;
  }

  .home-proof span {
    margin-bottom: 36px;
  }
}

@media (max-width: 600px) {
  .transfer-stage,
  .inner-stage {
    padding: 24px 16px 64px;
  }

  .transfer-title {
    margin-bottom: 28px;
  }

  .transfer-title h1,
  .inner-title h1 {
    font-size: clamp(54px, 22vw, 90px);
  }

  .transfer-title h1 span {
    margin-left: 0;
  }

  .transfer-aside {
    grid-template-columns: 1fr;
  }

  .panel,
  .connection-view {
    padding: 20px;
  }

  .drop-zone {
    min-height: 260px;
  }

  .file-chip {
    grid-template-columns: 44px 1fr 44px;
  }

  .file-details {
    padding: 14px;
  }

  .code-cluster,
  .incoming-actions {
    grid-template-columns: 1fr;
  }

  .console-foot {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px;
  }

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

  .recent-item {
    grid-template-columns: 1fr;
  }

  .recent-item > * {
    border-right: 0;
    border-bottom: var(--line) solid var(--ink);
  }

  .recent-item > *:last-child {
    border-bottom: 0;
  }

  .activity-title,
  .security-title {
    margin-bottom: 46px;
  }

  .ledger-note {
    grid-template-columns: 70px 1fr;
  }

  .ledger-head {
    display: none;
  }

  .activity-row {
    grid-template-columns: 1fr 1fr;
  }

  .activity-row > * {
    border-bottom: var(--line) solid var(--ink);
  }

  .activity-row > *:nth-child(2) {
    border-right: 0;
  }

  .activity-row > *:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  .assurance-mark {
    width: 140px;
    height: 140px;
  }

  .arch-device,
  .arch-channel {
    min-height: 220px;
  }

  .security-principles article {
    grid-template-columns: 58px 1fr;
  }

  .security-principles article div {
    padding: 22px;
  }

  .overall-status {
    grid-template-columns: 72px 1fr;
  }

  .overall-code {
    font-size: 32px;
  }

  .overall-copy {
    padding: 22px;
  }

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

  .diagnostic-grid article,
  .diagnostic-grid article:nth-child(3n) {
    min-height: 240px;
    border-right: var(--line) solid var(--ink);
    border-bottom: var(--line) solid var(--ink);
  }

  .diagnostic-grid article:nth-child(2n) {
    border-right: 0;
  }

  .diagnostic-grid article:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  .status-note {
    flex-direction: column;
  }

  .chapter-head,
  .guide-steps li {
    grid-template-columns: 58px 1fr;
  }

  .chapter-head h2 {
    font-size: clamp(40px, 14vw, 68px);
  }

  .guide-steps li div {
    padding: 20px;
  }

  .guide-steps strong {
    font-size: 21px;
  }

  .toast {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0s !important;
  }
}
