:root {
  --bg-color: #9daf8a;
  --screen-light: #b8c79a;
  --screen-deep: #7f9271;
  --ink-color: #162015;
  --ink-dim: rgba(22, 32, 21, 0.68);
  --ink-soft: rgba(22, 32, 21, 0.16);
  --highlight: rgba(255, 255, 255, 0.14);
  --accent: #254c49;
  --accent-warm: #5a4a2d;
  --font-main: "JetBrains Mono", "Space Mono", monospace;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(22, 32, 21, 0.08), transparent 35%),
    var(--bg-color);
  color: var(--ink-color);
  font-family: var(--font-main);
  overflow: hidden;
}

body {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
}

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

button {
  user-select: none;
}

.scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.045) 3px
  );
  pointer-events: none;
  z-index: 999;
}

.vignette {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06), transparent 28%),
    radial-gradient(circle, transparent 58%, rgba(0, 0, 0, 0.18) 100%);
  pointer-events: none;
  z-index: 998;
}

.os-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  position: relative;
  z-index: 1;
}

.status-bar {
  flex: 0 0 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  border-bottom: 3px solid var(--ink-color);
  background: rgba(184, 199, 154, 0.82);
  box-shadow: inset 0 -2px 0 var(--ink-soft);
  font-size: 22px;
}

.signal,
.battery {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.bar {
  width: 4px;
  background: var(--ink-dim);
  height: 100%;
}

.bar.full {
  background: var(--ink-color);
}

.bar:nth-child(1) {
  height: 40%;
}

.bar:nth-child(2) {
  height: 60%;
}

.bar:nth-child(3) {
  height: 80%;
}

.bat-icon {
  width: 30px;
  height: 15px;
  border: 2px solid var(--ink-color);
  padding: 1px;
  position: relative;
}

.bat-icon::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 3px;
  width: 4px;
  height: 5px;
  background: var(--ink-color);
}

.bat-fill {
  width: 82%;
  height: 100%;
  background: var(--ink-color);
  animation: batteryPulse 3s steps(2, end) infinite;
}

@keyframes batteryPulse {
  50% {
    width: 66%;
  }
}

#main-display {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.page {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 26%),
    var(--bg-color);
  opacity: 0;
  transform: translateY(8px) scale(0.985);
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  scrollbar-width: none;
}

.page::-webkit-scrollbar {
  display: none;
}

.page.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.center-wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 980px;
  margin: 0 auto;
  padding-bottom: 18px;
}

/* Home two-column layout */
.home-layout {
  display: flex;
  height: 100%;
  overflow: hidden;
}

.home-left {
  flex: 0 0 38%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.home-photo {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
}

.home-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 28px 20px 10px;
  overflow: hidden;
}

.home-title {
  font-size: clamp(26px, 4.5vw, 52px);
  line-height: 1.1;
  letter-spacing: 0;
  margin: 0 0 8px;
  text-transform: uppercase;
  font-weight: 700;
}

.home-summary {
  font-size: 15px;
  margin: 0 0 12px;
  max-width: 600px;
}

#home .quick-stats {
  margin: 0 0 12px;
}

#home .quick-stats span {
  font-size: 12px;
  min-height: 24px;
  padding: 2px 6px;
}

#home .hero-actions {
  margin-bottom: 14px;
}

#home .action-btn {
  padding: 6px 12px;
  font-size: 13px;
}

#home .app-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

#home .app-btn {
  min-height: 70px;
  padding: 8px 6px;
}

#home .app-btn span {
  font-size: 11px;
}

#home .icon-box svg {
  width: 24px;
  height: 24px;
}

.content-container {
  max-width: 920px;
  margin: 0 auto;
  padding-bottom: 52px;
}

.home-intro {
  border-top: 2px dashed var(--ink-color);
  border-bottom: 2px dashed var(--ink-color);
  padding: 8px 0;
  margin-bottom: 22px;
  overflow: hidden;
  white-space: nowrap;
}

