:root {
  --bg: #141518;
  --panel: rgba(12, 13, 16, 0.94);
  --panel-solid: #0e0f12;
  --bone: #eee9dc;
  --ash: #b6b0a3;
  --line: #2f2a24;
  --grace: #e6c47a;
  --gold: #c9a45c;
  --crimson: #a3242a;
  --blood: #6e1518;
  --font-display: "Cinzel", Georgia, "Times New Roman", serif;
  --font-hero-body: "EB Garamond", Georgia, "Times New Roman", serif;
  --font-ui: "Fira Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --scroll: 0;
}

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

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  background: var(--bg);
  color: var(--bone);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--bone);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Fixed radial vignette overlay */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 55% 45%,
    rgba(20, 21, 24, 0) 35%,
    rgba(8, 9, 11, 0.55) 78%,
    rgba(5, 5, 7, 0.88) 100%
  );
}

/* Self-hosted ASCII Knight backdrop */
#knight {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 0;
  display: block;
  object-fit: contain;
  pointer-events: none;
  background: var(--bg);
  opacity: calc(1 - var(--scroll, 0) * 0.55);
  transition: opacity 0.25s linear;
}

/* Readability scrim behind hero text on the left */
.hero-scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(20, 21, 24, 0.96) 0%,
    rgba(20, 21, 24, 0.88) 32%,
    rgba(20, 21, 24, 0) 52%
  );
  opacity: calc(1 - var(--scroll, 0));
}

/* Fixed ASCII Tab Bar (appears when scrolled past hero) */
.tab-bar {
  position: fixed;
  top: 0.95rem;
  left: 50%;
  transform: translate(-50%, -10px);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0.75rem;
  background: rgba(12, 13, 16, 0.92);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  max-width: 94vw;
}

.tab-bar.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.tab-bracket {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold);
  opacity: 0.65;
  padding: 0 0.2rem;
}

.tab-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ash);
  text-decoration: none;
  border: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}

.tab-idx {
  color: var(--gold);
  opacity: 0.75;
}

.tab-item:hover,
.tab-item:focus-visible {
  color: var(--bone);
  background: rgba(230, 196, 122, 0.08);
}

.tab-item.is-active {
  color: var(--grace);
  border-color: rgba(230, 196, 122, 0.45);
  background: rgba(230, 196, 122, 0.12);
}

.tab-item.is-active .tab-idx {
  opacity: 1;
}

.tab-item.is-active::before {
  content: "◆";
  font-size: 0.58rem;
  color: var(--grace);
}

/* Shared layout container */
.wrap {
  position: relative;
  z-index: 3;
  width: min(1140px, 92vw);
  margin: 0 auto;
}

/* Full-viewport locked slide base */
.slide {
  min-height: 100vh;
  min-height: 100dvh;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Ornate corner-bracketed dark obsidian panel */
.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1.5rem 1.65rem;
  transition: border-color 0.45s ease, box-shadow 0.45s ease, opacity 0.5s ease, transform 0.5s ease;
}

.panel::before,
.panel::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
  transition: border-color 0.45s ease;
}

.panel::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
}

.panel::after {
  right: -1px;
  bottom: -1px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}

.panel:hover {
  border-color: rgba(201, 164, 92, 0.5);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.65);
}

/* Section wrapper + animated ASCII entrance */
.section {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4.5rem 0 2.5rem;
  overflow: hidden;
}

.reveal .stagger-1,
.reveal .stagger-2 {
  opacity: 0;
  transform: translateY(14px);
}

.reveal.is-visible .stagger-1 {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.55s ease 0.08s, transform 0.55s ease 0.08s, border-color 0.45s ease, box-shadow 0.45s ease;
}

.reveal.is-visible .stagger-2 {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.55s ease 0.18s, transform 0.55s ease 0.18s, border-color 0.45s ease, box-shadow 0.45s ease;
}

