/* Joakim Moléni — instruction stream */

:root {
  --bg-primary: #07090c;
  --bg-secondary: #0b0e12;
  --bg-elevated: #11151a;
  --bg-strong: #030405;
  --border: #272d34;
  --border-dim: rgba(128, 140, 151, 0.18);
  --text-primary: #e9e5dd;
  --text-secondary: #a8a8a4;
  --text-dim: #686d72;
  --accent: #d0ad70;
  --accent-dim: rgba(208, 173, 112, 0.09);
  --accent-glow: rgba(208, 173, 112, 0.2);
  --green: #65bda7;
  --green-dim: rgba(101, 189, 167, 0.1);
  --on-accent: #07090c;
  --grid-dot: rgba(233, 229, 221, 0.035);
  --glow-soft: rgba(208, 173, 112, 0.045);
  --wm-color: rgba(208, 173, 112, 0.045);
  --ff-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ff-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --panel-pad: clamp(1.5rem, 4vw, 4rem);
  --bar-height: 54px;
  --bar-total: calc(var(--bar-height) + env(safe-area-inset-bottom, 0px));
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 160ms ease;
  --transition-med: 320ms var(--ease-out);
}

[data-theme='light'] {
  --bg-primary: #f6f3ed;
  --bg-secondary: #fcfaf6;
  --bg-elevated: #eee9df;
  --bg-strong: #e8e1d5;
  --border: #d5cec1;
  --border-dim: rgba(69, 62, 50, 0.16);
  --text-primary: #1b1d1f;
  --text-secondary: #51555a;
  --text-dim: #85888b;
  --accent: #805f1d;
  --accent-dim: rgba(128, 95, 29, 0.08);
  --accent-glow: rgba(128, 95, 29, 0.14);
  --green: #276f5c;
  --green-dim: rgba(39, 111, 92, 0.08);
  --on-accent: #fff;
  --grid-dot: rgba(27, 29, 31, 0.045);
  --glow-soft: rgba(128, 95, 29, 0.04);
  --wm-color: rgba(128, 95, 29, 0.055);
}

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

html {
  color-scheme: dark light;
  font-family: var(--ff-mono);
  font-size: 16px;
}

body {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

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

::selection { background: var(--accent); color: var(--on-accent); }

.hidden { display: none !important; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 1000;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--accent);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.8rem;
  transform: translateY(-200%);
  transition: transform var(--transition-fast);
}

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

/* Horizontal instruction stream */

.stream {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.stream::-webkit-scrollbar { width: 0; height: 0; }

.panel {
  position: relative;
  display: flex;
  flex: 0 0 100vw;
  align-items: safe center;
  justify-content: center;
  width: 100vw;
  min-width: 100vw;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  padding-bottom: var(--bar-total);
  overflow-x: hidden;
  overflow-y: auto;
  background-color: var(--bg-primary);
  isolation: isolate;
  scrollbar-color: var(--border) transparent;
}

.panel::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, transparent 0, transparent calc(50% - 0.5px), var(--border-dim) 50%, transparent calc(50% + 0.5px)),
    radial-gradient(circle, var(--grid-dot) 1px, transparent 1.25px);
  background-size: 100% 100%, 28px 28px;
}

.panel::after {
  content: attr(data-addr);
  position: absolute;
  right: 0.08em;
  bottom: calc(var(--bar-total) - 0.14em);
  z-index: -1;
  color: var(--wm-color);
  font-family: var(--ff-mono);
  font-size: clamp(5rem, 16vw, 13rem);
  font-weight: 600;
  letter-spacing: -0.09em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.panel > * {
  min-width: 0;
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
}

.panel.dealt > * { opacity: 1; transform: none; }

.panel__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 92rem;
  padding: var(--panel-pad);
}

.panel__inner--wide { max-width: 100rem; }