.scrolling-text {
  font-size: 14px;
  margin: 0;
  animation: marquee 15s linear infinite;
  display: inline-block;
}

@keyframes marquee {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.hero-panel {
  border: 3px solid var(--ink-color);
  box-shadow: 4px 4px 0 rgba(22, 32, 21, 0.15);
  background:
    linear-gradient(135deg, rgba(37, 76, 73, 0.1), transparent 40%),
    rgba(255, 255, 255, 0.1);
  padding: 22px;
  margin-bottom: 24px;
  position: relative;
}

.hero-panel::after {
  content: "RUNNING";
  position: absolute;
  top: 10px;
  right: 12px;
  background: var(--ink-color);
  color: var(--screen-light);
  padding: 2px 8px;
  font-size: 18px;
}

.system-label {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.hero-panel h1 {
  font-size: clamp(32px, 6vw, 64px);
  line-height: 1.1;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
  font-weight: 700;
}

.hero-copy {
  max-width: 760px;
  margin: 0 0 20px;
  font-size: 18px;
}

.quick-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.quick-stats span,
.pill-row span,
.schema-list span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 2px solid var(--ink-color);
  background: rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  font-size: 14px;
}

.hero-actions,
.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.action-btn,
.action-btn-sm {
  background: var(--ink-color);
  border: 3px solid var(--ink-color);
  color: var(--screen-light);
  cursor: pointer;
  font-weight: bold;
  padding: 9px 13px;
  text-decoration: none;
  box-shadow: 4px 4px 0 rgba(22, 32, 21, 0.18);
}

.action-btn.alt,
.action-btn-sm {
  background: transparent;
  color: var(--ink-color);
}

.action-btn:hover,
.action-btn:focus-visible,
.action-btn-sm:hover,
.action-btn-sm:focus-visible,
.app-btn:hover,
.app-btn:focus-visible,
.big-link-block:hover,
.big-link-block:focus-visible {
  outline: 0;
  background: var(--ink-color);
  color: var(--screen-light);
}

.action-btn:active,
.action-btn-sm:active,
.app-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 rgba(22, 32, 21, 0.18);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.app-btn {
  min-height: 120px;
  background: rgba(255, 255, 255, 0.08);
  border: 3px solid var(--ink-color);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  color: var(--ink-color);
  transition:
    transform 0.1s,
    box-shadow 0.1s,
    background 0.12s,
    color 0.12s;
  box-shadow: 4px 4px 0 rgba(22, 32, 21, 0.15);
}

.icon-box svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
}

.app-btn span {
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  overflow-wrap: anywhere;
}

.page-header {
  font-size: clamp(24px, 5vw, 42px);
  border-bottom: 3px double var(--ink-color);
  margin: 4px 0 24px;
  text-transform: uppercase;
  font-weight: 700;
}