/* Animated ASCII Frame Headers & Footers */
.ascii-frame-top,
.ascii-frame-bot {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
}

.ascii-frame-top {
  margin-bottom: 1.5rem;
}

.ascii-frame-bot {
  margin-top: 1.5rem;
}

.ascii-glyph {
  color: var(--gold);
  font-size: 0.9rem;
  line-height: 1;
  user-select: none;
}

.ascii-index {
  color: var(--grace);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.section-title {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone);
  margin: 0;
  white-space: nowrap;
}

.ascii-rule {
  flex: 1;
  height: 1px;
  border-top: 1px dashed rgba(201, 164, 92, 0.45);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.ascii-frame-bot .ascii-rule {
  transform-origin: center;
  border-top-color: rgba(201, 164, 92, 0.3);
}

.reveal.is-visible .ascii-rule {
  transform: scaleX(1);
}

/* Hero Section (preserved intact) */
.hero {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 0 4.5rem;
}

.hero-inner {
  width: min(1140px, 90vw);
  margin: 0 auto;
}

.hero-col {
  max-width: 440px;
  min-width: 300px;
}

.hero-banner {
  margin: 0 0 1.1rem;
  max-width: 100%;
  overflow: hidden;
}

.hero-banner .hero-wordmark {
  display: block;
  width: 100%;
  max-width: 300px;
  color: var(--grace);
}

.hero-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone);
  margin: 0 0 0.9rem;
  text-shadow: 0 1px 2px #000, 0 0 12px rgba(0, 0, 0, 0.9);
}

.hero-flavor {
  font-family: var(--font-hero-body);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--bone);
  margin: 0 0 2.1rem;
  max-width: 44ch;
  text-shadow: 0 1px 2px #000, 0 2px 14px rgba(0, 0, 0, 0.95);
}

/* Elden Ring Site of Grace Menu */
.grace-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 340px;
}

.grace-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.58rem 1rem 0.58rem 0.5rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone);
  text-decoration: none;
  background: transparent;
  text-shadow: 0 1px 2px #000, 0 0 12px rgba(0, 0, 0, 0.9);
  transition: color 0.35s ease, transform 0.35s ease;
}

.grace-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(230, 196, 122, 0.18) 38%,
    rgba(230, 196, 122, 0.18) 65%,
    transparent 100%
  );
  border-top: 1px solid rgba(230, 196, 122, 0.35);
  border-bottom: 1px solid rgba(230, 196, 122, 0.35);
  transition: opacity 0.35s ease;
}

.grace-link .marker {
  color: var(--grace);
  font-size: 0.72rem;
  opacity: 0.45;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.grace-link .sub {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  color: var(--ash);
  transition: color 0.35s ease;
}

.grace-link:hover,
.grace-link:focus-visible {
  color: var(--grace);
  transform: translateX(6px);
}

.grace-link:hover::before,
.grace-link:focus-visible::before {
  opacity: 1;
}

.grace-link:hover .marker,
.grace-link:focus-visible .marker {
  opacity: 1;
  transform: scale(1.2);
}

.grace-link:hover .sub,
.grace-link:focus-visible .sub {
  color: var(--bone);
}

/* Pure unrounded metrics on Home */
.hero-metrics {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-top: 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(47, 42, 36, 0.85);
  max-width: 340px;
}

.hero-metric {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.hero-metric-val {
  font-family: var(--font-mono);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--grace);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 2px #000, 0 0 12px rgba(0, 0, 0, 0.9);
}

.hero-metric-lbl {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
}

.hero-metric-sep {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--line);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  padding: 0.4rem 1.05rem;
  border-radius: 999px;
  background: rgba(16, 17, 20, 0.9);
  border: 1px solid rgba(201, 164, 92, 0.45);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--grace);
  text-decoration: none;
  white-space: nowrap;
  animation: pulseHint 3s ease-in-out infinite;
}