.section-eyebrow,
.boot-sequence__label,
.registers__label,
.work-card__type,
.project-card__depth {
  color: var(--accent);
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.section-eyebrow { margin-bottom: 1rem; }

/* Entry */

.panel--boot { background-color: var(--bg-strong); }

.panel--boot::before {
  background-image:
    radial-gradient(ellipse 55% 75% at 22% 50%, var(--glow-soft), transparent 72%),
    linear-gradient(90deg, transparent 0, transparent 64%, var(--border-dim) 64%, transparent calc(64% + 1px)),
    radial-gradient(circle, var(--grid-dot) 1px, transparent 1.25px);
  background-size: 100% 100%, 100% 100%, 28px 28px;
}

[data-theme='light'] .panel--boot,
[data-theme='light'] .panel--signal { background-color: var(--bg-secondary); }

.boot-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(18rem, 0.75fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 8rem);
}

.boot-hero { max-width: 66rem; }

.boot-hero__role {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: clamp(1.4rem, 3vh, 2.4rem);
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.boot-hero__role::before {
  content: '';
  width: 2.4rem;
  height: 1px;
  background: var(--accent);
}

.boot-hero__role span { color: var(--text-dim); font-weight: 400; }

.boot-hero__name {
  display: grid;
  gap: 0.08em;
  max-width: 12ch;
  color: var(--text-primary);
  font-family: var(--ff-sans);
  font-size: clamp(3rem, 6.9vw, 7.4rem);
  font-weight: 500;
  letter-spacing: -0.058em;
  line-height: 0.92;
}

.boot-hero__name span { color: var(--text-secondary); font-weight: 500; }
.boot-hero__name strong { color: var(--text-primary); font-weight: 700; }

.boot-hero__subtitle {
  max-width: 64ch;
  margin-top: clamp(1.3rem, 3vh, 2.1rem);
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.65;
}

.boot-hero__cta {
  margin-top: clamp(1.2rem, 3vh, 2rem);
  color: var(--accent);
  font-size: 0.77rem;
  line-height: 1.5;
}

.cta-arrow { display: inline-block; margin-right: 0.4rem; animation: ctaNudge 2.4s ease-in-out infinite; }

@keyframes ctaNudge { 50% { transform: translateX(5px); } }

.boot-sequence {
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-primary) 72%, transparent);
}

.boot-sequence__label { padding: 0.85rem 0; border-bottom: 1px solid var(--border); }

.boot-trace > div {
  display: grid;
  grid-template-columns: 5.3rem 1fr;
  gap: 1rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--border-dim);
  font-size: 0.76rem;
}

.boot-trace > div:last-child { border-bottom: 0; }
.boot-trace dt { color: var(--text-dim); text-transform: uppercase; }
.boot-trace dd { color: var(--text-primary); }
.boot-trace__status dd { color: var(--green); }
.boot-trace__status dd::before { content: '●'; margin-right: 0.55rem; font-size: 0.6rem; }

/* Context */

.panel__identity-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(22rem, 0.75fr);
  align-items: center;
  width: 100%;
  min-height: 100%;
}

.identity-text { padding: var(--panel-pad); }

.identity-text__title,
.work__title,
.projects__title,
.signal__title {
  max-width: 17ch;
  color: var(--text-primary);
  font-family: var(--ff-sans);
  font-size: clamp(2.2rem, 4.5vw, 4.8rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.identity-text__title { margin-bottom: clamp(1.4rem, 3vh, 2.2rem); }

.identity-text > p:not(.section-eyebrow) {
  max-width: 68ch;
  margin-bottom: 0.9rem;
  color: var(--text-secondary);
  font-family: var(--ff-sans);
  font-size: clamp(0.98rem, 1.16vw, 1.08rem);
  line-height: 1.7;
}

.identity-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(1.4rem, 3vh, 2.2rem);
  border-top: 1px solid var(--border);
}

.identity-metric { padding: 1rem 0.8rem 0 0; border-right: 1px solid var(--border-dim); }
.identity-metric:last-child { border-right: 0; padding-right: 0; }

.identity-metric__value {
  display: block;
  color: var(--accent);
  font-size: clamp(1.15rem, 1.7vw, 1.55rem);
  font-weight: 600;
  line-height: 1.1;
}

.identity-metric__label {
  display: block;
  max-width: 17ch;
  margin-top: 0.35rem;
  color: var(--text-dim);
  font-size: 0.64rem;
  letter-spacing: 0.05em;
  line-height: 1.35;
  text-transform: uppercase;
}

.identity-registers {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  padding: 2rem clamp(1.5rem, 3vw, 3rem);
  border-left: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-secondary) 76%, transparent);
}