.profile-section {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.pixel-photo-frame {
  flex: 0 0 auto;
  width: 150px;
  height: 150px;
  border-radius: 6px;
  overflow: hidden;
}

.pixel-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lead {
  font-size: 27px;
  margin: 0 0 8px;
}

p {
  margin-top: 0;
}

.dotted-line {
  border: 0;
  border-top: 2px dashed var(--ink-color);
  margin: 22px 0;
}

.signal-grid,
.learning-grid,
.architecture-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.stack-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.signal-card,
.learning-card,
.stack-group,
.architecture-card,
.project-entry,
.timeline-entry {
  border: 3px solid var(--ink-color);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 4px 4px 0 rgba(22, 32, 21, 0.13);
}

.signal-card,
.learning-card,
.stack-group,
.architecture-card {
  padding: 15px;
}

.signal-title,
.stack-group h3,
.learning-card h3,
.architecture-card h3 {
  display: block;
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}

.signal-card p,
.learning-card p,
.architecture-card p {
  margin-bottom: 0;
  font-size: 14px;
}

.meta-data {
  background: rgba(22, 32, 21, 0.08);
  padding: 15px;
  border-left: 5px solid var(--ink-color);
  margin-top: 22px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  line-height: 1.45;
}

.meta-data p {
  margin: 4px 0;
}

.meta-data a {
  color: var(--ink-color);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.meta-data a:hover,
.meta-data a:focus-visible {
  outline: 0;
  background: var(--ink-color);
  color: var(--screen-light);
}

.timeline-entry {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 15px;
  margin-bottom: 18px;
}

.timeline-dot {
  width: 18px;
  height: 18px;
  border: 3px solid var(--ink-color);
  background: var(--accent);
  margin-top: 7px;
  box-shadow: 0 0 0 5px rgba(22, 32, 21, 0.1);
}

.proj-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid var(--ink-color);
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.proj-head.compact {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: 4px;
}

.proj-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.tag {
  display: inline-flex;
  align-items: center;
  background: var(--ink-color);
  color: var(--screen-light);
  padding: 3px 6px;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}

.tech-sub {
  color: var(--accent-warm);
  margin: 0 0 8px;
  font-size: 14px;
}

.feature-list {
  padding-left: 22px;
  margin: 10px 0 14px;
}

.feature-list li {
  margin-bottom: 6px;
}

.feature-list li::marker {
  content: "> ";
}

.pill-row,
.schema-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.skill-item .lbl {
  display: block;
  font-size: 16px;
  margin-bottom: 5px;
}

.progress {
  width: 100%;
  height: 18px;
  border: 2px solid var(--ink-color);
  padding: 2px;
}

.progress .fill {
  background: repeating-linear-gradient(
    90deg,
    var(--ink-color) 0,
    var(--ink-color) 8px,
    var(--accent) 8px,
    var(--accent) 12px
  );
  height: 100%;
}

.skill-category {
  margin-bottom: 28px;
  border: 3px solid var(--ink-color);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 4px 4px 0 rgba(22, 32, 21, 0.15);
  position: relative;
}

.skill-cat-header {
  background: var(--ink-color);
  color: var(--screen-light);
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  border-bottom: 3px solid var(--ink-color);
  border-right: 3px solid var(--ink-color);
}

.blink-cursor {
  animation: blink 1s step-end infinite;
  font-weight: 900;
}

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

.skill-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 16px;
  padding: 20px;
}

.skill-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 10px;
  border: 2px dashed var(--ink-dim);
  background: transparent;
  cursor: pointer;
  transition: all 0.15s ease-out;
  min-height: 100px;
}

.skill-card:hover {
  background: var(--ink-color);
  color: var(--screen-light);
  border: 2px solid var(--ink-color);
  transform: translateY(-4px);
  box-shadow: 4px 6px 0 rgba(22, 32, 21, 0.25);
}

.skill-card .skill-svg {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  color: var(--ink-color);
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.skill-card:hover .skill-svg {
  color: var(--screen-light);
  transform: scale(1.15) rotate(-5deg);
  filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.3));
}

.skill-card span {
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0;
}

#skills .skill-category {
  display: none;
}

.official-skill-board {
  display: grid;
  gap: 20px;
}

.official-skill-category {
  border: 3px solid var(--ink-color);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 45%),
    rgba(255, 255, 255, 0.05);
  box-shadow: 5px 5px 0 rgba(22, 32, 21, 0.16);
  overflow: hidden;
}

.official-cat-header {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  background: var(--ink-color);
  color: var(--screen-light);
  border-right: 3px solid var(--ink-color);
  border-bottom: 3px solid var(--ink-color);
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.logo-skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(122px, 1fr));
  gap: 14px;
  padding: 18px;
}