@keyframes pulseHint {
  0%,
  100% {
    opacity: 0.84;
  }
  50% {
    opacity: 1;
  }
}

/* Key Items / Projects */
.items-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
}

.item-card {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.item-top {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.item-slot {
  position: relative;
  flex: 0 0 184px;
  width: 184px;
  height: 184px;
  background: rgba(8, 9, 12, 0.95);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0.65rem;
}

.item-slot::before,
.item-slot::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
}

.item-slot::before {
  top: 4px;
  left: 4px;
  border-top: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
}

.item-slot::after {
  right: 4px;
  bottom: 4px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}

.item-slot ascii-art {
  width: 100%;
  max-width: 164px;
  color: var(--grace);
  font-size: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-slot canvas.ascii-logo {
  width: 100%;
  height: 100%;
  display: block;
}

.item-meta {
  min-width: 0;
  flex: 1;
}

.item-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grace);
  margin: 0 0 0.2rem;
}

.item-type {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ash);
  margin: 0 0 0.65rem;
}

.item-flavor {
  font-family: var(--font-ui);
  font-style: italic;
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--ash);
  margin: 0;
}

.thin-rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, var(--line), rgba(201, 164, 92, 0.35), var(--line));
}

.item-desc {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--bone);
  font-size: 0.98rem;
  line-height: 1.6;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--grace);
  border: 1px solid var(--line);
  background: rgba(20, 21, 24, 0.9);
  padding: 0.2rem 0.55rem;
}

.item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-top: auto;
  padding-top: 0.15rem;
}

.action-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bone);
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(18, 19, 24, 0.92);
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.action-link::before {
  content: "◆";
  font-size: 0.58rem;
  color: var(--gold);
  transition: transform 0.3s ease, color 0.3s ease;
}

.action-link:hover,
.action-link:focus-visible {
  color: var(--grace);
  border-color: var(--grace);
  background: rgba(230, 196, 122, 0.14);
}

.action-link:hover::before,
.action-link:focus-visible::before {
  color: var(--grace);
  transform: scale(1.15);
}

/* Official App Store & Google Play badges in ASCII style */
.store-badge-ascii {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.72rem 0.3rem 0.45rem;
  border: 1px solid var(--line);
  background: rgba(8, 9, 12, 0.94);
  color: var(--bone);
  text-decoration: none;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.store-badge-ascii::before,
.store-badge-ascii::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  pointer-events: none;
}

.store-badge-ascii::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
}

.store-badge-ascii::after {
  right: -1px;
  bottom: -1px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}

.store-badge-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: block;
}

.store-badge-icon canvas.ascii-logo-badge {
  width: 100%;
  height: 100%;
  display: block;
}

.store-badge-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
  text-align: left;
}

.store-badge-sub {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  color: var(--ash);
}

.store-badge-main {
  font-family: var(--font-ui);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--bone);
}

.store-badge-ascii:hover,
.store-badge-ascii:focus-visible {
  border-color: var(--grace);
  background: rgba(230, 196, 122, 0.12);
  transform: translateY(-1px);
}

.store-badge-ascii:hover .store-badge-main,
.store-badge-ascii:focus-visible .store-badge-main {
  color: var(--grace);
}

/* Status Section */
.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
}

.panel-heading {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grace);
  margin: 0 0 1.25rem;
}

.stat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.stat-row {
  display: grid;
  grid-template-columns: 104px 1fr auto;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.94rem;
}

.stat-name {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone);
}

.stat-value {
  font-family: var(--font-ui);
  color: var(--ash);
  font-size: 0.96rem;
}

.stat-bar {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: -0.02em;
  color: var(--gold);
}

.lore-body p {
  margin: 0 0 1rem;
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--bone);
}

.lore-body strong {
  color: var(--grace);
  font-weight: 500;
}

/* Summon / Contact Slide + Footer */
.section-summon {
  justify-content: space-between;
  padding-top: 4.5rem;
  padding-bottom: 1.5rem;
}