.registers__label { margin-bottom: 0.9rem; }

.reg {
  display: grid;
  grid-template-columns: 3ch minmax(6.5rem, 0.8fr) 1fr;
  gap: 0.9rem;
  min-width: 0;
  padding: 0.32rem 0;
  border-bottom: 1px solid var(--border-dim);
  font-size: clamp(0.68rem, 0.78vw, 0.78rem);
  line-height: 1.4;
}

.reg__name { color: var(--accent); font-weight: 600; }
.reg__val { overflow: hidden; color: var(--text-primary); text-overflow: ellipsis; white-space: nowrap; }
.reg__comment { overflow: hidden; color: var(--text-dim); text-overflow: ellipsis; white-space: nowrap; }

/* Range */

.panel--dual { align-items: stretch; background: var(--bg-secondary); }

.dual {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  width: 100%;
  min-height: 100%;
}

.dual__side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: var(--panel-pad);
}

.dual__left { background: var(--bg-strong); }
.dual__right { background: var(--bg-secondary); }
[data-theme='light'] .dual__left { background: var(--bg-elevated); }

.dual__divider { background: var(--accent); opacity: 0.45; }

.dual__heading {
  max-width: 14ch;
  margin-bottom: 1.2rem;
  color: var(--text-primary);
  font-family: var(--ff-sans);
  font-size: clamp(2rem, 3.8vw, 4.1rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.dual__side > p:not(.section-eyebrow) {
  max-width: 56ch;
  color: var(--text-secondary);
  font-family: var(--ff-sans);
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  line-height: 1.7;
}

.constraint-list {
  max-width: 42rem;
  margin-top: clamp(1.5rem, 4vh, 2.8rem);
  border-top: 1px solid var(--border);
}

.constraint-list > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding: 0.68rem 0;
  border-bottom: 1px solid var(--border-dim);
  font-size: 0.76rem;
}

.constraint-list dt { color: var(--text-dim); text-transform: uppercase; }
.constraint-list dd { color: var(--text-primary); }

.dual__merge {
  position: absolute;
  right: 0;
  bottom: calc(var(--bar-total) + 1.5rem);
  left: 0;
  z-index: 5;
  padding: 0 2rem;
  color: var(--text-secondary);
  font-size: clamp(0.75rem, 1vw, 0.88rem);
  text-align: center;
}

.dual__merge span { color: var(--accent); }

/* Systems */

.panel--work { background: var(--bg-secondary); }
.work__title { max-width: 15ch; margin-bottom: clamp(1.5rem, 3vh, 2.4rem); }

.work-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.work-card {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: clamp(0.8rem, 1.5vw, 1.4rem);
  min-width: 0;
  padding: clamp(1rem, 2.2vw, 1.8rem);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-elevated) 58%, transparent);
  transition: background var(--transition-fast);
}

.work-card:hover { background: var(--bg-elevated); }
.work-card__index { color: var(--accent); font-size: 0.72rem; padding-top: 0.12rem; }
.work-card__type { margin-bottom: 0.5rem; color: var(--text-dim); }

.work-card h3 {
  margin-bottom: 0.45rem;
  color: var(--text-primary);
  font-family: var(--ff-sans);
  font-size: clamp(1.08rem, 1.45vw, 1.3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.work-card p:not(.work-card__type) {
  max-width: 58ch;
  color: var(--text-secondary);
  font-family: var(--ff-sans);
  font-size: clamp(0.84rem, 0.95vw, 0.94rem);
  line-height: 1.55;
}

/* Proof */

.projects__title { margin-bottom: 0.8rem; }

.projects__intro {
  max-width: 72ch;
  margin-bottom: clamp(1.2rem, 2.5vh, 2rem);
  color: var(--text-secondary);
  font-family: var(--ff-sans);
  font-size: clamp(0.88rem, 1vw, 0.98rem);
}

.project-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.project-card {
  min-width: 0;
  padding: clamp(1rem, 1.8vw, 1.55rem);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-elevated) 45%, transparent);
  transition: background var(--transition-fast);
}