.logo-skill-card {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 128px;
  padding: 13px 8px 12px;
  border: 2px dashed var(--ink-dim);
  background: rgba(184, 199, 154, 0.18);
  text-align: center;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

.logo-skill-card:hover,
.logo-skill-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--ink-color);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 4px 6px 0 rgba(22, 32, 21, 0.2);
}

.logo-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 3px solid var(--ink-color);
  background:
    repeating-linear-gradient(
      0deg,
      rgba(22, 32, 21, 0.08) 0,
      rgba(22, 32, 21, 0.08) 2px,
      rgba(255, 255, 255, 0.1) 2px,
      rgba(255, 255, 255, 0.1) 5px
    ),
    var(--screen-light);
  box-shadow: inset 3px 3px 0 rgba(255, 255, 255, 0.13);
}

.logo-frame::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(22, 32, 21, 0.12);
  pointer-events: none;
}

.tech-logo {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-size: 46px;
  line-height: 1;
  color: var(--ink-color) !important;
  filter: drop-shadow(2px 2px 0 rgba(22, 32, 21, 0.18));
  transition:
    transform 0.18s ease,
    filter 0.18s ease;
}

.logo-skill-card:hover .tech-logo {
  transform: scale(1.08);
  filter: drop-shadow(2px 3px 0 rgba(22, 32, 21, 0.28));
}

.logo-skill-card strong {
  display: block;
  max-width: 100%;
  min-height: 32px;
  font-size: 13px;
  line-height: 1.2;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.project-tech-list,
.stack-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}

.stack-tech-list {
  margin-bottom: 0;
}

.project-tech-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  max-width: 100%;
  gap: 7px;
  padding: 5px 9px;
  border: 2px solid var(--ink-color);
  background:
    repeating-linear-gradient(
      0deg,
      rgba(22, 32, 21, 0.06) 0,
      rgba(22, 32, 21, 0.06) 2px,
      transparent 2px,
      transparent 5px
    ),
    rgba(255, 255, 255, 0.1);
  color: var(--ink-color);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  box-shadow: 2px 2px 0 rgba(22, 32, 21, 0.13);
}

.project-tech-logo {
  flex: 0 0 auto;
  width: 18px;
  min-width: 18px;
  color: var(--ink-color) !important;
  font-size: 18px;
  line-height: 1;
  text-align: center;
  filter: none;
}

.project-tech-img {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  object-fit: contain;
  image-rendering: auto;
}