.summon-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
}

.summon-panel {
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  padding: 1.35rem 1.65rem;
}

.campfire-wrap {
  width: min(290px, 78vw);
  max-width: 100%;
  margin: 0 auto 0.65rem;
  color: var(--grace);
}

.campfire-wrap ascii-art {
  width: 100%;
  color: var(--grace);
  font-size: clamp(6.5px, 1vw, 8.8px);
  display: flex;
  justify-content: center;
}

.summon-line {
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--bone);
  margin: 0 0 1.15rem;
}

.contact-grid {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.contact-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 100%;
  padding: 0.85rem 0.5rem;
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(8, 9, 12, 0.82);
  color: var(--bone);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.contact-icon-wrap {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.contact-icon-wrap canvas.ascii-logo-sm {
  width: 100%;
  height: 100%;
  display: block;
}

.contact-name {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone);
}

.contact-handle {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--ash);
  word-break: break-word;
}

.contact-tile:hover,
.contact-tile:focus-visible {
  border-color: var(--grace);
  background: rgba(230, 196, 122, 0.1);
  transform: translateY(-2px);
}

.contact-tile:hover .contact-icon-wrap,
.contact-tile:focus-visible .contact-icon-wrap {
  transform: scale(1.06);
  filter: drop-shadow(0 0 8px rgba(230, 196, 122, 0.3));
}

.contact-tile:hover .contact-handle,
.contact-tile:focus-visible .contact-handle {
  color: var(--bone);
}

/* Footer integrated at bottom of final locked slide */
.site-footer {
  margin-top: 1.4rem;
  padding-top: 0.85rem;
  text-align: center;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash);
  margin: 0;
}

/* Responsive breakpoint at 820px */
@media (max-width: 820px) {
  html {
    scroll-snap-type: y proximity;
  }

  #knight {
    opacity: calc(0.35 - var(--scroll, 0) * 0.15);
  }

  .slide {
    height: auto;
    min-height: 100dvh;
  }

  .tab-bar {
    gap: 0.15rem;
    padding: 0.35rem 0.45rem;
  }

  .tab-bracket {
    display: none;
  }

  .tab-item {
    padding: 0.3rem 0.5rem;
    font-size: 0.68rem;
    gap: 0.25rem;
  }

  .tab-idx {
    display: none;
  }

  .hero {
    text-align: center;
    padding: 4.5rem 0 5rem;
    height: 100dvh;
  }

  .hero-col {
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
  }

  .hero-banner .hero-wordmark {
    margin: 0 auto;
    max-width: 230px;
  }

  .hero-flavor {
    margin-left: auto;
    margin-right: auto;
  }

  .grace-menu {
    margin: 0 auto;
    max-width: 320px;
  }

  .hero-metrics {
    margin: 1.35rem auto 0;
    justify-content: center;
  }

  .section {
    padding: 5rem 0 3rem;
  }

  .items-grid,
  .status-grid {
    grid-template-columns: 1fr;
  }

  .item-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .item-slot {
    flex: 0 0 auto;
    width: 160px;
    height: 160px;
  }

  .item-slot ascii-art {
    max-width: 140px;
    font-size: 6px;
  }

  .item-slot ascii-art[piece="vinyl"] {
    font-size: 3.4px;
  }

  .tag-row,
  .item-actions {
    justify-content: center;
  }

  .stat-row {
    grid-template-columns: 100px 1fr auto;
    gap: 0.25rem 0.6rem;
  }

  .stat-bar {
    display: none;
  }

  .panel {
    padding: 1.35rem;
  }

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

  .contact-grid li:first-child {
    grid-column: 1 / -1;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal .stagger-1,
  .reveal .stagger-2 {
    opacity: 1;
    transform: none;
  }

  .ascii-rule {
    transform: scaleX(1);
  }
}