.project-card:hover { background: var(--bg-elevated); }
.project-card--wide { grid-column: 1 / -1; }
.project-card__depth { margin-bottom: 0.5rem; color: var(--accent); }

.project-card h3 {
  margin-bottom: 0.45rem;
  color: var(--text-primary);
  font-family: var(--ff-sans);
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.project-card > p:not(.project-card__depth) {
  color: var(--text-secondary);
  font-family: var(--ff-sans);
  font-size: clamp(0.82rem, 0.92vw, 0.9rem);
  line-height: 1.5;
}

.project-card__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0.85rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border-dim);
}

.project-card__facts div { min-width: 0; }
.project-card__facts dt { color: var(--text-dim); font-size: 0.58rem; letter-spacing: 0.09em; text-transform: uppercase; }
.project-card__facts dd { overflow-wrap: anywhere; color: var(--text-primary); font-size: 0.69rem; line-height: 1.35; }

/* Contact */

.panel--signal { background-color: var(--bg-strong); }

.panel--signal::before {
  background-image:
    radial-gradient(ellipse 55% 70% at 28% 50%, var(--glow-soft), transparent 75%),
    radial-gradient(circle, var(--grid-dot) 1px, transparent 1.25px);
  background-size: 100% 100%, 28px 28px;
}

.signal-content { max-width: 76rem; }
.signal__title { max-width: 13ch; margin-bottom: 1.2rem; }

.signal__text {
  max-width: 64ch;
  color: var(--text-secondary);
  font-family: var(--ff-sans);
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  line-height: 1.65;
}

.signal__text--quiet { margin-top: 0.65rem; color: var(--text-dim); }

.signal__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 58rem;
  margin-top: clamp(1.4rem, 3vh, 2.2rem);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.signal__link {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.7rem;
  padding: 0.8rem 1rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.signal__link:hover { background: var(--accent-dim); }
.signal__link--accent { background: var(--accent); color: var(--on-accent); }
.signal__link--accent:hover { background: color-mix(in srgb, var(--accent) 87%, var(--text-primary)); }
.signal__cmd { color: var(--accent); font-size: 0.68rem; padding-top: 0.13rem; }
.signal__link--accent .signal__cmd { color: currentColor; opacity: 0.58; }
.signal__link strong { display: block; color: var(--text-primary); font-family: var(--ff-sans); font-size: 0.88rem; font-weight: 600; }
.signal__link--accent strong { color: inherit; }
.signal__link small { display: block; margin-top: 0.1rem; color: var(--text-dim); font-size: 0.64rem; }
.signal__link--accent small { color: inherit; opacity: 0.68; }

.signal__status {
  margin-top: 1rem;
  color: var(--text-dim);
  font-size: 0.7rem;
}

.signal__status span {
  display: inline-block;
  width: 0.48rem;
  height: 0.48rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--green);
}

.signal__copyright { margin-top: 0.55rem; color: var(--text-dim); font-size: 0.64rem; }

/* Address bar */