.text-tech-mark {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 3px;
  border: 2px solid var(--ink-color);
  color: var(--ink-color);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.detail-section {
  margin: 30px 0;
}

.detail-heading {
  margin-bottom: 15px;
  border-bottom: 2px dashed var(--ink-color);
  padding-bottom: 5px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.detail-card,
.metric-card {
  border: 3px solid var(--ink-color);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 4px 4px 0 rgba(22, 32, 21, 0.13);
}

.detail-card {
  padding: 15px;
}

.detail-card h4 {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 18px;
}

.detail-card p {
  margin-bottom: 0;
  font-size: 14px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.metric-card {
  padding: 12px;
}

.metric-card strong {
  display: block;
  color: var(--accent);
  font-size: 28px;
  line-height: 1.05;
}

.metric-card span {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.screenshot-strip {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding: 10px 0 14px;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
  align-items: flex-start;
}

.screenshot-frame {
  position: relative;
  flex: 0 0 min(760px, 88vw);
  margin: 0;
  border: 2px solid var(--ink-color);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 4px 4px 0 rgba(22, 32, 21, 0.13);
  scroll-snap-align: start;
}

.screenshot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.screenshot-index {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  display: inline-flex;
  min-width: 34px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink-color);
  background: var(--screen-light);
  color: var(--ink-color);
  font-size: 12px;
  font-weight: 900;
}

.project-entry {
  padding: 16px;
  margin-bottom: 18px;
}

.featured-project {
  background:
    linear-gradient(135deg, rgba(37, 76, 73, 0.14), transparent 50%),
    rgba(255, 255, 255, 0.11);
}

.architecture-flow {
  display: grid;
  grid-template-columns: 1fr 22px 1fr 22px 1fr 22px 1fr;
  align-items: stretch;
  gap: 8px;
  margin: 22px 0;
}

.flow-node {
  border: 3px solid var(--ink-color);
  background: rgba(255, 255, 255, 0.1);
  padding: 13px;
  min-height: 148px;
}

.flow-node span {
  display: inline-flex;
  background: var(--ink-color);
  color: var(--screen-light);
  padding: 1px 7px;
  margin-bottom: 8px;
  font-size: 18px;
}

.flow-node strong {
  display: block;
  color: var(--accent);
  font-size: 25px;
  margin-bottom: 4px;
}

.flow-node p {
  margin-bottom: 0;
  font-size: 20px;
}

.flow-arrow {
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: bold;
}

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

.stack-map p {
  margin-bottom: 8px;
}

.centered-content {
  text-align: center;
  padding-top: 20px;
}

.contact-actions {
  max-width: 560px;
  margin: 20px auto;
}

.big-link-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 3px solid var(--ink-color);
  padding: 15px 20px;
  margin-bottom: 13px;
  color: var(--ink-color);
  text-decoration: none;
  font-size: 25px;
  font-weight: bold;
  transition:
    background 0.12s,
    color 0.12s;
  box-shadow: 4px 4px 0 rgba(22, 32, 21, 0.14);
}

.soft-keys {
  flex: 0 0 62px;
  display: flex;
  align-items: center;
  border-top: 3px solid var(--ink-color);
  background: rgba(184, 199, 154, 0.86);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.14);
}

.soft-btn {
  flex: 1;
  background: transparent;
  border: 0;
  font-size: 26px;
  font-weight: bold;
  color: var(--ink-color);
  cursor: pointer;
  height: 100%;
}

.soft-btn:disabled {
  opacity: 0.26;
  cursor: default;
}

.soft-btn:not(:disabled):hover,
.soft-btn:not(:disabled):focus-visible {
  outline: 0;
  background: var(--ink-color);
  color: var(--screen-light);
}

.deco-lines {
  letter-spacing: 2px;
  font-weight: bold;
}

@media (min-width: 820px) {
  .app-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    font-size: 20px;
  }

  .page {
    padding: 16px;
  }

  .center-wrapper {
    justify-content: flex-start;
  }

  .home-layout {
    flex-direction: column;
    overflow-y: auto;
  }

  .home-left {
    flex: 0 0 auto;
    padding: 14px;
  }

  .home-photo {
    max-width: 160px;
    margin: 0 auto;
  }

  .home-right {
    padding: 10px 16px 20px;
  }

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

  #home .app-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-panel {
    padding: 18px;
  }

  .hero-panel::after {
    position: static;
    display: inline-flex;
    margin-bottom: 8px;
  }

  .hero-copy {
    font-size: 22px;
  }

  .app-grid,
  .signal-grid,
  .learning-grid,
  .skill-grid,
  .architecture-grid {
    grid-template-columns: 1fr;
  }

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

  .profile-section {
    align-items: flex-start;
  }

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

  .flow-arrow {
    transform: rotate(90deg);
    min-height: 16px;
  }

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

@media (max-width: 460px) {
  .status-bar {
    font-size: 18px;
    padding: 0 10px;
  }

  .signal span {
    max-width: 58px;
    overflow: hidden;
    text-overflow: clip;
  }

  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }

  .app-btn {
    min-height: 116px;
    padding: 12px 6px;
  }

  .app-btn span {
    font-size: 20px;
  }

  .icon-box svg {
    width: 39px;
    height: 39px;
  }

  .timeline-entry {
    grid-template-columns: 1fr;
  }

  .timeline-dot {
    display: none;
  }

  .soft-btn {
    font-size: 22px;
  }
}

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