.address-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100vw;
  height: var(--bar-total);
  padding: 0 clamp(1rem, 3vw, 2.5rem) env(safe-area-inset-bottom, 0px);
  overflow: hidden;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-primary) 94%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.address-bar__left {
  display: flex;
  min-width: 0;
  gap: clamp(0.1rem, 1vw, 0.8rem);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.address-bar__left::-webkit-scrollbar { display: none; }

.addr {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  gap: 0.38rem;
  align-items: center;
  min-height: 38px;
  padding: 0.3rem clamp(0.42rem, 0.9vw, 0.75rem);
  color: var(--text-dim);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.addr::after {
  content: '';
  position: absolute;
  right: 0.45rem;
  bottom: 0;
  left: 0.45rem;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition-med);
}

.addr:hover { color: var(--text-primary); background: var(--accent-dim); }
.addr.active, .addr[aria-current='step'] { color: var(--accent); }
.addr.active::after, .addr[aria-current='step']::after { transform: scaleX(1); }
.addr__hex { opacity: 0.55; }
.addr.active .addr__hex { opacity: 1; }

.address-bar__right {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.75rem;
  margin-left: 0.8rem;
  color: var(--accent);
  font-size: 0.68rem;
}

.pc-cursor { margin-left: 1px; animation: blinkCursor 1.2s step-end infinite; }
@keyframes blinkCursor { 50% { opacity: 0; } }

.theme-btn {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--text-secondary);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.theme-btn:hover { color: var(--accent); background: var(--accent-dim); }
.theme-icon { width: 15px; height: 15px; }

.progress-bar {
  position: fixed;
  right: 0;
  bottom: var(--bar-total);
  left: 0;
  z-index: 101;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 180ms ease;
}

/* Responsive */

@media (max-width: 1200px) {
  .panel__identity-grid { grid-template-columns: minmax(0, 1.6fr) minmax(18rem, 0.7fr); }
  .identity-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .identity-metric:nth-child(2) { border-right: 0; }
  .identity-metric:nth-child(n + 3) { margin-top: 0.6rem; }
}

@media (max-width: 1020px) and (min-width: 901px) {
  .identity-registers { display: none; }
  .panel__identity-grid { grid-template-columns: 1fr; }
}

@media (hover: none) and (min-width: 901px) {
  .stream { scroll-snap-type: x mandatory; }
  .panel { scroll-snap-align: start; scroll-snap-stop: always; }
}

@media (max-width: 900px) {
  body { height: auto; overflow: auto; }

  .stream {
    display: block;
    height: auto;
    overflow: visible;
    scroll-snap-type: none;
  }

  .panel {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    padding-bottom: calc(var(--bar-total) + 1.4rem);
    overflow: visible;
    scroll-margin-top: 0;
  }

  .panel::before { background-image: radial-gradient(circle, var(--grid-dot) 1px, transparent 1.25px); background-size: 28px 28px; }
  .panel::after { font-size: clamp(4.2rem, 22vw, 8rem); }
  .panel__inner { padding: clamp(2rem, 8vw, 4rem) clamp(1.25rem, 6vw, 3rem); }

  .boot-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .boot-hero__name { font-size: clamp(2.8rem, 11vw, 5.2rem); }
  .boot-sequence { max-width: 34rem; }

  .panel__identity-grid { grid-template-columns: 1fr; min-height: auto; padding: clamp(2rem, 8vw, 4rem) clamp(1.25rem, 6vw, 3rem); }
  .identity-text { padding: 0; }
  .identity-registers { display: none; }
  .identity-text__title, .work__title, .projects__title, .signal__title { font-size: clamp(2.2rem, 9vw, 4.3rem); }

  .panel--dual {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding-bottom: 0;
  }

  .dual { flex: 0 0 auto; grid-template-columns: 1fr; width: 100%; min-height: 0; }
  .dual__divider { height: 1px; }
  .dual__side { padding: clamp(2.4rem, 8vw, 4rem) clamp(1.25rem, 6vw, 3rem); }
  .dual__heading { font-size: clamp(2rem, 8vw, 3.8rem); }
  .dual__merge { position: static; width: 100%; padding: 1.2rem 1.5rem calc(var(--bar-total) + 1.4rem); background: var(--bg-primary); }

  .work-cards, .project-list, .signal__links { grid-template-columns: 1fr; }
  .signal__links { width: 100%; }

  .address-bar { padding-inline: 0.45rem; }
  .address-bar__left { flex: 1 1 auto; gap: 0; }
  .addr { padding-inline: 0.65rem; font-size: 0.62rem; touch-action: manipulation; }
  #addrPC { display: none; }
  .address-bar__right {
    margin-left: 0.35rem;
    padding-left: 0.35rem;
    border-left: 1px solid var(--border-dim);
  }

  .theme-btn {
    width: 44px;
    height: 44px;
    min-height: 44px;
    touch-action: manipulation;
  }
}

@media (max-width: 540px) {
  .boot-hero__role { display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 0.6rem; }
  .boot-hero__role span { grid-column: 2; }
  .boot-trace > div { grid-template-columns: 4.6rem 1fr; gap: 0.7rem; }
  .identity-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .identity-metric__label { font-size: 0.59rem; }
  .work-card { grid-template-columns: 2rem 1fr; }
  .project-card__facts { grid-template-columns: 1fr; gap: 0.45rem; }
  .constraint-list > div { grid-template-columns: 6.6rem 1fr; gap: 0.7rem; }
  .address-bar { padding-inline: 0.25rem; }

  .address-bar__left {
    display: grid;
    flex: 1 1 0;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    overflow: visible;
  }

  .addr {
    display: grid;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0.25rem 0.08rem;
    place-content: center;
    justify-items: center;
    line-height: 1;
  }

  .addr::after { right: 0.2rem; left: 0.2rem; }
  .addr__hex { display: none; }
  .addr__label { font-size: clamp(0.5rem, 2.2vw, 0.58rem); letter-spacing: 0.01em; }

  .address-bar__right {
    align-self: stretch;
    margin-left: 0.25rem;
    padding-left: 0.25rem;
  }

  .theme-btn {
    width: 44px;
    height: 100%;
    min-height: 44px;
    background: var(--accent-dim);
  }

  .theme-btn:active { color: var(--accent); background: var(--accent-glow); }
  .theme-icon { width: 17px; height: 17px; }
}

@media (min-width: 901px) and (max-height: 760px) {
  :root { --panel-pad: clamp(1.2rem, 3vw, 2.6rem); }
  .boot-hero__role { margin-bottom: 1rem; }
  .boot-hero__name { font-size: clamp(2.8rem, 10.5vh, 5.4rem); }
  .boot-hero__subtitle { margin-top: 1rem; font-size: 0.95rem; }
  .boot-hero__cta { margin-top: 0.8rem; }
  .boot-trace > div { padding-block: 0.42rem; }
  .identity-text__title, .work__title, .projects__title, .signal__title { font-size: clamp(2rem, 7vh, 3.3rem); }
  .identity-text__title { margin-bottom: 0.9rem; }
  .identity-text > p:not(.section-eyebrow) { margin-bottom: 0.55rem; font-size: 0.88rem; line-height: 1.55; }
  .identity-metrics { margin-top: 0.9rem; }
  .identity-metric { padding-top: 0.65rem; }
  .reg { padding-block: 0.18rem; }
  .dual__heading { font-size: clamp(2rem, 7vh, 3.3rem); }
  .constraint-list { margin-top: 1.2rem; }
  .constraint-list > div { padding-block: 0.48rem; }
  .work__title { margin-bottom: 1.1rem; }
  .work-card { padding: 0.9rem 1rem; }
  .projects__intro { margin-bottom: 0.9rem; }
  .project-card { padding: 0.8rem 1rem; }
  .project-card__facts { margin-top: 0.55rem; padding-top: 0.5rem; }
  .signal__title { margin-bottom: 0.8rem; }
  .signal__links { margin-top: 1rem; }
}

@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  .panel__inner,
  .panel__identity-grid,
  .dual__side {
    padding-top: 1.4rem;
    padding-bottom: calc(var(--bar-total) + 1.4rem);
  }

  .boot-hero__role { margin-bottom: 0.7rem; }

  .boot-hero__name {
    max-width: 14ch;
    font-size: clamp(2.35rem, 6.6vw, 3.45rem);
    line-height: 0.94;
  }

  .boot-hero__subtitle { margin-top: 0.75rem; font-size: 0.88rem; }
  .boot-hero__cta { margin-top: 0.65rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .panel > * { opacity: 1; transform: none; }
}
